.theme-classic {
  --bg: #f5f4f0;
  --paper: #fffefa;
  --ink: #18242e;
  --muted: #62686d;
  --soft: #777c7b;
  --line: #e8e5dd;
  --nav: #101923;
  --surface-subtle: #f8f6ef;
  --accent: #b8975f;
  --accent-dark: #745524;
  --accent-light: #f3ebdc;
  --accent-line: #c8ad7e;
  --focus-ring: #9c7b45;
  --control-touch: 44px;
  --green: #306052;
  --green-light: #e8f0e9;
  --red: #a05049;
  --red-light: #f5e8e3;
  --blue: #435b78;
  --blue-light: #e9eef4;
  --shadow: 0 3px 9px #29241e05, 0 15px 34px #29241e04;
}

.theme-classic :is(button, a, input, select, textarea):focus-visible { outline-color: var(--focus-ring); }
.theme-classic .shell { grid-template-columns: 222px minmax(0,1fr); }
.theme-classic .sidebar { color: #b4bec7; padding: 30px 15px 17px; border-right: 0; }
.theme-classic .sidebar .brand { margin: 0 6px 38px; }
.theme-classic .sidebar .brand-name { color: #f0dcaf; }
.theme-classic .nav { gap: 7px; }
.theme-classic .nav button { gap: 12px; padding: 0 13px; height: 46px; border-radius: 8px; }
.theme-classic .nav button:hover { color: #f5efe2; background: #ffffff0c; }
.theme-classic .nav button.active { color: #f0dcaf; background: #2d2e2d; border-color: #b8975f40; font-weight: 650; }
.theme-classic .nav button.active::before { position: absolute; content: ""; left: -1px; width: 3px; height: 16px; border-radius: 0 2px 2px 0; background: #cbab73; }
.theme-classic .sidebar-bottom { padding: 14px 9px 4px; border-color: #e9e0c91b; }
.theme-classic .sidebar-bottom strong { color: #e8e4dc; font-weight: 550; font-size: 12px; }
.theme-classic .sidebar-bottom p { padding: 7px 0 1px 18px; color: #a5afb7; font-size: 11px; }
.theme-classic .dot { background: #b89a65; box-shadow: 0 0 8px #e7bc6d77; }
.theme-classic .topbar { position: sticky; top: 0; min-height: 58px; background: #fdfcf8; }
.theme-classic kbd { background: #f3f1ec; border-color: #e9e5dd; color: #777771; }
.theme-classic .avatar { width: 31px; height: 31px; font-size: 12px; background: #e9dfcc; color: #705a35; }
.theme-classic .profile-menu button:is(:hover,.selected) { background: #f2eee5; }
.theme-classic main { padding-top: 26px; }
.theme-classic main:not([data-module=dashboard]) { padding-top: 16px; }

.classic-hero { min-height: 148px; display: flex; align-items: center; position: relative; overflow: hidden; border-radius: 14px; color: #fcf9ef; background: radial-gradient(ellipse at 82% 40%,#2d3a42 0%,#202e38 24%,#16232c 55%,#121d27 100%); box-shadow: 0 10px 26px #1b252720; isolation: isolate; }
.classic-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#121c26 0%,#131e27e0 30%,#17242c2b 64%,#13202809 100%); }
#classic-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.classic-hero-copy { padding: 22px 28px; position: relative; }
.classic-hero h1 { font-size: clamp(28px,3.15vw,43px); letter-spacing: -.045em; font-weight: 700; line-height: 1.14; }
.classic-hero-meta { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12px; color: #dcc7a4; }
.classic-hero-meta .icon { width: 15px; height: 15px; }
.classic-divider { opacity: .52; }

.theme-classic .tool-strip { margin-top: 14px; }
.theme-classic .dashboard-filters .group { padding: 0; gap: 5px; border: 0; background: none; }
.theme-classic .dashboard-filters .group .filter-button { min-height: 33px; padding: 6px 9px; background: var(--paper); color: var(--muted); border-color: var(--line); border-radius: 6px; }
.theme-classic .dashboard-filters .group .filter-button.active { background: var(--accent-light); color: var(--accent-dark); border-color: #d9c6a3; box-shadow: none; }
.theme-classic :is(.button,.filter-button):hover { border-color: #bba575; }
.theme-classic .filter-button.active { color: #694d25; border-color: #d9c6a3; }
.theme-classic .button.primary { background: #1c2b34; border-color: #1c2b34; }
.theme-classic .button.primary:hover { background: #2b3d47; color: #fff; }
.theme-classic .metrics { gap: 13px; margin-bottom: 17px; }
.theme-classic .metric { min-height: 110px; }
.theme-classic .metric strong { font-size: 34px; }
.theme-classic .metric:hover { border-color: #d7c49f; }
.theme-classic .panel-head { min-height: 62px; padding: 14px 16px; }
.theme-classic :is(.record:hover,th) { background: #f8f6ef; }
.theme-classic .record > .icon { color: #999184; }
.theme-classic .meeting-timeline .record .date-tile { background: #f3efe7; color: #5c5040; border-color: #ece5d9; }
.theme-classic .meeting-timeline .record:not(:last-child) .date-tile::after { background: #e9e1d4; }
.theme-classic .meeting-timeline .record .date-tile.today { background: #efe4cc; border-color: #e7d7b8; }
.theme-classic .activity-map .map-domain-index { background: #fcfaf5; }
.theme-classic .map-board { container: activity-board / inline-size; padding: 16px; }
.theme-classic .map-board-heading { align-items: baseline; flex-wrap: wrap; padding-bottom: 12px; }
.theme-classic .map-board-heading h3 { font-size: 14px; line-height: 1.35; }
.theme-classic .map-board-heading small { font-size: 12px; }
.theme-classic .map-lane-card { overflow: hidden; padding: 0; background: var(--surface-subtle); border-radius: 8px; }
.theme-classic .map-lane-track span { border-color: var(--paper); }
.theme-classic .map-lane-heading h4 { font-size: 14px; }
.theme-classic .map-lane-heading small { font-size: 11px; }
.theme-classic .map-lane-empty { margin: 0; padding: 14px 11px; font-size: 12px; }
.theme-classic .map-activity { min-height: 62px; padding: 10px 11px; gap: 6px; }
.theme-classic .map-activity-text strong { font-size: 13px; text-wrap: balance; }
.theme-classic .map-activity-text small { font-size: 11px; }
.theme-classic .map-activity > .icon { color: var(--accent-dark); width: 12px; height: 12px; }
.theme-classic .map-activity:focus-visible { outline-offset: -3px; }
.theme-classic .map-lane-scroll { overflow-x: auto; padding-bottom: 0; }
.theme-classic .map-scroll-hint { display: none; }

@container activity-board (width < 839px) {
  .theme-classic .map-stage-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-bottom: 12px; }
  .theme-classic .map-stage {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 3px 6px;
    min-height: var(--control-touch); min-width: 0; padding: 6px 4px; line-height: 1.3;
    border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 12px;
  }
  .theme-classic .map-stage:hover { border-color: var(--accent-line); }
  .theme-classic .map-stage small {
    min-width: 19px; padding: 1px 4px; border-radius: 20px; background: #eeebe3; color: var(--muted);
    font-size: 10px; line-height: 1.4; white-space: nowrap; font-variant-numeric: tabular-nums;
  }
  .theme-classic .map-stage[aria-pressed=true] {
    color: var(--accent-dark); border-color: var(--accent-line); background: var(--accent-light);
    box-shadow: inset 0 -2px var(--accent-line); font-weight: 680;
  }
  .theme-classic .map-stage[aria-pressed=true] small { background: var(--paper); color: var(--accent-dark); }
  .theme-classic .map-lane-scroll { overflow: visible; }
  .theme-classic .map-lanes { display: block; min-width: 0; }
  .theme-classic .map-lane:not(.current-stage), .theme-classic .map-lane-track { display: none; }
  .theme-classic .map-lane-heading { position: absolute; min-height: 0; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@container activity-board (600px <= width < 839px) {
  .theme-classic .map-stage-list { grid-template-columns: repeat(6,minmax(0,1fr)); }
}

.theme-classic .progress-track { background: #eae6dc; }
.theme-classic :is(.progress-track i,.switch[aria-checked=true]) { background: #9a804e; }
.theme-classic .report-box, .theme-classic .detail, .theme-classic .dialog-actions { background: #f6f2e8; color: #62533c; }
.theme-classic dialog { border-color: #e1d9ca; overflow: hidden; }
.theme-classic dialog form { display: flex; flex-direction: column; max-height: inherit; }
.theme-classic dialog :is(.dialog-top,.dialog-footer) { flex: 0 0 auto; }
.theme-classic .dialog-body { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
.theme-classic :is(input,select,textarea) { border-color: #dcd7c9; background: #fffefa; }
.theme-classic .checks input { accent-color: #8b754d; }
.theme-classic .integration:hover { border-color: #c7b078; }
.theme-classic .toast { background: #1e2e37; color: #fbf4e7; }

@media (min-width: 1440px) {
  .theme-classic .shell { grid-template-columns: 235px minmax(0,1fr); }
}
@media (max-width: 1080px) {
  .theme-classic .shell { grid-template-columns: 181px minmax(0,1fr); }
  .theme-classic .sidebar { padding-inline: 11px; }
  .theme-classic .sidebar .brand { margin-inline: 3px; }
}
@media (max-width: 1000px) {
  .theme-classic .grid, .theme-classic .grid.equal { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 790px) {
  .theme-classic .topbar { min-height: calc(57px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
  .theme-classic .sidebar { padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); border-color: #39434d; background: var(--nav); box-shadow: 0 -2px 14px #10192324; }
  .theme-classic :is(.topbar,main,.sidebar) { padding-left: max(13px, env(safe-area-inset-left)); padding-right: max(13px, env(safe-area-inset-right)); }
  .theme-classic .sidebar .nav button { height: 49px; padding: 3px 1px; color: #c4cbd1; font-size: 11px; }
  .theme-classic .sidebar .nav button.active { color: #f0dcaf; background: #2d2e2d; }
  .theme-classic .sidebar .nav button.active::before { content: none; }
  .theme-classic .topbar :is(.search-btn,.profile) { min-height: var(--control-touch); }
  .theme-classic .search-btn { min-width: var(--control-touch); justify-content: center; }
  .theme-classic .profile-menu { top: 48px; max-width: calc(100vw - 24px); }
  .theme-classic .map-domain-mobile select { min-width: 0; min-height: var(--control-touch); }
  .classic-hero { min-height: 123px; }
  .classic-hero-copy { padding-inline: 22px; }
}
@media (max-width: 570px) {
  .theme-classic main { padding-top: 15px; }
  .theme-classic main:not([data-module=dashboard]) { padding-top: 12px; }
  .classic-hero { min-height: 106px; }
  .classic-hero-copy { padding: 16px; }
  .classic-hero h1 { font-size: clamp(24px, 6.7vw, 30px); }
  .classic-hero-meta { margin-top: 9px; }
  .theme-classic .result-filters { padding-inline: 12px; }
  .theme-classic :is(.button,.filter-button,.text-btn), .theme-classic .dashboard-filters .group .filter-button { min-height: var(--control-touch); }
  .theme-classic .metrics { gap: 6px; }
  .theme-classic .metric { min-height: 85px; }
  .theme-classic .metric strong { font-size: 27px; }
  .theme-classic .panel-head { padding-inline: 12px; }
  .theme-classic .principles { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .theme-classic .principle { padding: 8px 7px; }
  .theme-classic .principle h3 { margin-block: 4px 3px; }
  .theme-classic .record-title { font-size: 14px; overflow-wrap: anywhere; }
  .theme-classic .record-meta { overflow-wrap: anywhere; }
  .theme-classic .setting-grid { grid-template-columns: minmax(0,1fr); }
  .theme-classic .switch { width: var(--control-touch); min-height: var(--control-touch); background: transparent; border-radius: 8px; }
  .theme-classic .switch::before { position: absolute; content: ""; inset: 9px 0; border-radius: 20px; background: #9a9e9e; }
  .theme-classic .switch[aria-checked=true] { background: transparent; }
  .theme-classic .switch[aria-checked=true]::before { background: #9a804e; }
  .theme-classic .switch::after { top: 13px; left: 4px; width: 18px; height: 18px; }
  .theme-classic .switch[aria-checked=true]::after { transform: translateX(18px); }
  .theme-classic .map-board { padding: 12px; }

  .theme-classic .table-wrap { overflow: visible; }
  .theme-classic .table-wrap table,
  .theme-classic .table-wrap tbody { display: block; min-width: 0; }
  .theme-classic .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .theme-classic .table-wrap tbody tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 10px; padding: 10px 12px 13px; border-bottom: 1px solid var(--line); }
  .theme-classic .table-wrap tbody tr:last-child { border-bottom: 0; }
  .theme-classic .table-wrap tbody td { display: block; padding: 0; min-width: 0; border: 0; overflow-wrap: anywhere; white-space: normal; }
  .theme-classic .table-wrap tbody td:first-child { grid-column: 1 / -1; font-size: 14px; font-weight: 650; }
  .theme-classic .mobile-cell-label { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; }
  .theme-classic :is(td:first-child, .task-table td:first-child) .mobile-cell-label { display: none; }
  .theme-classic td .title-link { min-height: var(--control-touch); font-size: 14px; }

  .theme-classic dialog { position: fixed; inset: auto 0 0; margin: 0; width: 100%; max-width: none; max-height: calc(100dvh - env(safe-area-inset-top) - 10px); border-radius: 14px 14px 0 0; overflow: hidden; }
  .theme-classic .dialog-footer { padding-bottom: env(safe-area-inset-bottom); background: var(--paper); }
  .theme-classic .dialog-top { padding: 12px; }
  .theme-classic .dialog-top .icon-button { width: var(--control-touch); height: var(--control-touch); }
  .theme-classic .dialog-top h2 { font-size: 19px; overflow-wrap: anywhere; }
  .theme-classic .dialog-body { padding: 12px; }
  .theme-classic .dialog-actions { padding: 8px 12px; }
  .theme-classic :is(.form-grid,.map-domain-mobile) :is(input,select,textarea), .theme-classic input.search-input { width: 100%; max-width: 100%; min-height: var(--control-touch); }
  .theme-classic .checks label { min-height: var(--control-touch); }
  .theme-classic #dialog-feedback:not(:empty) { padding-inline: 12px; }
}
