/* Copyright © 2026 庞潇. Original Career Life styling; third-party licenses apply separately. */
:root {
  --color-primary-700: #174958;
  --color-primary-600: #1a647b;
  --color-primary-500: #397b8e;
  --color-primary-100: #e7eff2;
  --color-primary-50: #f7f6f3;
  --color-action: #795b3c;
  --color-action-dark: #1a647b;
  --color-action-deep: #174958;
  --color-ink: #252d31;
  --color-muted: #596066;
  --color-surface: #fff;
  --color-surface-soft: #fff;
  --color-line: #dcdad4;
  --english: #735738;
  --english-soft: #f4eee5;
  --shadow: 0 16px 48px #19293226;
  --editorial-serif: Georgia, "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
}
body, .app-shell { background: #fff; }
body { font-family: Arial, "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; }
.app-shell { display: block; }
.sidebar {
  position: static; height: auto; display: flex; flex-direction: row;
  align-items: center; gap: 44px; padding: 28px max(32px, calc((100vw - 1200px) / 2));
  border: 0; border-bottom: 1px solid var(--line); box-shadow: none;
}
.brand { padding: 0; gap: 0; flex-shrink: 0; }
.brand-mark, .nav-caption, .sidebar-bottom, .nav-end, .nav-count { display: none; }
.brand strong { font: 30px/1.1 var(--editorial-serif); color: #493622; }
.brand small { margin-top: 8px; font-size: 11px; letter-spacing: .18em; }
.main-nav { display: flex; gap: 8px; margin-left: auto; }
.nav-item { width: auto; min-height: 48px; padding: 0 16px; border-radius: 0; font-size: 14px; color: #41494e; }
.nav-item svg { display: none; }
.nav-item.is-active, .ai-nav[aria-expanded="true"] {
  color: #493622; background: transparent; box-shadow: inset 0 -2px #795b3c;
}
.nav-item:hover { background: #f4f2ee; }
.ai-nav { margin: 0 0 0 12px; }
.ai-nav svg:first-child { display: block; }
.main-content { width: min(1280px, 100%); padding: 0 40px 40px; }
.workspace-bar { height: 64px; border: 0; font-size: 12px; }
.workspace-bar strong { color: var(--ink); }
.topbar {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  grid-template-rows: 1fr auto; align-items: end; gap: 28px 64px;
  position: relative; padding: 44px 0 52px; min-height: 320px; margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.topbar > div { grid-column: 1; grid-row: 1; align-self: center; }
.topbar::after {
  content: ""; grid-column: 2; grid-row: 1 / span 2; align-self: stretch;
  background: #e8e3db url("assets/study-desk.jpg") center 52% / cover no-repeat;
  min-height: 230px;
}
.eyebrow { color: #735738; font-size: 11px; letter-spacing: .2em; margin-bottom: 18px; }
h1 { font-family: var(--editorial-serif); font-size: clamp(28px, 3.1vw, 42px); line-height: 1.4; font-weight: 500; text-wrap: balance; }
.view-subtitle { font-size: 15px; margin-top: 18px; line-height: 1.8; }
.topbar > .primary-button { grid-column: 1; grid-row: 2; justify-self: start; min-height: 46px; padding: 0 26px; }
.primary-button, .secondary-button, .icon-button, .prompt-button, input, select, textarea,
.brand-mark, .lane-icon, .assistant-mark, .nav-count, .category-tag { border-radius: 2px; }
.primary-button, .topbar .primary-button, .chat-launcher { box-shadow: none; background: var(--accent); border-color: var(--accent); }
.primary-button:hover:not(:disabled), .topbar .primary-button:hover:not(:disabled), .chat-launcher:hover {
  box-shadow: none; background: var(--accent-strong); border-color: var(--accent-strong); transform: none;
}
button:active:not(:disabled) { transform: scale(.98); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #1a647b; }
.primary-button, .secondary-button { min-height: 44px; font-size: 13px; }
.summary-grid { padding: 28px 0; border: 0; border-radius: 0; background: #f5f3ef; box-shadow: none; }
.summary-item { padding-inline: 28px; }
.summary-item > strong { font: 38px/1.1 var(--editorial-serif); margin-top: 18px; }
.summary-item > span { font-size: 13px; }
.summary-item small, .summary-item strong em { font-size: 12px; color: var(--muted); }
.progress-section { padding: 24px 0; }
.progress-section h2, .progress-value { font-size: 13px; }
.progress-track { background: #e9e6e0; height: 4px; }
.dashboard-columns { grid-template-columns: minmax(0, 1fr) 268px; gap: 40px; padding-top: 32px; }
h2 { font-size: 21px; font-weight: 500; }
.insights { padding-left: 28px; }
.insights h2 { font-size: 17px; }
.segmented-control { background: #f5f3ef; border: 0; border-radius: 2px; }
.segmented-control button { min-height: 40px; font-size: 12px; }
.segmented-control button.is-selected { box-shadow: none; border-bottom: 2px solid #795b3c; color: #493622; }
.task-copy strong, .plan-item strong { font-size: 15px; }
.task-copy p, .plan-item p, .task-meta, .plan-item time, .category-tag { font-size: 12px; }
.task-meta { flex-wrap: wrap; white-space: normal; }
.task-item { padding: 22px 4px; }
.task-item:hover, .add-task-inline:hover, .secondary-button:hover, .icon-button:hover, .prompt-button:hover { background: #f5f3ef; }
.add-task-inline, .text-button { min-height: 44px; font-size: 13px; color: var(--accent); }
.task-actions .icon-button { width: 44px; min-width: 44px; min-height: 44px; }
.chart-day .bar-track { background: #eeece7; }
.chart-day .bar-fill { background: #9caeb5; }
.chart-day span:last-child, .week-total span { font-size: 12px; color: var(--muted); }
.week-total strong { font: 34px var(--editorial-serif); }
.next-step { margin-top: 24px; padding-top: 24px; }
.next-step h3 { font-size: 15px; }
.next-step > p:not(.section-kicker), .section-kicker { font-size: 12px; }
.empty-state { padding: 40px 12px; }
.empty-state p { font-size: 14px; }
.learning-intro { padding: 0 0 28px; border: 0; border-radius: 0; }
.learning-intro img { display: none; }
.page-intro h2 { font-size: 24px; font-family: var(--editorial-serif); }
.page-intro p:not(.section-kicker) { font-size: 14px; }
.plan-grid { padding-top: 0; gap: 32px; }
.plan-lane { border: 0; border-top: 2px solid #795b3c; border-radius: 0; padding: 24px 0; }
.software-lane .lane-icon, .assistant-mark { background: #e7eff2; color: var(--accent); }
.english-lane .lane-icon, .category-tag.english { background: #f4eee5; color: #735738; }
.category-tag.software { background: #e7eff2; color: var(--accent-strong); }
.category-tag.work { background: #f4eee5; color: #735738; }
.records-layout { gap: 40px; }
.record-editor { padding-right: 32px; }
label, .record-item p { font-size: 14px; color: var(--muted); }
input, select, textarea { border-color: #abb1b4; font-size: 15px; }
input::placeholder, textarea::placeholder { color: #697177; }
input:focus, select:focus, textarea:focus { box-shadow: none; }
.record-item h3 { font-size: 16px; }
.record-item time, .record-count { font-size: 12px; }
.chat-launcher { border-radius: 4px; width: 54px; height: 54px; }
.ai-window { border-radius: 3px; border-color: #aab4ba; }
.ai-toolbar { background: #203b4a; color: #fff; }
.ai-identity p, .ai-toolbar .icon-button { color: #e0e7ec; }
.ai-toolbar .icon-button:hover { background: #385465; color: #fff; }
.ai-toolbar .icon-button:focus-visible { outline-color: #fff; }
.ai-toolbar .assistant-mark { background: transparent; color: #fff; }
.ai-toolbar h2 { font: 19px var(--editorial-serif); }
.model-row { background: #f5f3ef; }
.model-note, .message-label, .composer-footer > span { color: var(--muted); font-size: 12px; }
.chat-message.user { background: #edf1f3; border-radius: 2px; }
.message-content { font-size: 14px; }
.chat-composer textarea { font-size: 16px; }
.site-footer { margin-top: 48px; color: var(--muted); font-size: 12px; padding-bottom: 16px; padding-right: 60px; }
.site-footer a { color: var(--accent-strong); text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 1024px) {
  .sidebar { padding: 24px 28px; gap: 20px; }
  .main-content { padding-inline: 28px; }
  .nav-item { padding-inline: 12px; }
  .topbar { column-gap: 32px; }
  .dashboard-columns { grid-template-columns: minmax(0, 1fr) 224px; gap: 24px; }
}
@media (max-width: 800px) {
  .sidebar { flex-wrap: wrap; gap: 16px; padding-bottom: 0; }
  .main-nav { width: 100%; margin: 0; justify-content: space-between; }
  .dashboard-columns { grid-template-columns: 1fr; }
  .insights { padding: 24px 0 0; border-left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .next-step { margin: 0; padding: 0 0 0 24px; border-top: 0; border-left: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .sidebar { display: flex; padding: 24px 20px 0; }
  .brand { min-height: 44px; }
  .brand strong { font-size: 28px; }
  .brand small { font-size: 11px; }
  .main-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
  .nav-item { padding: 8px 0; min-height: 50px; font-size: 12px; flex-direction: row; }
  .ai-nav { margin: 0; }
  .ai-nav svg:first-child { display: none; }
  .main-content { padding: 0 20px 64px; }
  .workspace-bar { height: 52px; font-size: 11px; }
  .topbar { min-height: 0; padding: 24px 0 28px; gap: 24px; margin-bottom: 24px; grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .topbar::after { grid-column: 1; grid-row: 3; min-height: 156px; background-position: center 55%; }
  h1 { font-size: 30px; }
  .eyebrow { margin-bottom: 12px; }
  .view-subtitle { margin-top: 14px; font-size: 14px; }
  .topbar > .primary-button { width: auto; min-width: 0; padding-inline: 24px; }
  .topbar > .primary-button span { display: inline; }
  .summary-grid { padding: 20px 0; }
  .summary-item, .summary-item:first-child { padding-inline: 12px; }
  .summary-item > span { font-size: 12px; }
  .metric-icon { display: none; }
  .summary-item > strong { font-size: 32px; }
  .summary-item small, .summary-item strong em { font-size: 12px; }
  .task-heading { gap: 16px; align-items: flex-start; }
  .task-heading h2 { font-size: 20px; }
  .segmented-control button { min-width: 44px; min-height: 44px; padding-inline: 8px; }
  .task-copy strong { font-size: 15px; }
  .task-copy p { font-size: 13px; }
  .task-actions { flex-direction: column; }
  .plan-grid { grid-template-columns: 1fr; gap: 20px; }
  .record-editor { padding-right: 0; }
  input, select, textarea { font-size: 16px; }
  .ai-toolbar-actions .icon-button { width: 44px; min-width: 44px; min-height: 44px; }
  .ai-toolbar { padding: 12px 8px; gap: 4px; }
  .ai-identity { gap: 4px; }
  .ai-toolbar .assistant-mark { display: none; }
  .site-footer { margin-top: 32px; font-size: 12px; }
}
@media (max-width: 380px) {
  .main-content { padding-inline: 16px; }
  h1 { font-size: 27px; }
  .summary-item, .summary-item:first-child { padding-inline: 8px; }
  .insights { display: block; }
  .next-step { margin-top: 24px; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
