:root {
  color-scheme: light;
  --page: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-blue: #eff6ff;
  --sidebar: #0b1730;
  --sidebar-soft: #142445;
  --text: #182230;
  --text-strong: #101828;
  --muted: #667085;
  --muted-2: #98a2b3;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eaf2ff;
  --purple: #7c3aed;
  --success: #079455;
  --success-soft: #ecfdf3;
  --warning: #dc6803;
  --warning-soft: #fffaeb;
  --danger: #d92d20;
  --danger-soft: #fef3f2;
  --cyan: #0891b2;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 8px 28px rgba(16, 24, 40, 0.08);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --sidebar-width: 244px;
  --header-height: 68px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d1425;
  --surface: #151e31;
  --surface-soft: #111a2b;
  --surface-blue: #172647;
  --text: #dbe4f0;
  --text-strong: #f8fafc;
  --muted: #9aa7bb;
  --muted-2: #7e8ba1;
  --border: #293650;
  --border-strong: #3a4966;
  --primary-soft: #17366d;
  --success-soft: #0d3327;
  --warning-soft: #3a2a11;
  --danger-soft: #3e1e22;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--page); color: var(--text); }
body { min-width: 320px; }
body.auth-page { height: 100dvh; overflow: hidden; }
body.onboarding-active { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

.icon { width: 18px; height: 18px; flex: 0 0 auto; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 24px; height: 24px; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(500px, 1.04fr) minmax(420px, 0.96fr);
  background: #ffffff;
}
.auth-brand {
  padding: 46px clamp(48px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #182230;
  background: #f3f6fb;
  border-right: 1px solid #e5eaf2;
}
.auth-brand::before,
.auth-brand::after {
  display: none;
}
.auth-brand::before { content: none; }
.auth-brand::after { content: none; }
.brand-lockup, .auth-copy, .auth-preview { position: relative; }
.brand-lockup { display: flex; align-items: center; gap: 12px; color: #1d2939; font-weight: 700; letter-spacing: .2px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); }
.auth-brand .brand-mark { color: #2563eb; background: #ffffff; border-color: #d9e2f1; box-shadow: 0 4px 12px rgba(37,99,235,.08); }
.auth-copy { max-width: 600px; margin: 34px 0 24px; }
.auth-eyebrow { margin: 0 0 13px; color: #2563eb; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.auth-copy h1 { margin: 0; color: #172033; font-size: clamp(38px, 3.8vw, 56px); line-height: 1.12; letter-spacing: -0.04em; }
.auth-copy > p { max-width: 535px; margin: 18px 0 0; color: #667085; font-size: 16px; line-height: 1.75; }
.auth-points { display: grid; gap: 11px; margin-top: 22px; }
.auth-point { display: flex; align-items: center; gap: 10px; color: #475467; font-size: 13px; }
.auth-point .check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e8f0ff; color: #2563eb; }
.auth-preview { max-width: 600px; padding: 16px; border-radius: 16px; background: #ffffff; border: 1px solid #dfe5ee; box-shadow: 0 10px 30px rgba(16,24,40,.06); }
.preview-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; font-size: 12px; color: #667085; }
.preview-dots { display: flex; gap: 5px; }
.preview-dots i { width: 6px; height: 6px; border-radius: 50%; background: #c9d2df; }
.preview-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; }
.preview-chart, .preview-chat { padding: 13px; border-radius: 11px; background: #f7f9fc; border: 1px solid #e8ecf2; }
.preview-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.preview-kpi { padding: 9px; border-radius: 8px; background: #ffffff; border: 1px solid #e4e9f0; }
.preview-kpi b { display: block; color: #1d2939; font-size: 15px; margin-bottom: 4px; }
.preview-kpi span, .preview-chat span { color: #7d899b; font-size: 10px; }
.mini-chart { width: 100%; height: 92px; }
.mini-chat-line { display: flex; gap: 8px; margin: 10px 0; align-items: center; }
.mini-avatar { width: 22px; height: 22px; border-radius: 50%; background: #dfe8f7; }
.mini-message { flex: 1; height: 8px; border-radius: 4px; background: #e3e8f0; }
.auth-main { display: grid; place-items: center; padding: 42px; background: #ffffff; }
.auth-card { width: min(430px, 100%); }
.auth-mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 32px; color: var(--text-strong); font-weight: 700; }
.auth-title { margin: 0; color: var(--text-strong); font-size: 30px; letter-spacing: -.02em; }
.auth-subtitle { margin: 10px 0 30px; color: var(--muted); line-height: 1.7; }
.form-stack { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { color: var(--text-strong); font-size: 13px; font-weight: 600; }
.input-wrap { position: relative; }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-strong);
  border-radius: 10px;
  outline: none;
  transition: border .18s, box-shadow .18s, background .18s;
}
.input, .select { height: 44px; padding: 0 13px; }
.textarea { min-height: 92px; padding: 11px 13px; resize: vertical; }
.input.has-icon { padding-left: 40px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.input-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-action { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); padding: 6px; border-radius: 6px; }
.input-action:hover { background: var(--surface-soft); color: var(--text); }
.form-help { color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-options { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.checkbox input { width: 16px; height: 16px; accent-color: var(--primary); }
.link { border: 0; padding: 0; background: transparent; color: var(--primary); font-weight: 600; }
.btn { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: 9px; padding: 0 14px; background: var(--surface); color: var(--text); font-weight: 600; font-size: 13px; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); border-color: #b8c0cc; box-shadow: var(--shadow-sm); }
.btn:focus-visible { outline: 3px solid rgba(37,99,235,.2); outline-offset: 1px; }
.btn-primary { color: #fff; background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-danger { color: var(--danger); background: var(--danger-soft); border-color: #fecdca; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-soft { color: var(--primary); background: var(--primary-soft); border-color: transparent; }
.btn-block { width: 100%; }
.btn-lg { min-height: 46px; font-size: 14px; }
.btn-icon { width: 38px; min-width: 38px; padding: 0; }
.auth-switch { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: 13px; }
.auth-trust { margin-top: 34px; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; color: var(--muted-2); font-size: 11px; }
.auth-trust span { display: inline-flex; align-items: center; gap: 5px; }

/* Premium authentication composition */
body { font-family: Inter, "SF Pro Text", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif; }
.auth-shell-premium {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  grid-template-columns: minmax(560px, 1.08fr) minmax(400px, .92fr);
  background:
    radial-gradient(circle at 12% 14%, rgba(50,102,211,.08), transparent 30%),
    radial-gradient(circle at 76% 82%, rgba(90,96,220,.035), transparent 28%),
    #f4f7fb;
}
.auth-premium {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  grid-template-rows: auto auto minmax(0,1fr);
  align-content: start;
  gap: 0;
  padding: clamp(20px,3.4vh,32px) clamp(32px,5vw,76px);
  background: transparent;
  border-right: 0;
}
.auth-wordmark { gap: 11px; }
.auth-wordmark .brand-mark {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg,#1f5fe6,#4185f3);
  box-shadow: 0 10px 24px rgba(37,99,235,.2), inset 0 1px 0 rgba(255,255,255,.25);
}
.brand-symbol { width: 24px; height: 24px; }
.auth-wordmark > span:last-child { display: grid; gap: 2px; }
.auth-wordmark b { color: #142033; font-size: 15px; line-height: 1; font-weight: 760; letter-spacing: .11em; }
.auth-wordmark small { color: #77859a; font-size: 10px; line-height: 1.2; font-weight: 500; letter-spacing: .04em; }
.auth-premium .auth-copy { margin: clamp(18px,3vh,28px) 0 clamp(14px,2.4vh,22px); }
.auth-premium .auth-eyebrow { margin-bottom: 9px; color: #3973e6; font-size: 9px; letter-spacing: .18em; }
.auth-premium .auth-copy h1 { max-width: 480px; color: #121c2d; font-size: clamp(36px,3vw,48px); line-height: 1.08; font-weight: 720; letter-spacing: -.045em; }
.auth-premium .auth-copy > p { max-width: 480px; margin-top: 11px; color: #69768a; font-size: 13px; line-height: 1.55; }
.auth-premium .auth-points { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
.auth-premium .auth-point { color: #536176; font-size: 12px; }
.auth-premium .auth-point .check { width: 19px; height: 19px; background: #e7efff; }
.auth-premium .auth-point .icon { width: 13px; height: 13px; }
.premium-preview { align-self: start; width: min(680px, 100%); max-width: none; padding: 14px; border-color: rgba(210,220,234,.9); border-radius: 16px; box-shadow: 0 16px 40px rgba(25,45,80,.08); animation: preview-breathe 7s ease-in-out infinite; }
.premium-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.premium-preview-head strong { display: block; color: #172033; font-size: 12px; font-weight: 680; }
.premium-preview-head span span, .premium-preview-head > div > span { display: block; margin-top: 3px; color: #8792a4; font-size: 9px; }
.preview-live { display: inline-flex !important; align-items: center; gap: 6px; margin: 0 !important; padding: 5px 8px; border-radius: 999px; color: #067647 !important; background: #ecfdf3; font-size: 9px !important; font-weight: 650; }
.preview-live i { width: 6px; height: 6px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 3px rgba(18,183,106,.12); animation: live-pulse 1.8s ease-out infinite; }
.premium-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 9px; }
.premium-kpis > div { padding: 8px 10px; border: 1px solid #e4e9f0; border-radius: 9px; background: #fbfcfe; animation: metric-rise .6s both; }
.premium-kpis > div:nth-child(2) { animation-delay: .08s; }
.premium-kpis > div:nth-child(3) { animation-delay: .16s; }
.premium-kpis > div:nth-child(4) { animation-delay: .24s; }
.premium-kpis span { display: block; color: #8490a2; font-size: 8px; }
.premium-kpis strong { display: inline-block; margin-top: 5px; color: #182230; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.premium-kpis small { float: right; margin-top: 8px; color: #079455; font-size: 8px; }
.premium-analysis-grid { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(145px,.72fr); gap: 9px; }
.premium-chart-panel, .premium-insights { border: 1px solid #e5eaf1; border-radius: 10px; background: #fbfcfe; }
.premium-chart-panel { position: relative; overflow: hidden; padding: 10px 11px 8px; }
.premium-insights { padding: 10px; }
.preview-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.preview-panel-title span { color: #344054; font-size: 9px; font-weight: 650; }
.preview-panel-title small { color: #98a2b3; font-size: 8px; }
.premium-chart { width: 100%; height: clamp(84px,13vh,108px); margin-top: 3px; }
.motion-line { stroke-dasharray: 720; stroke-dashoffset: 720; animation: draw-line 2.4s cubic-bezier(.22,.8,.28,1) forwards; }
.engagement-line { animation-delay: .32s; }
.motion-area { opacity: 0; animation: area-in .8s ease 1.1s forwards; }
.motion-point { opacity: 0; animation: point-in .4s ease 2.1s forwards, point-pulse 2.2s ease-in-out 2.5s infinite; transform-origin: 410px 17px; }
.chart-scanner { position: absolute; top: 30px; bottom: 26px; left: 12px; width: 1px; opacity: 0; background: linear-gradient(to bottom,transparent,#3973e6 24%,#3973e6 76%,transparent); box-shadow: 5px 0 14px rgba(57,115,230,.13); animation: chart-scan 5.5s ease-in-out 2.6s infinite; }
.premium-chart-foot { display: flex; align-items: center; gap: 11px; color: #7b8798; font-size: 8px; }
.premium-chart-foot span { display: inline-flex; align-items: center; gap: 4px; }
.premium-chart-foot i { width: 6px; height: 6px; border-radius: 50%; }
.premium-chart-foot .viewer { background: #3973e6; }
.premium-chart-foot .engagement { background: #8b5cf6; }
.premium-chart-foot b { margin-left: auto; color: #079455; font-weight: 600; }
.insight-mini { padding: 11px 0; border-bottom: 1px solid #e8ecf2; }
.insight-mini:last-child { border-bottom: 0; padding-bottom: 1px; }
.insight-mini { animation: insight-focus 6s ease-in-out infinite; }
.insight-mini:nth-child(3) { animation-delay: 2s; }
.insight-mini:nth-child(4) { animation-delay: 4s; }
.insight-mini > span { display: block; color: #98a2b3; font-size: 8px; }
.insight-mini strong { display: block; margin-top: 3px; color: #263246; font-size: 10px; font-weight: 650; }
.insight-mini small { display: block; margin-top: 2px; color: #758196; font-size: 8px; }
.auth-form-kicker { margin-bottom: 10px; color: #3973e6; font-size: 9px; font-weight: 720; letter-spacing: .12em; }
.auth-shell-premium .auth-title { font-size: 27px; line-height: 1.2; font-weight: 720; letter-spacing: -.035em; }
.auth-shell-premium .auth-subtitle { margin-top: 7px; margin-bottom: 20px; font-size: 12px; line-height: 1.55; }
.auth-shell-premium .auth-main { min-height: 0; height: 100dvh; padding: clamp(22px,4vh,36px) clamp(28px,4.5vw,64px); background: transparent; overflow: hidden; }
.auth-shell-premium .auth-card { width: min(404px,100%); padding: 28px 30px 24px; border: 1px solid rgba(219,226,236,.88); border-radius: 19px; background: rgba(255,255,255,.94); box-shadow: 0 20px 52px rgba(24,39,68,.085); backdrop-filter: blur(14px); }
.auth-shell-premium .form-stack { gap: 15px; }
.auth-shell-premium .input { height: 42px; }
.auth-shell-premium .btn-lg { min-height: 44px; }
.auth-shell-premium .auth-switch { margin-top: 19px; padding-top: 18px; }
.auth-shell-premium .auth-trust { margin-top: 20px; gap: 14px; }
.auth-register .auth-main { overflow-y: auto; }

@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes area-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes point-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes point-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.65); } }
@keyframes chart-scan { 0%,12% { opacity: 0; transform: translateX(0); } 20% { opacity: .6; } 72% { opacity: .5; } 84%,100% { opacity: 0; transform: translateX(365px); } }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(18,183,106,.28); } 75%,100% { box-shadow: 0 0 0 7px rgba(18,183,106,0); } }
@keyframes metric-rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes preview-breathe { 0%,100% { transform: translateY(0); box-shadow: 0 18px 46px rgba(25,45,80,.09); } 50% { transform: translateY(-3px); box-shadow: 0 22px 52px rgba(25,45,80,.12); } }
@keyframes insight-focus { 0%,28%,100% { opacity: .66; } 8%,20% { opacity: 1; } }

@media (max-height: 760px) and (min-width: 1025px) {
  .auth-premium { padding-top: 18px; padding-bottom: 18px; }
  .auth-premium .auth-copy { margin: 15px 0 12px; }
  .auth-premium .auth-copy h1 { font-size: 34px; }
  .auth-premium .auth-copy > p { margin-top: 8px; line-height: 1.45; }
  .premium-preview { padding: 11px; }
  .premium-preview-head { margin-bottom: 8px; }
  .premium-kpis > div { padding: 6px 8px; }
  .premium-kpis strong { margin-top: 3px; font-size: 15px; }
  .premium-chart { height: 78px; }
  .insight-mini { padding: 7px 0; }
  .auth-shell-premium .auth-card { padding: 24px 28px 21px; }
  .auth-shell-premium .auth-subtitle { margin-bottom: 16px; }
  .auth-shell-premium .form-stack { gap: 12px; }
  .auth-shell-premium .auth-switch { margin-top: 15px; padding-top: 15px; }
  .auth-shell-premium .auth-trust { margin-top: 16px; }
}

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0,1fr); grid-template-rows: var(--header-height) 1fr; }
.sidebar { grid-row: 1 / span 2; background: var(--sidebar); color: #d6deec; display: flex; flex-direction: column; min-height: 100vh; position: sticky; top: 0; height: 100vh; z-index: 30; }
.sidebar-brand { height: var(--header-height); display: flex; align-items: center; gap: 10px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
.sidebar-brand-text { min-width: 0; }
.sidebar-brand-text small { display: block; color: #72a8ff; font-size: 10px; margin-bottom: 3px; }
.sidebar-brand-text strong { display: block; color: #fff; font-size: 15px; white-space: nowrap; }
.org-switcher { margin: 14px 12px 6px; padding: 10px 11px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.055); color: #e8edf6; }
.org-switcher:hover { background: rgba(255,255,255,.09); }
.org-logo { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #1e4ea0; color: #fff; font-size: 12px; font-weight: 700; }
.org-copy { flex: 1; min-width: 0; text-align: left; }
.org-copy strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-copy small { color: #8fa0ba; font-size: 10px; }
.sidebar-scroll { flex: 1; overflow-y: auto; padding: 8px 12px 18px; scrollbar-width: thin; }
.nav-section { margin-top: 18px; }
.nav-title { margin: 0 10px 7px; color: #71819a; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.nav-item { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 11px; margin: 2px 0; padding: 0 11px; border: 0; border-radius: 9px; background: transparent; color: #aebbd0; text-align: left; font-size: 13px; font-weight: 550; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: #1b3767; box-shadow: inset 3px 0 0 #5d9cff; }
.nav-item .nav-badge { margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.08); color: #9eb0c9; font-size: 10px; }
.sidebar-user { border-top: 1px solid rgba(255,255,255,.08); padding: 12px; }
.user-row { display: flex; align-items: center; gap: 10px; padding: 7px 7px 11px; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg,#2563eb,#7c3aed); font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.user-copy { min-width: 0; flex: 1; }
.user-copy strong { display: block; color: #fff; font-size: 12px; }
.user-copy small { color: #8595ad; font-size: 10px; }
.plan-chip { padding: 3px 6px; border-radius: 6px; background: rgba(255,255,255,.08); color: #c7d3e5; font-size: 9px; }
.sidebar-user .btn { color: #c8d3e5; border-color: rgba(255,255,255,.12); }
.sidebar-user .btn:hover { color: #fff; border-color: rgba(255,255,255,.24); }

.topbar { grid-column: 2; position: sticky; top: 0; z-index: 20; height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px; background: color-mix(in srgb, var(--surface) 92%, transparent); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mobile-menu { display: none; }
.breadcrumb { color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.page-heading { margin: 0; color: var(--text-strong); font-size: 19px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.health-summary { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 8px; color: var(--success); background: var(--success-soft); font-size: 12px; font-weight: 600; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent); }
.main { grid-column: 2; min-width: 0; padding: 24px 28px 42px; }
.page { max-width: 1560px; margin: 0 auto; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-title h2 { margin: 0; color: var(--text-strong); font-size: 24px; letter-spacing: -.02em; }
.page-title p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.page-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; border-bottom: 1px solid var(--border); }
.card-title { margin: 0; color: var(--text-strong); font-size: 15px; }
.card-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.card-body { padding: 20px; }
.section-gap { margin-top: 18px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.search-box { position: relative; width: min(280px, 100%); }
.search-box .input { padding-left: 38px; }

.readiness { padding: 14px 16px; display: grid; grid-template-columns: minmax(200px, .9fr) minmax(420px, 2fr) auto; align-items: center; gap: 18px; border-left: 3px solid var(--primary); }
.readiness-main { display: flex; align-items: center; gap: 11px; }
.readiness-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--primary); background: var(--primary-soft); }
.readiness-main strong { display: block; color: var(--text-strong); font-size: 13px; }
.readiness-main span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.check-list { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.check-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 9px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); background: var(--surface-soft); font-size: 11px; }
.check-chip.ok { color: var(--success); background: var(--success-soft); border-color: transparent; }
.check-chip.warn { color: var(--warning); background: var(--warning-soft); border-color: transparent; }

.current-session { margin-top: 16px; padding: 17px 18px; display: grid; grid-template-columns: minmax(200px,1.25fr) repeat(3,minmax(105px,.55fr)) auto; align-items: center; gap: 18px; }
.session-lead { display: flex; align-items: center; gap: 12px; min-width: 0; }
.session-time { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg,#2563eb,#7c3aed); font-size: 12px; font-weight: 700; }
.session-lead h3 { margin: 0 0 4px; color: var(--text-strong); font-size: 14px; }
.session-lead p { margin: 0; color: var(--muted); font-size: 11px; }
.session-info small { display: block; color: var(--muted); font-size: 10px; margin-bottom: 4px; }
.session-info strong { color: var(--text-strong); font-size: 12px; font-weight: 650; }

.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.metric { min-width: 0; padding: 15px 16px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.metric-label { color: var(--muted); font-size: 11px; white-space: nowrap; }
.metric-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--primary); background: var(--primary-soft); }
.metric-value { margin-top: 12px; color: var(--text-strong); font-size: 24px; line-height: 1; font-weight: 720; letter-spacing: -.02em; }
.metric-foot { display: flex; align-items: center; gap: 5px; margin-top: 8px; color: var(--muted); font-size: 10px; }
.metric-foot.up { color: var(--success); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px,.8fr); gap: 16px; margin-top: 16px; align-items: stretch; }
.chart-wrap { padding: 16px 18px 10px; min-height: 336px; }
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 4px; }
.chart-head h3 { margin: 0; color: var(--text-strong); font-size: 15px; }
.chart-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 10px; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; }
.legend-swatch { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.legend-swatch.purple { background: var(--purple); }
.chart-svg { width: 100%; height: 260px; overflow: visible; }
.chart-grid-line { stroke: var(--border); stroke-width: 1; }
.chart-axis-label { fill: var(--muted); font-size: 10px; }
.chart-line { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart-line.secondary { stroke: var(--purple); stroke-width: 2; }
.chart-area { fill: url(#viewerArea); opacity: .45; }
.chart-dot { fill: var(--surface); stroke: var(--primary); stroke-width: 2; }

.chat-panel { min-height: 336px; display: flex; flex-direction: column; }
.chat-summary { display: flex; gap: 12px; color: var(--muted); font-size: 10px; }
.chat-list { padding: 8px 16px 14px; display: grid; gap: 2px; overflow: hidden; }
.chat-item { display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.chat-item:last-child { border-bottom: 0; }
.chat-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 10px; font-weight: 700; }
.chat-copy { min-width: 0; }
.chat-name { display: flex; align-items: center; gap: 6px; color: var(--text-strong); font-size: 11px; font-weight: 650; }
.chat-message { margin-top: 4px; color: var(--text); font-size: 12px; line-height: 1.45; }
.chat-time { color: var(--muted-2); font-size: 9px; }
.tag { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 999px; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--border); font-size: 9px; font-weight: 650; }
.tag.blue { color: var(--primary); background: var(--primary-soft); border-color: transparent; }
.tag.green { color: var(--success); background: var(--success-soft); border-color: transparent; }
.tag.orange { color: var(--warning); background: var(--warning-soft); border-color: transparent; }
.tag.red { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.tag.purple { color: var(--purple); background: color-mix(in srgb,var(--purple) 10%,var(--surface)); border-color: transparent; }

.data-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.summary-card { padding: 17px; display: flex; align-items: center; gap: 12px; }
.summary-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: var(--primary); background: var(--primary-soft); }
.summary-copy span { display: block; color: var(--muted); font-size: 10px; }
.summary-copy strong { display: block; margin-top: 5px; color: var(--text-strong); font-size: 20px; }

.tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--border); padding: 0 18px; }
.tab { min-height: 46px; padding: 0 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 12px; font-weight: 650; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th { padding: 11px 14px; color: var(--muted); background: var(--surface-soft); font-size: 10px; font-weight: 650; text-align: left; white-space: nowrap; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: color-mix(in srgb,var(--primary) 2.5%,var(--surface)); }
.cell-main { color: var(--text-strong); font-weight: 650; }
.cell-sub { margin-top: 3px; color: var(--muted); font-size: 10px; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.link-action { border: 0; background: transparent; color: var(--primary); font-size: 11px; font-weight: 600; padding: 5px 6px; border-radius: 6px; }
.link-action:hover { background: var(--primary-soft); }

.env-cards { display: grid; grid-template-columns: repeat(3,minmax(260px,1fr)); gap: 14px; }
.env-card { padding: 17px; }
.env-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.env-title { display: flex; align-items: center; gap: 10px; }
.env-title .summary-icon { width: 38px; height: 38px; }
.env-title h3 { margin: 0; color: var(--text-strong); font-size: 13px; }
.env-title p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.env-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.env-meta span { display: block; color: var(--muted); font-size: 9px; }
.env-meta strong { display: block; margin-top: 4px; color: var(--text); font-size: 11px; }
.env-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }

.calendar-shell { overflow: hidden; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.calendar-title { color: var(--text-strong); font-size: 14px; font-weight: 700; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(150px,1fr)); min-width: 1050px; }
.calendar-day { min-height: 440px; border-right: 1px solid var(--border); background: var(--surface); }
.calendar-day:last-child { border-right: 0; }
.day-head { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid var(--border); }
.day-label { color: var(--muted); font-size: 10px; }
.day-number { margin-top: 3px; color: var(--text-strong); font-size: 16px; font-weight: 700; }
.day-number.today { width: 30px; height: 30px; margin-top: 0; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--primary); }
.add-day { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.add-day:hover { color: var(--primary); background: var(--primary-soft); }
.day-body { padding: 10px; display: grid; gap: 8px; }
.schedule-event { padding: 10px; border-left: 3px solid var(--primary); border-radius: 8px; background: var(--primary-soft); }
.schedule-event.purple { border-color: var(--purple); background: color-mix(in srgb,var(--purple) 10%,var(--surface)); }
.schedule-event.orange { border-color: var(--warning); background: var(--warning-soft); }
.schedule-event time { color: var(--primary); font-size: 9px; font-weight: 700; }
.schedule-event h4 { margin: 5px 0 3px; color: var(--text-strong); font-size: 11px; }
.schedule-event p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }

.filter-bar { padding: 14px 16px; display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.compact-field { display: grid; gap: 5px; }
.compact-field label { color: var(--muted); font-size: 9px; }
.compact-field .input, .compact-field .select { height: 38px; min-width: 150px; }

.profile-layout { display: grid; grid-template-columns: minmax(320px,.85fr) minmax(0,1.45fr); gap: 16px; }
.profile-list { padding: 8px; }
.profile-row { width: 100%; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 11px; border: 0; border-radius: 9px; background: transparent; text-align: left; }
.profile-row:hover, .profile-row.active { background: var(--primary-soft); }
.profile-row .avatar { width: 38px; height: 38px; }
.profile-row strong { display: block; color: var(--text-strong); font-size: 12px; }
.profile-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.profile-detail { padding: 20px; }
.profile-hero { display: flex; align-items: center; gap: 14px; }
.profile-hero .avatar { width: 52px; height: 52px; font-size: 16px; }
.profile-hero h3 { margin: 0 0 5px; color: var(--text-strong); }
.profile-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.insight-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 18px; }
.insight { padding: 12px; border-radius: 9px; background: var(--surface-soft); }
.insight span { color: var(--muted); font-size: 9px; }
.insight strong { display: block; margin-top: 5px; color: var(--text-strong); font-size: 13px; }
.timeline { margin-top: 20px; }
.timeline-item { position: relative; padding: 0 0 18px 22px; border-left: 1px solid var(--border); }
.timeline-item:last-child { border-left-color: transparent; }
.timeline-item::before { content: ""; position: absolute; left: -4px; top: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.timeline-item time { color: var(--muted); font-size: 9px; }
.timeline-item p { margin: 5px 0 0; color: var(--text); font-size: 11px; line-height: 1.55; }

.keyword-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(300px,.7fr); gap: 16px; }
.word-cloud { min-height: 250px; display: flex; align-items: center; justify-content: center; align-content: center; flex-wrap: wrap; gap: 15px 20px; padding: 28px; }
.word { color: var(--primary); font-weight: 700; line-height: 1; }
.word.purple { color: var(--purple); }
.word.cyan { color: var(--cyan); }
.word.orange { color: var(--warning); }
.rank-list { display: grid; gap: 12px; }
.rank-row { display: grid; grid-template-columns: 22px 80px 1fr 36px; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.rank-num { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: var(--surface-soft); font-weight: 700; }
.progress { height: 7px; overflow: hidden; border-radius: 999px; background: var(--surface-soft); }
.progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--primary),#60a5fa); }

.settings-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 16px; align-items: start; }
.settings-nav { padding: 8px; position: sticky; top: calc(var(--header-height) + 20px); }
.settings-nav button { width: 100%; min-height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); text-align: left; font-size: 11px; }
.settings-nav button.active, .settings-nav button:hover { color: var(--primary); background: var(--primary-soft); }
.setting-section + .setting-section { margin-top: 16px; }
.setting-row { display: grid; grid-template-columns: minmax(160px,.75fr) minmax(320px,1.25fr); gap: 28px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.setting-row:last-child { border-bottom: 0; }
.setting-copy h4 { margin: 0; color: var(--text-strong); font-size: 12px; }
.setting-copy p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.inline-input { display: flex; gap: 8px; }

.plan-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.plan-card { position: relative; padding: 22px; }
.plan-card.featured { border: 2px solid var(--primary); box-shadow: 0 10px 30px rgba(37,99,235,.12); }
.plan-label { position: absolute; right: 16px; top: 16px; }
.plan-card h3 { margin: 0; color: var(--text-strong); font-size: 17px; }
.plan-desc { min-height: 38px; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.plan-price { margin: 20px 0; color: var(--text-strong); font-size: 32px; font-weight: 750; }
.plan-price small { color: var(--muted); font-size: 11px; font-weight: 500; }
.plan-features { display: grid; gap: 10px; margin: 20px 0; color: var(--text); font-size: 11px; }
.plan-feature { display: flex; align-items: center; gap: 8px; }
.usage-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.usage-card { padding: 16px; }
.usage-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.usage-card span { color: var(--muted); font-size: 10px; }
.usage-card strong { color: var(--text-strong); font-size: 13px; }
.usage-card .progress { margin-top: 12px; }

.empty-state { min-height: 210px; display: grid; place-items: center; text-align: center; padding: 28px; }
.empty-icon { width: 48px; height: 48px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 14px; color: var(--primary); background: var(--primary-soft); }
.empty-state h3 { margin: 0; color: var(--text-strong); font-size: 14px; }
.empty-state p { max-width: 440px; margin: 7px auto 16px; color: var(--muted); font-size: 11px; line-height: 1.55; }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(15,23,42,.46); backdrop-filter: blur(3px); }
.modal { width: min(620px,100%); max-height: calc(100vh - 48px); overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 24px 70px rgba(16,24,40,.24); }
.modal-lg { width: min(880px,100%); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.modal-header h3 { margin: 0; color: var(--text-strong); font-size: 17px; }
.modal-header p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.modal-body { padding: 22px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 22px; border-top: 1px solid var(--border); }
.drawer-backdrop { position: fixed; inset: 0; z-index: 75; background: rgba(15,23,42,.3); }
.drawer { position: fixed; z-index: 76; right: 0; top: 0; bottom: 0; width: min(560px,100%); overflow-y: auto; background: var(--surface); border-left: 1px solid var(--border); box-shadow: -18px 0 50px rgba(16,24,40,.16); }
.drawer-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 22px; background: var(--surface); border-bottom: 1px solid var(--border); }
.drawer-body { padding: 22px; }

.toast-root { position: fixed; z-index: 120; right: 20px; top: 20px; display: grid; gap: 9px; pointer-events: none; }
.toast { min-width: 280px; max-width: 380px; display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--surface); box-shadow: var(--shadow-md); animation: toast-in .2s ease-out; }
.toast.success { border-left: 3px solid var(--success); }
.toast.warn { border-left: 3px solid var(--warning); }
.toast strong { display: block; color: var(--text-strong); font-size: 12px; }
.toast span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.mobile-overlay { display: none; }
.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; }

@media (max-width: 1280px) {
  :root { --sidebar-width: 220px; }
  .metric-grid { grid-template-columns: repeat(3,1fr); }
  .data-grid { grid-template-columns: repeat(2,1fr); }
  .env-cards { grid-template-columns: repeat(2,1fr); }
  .current-session { grid-template-columns: minmax(210px,1.3fr) repeat(2,minmax(100px,.6fr)) auto; }
  .current-session .session-info:nth-of-type(4) { display: none; }
}

@media (max-width: 1024px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-main { min-height: 0; height: 100dvh; }
  .auth-mobile-brand { display: flex; }
  .auth-shell-premium .auth-mobile-brand { margin-bottom: 24px; }
  .dashboard-grid, .keyword-layout, .profile-layout { grid-template-columns: 1fr; }
  .chat-panel { min-height: auto; }
  .plan-grid { grid-template-columns: 1fr; }
  .usage-grid { grid-template-columns: repeat(2,1fr); }
  .readiness { grid-template-columns: 1fr auto; }
  .readiness .check-list { grid-column: 1 / -1; grid-row: 2; }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .auth-shell-premium { grid-template-columns: 1fr; }
  .auth-shell-premium .auth-brand { display: none; }
  .auth-shell-premium .auth-main { height: 100dvh; }
}

@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(280px,86vw); transform: translateX(-101%); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); }
  .mobile-overlay { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(15,23,42,.4); }
  .topbar { grid-column: auto; padding: 0 16px; }
  .mobile-menu { display: inline-flex; }
  .main { grid-column: auto; padding: 18px 16px 32px; }
  .health-summary span:last-child { display: none; }
  .page-header { align-items: flex-start; }
  .current-session { grid-template-columns: 1fr auto; }
  .current-session .session-info { display: none; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; display: flex; overflow-x: auto; }
  .settings-nav button { min-width: max-content; }
}

@media (max-width: 620px) {
  .auth-main { padding: 30px 20px; }
  .auth-shell-premium .auth-main { padding: 24px 18px; }
  .auth-shell-premium .auth-card { padding: 25px 22px 22px; border-radius: 16px; }
  .auth-shell-premium .auth-mobile-brand { margin-bottom: 21px; }
  .field-row { grid-template-columns: 1fr; }
  .page-header { display: grid; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .topbar-actions .btn-icon:nth-of-type(1) { display: none; }
  .metric-grid, .data-grid, .env-cards, .usage-grid { grid-template-columns: 1fr 1fr; }
  .readiness { grid-template-columns: 1fr; }
  .readiness .btn { width: 100%; }
  .readiness .check-list { grid-column: auto; grid-row: auto; }
  .current-session { grid-template-columns: 1fr; }
  .current-session > .btn { width: 100%; }
  .setting-row { grid-template-columns: 1fr; gap: 12px; }
  .inline-input { display: grid; }
  .insight-grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; }
}

@media (max-width: 420px) {
  .metric-grid, .data-grid, .env-cards, .usage-grid { grid-template-columns: 1fr; }
  .form-options { align-items: flex-start; flex-direction: column; }
  .auth-page .form-options { align-items: center; flex-direction: row; }
  .topbar-actions .health-summary { display: none; }
}

@media (max-height: 680px) and (max-width: 1024px) {
  .auth-shell-premium .auth-main { padding-top: 14px; padding-bottom: 14px; }
  .auth-shell-premium .auth-card { padding-top: 20px; padding-bottom: 18px; }
  .auth-shell-premium .auth-mobile-brand { margin-bottom: 15px; }
  .auth-shell-premium .auth-subtitle { margin-bottom: 14px; }
  .auth-shell-premium .form-stack { gap: 11px; }
  .auth-shell-premium .auth-switch { margin-top: 13px; padding-top: 13px; }
  .auth-shell-premium .auth-trust { display: none; }
}

/* Login V3: signal workbench and workspace-oriented sign-in */
.signal-board {
  width: min(760px,100%);
  max-width: 760px;
  min-height: 340px;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(205,216,234,.95);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 24px 54px rgba(31,55,96,.10);
}
.signal-board-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px 14px; border-bottom: 1px solid #e9edf4; }
.signal-session { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; min-width: 0; }
.signal-session > span { grid-column: 1 / -1; width: max-content; }
.signal-session strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #18253a; font-size: 14px; font-weight: 720; }
.signal-session small { color: #8793a6; font-size: 10px; white-space: nowrap; }
.signal-live { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 7px; color: #08794f; font-size: 9px; font-weight: 720; letter-spacing: .04em; }
.signal-live i { width: 6px; height: 6px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 4px rgba(18,183,106,.12); animation: live-pulse 1.8s ease-out infinite; }
.signal-clock { flex: 0 0 auto; padding-left: 18px; border-left: 1px solid #e6ebf2; text-align: right; }
.signal-clock span { display: block; color: #8a96a9; font-size: 9px; }
.signal-clock b { display: block; margin-top: 4px; color: #31415a; font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.signal-board-body { min-height: 0; display: grid; grid-template-columns: minmax(0,1.72fr) minmax(172px,.78fr); }
.signal-main { position: relative; min-width: 0; padding: 16px 18px 13px; border-right: 1px solid #e9edf4; }
.signal-metric { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.signal-metric span { display: block; color: #7d899b; font-size: 10px; }
.signal-metric strong { display: block; margin-top: 4px; color: #142239; font-size: clamp(28px,2.25vw,36px); line-height: 1; font-weight: 760; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.signal-metric > b { margin-bottom: 3px; color: #079455; font-size: 10px; font-weight: 720; }
.signal-chart-caption { display: flex; justify-content: space-between; margin-top: 13px; color: #56647a; font-size: 10px; font-weight: 650; }
.signal-chart-caption small { color: #98a2b3; font-size: 9px; font-weight: 500; }
.signal-main .premium-chart { height: clamp(100px,14vh,142px); margin-top: 5px; }
.signal-main .chart-scanner { top: 92px; right: auto; bottom: 31px; left: 18px; }
.signal-chart-legend { display: flex; align-items: center; gap: 13px; color: #7d8990; font-size: 9px; }
.signal-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.signal-chart-legend i { width: 6px; height: 6px; border-radius: 50%; }
.signal-chart-legend .viewer { background: #3973e6; }
.signal-chart-legend .engagement { background: #8b5cf6; }
.signal-insights { display: grid; align-content: start; padding: 16px 15px 12px; background: linear-gradient(180deg,#fbfcff 0%,#f7f9fd 100%); }
.signal-insights-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.signal-insights-head span { color: #344054; font-size: 10px; font-weight: 720; }
.signal-insights-head small { color: #98a2b3; font-size: 8px; }
.signal-insight { padding: 13px 0; border-bottom: 1px solid #e7ecf3; }
.signal-insight:last-child { border-bottom: 0; }
.signal-insight > span { display: block; color: #8b97a9; font-size: 9px; }
.signal-insight strong { display: block; margin-top: 4px; color: #26354d; font-size: 12px; font-weight: 720; }
.signal-insight small { display: block; margin-top: 4px; color: #78869a; font-size: 9px; line-height: 1.35; }
.signal-insight.active { animation: insight-focus 6s ease-in-out infinite; }
.signal-board-foot { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 12px; padding: 11px 18px 12px; border-top: 1px solid #e9edf4; background: rgba(250,252,255,.82); }
.signal-board-foot > div { min-width: 0; }
.signal-board-foot span { display: block; color: #8a96a9; font-size: 9px; }
.signal-board-foot b { display: inline-block; margin-top: 4px; color: #33415a; font-size: 14px; font-weight: 720; font-variant-numeric: tabular-nums; }
.signal-board-foot small { margin-left: 5px; color: #079455; font-size: 8px; }
.signal-quality { position: relative; }
.signal-quality i { display: block; width: 100%; height: 4px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: #e2e8f0; }
.signal-quality em { display: block; width: 99.6%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#38c78b,#12b76a); }

.auth-shell-premium .auth-card { width: min(430px,100%); padding: 25px 30px 23px; border-radius: 20px; box-shadow: 0 24px 58px rgba(24,39,68,.09); }
.auth-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid #e8ecf2; }
.workspace-identity { display: flex; align-items: center; gap: 9px; min-width: 0; }
.workspace-identity > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: #fff; background: linear-gradient(145deg,#1f5fe6,#4388f3); font-size: 10px; font-weight: 780; letter-spacing: .02em; }
.workspace-identity p { display: grid; gap: 2px; margin: 0; min-width: 0; }
.workspace-identity b { color: #27364d; font-size: 12px; line-height: 1.15; font-weight: 720; }
.workspace-identity small { color: #8490a2; font-size: 9px; line-height: 1.2; }
.workspace-secure { flex: 0 0 auto; padding: 5px 7px; border: 1px solid #d9f0e4; border-radius: 999px; color: #08794f; background: #f0fdf6; font-size: 9px; font-weight: 650; }
.auth-intro { padding: 20px 0 0; }
.auth-shell-premium .auth-title { font-size: 28px; line-height: 1.15; letter-spacing: -.04em; }
.auth-shell-premium .auth-subtitle { margin-top: 8px; margin-bottom: 20px; color: #728096; font-size: 12px; line-height: 1.55; }
.auth-shell-premium .auth-trust { padding-top: 15px; border-top: 1px solid #e8ecf2; }

@media (min-width: 1600px) {
  .auth-shell-premium { grid-template-columns: minmax(720px,1.16fr) minmax(480px,.84fr); }
  .auth-premium { padding-left: clamp(56px,6vw,104px); padding-right: clamp(56px,6vw,104px); }
  .signal-board { min-height: 370px; }
  .auth-shell-premium .auth-card { width: min(450px,100%); padding: 29px 34px 27px; }
  .auth-shell-premium .auth-title { font-size: 31px; }
}

@media (min-width: 1025px) and (max-width: 1320px) {
  .auth-shell-premium { grid-template-columns: minmax(520px,1.04fr) minmax(390px,.96fr); }
  .auth-premium { padding-left: 40px; padding-right: 40px; }
  .signal-board-body { grid-template-columns: minmax(0,1.55fr) minmax(138px,.7fr); }
  .signal-insights { padding-left: 11px; padding-right: 11px; }
  .signal-clock { display: none; }
}

@media (max-height: 760px) and (min-width: 1025px) {
  .auth-premium { padding-top: 17px; padding-bottom: 17px; }
  .auth-premium .auth-copy { margin: 13px 0 11px; }
  .auth-premium .auth-copy h1 { font-size: 34px; }
  .auth-premium .auth-copy > p { margin-top: 7px; font-size: 12px; }
  .signal-board { min-height: 0; }
  .signal-board-head { padding: 11px 14px 10px; }
  .signal-main { padding: 10px 14px 9px; }
  .signal-main .premium-chart { height: 78px; }
  .signal-main .chart-scanner { top: 70px; bottom: 26px; left: 14px; }
  .signal-insights { padding: 10px 11px; }
  .signal-insight { padding: 8px 0; }
  .signal-board-foot { padding: 8px 14px 9px; }
  .auth-shell-premium .auth-card { padding: 22px 27px 20px; }
  .auth-intro { padding-top: 15px; }
  .auth-shell-premium .auth-title { font-size: 26px; }
  .auth-shell-premium .auth-subtitle { margin-bottom: 15px; }
  .auth-shell-premium .auth-trust { margin-top: 15px; padding-top: 12px; }
}

@media (max-width: 1024px) {
  .auth-shell-premium .auth-card { width: min(430px,100%); }
}

@media (max-width: 620px) {
  .auth-shell-premium .auth-card { padding: 23px 22px 21px; }
  .auth-card-head { padding-bottom: 15px; }
  .auth-intro { padding-top: 17px; }
  .auth-shell-premium .auth-title { font-size: 27px; }
}

@media (max-height: 680px) and (max-width: 1024px) {
  .auth-shell-premium .auth-card { padding-top: 19px; padding-bottom: 17px; }
  .auth-card-head { padding-bottom: 12px; }
  .auth-intro { padding-top: 13px; }
}

@media (max-height: 600px) and (max-width: 1024px) {
  .auth-shell-premium .auth-main { padding-top: 12px; padding-bottom: 12px; }
  .auth-shell-premium .auth-card { padding: 17px 20px 16px; }
  .auth-shell-premium .auth-mobile-brand { margin-bottom: 12px; }
  .auth-card-head { padding-bottom: 10px; }
  .auth-intro { padding-top: 11px; padding-bottom: 13px; }
  .auth-shell-premium .auth-title { font-size: 24px; }
  .auth-shell-premium .auth-subtitle { display: none; }
  .auth-shell-premium .form-stack { gap: 9px; }
  .auth-shell-premium .auth-switch { margin-top: 11px; padding-top: 11px; }
}

/* Purple live-scene composition */
.auth-shell-blue {
  background: #fff;
}
.auth-shell-blue .auth-premium {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 45% 46%, rgba(59,115,230,.17), transparent 30%),
    radial-gradient(circle at 7% 98%, rgba(91,145,246,.18), transparent 36%),
    linear-gradient(135deg,#f8fbff 0%,#edf4ff 52%,#e2eeff 100%);
}
.auth-shell-blue .auth-premium::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 6%;
  right: -13%;
  width: 46%;
  aspect-ratio: 1;
  transform: rotate(-8deg);
  border: 32px solid rgba(37,99,235,.07);
  border-radius: 32px;
}
.auth-shell-blue .auth-premium > * { position: relative; z-index: 1; }
.auth-shell-blue .auth-main { background: #fff; }
.auth-shell-blue .auth-wordmark .brand-mark,
.auth-shell-blue .workspace-identity > span { background: linear-gradient(145deg,#4f8ff7,#2563eb); box-shadow: 0 11px 24px rgba(37,99,235,.24); }
.auth-shell-blue .auth-wordmark b { color: #183153; }
.auth-shell-blue .auth-wordmark small { color: #6e7f9a; }
.auth-shell-blue .auth-eyebrow { color: #3973e6; }
.auth-shell-blue .auth-copy h1 { color: #152a49; white-space: nowrap; font-size: clamp(34px,3.1vw,48px); letter-spacing: -.06em; }
.auth-shell-blue .auth-copy > p { color: #667995; }
.auth-shell-blue .auth-card { border-color: #e3ecfa; background: rgba(255,255,255,.98); box-shadow: 0 24px 62px rgba(37,99,235,.13); }
.auth-shell-blue .auth-card-head,
.auth-shell-blue .auth-trust { border-color: #e5edf9; }
.auth-shell-blue .workspace-secure { border-color: #dceaff; color: #2767ce; background: #f1f6ff; }
.auth-shell-blue .auth-title { color: #152a49; }
.auth-shell-blue .link { color: #2563eb; }
.auth-shell-blue .btn-primary { border-color: #2563eb; background: linear-gradient(100deg,#3b82f6,#2563eb); box-shadow: 0 10px 20px rgba(37,99,235,.2); }
.auth-shell-blue .btn-primary:hover { border-color: #1d4ed8; background: linear-gradient(100deg,#2563eb,#1d4ed8); }
.auth-shell-blue .input:focus { border-color: #3973e6; box-shadow: 0 0 0 3px rgba(57,115,230,.12); }

.live-scene {
  position: relative;
  align-self: start;
  width: min(760px,100%);
  max-width: none;
  height: clamp(285px,43vh,390px);
  min-height: 0;
  margin-top: clamp(14px,2.2vh,24px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}
.scene-grid { position: absolute; inset: 4% 3% 8%; opacity: .42; background-image: linear-gradient(rgba(59,115,230,.14) 1px,transparent 1px),linear-gradient(90deg,rgba(59,115,230,.14) 1px,transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(ellipse at center,black 30%,transparent 76%); }
.scene-ghost { position: absolute; top: -11%; right: -5%; color: rgba(37,99,235,.08); font-size: clamp(120px,16vw,230px); font-weight: 800; line-height: .8; letter-spacing: -.1em; transform: rotate(-7deg); }
.scene-orbit { position: absolute; border: 1.5px dashed rgba(59,115,230,.4); border-radius: 50%; animation: orbit-drift 12s linear infinite; }
.orbit-one { width: 72%; height: 42%; left: 10%; top: 29%; transform: rotate(-14deg); }
.orbit-two { width: 50%; height: 68%; left: 26%; top: 12%; border-style: solid; border-color: rgba(80,134,241,.18); animation-direction: reverse; animation-duration: 16s; }
.scene-core { position: absolute; z-index: 2; top: 14%; left: 19%; width: min(330px,54%); padding: 20px 22px 15px; border: 2px solid rgba(57,115,230,.68); border-radius: 27px; background: linear-gradient(145deg,rgba(255,255,255,.96),rgba(243,248,255,.88)); box-shadow: 0 22px 48px rgba(37,99,235,.22),inset 0 1px 0 rgba(255,255,255,.9); animation: scene-core-float 5.5s ease-in-out infinite; }
.scene-core::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(79,143,247,.22); border-radius: 21px; pointer-events: none; }
.scene-core-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; color: #647a9b; font-size: 10px; font-weight: 650; }
.scene-core-mark { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: linear-gradient(145deg,#5b9af9,#2563eb); box-shadow: 0 6px 12px rgba(37,99,235,.2); }
.scene-core-mark .brand-symbol { width: 15px; height: 15px; }
.scene-core > strong { position: relative; z-index: 1; display: block; margin-top: 13px; color: #1c365c; font-size: clamp(32px,3vw,45px); line-height: 1; font-weight: 780; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.scene-core > b { position: relative; z-index: 1; display: block; margin-top: 6px; color: #17a36f; font-size: 10px; font-weight: 720; }
.scene-wave { position: relative; z-index: 1; display: block; width: 100%; height: 73px; margin-top: 10px; overflow: visible; }
.scene-area { opacity: 0; animation: area-in .8s ease .5s forwards; }
.scene-line { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 520; stroke-dashoffset: 520; }
.scene-line-main { stroke: #3973e6; stroke-width: 3.2; animation: scene-draw 2.2s cubic-bezier(.22,.8,.28,1) forwards; }
.scene-line-secondary { stroke: #8eb8ff; stroke-width: 2.1; animation: scene-draw 2.2s cubic-bezier(.22,.8,.28,1) .28s forwards; }
.scene-core-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #7184a0; font-size: 9px; }
.scene-core-foot span { display: inline-flex; align-items: center; gap: 5px; }
.scene-core-foot i { width: 6px; height: 6px; border-radius: 50%; background: #3973e6; box-shadow: 0 0 0 4px rgba(57,115,230,.12); animation: live-pulse 1.8s ease-out infinite; }
.scene-core-foot b { color: #2563eb; font-weight: 700; }
.scene-float { position: absolute; z-index: 3; display: grid; gap: 3px; min-width: 122px; padding: 12px 13px; border: 1px solid rgba(205,222,250,.88); border-radius: 14px; background: rgba(255,255,255,.88); box-shadow: 0 14px 30px rgba(37,99,235,.15); backdrop-filter: blur(10px); animation: float-pulse 5s ease-in-out infinite; }
.scene-float span { color: #7486a1; font-size: 9px; }
.scene-float b { color: #2a4c8f; font-size: 12px; font-weight: 740; }
.scene-float small { color: #73849e; font-size: 9px; white-space: nowrap; }
.scene-float-live { top: 8%; right: 2%; animation-delay: .4s; }
.scene-float-live span { color: #2563eb; font-weight: 750; letter-spacing: .08em; }
.scene-float-rate { top: 52%; left: 0; animation-delay: 1.4s; }
.scene-float-rate b { color: #2563eb; font-size: 17px; }
.scene-float-rate small { color: #12a46d; }
.scene-float-ai { right: 1%; bottom: 12%; animation-delay: 2.1s; }
.scene-caption { position: absolute; z-index: 2; bottom: 0; left: 50%; margin: 0; color: #62779a; font-size: 11px; transform: translateX(-50%); white-space: nowrap; }
@keyframes orbit-drift { from { rotate: 0deg; } to { rotate: 360deg; } }
@keyframes scene-core-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes float-pulse { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes scene-draw { to { stroke-dashoffset: 0; } }

@media (max-height: 760px) and (min-width: 1181px) {
  .auth-shell-blue .auth-copy h1 { font-size: 34px; }
  .live-scene { height: 285px; margin-top: 9px; }
  .scene-core { top: 10%; padding: 15px 18px 12px; border-radius: 23px; }
  .scene-core > strong { margin-top: 9px; font-size: 34px; }
  .scene-wave { height: 54px; margin-top: 7px; }
  .scene-float { padding: 8px 10px; border-radius: 11px; }
  .scene-float-ai { bottom: 9%; }
  .scene-caption { display: none; }
}

/* Authentication states and guided first-run flow */
.field.has-error .input { border-color: #d92d20; background: #fffafa; box-shadow: 0 0 0 3px rgba(217,45,32,.08); }
.field-error { display: block; color: #d92d20; font-size: 11px; line-height: 1.35; }
.auth-form-alert { display: flex; align-items: flex-start; gap: 7px; padding: 9px 10px; border: 1px solid #fecdca; border-radius: 9px; color: #b42318; background: #fff4f2; font-size: 11px; line-height: 1.45; }
.auth-form-alert .icon { margin-top: 1px; color: #d92d20; }
.btn-guide { min-height: 38px; border-color: #cfe0fb; color: #2563eb; background: #f4f8ff; font-size: 12px; }
.btn-guide:hover { border-color: #98bdf4; background: #eaf2ff; }

.onboarding-backdrop { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 28px; overflow: auto; background: rgba(15,27,53,.4); backdrop-filter: blur(4px); }
.onboarding-dialog { width: min(940px,100%); max-height: min(760px,calc(100dvh - 56px)); display: grid; grid-template-rows: auto minmax(0,1fr) auto; overflow: hidden; border: 1px solid #dce7f8; border-radius: 22px; background: #fff; box-shadow: 0 28px 76px rgba(15,39,82,.28); }
.onboarding-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 26px 30px 22px; border-bottom: 1px solid #e8eef8; background: linear-gradient(110deg,#fbfdff 0%,#f2f7ff 100%); }
.onboarding-kicker { display: block; margin-bottom: 8px; color: #3973e6; font-size: 10px; font-weight: 780; letter-spacing: .12em; }
.onboarding-header h2 { margin: 0; color: #152a49; font-size: 25px; line-height: 1.25; letter-spacing: -.03em; }
.onboarding-header p { margin: 8px 0 0; color: #6f7f96; font-size: 13px; line-height: 1.55; }
.onboarding-layout { min-height: 0; display: grid; grid-template-columns: 220px minmax(0,1fr); }
.onboarding-steps { display: grid; align-content: start; gap: 4px; margin: 0; padding: 18px 14px; list-style: none; border-right: 1px solid #e8eef8; background: #fbfcff; }
.onboarding-steps button { width: 100%; display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto auto; column-gap: 9px; padding: 11px 10px; border: 0; border-radius: 11px; color: #64748b; background: transparent; text-align: left; }
.onboarding-steps button:hover { background: #f0f5ff; }
.onboarding-steps button > span { grid-row: 1 / span 2; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #d5dfef; border-radius: 50%; color: #7d8ca2; background: #fff; font-size: 11px; font-weight: 750; }
.onboarding-steps strong { color: #43536b; font-size: 12px; font-weight: 720; }
.onboarding-steps small { margin-top: 2px; color: #94a0b2; font-size: 10px; }
.onboarding-steps li.active button { background: #eaf2ff; }
.onboarding-steps li.active button > span { border-color: #3973e6; color: #fff; background: #3973e6; box-shadow: 0 4px 10px rgba(57,115,230,.22); }
.onboarding-steps li.active strong { color: #1e4fba; }
.onboarding-steps li.done button > span { border-color: #bfe5d3; color: #079455; background: #ecfdf3; }
.onboarding-main { padding: 29px 34px; overflow: auto; }
.guide-step-count { color: #3973e6; font-size: 11px; font-weight: 720; }
.onboarding-main h3 { margin: 9px 0 0; color: #1a2d4d; font-size: 23px; line-height: 1.28; letter-spacing: -.025em; }
.guide-desc { max-width: 590px; margin: 10px 0 20px; color: #66778f; font-size: 13px; line-height: 1.75; }
.guide-detail { padding: 17px 19px; border: 1px solid #e1eaf8; border-radius: 13px; background: #f9fbff; }
.guide-detail h4 { margin: 0 0 11px; color: #344a6c; font-size: 13px; }
.guide-detail ol { display: grid; gap: 9px; margin: 0; padding-left: 19px; color: #52647d; font-size: 12px; line-height: 1.55; }
.guide-detail li::marker { color: #3973e6; font-weight: 750; }
.guide-result { display: flex; align-items: flex-start; gap: 8px; margin-top: 15px; padding: 11px 12px; border-left: 3px solid #36b37e; border-radius: 0 9px 9px 0; background: #f1fcf7; }
.guide-result span { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; color: #087b4f; font-size: 11px; font-weight: 720; }
.guide-result p { margin: 0; color: #4d7463; font-size: 11px; line-height: 1.5; }
.guide-go { margin-top: 16px; }
.onboarding-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 30px; border-top: 1px solid #e8eef8; background: #fff; }
.onboarding-footer > div { display: flex; gap: 9px; }

@media (max-width: 840px) {
  .onboarding-backdrop { align-items: end; padding: 0; }
  .onboarding-dialog { width: 100%; max-height: 94dvh; border-radius: 22px 22px 0 0; }
  .onboarding-header { padding: 22px 21px 18px; }
  .onboarding-header h2 { font-size: 21px; }
  .onboarding-layout { grid-template-columns: 1fr; }
  .onboarding-steps { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 5px; padding: 12px 14px; border-right: 0; border-bottom: 1px solid #e8eef8; }
  .onboarding-steps button { display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto; justify-items: center; gap: 4px; padding: 5px 2px; text-align: center; }
  .onboarding-steps button > span { grid-row: auto; }
  .onboarding-steps small { display: none; }
  .onboarding-steps strong { font-size: 10px; white-space: nowrap; }
  .onboarding-main { padding: 22px 20px; }
  .onboarding-footer { padding: 14px 20px; }
}

@media (max-width: 520px) {
  .btn-guide { width: 38px; min-width: 38px; padding: 0; font-size: 0; }
  .btn-guide .icon { width: 17px; height: 17px; }
  .onboarding-header p { font-size: 12px; }
  .guide-desc { font-size: 12px; }
  .onboarding-footer { align-items: flex-end; }
  .onboarding-footer > div { flex: 1; justify-content: flex-end; }
  .onboarding-footer .btn-primary { min-width: 150px; }
}

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

/* LiveOps workspace refresh: extend the login palette into the signed-in shell. */
.app-shell {
  --page: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-blue: #edf4ff;
  --sidebar: #0a1730;
  --sidebar-soft: #152b52;
  --text: #2b3b54;
  --text-strong: #152a49;
  --muted: #6d7e99;
  --muted-2: #98a8bf;
  --border: #e2eaf5;
  --border-strong: #cbd7e8;
  --primary: #2f6fe8;
  --primary-hover: #245dd1;
  --primary-soft: #eaf2ff;
  --purple: #7661e8;
  --success: #079455;
  --success-soft: #ecfdf3;
  --warning: #c97816;
  --warning-soft: #fff8e8;
  --danger: #d92d20;
  --danger-soft: #fef3f2;
  --shadow-sm: 0 1px 2px rgba(28, 54, 92, .035), 0 8px 24px rgba(44, 77, 126, .035);
  --shadow-md: 0 16px 40px rgba(25, 53, 98, .12);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --sidebar-width: 260px;
  --header-height: 72px;
  background: var(--page);
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: var(--header-height) 1fr;
}

[data-theme="dark"] .app-shell {
  --page: #0d1425;
  --surface: #151e31;
  --surface-soft: #111a2b;
  --surface-blue: #172647;
  --sidebar: #081328;
  --sidebar-soft: #14284d;
  --text: #dbe4f0;
  --text-strong: #f8fafc;
  --muted: #9aa7bb;
  --muted-2: #7e8ba1;
  --border: #293650;
  --border-strong: #3a4966;
  --primary-soft: #17366d;
  --success-soft: #0d3327;
  --warning-soft: #3a2a11;
  --danger-soft: #3e1e22;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .2);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, .28);
}

.sidebar {
  background: linear-gradient(180deg, #0b1934 0%, #09162d 100%);
  border-right: 1px solid rgba(130, 164, 218, .13);
}
.sidebar-brand {
  height: var(--header-height);
  padding: 0 22px;
  gap: 11px;
  border-bottom-color: rgba(130, 164, 218, .14);
}
.sidebar-brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #4f8ff7, #2563eb);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 8px 20px rgba(37,99,235,.26);
}
.sidebar-brand-text small { color: #76a9ff; font-size: 10px; letter-spacing: .06em; }
.sidebar-brand-text strong { color: #f7faff; font-size: 14px; letter-spacing: .01em; }
.org-switcher {
  margin: 14px 12px 6px;
  min-height: 58px;
  padding: 10px 11px;
  border-color: rgba(111, 157, 235, .2);
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(48, 91, 165, .34), rgba(255,255,255,.055));
}
.org-switcher:hover { border-color: rgba(111, 157, 235, .34); background: linear-gradient(100deg, rgba(53, 102, 188, .42), rgba(255,255,255,.08)); }
.org-logo { background: linear-gradient(145deg, #4f8ff7, #245ed0); box-shadow: 0 6px 14px rgba(37,99,235,.2); }
.org-copy strong { color: #f4f7fd; font-size: 12px; }
.org-copy small { color: #9fb2d1; }
.org-chevron { display: grid; place-items: center; color: #8eabd4; }
.sidebar-scroll { padding: 10px 12px 20px; }
.nav-section { margin-top: 19px; }
.nav-title { margin: 0 11px 8px; color: #7890b5; font-size: 10px; letter-spacing: .14em; }
.nav-item {
  min-height: 42px;
  margin: 3px 0;
  padding: 0 12px;
  border-radius: 10px;
  color: #afbed5;
  font-size: 13px;
}
.nav-item svg { color: #9db0cd; }
.nav-item:hover { color: #fff; background: rgba(111, 157, 235, .12); }
.nav-item:hover svg, .nav-item.active svg { color: #83b3ff; }
.nav-item.active {
  color: #fff;
  background: linear-gradient(100deg, rgba(48, 101, 193, .58), rgba(37, 75, 143, .36));
  box-shadow: inset 3px 0 0 #68a5ff, 0 8px 22px rgba(2, 16, 43, .16);
}
.nav-item .nav-badge { background: rgba(109, 165, 255, .18); color: #9bc2ff; }
.sidebar-user { border-top-color: rgba(130, 164, 218, .14); padding: 14px 12px 16px; }
.user-row { padding: 7px 7px 12px; }
.avatar { background: linear-gradient(145deg, #326ff0, #6b55df); box-shadow: 0 6px 14px rgba(37,99,235,.2); }
.user-copy strong { color: #f7faff; }
.user-copy small { color: #91a5c4; }
.sidebar-user .btn { min-height: 38px; border-radius: 10px; color: #b9c8df; border-color: rgba(139, 171, 224, .2); background: rgba(255,255,255,.035); }
.sidebar-user .btn:hover { color: #fff; border-color: rgba(139, 171, 224, .38); background: rgba(255,255,255,.08); }

.topbar {
  height: var(--header-height);
  padding: 0 32px;
  gap: 24px;
  background: rgba(255,255,255,.9);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(21,42,73,.02);
}
[data-theme="dark"] .topbar { background: rgba(21,30,49,.9); }
[data-theme="dark"] .health-summary { border-color: rgba(71, 190, 132, .22); background: rgba(7, 148, 85, .16); }
.topbar-left { flex: 0 1 250px; gap: 14px; }
.breadcrumb { color: #8090a7; font-size: 11px; letter-spacing: .01em; }
.page-heading { color: var(--text-strong); font-size: 19px; font-weight: 720; }
.topbar-search { position: relative; display: flex; align-items: center; width: min(360px, 30vw); min-width: 220px; margin-left: auto; }
.topbar-search > span { position: absolute; left: 12px; display: grid; place-items: center; color: var(--muted-2); pointer-events: none; }
.topbar-search input { width: 100%; height: 38px; padding: 0 13px 0 36px; border: 1px solid var(--border); border-radius: 10px; outline: none; color: var(--text-strong); background: var(--surface-soft); font-size: 12px; transition: .18s ease; }
.topbar-search input::placeholder { color: #a2afc0; }
.topbar-search input:focus { border-color: #78a5f4; background: var(--surface); box-shadow: 0 0 0 3px rgba(57,115,230,.1); }
.topbar-actions { gap: 9px; }
.health-summary { min-height: 32px; padding: 0 11px; border: 1px solid #d9f2e5; border-radius: 9px; background: #effbf4; color: #079455; font-size: 11px; }
.topbar-actions > .btn-icon { width: 38px; min-width: 38px; border-color: var(--border); border-radius: 10px; color: #647995; background: var(--surface); }
.topbar-actions > .btn-icon:hover { color: var(--primary); border-color: #b9cff3; background: var(--primary-soft); }

.main { padding: 28px 32px 48px; background: var(--page); }
.page { max-width: 1600px; }
.page-header { margin-bottom: 22px; }
.page-title h2 { color: var(--text-strong); font-size: 26px; font-weight: 760; letter-spacing: -.035em; }
.page-title p { margin-top: 8px; color: var(--muted); font-size: 12px; }
.page-actions .btn { min-height: 40px; border-radius: 10px; }
.page-actions .btn-primary { box-shadow: 0 8px 18px rgba(47,111,232,.18); }
.card { border-color: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card:hover { box-shadow: 0 8px 24px rgba(44,77,126,.07); }
.readiness {
  min-height: 70px;
  padding: 14px 18px;
  border-left: 3px solid #3e7ff0;
  background: linear-gradient(105deg, #ffffff 0%, #fbfdff 70%, #f5f9ff 100%);
}
.readiness-icon { width: 40px; height: 40px; border-radius: 11px; color: var(--primary); background: var(--primary-soft); }
.readiness-main strong { font-size: 13px; }
.readiness-main span { color: #7486a0; }
.check-list { gap: 7px; }
.check-chip { min-height: 30px; padding: 0 10px; border-radius: 999px; font-size: 10px; }
.check-chip.ok { border: 1px solid #d9f2e5; }
.check-chip.warn { border: 1px solid #f7e5bd; }
.readiness > .btn { border-radius: 10px; }
[data-theme="dark"] .readiness { border-color: #293650; background: linear-gradient(105deg, #151e31 0%, #151e31 70%, #172647 100%); }
.current-session {
  margin-top: 16px;
  padding: 18px 20px;
  border-color: #dce7f5;
  background: linear-gradient(105deg, #ffffff 0%, #ffffff 72%, #f8fbff 100%);
}
.session-time { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(145deg, #4f8ff7, #2e69e5); box-shadow: 0 8px 18px rgba(47,111,232,.2); }
.session-lead h3 { font-size: 14px; }
.session-lead p, .session-info small { color: #8090a7; }
.session-info strong { color: var(--text-strong); }
.current-session > .btn { border-color: #cbdaf0; border-radius: 10px; color: var(--primary); background: #f7faff; }
.current-session > .btn:hover { border-color: #98b8ef; background: var(--primary-soft); }
[data-theme="dark"] .current-session { border-color: #293650; background: linear-gradient(105deg, #151e31 0%, #151e31 72%, #172647 100%); }
[data-theme="dark"] .current-session > .btn { border-color: #3a4966; color: #9fc1ff; background: #172647; }
[data-theme="dark"] .current-session > .btn:hover { border-color: #5e82bd; background: #1d3768; }
.metric-grid { grid-template-columns: repeat(6, minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.metric { min-height: 116px; padding: 16px 17px; transition: transform .18s ease, box-shadow .18s ease; }
.metric:hover { transform: translateY(-2px); }
.metric-label { color: #7789a3; font-size: 11px; }
.metric-icon { width: 30px; height: 30px; border-radius: 9px; color: var(--primary); background: var(--primary-soft); }
.metric-value { margin-top: 14px; color: var(--text-strong); font-size: 25px; font-weight: 760; }
.metric-foot { margin-top: 9px; color: #8797ad; }
.dashboard-grid { grid-template-columns: minmax(0, 1.72fr) minmax(310px, .8fr); gap: 16px; margin-top: 16px; }
.chart-wrap { min-height: 360px; padding: 18px 20px 12px; }
.chart-head { margin-bottom: 7px; }
.chart-head h3 { font-size: 15px; }
.chart-head p { color: #8191a8; font-size: 11px; }
.legend { gap: 13px; color: #7f90a7; }
.chart-svg { height: 270px; }
.chat-panel { min-height: 360px; }
.chat-panel .card-header { min-height: 64px; padding: 0 20px; }
.chat-list { padding: 9px 20px 16px; }
.chat-item { padding: 11px 0; }
.chat-avatar { background: var(--primary-soft); color: var(--primary); }
.empty-state { min-height: 246px; }
.empty-icon { width: 50px; height: 50px; border-radius: 15px; color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px rgba(47,111,232,.05); }

@media (max-width: 1280px) {
  .metric-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 1024px) {
  .topbar { padding: 0 22px; }
  .topbar-search { width: min(300px, 28vw); min-width: 180px; }
  .main { padding: 24px 22px 40px; }
}
@media (max-width: 820px) {
  .topbar-search { display: none; }
  .topbar { padding: 0 16px; }
  .main { padding: 20px 16px 32px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 420px) {
  .metric-grid { grid-template-columns: 1fr; }
}

/* Signed-in shell refinement: a quiet light navigation surface and clearer status language. */
.sidebar {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 78%, var(--page)) 0%, var(--page) 100%);
  color: var(--text);
  border-right: 1px solid var(--border);
  box-shadow: 1px 0 0 rgba(70, 110, 170, .025);
}
.sidebar-brand { border-bottom-color: var(--border); }
.sidebar-brand-text small { color: var(--primary); }
.sidebar-brand-text strong { color: var(--text-strong); }
.org-switcher {
  border-color: var(--border);
  background: var(--surface);
  box-shadow: 0 5px 16px rgba(52, 87, 137, .05);
}
.org-switcher:hover { border-color: #b8cff2; background: var(--surface); }
.org-copy strong { color: var(--text-strong); }
.org-copy small { color: var(--muted); }
.org-chevron { color: var(--muted); }
.sidebar-scroll {
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.sidebar-scroll::-webkit-scrollbar { width: 0; height: 0; }
.nav-title { color: var(--muted-2); }
.nav-item { color: var(--muted); }
.nav-item svg { color: #8298b4; }
.nav-item:hover { color: var(--text-strong); background: color-mix(in srgb, var(--primary) 7%, transparent); }
.nav-item:hover svg, .nav-item.active svg { color: var(--primary); }
.nav-item.active {
  color: var(--primary);
  background: linear-gradient(100deg, var(--primary-soft), color-mix(in srgb, var(--primary-soft) 45%, var(--surface)));
  box-shadow: inset 3px 0 0 #4d8cf2, 0 6px 18px rgba(47, 111, 232, .07);
}
.nav-item .nav-badge { background: var(--primary-soft); color: var(--primary); }
.sidebar-user { border-top-color: var(--border); }
.user-copy strong { color: var(--text-strong); }
.user-copy small { color: var(--muted); }
.sidebar-user .btn {
  color: var(--muted);
  border-color: var(--border);
  background: var(--surface);
}
.sidebar-user .btn:hover { color: var(--primary); border-color: #b8cff2; background: var(--primary-soft); }

.topbar-actions .btn-guide {
  flex: 0 0 auto;
  width: auto;
  min-width: 108px;
  min-height: 38px;
  padding: 0 14px;
  gap: 7px;
  white-space: nowrap;
  line-height: 1;
  border-radius: 10px;
  border-color: #cbdcf5;
  color: #315d9f;
  background: #f7faff;
}
.topbar-actions .btn-guide .icon { width: 16px; height: 16px; }
.topbar-actions .btn-guide:hover { border-color: #9dbdf0; color: var(--primary); background: var(--primary-soft); }

.readiness-main { gap: 13px; }
.readiness-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 9%, transparent);
}
.readiness-icon .icon { width: 20px; height: 20px; }
.readiness-icon::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--success) 12%, transparent);
}

@media (max-width: 1024px) {
  .topbar-actions .btn-guide { width: 38px; min-width: 38px; padding: 0; font-size: 0; }
  .topbar-actions .btn-guide .icon { width: 17px; height: 17px; }
}

/* Data insight refinement: keep the analysis split stable and make keyword reading actionable. */
.calendar-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(105deg, var(--surface) 0%, color-mix(in srgb, var(--primary-soft) 48%, var(--surface)) 100%);
  box-shadow: var(--shadow-sm);
}
.calendar-overview-main { display: grid; gap: 5px; min-width: 0; }
.calendar-kicker, .detail-kicker { color: var(--primary); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.calendar-overview-main strong { color: var(--text-strong); font-size: 18px; letter-spacing: -.02em; }
.calendar-overview-note { color: var(--muted); font-size: 11px; }
.calendar-overview-stats { display: grid; grid-template-columns: repeat(3, minmax(92px, 1fr)); gap: 24px; min-width: 350px; }
.calendar-overview-stats div { display: grid; gap: 5px; padding-left: 18px; border-left: 1px solid color-mix(in srgb, var(--primary) 17%, var(--border)); }
.calendar-overview-stats span { color: var(--muted); font-size: 10px; }
.calendar-overview-stats strong { color: var(--text-strong); font-size: 16px; }

.page .keyword-layout { grid-template-columns: minmax(0, 1fr) minmax(380px, 520px); align-items: stretch; gap: 16px; }
.keyword-cloud-card, .keyword-rank-card, .keyword-detail { min-width: 0; overflow: hidden; }
.keyword-cloud-card .card-header { min-height: 64px; }
.keyword-rank-card .card-header { min-height: 64px; }
.keyword-rank-card .card-body { padding: 12px 18px 16px; }
.word-cloud {
  position: relative;
  min-height: 360px;
  height: 360px;
  overflow: hidden;
  isolation: isolate;
  padding: 0;
  background: radial-gradient(circle at 50% 44%, color-mix(in srgb, var(--primary-soft) 72%, var(--surface)) 0%, var(--surface) 57%);
}
.word-cloud::before, .word-cloud::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--primary) 12%, transparent); pointer-events: none; }
.word-cloud::before { width: 72%; height: 68%; left: 14%; top: 14%; transform: rotate(-8deg); }
.word-cloud::after { width: 48%; height: 48%; left: 26%; top: 25%; transform: rotate(11deg); border-color: color-mix(in srgb, var(--purple) 10%, transparent); }
.word-cloud-item {
  position: absolute;
  left: var(--word-x);
  top: var(--word-y);
  z-index: 1;
  max-width: 34%;
  padding: 4px 7px;
  border: 0;
  border-radius: 8px;
  color: var(--word-color);
  background: transparent;
  font-family: inherit;
  font-size: clamp(15px, var(--word-size), 44px);
  font-weight: 780;
  line-height: 1;
  letter-spacing: -.035em;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--word-rotate));
  animation: word-cloud-in .42s var(--word-delay) ease-out forwards;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.word-cloud-item.blue { --word-color: #2f6fe8; }
.word-cloud-item.purple { --word-color: #7661e8; }
.word-cloud-item.cyan { --word-color: #0a91aa; }
.word-cloud-item.orange { --word-color: #c97816; }
.word-cloud-item:hover, .word-cloud-item:focus-visible, .word-cloud-item.selected { z-index: 3; outline: 0; background: color-mix(in srgb, var(--word-color) 11%, var(--surface)); box-shadow: 0 7px 18px color-mix(in srgb, var(--word-color) 16%, transparent); transform: translate(-50%, -50%) rotate(0deg) scale(1.08); }
.word-cloud-item.selected::after { content: ""; display: block; height: 3px; margin: 5px 3px 0; border-radius: 999px; background: var(--word-color); }
.cloud-caption { position: absolute; right: 18px; bottom: 15px; color: var(--muted-2); font-size: 10px; pointer-events: none; }
@keyframes word-cloud-in { from { opacity: 0; transform: translate(-50%, -50%) rotate(var(--word-rotate)) scale(.88); } to { opacity: .94; transform: translate(-50%, -50%) rotate(var(--word-rotate)); } }
.rank-row { width: 100%; border: 0; border-radius: 9px; background: transparent; font-family: inherit; text-align: left; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.rank-row:hover, .rank-row.selected { background: var(--primary-soft); }
.rank-row:hover { transform: translateX(2px); }
.rank-row strong { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.keyword-detail .card-header { min-height: 64px; }
.keyword-detail-body { display: grid; gap: 16px; padding: 16px 18px 18px; }
.keyword-detail-hero { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: start; gap: 12px; }
.keyword-detail-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: #fff; font-size: 17px; font-weight: 780; text-transform: uppercase; box-shadow: 0 8px 18px color-mix(in srgb, var(--word-color) 18%, transparent); }
.keyword-detail-mark.blue { --word-color: #2f6fe8; background: linear-gradient(145deg, #4f8ff7, #2f6fe8); }
.keyword-detail-mark.purple { --word-color: #7661e8; background: linear-gradient(145deg, #998bf2, #7661e8); }
.keyword-detail-mark.cyan { --word-color: #0a91aa; background: linear-gradient(145deg, #29b9cd, #0a91aa); }
.keyword-detail-mark.orange { --word-color: #c97816; background: linear-gradient(145deg, #e0a54e, #c97816); }
.keyword-detail-hero h3 { margin: 0; color: var(--text-strong); font-size: 18px; }
.keyword-detail-hero p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.keyword-detail-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.keyword-detail-stats div { min-width: 0; padding: 10px; border-radius: 9px; background: var(--surface-soft); }
.keyword-detail-stats span { display: block; color: var(--muted); font-size: 9px; }
.keyword-detail-stats strong { display: block; margin-top: 5px; overflow: hidden; color: var(--text-strong); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.keyword-detail-section { display: grid; gap: 8px; }
.keyword-related { display: flex; flex-wrap: wrap; gap: 6px; }
.keyword-related span { padding: 5px 8px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); background: var(--surface-soft); font-size: 10px; }
.keyword-detail-foot { margin: 0; padding-top: 11px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 9px; line-height: 1.5; }
.tag.cyan { color: #0a91aa; background: color-mix(in srgb, #0a91aa 10%, var(--surface)); border-color: transparent; }

@media (max-width: 1120px) {
  .page .keyword-layout { grid-template-columns: minmax(0, 1fr) minmax(340px, 44%); }
  .calendar-overview-stats { gap: 14px; min-width: 310px; }
}
@media (max-width: 900px) {
  .calendar-overview { grid-template-columns: 1fr; gap: 16px; }
  .calendar-overview-stats { min-width: 0; }
  .page .keyword-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .calendar-overview { padding: 16px; }
  .calendar-overview-main strong { font-size: 15px; }
  .calendar-overview-stats { gap: 8px; }
  .calendar-overview-stats div { padding-left: 9px; }
  .calendar-overview-stats strong { font-size: 14px; }
  .word-cloud { min-height: 300px; height: 300px; }
  .word-cloud-item { max-width: 38%; font-size: calc(var(--word-size) * .74); }
  .cloud-caption { right: 10px; bottom: 10px; font-size: 9px; }
}

/* Settings refinement: make the navigation and content feel like one workspace. */
.settings-layout {
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.settings-nav {
  position: static;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px;
}
.settings-nav-head {
  min-height: 70px;
  padding: 2px 4px 14px;
  border-bottom: 1px solid var(--border);
}
.settings-kicker {
  display: block;
  color: var(--primary);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
}
.settings-nav-head strong {
  display: block;
  margin-top: 7px;
  color: var(--text-strong);
  font-size: 15px;
  letter-spacing: -.02em;
}
.settings-nav-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}
.settings-nav-list {
  display: grid;
  gap: 5px;
  margin-top: 14px;
}
.settings-nav button {
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.settings-nav button:hover { transform: translateX(2px); }
.settings-nav button.active { border-color: color-mix(in srgb, var(--primary) 13%, var(--border)); box-shadow: inset 3px 0 0 var(--primary); }
.settings-content { min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.settings-content > .card-header { min-height: 92px; padding: 19px 20px; align-items: flex-start; }
.settings-content > .card-header .card-title { margin-top: 6px; }
.settings-content > .card-header .card-subtitle { max-width: 680px; }
.settings-form-body { padding: 4px 20px 20px; }
.settings-form-body .setting-row { grid-template-columns: minmax(200px, .7fr) minmax(340px, 1.3fr); gap: 34px; padding: 20px 0; }
.settings-form-body .inline-input .input { min-width: 0; }
.settings-preferences { display: grid; gap: 14px; padding: 20px; }
.preference-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: center;
  gap: 24px;
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-soft);
}
.preference-copy h4 { margin: 0; color: var(--text-strong); font-size: 13px; }
.preference-copy p { max-width: 540px; margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.preference-options { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.preference-option {
  min-width: 92px;
  min-height: 48px;
  display: grid;
  gap: 4px;
  padding: 8px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface);
  text-align: left;
  transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.preference-option strong { color: inherit; font-size: 11px; font-weight: 720; }
.preference-option small { color: var(--muted-2); font-size: 9px; }
.preference-option:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border-strong)); color: var(--primary); }
.preference-option.active { border-color: color-mix(in srgb, var(--primary) 48%, var(--border-strong)); color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 8%, transparent); }
.preference-option.active small { color: color-mix(in srgb, var(--primary) 72%, var(--muted)); }
.preference-tip { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--border)); border-radius: 10px; color: var(--muted); background: color-mix(in srgb, var(--primary-soft) 52%, var(--surface)); }
.preference-tip-icon { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 8px; color: var(--primary); background: var(--surface); }
.preference-tip strong { display: block; color: var(--text-strong); font-size: 11px; }
.preference-tip p { margin: 4px 0 0; font-size: 10px; line-height: 1.55; }

/* Small, predictable type adjustments for the most frequently read UI labels. */
[data-font-scale="small"] .page-heading { font-size: 17px; }
[data-font-scale="large"] .page-heading { font-size: 21px; }
[data-font-scale="small"] .page-title h2 { font-size: 24px; }
[data-font-scale="large"] .page-title h2 { font-size: 29px; }
[data-font-scale="small"] .card-title { font-size: 11px; }
[data-font-scale="large"] .card-title { font-size: 14px; }
[data-font-scale="small"] .card-subtitle { font-size: 9px; }
[data-font-scale="large"] .card-subtitle { font-size: 13px; }
[data-font-scale="large"] .settings-nav button,
[data-font-scale="large"] .settings-form-body .setting-copy h4,
[data-font-scale="large"] .preference-copy h4 { font-size: 14px; }
[data-font-scale="small"] .settings-nav button,
[data-font-scale="small"] .settings-form-body .setting-copy h4,
[data-font-scale="small"] .preference-copy h4 { font-size: 11px; }
[data-density="compact"] .settings-form-body .setting-row { padding-block: 13px; }
[data-density="compact"] .settings-preferences { gap: 9px; padding-block: 14px; }

/* -------------------------------------------------------------------------- */
/* P0-P2 prototype completion styles                                          */
/* -------------------------------------------------------------------------- */

.prototype-state-strip { display: flex; flex-wrap: wrap; gap: 7px; margin: -8px 0 18px; }
.prototype-state-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 10px; font-weight: 700; }
.prototype-state-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.prototype-state-chip.green i { background: #16a46b; }
.prototype-state-chip.orange i { background: #e59b2b; }
.prototype-state-chip.red i { background: #d95362; }

.live-status-board, .resource-health-card, .schedule-rules-card, .profile-state-card, .context-banner, .keyword-context-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; margin-bottom: 16px; }
.live-status-copy, .resource-health-main, .profile-state-card > div:first-child, .context-banner > div, .keyword-context-bar > div, .schedule-rules-card > div:first-child { min-width: 0; }
.live-status-copy h3 { margin: 8px 0 3px; color: var(--text-strong); font-size: 17px; }
.live-status-copy p, .resource-health-main p, .profile-state-card p, .context-banner p, .keyword-context-bar p, .schedule-rules-card p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.live-state-actions, .resource-health-actions, .profile-state-actions, .schedule-rule-tags { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.live-session-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.live-session-summary h3 { margin: 7px 0 3px; color: var(--text-strong); font-size: 16px; }
.live-session-summary p { margin: 0; color: var(--muted); font-size: 11px; }
.live-session-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.live-metric-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.live-analysis-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); gap: 16px; }
.live-chart-panel, .live-chat-panel { min-width: 0; overflow: hidden; }
.legend-row { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; }
.legend-row span { display: inline-flex; align-items: center; gap: 4px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: #4f8ff7; }
.legend-dot.purple { background: #8a78ed; }
.legend-dot.orange { background: #e2a13c; }
.live-chart-placeholder, .report-chart { position: relative; min-height: 220px; padding: 16px 18px 0; }
.live-chart-placeholder svg, .report-chart svg { width: 100%; height: 220px; overflow: visible; }
.chart-line-orange { stroke: #e0a14a; fill: none; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted-2); font-size: 11px; background: color-mix(in srgb, var(--surface) 82%, transparent); }
.chart-axis { display: flex; justify-content: space-between; padding: 0 20px 15px; color: var(--muted-2); font-size: 9px; }
.chat-search-row { display: flex; gap: 7px; padding: 0 16px 10px; }
.chat-search-row .input { min-width: 0; flex: 1; }
.event-list { display: grid; gap: 0; padding: 0 16px 14px; }
.event-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: start; gap: 9px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.event-row:last-child { border-bottom: 0; }
.event-row strong { display: block; color: var(--text-strong); font-size: 11px; }
.event-row p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.event-row time { color: var(--muted-2); font-size: 9px; }
.event-system .event-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #8a6c20; background: #fff6dc; }
.resource-health-card { background: linear-gradient(100deg, color-mix(in srgb, var(--success-soft) 75%, var(--surface)) 0%, var(--surface) 72%); }
.resource-health-main { display: flex; align-items: center; gap: 11px; }
.resource-health-main strong { color: var(--text-strong); font-size: 13px; }
.health-pulse { width: 11px; height: 11px; border-radius: 50%; background: #16a46b; box-shadow: 0 0 0 6px rgba(22,164,107,.12); }
.schedule-rules-card { background: linear-gradient(100deg, color-mix(in srgb, var(--primary-soft) 65%, var(--surface)) 0%, var(--surface) 75%); }
.schedule-rules-card strong { display: block; margin-top: 5px; color: var(--text-strong); font-size: 13px; }
.context-banner, .keyword-context-bar { border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--border)); background: color-mix(in srgb, var(--primary-soft) 58%, var(--surface)); }
.context-banner { justify-content: flex-start; }
.context-banner > .tag { margin-left: auto; }
.context-banner-icon { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 9px; color: var(--primary); background: var(--surface); }
.profile-state-card { background: linear-gradient(100deg, color-mix(in srgb, #f6f2ff 80%, var(--surface)) 0%, var(--surface) 78%); }
.profile-state-card strong, .context-banner strong, .keyword-context-bar strong { display: block; margin-top: 4px; color: var(--text-strong); font-size: 13px; }
.profile-state-demo-panel { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: start; gap: 16px; padding: 28px; }
.profile-state-demo-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: var(--primary); background: var(--primary-soft); }
.profile-state-demo-copy { min-width: 0; }
.profile-state-demo-copy h3 { margin: 9px 0 5px; color: var(--text-strong); font-size: 18px; }
.profile-state-demo-copy p, .profile-state-demo-copy small { display: block; max-width: 620px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.profile-state-demo-copy small { color: var(--muted-2); }
.profile-state-demo-copy .btn { margin-top: 16px; }
.profile-state-demo-panel.error .profile-state-demo-icon { color: var(--danger); background: var(--danger-soft); }
.profile-state-demo-panel.loading .profile-state-demo-icon { color: var(--primary); background: var(--primary-soft); }
.profile-state-progress { width: min(360px, 100%); height: 7px; margin-top: 15px; overflow: hidden; border-radius: 999px; background: var(--surface-soft); }
.profile-state-progress i { display: block; width: 62%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4f8ff7, #8a78ed); }

.report-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; }
.report-hero h2 { margin: 7px 0 4px; color: var(--text-strong); font-size: 23px; }
.report-hero p { margin: 0; color: var(--muted); font-size: 11px; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); gap: 16px; }
.report-lower-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: 16px; }
.insight-summary-card, .report-grid > .card, .report-lower-grid > .card { min-width: 0; overflow: hidden; }
.insight-callout { margin: 16px; padding: 14px; border: 1px solid #d9e5ff; border-radius: 12px; background: #f5f8ff; }
.insight-callout strong { color: #234b9e; font-size: 12px; line-height: 1.6; }
.insight-callout p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.recommendation-list { display: grid; gap: 8px; padding: 0 16px 16px; }
.recommendation-list span { display: flex; align-items: center; gap: 6px; color: var(--text); font-size: 11px; }
.recommendation-list svg { color: #16a46b; }
.topic-bar-list { display: grid; gap: 14px; padding: 18px 20px 21px; }
.topic-bar-list > div { display: grid; grid-template-columns: 90px minmax(0, 1fr) 38px; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.topic-bar-list i { display: block; height: 7px; border-radius: 999px; background: linear-gradient(90deg, #739ff7, #4f7fe8); }
.topic-bar-list strong { color: var(--text-strong); text-align: right; }
.report-check-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 18px 18px; }
.report-lower-grid .btn-block { width: calc(100% - 36px); margin: 0 18px 18px; }

.projection-shell { min-height: 590px; padding: 30px 34px; border: 1px solid #1f3d6b; border-radius: 20px; color: #eef5ff; background: radial-gradient(circle at 75% 16%, rgba(62,126,236,.25), transparent 30%), linear-gradient(145deg, #0d1e3a, #132c52 68%, #0a1730); box-shadow: 0 24px 70px rgba(14,37,76,.22); }
.projection-top { display: flex; align-items: center; gap: 12px; color: #b6c7e5; font-size: 12px; }
.projection-top strong { color: #fff; font-size: 18px; }
.projection-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.projection-kpis > div { padding: 20px; border: 1px solid rgba(177,205,248,.15); border-radius: 14px; background: rgba(255,255,255,.06); }
.projection-kpis span, .projection-kpis small { display: block; color: #9db2d5; font-size: 10px; }
.projection-kpis strong { display: block; margin: 9px 0 4px; color: #fff; font-size: 31px; letter-spacing: -.04em; }
.projection-kpis small { color: #75d9a5; }
.projection-chart { margin-top: 26px; padding: 20px 22px; border: 1px solid rgba(177,205,248,.15); border-radius: 14px; background: rgba(255,255,255,.04); }
.projection-chart h3 { margin: 0; color: #fff; font-size: 14px; }
.projection-chart svg { width: 100%; height: 250px; }
.projection-chart .chart-grid-line { stroke: rgba(177,205,248,.15); }
.projection-chart .chart-line { stroke: #72a4ff; }
.projection-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; color: #93a9cd; font-size: 10px; }

.keyword-rule-catalog { overflow: hidden; }
.rule-group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px 18px 20px; }
.rule-group-card { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 7px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 12px; color: var(--muted); background: var(--surface); text-align: left; }
.rule-group-card:hover, .rule-group-card.active { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); background: var(--primary-soft); }
.rule-group-card strong { color: var(--text-strong); font-size: 12px; }
.rule-group-card > span:not(.rule-group-chevron) { color: var(--success); font-size: 9px; font-weight: 700; }
.rule-group-card small { grid-column: 2 / -1; margin-top: 6px; color: var(--muted-2); font-size: 9px; }
.rule-group-chevron { color: var(--primary); font-size: 14px; }

.form-grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid-two .field { min-width: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-card { min-width: 0; padding: 11px; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); background: var(--surface); text-align: left; }
.choice-card:hover, .choice-card.active { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); color: var(--primary); background: var(--primary-soft); }
.choice-card strong, .choice-card small { display: block; }
.choice-card strong { color: inherit; font-size: 11px; }
.choice-card small { margin-top: 4px; color: var(--muted-2); font-size: 9px; line-height: 1.45; }
.assistant-list { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 8px 0; }
.assistant-chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); background: var(--surface-soft); font-size: 10px; }
.assistant-chip svg { color: var(--muted-2); }
.multi-select-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.multi-select-grid label { display: flex; align-items: center; gap: 7px; padding: 10px; border: 1px solid var(--border); border-radius: 9px; color: var(--text); background: var(--surface); font-size: 10px; }
.multi-select-grid input { accent-color: var(--primary); }
.prototype-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 15px; padding: 11px 12px; border-radius: 10px; color: var(--muted); background: var(--surface-soft); }
.prototype-note svg { color: var(--primary); flex: 0 0 auto; }
.prototype-note p { margin: 0; font-size: 10px; line-height: 1.55; }
.plan-compare-card { overflow: hidden; }
.plan-compare-table td:first-child { color: var(--text-strong); font-weight: 700; }
.plan-preview-current, .plan-preview-target { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); }
.plan-preview-target { margin-top: 12px; background: var(--surface); }
.plan-preview-current span, .plan-preview-target > span { display: block; color: var(--muted-2); font-size: 10px; }
.plan-preview-current strong { display: block; margin-top: 5px; color: var(--text-strong); font-size: 18px; }
.plan-preview-current small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.plan-option-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 9px; }
.plan-option { padding: 12px; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); background: var(--surface); text-align: left; }
.plan-option.active { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); background: var(--primary-soft); }
.plan-option strong, .plan-option small, .plan-option b { display: block; }
.plan-option strong { color: var(--text-strong); font-size: 12px; }
.plan-option small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.plan-option b { margin-top: 8px; color: var(--primary); font-size: 11px; }

.settings-ops-extra { overflow: hidden; }
.settings-extra-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); }
.settings-extra-grid > div { min-width: 0; padding: 18px; background: var(--surface); }
.settings-extra-grid strong { display: block; margin-top: 6px; color: var(--text-strong); font-size: 17px; }
.settings-extra-grid p { min-height: 32px; margin: 5px 0 14px; color: var(--muted); font-size: 10px; line-height: 1.55; }

.global-search-results, .global-popover { position: fixed; z-index: 50; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: 0 18px 50px rgba(22,49,91,.18); }
.global-search-results { top: 74px; right: 260px; width: min(390px, calc(100vw - 34px)); padding: 12px; }
.global-popover { top: 68px; right: 23px; width: min(330px, calc(100vw - 30px)); padding: 14px; }
.workspace-popover { right: auto; left: 264px; top: 72px; }
.global-popover-head, .global-search-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.global-popover-head strong, .global-search-head strong { color: var(--text-strong); font-size: 12px; }
.global-popover-head small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.global-popover-head > div:first-child { display: flex; align-items: center; gap: 8px; }
.workspace-option { display: grid; grid-template-columns: 30px minmax(0, 1fr) 18px; align-items: center; gap: 8px; width: 100%; margin-top: 10px; padding: 10px; border: 1px solid transparent; border-radius: 10px; color: var(--text); background: transparent; text-align: left; }
.workspace-option:hover, .workspace-option.active { border-color: var(--border); background: var(--surface-soft); }
.workspace-option > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--primary); background: var(--primary-soft); font-size: 10px; font-weight: 800; }
.workspace-option strong, .workspace-option small { display: block; }
.workspace-option strong { color: var(--text-strong); font-size: 11px; }
.workspace-option small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.workspace-option i { color: var(--success); }
.global-search-head { padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.global-search-result { display: flex; align-items: center; gap: 9px; padding: 11px 2px 2px; }
.global-search-result strong, .global-search-result small { display: block; }
.global-search-result strong { color: var(--text-strong); font-size: 11px; }
.global-search-result small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.notification-item { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 9px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.notification-dot { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: #8ca0ba; }
.notification-dot.green { background: #16a46b; }
.notification-item.unread .notification-dot { background: #4f8ff7; box-shadow: 0 0 0 4px rgba(79,143,247,.12); }
.notification-item strong { color: var(--text-strong); font-size: 11px; }
.notification-item p { margin: 4px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.notification-item small { color: var(--muted-2); font-size: 9px; }
.notification-popover .btn-block { margin-top: 12px; }
.modal-report { width: min(1120px, calc(100vw - 34px)); max-height: min(860px, calc(100dvh - 32px)); }
.modal-report .modal-body { overflow: auto; }
.modal-report .modal-header-actions { display: flex; align-items: center; gap: 9px; }
.report-modal-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.report-modal-metrics .metric { min-width: 0; }
.report-modal-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 16px; }
.modal-projection { width: min(1180px, calc(100vw - 34px)); max-height: min(860px, calc(100dvh - 32px)); }
.modal-projection .modal-body { overflow: auto; }
.modal-projection .projection-shell { min-height: 520px; }

@media (max-width: 820px) {
  .report-modal-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-modal-grid { grid-template-columns: 1fr; }
  .modal-report, .modal-projection { width: calc(100vw - 20px); max-height: calc(100dvh - 18px); }
}

@media (max-width: 1180px) {
  .live-metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rule-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .global-search-results { right: 210px; }
}

@media (max-width: 820px) {
  .live-status-board, .resource-health-card, .schedule-rules-card, .profile-state-card, .context-banner, .keyword-context-bar, .live-session-summary, .report-hero { align-items: flex-start; flex-direction: column; }
  .live-state-actions, .resource-health-actions, .profile-state-actions, .schedule-rule-tags { justify-content: flex-start; }
  .live-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-analysis-grid, .report-grid, .report-lower-grid { grid-template-columns: 1fr; }
  .form-grid-two, .choice-grid, .multi-select-grid, .settings-extra-grid { grid-template-columns: 1fr; }
  .choice-grid.compact, .plan-option-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projection-shell { min-height: 0; padding: 20px; border-radius: 15px; }
  .projection-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; }
  .projection-kpis > div { padding: 14px; }
  .projection-kpis strong { font-size: 24px; }
  .projection-top { flex-wrap: wrap; }
  .projection-chart svg { height: 170px; }
  .projection-foot { align-items: flex-start; flex-direction: column; gap: 10px; }
  .global-search-results { top: 62px; right: 15px; }
  .global-popover, .workspace-popover { top: 62px; right: 15px; left: auto; }
}

@media (max-width: 520px) {
  .live-metric-grid { gap: 9px; }
  .live-metric-grid .metric { padding: 12px; }
  .live-metric-grid .metric-value { font-size: 21px; }
  .legend-row { display: none; }
  .choice-grid.compact, .plan-option-row { grid-template-columns: 1fr; }
  .report-hero h2 { font-size: 19px; }
  .topic-bar-list > div { grid-template-columns: 72px minmax(0, 1fr) 32px; }
  .rule-group-grid { grid-template-columns: 1fr; }
}
[data-density="compact"] .preference-card { padding-block: 12px; }

/* Final parity completion layer ------------------------------------------- */
.account-days { color: var(--primary); font-weight: 760; }
.parity-health-card, .resource-management-overview, .page-state-demo, .product-source-note, .account-expiry-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; margin-bottom: 16px; }
.parity-health-card { border-color: color-mix(in srgb, var(--primary) 16%, var(--border)); background: color-mix(in srgb, var(--primary-soft) 58%, var(--surface)); }
.parity-health-card.red { border-color: color-mix(in srgb, var(--danger) 25%, var(--border)); background: color-mix(in srgb, var(--danger-soft) 72%, var(--surface)); }
.parity-health-card strong, .page-state-demo strong, .resource-management-block strong, .product-source-note strong, .account-expiry-card strong { display: block; margin-top: 4px; color: var(--text-strong); font-size: 13px; }
.parity-health-card p, .page-state-demo p, .resource-management-block p, .product-source-note p, .account-expiry-card p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.parity-health-actions, .page-state-actions, .holiday-tags { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.resource-management-overview { align-items: stretch; padding: 0; overflow: hidden; }
.resource-management-block { min-width: 0; flex: 1 1 0; padding: 18px 20px; background: var(--surface); }
.resource-management-block + .resource-management-block { border-left: 1px solid var(--border); }
.resource-management-block .btn { margin-top: 13px; }
.page-state-demo { background: var(--surface-soft); }
.page-state-demo.blue { border-color: color-mix(in srgb, var(--primary) 18%, var(--border)); }
.page-state-demo.orange { border-color: color-mix(in srgb, #e59b2b 25%, var(--border)); }
.page-state-demo.red { border-color: color-mix(in srgb, var(--danger) 25%, var(--border)); }
.page-state-copy { min-width: 0; }
.page-state-copy small { display: block; margin-top: 5px; color: var(--muted-2); font-size: 10px; line-height: 1.5; }
.holiday-marker-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; margin-bottom: 16px; background: linear-gradient(100deg, color-mix(in srgb, var(--warning-soft) 70%, var(--surface)), var(--surface)); }
.holiday-marker-panel strong { display: block; margin-top: 4px; color: var(--text-strong); font-size: 13px; }
.holiday-marker-panel p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.live-secondary-metrics { grid-template-columns: minmax(0, 1fr); margin: 0 0 16px; }
.live-secondary-metrics .metric { min-width: 0; }
.monitor-session-card { margin-bottom: 16px; padding: 16px 20px; }
.monitor-session-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.monitor-session-head strong { display: block; margin-top: 5px; color: var(--text-strong); font-size: 13px; }
.monitor-session-collapsed { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.monitor-session-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
.monitor-session-grid > div { min-width: 0; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.monitor-session-grid span, .monitor-session-grid strong { display: block; }
.monitor-session-grid span { color: var(--muted-2); font-size: 9px; }
.monitor-session-grid strong { margin-top: 5px; color: var(--text-strong); font-size: 11px; }
.history-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; margin-top: 16px; }
.history-pagination strong, .history-pagination span { display: block; }
.history-pagination strong { color: var(--text-strong); font-size: 12px; }
.history-pagination span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.empty-state-card { display: grid; place-items: center; min-height: 190px; padding: 28px; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); text-align: center; background: var(--surface-soft); }
.empty-state-card strong { color: var(--text-strong); font-size: 14px; }
.empty-state-card p { margin: 6px 0 14px; font-size: 11px; line-height: 1.6; }
.profile-detail-empty { display: grid; place-items: center; align-content: center; min-height: 420px; padding: 30px; text-align: center; }
.profile-detail-empty h3 { margin: 13px 0 5px; color: var(--text-strong); font-size: 17px; }
.profile-detail-empty p { max-width: 360px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.profile-empty-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: var(--primary); background: var(--primary-soft); }
.profile-detail-empty .btn { margin-top: 18px; }
.product-source-note { justify-content: flex-start; border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--border)); background: color-mix(in srgb, var(--primary-soft) 58%, var(--surface)); }
.product-source-note > div { min-width: 0; }
.product-source-note > .tag { margin-left: auto; }
.keyword-session-insights { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 16px; margin-top: 16px; }
.keyword-session-insights > .card { min-width: 0; overflow: hidden; }
.keyword-trend-visual { min-height: 170px; padding: 12px 18px 16px; }
.keyword-trend-visual svg { width: 100%; height: 160px; }
.keyword-mini-table { display: grid; gap: 0; padding: 0 18px 12px; }
.keyword-mini-table > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.keyword-mini-table > div:last-child { border-bottom: 0; }
.keyword-mini-table strong { color: var(--text-strong); font-size: 10px; white-space: nowrap; }
.account-expiry-card { margin-top: 16px; }
.raw-chat-modal { width: min(680px, calc(100vw - 34px)); }
.raw-chat-list { display: grid; gap: 0; padding: 0 20px; }
.raw-chat-list > div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 9px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.raw-chat-list time { color: var(--muted-2); font-size: 10px; }
.raw-chat-list strong { color: var(--text-strong); font-size: 11px; }
.raw-chat-list p { grid-column: 2; margin: -4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.raw-chat-list .system strong { color: #9a6d1f; }

@media (max-width: 820px) {
  .parity-health-card, .resource-management-overview, .page-state-demo, .product-source-note, .holiday-marker-panel, .history-pagination, .account-expiry-card { align-items: flex-start; flex-direction: column; }
  .parity-health-actions, .page-state-actions, .holiday-tags { justify-content: flex-start; }
  .resource-management-block + .resource-management-block { border-top: 1px solid var(--border); border-left: 0; }
  .monitor-session-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keyword-session-insights { grid-template-columns: 1fr; }
  .product-source-note > .tag { margin-left: 0; }
}

@media (max-width: 520px) {
  .monitor-session-head { align-items: flex-start; flex-direction: column; }
  .monitor-session-grid { grid-template-columns: 1fr; }
  .keyword-mini-table > div { align-items: flex-start; flex-direction: column; gap: 5px; }
}

@media (max-width: 900px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { min-height: 0; }
  .settings-nav-list { display: flex; overflow-x: auto; margin-top: 12px; padding-bottom: 2px; }
  .settings-nav button { min-width: max-content; }
  .settings-form-body .setting-row { grid-template-columns: 1fr; gap: 12px; }
  .settings-form-body .inline-input { display: grid; width: 100%; }
  .preference-card { grid-template-columns: 1fr; gap: 14px; }
  .preference-options { justify-content: flex-start; }
}

/* Keyword detail refinement: keep the selected term above both analysis panels. */
.keyword-detail-top { margin-bottom: 16px; }
.keyword-detail-top .keyword-detail { min-width: 0; display: flex; flex-direction: column; }
.keyword-detail-top .keyword-detail .card-header { min-height: 58px; padding: 14px 18px; }
.keyword-detail-top .keyword-detail-body {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) minmax(300px, 1fr) minmax(180px, .75fr);
  align-items: center;
  gap: 18px;
  padding: 14px 18px 16px;
}
.keyword-detail-top .keyword-detail-hero,
.keyword-detail-top .keyword-detail-stats,
.keyword-detail-top .keyword-detail-section { min-width: 0; }
.keyword-detail-top .keyword-detail-foot { grid-column: 1 / -1; }
.page .keyword-layout { align-items: start; }
.page .keyword-layout > .keyword-rank-card { align-self: start; width: 100%; }

@media (max-width: 900px) {
  .keyword-detail-top .keyword-detail-body { grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.2fr); }
  .keyword-detail-top .keyword-detail-section { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .keyword-detail-top .keyword-detail-body { grid-template-columns: 1fr; }
  .keyword-detail-top .keyword-detail-section { grid-column: auto; }
}

/* Keyword hover detail: an anchored overlay that never changes the page layout. */
.keyword-cloud-card { position: relative; overflow: visible; }
.keyword-popover {
  position: fixed;
  z-index: 40;
  width: min(292px, calc(100vw - 24px));
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(24, 34, 48, .16), 0 2px 8px rgba(24, 34, 48, .08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(5px) scale(.98);
  transform-origin: center bottom;
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.keyword-popover.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
.keyword-popover-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.keyword-popover-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.keyword-popover-mark { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: #fff; font-size: 12px; font-weight: 780; text-transform: uppercase; }
.keyword-popover-mark.blue { background: linear-gradient(145deg, #4f8ff7, #2f6fe8); }
.keyword-popover-mark.purple { background: linear-gradient(145deg, #998bf2, #7661e8); }
.keyword-popover-mark.cyan { background: linear-gradient(145deg, #29b9cd, #0a91aa); }
.keyword-popover-mark.orange { background: linear-gradient(145deg, #e0a54e, #c97816); }
.keyword-popover-title strong { display: block; overflow: hidden; color: var(--text-strong); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.keyword-popover-title span:not(.keyword-popover-mark) { display: block; margin-top: 3px; color: var(--primary); font-size: 9px; font-weight: 720; }
.keyword-popover-close { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; border: 0; border-radius: 7px; color: var(--muted-2); background: transparent; }
.keyword-popover-close:hover { color: var(--primary); background: var(--primary-soft); }
.keyword-popover-meaning { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.keyword-popover-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 11px; }
.keyword-popover-stats div { min-width: 0; padding: 7px 8px; border-radius: 8px; background: var(--surface-soft); }
.keyword-popover-stats span { display: block; color: var(--muted-2); font-size: 8px; }
.keyword-popover-stats strong { display: block; margin-top: 3px; overflow: hidden; color: var(--text-strong); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.keyword-popover-related { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.keyword-popover-related span { padding: 4px 7px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--surface-soft); font-size: 9px; }
.word-cloud-item.is-hovered { z-index: 4; outline: 0; background: color-mix(in srgb, var(--word-color) 11%, var(--surface)); box-shadow: 0 7px 18px color-mix(in srgb, var(--word-color) 16%, transparent); transform: translate(-50%, -50%) rotate(0deg) scale(1.08); }
[data-theme="dark"] .keyword-popover { box-shadow: 0 16px 36px rgba(0, 0, 0, .34), 0 2px 8px rgba(0, 0, 0, .22); }

@media (max-width: 520px) {
  .keyword-popover { padding: 11px; }
  .keyword-popover-meaning { font-size: 9px; }
  .keyword-popover-stats strong { font-size: 9px; }
}

/* Readable workspace typography: the standard display scale should remain
   comfortable on large monitors while preserving the existing density. */
.app-shell {
  --ui-nav-size: 14px;
  --ui-nav-title-size: 11px;
  --ui-body-size: 13px;
  --ui-meta-size: 12px;
  --ui-card-title-size: 16px;
  --ui-card-subtitle-size: 13px;
  --ui-control-size: 13px;
  --ui-table-size: 13px;
}

.app-shell .sidebar-brand-text small { font-size: 11px; }
.app-shell .sidebar-brand-text strong { font-size: 15px; }
.app-shell .org-copy strong { font-size: 13px; }
.app-shell .org-copy small { font-size: 11px; }
.app-shell .nav-title { font-size: var(--ui-nav-title-size); }
.app-shell .nav-item { font-size: var(--ui-nav-size); }
.app-shell .nav-item .nav-badge { font-size: 11px; }
.app-shell .user-copy strong { font-size: 13px; }
.app-shell .user-copy small { font-size: 11px; }

.app-shell .breadcrumb { font-size: var(--ui-meta-size); }
.app-shell .page-heading { font-size: clamp(19px, 1.12vw, 22px); }
.app-shell .topbar-search input { font-size: var(--ui-control-size); }
.app-shell .health-summary { font-size: var(--ui-meta-size); }
.app-shell .topbar-actions .btn-guide { font-size: var(--ui-control-size); }

.app-shell .page-title h2 { font-size: clamp(28px, 1.65vw, 33px); line-height: 1.18; }
.app-shell .page-title p { font-size: var(--ui-body-size); line-height: 1.65; }
.app-shell .page-actions .btn { font-size: var(--ui-control-size); }
.app-shell .card-title { font-size: var(--ui-card-title-size); line-height: 1.35; }
.app-shell .card-subtitle { font-size: var(--ui-card-subtitle-size); line-height: 1.45; }
.app-shell .card-header { min-height: 66px; }
.app-shell .card-body { font-size: var(--ui-body-size); }

.app-shell .readiness-main strong { font-size: 14px; }
.app-shell .readiness-main span { font-size: var(--ui-meta-size); }
.app-shell .check-chip { font-size: var(--ui-meta-size); }
.app-shell .session-lead h3 { font-size: 15px; }
.app-shell .session-lead p,
.app-shell .session-info small { font-size: var(--ui-meta-size); }
.app-shell .session-info strong { font-size: 13px; }

.app-shell .metric-label { font-size: var(--ui-meta-size); }
.app-shell .metric-value { font-size: clamp(25px, 1.55vw, 30px); }
.app-shell .metric-foot { font-size: 11px; }
.app-shell .chart-head h3,
.app-shell .chat-panel .card-header h3 { font-size: var(--ui-card-title-size); }
.app-shell .chart-head p { font-size: var(--ui-meta-size); }
.app-shell .legend { font-size: 11px; }
.app-shell .chat-summary { font-size: var(--ui-meta-size); }
.app-shell .chat-name { font-size: var(--ui-body-size); }
.app-shell .chat-message { font-size: var(--ui-body-size); line-height: 1.55; }
.app-shell .chat-time { font-size: 11px; }
.app-shell .tag { font-size: 11px; }

.app-shell .summary-copy span { font-size: var(--ui-meta-size); }
.app-shell .summary-copy strong { font-size: clamp(21px, 1.35vw, 25px); }
.app-shell .tab { min-height: 50px; font-size: var(--ui-control-size); }
.app-shell .table { font-size: var(--ui-table-size); }
.app-shell .table th { font-size: 11px; }
.app-shell .cell-sub { font-size: 11px; }
.app-shell .link-action { font-size: 12px; }

.app-shell .keyword-cloud-card .card-header,
.app-shell .keyword-rank-card .card-header { min-height: 70px; }
.app-shell .rank-list { gap: 14px; }
.app-shell .rank-row { grid-template-columns: 24px minmax(88px, 96px) 1fr 44px; gap: 10px; font-size: var(--ui-meta-size); }
.app-shell .rank-row strong { font-size: var(--ui-body-size); }
.app-shell .rank-num { width: 22px; height: 22px; }
.app-shell .progress { min-height: 8px; }
.app-shell .cloud-caption { font-size: 11px; }
.app-shell .detail-kicker { font-size: 11px; }
.app-shell .keyword-detail-hero p { font-size: var(--ui-meta-size); }
.app-shell .keyword-detail-stats span { font-size: 11px; }
.app-shell .keyword-detail-stats strong { font-size: var(--ui-body-size); }
.app-shell .keyword-related span { font-size: 11px; }
.app-shell .keyword-detail-foot { font-size: 10px; }

.app-shell .settings-nav button { font-size: var(--ui-control-size); }
.app-shell .settings-nav-head p,
.app-shell .setting-copy p,
.app-shell .preference-copy p { font-size: 12px; }
.app-shell .settings-form-body .setting-copy h4,
.app-shell .preference-copy h4 { font-size: 14px; }
.app-shell .preference-option strong { font-size: 12px; }
.app-shell .preference-option small { font-size: 11px; }

/* Keep the explicit display preference useful after the standard scale is
   raised. Small remains compact; large adds a clear but bounded step. */
[data-font-scale="small"] .app-shell {
  --ui-nav-size: 13px;
  --ui-nav-title-size: 10px;
  --ui-body-size: 12px;
  --ui-meta-size: 11px;
  --ui-card-title-size: 15px;
  --ui-card-subtitle-size: 12px;
  --ui-control-size: 12px;
  --ui-table-size: 12px;
}
[data-font-scale="large"] .app-shell {
  --ui-nav-size: 15px;
  --ui-nav-title-size: 12px;
  --ui-body-size: 14px;
  --ui-meta-size: 13px;
  --ui-card-title-size: 17px;
  --ui-card-subtitle-size: 14px;
  --ui-control-size: 14px;
  --ui-table-size: 14px;
}
[data-font-scale="large"] .app-shell .page-title h2 { font-size: clamp(30px, 1.8vw, 36px); }
[data-font-scale="large"] .app-shell .metric-value { font-size: clamp(27px, 1.7vw, 32px); }

/* At tablet widths the sidebar is still present, so give readable labels
   room before the mobile navigation breakpoint is reached. */
@media (max-width: 1120px) {
  .app-shell .main { padding-inline: 24px; }
  .app-shell .page-title h2 { font-size: clamp(27px, 2.3vw, 31px); }
  .app-shell .metric-grid { gap: 12px; }
  .app-shell .rank-row { grid-template-columns: 24px minmax(76px, 88px) 1fr 42px; gap: 8px; }
}

@media (max-width: 820px) {
  .app-shell .main { padding: 22px 18px 36px; }
  .app-shell .page-header { gap: 16px; margin-bottom: 18px; }
  .app-shell .page-title h2 { font-size: clamp(25px, 5.6vw, 29px); }
  .app-shell .page-title p { font-size: 13px; }
  .app-shell .card-header { min-height: 62px; padding-inline: 16px; }
  .app-shell .card-body { padding: 16px; }
  .app-shell .keyword-cloud-card .card-header,
  .app-shell .keyword-rank-card .card-header { min-height: 66px; }
}

@media (max-width: 520px) {
  .app-shell .main { padding-inline: 14px; }
  .app-shell .page-title h2 { font-size: 24px; }
  .app-shell .page-title p { font-size: 12px; }
  .app-shell .topbar-actions .btn-guide { width: 38px; min-width: 38px; padding: 0; font-size: 0; }
  .app-shell .card-title { font-size: 15px; }
  .app-shell .card-subtitle { font-size: 12px; }
  .app-shell .tabs { overflow-x: auto; padding-inline: 10px; }
  .app-shell .tab { flex: 0 0 auto; padding-inline: 11px; }
  .app-shell .rank-row { grid-template-columns: 22px minmax(76px, 1fr) 1fr 40px; gap: 7px; }
  .app-shell .rank-row strong { font-size: 12px; }
  .app-shell .summary-card { padding: 14px; }
  .app-shell .summary-copy strong { font-size: 21px; }
}

/* Complete the readable scale for page-specific workspace components. */
.app-shell {
  --ui-section-title-size: 15px;
  --ui-label-size: 11px;
  --ui-emphasis-size: 14px;
  --ui-plan-title-size: 17px;
  --ui-modal-title-size: 18px;
}

[data-font-scale="small"] .app-shell {
  --ui-section-title-size: 14px;
  --ui-label-size: 10px;
  --ui-emphasis-size: 13px;
  --ui-plan-title-size: 16px;
  --ui-modal-title-size: 17px;
}

[data-font-scale="large"] .app-shell {
  --ui-section-title-size: 16px;
  --ui-label-size: 12px;
  --ui-emphasis-size: 15px;
  --ui-plan-title-size: 18px;
  --ui-modal-title-size: 19px;
}

/* Environment and live-room page. */
.app-shell .env-title h3 { font-size: var(--ui-section-title-size); }
.app-shell .env-title p { font-size: var(--ui-meta-size); }
.app-shell .env-meta span { font-size: var(--ui-label-size); }
.app-shell .env-meta strong { font-size: var(--ui-emphasis-size); }

/* Schedule page. */
.app-shell .calendar-title { font-size: var(--ui-card-title-size); }
.app-shell .day-label { font-size: var(--ui-label-size); }
.app-shell .day-number { font-size: 18px; }
.app-shell .schedule-event time { font-size: var(--ui-label-size); }
.app-shell .schedule-event h4 { font-size: var(--ui-body-size); }
.app-shell .schedule-event p { font-size: var(--ui-label-size); line-height: 1.55; }
.app-shell .compact-field label { font-size: var(--ui-label-size); }

/* History, chat and user-profile pages. */
.app-shell .profile-row strong { font-size: var(--ui-body-size); }
.app-shell .profile-row small { font-size: var(--ui-label-size); }
.app-shell .profile-hero h3 { font-size: var(--ui-card-title-size); }
.app-shell .insight span { font-size: var(--ui-label-size); }
.app-shell .insight strong { font-size: var(--ui-emphasis-size); }
.app-shell .timeline-item time { font-size: var(--ui-label-size); }
.app-shell .timeline-item p { font-size: var(--ui-body-size); line-height: 1.6; }
.app-shell .chart-axis-label { font-size: 11px; }

/* Shared supporting cards, plans, usage and empty states. */
.app-shell .calendar-kicker,
.app-shell .detail-kicker { font-size: var(--ui-label-size); }
.app-shell .calendar-overview-note { font-size: var(--ui-meta-size); }
.app-shell .calendar-overview-stats span { font-size: var(--ui-label-size); }
.app-shell .calendar-overview-stats strong { font-size: var(--ui-card-title-size); }
.app-shell .plan-card h3 { font-size: var(--ui-plan-title-size); }
.app-shell .plan-desc,
.app-shell .plan-features { font-size: var(--ui-body-size); }
.app-shell .plan-price small { font-size: var(--ui-meta-size); }
.app-shell .usage-card span { font-size: var(--ui-meta-size); }
.app-shell .usage-card strong { font-size: var(--ui-emphasis-size); }
.app-shell .empty-state h3 { font-size: var(--ui-card-title-size); }
.app-shell .empty-state p { font-size: var(--ui-body-size); line-height: 1.6; }

/* Keyword details and popovers. */
.app-shell .keyword-detail-hero p { font-size: var(--ui-meta-size); }
.app-shell .keyword-detail-stats span { font-size: var(--ui-label-size); }
.app-shell .keyword-detail-stats strong { font-size: var(--ui-body-size); }
.app-shell .keyword-related span { font-size: var(--ui-label-size); }
.app-shell .keyword-detail-foot { font-size: 10px; }
.app-shell .keyword-popover-title strong { font-size: var(--ui-section-title-size); }
.app-shell .keyword-popover-title span:not(.keyword-popover-mark) { font-size: var(--ui-label-size); }
.app-shell .keyword-popover-meaning { font-size: var(--ui-meta-size); }
.app-shell .keyword-popover-stats span { font-size: 10px; }
.app-shell .keyword-popover-stats strong { font-size: var(--ui-label-size); }
.app-shell .keyword-popover-related span { font-size: 10px; }

/* Modals, drawers and the in-product guide should use the same reading scale. */
.app-shell .modal-header h3 { font-size: var(--ui-modal-title-size); }
.app-shell .modal-header p,
.app-shell .modal .field label { font-size: var(--ui-body-size); }
.app-shell .onboarding-kicker,
.app-shell .guide-step-count,
.app-shell .guide-result span { font-size: var(--ui-label-size); }
.app-shell .onboarding-header h2 { font-size: 26px; }
.app-shell .onboarding-header p,
.app-shell .guide-desc,
.app-shell .guide-detail ol,
.app-shell .guide-result p { font-size: var(--ui-body-size); }
.app-shell .onboarding-steps strong { font-size: var(--ui-body-size); }
.app-shell .onboarding-steps small { font-size: var(--ui-label-size); }
.app-shell .onboarding-main h3 { font-size: 24px; }
.app-shell .guide-detail h4 { font-size: var(--ui-section-title-size); }

@media (max-width: 520px) {
  .app-shell .onboarding-header h2 { font-size: 22px; }
  .app-shell .onboarding-main h3 { font-size: 21px; }
}

/* Workspace hierarchy and compact status treatment. */
.app-shell .topbar-left { flex: 0 1 auto; }
.app-shell .topbar-context { min-width: 0; display: flex; align-items: center; }
.app-shell .topbar-context .breadcrumb { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-shell .health-summary {
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
  justify-content: center;
}
.app-shell .health-summary > span:last-child { white-space: nowrap; }

/* The ready state is a clear check mark instead of a monitor-in-a-circle
   with a second floating status dot. */
.app-shell .readiness-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.app-shell .readiness-icon .icon { width: 22px; height: 22px; }
.app-shell .readiness-icon.is-ready {
  color: #fff;
  background: linear-gradient(145deg, #2fc58a, #079455);
  box-shadow: 0 8px 18px rgba(7, 148, 85, .2), inset 0 1px 0 rgba(255,255,255,.35);
}
.app-shell .readiness-icon.is-ready::after { display: none; }
.app-shell .readiness-icon.is-running {
  color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 12%, transparent);
}

@media (max-width: 1200px) {
  .app-shell .topbar { gap: 12px; }
  .app-shell .topbar-actions { flex: 0 0 auto; gap: 7px; }
  .app-shell .topbar-search { min-width: 160px; }
}

@media (max-width: 1100px) {
  .app-shell .health-summary {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
  }
  .app-shell .health-summary > span:last-child { display: none; }
}

@media (max-width: 420px) {
  .app-shell .topbar-actions .health-summary { display: inline-flex; }
}

/* Settings: keep each value and its action in one predictable horizontal row. */
.app-shell .settings-form-body .setting-row {
  grid-template-columns: minmax(190px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 24px;
}
.app-shell .settings-form-body .setting-copy,
.app-shell .settings-form-body .inline-input {
  min-width: 0;
}
.app-shell .settings-form-body .inline-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.app-shell .settings-form-body .inline-input .input {
  width: 100%;
  min-width: 0;
}
.app-shell .settings-form-body .inline-input .btn {
  width: max-content;
  min-width: 68px;
  max-width: none;
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  padding-inline: 14px;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  writing-mode: horizontal-tb;
}

@media (max-width: 900px) {
  .app-shell .settings-form-body .setting-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .app-shell .settings-form-body .inline-input {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 520px) {
  .app-shell .settings-form-body {
    padding-inline: 14px;
  }
  .app-shell .settings-form-body .setting-row {
    padding-block: 16px;
  }
  .app-shell .settings-form-body .inline-input {
    gap: 8px;
  }
  .app-shell .settings-form-body .inline-input .btn {
    min-width: 64px;
    padding-inline: 11px;
  }
}

/* Responsive workspace scale.
   This uses one CSS coordinate system for every page. The runtime updates
   --display-scale from the CSS viewport and DPR; transform is deliberately
   avoided so sticky, fixed, scroll and popover coordinates stay correct. */
:root {
  --display-scale: 1;
  --effective-layout-width: 1280px;
}

.app-shell {
  width: 100%;
  transform: none;
  transform-origin: initial;
  --sidebar-width: calc(260px * var(--display-scale));
  --header-height: calc(72px * var(--display-scale));
  --ui-nav-size: calc(14px * var(--display-scale));
  --ui-nav-title-size: calc(11px * var(--display-scale));
  --ui-body-size: calc(13px * var(--display-scale));
  --ui-meta-size: calc(12px * var(--display-scale));
  --ui-card-title-size: calc(16px * var(--display-scale));
  --ui-card-subtitle-size: calc(13px * var(--display-scale));
  --ui-control-size: calc(13px * var(--display-scale));
  --ui-table-size: calc(13px * var(--display-scale));
  --ui-page-title-size: calc(33px * var(--display-scale));
  --ui-metric-size: calc(30px * var(--display-scale));
  --ui-summary-size: calc(25px * var(--display-scale));
}

.app-shell .sidebar-brand {
  padding-inline: calc(22px * var(--display-scale));
  gap: calc(11px * var(--display-scale));
}
.app-shell .sidebar-brand .brand-mark {
  width: calc(36px * var(--display-scale));
  height: calc(36px * var(--display-scale));
}
.app-shell .org-switcher {
  margin: calc(14px * var(--display-scale)) calc(12px * var(--display-scale)) calc(6px * var(--display-scale));
  min-height: calc(58px * var(--display-scale));
  padding: calc(10px * var(--display-scale)) calc(11px * var(--display-scale));
  gap: calc(9px * var(--display-scale));
}
.app-shell .sidebar-scroll { padding: calc(10px * var(--display-scale)) calc(12px * var(--display-scale)) calc(20px * var(--display-scale)); }
.app-shell .nav-section { margin-top: calc(19px * var(--display-scale)); }
.app-shell .nav-title { margin-inline: calc(11px * var(--display-scale)); margin-bottom: calc(8px * var(--display-scale)); }
.app-shell .nav-item {
  min-height: calc(42px * var(--display-scale));
  margin-block: calc(3px * var(--display-scale));
  padding-inline: calc(12px * var(--display-scale));
  gap: calc(11px * var(--display-scale));
}
.app-shell .sidebar-user { padding: calc(14px * var(--display-scale)) calc(12px * var(--display-scale)) calc(16px * var(--display-scale)); }

.app-shell .topbar {
  padding-inline: calc(32px * var(--display-scale));
  gap: calc(24px * var(--display-scale));
}
.app-shell .topbar-left { gap: calc(14px * var(--display-scale)); }
.app-shell .topbar-search {
  width: min(calc(360px * var(--display-scale)), 30vw);
  min-width: calc(220px * var(--display-scale));
}
.app-shell .topbar-search input {
  height: calc(38px * var(--display-scale));
  padding-inline: calc(13px * var(--display-scale));
  padding-left: calc(36px * var(--display-scale));
}
.app-shell .topbar-actions { gap: calc(9px * var(--display-scale)); }
.app-shell .health-summary {
  min-height: calc(32px * var(--display-scale));
  padding-inline: calc(11px * var(--display-scale));
  gap: calc(7px * var(--display-scale));
}
.app-shell .topbar-actions > .btn-icon {
  width: calc(38px * var(--display-scale));
  min-width: calc(38px * var(--display-scale));
}

.app-shell .main {
  padding: calc(28px * var(--display-scale)) calc(32px * var(--display-scale)) calc(48px * var(--display-scale));
}
.app-shell .page-header { gap: calc(20px * var(--display-scale)); margin-bottom: calc(22px * var(--display-scale)); }
.app-shell .page-title h2 { font-size: var(--ui-page-title-size); }
.app-shell .page-title p { margin-top: calc(8px * var(--display-scale)); }
.app-shell .page-actions { gap: calc(9px * var(--display-scale)); }
.app-shell .btn {
  min-height: calc(40px * var(--display-scale));
  gap: calc(8px * var(--display-scale));
  padding-inline: calc(14px * var(--display-scale));
  font-size: var(--ui-control-size);
}
.app-shell .btn-icon {
  width: calc(38px * var(--display-scale));
  min-width: calc(38px * var(--display-scale));
  padding-inline: 0;
}
.app-shell .card-header {
  min-height: calc(66px * var(--display-scale));
  gap: calc(16px * var(--display-scale));
  padding-inline: calc(20px * var(--display-scale));
}
.app-shell .card-body { padding: calc(20px * var(--display-scale)); }
.app-shell .card-title { font-size: var(--ui-card-title-size); }
.app-shell .card-subtitle { font-size: var(--ui-card-subtitle-size); }
.app-shell .readiness { gap: calc(18px * var(--display-scale)); padding: calc(14px * var(--display-scale)) calc(18px * var(--display-scale)); }
.app-shell .readiness-icon { width: calc(42px * var(--display-scale)); height: calc(42px * var(--display-scale)); }
.app-shell .check-chip { min-height: calc(30px * var(--display-scale)); padding-inline: calc(10px * var(--display-scale)); }
.app-shell .current-session { gap: calc(18px * var(--display-scale)); padding: calc(18px * var(--display-scale)) calc(20px * var(--display-scale)); }
.app-shell .session-time { width: calc(46px * var(--display-scale)); height: calc(46px * var(--display-scale)); }
.app-shell .metric-grid { gap: calc(14px * var(--display-scale)); margin-top: calc(16px * var(--display-scale)); }
.app-shell .metric { min-height: calc(116px * var(--display-scale)); padding: calc(16px * var(--display-scale)) calc(17px * var(--display-scale)); }
.app-shell .metric-icon { width: calc(30px * var(--display-scale)); height: calc(30px * var(--display-scale)); }
.app-shell .metric-value { font-size: var(--ui-metric-size); }
.app-shell .data-grid,
.app-shell .env-cards { gap: calc(14px * var(--display-scale)); }
.app-shell .summary-card { padding: calc(17px * var(--display-scale)); gap: calc(12px * var(--display-scale)); }
.app-shell .summary-icon { width: calc(40px * var(--display-scale)); height: calc(40px * var(--display-scale)); }
.app-shell .summary-copy strong { font-size: var(--ui-summary-size); }

/* Use the effective physical layout width for the wide-screen hierarchy.
   This makes 1920px/DPR 1 and 1280px/DPR 1.5 use the same six-card desktop
   composition, while a genuinely narrower display still changes columns. */
html[data-layout-mode="wide"] .app-shell .metric-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
html[data-layout-mode="wide"] .app-shell .data-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
html[data-layout-mode="wide"] .app-shell .env-cards {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}
html[data-layout-mode="wide"] .app-shell .current-session {
  grid-template-columns: minmax(200px, 1.25fr) repeat(3, minmax(105px, .55fr)) auto;
}
html[data-layout-mode="wide"] .app-shell .current-session .session-info:nth-of-type(4) {
  display: block;
}

/* A CSS viewport that is desktop-sized but does not reach the wide effective
   width keeps the established three/two-column responsive arrangement. */
@media (min-width: 821px) and (max-width: 1280px) {
  .app-shell .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-shell .data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell .env-cards { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
  .app-shell .current-session {
    grid-template-columns: minmax(210px, 1.3fr) repeat(2, minmax(100px, .6fr)) auto;
  }
  .app-shell .current-session .session-info:nth-of-type(4) { display: none; }
}

[data-font-scale="small"] .app-shell {
  --ui-nav-size: calc(13px * var(--display-scale));
  --ui-nav-title-size: calc(10px * var(--display-scale));
  --ui-body-size: calc(12px * var(--display-scale));
  --ui-meta-size: calc(11px * var(--display-scale));
  --ui-card-title-size: calc(15px * var(--display-scale));
  --ui-card-subtitle-size: calc(12px * var(--display-scale));
  --ui-control-size: calc(12px * var(--display-scale));
  --ui-table-size: calc(12px * var(--display-scale));
}
[data-font-scale="large"] .app-shell {
  --ui-nav-size: calc(15px * var(--display-scale));
  --ui-nav-title-size: calc(12px * var(--display-scale));
  --ui-body-size: calc(14px * var(--display-scale));
  --ui-meta-size: calc(13px * var(--display-scale));
  --ui-card-title-size: calc(17px * var(--display-scale));
  --ui-card-subtitle-size: calc(14px * var(--display-scale));
  --ui-control-size: calc(14px * var(--display-scale));
  --ui-table-size: calc(14px * var(--display-scale));
  --ui-page-title-size: calc(36px * var(--display-scale));
  --ui-metric-size: calc(32px * var(--display-scale));
}

/* The compact mobile toolbar intentionally keeps the guide as an icon and
   lets the service status retain its dot without squeezing other actions. */
@media (max-width: 1024px) {
  .app-shell .topbar-actions .btn-guide { width: 38px; min-width: 38px; padding: 0; font-size: 0; }
  .app-shell .topbar-actions .btn-guide .icon { width: 17px; height: 17px; }
}

/* Icon system: use the same calm, compact geometry across the workspace. */
.app-shell .icon {
  stroke-width: 1.9;
  vector-effect: non-scaling-stroke;
}
.app-shell .metric-icon,
.app-shell .summary-icon,
.app-shell .empty-icon {
  border: 1px solid color-mix(in srgb, var(--primary) 8%, transparent);
}
.app-shell .metric-icon { border-radius: 10px; }
.app-shell .summary-icon { border-radius: 12px; }
.app-shell .empty-icon { border-radius: 14px; }
.app-shell .readiness-icon {
  display: grid;
  place-items: center;
  flex: 0 0 calc(40px * var(--display-scale));
  width: calc(40px * var(--display-scale));
  height: calc(40px * var(--display-scale));
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid #d9f2e5;
  border-radius: 12px;
  box-shadow: none;
}
.app-shell .readiness-icon .icon {
  width: calc(20px * var(--display-scale));
  height: calc(20px * var(--display-scale));
  stroke-width: 2.25;
}
.app-shell .readiness-icon.is-ready {
  color: var(--success);
  background: var(--success-soft);
  border-color: #d9f2e5;
  box-shadow: none;
}
.app-shell .readiness-icon.is-ready .icon {
  transform: translateY(.5px);
}
.app-shell .readiness-icon.is-running {
  border-color: color-mix(in srgb, var(--primary) 16%, var(--border));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 10%, transparent);
}

/* Dark mode: keep the guide visible without introducing a light-theme button. */
[data-theme="dark"] .app-shell .topbar-actions .btn-guide {
  color: #a9c8ff;
  border-color: #315b99;
  background: linear-gradient(145deg, #1b355d, #172b4b);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 4px 12px rgba(0,0,0,.14);
}
[data-theme="dark"] .app-shell .topbar-actions .btn-guide:hover {
  color: #d8e7ff;
  border-color: #4b7fc4;
  background: linear-gradient(145deg, #234574, #1b355d);
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}

/* 商品管理筛选：大屏将搜索与售卖方式放在同一行，小屏保持可读性。 */
.app-shell .product-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-shell .product-filter-bar .search-box {
  flex: 1 1 320px;
  width: auto;
  max-width: 420px;
}
.app-shell .product-filter-bar .product-sale-filter {
  flex: 0 0 180px;
  width: 180px;
  padding-right: 50px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='m5.5 7 3.5 3.5L12.5 7' stroke='%2345607f' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 22px center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  cursor: pointer;
}
.app-shell .product-filter-bar .product-sale-filter::-ms-expand {
  display: none;
}
@media (max-width: 620px) {
  .app-shell .product-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .app-shell .product-filter-bar .search-box,
  .app-shell .product-filter-bar .product-sale-filter {
    flex-basis: auto;
    width: 100%;
    max-width: none;
  }
}

/* Settings compact context: retain orientation while removing duplicate page headings. */
.app-shell .settings-page {
  display: grid;
  gap: 12px;
}
.app-shell .settings-context {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4px;
}
.app-shell .settings-context-copy { min-width: 0; }
.app-shell .settings-context-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.app-shell .settings-context-title i {
  color: var(--border-strong, var(--border));
  font-style: normal;
  font-weight: 400;
}
.app-shell .settings-context-title h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--text-strong);
  font-size: 26px;
  font-weight: 720;
  letter-spacing: -.04em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-shell .settings-context-copy p {
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-shell .settings-context > .tag { flex: 0 0 auto; }
.app-shell .settings-content > .settings-form-body:first-child { padding-top: 4px; }
.app-shell .settings-content > .settings-preferences:first-child { padding-top: 20px; }
.app-shell .settings-save-bar {
  position: fixed;
  z-index: 30;
  right: 32px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(430px, calc(100vw - 48px));
  padding: 13px 14px 13px 16px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(24, 45, 79, .16);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity .2s ease, transform .2s ease;
}
.app-shell .settings-save-bar > div { display: grid; gap: 3px; min-width: 0; }
.app-shell .settings-save-bar strong { color: var(--text-strong); font-size: 13px; }
.app-shell .settings-save-bar span { color: var(--muted); font-size: 11px; }
.app-shell .settings-save-bar .btn { flex: 0 0 auto; white-space: nowrap; }
.app-shell .settings-page.is-dirty .settings-save-bar { opacity: 1; pointer-events: auto; transform: translateY(0); }

@media (max-width: 900px) {
  .app-shell .settings-context { min-height: 76px; }
  .app-shell .settings-save-bar { right: 14px; bottom: 14px; width: min(430px, calc(100vw - 28px)); }
}
@media (max-width: 520px) {
  .app-shell .settings-context { align-items: flex-start; min-height: 0; padding: 5px 0 3px; }
  .app-shell .settings-context-title { gap: 7px; font-size: 12px; }
  .app-shell .settings-context-title h2 { font-size: 21px; }
  .app-shell .settings-context-copy p { margin-top: 6px; font-size: 12px; white-space: normal; }
  .app-shell .settings-context > .tag { margin-top: 4px; }
  .app-shell .settings-save-bar { left: 12px; right: 12px; bottom: 12px; width: auto; gap: 10px; padding: 11px 12px; }
  .app-shell .settings-save-bar span { display: none; }
  .app-shell .settings-save-bar strong { font-size: 12px; }
  .app-shell .settings-save-bar .btn { min-height: 36px; padding-inline: 12px; }
}

/* Workspace toolbar: one concise orientation point across every operation page. */
.app-shell .page-toolbar {
  min-height: 54px;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 2px;
}
.app-shell .page-toolbar .page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.app-shell .page-toolbar .page-heading-icon {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--border));
  border-radius: 9px;
}
.app-shell .page-toolbar .page-title h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 21px;
  font-weight: 760;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.app-shell .page-toolbar .page-title p { display: none; }
.app-shell .page-toolbar .page-actions { margin-left: auto; }
.app-shell .page-toolbar .page-actions:empty { display: none; }
.app-shell .page-toolbar .btn[disabled] {
  color: var(--muted);
  background: var(--surface-soft);
  border-color: var(--border);
  box-shadow: none;
  cursor: not-allowed;
  opacity: .72;
}

/* Settings uses one tab row and an intentional commit action instead of nested navigation. */
.app-shell .settings-page { gap: 0; }
.app-shell .settings-page .page-toolbar { margin-bottom: 4px; }
.app-shell .settings-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  margin-bottom: 14px;
  padding: 0 2px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  scrollbar-width: thin;
}
.app-shell .workspace-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  margin: 14px 0;
  padding: 0 2px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  scrollbar-width: thin;
}
.app-shell .workspace-tabs .tab { flex: 0 0 auto; }
.app-shell .workspace-panel { margin-top: 0; }
.app-shell .settings-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 11px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-weight: 650;
}
.app-shell .settings-tabs button:hover,
.app-shell .settings-tabs button.active { color: var(--primary); }
.app-shell .settings-tabs button.active { border-bottom-color: var(--primary); }
.app-shell .settings-content { min-width: 0; overflow: hidden; }
.app-shell .settings-content > .settings-form-body { padding: 0 20px; }
.app-shell .settings-form-body .setting-row {
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 28px;
  min-height: 82px;
  padding: 16px 0;
}
.app-shell .settings-form-body .setting-row:last-child { border-bottom: 0; }
.app-shell .setting-control { min-width: 0; }
.app-shell .setting-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 40px;
  padding: 0 0 0 13px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
}
.app-shell .setting-summary > span {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-shell .setting-summary .btn { min-height: 34px; margin-right: 3px; }
.app-shell .settings-form-body .setting-row.is-editing { align-items: center; background: color-mix(in srgb, var(--primary-soft) 38%, transparent); }
.app-shell .settings-form-body .setting-row.is-editing .inline-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.app-shell .settings-form-body .setting-row.is-editing .inline-input .input { min-width: 0; }
.app-shell .settings-save-state {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
}
.app-shell .settings-save-state.is-dirty { color: #a16207; background: #fff7df; border-color: #f7dc91; }
[data-theme="dark"] .app-shell .settings-save-state.is-dirty { color: #f6cd73; background: #332a16; border-color: #654d1d; }
.app-shell .settings-page .settings-preferences { padding: 20px; }
.app-shell .settings-mobile-save { display: none; }

@media (max-width: 820px) {
  .app-shell .page-toolbar { min-height: 50px; margin-bottom: 14px; }
  .app-shell .page-toolbar .page-title h2 { font-size: 20px; }
  .app-shell .settings-form-body .setting-row { grid-template-columns: 1fr; gap: 10px; min-height: 0; }
}
@media (max-width: 520px) {
  .app-shell .page-toolbar { align-items: center; gap: 10px; }
  .app-shell .page-toolbar .page-heading-icon { flex-basis: 29px; width: 29px; height: 29px; }
  .app-shell .page-toolbar .page-title h2 { font-size: 18px; }
  .app-shell .page-toolbar .page-actions { gap: 6px; }
  .app-shell .page-toolbar .page-actions .settings-save-state,
  .app-shell .page-toolbar .page-actions .btn.btn-ghost { display: none; }
  .app-shell .settings-page.is-dirty .page-toolbar .page-actions .btn-primary { display: none; }
  .app-shell .page-toolbar .page-actions .btn { min-height: 36px; padding-inline: 10px; }
  .app-shell .settings-tabs { min-height: 44px; margin-inline: -2px; margin-bottom: 12px; }
  .app-shell .workspace-tabs { min-height: 44px; margin: 12px -2px; }
  .app-shell .settings-tabs button { min-height: 40px; padding-inline: 10px; font-size: 11px; }
  .app-shell .settings-content > .settings-form-body { padding-inline: 14px; }
  .app-shell .settings-form-body .setting-row { padding-block: 14px; }
  .app-shell .setting-summary { min-height: 38px; padding-left: 11px; }
  .app-shell .setting-summary .btn { min-height: 32px; }
  .app-shell .settings-mobile-save {
    position: fixed;
    z-index: 30;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 9px;
    padding: 10px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: 0 12px 32px rgba(24, 45, 79, .18);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity .2s ease, transform .2s ease;
  }
  .app-shell .settings-page.is-dirty .settings-mobile-save { opacity: 1; pointer-events: auto; transform: translateY(0); }
}

/* -------------------------------------------------------------------------- */
/* Operator-first visual foundation                                            */
/* -------------------------------------------------------------------------- */
.app-shell {
  --operator-body-size: 14px;
  --operator-meta-size: 12px;
  --operator-card-title-size: 16px;
  --operator-page-title-size: 28px;
  --operator-heading-color: #142b4d;
  --operator-copy-color: #667994;
  --operator-page: #f6f8fc;
  --operator-border: #dfe7f2;
  --operator-soft-blue: #eef5ff;
  --operator-sidebar-width: 236px;
  --operator-header-height: 64px;
  --page: var(--operator-page);
  --sidebar-width: var(--operator-sidebar-width);
  --header-height: var(--operator-header-height);
  font-family: "PingFang SC", "Microsoft YaHei", Inter, system-ui, sans-serif;
  font-size: var(--operator-body-size);
  line-height: 1.55;
}
[data-font-scale="small"] .app-shell {
  --operator-body-size: 13px;
  --operator-meta-size: 12px;
  --operator-card-title-size: 15px;
  --operator-page-title-size: 26px;
}
[data-font-scale="large"] .app-shell {
  --operator-body-size: 16px;
  --operator-meta-size: 13px;
  --operator-card-title-size: 18px;
  --operator-page-title-size: 30px;
}
.app-shell button,
.app-shell input,
.app-shell select,
.app-shell textarea { font: inherit; }

.app-shell .sidebar {
  background: #fff;
  border-right: 1px solid var(--operator-border);
  color: var(--operator-heading-color);
}
.app-shell .sidebar-brand {
  height: var(--operator-header-height);
  padding-inline: 20px;
  border-bottom-color: var(--operator-border);
}
.app-shell .sidebar-brand-text small { color: var(--primary); font-size: 11px; letter-spacing: .03em; }
.app-shell .sidebar-brand-text strong { color: var(--operator-heading-color); font-size: 16px; letter-spacing: 0; }
.app-shell .org-switcher {
  min-height: 62px;
  margin: 14px 12px 8px;
  border-color: var(--operator-border);
  background: #fff;
  box-shadow: 0 6px 18px rgba(29, 67, 120, .045);
}
.app-shell .org-switcher:hover { background: #f8fbff; border-color: #bdd1ef; }
.app-shell .org-copy strong { color: var(--operator-heading-color); font-size: 14px; }
.app-shell .org-copy small,
.app-shell .org-chevron { color: var(--operator-copy-color); }
.app-shell .sidebar-scroll { padding: 8px 12px 18px; }
.app-shell .nav-section { margin-top: 18px; }
.app-shell .nav-title {
  margin: 0 11px 7px;
  color: #8797ae;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
}
.app-shell .nav-item {
  min-height: 42px;
  padding-inline: 12px;
  color: #526984;
  font-size: var(--operator-body-size);
  font-weight: 560;
}
.app-shell .nav-item svg { color: #7d94b2; }
.app-shell .nav-item:hover { color: var(--primary); background: #f3f7fd; }
.app-shell .nav-item.active {
  color: var(--primary);
  background: var(--operator-soft-blue);
  box-shadow: inset 3px 0 0 var(--primary);
}
.app-shell .nav-item.active svg { color: var(--primary); }
.app-shell .sidebar-user { border-top-color: var(--operator-border); padding: 14px 12px 16px; }
.app-shell .user-copy strong { color: var(--operator-heading-color); font-size: 14px; }
.app-shell .user-copy small { color: var(--operator-copy-color); font-size: 12px; }
.app-shell .sidebar-user .btn { color: #60748f; border-color: var(--operator-border); background: #fff; }
.app-shell .sidebar-user .btn:hover { color: var(--primary); border-color: #b9ceeb; background: var(--operator-soft-blue); }

.app-shell .topbar {
  height: var(--operator-header-height);
  padding-inline: 28px;
  background: rgba(255,255,255,.94);
  border-bottom-color: var(--operator-border);
}
.app-shell .breadcrumb { color: #7185a2; font-size: var(--operator-meta-size); }
.app-shell .topbar-search { width: min(360px, 30vw); }
.app-shell .topbar-search input { height: 38px; font-size: var(--operator-body-size); }
.app-shell .health-summary { font-size: var(--operator-meta-size); }
.app-shell .btn-guide { font-size: var(--operator-body-size); }

.app-shell .main { padding: 28px 32px 48px; background: var(--operator-page); }
.app-shell .page { max-width: 1440px; }
.app-shell .page-header { align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.app-shell .page-title { gap: 11px; }
.app-shell .page-title h2 {
  color: var(--operator-heading-color);
  font-size: var(--operator-page-title-size);
  font-weight: 720;
  letter-spacing: -.025em;
  line-height: 1.25;
}
.app-shell .page-title p {
  max-width: 700px;
  color: var(--operator-copy-color);
  font-size: var(--operator-body-size);
  line-height: 1.6;
}
.app-shell .page-heading-icon {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border-radius: 11px;
}
.app-shell .page-actions { gap: 8px; }
.app-shell .page-actions .btn { min-height: 40px; font-size: var(--operator-body-size); }

.app-shell .card {
  border-color: var(--operator-border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(28, 53, 91, .025), 0 8px 24px rgba(45, 77, 124, .035);
}
.app-shell .card:hover { box-shadow: 0 2px 4px rgba(28, 53, 91, .03), 0 10px 26px rgba(45, 77, 124, .055); }
.app-shell .card-title { color: var(--operator-heading-color); font-size: var(--operator-card-title-size); font-weight: 650; }
.app-shell .card-subtitle,
.app-shell .metric-foot,
.app-shell .cell-sub { color: var(--operator-copy-color); font-size: var(--operator-meta-size); }
.app-shell .card-body { padding: 20px; }
.app-shell .btn { font-size: var(--operator-body-size); font-weight: 600; }
.app-shell .input,
.app-shell .select,
.app-shell .textarea { font-size: var(--operator-body-size); }

.app-shell .data-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.app-shell .metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.app-shell .summary-card { min-height: 104px; padding: 18px 20px; }
.app-shell .summary-copy span,
.app-shell .metric-label { color: var(--operator-copy-color); font-size: var(--operator-meta-size); }
.app-shell .summary-copy strong { color: var(--operator-heading-color); font-size: 28px; font-weight: 720; }
.app-shell .metric { min-height: 118px; padding: 18px; }
.app-shell .metric-value { color: var(--operator-heading-color); font-size: 28px; font-weight: 720; }
.app-shell .metric-icon,
.app-shell .summary-icon { border-radius: 10px; }

.app-shell .operator-advanced-details {
  margin: 0 0 16px;
  border: 1px solid var(--operator-border);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  overflow: hidden;
}
.app-shell .operator-advanced-details > summary {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  color: #687e99;
  cursor: pointer;
  font-size: var(--operator-meta-size);
  font-weight: 600;
  list-style: none;
}
.app-shell .operator-advanced-details > summary::-webkit-details-marker { display: none; }
.app-shell .operator-advanced-details > summary::after { content: '展开'; margin-left: auto; color: var(--primary); }
.app-shell .operator-advanced-details[open] > summary { border-bottom: 1px solid var(--operator-border); background: #f8fbff; }
.app-shell .operator-advanced-details[open] > summary::after { content: '收起'; }
.app-shell .operator-advanced-details .page-state-demo { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.app-shell .operator-advanced-details .prototype-state-strip { margin: 0; padding: 14px 16px; }

.app-shell .readiness {
  min-height: 82px;
  padding: 16px 20px;
  border-left-width: 4px;
  background: linear-gradient(105deg, #fff 0%, #fbfdff 72%, #f1f6ff 100%);
}
.app-shell .readiness-main strong { color: var(--operator-heading-color); font-size: var(--operator-card-title-size); }
.app-shell .readiness-main span { color: var(--operator-copy-color); font-size: var(--operator-meta-size); }
.app-shell .check-chip { min-height: 30px; font-size: var(--operator-meta-size); }
.app-shell .current-session { padding: 20px; }
.app-shell .session-lead h3 { font-size: var(--operator-card-title-size); }
.app-shell .session-info small { color: var(--operator-copy-color); font-size: var(--operator-meta-size); }
.app-shell .session-info strong { font-size: var(--operator-body-size); }
.app-shell .monitor-session-card { padding: 18px 20px; }
.app-shell .monitor-session-head strong { color: var(--operator-heading-color); font-size: var(--operator-card-title-size); }

.app-shell .resource-management-overview { border-radius: 14px; }
.app-shell .resource-management-block { padding: 22px 24px; }
.app-shell .resource-management-block strong { font-size: 18px; }
.app-shell .resource-management-block p { max-width: 440px; font-size: var(--operator-body-size); line-height: 1.65; }
.app-shell .resource-management-block .btn { margin-top: 16px; }
.app-shell .env-card { padding: 18px; }
.app-shell .env-title h3 { font-size: var(--operator-card-title-size); }
.app-shell .env-title p,
.app-shell .env-meta span { color: var(--operator-copy-color); font-size: var(--operator-meta-size); }
.app-shell .env-meta strong { font-size: var(--operator-body-size); }
.app-shell .workspace-tabs { margin: 18px 0 14px; }
.app-shell .workspace-tabs .tab { min-height: 42px; font-size: var(--operator-body-size); }

.app-shell .calendar-overview { padding: 20px 22px; }
.app-shell .calendar-kicker { font-size: var(--operator-meta-size); }
.app-shell .calendar-overview-main strong { color: var(--operator-heading-color); font-size: 20px; }
.app-shell .calendar-overview-note { color: var(--operator-copy-color); font-size: var(--operator-meta-size); }
.app-shell .calendar-title { font-size: var(--operator-card-title-size); }
.app-shell .day-label { font-size: var(--operator-meta-size); }

.app-shell .table { font-size: var(--operator-body-size); }
.app-shell .table th { color: #627692; font-size: var(--operator-meta-size); font-weight: 650; }
.app-shell .table td { color: var(--operator-heading-color); }
.app-shell .cell-main { font-size: var(--operator-body-size); font-weight: 650; }
.app-shell .link-action { font-size: var(--operator-body-size); }

.app-shell .profile-layout { gap: 18px; }
.app-shell .profile-row strong { font-size: var(--operator-body-size); }
.app-shell .profile-row small { font-size: var(--operator-meta-size); }
.app-shell .keyword-layout { gap: 18px; }
.app-shell .word-cloud-item { line-height: 1.15; }
.app-shell .product-source-note { padding: 16px 20px; }
.app-shell .product-source-note p { font-size: var(--operator-meta-size); }
.app-shell .usage-card { min-height: 104px; padding: 18px 20px; }
.app-shell .usage-card-top span { color: var(--operator-copy-color); font-size: var(--operator-meta-size); }
.app-shell .usage-card-top strong { color: var(--operator-heading-color); font-size: 22px; }
.app-shell .plan-card { padding: 22px; }
.app-shell .plan-card h3 { font-size: 20px; }
.app-shell .plan-desc { color: var(--operator-copy-color); font-size: var(--operator-body-size); line-height: 1.65; }

.app-shell .settings-tabs { margin-bottom: 14px; }
.app-shell .settings-tabs button { min-height: 44px; font-size: var(--operator-body-size); }
.app-shell .settings-content > .settings-form-body { padding-inline: 22px; }
.app-shell .settings-form-body .setting-row { min-height: 88px; }
.app-shell .setting-copy h4 { color: var(--operator-heading-color); font-size: var(--operator-card-title-size); }
.app-shell .setting-copy p { color: var(--operator-copy-color); font-size: var(--operator-meta-size); line-height: 1.6; }
.app-shell .setting-summary { min-height: 42px; }
.app-shell .preference-copy h4 { font-size: var(--operator-card-title-size); }
.app-shell .preference-copy p { font-size: var(--operator-body-size); line-height: 1.6; }

[data-theme="dark"] .app-shell .sidebar { background: linear-gradient(180deg, #0b1934 0%, #09162d 100%); border-right-color: rgba(130,164,218,.14); }
[data-theme="dark"] .app-shell .sidebar-brand { border-bottom-color: rgba(130,164,218,.14); }
[data-theme="dark"] .app-shell .sidebar-brand-text strong,
[data-theme="dark"] .app-shell .org-copy strong,
[data-theme="dark"] .app-shell .user-copy strong { color: #f7faff; }
[data-theme="dark"] .app-shell .org-copy small,
[data-theme="dark"] .app-shell .org-chevron,
[data-theme="dark"] .app-shell .user-copy small { color: #9fb2d1; }
[data-theme="dark"] .app-shell .org-switcher { border-color: rgba(111,157,235,.2); background: rgba(255,255,255,.055); }
[data-theme="dark"] .app-shell .nav-item { color: #afbed5; }
[data-theme="dark"] .app-shell .nav-item.active { color: #fff; background: linear-gradient(100deg, rgba(48,101,193,.58), rgba(37,75,143,.36)); }
[data-theme="dark"] .app-shell .sidebar-user { border-top-color: rgba(130,164,218,.14); }
[data-theme="dark"] .app-shell .sidebar-user .btn { color: #b9c8df; border-color: rgba(139,171,224,.2); background: rgba(255,255,255,.035); }
[data-theme="dark"] .app-shell .operator-advanced-details { border-color: var(--border); background: rgba(21,30,49,.7); }
[data-theme="dark"] .app-shell .operator-advanced-details[open] > summary { background: rgba(23,54,109,.45); }

@media (max-width: 1180px) {
  .app-shell .data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-shell .main { padding-inline: 24px; }
}
@media (max-width: 820px) {
  .app-shell .topbar { height: 60px; padding-inline: 16px; }
  .app-shell .main { padding: 20px 16px 32px; }
  .app-shell .page-header { gap: 12px; margin-bottom: 16px; }
  .app-shell .page-title h2 { font-size: 23px; }
  .app-shell .page-title p { font-size: 13px; }
  .app-shell .page-heading-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .app-shell .data-grid,
  .app-shell .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .app-shell .summary-card,
  .app-shell .metric { min-height: 100px; padding: 16px; }
  .app-shell .resource-management-overview { flex-direction: column; }
  .app-shell .resource-management-block + .resource-management-block { border-top: 1px solid var(--operator-border); border-left: 0; }
  .app-shell .resource-management-block { padding: 18px; }
  .app-shell .resource-management-block strong { font-size: 17px; }
  .app-shell .settings-form-body .setting-row { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 520px) {
  .app-shell .page-header { display: block; }
  .app-shell .page-actions { width: 100%; margin-top: 12px; }
  .app-shell .page-actions .btn { flex: 1; }
  .app-shell .data-grid,
  .app-shell .metric-grid { grid-template-columns: 1fr; }
  .app-shell .summary-copy strong,
  .app-shell .metric-value { font-size: 26px; }
  .app-shell .card-body { padding: 16px; }
  .app-shell .operator-advanced-details > summary { min-height: 40px; padding-inline: 14px; }
}

/* Login always uses a light, self-contained reading palette.  The workspace
   theme is applied only after sign-in, so field labels never inherit light
   text from dark-mode dashboard preferences. */
body.auth-page {
  color-scheme: light;
  --page: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f6f8fc;
  --text: #344054;
  --text-strong: #152a49;
  --muted: #667995;
  --muted-2: #8491a6;
  --border: #e3ebf5;
  --border-strong: #cbd7e6;
  --primary-soft: #eaf2ff;
}

.auth-shell-blue .auth-card .form-stack { gap: 14px; }
.auth-shell-blue .field { gap: 6px; }
.auth-shell-blue .field label {
  color: #344054;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: .01em;
}
.auth-shell-blue .input {
  color: #182230;
  background: #ffffff;
  border-color: #cbd7e6;
}
.auth-shell-blue .input::placeholder { color: #8b9bb0; }
.auth-shell-blue .input-icon,
.auth-shell-blue .input-action { color: #70819a; }
.auth-shell-blue .input-action:hover { color: #2563eb; background: #eef5ff; }
.auth-shell-blue .form-options { color: #667995; font-size: 12px; }
.auth-shell-blue .checkbox { color: #667995; }
.auth-shell-blue .checkbox input { width: 15px; height: 15px; }
