:root {
  color-scheme: light;
  font-family: Geist, Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --green: #087a55;
  --green-bright: #10b981;
  --green-soft: #e8f7f0;
  --blue: #356ae6;
  --amber: #c47a13;
  --red: #c2413b;
  --shell: #071c17;
  --shell-2: #0e2e26;
  --canvas: #f3f6f4;
  --surface: #fff;
  --surface-2: #fafcfb;
  --ink: #101815;
  --muted: #52605a;
  --line: #dde5e1;
  --radius: 8px;
}

* { box-sizing: border-box; }
html, body, #app { width: 100%; height: 100%; margin: 0; }
body { overflow: hidden; background: var(--canvas); color: var(--ink); }
button, input { font: inherit; }
button { color: inherit; }
svg { display: block; }

body[data-direction="b"] {
  --green: #0a7654;
  --green-bright: #23a67a;
  --green-soft: #edf8f3;
  --blue: #315fc4;
  --shell: #17201c;
  --shell-2: #132a24;
  --canvas: #f7f8f6;
  --surface: #fff;
  --surface-2: #fbfcfa;
  --ink: #111714;
  --muted: #5a665f;
  --line: #e1e6e3;
  --radius: 4px;
}

.study { width: 100%; height: 100%; overflow: hidden; position: relative; }
.fine { font-size: 11px; color: #6f7c76; }
.tabular { font-variant-numeric: tabular-nums; }
.icon { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon.sm { width: 15px; height: 15px; }
.icon.lg { width: 22px; height: 22px; }

.brand-lockup { display: flex; align-items: center; gap: 11px; }
.monogram { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--green-bright) 55%, transparent); border-radius: 8px; color: var(--green-bright); font-weight: 750; font-size: 17px; position: relative; }
.monogram::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--green-bright); right: -3px; top: 7px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--green-bright) 12%, transparent); }
.brand-name { font-size: 15px; font-weight: 720; letter-spacing: 0; }
.brand-sub { font-size: 10px; color: #7e8c86; margin-top: 2px; }
.eyebrow { display: flex; align-items: center; gap: 8px; text-transform: uppercase; font-size: 11px; font-weight: 700; color: var(--green); letter-spacing: .11em; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.primary-btn, .secondary-btn { min-height: 44px; padding: 0 18px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; font-size: 13px; font-weight: 650; }
.primary-btn { color: #fff; background: var(--green); box-shadow: 0 7px 20px rgba(8,122,85,.18); }
.secondary-btn { background: transparent; border-color: var(--line); }
.text-button { border: 0; padding: 0; background: transparent; font-size: 13px; font-weight: 650; display: inline-flex; gap: 7px; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 650; line-height: 22px; padding: 0 8px; border-radius: 999px; color: #285b49; background: var(--green-soft); white-space: nowrap; }
.tag.blue { color: #2854ac; background: #edf2ff; }
.tag.amber { color: #925b0d; background: #fff7e8; }
.tag.gray { color: #56625c; background: #f0f3f1; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Landing */
.landing { min-height: 100%; background: var(--canvas); position: relative; isolation: isolate; }
.landing::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(color-mix(in srgb, var(--line) 34%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--line) 30%, transparent) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.48), transparent 72%); opacity: .35; }
.landing-header { height: 74px; max-width: 1320px; padding: 0 4px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent); }
.landing-nav { display: flex; align-items: center; gap: 30px; font-size: 12px; color: #485650; }
.landing-actions { display: flex; align-items: center; gap: 14px; }
.landing-hero { max-width: 1320px; height: 690px; margin: 0 auto; position: relative; display: grid; grid-template-columns: 43% 57%; align-items: center; }
.hero-copy { position: relative; z-index: 3; padding: 10px 0 52px; }
.hero-copy h1 { margin: 18px 0 22px; font-size: 66px; line-height: .99; letter-spacing: -0.04em; max-width: 630px; font-weight: 720; }
.hero-copy .lead { max-width: 520px; font-size: 18px; line-height: 1.58; color: var(--muted); margin: 0 0 30px; }
.hero-ctas { display: flex; align-items: center; gap: 20px; }
.hero-note { margin-top: 27px; display: flex; align-items: center; gap: 20px; color: #68746f; font-size: 11px; }
.hero-note span { display: flex; align-items: center; gap: 7px; }
.hero-note i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #aebbb5; display: grid; place-items: center; font-style: normal; font-size: 8px; }
.hero-stage { position: absolute; top: 54px; right: -52px; width: 780px; height: 592px; z-index: 1; }
.hero-stage::before { content: ""; position: absolute; inset: 36px 18px 22px 52px; background: radial-gradient(circle at 55% 40%, rgba(16,185,129,.10), transparent 58%); filter: blur(6px); }
.hero-product { position: absolute; right: 0; top: 36px; width: 742px; height: 520px; background: #fff; border: 1px solid #d9e3de; border-radius: 10px; box-shadow: 0 32px 80px rgba(11,35,28,.16), 0 4px 14px rgba(11,35,28,.08); overflow: hidden; display: grid; grid-template-columns: 48px 150px 1fr; grid-template-rows: 46px 1fr; transform: perspective(1800px) rotateY(-3deg) rotateX(1deg); transform-origin: center right; }
.mock-rail { grid-row: 1 / -1; background: var(--shell); color: #91a69e; display: flex; flex-direction: column; align-items: center; padding: 11px 0; gap: 12px; }
.mock-rail .mini-mark { color: #fff; border: 1px solid #2d5548; width: 25px; height: 25px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; margin-bottom: 9px; }
.mock-rail .rail-ico { width: 29px; height: 29px; border-radius: 5px; display: grid; place-items: center; }
.mock-rail .rail-ico.active { color: #fff; background: #174b3c; box-shadow: inset 2px 0 0 var(--green-bright); }
.mock-side { grid-row: 1 / -1; padding: 13px 12px; background: #fbfcfb; border-right: 1px solid var(--line); }
.mock-side strong { font-size: 11px; }
.mock-side small { display: block; font-size: 8px; color: #8a9691; margin: 2px 0 15px; }
.mock-nav { display: grid; gap: 5px; }
.mock-nav span { height: 26px; padding: 0 8px; display: flex; align-items: center; gap: 8px; border-radius: 4px; font-size: 8px; color: #64716b; }
.mock-nav span.active { color: #135f46; background: #eaf7f1; font-weight: 650; }
.mock-top { grid-column: 3; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; border-bottom: 1px solid var(--line); font-size: 8px; color: #77847e; }
.mock-actions { display: flex; align-items: center; gap: 11px; }
.mock-avatar { width: 22px; height: 22px; border-radius: 50%; background: #d9eee5; color: #126b4c; display: grid; place-items: center; font-size: 8px; font-weight: 700; }
.mock-main { grid-column: 3; padding: 18px; overflow: hidden; background: #f7f9f8; }
.mock-title-row { display: flex; align-items: flex-end; justify-content: space-between; }
.mock-title-row h3 { font-size: 18px; margin: 0 0 3px; letter-spacing: -0.02em; }
.mock-title-row p { font-size: 8px; color: #7f8b85; margin: 0; }
.mock-filter { border: 1px solid var(--line); background: #fff; height: 27px; border-radius: 4px; padding: 0 9px; display: flex; align-items: center; font-size: 8px; color: #4f5e57; }
.mock-kpis { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); margin-top: 17px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.mock-kpi { min-height: 66px; padding: 11px 12px; border-right: 1px solid var(--line); }
.mock-kpi:last-child { border-right: 0; }
.mock-kpi small { font-size: 7px; color: #80908a; text-transform: uppercase; letter-spacing: .08em; }
.mock-kpi b { display: block; margin-top: 5px; font-size: 17px; font-variant-numeric: tabular-nums; }
.mock-kpi em { font-size: 7px; color: #0b7b55; font-style: normal; }
.mock-grid { margin-top: 14px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 11px; }
.mock-panel { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 12px; min-height: 190px; }
.mock-panel-head { display: flex; align-items: center; justify-content: space-between; font-size: 8px; font-weight: 650; }
.mini-chart { height: 117px; margin-top: 15px; position: relative; border-bottom: 1px solid #dce4e0; display: flex; align-items: end; gap: 13px; padding: 0 7px; }
.mini-chart::before, .mini-chart::after { content: ""; position: absolute; left: 0; right: 0; border-top: 1px dashed #e5eae8; }
.mini-chart::before { top: 34%; }.mini-chart::after { top: 68%; }
.mini-bar { flex: 1; background: #dfeee8; border-radius: 2px 2px 0 0; position: relative; z-index: 1; }
.mini-bar:nth-child(2n) { background: #0c8159; }
.mini-line { position: absolute; left: 9px; right: 10px; top: 36px; height: 65px; z-index: 2; }
.mini-line svg { width: 100%; height: 100%; overflow: visible; }
.mini-funnel { display: grid; gap: 7px; margin-top: 17px; }
.mini-funnel-row { display: grid; grid-template-columns: 44px 1fr 28px; align-items: center; gap: 7px; font-size: 7px; color: #66736d; }
.mini-funnel-bar { height: 8px; background: #edf1ef; border-radius: 2px; overflow: hidden; }
.mini-funnel-bar i { display: block; height: 100%; background: var(--green); }
.hero-intel { position: absolute; z-index: 3; right: 10px; bottom: 7px; width: 246px; min-height: 102px; padding: 14px 15px; color: #eff9f5; background: var(--shell-2); border: 1px solid #214f41; border-radius: 8px; box-shadow: 0 18px 44px rgba(5,27,21,.22); }
.hero-intel .intel-head { display: flex; align-items: center; justify-content: space-between; font-size: 9px; color: #98c7b5; text-transform: uppercase; letter-spacing: .09em; }
.hero-intel b { display: block; font-size: 12px; line-height: 1.4; margin: 8px 0 5px; }
.hero-intel p { margin: 0; font-size: 8px; color: #aac0b8; line-height: 1.45; }
.journey-ribbon { position: absolute; left: 0; right: 0; bottom: 14px; height: 86px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 200px 1fr 220px; align-items: center; }
.journey-ribbon .journey-title strong { display: block; font-size: 12px; }
.journey-ribbon .journey-title span { font-size: 9px; color: #77847e; }
.journey-steps { display: grid; grid-template-columns: repeat(7, 1fr); position: relative; }
.journey-steps::before { content: ""; height: 1px; background: linear-gradient(90deg, var(--green), #79b2a0 75%, #dbe3df); position: absolute; left: 4%; right: 4%; top: 10px; }
.journey-step { position: relative; padding-top: 25px; text-align: center; font-size: 8px; color: #68756f; }
.journey-step::before { content: ""; position: absolute; top: 6px; left: 50%; width: 8px; height: 8px; border-radius: 50%; transform: translateX(-50%); background: #fff; border: 2px solid var(--green); }
.journey-suite { justify-self: end; display: flex; align-items: center; gap: 9px; font-size: 9px; color: #63706a; }
.suite-chip { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 6px; font-size: 9px; font-weight: 700; color: var(--green); }

body[data-direction="b"] .landing::before { background-size: 96px 96px; opacity: .22; }
body[data-direction="b"] .landing-header { max-width: 1360px; height: 68px; }
body[data-direction="b"] .landing-nav { gap: 26px; }
body[data-direction="b"] .landing-hero { max-width: 1360px; height: 704px; grid-template-columns: 48% 52%; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
body[data-direction="b"] .hero-copy { padding: 8px 48px 60px; align-self: start; margin-top: 92px; }
body[data-direction="b"] .hero-copy h1 { font-family: Manrope, Geist, Inter, sans-serif; max-width: 620px; font-size: 62px; line-height: 1.02; letter-spacing: -0.035em; }
body[data-direction="b"] .hero-copy .lead { max-width: 480px; font-size: 17px; }
body[data-direction="b"] .hero-stage { top: 32px; right: 12px; width: 690px; height: 616px; border-left: 1px solid var(--line); }
body[data-direction="b"] .hero-product { top: 70px; width: 674px; height: 482px; border-radius: 4px; box-shadow: 0 22px 55px rgba(25,40,33,.12); transform: none; }
body[data-direction="b"] .hero-intel { right: 26px; bottom: 8px; border-radius: 4px; width: 274px; background: #132a24; }
body[data-direction="b"] .journey-ribbon { left: 48px; right: 48px; bottom: 4px; }
body[data-direction="b"] .primary-btn { box-shadow: none; border-radius: 3px; }
body[data-direction="b"] .secondary-btn { border-radius: 3px; }

/* Unified shell */
.shell { width: 100%; height: 100%; display: grid; grid-template-columns: 68px 236px minmax(0, 1fr); grid-template-rows: 60px minmax(0, 1fr); background: var(--canvas); }
.product-rail { grid-row: 1 / -1; background: var(--shell); color: #8aa098; display: flex; flex-direction: column; align-items: center; padding: 14px 0 12px; gap: 8px; }
.rail-brand { width: 34px; height: 34px; border: 1px solid #2a5144; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 750; margin-bottom: 18px; position: relative; }
.rail-brand::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green-bright); position: absolute; right: -3px; top: 6px; }
.product-icon { width: 40px; height: 40px; border: 0; border-radius: 6px; display: grid; place-items: center; background: transparent; color: #7e958c; position: relative; }
.product-icon.active { color: #fff; background: #123c31; }
.product-icon.active::before { content: ""; width: 2px; height: 22px; border-radius: 2px; background: var(--green-bright); position: absolute; left: -14px; }
.product-icon.future { opacity: .48; }
.rail-spacer { flex: 1; }
.rail-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #dff4eb; background: #1a493b; border: 1px solid #326153; }
.side-nav { grid-row: 1 / -1; grid-column: 2; background: #fbfcfb; border-right: 1px solid var(--line); padding: 20px 14px 14px; display: flex; flex-direction: column; min-width: 0; }
.side-brand { padding: 0 8px 18px; border-bottom: 1px solid var(--line); }
.side-brand b { font-size: 14px; }
.side-brand span { display: block; font-size: 10px; color: #7b8882; margin-top: 3px; }
.side-context { margin: 15px 5px 12px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.side-context small { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; color: #88938e; }
.side-context strong { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; font-size: 12px; font-weight: 650; }
.nav-group { margin-top: 8px; }
.nav-label { padding: 0 9px 7px; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; color: #9aa59f; }
.nav-item { width: 100%; height: 37px; padding: 0 9px; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; border-radius: 5px; color: #52615a; font-size: 11px; text-align: left; }
.nav-item.active { color: #0b6749; background: var(--green-soft); font-weight: 650; }
.nav-item .count { margin-left: auto; color: #7c8983; font-size: 9px; }
.nav-foot { margin-top: auto; padding: 12px 8px 2px; border-top: 1px solid var(--line); }
.nav-foot small { display: block; color: #89958f; font-size: 9px; }
.nav-foot b { display: block; margin-top: 4px; font-size: 10px; }
.topbar { grid-column: 3; grid-row: 1; background: color-mix(in srgb, var(--surface) 94%, transparent); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 18px; padding: 0 20px; min-width: 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #75827c; white-space: nowrap; }
.breadcrumb strong { color: var(--ink); }
.search { margin-left: 18px; width: min(340px, 30vw); height: 34px; border: 1px solid var(--line); background: #f8faf9; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 5px; font-size: 10px; color: #7c8983; }
.search kbd { margin-left: auto; padding: 2px 5px; border: 1px solid #d4ddd8; border-radius: 3px; background: #fff; color: #6f7c76; font: 9px inherit; }
.top-spacer { flex: 1; }
.channel-state { height: 30px; padding: 0 10px; display: flex; align-items: center; gap: 7px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); color: #54635c; font-size: 9px; white-space: nowrap; }
.top-icon { width: 34px; height: 34px; border: 0; background: transparent; color: #66736d; display: grid; place-items: center; position: relative; }
.top-icon .notice { width: 5px; height: 5px; border-radius: 50%; background: var(--red); position: absolute; right: 7px; top: 6px; }
.company-switch { display: flex; align-items: center; gap: 9px; min-width: 142px; }
.company-switch .company-mark { width: 28px; height: 28px; border-radius: 5px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 10px; font-weight: 750; }
.company-switch b { display: block; font-size: 10px; }.company-switch span { display: block; font-size: 8px; color: #82908a; margin-top: 2px; }
.app-main { grid-column: 3; grid-row: 2; min-width: 0; min-height: 0; overflow: hidden; padding: 23px 25px 22px; }
.page { width: 100%; height: 100%; min-width: 0; }
.page-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.page-header .kicker { font-size: 10px; color: var(--green); text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.page-header h1 { margin: 5px 0 0; font-size: 30px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 690; }
.page-header p { margin: 7px 0 0; color: #6c7973; font-size: 11px; }
.page-actions { display: flex; align-items: center; gap: 10px; }
.filter-button { height: 35px; padding: 0 11px; border: 1px solid var(--line); background: #fff; border-radius: 5px; display: flex; align-items: center; gap: 8px; font-size: 10px; color: #53615b; }

body[data-direction="b"] .shell { grid-template-columns: 62px 214px minmax(0,1fr); grid-template-rows: 58px minmax(0,1fr); }
body[data-direction="b"] .side-nav { background: #fff; padding-left: 11px; padding-right: 11px; }
body[data-direction="b"] .product-rail { background: #17201c; }
body[data-direction="b"] .product-icon, body[data-direction="b"] .nav-item { border-radius: 3px; }
body[data-direction="b"] .nav-item.active { background: transparent; box-shadow: inset 2px 0 0 var(--green); }
body[data-direction="b"] .topbar { grid-column: 3; }
body[data-direction="b"] .app-main { padding: 26px 30px 22px; background: #f7f8f6; }
body[data-direction="b"] .page-header { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
body[data-direction="b"] .page-header h1 { font-family: Manrope, Geist, sans-serif; font-size: 32px; }

/* Hub */
.hub-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .7fr); gap: 18px; height: calc(100% - 82px); }
.hub-primary { min-width: 0; display: grid; grid-template-rows: 206px minmax(0, 1fr); gap: 16px; }
.hub-overview { background: var(--shell-2); color: #eff9f5; border-radius: 8px; padding: 23px 25px; display: grid; grid-template-columns: 1.15fr .85fr; position: relative; overflow: hidden; }
.hub-overview::after { content: ""; width: 240px; height: 240px; border: 1px solid rgba(110,231,183,.16); border-radius: 50%; position: absolute; right: -110px; top: -110px; box-shadow: 0 0 0 38px rgba(110,231,183,.025), 0 0 0 76px rgba(110,231,183,.02); }
.hub-overview .eyebrow { color: #79d8b5; }
.hub-overview h2 { margin: 14px 0 10px; font-size: 25px; line-height: 1.15; letter-spacing: -0.02em; }
.hub-overview p { margin: 0; max-width: 440px; color: #a8beb5; font-size: 11px; line-height: 1.55; }
.hub-overview .primary-btn { margin-top: 19px; min-height: 36px; padding: 0 13px; background: #e8fff6; color: #0b5f45; box-shadow: none; }
.overview-pulse { align-self: center; padding-left: 26px; border-left: 1px solid rgba(255,255,255,.12); position: relative; z-index: 1; }
.pulse-row { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.pulse-row:last-child { border-bottom: 0; }.pulse-row span { font-size: 9px; color: #9fb7ae; }.pulse-row b { font-size: 15px; }
.module-composition { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 18px 20px; min-height: 0; overflow: hidden; }
.section-line-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.section-line-head h3 { margin: 0; font-size: 14px; }.section-line-head span { font-size: 9px; color: #7c8983; }
.module-list { display: grid; grid-template-columns: 1.3fr .7fr; min-height: 0; }
.module-core { padding: 18px 18px 0 0; border-right: 1px solid var(--line); }
.module-core-top { display: flex; justify-content: space-between; gap: 15px; }
.module-symbol { width: 38px; height: 38px; border-radius: 7px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.module-copy { flex: 1; }.module-copy h4 { margin: 0 0 5px; font-size: 14px; }.module-copy p { margin: 0; color: #6b7872; font-size: 9px; line-height: 1.45; }
.module-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; border-top: 1px solid var(--line); }
.module-stat { padding: 12px 8px 0 0; }.module-stat span { display: block; font-size: 8px; color: #87928d; }.module-stat b { display: block; margin-top: 4px; font-size: 14px; }
.module-secondary { padding: 18px 0 0 18px; display: grid; align-content: start; gap: 12px; }
.module-row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.module-row:last-child { border-bottom: 0; }.module-row .mini-module { width: 30px; height: 30px; border-radius: 5px; display: grid; place-items: center; background: #f1f5f3; color: #62716a; font-size: 9px; font-weight: 700; }.module-row b { font-size: 10px; display: block; }.module-row small { font-size: 8px; color: #87938d; }
.shared-core { margin-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.35fr repeat(4, 1fr); min-height: 94px; }
.shared-core-title { padding: 17px 16px 10px 0; }.shared-core-title span { display: block; font-size: 8px; text-transform: uppercase; letter-spacing: .09em; color: var(--green); font-weight: 700; }.shared-core-title b { display: block; margin-top: 7px; font-size: 11px; line-height: 1.35; }
.core-capability { border-left: 1px solid var(--line); padding: 16px 10px 10px 13px; }.core-capability i { display: block; font-size: 7px; color: #98a39e; font-style: normal; }.core-capability b { display: block; margin-top: 9px; font-size: 9px; }.core-capability span { display: block; margin-top: 4px; color: #87928d; font-size: 7px; }
.ecosystem-flow { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); min-height: 98px; }
.flow-heading { padding: 16px 16px 10px 0; }.flow-heading span { display: block; font-size: 8px; color: #87938d; text-transform: uppercase; letter-spacing: .08em; }.flow-heading b { display: block; margin-top: 7px; font-size: 11px; }
.flow-event { padding: 15px 12px; border-left: 1px solid var(--line); display: grid; grid-template-columns: 7px 1fr auto; align-content: center; gap: 7px; }.flow-event .dot { color: var(--green-bright); align-self: start; margin-top: 3px; }.flow-event .blue-dot { color: var(--blue); }.flow-event b { display: block; font-size: 8px; }.flow-event span { display: block; margin-top: 4px; font-size: 7px; color: #8a9690; }.flow-event strong { font-size: 10px; color: #9aa59f; }.flow-event em { grid-column: 2 / -1; margin-top: 3px; color: var(--green); font-size: 7px; font-style: normal; font-weight: 650; }.muted-event { opacity: .62; }
.hub-aside { display: grid; grid-template-rows: auto auto 1fr; gap: 14px; }
.aside-section { background: #fff; border-top: 2px solid var(--ink); padding: 15px 16px; }
.aside-section h3 { margin: 0 0 13px; font-size: 12px; }.aside-list { display: grid; gap: 11px; }
.aside-item { display: grid; grid-template-columns: 24px 1fr auto; gap: 9px; align-items: start; }.aside-index { font-size: 9px; color: #98a29e; padding-top: 2px; }.aside-item b { display: block; font-size: 9px; line-height: 1.4; }.aside-item p { margin: 3px 0 0; font-size: 8px; color: #84908a; line-height: 1.4; }.aside-item time { font-size: 8px; color: #8e9994; }
.continuity { background: var(--green-soft); border: 1px solid #cfe8dd; padding: 16px; border-radius: 6px; }.continuity h3 { font-size: 11px; margin: 0 0 8px; }.continuity p { font-size: 9px; line-height: 1.5; color: #48665a; margin: 0 0 12px; }

body[data-direction="b"] .hub-layout { grid-template-columns: 1fr 340px; gap: 24px; }
body[data-direction="b"] .hub-primary { grid-template-rows: 176px minmax(0, 1fr); }
body[data-direction="b"] .hub-overview { color: var(--ink); background: #fff; border-radius: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 19px 0; grid-template-columns: 1.25fr .75fr; }
body[data-direction="b"] .hub-overview::after { display: none; }
body[data-direction="b"] .hub-overview .eyebrow { color: var(--green); }
body[data-direction="b"] .hub-overview h2 { font-size: 24px; margin-top: 12px; }
body[data-direction="b"] .hub-overview p, body[data-direction="b"] .pulse-row span { color: var(--muted); }
body[data-direction="b"] .hub-overview .primary-btn { color: #fff; background: var(--green); }
body[data-direction="b"] .overview-pulse { border-left-color: var(--line); margin-right: 14px; }
body[data-direction="b"] .pulse-row { border-bottom-color: var(--line); }
body[data-direction="b"] .module-composition { border: 0; border-radius: 0; padding: 0; background: transparent; }
body[data-direction="b"] .module-list { background: #fff; border-bottom: 1px solid var(--line); }
body[data-direction="b"] .module-core { padding: 22px 22px 18px 0; }
body[data-direction="b"] .module-secondary { padding: 22px 0 18px 22px; }
body[data-direction="b"] .shared-core { margin-top: 0; background: #fff; }
body[data-direction="b"] .ecosystem-flow { background: #fff; }
body[data-direction="b"] .aside-section { border-top-width: 1px; }
body[data-direction="b"] .continuity { border-radius: 0; }

/* Dashboard */
.dashboard-page { display: grid; grid-template-rows: auto 92px minmax(0, 1fr); height: 100%; }
.metric-band { display: grid; grid-template-columns: 1.45fr repeat(4, 1fr); background: #fff; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.metric-cell { padding: 15px 16px 12px; border-right: 1px solid var(--line); min-width: 0; }
.metric-cell:last-child { border-right: 0; }.metric-cell .metric-label { display: flex; justify-content: space-between; align-items: center; font-size: 9px; color: #74817b; }.metric-cell .metric-value { display: block; font-size: 22px; margin: 7px 0 2px; line-height: 1; font-weight: 680; font-variant-numeric: tabular-nums; }.metric-cell.feature .metric-value { font-size: 26px; }.metric-cell .metric-delta { font-size: 8px; color: var(--green); }.metric-cell .metric-meta { font-size: 7px; color: #96a09b; margin-left: 4px; }
.dashboard-grid { min-height: 0; padding-top: 16px; display: grid; grid-template-columns: 1.15fr .85fr .72fr; grid-template-rows: minmax(235px, 1.1fr) minmax(168px, .9fr); gap: 14px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; min-width: 0; min-height: 0; overflow: hidden; }
.panel-head { min-height: 46px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }.panel-head h3 { margin: 0; font-size: 11px; }.panel-head span { font-size: 8px; color: #84918b; }
.funnel-panel { grid-row: 1 / 3; }
.funnel-body { padding: 17px 18px; }
.funnel-summary { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }.funnel-summary b { font-size: 18px; }.funnel-summary span { font-size: 8px; color: #76837d; }
.funnel-row { display: grid; grid-template-columns: 95px minmax(0,1fr) 62px; gap: 11px; align-items: center; margin-bottom: 12px; }.funnel-label b { display: block; font-size: 9px; }.funnel-label small { display: block; font-size: 7px; color: #909b96; margin-top: 2px; }.funnel-track { height: 25px; background: #f0f4f2; overflow: hidden; position: relative; }.funnel-fill { height: 100%; background: linear-gradient(90deg, #0b7654, #12a873); display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; color: #fff; font-size: 8px; min-width: 34px; }.funnel-value { text-align: right; }.funnel-value b { display: block; font-size: 10px; }.funnel-value small { font-size: 7px; color: #89958f; }
.funnel-foot { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.funnel-foot span { font-size: 8px; color: #7c8983; }.funnel-foot b { display: block; margin-top: 3px; font-size: 11px; }
.trend-panel { grid-column: 2; }.trend-chart { height: calc(100% - 47px); padding: 12px 13px 8px; position: relative; }.trend-chart .gridline { position: absolute; left: 14px; right: 14px; border-top: 1px dashed #e6ebe8; }.trend-chart .gridline.g1 { top: 35%; }.trend-chart .gridline.g2 { top: 65%; }.trend-chart svg { width: 100%; height: 100%; position: relative; z-index: 1; overflow: visible; }.chart-labels { position: absolute; left: 16px; right: 16px; bottom: 9px; display: flex; justify-content: space-between; font-size: 7px; color: #94a09a; }
.intelligence-panel { grid-column: 3; color: #eaf7f2; background: var(--shell-2); border-color: #1b4539; padding: 17px; display: flex; flex-direction: column; }.intel-label { display: flex; align-items: center; gap: 7px; font-size: 8px; color: #74d1ae; text-transform: uppercase; letter-spacing: .09em; }.intelligence-panel h3 { margin: 16px 0 8px; font-size: 15px; line-height: 1.25; }.intelligence-panel p { margin: 0; font-size: 9px; color: #a9c0b7; line-height: 1.5; }.intel-score { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.11); display: flex; justify-content: space-between; align-items: center; }.intel-score span { font-size: 8px; color: #91aaa0; }.intel-score b { font-size: 17px; color: #fff; }
.sources-panel { grid-column: 2; }.source-table { padding: 5px 13px 8px; }.source-row { display: grid; grid-template-columns: 1.25fr .65fr .55fr; align-items: center; min-height: 30px; border-bottom: 1px solid #edf0ee; font-size: 8px; }.source-row:last-child { border-bottom: 0; }.source-row span:nth-child(2), .source-row span:nth-child(3) { text-align: right; }.source-row b { font-size: 8px; }.source-bar { height: 3px; background: #e9efec; margin-top: 3px; width: 80%; }.source-bar i { display: block; height: 100%; background: var(--green); }
.exceptions-panel { grid-column: 3; }.exception-list { padding: 7px 13px; }.exception { display: grid; grid-template-columns: 7px 1fr auto; gap: 8px; padding: 9px 0; border-bottom: 1px solid #edf0ee; align-items: start; }.exception:last-child { border-bottom: 0; }.exception > i { width: 6px; height: 6px; border-radius: 50%; margin-top: 3px; background: var(--amber); }.exception.danger > i { background: var(--red); }.exception b { display: block; font-size: 8px; }.exception p { margin: 3px 0 0; font-size: 7px; color: #8b9691; line-height: 1.35; }.exception time { font-size: 7px; color: #929d98; }

body[data-direction="b"] .dashboard-page { grid-template-rows: auto 104px minmax(0, 1fr); }
body[data-direction="b"] .metric-band { background: transparent; border-top-width: 1px; }
body[data-direction="b"] .metric-cell { padding-left: 0; margin-right: 18px; border-right: 0; border-bottom: 2px solid #ced7d2; }
body[data-direction="b"] .metric-cell.feature { border-bottom-color: var(--green); }
body[data-direction="b"] .metric-cell .metric-value { font-family: Manrope, Geist, sans-serif; font-size: 23px; }
body[data-direction="b"] .dashboard-grid { grid-template-columns: 1.15fr .85fr .72fr; gap: 18px; }
body[data-direction="b"] .panel { border-radius: 0; border-width: 0 0 1px; }
body[data-direction="b"] .panel-head { padding-left: 0; padding-right: 0; }
body[data-direction="b"] .funnel-body { padding-left: 0; padding-right: 0; }
body[data-direction="b"] .funnel-track { height: 19px; }
body[data-direction="b"] .intelligence-panel { border: 0; padding: 18px; background: #132a24; }
body[data-direction="b"] .trend-chart, body[data-direction="b"] .source-table, body[data-direction="b"] .exception-list { padding-left: 0; padding-right: 0; }

/* Workspace */
.workspace-page { height: 100%; margin: -23px -25px -22px; width: calc(100% + 50px); display: grid; grid-template-rows: 56px minmax(0,1fr); background: #fff; position: relative; }
.workspace-header { border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 15px; gap: 12px; }.workspace-header h1 { font-size: 13px; margin: 0; }.workspace-header .tag { margin-left: 4px; }.workspace-header .workspace-actions { margin-left: auto; display: flex; gap: 4px; }
.workspace-grid { display: grid; grid-template-columns: 286px minmax(340px,1fr) 360px; min-height: 0; }
.ticket-list { border-right: 1px solid var(--line); min-width: 0; min-height: 0; display: grid; grid-template-rows: auto auto 1fr; background: #fbfcfb; }
.ticket-list-head { padding: 14px 14px 11px; }.ticket-list-head .head-line { display: flex; align-items: center; justify-content: space-between; }.ticket-list-head h2 { font-size: 12px; margin: 0; }.ticket-list-head span { font-size: 8px; color: #7f8c86; }.ticket-search { height: 32px; margin-top: 11px; border: 1px solid var(--line); background: #fff; border-radius: 5px; display: flex; align-items: center; gap: 7px; padding: 0 9px; color: #8a9690; font-size: 9px; }
.ticket-tabs { height: 38px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3,1fr); padding: 0 10px; }.ticket-tab { border: 0; background: transparent; font-size: 8px; color: #78857f; position: relative; }.ticket-tab.active { color: var(--green); font-weight: 700; }.ticket-tab.active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: -1px; height: 2px; background: var(--green); }
.tickets { overflow: hidden; }.ticket { min-height: 86px; padding: 12px 13px; display: grid; grid-template-columns: 31px 1fr auto; gap: 9px; border-bottom: 1px solid #e9eeeb; position: relative; }.ticket.active { background: #fff; }.ticket.active::before { content: ""; width: 2px; background: var(--green); position: absolute; left: 0; top: 10px; bottom: 10px; }.ticket-avatar { width: 31px; height: 31px; border-radius: 50%; background: #e3eee9; color: #366554; display: grid; place-items: center; font-size: 9px; font-weight: 700; }.ticket-avatar.blue { background: #e9effc; color: #3f5e9d; }.ticket-avatar.amber { background: #f8eedc; color: #8a6428; }.ticket-main b { display: block; font-size: 9px; }.ticket-main p { margin: 5px 0 7px; font-size: 8px; color: #79867f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }.ticket-meta { display: flex; align-items: center; gap: 7px; font-size: 7px; color: #87938d; }.channel-mark { width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; background: #e7f7ef; color: #0d845d; font-size: 7px; font-weight: 750; }.ticket-time { font-size: 7px; color: #8e9994; text-align: right; }.sla { display: block; margin-top: 8px; color: #a96810; font-size: 7px; }
.conversation { min-width: 0; min-height: 0; display: grid; grid-template-rows: 58px 42px minmax(0,1fr) 92px; background: #f7f9f8; }
.conversation-head { padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }.conversation-head .contact-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #dfece6; color: #28614d; font-weight: 700; font-size: 10px; }.conversation-head h2 { font-size: 10px; margin: 0 0 3px; }.conversation-head p { margin: 0; font-size: 7px; color: #83908a; }.conversation-tools { margin-left: auto; display: flex; gap: 3px; }
.control-strip { padding: 0 14px; display: flex; align-items: center; gap: 9px; background: #eff8f4; border-bottom: 1px solid #d5e9df; font-size: 8px; color: #46665a; }.control-strip b { color: #115d44; }.control-strip .control-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 4px rgba(16,185,129,.10); }.control-strip .control-detail { color: #75847d; }.control-strip .control-link { margin-left: auto; font-weight: 650; color: var(--green); }
.messages { overflow: hidden; padding: 16px 20px; display: flex; flex-direction: column; gap: 11px; }.day-marker { align-self: center; font-size: 7px; color: #96a19c; margin: -2px 0 3px; }.message { max-width: 72%; font-size: 9px; line-height: 1.45; padding: 9px 11px; background: #fff; border: 1px solid #e2e8e5; border-radius: 6px 6px 6px 2px; color: #3d4b45; box-shadow: 0 2px 4px rgba(20,37,30,.025); }.message.sent { align-self: flex-end; color: #1f4f3e; background: #e9f6f0; border-color: #d0e9dd; border-radius: 6px 6px 2px 6px; }.message .message-time { display: block; text-align: right; margin-top: 4px; font-size: 6px; color: #89958f; }.internal-note { align-self: center; max-width: 82%; padding: 8px 11px; border-left: 2px solid var(--blue); background: #eef3ff; color: #52678f; font-size: 8px; line-height: 1.4; }
.composer { padding: 10px 14px 12px; background: #fff; border-top: 1px solid var(--line); }.composer-tools { display: flex; align-items: center; gap: 14px; margin-bottom: 7px; font-size: 8px; color: #6d7a74; }.composer-tools span.active { color: var(--green); font-weight: 650; }.composer-box { height: 50px; border: 1px solid #d7dfdb; border-radius: 6px; display: flex; align-items: center; padding: 0 8px 0 12px; color: #93a09a; font-size: 8px; background: #fcfdfc; }.composer-send { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 5px; color: #fff; background: var(--green); display: grid; place-items: center; }
.context-sidebar { min-width: 0; min-height: 0; border-left: 1px solid var(--line); background: #fff; display: grid; grid-template-rows: 58px auto 1fr; overflow: hidden; }.context-head { padding: 0 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }.context-head h2 { margin: 0; font-size: 11px; }.context-head span { font-size: 8px; color: #7d8983; }.context-tabs { display: flex; height: 37px; padding: 0 10px; border-bottom: 1px solid var(--line); }.context-tab { flex: 1; border: 0; background: transparent; font-size: 7px; color: #78857f; position: relative; }.context-tab.active { color: var(--green); font-weight: 700; }.context-tab.active::after { content: ""; position: absolute; height: 2px; background: var(--green); left: 10px; right: 10px; bottom: -1px; }
.context-scroll { padding: 13px 14px; overflow: hidden; }.context-block { padding: 0 0 13px; margin-bottom: 13px; border-bottom: 1px solid var(--line); }.context-block:last-child { border-bottom: 0; }.context-block h3 { font-size: 8px; text-transform: uppercase; letter-spacing: .08em; color: #7e8a84; margin: 0 0 10px; }.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.contact-field span { display: block; font-size: 7px; color: #9aa49f; }.contact-field b { display: block; margin-top: 3px; font-size: 8px; font-weight: 600; }.commercial-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.commercial-cell { padding: 8px; background: #f6f8f7; }.commercial-cell span { display: block; font-size: 7px; color: #8c9792; }.commercial-cell b { display: block; font-size: 9px; margin-top: 4px; }.journey-mini { display: flex; align-items: flex-start; justify-content: space-between; position: relative; }.journey-mini::before { content: ""; position: absolute; left: 10px; right: 10px; top: 7px; height: 1px; background: #d8e0dc; }.journey-mini span { width: 20%; padding-top: 17px; position: relative; text-align: center; font-size: 6px; color: #89958f; }.journey-mini span::before { content: ""; position: absolute; top: 4px; left: 50%; width: 7px; height: 7px; background: #fff; border: 1px solid #a8b5af; border-radius: 50%; transform: translateX(-50%); }.journey-mini span.done::before { background: var(--green); border-color: var(--green); }.next-action { background: var(--shell-2); color: #eef9f5; padding: 12px; border-radius: 6px; }.next-action .intel-label { color: #73d3af; }.next-action b { display: block; font-size: 10px; line-height: 1.4; margin: 9px 0 5px; }.next-action p { margin: 0; font-size: 7px; line-height: 1.45; color: #a9bfb7; }.next-action .action-foot { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; font-size: 7px; color: #8fa9a0; }.next-action .action-foot strong { color: #fff; }
.drawer-close { display: none; }

body[data-direction="b"] .workspace-page { margin: -26px -30px -22px; width: calc(100% + 60px); }
body[data-direction="b"] .ticket-list { background: #fff; }
body[data-direction="b"] .ticket-search, body[data-direction="b"] .message, body[data-direction="b"] .composer-box { border-radius: 2px; }
body[data-direction="b"] .ticket.active { background: #f7f9f7; }
body[data-direction="b"] .ticket.active::before { width: 1px; }
body[data-direction="b"] .control-strip { background: #fff; border-top: 1px solid var(--line); }
body[data-direction="b"] .message { box-shadow: none; border-left-width: 2px; }
body[data-direction="b"] .message.sent { background: #edf8f3; }
body[data-direction="b"] .commercial-cell { background: transparent; border-bottom: 1px solid var(--line); padding-left: 0; }
body[data-direction="b"] .next-action { border-radius: 2px; background: #132a24; }

/* Dedicated mobile composition */
.mobile-workspace { width: 100%; height: 100%; background: #f7f9f8; display: grid; grid-template-rows: 52px 62px 38px minmax(0,1fr) 86px 58px; overflow: hidden; }
.mobile-top { background: var(--shell); color: #fff; display: flex; align-items: center; padding: 0 14px; gap: 12px; }.mobile-top .rail-brand { width: 29px; height: 29px; margin: 0; border-radius: 6px; }.mobile-top b { font-size: 12px; }.mobile-top span { display: block; font-size: 7px; color: #90aaa0; margin-top: 2px; }.mobile-top .top-icon { color: #d6e8e1; margin-left: auto; }
.mobile-contact { background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 13px; gap: 10px; }.mobile-contact .contact-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 700; background: #dfece6; color: #275d4b; }.mobile-contact b { display: block; font-size: 10px; }.mobile-contact span { display: block; margin-top: 3px; font-size: 7px; color: #82908a; }.mobile-contact .mobile-contact-actions { margin-left: auto; display: flex; gap: 2px; }
.mobile-control { background: #edf8f3; border-bottom: 1px solid #d5e9df; padding: 0 13px; display: flex; align-items: center; gap: 8px; color: #345e4e; font-size: 7px; }.mobile-control .control-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--green-bright); }.mobile-control b { color: #0b6c4d; }.mobile-control .text-button { margin-left: auto; font-size: 7px; color: var(--green); }
.mobile-messages { overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 15px 13px; }.mobile-messages .message { max-width: 84%; font-size: 10px; padding: 10px 11px; }.mobile-messages .internal-note { max-width: 92%; font-size: 8px; }
.mobile-composer { background: #fff; border-top: 1px solid var(--line); padding: 8px 10px 10px; }.mobile-composer .composer-tools { margin: 0 0 6px 2px; }.mobile-composer .composer-box { height: 45px; }
.mobile-bottom { background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3,1fr); }.mobile-nav-item { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; border: 0; background: transparent; color: #7f8c86; font-size: 7px; position: relative; }.mobile-nav-item.active { color: var(--green); font-weight: 700; }.mobile-nav-item.active::before { content: ""; height: 2px; width: 30px; background: var(--green); position: absolute; top: -1px; }.mobile-context-peek { position: absolute; right: 0; top: 152px; width: 5px; height: 126px; background: var(--green); border-radius: 3px 0 0 3px; box-shadow: -4px 0 18px rgba(8,122,85,.22); }
body[data-direction="b"] .mobile-workspace { background: #f7f8f6; grid-template-rows: 50px 66px 36px minmax(0,1fr) 84px 58px; }
body[data-direction="b"] .mobile-top { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }.mobile-top .top-icon { color: inherit; }
body[data-direction="b"] .mobile-top .rail-brand { color: var(--green); border-color: #bfcec7; }
body[data-direction="b"] .mobile-control { background: #fff; }
body[data-direction="b"] .mobile-messages .message { border-radius: 2px; }

@media (max-width: 1100px) {
  .shell, body[data-direction="b"] .shell { grid-template-columns: minmax(0,1fr); grid-template-rows: 58px minmax(0,1fr); }
  .product-rail, .side-nav { display: none; }
  .topbar, body[data-direction="b"] .topbar { grid-column: 1; grid-row: 1; }
  .app-main { grid-column: 1; grid-row: 2; padding: 0; }
  .workspace-page, body[data-direction="b"] .workspace-page { margin: 0; width: 100%; grid-template-rows: 52px minmax(0,1fr); }
  .workspace-grid { grid-template-columns: 260px minmax(0,1fr); position: relative; }
  .context-sidebar { position: absolute; z-index: 8; right: 0; top: 0; bottom: 0; width: min(420px, 42vw); box-shadow: -16px 0 42px rgba(15,35,28,.17); border-left-color: #ccd7d2; grid-template-rows: 52px 40px minmax(0,1fr); }
  .context-head { background: var(--shell-2); color: #fff; }.context-head span { color: #a7bbb3; }.context-head::before { content: "Contexto completo"; font-size: 10px; font-weight: 650; }.context-head h2 { display: none; }
  .drawer-close { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.18); color: #fff; background: transparent; border-radius: 4px; }
  .context-tabs { padding: 0 7px; }.context-tab { font-size: 7px; }.context-scroll { overflow: hidden; }
  .conversation { grid-template-rows: 54px 40px minmax(0,1fr) 92px; }
  .messages { padding-right: 24px; }
  .search { width: 260px; margin-left: 10px; }
  .company-switch { min-width: 126px; }
  .channel-state { display: none; }
}

@media (max-width: 700px) {
  .mobile-workspace { min-width: 0; }
}
