:root {
  --ink-950: #16202a;
  --ink-900: #202d38;
  --ink-700: #536372;
  --ink-500: #8593a0;
  --canvas: #f4f6f5;
  --surface: #ffffff;
  --line: #dfe5e3;
  --blue: #2f6fed;
  --blue-soft: #eaf1ff;
  --teal: #118a78;
  --teal-soft: #e7f7f2;
  --amber: #b66a08;
  --amber-soft: #fff4dd;
  --coral: #c64c4c;
  --coral-soft: #fff0ef;
  --shadow: 0 10px 26px rgba(22, 32, 42, .07);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-950);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(47, 111, 237, .25); outline-offset: 2px; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 232px; flex: 0 0 232px; background: var(--ink-950); color: #f7f9fb; padding: 22px 14px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 20; }
.brand-block { display: flex; gap: 11px; align-items: center; padding: 0 8px 22px; }
.brand-mark { width: 31px; height: 31px; border-radius: 9px; background: #eaf1ff; color: var(--blue); display: grid; place-items: center; }
.brand-mark svg { width: 18px; height: 18px; stroke-width: 2.5; }
.brand-name { font-size: 14px; font-weight: 650; letter-spacing: -.02em; }
.brand-sub { font: 500 9px/1.4 "JetBrains Mono", monospace; color: #8c9ba9; letter-spacing: .11em; margin-top: 3px; }
.sidebar-close { display: none !important; margin-left: auto; color: #95a5b4 !important; }
.workspace-switcher { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); border-radius: 8px; padding: 10px; display: flex; align-items: center; gap: 9px; margin: 0 2px 24px; }
.workspace-icon { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: #314657; color: #dbe9f7; font: 500 10px "JetBrains Mono", monospace; }
.workspace-copy { display: grid; gap: 3px; min-width: 0; flex: 1; }
.workspace-copy strong { font-size: 11px; font-weight: 600; white-space: nowrap; }
.workspace-copy span { font-size: 10px; color: #93a2af; white-space: nowrap; }
.switcher-chevron { color: #80909d; width: 14px; }
.nav-list { display: grid; gap: 3px; }
.nav-label { padding: 0 12px 8px; font: 500 9px "JetBrains Mono", monospace; color: #788795; letter-spacing: .13em; }
.nav-label-spaced { margin-top: 21px; }
.nav-item { min-height: 37px; border: 0; background: transparent; color: #aab8c3; border-radius: 7px; padding: 0 11px; display: flex; gap: 11px; align-items: center; text-align: left; font-size: 12px; font-weight: 500; width: 100%; transition: background .18s ease, color .18s ease; }
.nav-item svg { width: 16px; height: 16px; stroke-width: 1.8; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #f5f8fa; }
.nav-item.active { background: #2c3b49; color: #fff; box-shadow: inset 3px 0 0 #6da0ff; }
.nav-count { margin-left: auto; background: rgba(255,255,255,.12); border-radius: 4px; min-width: 18px; height: 18px; display: grid; place-items: center; font: 500 10px "JetBrains Mono", monospace; color: #d6e3ed; }
.nav-count.warning { background: rgba(255, 179, 72, .15); color: #ffc56e; }
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: #4cc5ad; box-shadow: 0 0 0 3px rgba(76,197,173,.12); margin-left: auto; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 13px; }
.collector-status { padding: 11px 8px; display: flex; align-items: center; gap: 9px; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.collector-status div { display: grid; gap: 3px; flex: 1; }
.collector-status strong { font-size: 10px; font-weight: 600; }
.collector-status span:not(.status-pulse) { font-size: 9px; color: #8697a4; }
.collector-status > svg { color: #758694; width: 15px; }
.status-pulse { width: 7px; height: 7px; border-radius: 50%; background: #4cc5ad; box-shadow: 0 0 0 3px rgba(76,197,173,.13); flex: 0 0 auto; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 0 8px; }
.avatar, .top-avatar { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #ead9c7; color: #684d35; font-size: 10px; font-weight: 700; }
.user-chip div:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.user-chip strong { font-size: 10px; font-weight: 600; }
.user-chip span { color: #8697a4; font-size: 9px; }
.user-chip > svg { width: 14px; color: #7b8b98; }
.main-content { min-width: 0; flex: 1; }
.topbar { height: 62px; background: rgba(255,255,255,.84); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 30px; gap: 16px; position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.menu-trigger { display: none !important; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; color: #89959f; font-size: 12px; }
.breadcrumbs svg { width: 14px; }
.breadcrumbs strong { color: var(--ink-950); font-weight: 600; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.demo-pill { border: 1px solid #c9d8f7; background: var(--blue-soft); color: #3562ab; display: inline-flex; align-items: center; gap: 5px; font: 500 10px "JetBrains Mono", monospace; border-radius: 4px; padding: 5px 7px; }
.demo-pill svg { width: 12px; }
.demo-pill.live { border-color: #b8ded4; background: var(--teal-soft); color: var(--teal); }
.icon-button { border: 0; background: transparent; color: #73818d; width: 30px; height: 30px; border-radius: 7px; display: inline-grid; place-items: center; transition: background .18s, color .18s; }
.icon-button:hover { background: #edf1f0; color: var(--ink-950); }
.icon-button svg { width: 16px; height: 16px; }
.icon-button.small { width: 27px; height: 27px; }
.notification-button { position: relative; }
.notification-button span { position: absolute; width: 5px; height: 5px; background: var(--coral); border-radius: 50%; top: 6px; right: 5px; }
.page-wrap { padding: 32px 30px 44px; max-width: 1520px; margin: 0 auto; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { color: #8b99a3; font: 500 9px "JetBrains Mono", monospace; letter-spacing: .12em; }
h1, h2, h3, p { margin: 0; }
h1 { margin-top: 8px; font-size: 25px; letter-spacing: -.045em; line-height: 1.18; font-weight: 650; }
h2 { margin-top: 6px; font-size: 15px; letter-spacing: -.025em; font-weight: 650; }
h3 { font-size: 16px; line-height: 1.4; letter-spacing: -.02em; }
.page-heading p { margin-top: 8px; color: var(--ink-700); font-size: 12px; }
.heading-actions { display: flex; gap: 9px; }
.button { border-radius: 7px; min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; font-size: 11px; font-weight: 600; white-space: nowrap; transition: transform .16s, background .16s, border .16s; }
.button:active { transform: translateY(1px); }
.button svg { width: 14px; height: 14px; }
.button.primary { background: var(--ink-950); color: #fff; }
.button.primary:hover { background: #2b3d4c; }
.button.secondary { background: #fff; color: var(--ink-950); border-color: var(--line); }
.button.secondary:hover { border-color: #b7c3c0; background: #f7faf9; }
.button.text-button { border: 0; background: transparent; color: var(--blue); padding: 0; min-height: 25px; font-size: 11px; }
.button.text-button:hover { color: #1853c8; }
.control-strip { min-height: 55px; background: rgba(255,255,255,.74); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.control-group { display: flex; align-items: center; gap: 9px; }
.control-caption { color: var(--ink-500); font-size: 10px; }
.select-button { min-height: 31px; background: #fff; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-950); display: inline-flex; align-items: center; gap: 7px; padding: 0 9px; font-size: 11px; }
.select-button:hover { border-color: #b4c2be; }
.select-button svg { width: 14px; color: #76848e; }
.select-button svg:last-child { width: 12px; }
.filter-select { min-width: 118px; appearance: auto; cursor: pointer; }
.control-spacer { flex: 1; }
.last-sync { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-500); font-size: 10px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 14px; }
.metric-card { position: relative; min-height: 158px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 17px 17px 14px; overflow: hidden; }
.metric-card::before { content: ""; position: absolute; width: 100%; height: 3px; left: 0; top: 0; background: var(--blue); opacity: .9; }
.metric-card.accent-teal::before { background: var(--teal); }
.metric-card.accent-amber::before { background: #edaa42; }
.metric-card.accent-coral::before { background: var(--coral); }
.metric-top { display: flex; justify-content: space-between; align-items: center; color: var(--ink-700); font-size: 11px; }
.metric-top svg { width: 16px; color: #93a0aa; }
.metric-value { font-size: 29px; letter-spacing: -.06em; line-height: 1; font-weight: 650; margin-top: 16px; }
.metric-value small { font-size: 12px; color: var(--ink-700); letter-spacing: 0; margin-left: 3px; font-weight: 500; }
.metric-meta { display: flex; align-items: center; gap: 4px; margin-top: 10px; font: 500 10px "JetBrains Mono", monospace; }
.metric-meta svg { width: 12px; }
.metric-meta span { color: var(--ink-500); font: 400 10px Inter, sans-serif; margin-left: 2px; }
.positive { color: var(--teal); }
.negative { color: var(--coral); }
.warning-text { color: var(--amber); }
.mini-chart { height: 28px; position: absolute; bottom: 13px; right: 17px; display: flex; align-items: end; gap: 4px; opacity: .7; }
.mini-chart i { display: block; width: 5px; border-radius: 2px 2px 0 0; background: var(--blue); }
.mini-chart i:nth-child(1) { height: 9px; opacity: .25; }.mini-chart i:nth-child(2) { height: 14px; opacity: .35; }.mini-chart i:nth-child(3) { height: 11px; opacity: .45; }.mini-chart i:nth-child(4) { height: 19px; opacity: .55; }.mini-chart i:nth-child(5) { height: 16px; opacity: .65; }.mini-chart i:nth-child(6) { height: 23px; opacity: .8; }.mini-chart i:nth-child(7) { height: 28px; }
.ring-chart { position: absolute; right: 20px; bottom: 13px; width: 45px; height: 45px; display: grid; place-items: center; }
.ring-chart svg { position: absolute; inset: 0; width: 45px; height: 45px; transform: rotate(-90deg); }
.ring-track, .ring-progress { fill: none; stroke-width: 4; }.ring-track { stroke: #e6eeeb; }.ring-progress { stroke: var(--teal); stroke-linecap: round; stroke-dasharray: 100.5; stroke-dashoffset: 8; }.ring-progress.three-node-ring { stroke-dashoffset: 11; }.ring-chart span { font: 500 10px "JetBrains Mono", monospace; color: var(--teal); }
.task-progress { height: 5px; border-radius: 4px; background: #f5ead2; position: absolute; bottom: 28px; left: 17px; right: 17px; overflow: hidden; }.task-progress span { display: block; height: 100%; background: #edaa42; border-radius: inherit; }.task-progress-label { position: absolute; bottom: 12px; left: 17px; right: 17px; display: flex; justify-content: space-between; color: var(--ink-500); font-size: 9px; }
.account-avatars { position: absolute; bottom: 13px; right: 17px; display: flex; align-items: center; }.mini-avatar, .avatar-more { width: 27px; height: 27px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; margin-left: -5px; font: 600 10px Inter; }.mini-avatar.red { background: #f2d5d3; color: #a14340; }.mini-avatar.purple { background: #ded7f3; color: #66519a; }.mini-avatar.orange { background: #f5dfc5; color: #9c612c; }.avatar-more { background: #f2f4f4; color: #6d7b84; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .82fr); gap: 14px; margin-bottom: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; min-width: 0; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.legend { display: flex; align-items: center; gap: 12px; color: var(--ink-500); font-size: 10px; }.legend span { display: inline-flex; align-items: center; gap: 5px; }.legend-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }.legend-dot.blue { background: var(--blue); }.legend-dot.teal { background: var(--teal); }
.trend-summary { display: flex; align-items: baseline; gap: 7px; margin: 20px 0 9px; }.trend-summary strong { font-size: 22px; letter-spacing: -.055em; }.trend-summary span { color: var(--ink-500); font-size: 10px; }.trend-summary b { color: var(--teal); font: 500 10px "JetBrains Mono", monospace; margin-left: 8px; }
.chart-wrap { height: 190px; position: relative; margin: 0 -1px; }.line-chart { width: 100%; height: 160px; overflow: visible; }.grid-line { stroke: #eef1f0; stroke-width: 1; stroke-dasharray: 4 5; }.line { fill: none; stroke-width: 2.5; stroke-linecap: round; }.blue-line { stroke: var(--blue); }.teal-line { stroke: var(--teal); stroke-width: 2; }.area-fill { fill: url(#areaBlue); }.chart-point { stroke: #fff; stroke-width: 3; }.blue-point { fill: var(--blue); }.teal-point { fill: var(--teal); }.chart-labels { display: flex; justify-content: space-between; color: #9ca7ae; font: 9px "JetBrains Mono", monospace; padding: 1px 0 0; }
.channel-panel { min-height: 360px; }.channel-list { display: grid; gap: 3px; margin-top: 14px; }.channel-row { width: 100%; border: 0; background: transparent; color: var(--ink-950); display: grid; grid-template-columns: 25px minmax(74px, 1fr) minmax(55px, 1.1fr) 35px 13px; gap: 8px; align-items: center; padding: 5px; border-radius: 6px; text-align: left; }.channel-row:hover { background: #f6f8f7; }.channel-row.active { background: #f0f4f3; }.channel-row > svg { width: 13px; height: 13px; color: #8a979f; }.channel-icon { width: 25px; height: 25px; border-radius: 7px; display: grid; place-items: center; font-weight: 700; font-size: 10px; }.channel-icon svg { width: 13px; height: 13px; }.channel-icon.xhs { background: #fff0f2; color: #db5870; }.channel-icon.douyin { background: #e8f5f7; color: #168c9b; }.channel-icon.kuaishou { background: #fff3dd; color: #bb761f; }.channel-icon.tiktok { background: #eceafd; color: #5f5ac8; }.channel-icon.ig { background: #f4eafb; color: #a34fbd; }.channel-name { display: grid; gap: 2px; min-width: 0; }.channel-name strong { font-size: 10px; }.channel-name span { color: var(--ink-500); font-size: 9px; }.channel-bar { height: 6px; border-radius: 3px; background: #edf1f0; overflow: hidden; }.channel-bar span { display: block; background: #6592e5; height: 100%; border-radius: inherit; }.channel-row:nth-child(2) .channel-bar span { background: #4dafad; }.channel-row:nth-child(3) .channel-bar span { background: #e2a052; }.channel-row:nth-child(4) .channel-bar span { background: #8e83d9; }.channel-row:nth-child(5) .channel-bar span { background: #ba7ad1; }.channel-value { font: 500 10px "JetBrains Mono", monospace; text-align: right; color: var(--ink-700); }.account-breakdown { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 11px; }.account-breakdown-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.account-breakdown-head > div { display: grid; gap: 2px; }.account-breakdown-head span { color: var(--ink-700); font-size: 10px; font-weight: 600; }.account-breakdown-head strong { color: var(--ink-500); font-size: 8px; font-weight: 400; }.account-performance-list { display: grid; margin-top: 7px; }.account-performance-row { display: grid; grid-template-columns: 25px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; }.account-avatar { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 600; }.account-avatar.red { background: #f6dfe3; color: #a74455; }.account-avatar.blue { background: #e0eafa; color: #456caa; }.account-avatar.green { background: #dff0e9; color: #427d68; }.account-performance-row > div { display: grid; gap: 2px; min-width: 0; }.account-performance-row strong { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.account-performance-row small { color: var(--ink-500); font-size: 8px; }.account-performance-row b { color: var(--ink-700); font: 500 9px "JetBrains Mono", monospace; }
.data-empty { min-height: 82px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--ink-500); text-align: center; font-size: 10px; }
.data-empty svg { width: 18px; height: 18px; color: #9aa8ad; }
.data-empty strong { color: var(--ink-700); font-size: 11px; }
.empty-table-row:hover { background: transparent !important; }
.empty-table-row td { padding: 24px 10px !important; }
.posts-panel { padding-bottom: 7px; }.posts-heading { align-items: center; margin-bottom: 13px; }.panel-actions { display: flex; align-items: center; gap: 5px; }.filter-chip { border: 0; background: transparent; color: var(--ink-500); border-radius: 5px; font-size: 10px; padding: 6px 7px; }.filter-chip:hover { background: #f1f4f3; }.filter-chip.active { background: #edf2ff; color: var(--blue); font-weight: 600; }.filter-chip span { margin-left: 3px; color: #8b979f; }.filter-chip .chip-alert { color: var(--coral); }.table-scroll { overflow-x: auto; }.content-table { border-collapse: collapse; width: 100%; min-width: 1200px; }.content-table th { text-align: left; padding: 0 10px 10px; border-bottom: 1px solid var(--line); color: #8a979f; font: 500 9px "JetBrains Mono", monospace; letter-spacing: .04em; white-space: nowrap; }.content-table th:first-child, .content-table td:first-child { padding-left: 0; }.content-table td { padding: 12px 10px; border-bottom: 1px solid #eef1f0; vertical-align: middle; font-size: 11px; }.content-table tbody tr { transition: background .16s; cursor: pointer; }.content-table tbody tr:hover { background: #fafcfb; }.post-cell { display: flex; align-items: center; gap: 9px; min-width: 270px; }.post-cell > div:last-child { min-width: 0; display: grid; gap: 4px; }.post-cell strong { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 305px; }.post-cell span { color: var(--ink-500); font-size: 9px; }.post-thumb { width: 31px; height: 31px; border-radius: 7px; flex: 0 0 auto; display: grid; place-items: center; position: relative; overflow: hidden; }.post-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }.post-thumb-fallback { position: relative; z-index: 1; display: grid; place-items: center; }.post-thumb.has-cover .post-thumb-fallback { display: none; }.post-thumb svg { width: 15px; color: rgba(255,255,255,.9); }.thumb-blue { background: #6292e5; }.thumb-coral { background: #df7774; }.thumb-purple { background: #948bd6; }.thumb-green { background: #69a38c; }.channel-inline { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-700); white-space: nowrap; }.channel-icon.tiny { width: 20px; height: 20px; border-radius: 5px; font-size: 8px; }.channel-icon.tiny svg { width: 11px; }.account-cell { display: inline-block; color: var(--ink-700); font: 500 9px "JetBrains Mono", monospace; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }.date-cell { color: var(--ink-500); font-size: 10px; white-space: nowrap; }.sub-metric { display: block; color: var(--ink-500); font: 9px "JetBrains Mono", monospace; margin-top: 4px; }.sub-metric.positive { color: var(--teal); }.pending-value { color: var(--amber); font-size: 10px; }.status-tag { display: inline-flex; align-items: center; gap: 5px; border-radius: 4px; padding: 5px 7px; font-size: 9px; white-space: nowrap; }.status-tag svg { width: 11px; height: 11px; }.status-tag.healthy { background: var(--teal-soft); color: var(--teal); }.status-tag.pending { background: var(--amber-soft); color: var(--amber); }.status-tag.attention { background: var(--coral-soft); color: var(--coral); }.row-more { border: 0; background: transparent; color: #9aa5aa; width: 26px; height: 26px; border-radius: 5px; display: grid; place-items: center; }.row-more:hover { background: #edf1f0; color: var(--ink-950); }.row-more svg { width: 14px; }
.bottom-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 14px; }.alert-list, .pattern-list { margin-top: 13px; }.alert-row { width: 100%; border: 0; background: transparent; display: grid; grid-template-columns: 27px 1fr 14px; align-items: center; gap: 10px; text-align: left; padding: 10px 0; border-bottom: 1px solid #eef1f0; color: var(--ink-950); }.alert-row:last-child { border-bottom: 0; }.alert-row:hover strong { color: var(--blue); }.alert-row > svg { width: 14px; color: #a0abb1; }.alert-row span:nth-child(2) { display: grid; gap: 4px; }.alert-row strong { font-size: 10px; font-weight: 600; transition: color .16s; }.alert-row small { font-size: 9px; color: var(--ink-500); }.alert-icon { width: 27px; height: 27px; border-radius: 7px; display: grid; place-items: center; }.alert-icon svg { width: 14px; }.alert-icon.coral { color: var(--coral); background: var(--coral-soft); }.alert-icon.amber { color: var(--amber); background: var(--amber-soft); }.alert-icon.blue { color: var(--blue); background: var(--blue-soft); }.pattern-list { display: grid; gap: 13px; }.pattern-row { display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 9px; }.pattern-index { font: 500 10px "JetBrains Mono", monospace; color: #9ca8af; }.pattern-row > div { display: grid; gap: 3px; }.pattern-row strong { font-size: 10px; font-weight: 600; }.pattern-row small { font-size: 9px; color: var(--ink-500); }.pattern-row b { color: var(--teal); font: 500 10px "JetBrains Mono", monospace; }.outline-link { border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--blue); width: 100%; margin-top: 15px; padding-top: 13px; display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 600; }.outline-link svg { width: 13px; }
.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; background: rgba(18, 27, 35, .28); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 30; }.drawer-backdrop.show, .modal-backdrop.show { opacity: 1; pointer-events: auto; }.detail-drawer { position: fixed; z-index: 31; right: 0; top: 0; height: 100vh; width: min(450px, 100%); background: var(--surface); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .25s ease; box-shadow: -16px 0 40px rgba(22,32,42,.12); overflow-y: auto; }.detail-drawer.open { transform: translateX(0); }.drawer-header, .modal-header { padding: 22px 22px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }.drawer-content { padding: 22px; }.drawer-hero { height: 148px; border-radius: 8px; display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 16px; overflow: hidden; }.drawer-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }.drawer-cover-fallback { position: relative; z-index: 1; display: grid; place-items: center; }.drawer-hero.has-cover .drawer-cover-fallback { display: none; }.drawer-hero svg { color: rgba(255,255,255,.9); width: 45px; height: 45px; }.drawer-platform-badge { position: absolute; z-index: 2; top: 12px; right: 12px; background: rgba(255,255,255,.83); color: var(--ink-950); border-radius: 4px; padding: 5px 6px; font-size: 9px; }.drawer-content h3 { margin-top: 14px; max-width: 340px; }.drawer-meta { color: var(--ink-500); font-size: 10px; margin-top: 7px; }.drawer-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin: 20px 0; }.drawer-metrics > div { grid-column: span 2; border: 1px solid var(--line); border-radius: 7px; padding: 11px; display: grid; gap: 6px; }.drawer-metrics > div:nth-child(n+4) { grid-column: span 3; }.drawer-metrics span { color: var(--ink-500); font-size: 9px; }.drawer-metrics strong { font-size: 17px; letter-spacing: -.04em; }.drawer-metrics b { font: 500 9px "JetBrains Mono", monospace; color: var(--teal); }.drawer-metrics small { color: var(--ink-500); font-size: 8px; line-height: 1.5; }.drawer-section { border-top: 1px solid var(--line); padding: 16px 0; }.drawer-section-head { display: flex; align-items: center; justify-content: space-between; color: var(--ink-700); font-size: 10px; }.drawer-section p { color: var(--ink-700); font-size: 11px; line-height: 1.65; margin-top: 9px; }.tag { border-radius: 4px; padding: 4px 6px; font-size: 9px; }.tag-blue { background: var(--blue-soft); color: var(--blue); }.mono { font: 10px "JetBrains Mono", monospace; color: var(--ink-500); }.capture-line { display: flex; align-items: center; gap: 7px; color: var(--ink-700); font-size: 10px; margin-top: 11px; }.capture-source { margin-left: auto; font: 9px "JetBrains Mono", monospace; color: var(--teal); background: var(--teal-soft); padding: 4px 5px; border-radius: 4px; }.drawer-action { width: 100%; margin-top: 12px; }
.modal { position: fixed; z-index: 41; left: 50%; top: 50%; width: min(510px, calc(100% - 30px)); transform: translate(-50%, -47%) scale(.98); opacity: 0; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 25px 70px rgba(22,32,42,.2); transition: opacity .2s, transform .2s; }.modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }.modal-body { padding: 20px 22px 6px; }.modal-footer { display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); padding: 14px 22px; }.upload-zone { border: 1px dashed #b8c8c3; background: #fbfcfc; border-radius: 8px; min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }.upload-zone.dragover { background: var(--blue-soft); border-color: var(--blue); }.upload-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); margin-bottom: 3px; }.upload-icon svg { width: 20px; }.upload-zone strong { font-size: 12px; }.upload-zone > span { color: var(--ink-500); font-size: 10px; }.upload-zone .button { margin-top: 5px; }.import-divider { display: flex; align-items: center; gap: 9px; color: var(--ink-500); font-size: 9px; margin: 17px 0 12px; }.import-divider::before, .import-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }.mini-form { display: grid; gap: 11px; }.mini-form label { display: grid; gap: 6px; color: var(--ink-700); font-size: 10px; }.mini-form input, .mini-form select { width: 100%; height: 34px; background: #fff; color: var(--ink-950); border: 1px solid var(--line); border-radius: 6px; padding: 0 9px; font-size: 11px; }.mini-form input::placeholder { color: #aab4b8; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 8px; background: var(--ink-950); color: #fff; border-radius: 7px; padding: 10px 13px; font-size: 11px; box-shadow: var(--shadow); transition: opacity .2s, transform .2s; }.toast.show { opacity: 1; transform: translate(-50%, 0); }.toast svg { color: #6bd0ba; width: 15px; }
.view-empty { padding: 44px 20px; text-align: center; color: var(--ink-700); }.view-empty .empty-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin: 0 auto 12px; }.view-empty h2 { margin-bottom: 7px; }.view-empty p { font-size: 11px; color: var(--ink-500); }
.view-summary { display: flex; align-items: baseline; gap: 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 2px; margin-bottom: 14px; }.view-summary > div { display: flex; align-items: baseline; gap: 5px; }.view-summary span { color: var(--ink-500); font-size: 9px; margin-right: 4px; }.view-summary strong { color: var(--ink-950); font: 600 21px "JetBrains Mono", monospace; }.view-summary small { color: var(--ink-500); font-size: 9px; }.workspace-panel { min-height: 420px; }.view-search { width: min(310px, 100%); height: 32px; border: 1px solid var(--line); border-radius: 6px; background: #fff; display: flex; align-items: center; gap: 7px; padding: 0 9px; }.view-search svg { width: 13px; color: var(--ink-500); }.view-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink-950); font-size: 10px; background: transparent; }.view-search input::placeholder { color: #a0aaaf; }.identity-note { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-500); font-size: 9px; }.identity-note svg { width: 13px; color: var(--teal); }.accounts-table { border-collapse: collapse; width: 100%; min-width: 980px; margin-top: 13px; }.accounts-table th { text-align: left; padding: 0 12px 10px; border-bottom: 1px solid var(--line); color: #8a979f; font: 500 9px "JetBrains Mono", monospace; white-space: nowrap; }.accounts-table th:first-child, .accounts-table td:first-child { padding-left: 0; }.accounts-table td { padding: 13px 12px; border-bottom: 1px solid #eef1f0; vertical-align: middle; font-size: 11px; }.accounts-table tbody tr:hover { background: #fafcfb; }.account-identity { display: flex; align-items: center; gap: 9px; min-width: 150px; }.account-identity > div { display: grid; gap: 3px; }.account-identity strong { font-size: 10px; white-space: nowrap; }.account-identity small { color: var(--ink-500); font-size: 8px; }.identity-code { display: block; color: var(--ink-950); font: 500 10px "JetBrains Mono", monospace; white-space: nowrap; }.identity-code.muted { color: var(--ink-500); font-size: 9px; }.identity-label { display: block; color: var(--ink-500); font-size: 8px; margin-top: 4px; white-space: nowrap; }.error-copy { color: var(--coral); max-width: 150px; overflow: hidden; text-overflow: ellipsis; }.accounts-table .row-more { margin-left: auto; }
@media (max-width: 1100px) { .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.content-grid, .bottom-grid { grid-template-columns: 1fr; }.channel-panel { min-height: auto; }.channel-list { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
@media (max-width: 820px) { .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .24s ease; box-shadow: 18px 0 40px rgba(22,32,42,.2); }.sidebar.open { transform: translateX(0); }.sidebar-close { display: inline-grid !important; }.menu-trigger { display: inline-grid !important; }.topbar { padding: 0 17px; }.page-wrap { padding: 24px 17px 34px; }.page-heading { align-items: flex-start; flex-direction: column; }.heading-actions { width: 100%; }.heading-actions .button { flex: 1; }.control-strip { flex-wrap: wrap; gap: 10px 14px; }.control-spacer { display: none; }.last-sync { width: 100%; padding-top: 4px; }.topbar-actions { gap: 7px; }.demo-pill { display: none; } }
@media (max-width: 560px) { .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }.metric-card { min-height: 147px; padding: 14px; }.metric-value { font-size: 24px; margin-top: 14px; }.metric-meta { font-size: 9px; }.metric-meta span { display: none; }.control-group { flex: 1; min-width: 0; }.account-filter-group { flex-basis: 100%; }.control-caption { display: none; }.select-button { justify-content: space-between; width: 100%; }.channel-list { grid-template-columns: 1fr; }.channel-row { grid-template-columns: 25px minmax(78px, 1fr) minmax(55px, 1.2fr) 35px 13px; }.panel { padding: 15px; }.posts-heading { align-items: flex-start; flex-direction: column; }.panel-actions { width: 100%; overflow-x: auto; padding-bottom: 2px; }.filter-chip { white-space: nowrap; }.panel-actions .text-button { margin-left: auto; }.trend-summary strong { font-size: 19px; }.legend span { display: none; }.top-avatar { display: none; }.breadcrumbs { font-size: 11px; }.page-heading p { font-size: 11px; line-height: 1.5; }.drawer-header, .modal-header { padding: 18px 17px 15px; }.drawer-content, .modal-body { padding-left: 17px; padding-right: 17px; }.modal-footer { padding-left: 17px; padding-right: 17px; }.mini-form { gap: 10px; }.view-summary { gap: 15px; overflow-x: auto; }.view-summary > div { min-width: max-content; }.view-summary strong { font-size: 18px; }.view-search { width: 100%; }.identity-note { display: none; } }

.accounts-table { min-width: 1120px; }
.manager-cell { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.manager-cell svg { width: 13px; color: var(--blue); }
.manager-cell strong { font-size: 10px; font-weight: 600; }
.form-note { display: flex; align-items: flex-start; gap: 6px; margin-top: 12px; color: var(--ink-500); font-size: 10px; line-height: 1.5; }
.form-note svg { width: 13px; flex: 0 0 auto; margin-top: 1px; color: var(--blue); }
.note-copy { color: var(--amber); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }

/* Keep dense dashboard lists bounded while preserving direct access to older rows. */
.account-performance-list { max-height: 185px; overflow-y: auto; padding-right: 6px; scrollbar-gutter: stable; overscroll-behavior: contain; }
.content-stream-scroll { max-height: 720px; overflow: auto; scrollbar-gutter: stable; }
.content-stream-scroll .content-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); }
.account-performance-list::-webkit-scrollbar, .content-stream-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.account-performance-list::-webkit-scrollbar-thumb, .content-stream-scroll::-webkit-scrollbar-thumb { background: #c9d4d1; border-radius: 999px; }
.account-performance-list::-webkit-scrollbar-track, .content-stream-scroll::-webkit-scrollbar-track { background: #f3f6f5; border-radius: 999px; }
.chart-tooltip { position: absolute; z-index: 3; transform: translate(-50%, -115%); opacity: 0; pointer-events: none; white-space: nowrap; background: var(--ink-950); color: #fff; border-radius: 5px; padding: 6px 8px; font: 500 10px "JetBrains Mono", monospace; box-shadow: 0 6px 16px rgba(22,32,42,.16); transition: opacity .12s ease; }
.chart-tooltip.show { opacity: 1; }

.custom-date-range { display: flex; align-items: center; gap: 6px; }
.custom-date-range[hidden] { display: none !important; }
.custom-date-range > svg { width: 12px; color: var(--ink-500); }
.custom-date-range label { display: flex; align-items: center; gap: 5px; color: var(--ink-500); font-size: 9px; }
.custom-date-range input { width: 120px; height: 31px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink-950); padding: 0 7px; font-size: 10px; }
.manager-filter-group .filter-select { min-width: 112px; }

.trend-toggle { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: #f5f7f6; }
.trend-toggle button { min-width: 68px; height: 27px; padding: 0 9px; border: 0; border-radius: 5px; background: transparent; color: var(--ink-500); font-size: 10px; font-weight: 600; }
.trend-toggle button:hover { color: var(--ink-950); }
.trend-toggle button.active { background: #fff; color: var(--ink-950); box-shadow: 0 1px 3px rgba(22,32,42,.08); }

.account-avatar { position: relative; overflow: hidden; flex: 0 0 auto; }
.account-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.account-avatar.has-image > span { visibility: hidden; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 3px; }

.account-edit-modal { width: min(620px, calc(100% - 30px)); }
.account-edit-identity { display: flex; align-items: center; gap: 11px; padding: 0 0 17px; border-bottom: 1px solid var(--line); }
.account-edit-identity .account-avatar { width: 42px; height: 42px; font-size: 12px; }
.account-edit-identity > div:last-child { display: grid; gap: 4px; min-width: 0; }
.account-edit-identity strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-edit-identity span { color: var(--ink-500); font-size: 9px; }
.account-edit-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 17px; }
.account-edit-form label { display: grid; gap: 6px; color: var(--ink-700); font-size: 10px; }
.account-edit-form .full-row { grid-column: 1 / -1; }
.account-edit-form input, .account-edit-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink-950); padding: 0 9px; font-size: 11px; }
.account-edit-form input { height: 35px; }
.account-edit-form textarea { min-height: 72px; padding-top: 9px; padding-bottom: 9px; resize: vertical; line-height: 1.5; }
.account-edit-form input::placeholder { color: #aab4b8; }
.account-bio { display: block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-700) !important; }
.account-bio.empty { color: #aab4b8 !important; }
.access-code-field { padding-top: 3px; }
.form-error { min-height: 16px; margin-top: 9px; color: var(--coral); font-size: 10px; line-height: 1.45; }

@media (max-width: 1080px) {
  .control-strip { gap: 10px 12px; flex-wrap: wrap; }
  .control-spacer { display: none; }
  .last-sync { margin-left: auto; }
}

@media (max-width: 560px) {
  .manager-filter-group { flex-basis: 100%; }
  .custom-date-range { order: 5; width: 100%; }
  .custom-date-range label { flex: 1; }
  .custom-date-range input { width: 100%; }
  .trend-panel .panel-heading { align-items: center; }
  .trend-toggle button { min-width: 62px; padding: 0 7px; }
  .account-edit-form { grid-template-columns: 1fr; }
  .account-edit-form .full-row { grid-column: auto; }
}

/* Portrait covers and three-series trend presentation. */
.post-thumb { width: 42px; height: 56px; aspect-ratio: 3 / 4; }
.drawer-hero { width: min(100%, 300px); height: auto; aspect-ratio: 3 / 4; margin: 0 auto 16px; }
.account-performance-row .account-performance-bio { color: var(--ink-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-bio-cell { display: -webkit-box; max-width: 260px; overflow: hidden; color: var(--ink-700); font-size: 9px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.account-bio-cell.empty { color: #aab4b8; }
.accounts-table { min-width: 1320px; }
.trend-legend { display: flex; align-items: center; gap: 5px; color: var(--ink-500); font-size: 9px; white-space: nowrap; }
.trend-legend-button { display: inline-flex; min-height: 28px; align-items: center; gap: 5px; border: 1px solid transparent; border-radius: 5px; padding: 0 7px; background: transparent; color: var(--ink-500); font: inherit; cursor: pointer; }
.trend-legend-button:hover { border-color: var(--line); color: var(--ink-950); background: #f7f9f8; }
.trend-legend-button.active { color: var(--ink-950); background: #f2f5f4; }
.trend-legend-button:not(.active) .legend-dot { background: #bdc5c8; }
.trend-legend-button.unavailable { opacity: .45; cursor: not-allowed; }
.legend-dot.coral { background: var(--coral); }
.trend-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 14px; }
.trend-summary-item { display: grid; gap: 3px; min-width: 0; border: 0; padding: 0; background: transparent; color: inherit; text-align: left; }
button.trend-summary-item { cursor: pointer; transition: opacity .14s ease; }
button.trend-summary-item:hover { opacity: .72; }
.trend-summary-item.muted { opacity: .38; }
.trend-summary-item strong { font-size: 18px; letter-spacing: -.04em; }
.trend-summary-item span { color: var(--ink-500); font-size: 9px; }
.trend-summary-item.blue strong { color: var(--blue); }
.trend-summary-item.teal strong { color: var(--teal); }
.trend-summary-item.coral strong { color: var(--coral); }
.trend-summary-posts { border-left: 1px solid var(--line); padding-left: 14px; }
.coral-line { stroke: var(--coral); stroke-width: 2; }
.coral-point { fill: var(--coral); }
.chart-y-scale { position: absolute; z-index: 2; top: 24px; right: 2px; width: max-content; height: 118px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; pointer-events: none; color: #8e9aa0; font: 8px "JetBrains Mono", monospace; }
.chart-y-scale span { padding: 1px 3px; border-radius: 3px; background: rgba(255,255,255,.82); }
.chart-scale-note { position: absolute; top: 5px; right: 2px; z-index: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px 8px; max-width: 70%; color: var(--ink-500); font: 8px "JetBrains Mono", monospace; pointer-events: none; }
.chart-scale-note span { display: inline-flex; align-items: center; gap: 3px; padding: 2px 4px; border-radius: 3px; background: rgba(255,255,255,.86); }
.chart-scale-note .legend-dot { width: 5px; height: 5px; }
.chart-scale-blue { color: var(--blue); }
.chart-scale-teal { color: var(--teal); }
.chart-scale-coral { color: var(--coral); }
@media (max-width: 560px) {
  .trend-legend { gap: 7px; font-size: 8px; white-space: normal; flex-wrap: wrap; justify-content: flex-end; }
  .trend-legend-button { min-height: 26px; padding: 0 5px; }
  .trend-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .trend-summary-posts { border-left: 0; padding-left: 0; }
}
