:root {
  --primary: #5b6cff;
  --primary-dark: #4657e8;
  --primary-soft: #eef0ff;
  --violet: #7c5cfc;
  --violet-soft: #f3efff;
  --success: #16a36a;
  --success-soft: #e8f8f0;
  --warning: #d98a18;
  --warning-soft: #fff5df;
  --danger: #e5484d;
  --danger-soft: #fff0f1;
  --ink: #182033;
  --ink-2: #344054;
  --muted: #667085;
  --muted-2: #98a2b3;
  --canvas: #f6f7fb;
  --surface: #fff;
  --surface-2: #f9faff;
  --line: #e6e9f2;
  --line-strong: #d8ddea;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(18, 26, 46, .03), 0 4px 16px rgba(40, 50, 90, .04);
  --shadow-md: 0 18px 48px rgba(50, 58, 105, .11);
  --sidebar: 224px;
  --topbar: 64px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
button, select, input { outline: none; }
:focus-visible { outline: 3px solid rgba(91, 108, 255, .22); outline-offset: 2px; }
[hidden] { display: none !important; }

.button { min-height: 40px; border: 1px solid transparent; border-radius: var(--radius-md); padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; font-weight: 600; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s; }
.button svg { width: 17px; height: 17px; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--violet)); box-shadow: 0 8px 18px rgba(91, 108, 255, .2); }
.button-primary:hover { box-shadow: 0 10px 24px rgba(91, 108, 255, .28); }
.button-secondary { color: var(--ink-2); background: #fff; border-color: var(--line-strong); }
.button-secondary:hover { border-color: #bfc6da; background: var(--surface-2); }
.button-ghost { color: var(--muted); background: transparent; border-color: transparent; }
.button-ghost:hover { color: var(--ink); background: #f2f4fa; }
.button-large { min-height: 48px; width: 100%; font-size: 15px; }
.button.compact { min-height: 36px; padding: 0 12px; font-size: 13px; }
.icon-button { width: 38px; height: 38px; padding: 0; border: 1px solid transparent; border-radius: var(--radius-md); background: transparent; display: inline-grid; place-items: center; cursor: pointer; color: var(--muted); transition: .2s; }
.icon-button:hover { background: #f2f4fa; color: var(--ink); }
.icon-button svg { width: 19px; height: 19px; }
.eyebrow { margin: 0 0 8px; color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(145deg, var(--primary), var(--violet)); color: #fff; display: grid; place-items: center; flex: 0 0 auto; box-shadow: 0 8px 18px rgba(91, 108, 255, .2); }
.brand-mark svg { width: 25px; height: 25px; fill: currentColor; stroke: none; }
.brand strong { display: block; color: var(--ink); font-size: 17px; line-height: 1.2; letter-spacing: -.02em; }
.brand small { display: block; color: var(--muted-2); font-size: 10px; margin-top: 3px; }

/* Login */
.login-body { min-height: 100vh; overflow-x: hidden; background: #f9faff; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(520px, 1.08fr) minmax(480px, .92fr); }
.login-brand-panel { position: relative; overflow: hidden; padding: clamp(36px, 4vw, 68px); color: #fff; background: linear-gradient(145deg, #3d50e5 0%, #5b63ed 38%, #7d5ce1 100%); }
.login-brand-panel::before { content: ""; position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom right, #000, transparent 72%); }
.login-brand-panel::after { content: ""; position: absolute; width: 480px; height: 480px; left: -160px; bottom: -230px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.03), 0 0 0 140px rgba(255,255,255,.025); }
.ambient { position: absolute; border-radius: 999px; filter: blur(2px); pointer-events: none; }
.ambient-one { width: 480px; height: 480px; right: -110px; top: -150px; background: radial-gradient(circle, rgba(166, 229, 255, .35), transparent 68%); }
.ambient-two { width: 380px; height: 380px; right: 10%; bottom: -170px; background: radial-gradient(circle, rgba(231, 194, 255, .25), transparent 70%); }
.login-brand-content { position: relative; z-index: 1; max-width: 680px; height: 100%; min-height: 690px; display: flex; flex-direction: column; }
.brand-on-color .brand-mark { color: #5868f4; background: rgba(255,255,255,.94); box-shadow: 0 10px 24px rgba(27, 28, 78, .14); }
.brand-on-color strong { color: #fff; }
.brand-on-color small { color: rgba(255,255,255,.66); }
.login-copy { margin: auto 0 54px; max-width: 650px; }
.login-copy .eyebrow { color: rgba(255,255,255,.68); }
.login-copy h1 { max-width: 650px; margin: 0; font-size: clamp(44px, 4.2vw, 72px); line-height: 1.14; letter-spacing: -.05em; font-weight: 720; }
.login-lead { max-width: 560px; margin: 26px 0 0; color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.85; }
.capability-list { display: grid; gap: 12px; max-width: 580px; }
.capability-list article { padding: 15px 16px; display: flex; align-items: center; gap: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.09); backdrop-filter: blur(12px); border-radius: 14px; transition: transform .25s var(--ease), background .25s; }
.capability-list article:hover { transform: translateX(5px); background: rgba(255,255,255,.14); }
.capability-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.15); }
.capability-icon svg { width: 20px; height: 20px; }
.capability-list strong { display: block; font-size: 14px; }
.capability-list small { display: block; color: rgba(255,255,255,.65); margin-top: 2px; font-size: 12px; }
.login-trust { position: absolute; z-index: 1; left: clamp(36px, 4vw, 68px); bottom: 25px; margin: 0; color: rgba(255,255,255,.45); font-size: 11px; }
.login-form-panel { min-height: 100vh; display: grid; place-items: center; padding: 46px clamp(38px, 7vw, 110px); background: radial-gradient(circle at 86% 14%, rgba(113, 127, 255, .09), transparent 26%), #fbfcff; }
.login-form-wrap { width: min(100%, 440px); animation: rise-in .65s var(--ease) both; }
.mobile-brand { display: none; }
.login-heading { margin-bottom: 34px; }
.login-badge { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 24px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); }
.login-badge svg { width: 24px; height: 24px; }
.login-heading h2 { margin: 0; font-size: 32px; line-height: 1.2; letter-spacing: -.04em; }
.login-heading p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.login-form { display: flex; flex-direction: column; }
.login-form > label { margin: 0 0 8px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.login-form > label:not(:first-child) { margin-top: 20px; }
.field-with-icon { position: relative; }
.field-with-icon > svg, .input-icon > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--muted-2); pointer-events: none; }
.field-with-icon input { width: 100%; height: 48px; padding: 0 46px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field-with-icon input::placeholder { color: #a6afbf; }
.field-with-icon input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(91,108,255,.1); }
.field-action { position: absolute; right: 5px; top: 5px; }
.form-meta { margin: 17px 0 0; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.check-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }
.form-error { min-height: 21px; margin: 9px 0 6px; color: var(--danger); font-size: 12px; }
.login-footer { margin: 32px 0 0; color: var(--muted-2); text-align: center; font-size: 11px; }

/* App shell */
.app-body { min-height: 100vh; overflow-x: hidden; background: var(--canvas); }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: var(--sidebar); padding: 16px 12px 14px; display: flex; flex-direction: column; background: rgba(250, 251, 255, .96); border-right: 1px solid var(--line); transition: width .32s var(--ease), transform .32s var(--ease); }
.sidebar-head { height: 40px; margin: 0 3px 26px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.sidebar-toggle { flex: 0 0 auto; border-color: var(--line); background: #fff; }
.sidebar-nav { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #d9ddeb transparent; }
.nav-section { margin: 21px 11px 8px; color: var(--muted-2); font-size: 10px; font-weight: 700; letter-spacing: .1em; white-space: nowrap; text-transform: uppercase; }
.nav-item { position: relative; min-height: 42px; margin: 3px 0; padding: 0 11px; border-radius: 11px; display: flex; align-items: center; gap: 11px; color: #596175; font-weight: 550; white-space: nowrap; transition: .2s; }
.nav-item:hover { color: var(--ink); background: #f0f2f9; }
.nav-item.active { color: var(--primary); background: linear-gradient(90deg, #ecefff, #f2efff); font-weight: 650; }
.nav-item.active::before { content: ""; position: absolute; left: 0; width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--primary); }
.nav-icon { width: 20px; height: 20px; flex: 0 0 auto; display: grid; place-items: center; }
.nav-icon svg { width: 19px; height: 19px; }
.nav-label { overflow: hidden; text-overflow: ellipsis; }
.nav-count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 8px; display: grid; place-items: center; color: var(--primary); background: #fff; font-size: 10px; }
.sidebar-user { min-height: 58px; padding: 10px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.avatar { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--primary), var(--violet)); font-size: 12px; font-weight: 700; }
.avatar.small { width: 30px; height: 30px; border-radius: 9px; }
.user-copy { min-width: 0; flex: 1; white-space: nowrap; }
.user-copy strong { display: block; font-size: 12px; }
.user-copy small { display: block; color: var(--muted-2); font-size: 10px; margin-top: 1px; }
.app-main { min-height: 100vh; margin-left: var(--sidebar); transition: margin-left .32s var(--ease); }
.topbar { position: sticky; z-index: 30; top: 0; height: var(--topbar); padding: 0 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .88); backdrop-filter: blur(18px); }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 12px; }
.breadcrumbs { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.breadcrumbs span, .breadcrumbs b { color: var(--muted-2); font-weight: 400; }
.top-search { width: 250px; height: 38px; position: relative; display: flex; align-items: center; }
.top-search svg { position: absolute; left: 12px; width: 17px; height: 17px; color: var(--muted-2); }
.top-search input { width: 100%; height: 100%; padding: 0 12px 0 37px; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-md); background: #f8f9fc; }
.top-search input:focus { border-color: var(--primary); background: #fff; }
.has-dot { position: relative; border-color: var(--line); background: #fff; }
.has-dot::after { content: ""; position: absolute; right: 8px; top: 7px; width: 6px; height: 6px; border: 2px solid #fff; border-radius: 50%; background: var(--danger); }
.account-chip { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 12px; transition: background .2s; }
.account-chip:hover { background: #f2f4fa; }
.account-chip span:not(.avatar) { line-height: 1.15; }
.account-chip strong { display: block; font-size: 11px; }
.account-chip small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 9px; }
.account-chip > svg { width: 15px; height: 15px; color: var(--muted-2); }
.mobile-menu { display: none; }
.content { width: min(100%, 1728px); margin: 0 auto; padding: 28px 30px 42px; }
.page-heading { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; animation: rise-in .5s var(--ease) both; }
.page-heading h1 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -.04em; }
.page-heading p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); }
.heading-actions { display: flex; align-items: center; gap: 10px; }
select, .filter-grid input { height: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); color: var(--ink-2); background: #fff; }
select { min-width: 138px; padding: 0 34px 0 12px; cursor: pointer; }
select:focus, .filter-grid input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,108,255,.08); }
.card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.card-head { padding: 20px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid #edf0f6; }
.card-head h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.card-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.text-link { color: var(--primary); font-size: 12px; font-weight: 600; }
.text-link:hover span { margin-left: 3px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); animation: rise-in .5s var(--ease) both; transition: transform .25s var(--ease), box-shadow .25s; }
.metric-card:nth-child(2) { animation-delay: .05s; }.metric-card:nth-child(3) { animation-delay: .1s; }.metric-card:nth-child(4) { animation-delay: .15s; }
.metric-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(51, 61, 104, .08); }
.metric-top { display: flex; align-items: center; justify-content: space-between; }
.metric-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.metric-icon svg { width: 21px; height: 21px; }
.metric-icon.blue { color: var(--primary); background: var(--primary-soft); }.metric-icon.violet { color: var(--violet); background: var(--violet-soft); }.metric-icon.orange { color: var(--warning); background: var(--warning-soft); }.metric-icon.green { color: var(--success); background: var(--success-soft); }
.trend { padding: 3px 7px; border-radius: 7px; font-size: 10px; font-weight: 700; }
.trend.positive { color: var(--success); background: var(--success-soft); }.trend.negative { color: var(--danger); background: var(--danger-soft); }
.metric-card > p { margin: 18px 0 5px; color: var(--muted); font-size: 12px; }
.metric-card > strong { display: block; font-size: 28px; line-height: 1.2; letter-spacing: -.04em; }
.metric-card > small { display: block; margin-top: 9px; color: var(--muted-2); font-size: 10px; }
.dashboard-grid { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(310px, .75fr); gap: 16px; }
.chart-card, .platform-card, .bottom-grid .card { min-width: 0; }
.legend { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 11px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend-line { width: 18px; height: 3px; border-radius: 4px; }.legend-line.primary { background: var(--primary); }.legend-line.soft { background: #b8c0d9; }
.chart-wrap { padding: 10px 18px 0; }
.trend-chart { width: 100%; height: 315px; overflow: visible; }
.grid-lines path { stroke: #edf0f5; stroke-width: 1; }
.axis-labels text, .x-labels text { fill: var(--muted-2); stroke: none; font-size: 10px; font-family: inherit; }
.area-path { fill: url(#chartFill); stroke: none; }
.line-primary { stroke: var(--primary); stroke-width: 3; }.line-secondary { stroke: #bac2d9; stroke-width: 2; stroke-dasharray: 6 7; }
.chart-points circle { fill: #fff; stroke: var(--primary); stroke-width: 3; }
.donut-row { padding: 24px 22px 18px; display: flex; align-items: center; gap: 24px; }
.donut { width: 126px; height: 126px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--primary) 0 54%, var(--violet) 54% 72%, #22b78c 72% 86%, #edf0f7 86% 100%); position: relative; }
.donut::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: #fff; }
.donut > div { position: relative; z-index: 1; text-align: center; }
.donut strong { display: block; font-size: 23px; letter-spacing: -.04em; }.donut span { color: var(--muted); font-size: 10px; }
.platform-total span { color: var(--muted); font-size: 11px; }.platform-total strong { display: block; margin-top: 2px; font-size: 24px; }.platform-total strong small { color: var(--muted-2); font-size: 12px; }.platform-total p { margin: 7px 0 0; color: var(--muted-2); font-size: 10px; }
.platform-list { padding: 0 22px 20px; display: grid; gap: 10px; }
.platform-list > div { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.platform-list > div span { display: flex; align-items: center; gap: 8px; }.platform-list strong { color: var(--ink-2); }
.dot, .status-dot { display: inline-block; border-radius: 50%; }.dot { width: 8px; height: 8px; }.dot.doubao { background: var(--primary); }.dot.qwen { background: var(--violet); }.dot.deepseek { background: #22b78c; }.dot.kimi { background: #f09c38; }.dot.other { background: #c3c9d8; }
.bottom-grid { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.performance-list { padding: 4px 22px 12px; }
.performance-list > div { min-height: 66px; display: grid; grid-template-columns: 34px 155px 1fr 48px 45px; align-items: center; gap: 10px; border-bottom: 1px solid #f0f2f6; }
.performance-list > div:last-child { border-bottom: none; }.rank { color: var(--muted-2); font-size: 11px; }
.brand-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }.brand-avatar { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); font-size: 11px; font-weight: 700; }.brand-avatar.frombio { color: #fff; background: linear-gradient(145deg, var(--primary), var(--violet)); }
.brand-cell strong, .brand-cell small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.brand-cell strong { font-size: 12px; }.brand-cell small { color: var(--muted-2); font-size: 9px; margin-top: 2px; }
.mini-bar { height: 6px; border-radius: 5px; background: #eef0f6; overflow: hidden; }.mini-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--violet)); }.score { font-size: 12px; }
.recent-list { padding: 3px 22px 12px; }.recent-list a { min-height: 66px; display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid #f0f2f6; }.recent-list a:last-child { border-bottom: none; }.recent-list a:hover strong { color: var(--primary); }.recent-list strong, .recent-list small { display: block; }.recent-list strong { max-width: 390px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.recent-list small { margin-top: 4px; color: var(--muted-2); font-size: 9px; }.status-dot { width: 7px; height: 7px; }.status-dot.success { background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }.status-dot.warning { background: var(--warning); box-shadow: 0 0 0 4px var(--warning-soft); }
.badge { padding: 4px 8px; border-radius: 8px; font-size: 9px; font-weight: 650; white-space: nowrap; }.badge-success { color: var(--success); background: var(--success-soft); }.badge-warning { color: var(--warning); background: var(--warning-soft); }.badge-neutral { color: var(--primary); background: var(--primary-soft); }.badge-danger { color: var(--danger); background: var(--danger-soft); }

/* Records */
.records-content { width: min(100%, 1760px); }
.filter-card { margin-bottom: 16px; padding: 17px 18px; }
.filter-grid { display: grid; grid-template-columns: 150px 150px 150px 145px minmax(230px, 1fr) auto; gap: 10px; align-items: end; }
.filter-grid label > span { display: block; margin: 0 0 6px; color: var(--muted); font-size: 10px; font-weight: 650; }
.filter-grid select, .filter-grid input { width: 100%; min-width: 0; }
.input-icon { position: relative; }.input-icon input { padding: 0 12px 0 37px; }
.filter-actions { display: flex; gap: 4px; }
.table-card { min-width: 0; }
.table-toolbar { min-height: 62px; padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 10px; }.result-count { color: var(--muted); font-size: 11px; }.result-count strong { color: var(--ink-2); }
.menu-wrap { position: relative; }.column-menu { position: absolute; z-index: 20; right: 0; top: calc(100% + 8px); width: 170px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-md); }.column-menu label { min-height: 34px; padding: 0 7px; display: flex; align-items: center; gap: 8px; border-radius: 7px; color: var(--ink-2); font-size: 11px; cursor: pointer; }.column-menu label:hover { background: #f4f6fa; }
.table-scroll { overflow-x: auto; min-height: 390px; }
.data-table { width: 100%; min-width: 1320px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.data-table th { position: sticky; z-index: 5; top: 0; height: 48px; padding: 0 12px; color: var(--muted); background: #f8f9fc; border-bottom: 1px solid var(--line); text-align: left; font-size: 10px; font-weight: 700; white-space: nowrap; }
.data-table td { height: 70px; padding: 12px; border-bottom: 1px solid #eef0f5; vertical-align: middle; color: var(--ink-2); font-size: 11px; transition: background .15s; }
.data-table tbody tr:hover td { background: #fafbff; }.data-table tbody tr.selected td { background: #f5f6ff; }
.data-table th:nth-child(1), .data-table td:nth-child(1) { width: 42px; }.data-table th:nth-child(2), .data-table td:nth-child(2) { width: 110px; }.data-table th:nth-child(3), .data-table td:nth-child(3) { width: 90px; }.data-table th:nth-child(4), .data-table td:nth-child(4) { width: 90px; }.data-table th:nth-child(5), .data-table td:nth-child(5) { width: 235px; }.data-table th:nth-child(6), .data-table td:nth-child(6) { width: 270px; }.data-table th:nth-child(7), .data-table td:nth-child(7) { width: 105px; }.data-table th:nth-child(8), .data-table td:nth-child(8) { width: 90px; }.data-table th:nth-child(9), .data-table td:nth-child(9) { width: 130px; }.data-table th:nth-child(10), .data-table td:nth-child(10) { width: 95px; }
.data-table.compact td { height: 52px; padding-top: 7px; padding-bottom: 7px; }
.question-cell, .answer-cell { line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }.question-cell { -webkit-line-clamp: 2; }.answer-cell { -webkit-line-clamp: 2; color: var(--muted); }
.table-brand { display: flex; align-items: center; gap: 8px; }.table-brand .brand-avatar { width: 28px; height: 28px; }.intent-tag { padding: 4px 7px; border-radius: 7px; color: var(--violet); background: var(--violet-soft); font-size: 9px; font-weight: 650; }.platform-name { display: flex; align-items: center; gap: 6px; }.mention-rank strong, .mention-rank small { display: block; }.mention-rank strong { color: var(--success); font-size: 10px; }.mention-rank small { margin-top: 3px; color: var(--muted-2); font-size: 9px; }.time-cell span, .time-cell small { display: block; }.time-cell small { margin-top: 2px; color: var(--muted-2); }
.row-actions { position: relative; display: flex; align-items: center; gap: 2px; }.action-link { border: none; background: none; color: var(--primary); padding: 5px 6px; border-radius: 6px; cursor: pointer; font-size: 10px; }.action-link:hover { background: var(--primary-soft); }.more-button { width: 28px; height: 28px; }.row-menu { position: absolute; z-index: 15; right: 0; top: calc(100% + 4px); width: 110px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow-md); }.row-menu button { width: 100%; height: 31px; padding: 0 8px; border: none; border-radius: 6px; background: none; color: var(--ink-2); text-align: left; cursor: pointer; font-size: 10px; }.row-menu button:hover { background: #f4f5fa; }.row-menu button.danger { color: var(--danger); }
.table-footer { min-height: 64px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); }.table-footer p { margin: 0; color: var(--muted); font-size: 11px; }.pagination { display: flex; align-items: center; gap: 5px; }.page-button { min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); cursor: pointer; font-size: 11px; }.page-button:hover:not(:disabled) { color: var(--primary); border-color: #c8ceff; }.page-button.active { color: #fff; border-color: var(--primary); background: var(--primary); }.page-button:disabled { opacity: .4; cursor: not-allowed; }
.empty-state { padding: 80px 20px; text-align: center; }.empty-icon { width: 50px; height: 50px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 14px; color: var(--muted-2); background: #f2f4f8; }.empty-icon svg { width: 25px; height: 25px; }.empty-state strong { display: block; }.empty-state p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

/* Modal, toast, states */
.modal-backdrop { position: fixed; z-index: 100; inset: 0; padding: 24px; display: grid; place-items: center; background: rgba(18, 24, 43, .48); backdrop-filter: blur(5px); animation: fade-in .18s ease both; }
.modal { width: min(100%, 690px); max-height: min(820px, calc(100vh - 48px)); display: flex; flex-direction: column; border-radius: 18px; background: #fff; box-shadow: 0 28px 90px rgba(16,24,40,.24); animation: modal-in .28s var(--ease) both; }
.modal-head { padding: 21px 22px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); }.modal-head h2 { margin: 0; font-size: 20px; }.modal-body { padding: 22px; overflow-y: auto; overflow-x: hidden; }.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.detail-block { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fafbfe; }.detail-block.full { grid-column: 1 / -1; }.detail-block span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }.detail-block strong, .detail-block p { margin: 0; font-size: 12px; line-height: 1.75; word-break: break-all; }.detail-block p { color: var(--ink-2); }.detail-block a { word-break: break-all; }.modal-foot { padding: 14px 22px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); }
.toast-region { position: fixed; z-index: 200; right: 22px; bottom: 22px; display: grid; gap: 8px; pointer-events: none; }.toast { min-width: 280px; padding: 13px 15px; display: flex; align-items: center; gap: 10px; border: 1px solid #dfe3ee; border-radius: 12px; color: var(--ink-2); background: rgba(255,255,255,.96); box-shadow: var(--shadow-md); animation: toast-in .3s var(--ease) both; }.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }.toast.success .toast-dot { background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.sidebar-collapsed { --sidebar: 76px !important; }.sidebar-collapsed .brand-copy, .sidebar-collapsed .sidebar-head .brand, .sidebar-collapsed .nav-label, .sidebar-collapsed .nav-count, .sidebar-collapsed .nav-section, .sidebar-collapsed .user-copy, .sidebar-collapsed .sidebar-user .icon-button { display: none; }.sidebar-collapsed .sidebar-head { justify-content: center; }.sidebar-collapsed .sidebar-toggle svg { transform: rotate(180deg); }.sidebar-collapsed .nav-item { justify-content: center; padding: 0; }.sidebar-collapsed .sidebar-user { justify-content: center; padding: 10px 0; }
.sidebar-collapsed .sidebar-user .avatar { margin: 0 auto; }
.col-hidden { display: none !important; }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1280px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .platform-card { display: grid; grid-template-columns: 1fr 1fr; }.platform-card .card-head { grid-column: 1 / -1; }.platform-list { padding-top: 22px; }
  .filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }.filter-search { grid-column: span 3; }
}
@media (max-width: 1100px) {
  .login-shell { grid-template-columns: 1fr; }.login-brand-panel { display: none; }.login-form-panel { padding: 36px 24px; }.mobile-brand { margin-bottom: 70px; display: flex; align-items: center; gap: 10px; }.mobile-brand strong { font-size: 18px; }.login-form-wrap { max-width: 460px; }
  .sidebar { transform: translateX(-100%); width: 224px; }.app-main { margin-left: 0; }.mobile-menu { display: inline-grid; }.sidebar-mobile-open .sidebar { transform: translateX(0); box-shadow: 20px 0 50px rgba(28,36,64,.14); }.sidebar-mobile-open::after { content: ""; position: fixed; z-index: 35; inset: 0; background: rgba(18,24,43,.28); }
  .bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .content { padding: 22px 16px 34px; }.topbar { padding: 0 14px; }.top-search { display: none; }.account-chip span:not(.avatar), .account-chip > svg { display: none; }.page-heading { align-items: flex-start; flex-direction: column; }.heading-actions { width: 100%; flex-wrap: wrap; }.heading-actions select { flex: 1; }.metric-grid { grid-template-columns: 1fr; }.platform-card { display: block; }.bottom-grid { display: block; }.bottom-grid .card + .card { margin-top: 16px; }.filter-grid { grid-template-columns: 1fr 1fr; }.filter-search { grid-column: 1 / -1; }.filter-actions { grid-column: 1 / -1; }.table-toolbar { align-items: flex-start; flex-direction: column; }.toolbar-right { width: 100%; justify-content: flex-end; }.detail-grid { grid-template-columns: 1fr; }.detail-block.full { grid-column: auto; }.modal-backdrop { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
