:root {
  color-scheme: light;
  --paper: #f2f4eb;
  --paper-deep: #e9ece1;
  --surface: #fffef9;
  --surface-soft: rgba(255, 254, 249, .74);
  --ink: #0c2d29;
  --muted: #536861;
  --quiet: #62736d;
  --teal: #08766b;
  --teal-dark: #07594f;
  --lime: #dafe76;
  --lime-soft: #edfbc7;
  --orange: #c87042;
  --blue: #397fc2;
  --line: rgba(12, 45, 41, .13);
  --line-strong: rgba(12, 45, 41, .22);
  --shadow: 0 24px 80px rgba(35, 57, 45, .09);
  --display: "Iowan Old Style", "Palatino Linotype", "Noto Serif SC", serif;
  --body: "Aptos", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: radial-gradient(circle at 82% 2%, rgba(207,231,198,.5), transparent 30%), radial-gradient(circle at 8% 78%, rgba(216,229,238,.38), transparent 28%), var(--paper); background-attachment: fixed; font-family: var(--body); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

:where(a[href], button):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.paper-grid { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .48; background-image: linear-gradient(rgba(12,45,41,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(12,45,41,.04) 1px, transparent 1px); background-size: 76px 76px; mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -60px; padding: 11px 16px; border-radius: 10px; background: var(--ink); color: white; transition: top .2s ease; }
.skip-link:focus { top: 16px; }

.app-shell { position: relative; z-index: auto; min-height: 100vh; display: grid; grid-template-columns: 254px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; min-width: 0; padding: 26px 18px 18px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(253,253,248,.96), rgba(241,246,237,.92)); box-shadow: 10px 0 45px rgba(32,58,47,.035); backdrop-filter: blur(18px); }
.sidebar-head { min-height: 48px; display: flex; align-items: center; justify-content: space-between; }
.brand { min-width: 0; display: flex; align-items: center; gap: 14px; }
.brand img { width: 118px; height: auto; }
.brand span { padding-left: 13px; border-left: 1px solid var(--line-strong); color: var(--teal); font: 600 12px/1.1 var(--display); letter-spacing: -.02em; }
.sidebar-close.icon-button, .mobile-menu.icon-button { display: none; }

.workspace-menu { position: relative; margin-top: 30px; }
.workspace-trigger { position: relative; width: 100%; min-width: 0; padding: 11px; display: grid; grid-template-columns: 37px minmax(0,1fr) 16px; gap: 10px; align-items: center; overflow: hidden; text-align: left; border: 1px solid rgba(8,118,107,.2); border-radius: 14px; background: linear-gradient(125deg, rgba(255,255,255,.8), rgba(225,239,221,.62)); box-shadow: 0 10px 28px rgba(30,58,45,.05); transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }
.workspace-trigger:hover { transform: translateY(-2px); border-color: rgba(8,118,107,.34); background: var(--surface); box-shadow: 0 14px 34px rgba(30,58,45,.09); }
.workspace-trigger > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.workspace-trigger small { color: var(--muted); font-size: 8px; letter-spacing: .08em; }
.workspace-trigger strong { overflow: hidden; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.workspace-trigger svg, .profile-trigger svg, .filter-trigger svg, .select-trigger svg { width: 16px; height: 16px; transition: transform .2s ease; }
[aria-expanded="true"] > svg { transform: rotate(180deg); }
.workspace-emblem { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; background: var(--ink); color: var(--lime); font: 700 10px var(--display); letter-spacing: .08em; }

.primary-nav { min-height: 0; margin-top: 28px; padding-right: 3px; display: grid; gap: 5px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(12,45,41,.18) transparent; }
.nav-label { margin: 0 12px 6px; color: var(--quiet); font-size: 8px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.nav-label-spaced { margin-top: 20px; }
.nav-item { position: relative; width: 100%; min-width: 0; min-height: 43px; padding: 0 12px; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 11px; align-items: center; overflow: hidden; text-align: left; border-radius: 12px; background: transparent; color: var(--muted); transition: color .2s ease, background .2s ease, transform .2s ease; }
.nav-item:hover { color: var(--ink); background: rgba(255,255,255,.62); transform: translateX(2px); }
.nav-item.is-active { color: var(--ink); background: linear-gradient(100deg, #fffef9, #f4f8ed); box-shadow: 0 9px 26px rgba(30,54,45,.075); }
.nav-item.is-active::before { content: ""; position: absolute; inset: 9px auto 9px 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--teal); }
.nav-item svg { width: 18px; height: 18px; }
.nav-item.is-active svg { color: var(--teal); }
.nav-item span { min-width: 0; overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.nav-item b { min-width: 22px; padding: 3px 7px; border-radius: 20px; background: var(--paper-deep); color: var(--muted); font-size: 9px; text-align: center; }
.nav-item em { color: var(--quiet); font-size: 8px; font-style: normal; }
.nav-item i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(8,118,107,.08); }

.sidebar-foot { margin-top: auto; padding: 14px 4px 2px; border-top: 1px solid var(--line); }
.trial-note { display: grid; grid-template-columns: 8px minmax(0,1fr); align-items: center; gap: 10px; }
.trial-note div { min-width: 0; display: grid; gap: 2px; }
.trial-note strong { font-size: 10px; }
.trial-note small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(8,118,107,.09); animation: livePulse 2s ease-in-out infinite; }
.trial-note[data-state="checking"] .live-dot,
.trial-note[data-state="syncing"] .live-dot { background: var(--blue); box-shadow: 0 0 0 5px rgba(57,127,194,.1); }
.trial-note[data-state="offline"] .live-dot,
.trial-note[data-state="warning"] .live-dot { background: var(--orange); box-shadow: 0 0 0 5px rgba(200,112,66,.1); animation: none; }
.trial-note[data-state="connected"] strong { color: var(--teal); }
.platform-links { margin-top: 13px; display: grid; gap: 2px; }
.platform-links a { min-width: 0; min-height: 30px; padding: 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 8px; color: var(--muted); font-size: 9px; transition: color .2s ease, background .2s ease, transform .2s ease; }
.platform-links a:hover { color: var(--teal); background: rgba(255,255,255,.58); transform: translateX(2px); }
.platform-links span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platform-links b { color: var(--quiet); font-size: 9px; font-weight: 700; }

.workspace-stage { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; min-height: 86px; padding: 18px clamp(22px, 3vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: rgba(246,248,239,.86); box-shadow: 0 10px 32px rgba(35,57,45,.035); backdrop-filter: blur(18px); }
.topbar-context { min-width: 0; display: flex; align-items: center; gap: 12px; }
.topbar-context > div { min-width: 0; }
.topbar-context p { margin: 0 0 5px; color: var(--teal); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.topbar-context h1 { max-width: 560px; margin: 0; overflow: hidden; font: 500 clamp(17px, 1.7vw, 23px)/1.2 var(--display); letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { min-width: 0; display: flex; align-items: center; gap: 10px; }
.global-search { width: clamp(230px, 24vw, 350px); min-width: 0; height: 43px; padding: 0 11px; display: grid; grid-template-columns: 18px minmax(0,1fr) auto; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.68); transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.global-search:focus-within { border-color: rgba(8,118,107,.46); background: var(--surface); box-shadow: 0 0 0 4px rgba(8,118,107,.07); }
.global-search svg { width: 17px; height: 17px; color: var(--muted); }
.global-search input { min-width: 0; border: 0; outline: 0; background: transparent; font-size: 11px; }
.global-search input::placeholder { color: var(--quiet); }
.global-search kbd { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--quiet); font: 8px var(--body); }
.icon-button { width: 41px; height: 41px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.62); transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.icon-button:hover { transform: translateY(-1px); border-color: var(--line-strong); background: var(--surface); }
.icon-button svg { width: 18px; height: 18px; }
.notification-button { position: relative; }
.notification-button i { position: absolute; right: 8px; top: 8px; width: 6px; height: 6px; border: 2px solid var(--surface); border-radius: 50%; background: var(--orange); }
.dropdown { position: relative; }
.profile-trigger { max-width: 190px; height: 43px; padding: 0 9px 0 5px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.72); box-shadow: 0 8px 24px rgba(30,54,45,.045); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.profile-trigger:hover { transform: translateY(-1px); border-color: rgba(8,118,107,.3); box-shadow: 0 12px 28px rgba(30,54,45,.08); }
.profile-trigger > span { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: white; font: 600 12px var(--display); }
.profile-trigger > strong { max-width: 96px; overflow: hidden; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.profile-trigger svg { width: 14px; height: 14px; }
.menu-popover { position: absolute; z-index: 50; top: calc(100% + 8px); right: 0; min-width: 190px; padding: 7px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(255,254,249,.97); box-shadow: 0 22px 60px rgba(27,48,40,.15); backdrop-filter: blur(20px); animation: menuIn .16s ease both; }
.menu-popover.is-drop-up { top: auto; bottom: calc(100% + 8px); transform-origin: bottom right; }
.workspace-popover { left: 0; right: auto; width: 100%; }
.menu-option { width: 100%; min-width: 0; padding: 10px 11px; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; border-radius: 9px; background: transparent; color: var(--muted); font-size: 10px; }
.menu-option:hover, .menu-option.is-selected { background: var(--paper); color: var(--ink); }
.menu-option:focus-visible { outline: 0; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px rgba(8,118,107,.28); }
.menu-option small { color: var(--quiet); font-size: 8px; }
.profile-summary { padding: 9px 10px 13px; display: grid; grid-template-columns: 33px minmax(0,1fr); align-items: center; gap: 9px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.profile-summary > span { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: white; }
.profile-summary div { min-width: 0; display: grid; gap: 2px; }
.profile-summary code { overflow: hidden; color: #347d74; font: 600 8px/1.3 ui-monospace, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.profile-id-label { color: #347d74 !important; font-size: 7px !important; font-weight: 800; letter-spacing: .12em; }
.profile-summary strong { font-size: 10px; }
.profile-summary small { color: var(--muted); font-size: 8px; }
.profile-trigger > span,.profile-summary > span { overflow: hidden; }
.profile-trigger > span img,.profile-summary > span img { width: 100%; height: 100%; display: block; object-fit: cover; }

#workspace-main { width: min(1560px, 100%); margin: 0 auto; padding: 34px clamp(22px, 3vw, 48px) 70px; }
.command-banner { position: relative; min-height: 300px; padding: clamp(30px, 4vw, 55px); display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: center; gap: 30px; overflow: hidden; border: 1px solid rgba(8,118,107,.23); border-radius: 28px; background: linear-gradient(118deg, #dbeae0 0%, #eef3df 58%, #dcebbf 100%); box-shadow: 0 28px 90px rgba(35,57,45,.12), inset 0 1px rgba(255,255,255,.7); }
.command-banner::before { content: ""; position: absolute; inset: -55% -10% auto auto; width: 570px; aspect-ratio: 1; border: 1px solid rgba(12,45,41,.11); border-radius: 46%; transform: rotate(20deg); animation: meshDrift 14s ease-in-out infinite alternate; }
.command-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--teal) 0 22%, var(--lime) 22% 35%, transparent 35%); }
.command-copy { position: relative; z-index: 2; min-width: 0; }
.command-copy > p:first-child { margin: 0 0 20px; color: var(--teal); font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.command-copy > p:first-child span { margin-right: 13px; padding: 5px 8px; border-radius: 20px; background: var(--teal); color: white; letter-spacing: .08em; }
.command-copy > p:first-child b { font: inherit; }
.command-copy h2 { max-width: 790px; margin: 0; font: 500 clamp(34px, 4.2vw, 64px)/.98 var(--display); letter-spacing: -.055em; }
.command-copy h2 em { color: var(--teal); font-style: normal; }
.command-note { max-width: 660px; margin: 23px 0 0; color: #506b63; font-size: 12px; line-height: 1.8; }
.command-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.primary-button, .quiet-button { min-height: 43px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; border-radius: 12px; font-size: 10px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.primary-button { background: var(--ink); color: white; box-shadow: 0 10px 28px rgba(12,45,41,.16); }
.primary-button:hover { transform: translateY(-2px); background: var(--teal-dark); box-shadow: 0 14px 34px rgba(12,45,41,.2); }
.primary-button span { color: var(--lime); font-size: 15px; }
.quiet-button { border: 1px solid var(--line-strong); background: rgba(255,255,255,.42); color: var(--ink); }
.quiet-button:hover { transform: translateY(-1px); background: var(--surface); }
.focus-orbit { position: relative; z-index: 2; width: 190px; height: 190px; justify-self: end; display: grid; place-items: center; }
.focus-orbit svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.focus-orbit svg circle { fill: none; stroke: rgba(12,45,41,.1); stroke-width: 4; }
.focus-orbit svg .orbit-value { stroke: var(--teal); stroke-dasharray: 364; stroke-dashoffset: 364; stroke-linecap: round; transition: stroke-dashoffset .7s cubic-bezier(.2,.7,.2,1); }
.focus-orbit > div { display: grid; justify-items: center; }
.focus-orbit strong { font: 500 48px/1 var(--display); letter-spacing: -.05em; }
.focus-orbit strong b { font: inherit; }
.focus-orbit strong small { margin-left: 2px; color: var(--teal); font-size: 16px; }
.focus-orbit span { margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.orbit-satellite { position: absolute; width: 10px; height: 10px; border: 2px solid #dce7d0; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(200,112,66,.12); }
.satellite-one { right: 16px; top: 36px; }
.satellite-two { left: 10px; bottom: 52px; width: 7px; height: 7px; background: var(--lime); }

.metric-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.metric-grid article { position: relative; min-width: 0; min-height: 148px; padding: 22px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(145deg, rgba(255,254,249,.94), rgba(244,247,239,.8)); box-shadow: 0 12px 38px rgba(35,57,45,.045); backdrop-filter: blur(9px); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.metric-grid article::before { content: ""; position: absolute; left: 22px; top: 0; width: 58px; height: 3px; border-radius: 0 0 4px 4px; background: var(--metric-color, var(--teal)); }
.metric-grid article:nth-child(2) { --metric-color: #397fc2; }
.metric-grid article:nth-child(3) { --metric-color: #c87042; }
.metric-grid article:nth-child(4) { --metric-color: #8fb44b; }
.metric-grid article:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 16px 45px rgba(24,48,39,.08); }
.metric-grid article::after { content: ""; position: absolute; right: -34px; bottom: -62px; width: 120px; height: 120px; border: 1px solid var(--line); border-radius: 50%; }
.metric-grid article > span { color: var(--muted); font-size: 10px; }
.metric-grid article > strong { margin-top: 14px; font: 500 39px/1 var(--display); letter-spacing: -.04em; }
.metric-grid article > small { margin-top: auto; color: var(--quiet); font-size: 8px; }
.metric-grid article i { margin-right: 5px; color: var(--ink); font-style: normal; font-weight: 750; }
.metric-grid .trend-up { color: var(--teal); }
.metric-grid .metric-accent { background: var(--ink); color: white; }
.metric-grid .metric-accent span, .metric-grid .metric-accent small { color: rgba(255,255,255,.62); }
.metric-grid .metric-accent i { color: var(--lime); }
.metric-grid .metric-accent::after { border-color: rgba(255,255,255,.15); }

.dashboard-grid { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .68fr); align-items: start; gap: 14px; }
.panel { min-width: 0; border: 1px solid rgba(12,45,41,.14); border-radius: 22px; background: linear-gradient(145deg, rgba(255,254,249,.91), rgba(248,249,242,.82)); box-shadow: 0 20px 64px rgba(35,57,45,.07), inset 0 1px rgba(255,255,255,.72); backdrop-filter: blur(12px); }
.pipeline-panel, .daily-panel, .momentum-panel { padding: 24px; }
.panel-head { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.panel-head > div:first-child { min-width: 0; }
.panel-head p { margin: 0 0 6px; color: var(--teal); font-size: 8px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.panel-head h3 { margin: 0; font: 500 23px/1.1 var(--display); letter-spacing: -.025em; }
.filter-trigger { min-height: 36px; padding: 0 11px 0 13px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 9px; }
.filter-popover { min-width: 150px; }
.pipeline { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(150px,1fr)); gap: 10px; }
.pipeline-column { min-width: 0; padding: 11px; border: 1px solid rgba(12,45,41,.07); border-top: 3px solid var(--stage-color); border-radius: 15px; background: rgba(232,236,225,.72); box-shadow: inset 0 1px rgba(255,255,255,.55); }
.pipeline-column-head { padding: 2px 3px 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pipeline-column-head div { min-width: 0; display: flex; align-items: center; gap: 7px; }
.pipeline-column-head i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--stage-color, var(--teal)); }
.pipeline-column-head strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.pipeline-column-head span { color: var(--muted); font-size: 8px; }
.lead-card { min-width: 0; padding: 13px; border: 1px solid rgba(12,45,41,.09); border-radius: 12px; background: var(--surface); box-shadow: 0 5px 14px rgba(30,53,44,.04); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.lead-card + .lead-card { margin-top: 8px; }
.lead-card:hover { transform: translateY(-2px); border-color: rgba(8,118,107,.25); box-shadow: 0 12px 28px rgba(30,53,44,.09); }
.lead-card-top { display: flex; justify-content: space-between; gap: 8px; }
.lead-card strong { min-width: 0; overflow: hidden; font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.lead-card button { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: var(--paper); color: var(--muted); font-size: 10px; transition: background .2s ease, color .2s ease; }
.lead-card button:hover { background: var(--lime-soft); color: var(--teal); }
.pipeline-more { width: 100%; margin-top: 8px; padding: 8px 10px; border: 1px dashed var(--line); border-color: color-mix(in srgb, var(--stage-color) 38%, var(--line)); border-radius: 10px; background: rgba(255,255,255,.42); color: var(--muted); font: 750 8px var(--body); text-align: center; transition: background .2s ease, color .2s ease, transform .2s ease; }
.pipeline-more:hover { transform: translateY(-1px); background: var(--surface); color: var(--teal); }
.lead-card > p { min-height: 28px; margin: 7px 0 11px; color: var(--muted); font-size: 8px; line-height: 1.6; }
.lead-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lead-meta span { padding: 3px 6px; border-radius: 10px; background: var(--paper); color: var(--muted); font-size: 7px; }
.lead-meta small { color: var(--quiet); font-size: 7px; }

.compact { align-items: start; }
.task-counter { padding: 5px 8px; border-radius: 20px; background: var(--lime-soft); color: var(--teal); font-size: 8px; font-weight: 800; }
.task-list { margin-top: 21px; display: grid; gap: 4px; }
.task-empty { margin: 0; padding: 24px 12px; border: 1px dashed var(--line); border-radius: 13px; color: var(--quiet); font-size: 8px; line-height: 1.65; text-align: center; }
.task-item { min-width: 0; padding: 12px 0; display: grid; grid-template-columns: 29px minmax(0,1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.task-check { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: transparent; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.task-check:hover { transform: scale(1.05); border-color: var(--teal); }
.task-check svg { width: 13px; height: 13px; stroke-width: 2.3; }
.task-item.is-done .task-check { border-color: var(--teal); background: var(--teal); color: white; }
.task-item.is-done .task-copy { opacity: .48; text-decoration: line-through; }
.task-copy { min-width: 0; display: grid; gap: 3px; }
.task-copy strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.task-copy small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.task-time { color: var(--quiet); font-size: 8px; white-space: nowrap; }
.insight-card { margin-top: 18px; padding: 15px; display: grid; grid-template-columns: 31px minmax(0,1fr) 25px; align-items: start; gap: 11px; border: 1px solid rgba(8,118,107,.18); border-radius: 14px; background: #e9f2df; }
.insight-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; background: var(--teal); color: var(--lime); font: 600 13px var(--display); }
.insight-card div { min-width: 0; }
.insight-card small { color: var(--teal); font-size: 7px; font-weight: 850; letter-spacing: .12em; }
.insight-card p { margin: 5px 0 0; color: #405d54; font-size: 8px; line-height: 1.65; }
.insight-card button { width: 25px; height: 25px; border-radius: 8px; background: rgba(255,255,255,.66); color: var(--teal); }

.momentum-panel { margin-top: 14px; background: linear-gradient(135deg, rgba(255,254,249,.94), rgba(229,238,226,.84)); }
.text-button { padding: 7px 0; background: transparent; color: var(--teal); font-size: 9px; font-weight: 750; }
.momentum-layout { margin-top: 24px; display: grid; grid-template-columns: minmax(0,1fr) 230px; gap: 28px; align-items: stretch; }
.bar-chart { height: 165px; padding-top: 14px; display: grid; grid-template-columns: repeat(7, minmax(28px,1fr)); align-items: end; gap: clamp(8px, 2vw, 24px); border-bottom: 1px solid var(--line); background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px); background-size: 100% 25%; }
.bar-chart div { height: 100%; min-width: 0; display: grid; grid-template-rows: 1fr 24px; align-items: end; justify-items: center; }
.bar-chart i { width: min(28px, 70%); height: var(--value); min-height: 3px; border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg, #b7d3c5, #d5e1d6); box-shadow: inset 0 1px rgba(255,255,255,.6); transform-origin: bottom; animation: growBar .8s cubic-bezier(.2,.7,.2,1) both; }
.bar-chart span { align-self: center; color: var(--quiet); font-size: 7px; }
.bar-chart .is-today i { background: var(--teal); box-shadow: 0 0 0 5px rgba(8,118,107,.06); }
.bar-chart .is-today span { color: var(--teal); font-weight: 800; }
.momentum-summary { min-width: 0; padding: 22px; display: flex; flex-direction: column; justify-content: center; border-radius: 17px; background: var(--paper-deep); }
.momentum-summary > span { color: var(--muted); font-size: 9px; }
.momentum-summary strong { margin-top: 7px; font: 500 48px/1 var(--display); }
.momentum-summary p { margin: 13px 0 0; color: var(--muted); font-size: 8px; line-height: 1.6; }
.momentum-summary b { color: var(--teal); }

.records-hero { padding: 28px 2px 30px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.records-hero > div { min-width: 0; }
.records-hero p { margin: 0 0 11px; color: var(--teal); font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.records-hero h2 { margin: 0; font: 500 clamp(38px, 5vw, 68px)/1 var(--display); letter-spacing: -.055em; }
.records-hero > div > span { display: block; margin-top: 14px; color: var(--muted); font-size: 11px; }
.records-panel { overflow: hidden; }
.records-toolbar { min-height: 69px; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.segmented-control { padding: 4px; display: flex; gap: 3px; border-radius: 11px; background: var(--paper-deep); }
.segmented-control button { min-height: 31px; padding: 0 12px; border-radius: 8px; background: transparent; color: var(--muted); font-size: 8px; }
.segmented-control button.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 3px 10px rgba(30,53,44,.06); }
.records-toolbar > span { color: var(--muted); font-size: 9px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; min-width: 820px; border-collapse: collapse; }
th, td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--quiet); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
td { color: var(--muted); font-size: 9px; }
tbody tr { transition: background .2s ease; }
tbody tr:hover { background: rgba(242,244,235,.65); }
.record-name { display: grid; gap: 4px; }
.record-name strong { color: var(--ink); font-size: 10px; }
.record-name small { color: var(--quiet); font-size: 8px; }
.stage-pill { display: inline-flex; padding: 5px 8px; border-radius: 20px; background: var(--paper-deep); color: var(--teal); font-size: 8px; font-weight: 750; white-space: nowrap; }
.priority-dot { display: inline-flex; align-items: center; gap: 6px; }
.priority-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.row-action { width: 28px; height: 28px; border-radius: 8px; background: transparent; color: var(--muted); }
.row-action:hover { background: var(--paper-deep); color: var(--teal); }
.empty-state { padding: 70px 20px; text-align: center; }
.empty-state > span { width: 45px; height: 45px; margin: 0 auto; display: grid; place-items: center; border-radius: 14px; background: var(--paper-deep); color: var(--teal); font-size: 20px; }
.empty-state h3 { margin: 15px 0 6px; font: 500 20px var(--display); }
.empty-state p { margin: 0; color: var(--muted); font-size: 9px; }

.module-content { min-width: 0; display: grid; gap: 14px; }
.module-hero .primary-button b { color: var(--lime); font-size: 15px; }
.section-heading { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.section-heading > div { min-width: 0; }
.section-heading p { margin: 0 0 7px; color: var(--teal); font-size: 8px; font-weight: 850; letter-spacing: .14em; }
.section-heading h3 { margin: 0; font: 500 23px/1.15 var(--display); letter-spacing: -.025em; }
.section-heading > span, .safe-chip { flex: none; padding: 6px 9px; border-radius: 20px; background: var(--paper-deep); color: var(--muted); font-size: 8px; font-weight: 750; }
.module-metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.module-metric { min-width: 0; min-height: 128px; padding: 20px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,254,249,.8); }
.module-metric span { color: var(--muted); font-size: 9px; }
.module-metric strong { margin: 14px 0; overflow-wrap: anywhere; font: 500 clamp(27px, 3vw, 40px)/1 var(--display); letter-spacing: -.04em; }
.module-metric small { margin-top: auto; color: var(--quiet); font-size: 8px; }
.module-metric.is-accent { border-color: var(--ink); background: var(--ink); color: white; box-shadow: 0 18px 46px rgba(7,31,27,.14); }
.module-metric.is-accent span, .module-metric.is-accent small { color: rgba(255,255,255,.64); }
.module-empty { min-height: 220px; padding: 28px; display: grid; place-content: center; justify-items: center; text-align: center; }
.module-empty > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--paper-deep); color: var(--teal); font: 600 15px var(--display); }
.module-empty strong { margin-top: 14px; font: 500 18px var(--display); }
.module-empty p { max-width: 240px; margin: 8px 0 0; color: var(--muted); font-size: 9px; line-height: 1.65; }

.acquisition-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(280px,.6fr); gap: 14px; align-items: start; }
.acquisition-builder, .acquisition-queue { padding: 24px; }
.compact-form-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.channel-picker { margin-top: 22px; display: grid; gap: 10px; }
.channel-picker > span { color: var(--muted); font-size: 9px; font-weight: 700; }
.channel-picker > div { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.channel-picker label { min-width: 0; position: relative; }
.channel-picker input { position: absolute; opacity: 0; pointer-events: none; }
.channel-picker label > span { min-height: 62px; padding: 12px 13px; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.channel-picker b { font-size: 9px; }
.channel-picker small { overflow: hidden; color: var(--quiet); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.channel-picker input:checked + span { border-color: rgba(8,118,107,.45); background: #e7f0e5; box-shadow: inset 3px 0 0 var(--teal); }
.channel-picker input:focus-visible + span { outline: 3px solid rgba(8,118,107,.13); }
.acquisition-builder > footer { margin-top: 22px; padding-top: 17px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); }
.acquisition-builder > footer p { max-width: 430px; margin: 0; color: var(--muted); font-size: 8px; line-height: 1.6; }
.acquisition-queue { display: grid; gap: 12px; }
.acquisition-queue > article { min-width: 0; padding: 15px; display: grid; gap: 5px; border-radius: 13px; background: var(--paper-deep); }
.acquisition-queue > article > span { color: var(--teal); font-size: 8px; font-weight: 800; }
.acquisition-queue > article strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.acquisition-queue > article small, .acquisition-queue > article p { margin: 0; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

.crm-table-panel { padding: 0 0 20px; overflow: hidden; }
.crm-grid { padding: 18px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.crm-card { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.crm-card header, .crm-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.crm-card > strong { margin-top: 18px; display: block; overflow: hidden; font: 500 18px var(--display); text-overflow: ellipsis; white-space: nowrap; }
.crm-card > p { margin: 6px 0 16px; color: var(--muted); font-size: 8px; }
.crm-card dl, .quote-card dl, .product-card dl { margin: 0; display: grid; gap: 8px; }
.crm-card dl > div, .quote-card dl > div, .product-card dl > div { min-width: 0; display: flex; justify-content: space-between; gap: 12px; }
.crm-card dt, .quote-card dt, .product-card dt { color: var(--quiet); font-size: 8px; }
.crm-card dd, .quote-card dd, .product-card dd { margin: 0; overflow: hidden; color: var(--muted); font-size: 8px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.crm-card footer { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.crm-card footer span { color: var(--muted); font-size: 8px; }
.crm-card footer button, .order-column article button, .channel-card button, .integration-card button, .integration-card a, .bridge-queue button { background: transparent; color: var(--teal); font-size: 8px; font-weight: 750; }
.priority-text { color: var(--orange) !important; font-weight: 800; }

.task-workspace { padding: 24px; }
.task-board { margin-top: 17px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 28px; }
.cadence-strip { margin-top: 22px; padding: 15px; display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto minmax(190px,1.2fr); align-items: center; gap: 10px; border-radius: 13px; background: var(--paper-deep); }
.cadence-strip span { color: var(--teal); font-size: 8px; font-weight: 800; }
.cadence-strip i { height: 1px; background: var(--line-strong); }
.cadence-strip p { margin: 0; color: var(--muted); font-size: 8px; text-align: right; }
.safety-banner { padding: 15px 18px; display: flex; align-items: center; gap: 16px; border: 1px solid rgba(8,118,107,.18); border-radius: 14px; background: #e8f1e5; }
.safety-banner span { flex: none; padding: 6px 9px; border-radius: 20px; background: var(--ink); color: white; font-size: 8px; font-weight: 800; }
.safety-banner p { margin: 0; color: #48635b; font-size: 9px; line-height: 1.6; }
.draft-grid, .quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.draft-card, .quote-card { padding: 20px; }
.draft-card header, .quote-card header, .draft-card footer, .quote-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.draft-card header > span:first-child, .quote-card header > span:first-child { color: var(--quiet); font-size: 8px; }
.draft-card > p { margin: 24px 0 7px; color: var(--teal); font-size: 9px; font-weight: 750; }
.draft-card h3, .quote-card h3 { margin: 0; font: 500 20px/1.25 var(--display); }
.draft-card dl { margin: 23px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.draft-card dt { color: var(--quiet); font-size: 8px; }
.draft-card dd { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.draft-card footer, .quote-card footer { margin-top: 18px; padding-top: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.quote-edit { margin-right: auto; }

.connection-banner { padding: 19px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.connection-banner > div { min-width: 0; display: flex; align-items: center; gap: 14px; }
.connection-icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--ink); color: var(--lime); font: 600 20px var(--display); }
.connection-banner p, .analytics-board > div > p, .account-card > span, .usage-card > p { margin: 0 0 5px; color: var(--teal); font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.connection-banner h3 { margin: 0; font: 500 20px var(--display); }
.connection-banner small { color: var(--muted); font-size: 8px; }
.mail-list { overflow: hidden; }
.mail-list > article { min-width: 0; padding: 15px 18px; display: grid; grid-template-columns: 80px minmax(170px,1.2fr) auto minmax(160px,.8fr) 34px; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.mail-list > article:last-child { border-bottom: 0; }
.mail-list > article > div { min-width: 0; display: grid; gap: 4px; }
.mail-list strong, .mail-list small, .mail-list p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-list strong { font-size: 9px; }.mail-list small, .mail-list p, .mail-direction { margin: 0; color: var(--muted); font-size: 8px; }

.product-bridge, .team-layout, .analytics-board, .account-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 14px; align-items: stretch; }
.bridge-hero { min-height: 390px; padding: clamp(28px,4vw,54px); overflow: hidden; background: linear-gradient(135deg, var(--ink), #154e46); color: white; }
.bridge-index { color: var(--lime); font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.bridge-hero h3 { margin: 34px 0 18px; font: 500 clamp(34px,4vw,58px)/.98 var(--display); letter-spacing: -.05em; }
.bridge-hero > p { max-width: 560px; color: rgba(255,255,255,.68); font-size: 10px; line-height: 1.8; }
.bridge-status { margin: 28px 0 22px; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.72); font-size: 8px; }
.bridge-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }.bridge-status i.is-live { background: var(--lime); }
.bridge-hero > div:last-child { display: flex; flex-wrap: wrap; gap: 9px; }
.bridge-hero .primary-button { background: white; color: var(--ink); }.bridge-hero .quiet-button { border-color: rgba(255,255,255,.3); color: white; }
.bridge-queue { padding: 24px; }
.bridge-queue > article { padding: 14px 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 12px; border-bottom: 1px solid var(--line); }
.bridge-queue > article strong { font-size: 9px; }.bridge-queue > article small { color: var(--muted); font-size: 8px; }.bridge-queue > article button { grid-row: 1 / 3; grid-column: 2; }

.quote-card > strong { margin: 18px 0 22px; display: block; color: var(--teal); font: 500 34px/1 var(--display); }
.order-board { min-width: 0; padding-bottom: 6px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px,1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; }
.order-column { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 17px; background: rgba(232,236,225,.66); scroll-snap-align: start; }
.order-column > header { padding: 3px 3px 12px; display: flex; justify-content: space-between; gap: 10px; }
.order-column > header span { font-size: 9px; font-weight: 800; }.order-column > header b { color: var(--muted); font-size: 8px; }
.order-column > article { padding: 15px; display: grid; gap: 8px; border: 1px solid rgba(12,45,41,.09); border-radius: 13px; background: var(--surface); }
.order-column > article + article { margin-top: 8px; }.order-column article small { color: var(--quiet); font-size: 7px; }.order-column article strong { font-size: 10px; }.order-column article p { margin: 3px 0; font: 500 23px var(--display); }.order-column article span, .order-column article em { color: var(--muted); font-size: 8px; font-style: normal; }.order-column article button { margin-top: 7px; text-align: left; }
.order-empty { margin: 0; padding: 26px 10px; color: var(--quiet); font-size: 8px; text-align: center; }

.catalog-toolbar { padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.catalog-toolbar > div { min-width: 0; display: grid; gap: 5px; }
.catalog-toolbar > div > span { color: var(--teal); font-size: 8px; font-weight: 850; letter-spacing: .13em; }
.catalog-toolbar strong { font: 500 21px var(--display); }
.catalog-toolbar small { color: var(--muted); font-size: 8px; }
.catalog-toolbar > span { flex: none; padding: 7px 10px; border-radius: 20px; background: var(--paper-deep); color: var(--teal); font-size: 8px; font-weight: 800; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; }
.product-card { min-width: 0; overflow: hidden; padding: 19px; }
.product-card.is-listed { border-color: rgba(8,118,107,.28); box-shadow: inset 0 3px 0 var(--teal), 0 18px 60px rgba(35,57,45,.055); }
.product-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-card header > span { min-width: 0; overflow: hidden; color: var(--teal); font-size: 8px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.listing-pill { flex: none; padding: 5px 8px; border-radius: 20px; background: var(--paper-deep); color: var(--muted); font-size: 7px; }
.product-card.is-listed .listing-pill { background: #e3efdf; color: var(--teal); }
.product-card h3 { min-height: 48px; margin: 12px 0 5px; overflow-wrap: anywhere; font: 500 20px/1.2 var(--display); }.product-card > small { display: block; max-width: 100%; overflow: hidden; color: var(--quiet); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.product-card > p { min-height: 42px; margin: 16px 0 0; color: var(--muted); font-size: 8px; line-height: 1.65; overflow-wrap: anywhere; }
.product-card dd { max-width: 65%; overflow-wrap: anywhere; text-align: right; }
.product-card dl { margin-top: 18px; }.product-card footer { margin-top: 18px; padding-top: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.catalog-action { min-height: 32px; padding: 0 10px; border-radius: 9px; background: var(--paper-deep); color: var(--ink); font-size: 8px; font-weight: 750; }
.catalog-action:hover { background: #e3efdf; color: var(--teal); }
.product-card footer .text-button { margin-left: auto; }
.import-drop { min-height: 112px; padding: 20px; display: grid; grid-template-columns: 42px minmax(0,1fr); align-content: center; gap: 5px 14px; border: 1px dashed var(--line-strong); border-radius: 17px; background: rgba(255,255,255,.36); cursor: pointer; }
.import-drop input { position: absolute; opacity: 0; pointer-events: none; }.import-drop > span { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--paper-deep); color: var(--teal); font-size: 19px; }.import-drop strong { font-size: 9px; }.import-drop small { color: var(--muted); font-size: 8px; }
.import-drop:hover, .import-drop:focus-within { border-color: var(--teal); background: rgba(238,247,231,.7); box-shadow: 0 0 0 3px rgba(8,118,107,.08); }
.module-pagination { padding: 4px 2px; display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--muted); font-size: 8px; }
.module-pagination button { min-width: 88px; min-height: 34px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); color: var(--ink); font: 750 8px var(--body); cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.module-pagination button:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--teal); background: var(--paper); }
.module-pagination button:disabled { opacity: .42; cursor: not-allowed; }
.product-empty { min-height: 250px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.45); }

.channel-summary { padding: 25px; display: grid; grid-template-columns: 210px minmax(0,1fr); align-items: center; gap: 28px; border-radius: 20px; background: var(--ink); color: white; }
.channel-summary > div { display: flex; align-items: center; gap: 14px; }.channel-summary span { color: var(--lime); font: 500 48px/1 var(--display); }.channel-summary p { margin: 0; color: rgba(255,255,255,.66); font-size: 9px; line-height: 1.7; }
.channel-catalog { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.channel-card { min-width: 0; min-height: 210px; padding: 18px; display: grid; grid-template-columns: 30px minmax(0,1fr); grid-template-rows: 1fr auto; gap: 12px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-soft); }.channel-card.is-ready { box-shadow: inset 0 3px 0 var(--teal); }.channel-card > span { color: var(--quiet); font: 500 15px var(--display); }.channel-card small { color: var(--teal); font-size: 7px; font-weight: 800; }.channel-card h3 { margin: 10px 0 7px; font: 500 19px var(--display); }.channel-card p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.6; }.channel-card footer { grid-column: 1 / -1; padding-top: 13px; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }.channel-card footer b { color: var(--muted); font-size: 8px; }

.team-roster, .permission-card, .analytics-board, .account-card, .entitlement-list, .usage-card { padding: 24px; }
.team-roster > article { min-width: 0; padding: 14px 0; display: grid; grid-template-columns: 38px minmax(160px,1fr) minmax(70px,.45fr) minmax(85px,.55fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }.member-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: var(--lime); font: 600 14px var(--display); }.team-roster article > div { min-width: 0; display: grid; gap: 4px; }.team-roster strong { font-size: 9px; }.team-roster small, .team-roster article > span:not(.member-avatar), .team-roster b { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.permission-card p, .account-card > span, .usage-card > p { color: var(--teal); font-size: 8px; font-weight: 850; letter-spacing: .13em; }.permission-card h3, .account-card h3, .usage-card h3 { margin: 10px 0 18px; font: 500 26px/1.1 var(--display); }.permission-card ul, .usage-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 9px; line-height: 2; }.permission-card a, .account-card a { margin-top: 22px; display: inline-flex; color: var(--teal); font-size: 9px; font-weight: 750; }
.analytics-board { grid-template-columns: minmax(180px,.45fr) minmax(320px,1fr) minmax(220px,.55fr); }.analytics-board > div h3 { margin: 0; font: 500 28px var(--display); }.analytics-bars { display: grid; gap: 14px; }.analytics-bars article { display: grid; grid-template-columns: 60px minmax(0,1fr) 22px; align-items: center; gap: 10px; }.analytics-bars span, .analytics-bars b { font-size: 8px; }.analytics-bars div { height: 8px; overflow: hidden; border-radius: 10px; background: var(--paper-deep); }.analytics-bars i { height: 100%; display: block; border-radius: inherit; background: var(--teal); }.analytics-board aside { padding: 18px; border-radius: 15px; background: var(--paper-deep); }.analytics-board aside span { color: var(--teal); font-size: 8px; font-weight: 800; }.analytics-board aside strong { margin: 12px 0; display: block; font: 500 20px/1.2 var(--display); }.analytics-board aside p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.6; }

.account-layout { grid-template-columns: repeat(3, minmax(0,1fr)); }.account-card > p { color: var(--muted); font-size: 9px; line-height: 1.7; }.account-card > div { margin-top: 24px; padding: 13px; display: flex; justify-content: space-between; gap: 12px; border-radius: 12px; background: var(--paper-deep); font-size: 8px; }.entitlement-list > article { padding: 14px 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 12px; border-bottom: 1px solid var(--line); }.entitlement-list > article strong { font-size: 9px; }.entitlement-list > article small { color: var(--muted); font-size: 8px; }
.account-backup-actions { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.account-backup-action { position: relative; min-width: 0; min-height: 38px; padding: 9px 10px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--paper); color: var(--ink); font: 750 8px var(--body); text-align: center; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.account-backup-action:hover { transform: translateY(-1px); border-color: var(--teal); background: var(--paper-deep); }
.account-backup-action:focus-within, .account-backup-action:focus-visible { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,118,107,.12); }
.account-backup-action input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.account-export-note { display: block; margin-top: 8px; color: var(--muted); font-size: 7px; line-height: 1.55; }
.integration-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; }.integration-card { min-height: 230px; padding: 20px; display: flex; flex-direction: column; }.integration-card > span { color: var(--quiet); font: 500 16px var(--display); }.integration-card > small { margin-top: 20px; color: var(--teal); font-size: 8px; font-weight: 800; }.integration-card h3 { margin: 8px 0; font: 500 21px var(--display); }.integration-card > p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.65; }.integration-card footer { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }.admin-integration { background: var(--ink); color: white; }.admin-integration > p, .admin-integration > small, .admin-integration > span { color: rgba(255,255,255,.6); }.admin-integration footer { border-color: rgba(255,255,255,.12); }.admin-integration .stage-pill { background: rgba(255,255,255,.1); color: var(--lime); }.admin-integration a { color: var(--lime); }
.workflow-form-grid { grid-column: 1 / -1; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 17px; }

.modal-backdrop { position: fixed; z-index: 80; inset: 0; padding: 24px; display: grid; place-items: center; background: rgba(7,31,27,.5); backdrop-filter: blur(10px); animation: backdropIn .2s ease both; }
.modal-card { width: min(680px, 100%); max-height: min(780px, calc(100vh - 48px)); overflow: auto; border: 1px solid rgba(255,255,255,.55); border-radius: 24px; background: var(--surface); box-shadow: 0 36px 100px rgba(7,31,27,.28); animation: modalIn .28s cubic-bezier(.2,.7,.2,1) both; }
.modal-card:focus { outline: 0; }
.modal-card > header { position: sticky; top: 0; z-index: 2; padding: 22px 24px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(255,254,249,.94); backdrop-filter: blur(12px); }
.modal-card header p { margin: 0 0 6px; color: var(--teal); font-size: 8px; font-weight: 850; letter-spacing: .16em; }
.modal-card header h2 { margin: 0; font: 500 28px var(--display); }
.modal-card form { padding: 24px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 17px; }
.field { min-width: 0; display: grid; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field > span:first-child { color: var(--muted); font-size: 9px; font-weight: 700; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: var(--paper); font-size: 10px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.field input { height: 44px; padding: 0 13px; }
.field textarea { resize: vertical; min-height: 78px; padding: 12px 13px; }
.field input:focus, .field textarea:focus { border-color: rgba(8,118,107,.5); background: white; box-shadow: 0 0 0 4px rgba(8,118,107,.07); }
.field input[readonly] { color: var(--muted); cursor: not-allowed; background: color-mix(in srgb, var(--paper) 72%, var(--line)); }
.field input::placeholder, .field textarea::placeholder { color: var(--quiet); }
.form-select { min-width: 0; }
.select-trigger { width: 100%; height: 44px; padding: 0 12px 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: var(--paper); color: var(--ink); text-align: left; font-size: 10px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.select-trigger:hover { border-color: var(--line-strong); background: #f8f8f2; }
.select-trigger:focus-visible, .select-trigger[aria-expanded="true"] { border-color: rgba(8,118,107,.5); background: white; box-shadow: 0 0 0 4px rgba(8,118,107,.07); }
.select-trigger span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-trigger svg { flex: 0 0 auto; color: var(--muted); }
.select-popover { left: 0; right: auto; width: 100%; min-width: 100%; padding: 6px; z-index: 90; }
.select-popover .menu-option { min-height: 38px; display: grid; grid-template-columns: 7px minmax(0,1fr) auto; gap: 10px; padding: 8px 10px; }
.select-popover .menu-option::before { content: ""; width: 7px; height: 7px; border: 1px solid rgba(8,118,107,.28); border-radius: 50%; }
.select-popover .menu-option.is-selected::before { border-color: var(--teal); background: var(--teal); box-shadow: 0 0 0 3px rgba(8,118,107,.1); }
.select-popover .menu-option small { justify-self: end; letter-spacing: .06em; }
.form-note { grid-column: 1 / -1; padding: 12px 14px; display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: center; gap: 10px; border-radius: 11px; background: var(--lime-soft); }
.form-note span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(8,118,107,.25); border-radius: 50%; color: var(--teal); font: 600 11px var(--display); }
.form-note p { margin: 0; color: #526b63; font-size: 8px; line-height: 1.55; }
.modal-card form footer { grid-column: 1 / -1; padding-top: 4px; display: flex; justify-content: flex-end; gap: 9px; }
.auth-modal-card { width: min(540px, 100%); }
.auth-intro { padding: 16px; display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 14px; border: 1px solid rgba(8,118,107,.14); border-radius: 15px; background: linear-gradient(135deg, #e7efe5, #f5f6eb); }
.auth-orbit { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); font: 600 18px var(--display); box-shadow: 0 0 0 6px rgba(8,118,107,.06); }
.auth-intro div { min-width: 0; }
.auth-intro strong { display: block; font: 500 16px/1.25 var(--display); }
.auth-intro p { margin: 6px 0 0; color: var(--muted); font-size: 9px; line-height: 1.65; }
.auth-register-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 17px; padding: 16px; border: 1px solid rgba(8,118,107,.14); border-radius: 15px; background: linear-gradient(145deg, rgba(231,239,229,.72), rgba(255,254,249,.84)); }
.auth-register-heading { grid-column: 1 / -1; display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.auth-register-heading span { color: var(--teal); font-size: 8px; font-weight: 850; letter-spacing: .16em; }
.auth-register-heading strong { font: 500 17px/1.25 var(--display); }
.auth-register-heading small { color: var(--muted); font-size: 8px; line-height: 1.55; }
.auth-status { padding: 11px 13px; border-radius: 10px; background: var(--paper-deep); color: var(--muted); font-size: 9px; line-height: 1.55; }
.auth-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.auth-consent input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--teal); flex: 0 0 auto; }
.auth-consent a { color: var(--teal); text-underline-offset: 2px; }
.auth-status[data-state="working"] { color: var(--blue); }
.auth-status[data-state="ready"] { background: #e7f1df; color: var(--teal); }
.auth-status[data-state="error"] { background: #f7e9df; color: #914d2c; }
.auth-footer { flex-wrap: wrap; }
.auth-footer [data-auth-back], .auth-footer [data-auth-resend] { margin-right: auto; }
.auth-footer [data-auth-back] + [data-auth-resend]:not([hidden]) { margin-right: 0; }
.primary-button:disabled { cursor: wait; opacity: .62; transform: none; }
.quiet-button:disabled { cursor: wait; opacity: .5; }

.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: min(360px, calc(100vw - 48px)); padding: 13px 16px; display: grid; grid-template-columns: 25px minmax(0,1fr); align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; background: var(--ink); color: white; box-shadow: 0 18px 48px rgba(7,31,27,.25); animation: toastIn .3s cubic-bezier(.2,.8,.2,1) both; }
.toast span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: var(--lime); color: var(--ink); font-weight: 900; }
.toast p { margin: 0; font-size: 9px; line-height: 1.5; }
.mobile-scrim { position: fixed; z-index: 58; inset: 0; background: rgba(7,31,27,.4); backdrop-filter: blur(3px); }

.reveal { opacity: 0; transform: translateY(16px); animation: revealUp .65s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal-one { animation-delay: .04s; }.reveal-two { animation-delay: .12s; }.reveal-three { animation-delay: .2s; }.reveal-four { animation-delay: .28s; }.reveal-five { animation-delay: .36s; }
@keyframes revealUp { to { opacity: 1; transform: translateY(0); } }
@keyframes menuIn { from { opacity: 0; transform: translateY(-5px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes backdropIn { from { background: rgba(7,31,27,0); backdrop-filter: blur(0); } to { background: rgba(7,31,27,.5); backdrop-filter: blur(10px); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes livePulse { 50% { box-shadow: 0 0 0 8px rgba(8,118,107,0); } }
@keyframes meshDrift { to { transform: translate(-42px, 28px) rotate(32deg); border-radius: 38%; } }
@keyframes drawOrbit { from { stroke-dashoffset: 364; } to { stroke-dashoffset: 138; } }
@keyframes growBar { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (max-width: 1240px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .daily-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .daily-panel .panel-head { grid-column: 1 / -1; }
  .daily-panel .insight-card { align-self: end; }
  .pipeline { grid-template-columns: repeat(2, minmax(190px,1fr)); }
  .module-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .crm-grid, .channel-catalog, .integration-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .analytics-board { grid-template-columns: minmax(170px,.45fr) minmax(280px,1fr); }
  .analytics-board aside { grid-column: 1 / -1; }
}

@media (max-width: 1040px) {
  .app-shell { grid-template-columns: 224px minmax(0,1fr); }
  .sidebar { padding-inline: 14px; }
  .brand img { width: 104px; }
  .brand span { font-size: 10px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .global-search { width: 240px; }
  .draft-grid, .quote-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .account-layout { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .usage-card { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; width: min(300px, 88vw); height: 100dvh; transform: translateX(-105%); transition: transform .28s cubic-bezier(.2,.7,.2,1); box-shadow: 22px 0 70px rgba(7,31,27,.2); }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-close.icon-button, .mobile-menu.icon-button { display: grid; }
  .topbar { min-height: 76px; }
  .topbar-context h1 { font-size: 17px; }
  .global-search { width: 210px; }
  .notification-button { display: none; }
  .command-banner { grid-template-columns: 1fr; }
  .focus-orbit { position: absolute; right: 20px; top: 20px; width: 118px; height: 118px; opacity: .42; }
  .command-copy { padding-right: 70px; }
  .momentum-layout { grid-template-columns: 1fr; }
  .momentum-summary { min-height: 140px; }
  .acquisition-layout, .product-bridge, .team-layout, .analytics-board, .account-layout { grid-template-columns: 1fr; }
  .analytics-board aside, .usage-card { grid-column: auto; }
  .mail-list > article { grid-template-columns: 66px minmax(150px,1fr) auto 34px; }
  .mail-list > article > p { display: none; }
  .team-roster > article { grid-template-columns: 38px minmax(140px,1fr) auto; }
  .team-roster article > span:not(.member-avatar), .team-roster article > b { display: none; }
}

@media (max-width: 620px) {
  .topbar { padding: 14px 16px; }
  .topbar-context p { display: none; }
  .topbar-context h1 { max-width: 190px; font-size: 15px; }
  .global-search { width: 43px; grid-template-columns: 18px; place-content: center; padding: 0; }
  .global-search input, .global-search kbd { display: none; }
  .profile-trigger { padding-right: 5px; }
  .profile-trigger > strong { display: none; }
  .profile-trigger svg { display: none; }
  #workspace-main { padding: 20px 14px 52px; }
  .command-banner { min-height: 360px; padding: 27px 22px; border-radius: 22px; align-items: end; }
  .command-copy { padding-right: 0; }
  .command-copy h2 { font-size: 37px; }
  .command-note { font-size: 10px; }
  .focus-orbit { top: 14px; right: 14px; width: 102px; height: 102px; }
  .focus-orbit strong { font-size: 33px; }
  .metric-grid { gap: 9px; }
  .metric-grid article { min-height: 134px; padding: 17px; border-radius: 16px; }
  .metric-grid article > strong { font-size: 33px; }
  .pipeline-panel, .daily-panel, .momentum-panel { padding: 18px; }
  .panel-head h3 { font-size: 20px; }
  .pipeline { grid-template-columns: 1fr; }
  .daily-panel { display: block; }
  .records-hero { align-items: start; }
  .records-hero h2 { font-size: 43px; }
  .records-hero > div > span { max-width: 220px; font-size: 9px; }
  .records-hero .primary-button { min-width: 43px; padding: 0 13px; }
  .records-hero .primary-button #records-action-label { display: none; }
  .module-hero .primary-button #module-action-label { display: none; }
  .records-toolbar { align-items: flex-start; flex-direction: column; gap: 9px; }
  .segmented-control { width: 100%; }
  .segmented-control button { flex: 1; padding-inline: 6px; }
  .modal-backdrop { padding: 10px; }
  .modal-card { max-height: calc(100dvh - 20px); border-radius: 20px; }
  .modal-card form { padding: 18px; grid-template-columns: 1fr; }
  .field-wide, .form-note, .modal-card form footer { grid-column: 1; }
  .auth-register-grid { grid-template-columns: 1fr; }
  .auth-footer { display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .auth-footer button { width: 100%; margin: 0 !important; }
  .workflow-form-grid { grid-template-columns: 1fr; }
  .module-metrics, .crm-grid, .task-board, .draft-grid, .quote-grid, .product-grid, .channel-catalog, .integration-grid { grid-template-columns: 1fr; }
  .acquisition-builder, .acquisition-queue, .task-workspace, .team-roster, .permission-card, .analytics-board, .account-card, .entitlement-list, .usage-card { padding: 18px; }
  .compact-form-grid, .channel-picker > div { grid-template-columns: 1fr; }
  .acquisition-builder > footer, .connection-banner, .safety-banner { align-items: stretch; flex-direction: column; }
  .cadence-strip { grid-template-columns: auto 1fr auto 1fr auto 1fr auto; }
  .cadence-strip p { grid-column: 1 / -1; text-align: left; }
  .mail-list > article { grid-template-columns: minmax(0,1fr) auto 30px; }
  .mail-direction { display: none; }
  .channel-summary { grid-template-columns: 1fr; gap: 12px; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; }
  .module-pagination { justify-content: space-between; gap: 8px; }
  .module-pagination button { min-width: 76px; }
  .channel-summary > div { align-items: baseline; }
  .bridge-hero { min-height: 350px; }
  .toast { right: 14px; bottom: 14px; max-width: calc(100vw - 28px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
