:root {
  --ink: #172a27;
  --ink-soft: #50635d;
  --ink-faint: #798881;
  --line: #e3e8e0;
  --paper: #f6f7f2;
  --white: #fff;
  --forest: #173b35;
  --forest-deep: #102c28;
  --mint: #e4f3ed;
  --mint-ink: #1c6551;
  --amber: #fff2d9;
  --amber-ink: #94611c;
  --rose: #ffebe7;
  --rose-ink: #a04337;
  --blue: #e9f0ff;
  --blue-ink: #375a9c;
  --shadow: 0 12px 36px rgba(23, 45, 37, .045);
  font-family: "Aptos", "Segoe UI", Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #d99632;
  outline-offset: 3px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 30; padding: 10px 14px; border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }

.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { display: flex; flex-direction: column; gap: 22px; padding: 30px 17px 20px; background: var(--forest-deep); color: #d7e4de; min-height: 100vh; position: sticky; top: 0; height: 100vh; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; color: white; padding: 3px 12px 23px; border-bottom: 1px solid rgba(255,255,255,.11); }
.brand-mark { display: grid; grid-template-columns: repeat(2, 12px); gap: 3px; transform: rotate(-12deg); }
.brand-mark span { width: 12px; height: 12px; background: #c8e8ae; border-radius: 3px; }
.brand-mark span:nth-child(2), .brand-mark span:nth-child(3) { background: #e7c477; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 21px; letter-spacing: -.06em; line-height: 1; }
.brand-copy small { font-size: 10px; color: #acc0b7; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-section-label { padding: 0 14px; color: #87a49a; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
#primary-nav { display: grid; gap: 6px; }
.nav-link { display: flex; align-items: center; gap: 13px; min-height: 43px; padding: 0 13px; border-radius: 11px; color: #bacdc5; font-size: 13px; font-weight: 650; transition: background .15s, color .15s; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-link[aria-current="page"] { color: #173b35; background: #d8ebd8; }
.nav-link .nav-icon { width: 19px; height: 19px; flex: none; }
.nav-link .nav-count { margin-left: auto; min-width: 22px; border-radius: 6px; padding: 3px 5px; text-align: center; background: rgba(255,255,255,.11); font-size: 10px; }
.nav-link[aria-current="page"] .nav-count { background: #bdd8bc; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 15px; }
.evidence-card { display: flex; gap: 10px; align-items: start; padding: 14px 12px; border: 1px solid rgba(223,242,226,.13); border-radius: 13px; background: rgba(255,255,255,.04); }
.evidence-card div { display: grid; gap: 4px; }
.evidence-card strong { color: #f2f9f3; font-size: 12px; }
.evidence-card span:not(.evidence-dot) { color: #9fb6ad; font-size: 11px; line-height: 1.4; }
.evidence-dot { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #e7c477; flex: none; }
.reset-button { padding: 10px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: transparent; color: #d1e1d9; text-align: left; font-size: 11px; font-weight: 650; }
.reset-button:hover { background: rgba(255,255,255,.08); }

.workspace { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 20px; height: 78px; padding: 0 clamp(22px, 3.1vw, 52px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.84); }
.topbar-location { display: grid; gap: 2px; min-width: 130px; }
.topbar-caption { color: var(--ink-faint); font-size: 9px; letter-spacing: .17em; font-weight: 800; }
.topbar-location strong { font-size: 14px; letter-spacing: -.02em; }
.topbar-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.global-search { display: flex; align-items: center; gap: 9px; width: min(290px, 24vw); height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8faf7; color: var(--ink-faint); }
.global-search > span { font-size: 23px; line-height: 0; transform: translateY(-1px); }
.global-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.global-search:focus-within { outline: 3px solid #d99632; outline-offset: 3px; }
.global-search input::placeholder { color: #8a9991; }
.global-search kbd { border: 1px solid #dce5db; border-radius: 4px; padding: 2px 5px; font: 10px inherit; color: #84928b; }
.agent-pill { display: flex; align-items: center; gap: 8px; color: #354b44; font-size: 12px; font-weight: 650; white-space: nowrap; }
.agent-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #dceadc; color: #275347; font-size: 10px; font-weight: 800; }
.mobile-menu { display: none; }
.demo-banner { display: flex; gap: 9px; align-items: center; min-height: 38px; padding: 8px clamp(22px, 3.1vw, 52px); border-bottom: 1px solid #f4e1bc; background: #fff7e7; color: #765a27; font-size: 11px; line-height: 1.4; }
.demo-banner strong { white-space: nowrap; }
.demo-banner-icon { font-size: 17px; }
#main { max-width: 1500px; margin: 0 auto; padding: 34px clamp(22px, 3.1vw, 52px) 70px; outline: none; }
#main:focus-visible { outline: 3px solid #d99632; outline-offset: -3px; }

.page-header { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 27px; }
.eyebrow { margin: 0 0 8px; color: #6c8a74; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: clamp(27px, 2.6vw, 39px); line-height: 1.13; letter-spacing: -.065em; font-weight: 750; }
h2 { margin-bottom: 4px; font-size: 19px; letter-spacing: -.045em; }
h3 { margin-bottom: 4px; font-size: 15px; letter-spacing: -.025em; }
.subhead { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.header-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 9px 14px; border: 1px solid transparent; border-radius: 10px; font-size: 12px; font-weight: 750; line-height: 1.25; white-space: nowrap; }
.button-primary { background: var(--forest); color: white; }
.button-primary:hover { background: #23564c; }
.button-secondary { border-color: #d8e3d9; background: white; color: var(--forest); }
.button-secondary:hover { background: #f1f7f0; }
.button-quiet { border-color: transparent; background: transparent; color: var(--forest); }
.button-quiet:hover { background: #ecf3ec; }
.button:disabled { cursor: not-allowed; opacity: .5; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 17px; color: #44685b; font-size: 12px; font-weight: 750; }
.back-link:hover { text-decoration: underline; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.metric { position: relative; min-height: 126px; overflow: hidden; padding: 20px 20px 17px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.metric::after { content: ""; position: absolute; right: -23px; bottom: -35px; width: 94px; height: 94px; border-radius: 50%; background: var(--metric-wash, #f4f6f0); }
.metric[data-tone="rose"] { --metric-wash: #fff0ea; }
.metric[data-tone="amber"] { --metric-wash: #fff5df; }
.metric[data-tone="mint"] { --metric-wash: #e7f4ed; }
.metric-label { display: block; position: relative; z-index: 1; color: var(--ink-soft); font-size: 11px; font-weight: 650; }
.metric-value { display: block; position: relative; z-index: 1; margin-top: 10px; font-size: 30px; font-weight: 800; letter-spacing: -.065em; }
.metric-foot { display: block; position: relative; z-index: 1; margin-top: 6px; color: var(--ink-faint); font-size: 10px; }
.grid-two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 18px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 17px; background: var(--white); box-shadow: var(--shadow); }
.panel-pad { padding: 21px; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 10px; padding: 21px 22px 17px; }
.panel-heading p { margin: 0; color: var(--ink-faint); font-size: 11px; }
.text-link { color: var(--mint-ink); font-size: 11px; font-weight: 750; }
.text-link:hover { text-decoration: underline; }
.section-spaced { margin-top: 22px; }
.empty-state { padding: 40px 22px; color: var(--ink-soft); text-align: center; font-size: 13px; }
.empty-state strong { display: block; color: var(--ink); margin-bottom: 5px; }

.queue-cards { display: grid; gap: 11px; margin-top: 19px; }
.queue-card { display: flex; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border .15s, transform .15s; }
.queue-card:hover { border-color: #a3c6ad; transform: translateY(-2px); }
.queue-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 11px; background: #e7f2e9; color: #23594a; font-size: 18px; flex: none; }
.queue-card:nth-child(2) .queue-icon { background: #fff0e0; color: #ac673a; }
.queue-card:nth-child(3) .queue-icon { background: #fceae8; color: #a94940; }
.queue-card-copy { display: grid; gap: 4px; min-width: 0; }
.queue-card-copy strong { font-size: 12px; }
.queue-card-copy small { color: var(--ink-faint); font-size: 10px; line-height: 1.3; }
.queue-number { margin-left: auto; color: var(--ink); font-size: 19px; font-weight: 800; }
.surface-note { display: flex; gap: 9px; padding: 14px 16px; border: 1px solid #dce7df; border-radius: 11px; background: #f4f9f4; color: #3b6755; font-size: 11px; line-height: 1.5; }
.surface-note strong { color: #265040; }
.surface-note .note-icon { font-size: 16px; line-height: 1; }

.ticket-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.tabs { display: flex; align-items: center; gap: 4px; max-width: 100%; overflow-x: auto; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.tab { border: 0; border-radius: 8px; padding: 9px 13px; background: transparent; color: #65746d; font-size: 11px; font-weight: 750; white-space: nowrap; }
.tab:hover { background: #f4f7f2; }
.tab[aria-current="page"], .tab[aria-selected="true"] { background: var(--forest); color: #fff; }
.tab-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 4px; border-radius: 5px; background: rgba(255,255,255,.2); font-size: 9px; }
.tabs .tab:not([aria-current="page"]) .tab-count { background: #eaf0e9; }
.list-search { width: min(250px, 100%); height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font-size: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 13px 17px; border-bottom: 1px solid var(--line); background: #fbfcf9; color: #7a8b81; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
td { padding: 16px 17px; border-bottom: 1px solid #edf0e9; color: #40534b; font-size: 11px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdf9; }
.ticket-title { display: grid; gap: 6px; min-width: 240px; }
.ticket-title a { color: #163c33; font-size: 12px; font-weight: 750; line-height: 1.35; }
.ticket-title a:hover { text-decoration: underline; }
.ticket-title small, .row-secondary { color: var(--ink-faint); font-size: 10px; }
.row-primary { color: #334c42; font-weight: 700; }
.status, .chip, .source-tag { display: inline-flex; align-items: center; justify-content: center; gap: 5px; max-width: 100%; border-radius: 7px; padding: 5px 8px; font-size: 10px; font-weight: 750; line-height: 1.2; white-space: nowrap; }
.status { background: var(--blue); color: var(--blue-ink); }
.status[data-kind="paused"] { background: var(--amber); color: var(--amber-ink); }
.status[data-kind="resolved"] { background: var(--mint); color: var(--mint-ink); }
.chip { background: #f0f3ed; color: #586c5f; }
.chip[data-kind="today"] { background: #e4f1e5; color: #236749; }
.chip[data-kind="overdue"] { background: var(--rose); color: var(--rose-ink); }
.chip[data-kind="soon"] { background: var(--amber); color: var(--amber-ink); }
.source-tag { background: #ecf3ed; color: #4c785f; }
.source-tag[data-kind="pending"] { background: #fff2dc; color: #98651f; }
.source-tag[data-kind="demo"] { background: #eff1f6; color: #68717f; }
.queue-rule { margin: 0 0 15px; color: #64766b; font-size: 11px; line-height: 1.45; }

.detail-heading { display: flex; justify-content: space-between; gap: 15px; align-items: start; margin-bottom: 18px; }
.detail-id { display: inline-block; margin-bottom: 7px; color: #74907d; font-size: 11px; font-weight: 800; letter-spacing: .09em; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .85fr); align-items: start; gap: 18px; }
.detail-main { display: grid; gap: 18px; min-width: 0; }
.detail-aside { display: grid; gap: 18px; min-width: 0; }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.ticket-description { margin: 14px 0 0; color: #43564d; font-size: 13px; line-height: 1.65; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.section-title-row h2 { margin: 0; }
.event-list { position: relative; display: grid; gap: 18px; padding-left: 25px; }
.event-list::before { content: ""; position: absolute; left: 7px; top: 5px; bottom: 5px; width: 1px; background: #dfe8df; }
.event { position: relative; }
.event::before { content: ""; position: absolute; left: -25px; top: 4px; width: 13px; height: 13px; border: 3px solid white; border-radius: 50%; background: #78aa85; box-shadow: 0 0 0 1px #cfe0d2; }
.event[data-kind="private"]::before { background: #e9bd76; }
.event[data-kind="public"]::before { background: #88a7d6; }
.event-header { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 5px; }
.event-header strong { font-size: 11px; }
.event-header time { color: var(--ink-faint); font-size: 10px; }
.event p { margin: 0; color: #5f7065; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.event .chip { padding: 3px 6px; font-size: 9px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; color: #586b60; font-size: 10px; font-weight: 800; }
.field-full { grid-column: 1 / -1; }
.field select, .field textarea, .field input { width: 100%; min-width: 0; min-height: 37px; padding: 8px 10px; border: 1px solid #d8e1d8; border-radius: 8px; background: #fbfcf9; color: #263e33; font-size: 11px; font-weight: 550; }
.field textarea { min-height: 102px; resize: vertical; line-height: 1.5; }
.field-hint { margin: -1px 0 0; color: #89988c; font-size: 10px; font-weight: 400; line-height: 1.35; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.compose-tabs { display: inline-flex; gap: 4px; margin-bottom: 14px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #f8faf6; }
.compose-tab { padding: 7px 11px; border: 0; border-radius: 6px; background: transparent; color: #5c7064; font-size: 10px; font-weight: 750; }
.compose-tab[aria-pressed="true"] { background: white; color: #1f5542; box-shadow: 0 1px 5px rgba(0,0,0,.07); }
.compose-help { margin: 12px 0 0; color: #8a6b3c; font-size: 10px; line-height: 1.5; }
.relation-list { display: grid; gap: 11px; margin-top: 15px; }
.relation-item { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #edf0e9; padding-bottom: 10px; font-size: 11px; }
.relation-item:last-child { border-bottom: 0; padding-bottom: 0; }
.relation-item span { color: var(--ink-faint); }
.relation-item strong { text-align: right; font-weight: 700; }

.crm-intro { display: grid; grid-template-columns: 1.6fr .9fr; gap: 18px; margin-bottom: 19px; }
.crm-hero { position: relative; min-height: 165px; overflow: hidden; padding: 27px; border-radius: 17px; background: #20483e; color: white; }
.crm-hero::after { content: ""; position: absolute; width: 230px; height: 230px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; right: -40px; top: -80px; box-shadow: 0 0 0 36px rgba(255,255,255,.04), 0 0 0 72px rgba(255,255,255,.035); }
.crm-hero p { max-width: 430px; margin: 8px 0 0; color: #c6ddd0; font-size: 12px; line-height: 1.5; }
.crm-hero h2 { font-size: 26px; line-height: 1.1; }
.crm-summary { display: grid; align-content: center; gap: 6px; padding: 22px; border: 1px solid #e0e7dc; border-radius: 17px; background: #eaf2e5; }
.crm-summary strong { font-size: 22px; letter-spacing: -.05em; }
.crm-summary span { color: #637c68; font-size: 11px; }
.record-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.record-card { display: grid; gap: 12px; min-height: 175px; padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
.record-card:hover { border-color: #b8d0bc; }
.record-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 10px; background: #e6f1e8; color: #2d6b52; font-size: 17px; font-weight: 800; }
.record-card h3 { margin: 0; }
.record-card p { margin: 0; color: var(--ink-faint); font-size: 11px; line-height: 1.45; }
.record-card .text-link { align-self: end; }
.record-detail { display: grid; grid-template-columns: 1.3fr .8fr; gap: 18px; }
.record-detail .panel-pad { min-height: 250px; }
.record-list { display: grid; gap: 10px; margin-top: 18px; }
.record-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); color: #415a4d; font-size: 11px; }
.record-line strong { font-weight: 650; }
.record-line span { color: var(--ink-faint); }

.kb-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: 18px; }
.kb-item { border-top: 1px solid var(--line); }
.kb-item:first-of-type { border-top: 0; }
.kb-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 0; cursor: pointer; color: #29483b; font-size: 12px; font-weight: 750; list-style: none; }
.kb-item summary::-webkit-details-marker { display: none; }
.kb-item summary::after { content: "+"; color: #809588; font-size: 18px; font-weight: 400; }
.kb-item[open] summary::after { content: "−"; }
.kb-item p { margin: 0 0 17px; color: #617268; font-size: 11px; line-height: 1.6; }
.channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.channel-card { display: grid; gap: 11px; min-height: 170px; padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.channel-card p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.channel-card .source-tag { justify-self: start; align-self: end; }
.channel-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #eaf2e9; color: #2a674e; font-size: 19px; }
.bar-list { display: grid; gap: 15px; margin-top: 20px; }
.bar-line { display: grid; grid-template-columns: 120px 1fr 20px; align-items: center; gap: 11px; color: #52685b; font-size: 11px; }
.bar-line strong { color: #203e31; text-align: right; }
.bar-track { height: 10px; overflow: hidden; border-radius: 20px; background: #eef3ec; }
.bar-fill { height: 100%; border-radius: inherit; background: #477e62; }
.bar-line:nth-child(2) .bar-fill { background: #e6b76b; }
.bar-line:nth-child(3) .bar-fill { background: #8da9c6; }
.bar-line:nth-child(4) .bar-fill { background: #bd9dc1; }
.report-explain { margin: 14px 0 0; color: var(--ink-faint); font-size: 10px; line-height: 1.5; }
.checklist { display: grid; gap: 11px; margin: 15px 0 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 9px; color: #53695b; font-size: 11px; line-height: 1.45; }
.checklist li::before { content: "○"; color: #d9a451; font-size: 17px; line-height: 12px; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 40; max-width: min(360px, calc(100vw - 44px)); padding: 13px 17px; border-radius: 12px; background: #153d31; box-shadow: 0 14px 30px rgba(6,41,26,.19); color: white; font-size: 12px; line-height: 1.4; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }
.mobile-scrim { display: none; }

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 214px minmax(0, 1fr); }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; width: 265px; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 14px 0 34px rgba(0,0,0,.12); }
  .sidebar.open { transform: translateX(0); }
  .mobile-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 15; background: rgba(13,33,24,.38); }
  .mobile-menu { display: grid; gap: 4px; place-content: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; background: white; }
  .mobile-menu span { display: block; width: 16px; height: 2px; border-radius: 4px; background: #335d46; }
  .topbar { height: 67px; }
  .global-search { width: min(230px, 28vw); }
  .grid-two, .detail-grid, .kb-layout, .record-detail { grid-template-columns: 1fr; }
  .crm-intro { grid-template-columns: 1fr 210px; }
}
@media (max-width: 600px) {
  #main { padding: 27px 17px 58px; }
  .topbar { padding: 0 17px; }
  .topbar-location { min-width: 0; }
  .topbar-caption { display: none; }
  .topbar-actions { gap: 9px; }
  .global-search { width: 36px; padding: 0 9px; }
  .global-search:focus-within { position: absolute; left: 60px; right: 17px; z-index: 5; width: auto; background: white; }
  .global-search input { width: 0; }
  .global-search:focus-within input { width: 100%; }
  .global-search kbd { display: none; }
  .agent-pill > span:last-child { display: none; }
  .demo-banner { align-items: start; padding: 9px 17px; font-size: 10px; }
  .demo-banner span:last-child { display: none; }
  .page-header, .detail-heading { display: grid; }
  .metrics { gap: 9px; }
  .metric { min-height: 112px; padding: 16px; }
  .metric-value { font-size: 27px; }
  .panel-pad { padding: 17px; }
  .panel-heading { padding: 17px; }
  .ticket-tools { display: grid; }
  .tabs { width: 100%; }
  .list-search { width: 100%; }
  th, td { padding: 13px 12px; }
  .form-grid, .channel-grid, .record-grid, .crm-intro { grid-template-columns: 1fr; }
  .crm-hero { min-height: 145px; }
  .bar-line { grid-template-columns: 95px 1fr 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
