/* Proposal 06: apricot collaboration. Screen-only and opt-in; printing keeps
   the existing stylesheet. No role visibility or business-field rules here. */
@media screen {
  body.theme-apricot {
    --blue: #c94d1c;
    --muted: #6d655e;
    --border: #e9e3dc;
    --apricot: #c94d1c;
    --apricot-hover: #ad3e12;
    --apricot-soft: #fff1e5;
    --apricot-line: #f0cdb5;
    --ink: #292b32;
    --surface: #ffffff;
    --canvas: #f8f6f2;
    color: var(--ink);
    background: var(--canvas);
    font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color-scheme: light;
    -webkit-font-smoothing: antialiased;
  }
  body.theme-apricot h1 { color: var(--ink); font-size: 25px; line-height: 1.4; letter-spacing: -.025em; margin-bottom: 7px; }
  body.theme-apricot h2 { color: var(--ink); font-size: 16px; line-height: 1.5; font-weight: 700; }
  body.theme-apricot h3 { color: var(--ink); font-size: 14px; }
  body.theme-apricot .muted { color: var(--muted); font-size: 13px; line-height: 1.8; }
  body.theme-apricot .eyebrow { color: #a06b4f; font-size: 12px; letter-spacing: .13em; margin-bottom: 7px; }
  body.theme-apricot :is(button, a, summary):focus-visible { outline: 3px solid #e89c6e; outline-offset: 3px; }
  body.theme-apricot :is(input, select, textarea):focus { outline: 2px solid #f0c2a5; outline-offset: 1px; border-color: var(--apricot); }
  body.theme-apricot :is(input[type=checkbox], input[type=radio], input[type=range]) { accent-color: var(--apricot); }

  /* Shell: white navigation, restrained accent, compact daily workspace. */
  body.theme-apricot .sidebar { width: 210px; padding: 24px 14px 18px; border-color: var(--border); background: #fff; overflow-y: auto; z-index: 10; }
  body.theme-apricot .brand { gap: 9px; color: #27272e; font-size: 18px; letter-spacing: -.03em; padding: 0 8px; }
  body.theme-apricot .brand img { width: 31px; height: 31px; }
  body.theme-apricot .workspace-label { margin: 25px 10px 12px; color: #8a8077; font-size: 12px; }
  body.theme-apricot .workspace-label span { background: #f7f3ed; color: #796959; padding: 2px 6px; }
  body.theme-apricot .sidebar nav { padding-bottom: 12px; }
  body.theme-apricot .nav-item { min-height: 40px; padding: 9px 12px; margin-bottom: 4px; gap: 11px; border-radius: 6px; color: #55545b; font-size: 14px; transition: background .15s ease, color .15s ease; }
  body.theme-apricot .nav-item span { width: 20px; flex: 0 0 20px; text-align: center; font-size: 18px; color: inherit; }
  body.theme-apricot .nav-item:hover { background: #faf2e9; color: #9f431b; }
  body.theme-apricot .nav-item.active { background: var(--apricot); color: #fff; font-weight: 650; box-shadow: 0 3px 7px #a9481618; }
  body.theme-apricot .sidebar-bottom { padding: 16px 8px 0; gap: 10px; }
  body.theme-apricot .sidebar-bottom strong { color: var(--ink); font-size: 14px; }
  body.theme-apricot .sidebar-bottom small { color: var(--muted); font-size: 12px; }
  body.theme-apricot .avatar { width: 35px; height: 35px; background: #fae8d8; color: #a34018; font-size: 14px; font-weight: 600; }
  body.theme-apricot .main-wrap { margin-left: 210px; width: calc(100% - 210px); background: var(--canvas); }
  body.theme-apricot .topbar { min-height: 62px; padding: 13px 28px; border-color: var(--border); background: #fff; color: var(--muted); font-size: 13px; }
  body.theme-apricot .topbar strong { color: #44424a; font-weight: 600; }
  body.theme-apricot .slash { color: #c8bdb2; padding: 0 12px; }
  body.theme-apricot .top-actions { gap: 15px; flex-wrap: wrap; justify-content: flex-end; }
  body.theme-apricot .top-actions .today { color: #85796f; font-size: 12px; }
  body.theme-apricot #main { max-width: 1800px; padding: 26px 28px 12px; }
  body.theme-apricot .page-heading { margin-bottom: 21px; gap: 20px; }
  body.theme-apricot .page-heading .muted { max-width: 980px; }
  body.theme-apricot footer { color: #8b8178; font-size: 12px; padding: 10px 28px 20px; }

  /* Shared controls retain the original action and disabled semantics. */
  body.theme-apricot .primary { background: var(--apricot); color: #fff; border: 1px solid transparent; border-radius: 5px; padding: 9px 16px; font-size: 14px; line-height: 1.5; font-weight: 600; box-shadow: 0 2px 5px #a94a1310; }
  body.theme-apricot .primary:hover { background: var(--apricot-hover); }
  body.theme-apricot .text-button { color: #ad461c; padding: 6px 4px; font-size: 13px; line-height: 1.5; }
  body.theme-apricot .text-button:hover { color: #823511; }
  body.theme-apricot .primary:disabled { box-shadow: none; }
  body.theme-apricot .text-button.employee-delete { color: #be123c; }
  body.theme-apricot .primary.employee-delete-confirm { background: #be123c; }
  body.theme-apricot .primary.employee-delete-confirm:hover { background: #9f1239; }
  body.theme-apricot .review-top-button { background: #fff3e9; border-color: #f4d5c1; color: #b2441b; padding: 6px 10px; font-size: 12px; box-shadow: none; }
  body.theme-apricot .review-top-button:hover { color: #983512; background: #ffe8d7; }
  body.theme-apricot .review-top-button.has-pending { background: #fff0e2; color: #b43b15; border-color: #eeaf86; box-shadow: 0 0 0 2px #fff8f1; }
  body.theme-apricot .toolbar { gap: 12px; margin-bottom: 13px; }
  body.theme-apricot .toolbar .inline-label { gap: 8px; }
  body.theme-apricot .inline-label { color: #716960; font-size: 13px; }
  body.theme-apricot .inline-label :is(input, select) { width: auto; max-width: 100%; min-height: 34px; padding: 6px 10px; font-size: 13px; }
  body.theme-apricot .quick-dates { display: flex; flex-wrap: wrap; gap: 8px; }
  body.theme-apricot .range { color: #82776d; font-size: 12px; }
  body.theme-apricot .toolbar > #refresh-data { padding: 7px 11px; border: 1px solid #e9d6c6; border-radius: 5px; background: #fff; }
  body.theme-apricot .segmented { gap: 2px; background: #f3f0eb; border: 1px solid var(--border); border-radius: 6px; padding: 3px; }
  body.theme-apricot .segmented button { min-width: 38px; padding: 5px 11px; border-radius: 4px; color: #726b64; font-size: 13px; line-height: 1.5; }
  body.theme-apricot .segmented button.selected { background: var(--apricot); color: #fff; box-shadow: 0 1px 3px #b457231a; }
  body.theme-apricot .segmented.small button { min-width: 0; padding: 5px 8px; font-size: 12px; }
  body.theme-apricot .filterbar { gap: 10px; padding: 11px 14px; margin-bottom: 18px; background: #fff; border-color: var(--border); border-radius: 7px; font-size: 13px; }
  body.theme-apricot .filterbar label { flex: 0 1 250px; }
  body.theme-apricot .filterbar select { background: #fcfbf9; padding: 7px 10px; }
  body.theme-apricot :is(input, select, textarea) { border-color: #dedbd5; border-radius: 5px; background: #fff; color: #34343c; font-size: 14px; padding: 9px 11px; }
  body.theme-apricot :is(input, textarea)::placeholder { color: #999088; }
  body.theme-apricot :is(input, select, textarea):disabled { color: #807a74; background: #f2f0ec; }
  body.theme-apricot input[type=file]::file-selector-button { margin-right: 10px; padding: 6px 10px; border: 1px solid #ead1bd; border-radius: 4px; background: #fff5eb; color: #98401a; font: inherit; cursor: pointer; }

  /* White metric cards follow the selected three-plus-four hierarchy. */
  body.theme-apricot .metrics { gap: 14px; margin-bottom: 16px; }
  body.theme-apricot .metric { min-height: 117px; padding: 17px 19px 15px; border-color: var(--border); border-radius: 8px; background: #fff; box-shadow: 0 2px 5px #44290a03; }
  body.theme-apricot .metric-label { position: relative; padding-left: 11px; gap: 8px; color: #5c5651; font-size: 13px; }
  body.theme-apricot .metric-label::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 0; width: 3px; border-radius: 3px; background: #df6c35; }
  body.theme-apricot .metric-label span { color: #928477; font-size: 12px; }
  body.theme-apricot .metric strong { color: #2f3038; margin: 10px 0 5px; font-size: clamp(23px, 2.2vw, 33px); font-weight: 700; letter-spacing: -.035em; line-height: 1.3; }
  body.theme-apricot .metric small { color: #857b72; font-size: 12px; }
  body.theme-apricot .metric.featured { color: var(--ink); border-color: #efcfb7; background: #fffdfa; box-shadow: 0 2px 6px #b4550f06; }
  body.theme-apricot .metric.featured .metric-label { color: #63544a; }
  body.theme-apricot .metric.featured :is(small, .metric-label span) { color: #8d7565; }
  body.theme-apricot .metric.featured strong { color: var(--apricot); }
  body.theme-apricot .overview-primary-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.theme-apricot .overview-primary-metrics .metric { min-height: 126px; }
  body.theme-apricot .overview-primary-metrics .metric strong { color: var(--apricot); font-size: clamp(26px, 2.5vw, 37px); }
  body.theme-apricot .overview-secondary-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.theme-apricot .overview-secondary-metrics .metric { min-height: 107px; padding-top: 14px; }
  body.theme-apricot .overview-secondary-metrics .metric strong { font-size: clamp(22px, 1.9vw, 29px); }
  body.theme-apricot .overview-workspace { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  body.theme-apricot .overview-workspace > .panel { min-width: 0; }
  body.theme-apricot .overview-workspace .rank-desktop { max-height: 395px; overflow: auto; }
  body.theme-apricot .overview-workspace .rank-desktop thead { position: sticky; top: 0; z-index: 1; }
  body.theme-apricot .nav-icon { display: inline-flex; align-items: center; justify-content: center; }
  body.theme-apricot .nav-icon svg { display: block; }

  /* Panels and tables: visible headings, dense rows, no hidden columns. */
  body.theme-apricot .panel { margin-bottom: 18px; background: #fff; border-color: var(--border); border-radius: 8px; box-shadow: 0 2px 7px #3c2c1803; }
  body.theme-apricot .panel-heading { padding: 17px 19px 13px; gap: 12px; }
  body.theme-apricot .panel-heading h2 { position: relative; padding-left: 11px; margin-bottom: 4px; }
  body.theme-apricot .panel-heading h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: #dc6933; }
  body.theme-apricot .panel-heading p { font-size: 12px; color: var(--muted); line-height: 1.7; }
  body.theme-apricot .badge { padding: 4px 8px; border-radius: 4px; background: #f8f1e8; color: #8a633e; font-size: 12px; }
  body.theme-apricot .table-wrap { scrollbar-color: #d2c4b6 #faf8f4; }
  body.theme-apricot table { color: #3f4048; font-size: 14px; }
  body.theme-apricot th { padding: 10px 16px; background: #f6f5f3; border-bottom-color: #e9e4de; color: #6c6762; font-size: 12px; font-weight: 600; line-height: 1.6; }
  body.theme-apricot td { padding: 11px 16px; border-bottom-color: #efebe5; line-height: 1.6; }
  body.theme-apricot tbody tr:hover { background: #fffaf5; }
  body.theme-apricot .numeric { font-variant-numeric: tabular-nums; }
  body.theme-apricot .profit { color: #bd491c; }
  body.theme-apricot .cell-sub { margin-top: 3px; color: #8c8177; font-size: 12px; line-height: 1.6; }
  body.theme-apricot .note-cell { max-width: 280px; }
  body.theme-apricot .empty { color: #8a7d71; font-size: 14px; }
  body.theme-apricot .panel-note { margin: 13px 19px; color: #86796c; font-size: 12px; }
  body.theme-apricot .calculation-note { color: #897d70; font-size: 12px; line-height: 1.8; margin: 14px 0; }
  body.theme-apricot .my-row { background: #fff2e7 !important; }
  body.theme-apricot .rank-tabs { padding: 0 19px; gap: 22px; border-color: var(--border); }
  body.theme-apricot .rank-tabs button { padding: 8px 0 11px; color: #7d7167; font-size: 13px; }
  body.theme-apricot .rank-tabs button.selected { color: var(--apricot); border-bottom-color: var(--apricot); }
  body.theme-apricot .sort-label { gap: 7px; color: #83786e; font-size: 12px; }
  body.theme-apricot .sort-label select { width: 112px; padding: 5px 8px; font-size: 13px; }
  body.theme-apricot .ranking-v2 th[aria-sort=descending] { color: var(--apricot); }
  body.theme-apricot .ranking-v2 .rank-me { background: #fce0ca; color: #a1441d; }
  body.theme-apricot .ranking-v2 .rank-mobile-card { border-color: var(--border); border-radius: 7px; }
  body.theme-apricot .ranking-v2 :is(dt, .rank-card-gap) { color: #80756b; }
  body.theme-apricot .ranking-v2 .rank-card-gap { border-color: var(--border); }
  body.theme-apricot .overview-workspace .ranking-v2 :is(th, td) { padding-left: 11px; padding-right: 11px; }
  body.theme-apricot .overview-workspace .ranking-v2 .rank-tabs { gap: 14px; }

  /* Chart series keep their separate metric colors. */
  body.theme-apricot .chart text { fill: #887c70; }
  body.theme-apricot .gridline { stroke: #eee9e2; stroke-dasharray: 3 4; }
  body.theme-apricot .chart-data { color: #867667; border-color: #f0e9e1; padding: 11px 19px; font-size: 12px; }
  body.theme-apricot .trend-v2 .trend-legend { color: #796e64; gap: 14px; padding: 0 19px 2px; }
  body.theme-apricot .trend-v2 .trend-chart { margin-top: 3px; }
  body.theme-apricot .trend-v2 .chart-tooltip { background: #43382f; border-color: #7c655140; border-radius: 6px; box-shadow: 0 5px 15px #3c2e211c; }
  body.theme-apricot .trend-v2 svg text { fill: #7b726a; }
  body.theme-apricot .trend-v2 svg .point-label { fill: #443c36; }
  body.theme-apricot .trend-v2 .trend-hint { color: #8b7e72; font-size: 12px; margin: 8px 19px 14px; }
  body.theme-apricot .trend-v2 .trend-svg:focus-visible { outline-color: #db895b; }
  body.theme-apricot .trend-readout { background: #fff9f3; border-color: #efdecd; border-radius: 7px; }
  body.theme-apricot .trend-readout strong { color: #4a3f36; }
  body.theme-apricot .cost-summary { padding: 8px 22px 24px; gap: 28px; }
  body.theme-apricot .cost-pie { box-shadow: 0 3px 12px #44322010, 0 0 0 1px #ede5db; }
  body.theme-apricot .cost-legend { min-width: 260px; gap: 8px; }
  body.theme-apricot .cost-legend > div { background: #faf8f5; border-radius: 5px; }
  body.theme-apricot .cost-legend > div:hover { background: #fff1e5; }
  body.theme-apricot .cost-legend :is(span, strong) { color: #564b40; font-size: 13px; }
  body.theme-apricot .expense-reconcile { border-color: #e9d9c9; }
  body.theme-apricot .expense-reconcile .panel-heading { background: #fffaf5; }
  @media (min-width: 1281px) {
    body.theme-apricot #main[data-page=costs] { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0 18px; align-items: start; }
    body.theme-apricot #main[data-page=costs] > :is(.page-heading, .toolbar, .panel:last-of-type) { grid-column: 1 / -1; }
    body.theme-apricot #main[data-page=costs] .cost-summary { flex-direction: column; align-items: stretch; }
    body.theme-apricot #main[data-page=costs] .cost-pie { align-self: center; }
  }

  /* Forms, account dialogs, approval, and sound settings share one surface. */
  body.theme-apricot .form-panel { padding: 22px; }
  body.theme-apricot .form-section-title { color: #484038; border-color: var(--border); margin-bottom: 18px; padding-bottom: 12px; font-size: 14px; }
  body.theme-apricot .form-grid { gap: 16px 20px; margin-bottom: 22px; }
  body.theme-apricot form label { color: #665b51; font-size: 13px; }
  body.theme-apricot form :is(input, select, textarea) { margin-top: 6px; }
  body.theme-apricot .form-hint { background: #faf6ef; color: #81705f; padding: 12px 14px; font-size: 13px; line-height: 1.75; }
  body.theme-apricot .form-actions { gap: 14px; padding-top: 16px; border-color: var(--border); }
  body.theme-apricot .scope-fieldset { border-color: #e5dcd2; border-radius: 6px; padding: 12px 16px; }
  body.theme-apricot .scope-fieldset legend { color: #89705b; font-size: 13px; }
  body.theme-apricot .device-fields label { line-height: 1.7; }
  body.theme-apricot .scope-fieldset input[type=checkbox] { margin-top: 0; }
  body.theme-apricot .status { font-size: 12px; border-radius: 4px; padding: 3px 7px; }
  body.theme-apricot .status.approved { color: #087a58; background: #e6f8ef; }
  body.theme-apricot .status.pending { color: #986d18; background: #fff7df; }
  body.theme-apricot .status.rejected { color: #bd3e46; background: #fff0f1; }
  body.theme-apricot .status.cancelled { color: #6c6b72; background: #f0f0f3; }
  body.theme-apricot .leave-action { padding: 6px 11px; margin-right: 8px; }
  body.theme-apricot .pending-row { border-top: 1px solid #f1ebe3; padding: 13px 19px; font-size: 13px; }
  body.theme-apricot dialog { border-color: #e6d8cb; border-radius: 10px; padding: 25px; color: var(--ink); background: #fff; box-shadow: 0 24px 80px #3a2b2329; }
  body.theme-apricot dialog::backdrop { background: #30261f66; backdrop-filter: blur(2px); }
  body.theme-apricot .dialog-heading { border-bottom: 1px solid #efe8df; padding-bottom: 14px; margin-bottom: 18px; }
  body.theme-apricot .dialog-heading h2 { margin-bottom: 0; font-size: 18px; }
  body.theme-apricot .dialog-heading .text-button { width: 30px; height: 30px; border-radius: 5px; background: #faf6f1; color: #796757; }
  body.theme-apricot .detail-grid { gap: 17px; padding: 17px; background: #faf7f2; border: 1px solid #ede3d8; border-radius: 7px; }
  body.theme-apricot .detail-grid dt { color: #8b7866; font-size: 12px; }
  body.theme-apricot .detail-grid dd { color: #413b36; font-size: 14px; overflow-wrap: anywhere; }
  body.theme-apricot .registration-sound-panel { background: #fff8f1; border-color: #ecd6c0; border-radius: 8px; padding: 17px 19px; color: #654630; }
  body.theme-apricot .registration-sound-heading h3 { color: #704d34; font-size: 15px; }
  body.theme-apricot .registration-sound-heading p { color: #93735b; font-size: 13px; }
  body.theme-apricot .registration-sound-options { gap: 18px; margin: 15px 0; }
  body.theme-apricot .registration-sound-options label { color: #78583f; font-size: 13px; }
  body.theme-apricot .registration-sound-options input[type=range] { accent-color: var(--apricot); }
  body.theme-apricot :is(.registration-sound-options output, #registration-sound-filename) { color: #a04b1e; }
  body.theme-apricot #registration-sound-status { color: #755337; font-size: 13px; }
  body.theme-apricot .registration-sound-help { color: #927760; font-size: 12px; }
  body.theme-apricot .registration-list-tools { gap: 12px; }
  body.theme-apricot #toast { border-radius: 7px; background: #4b3b2e; box-shadow: 0 8px 24px #3a261f24; font-size: 14px; }

  /* Calendar preserves weekend, holiday, approved, and pending backgrounds. */
  body.theme-apricot .schedule-panel { padding: 20px; overflow-x: auto; }
  body.theme-apricot .schedule-head { gap: 24px; margin-bottom: 16px; }
  body.theme-apricot .schedule-head h2 { color: #4b4037; font-size: 17px; }
  body.theme-apricot .schedule-summary { padding: 14px 16px; margin-bottom: 18px; border-color: #ecded0; border-radius: 7px; background: #fffaf5; box-shadow: none; }
  body.theme-apricot .schedule-summary-title { color: #4f4237; font-size: 14px; }
  body.theme-apricot .schedule-summary-title span { color: #897a6b; font-size: 12px; }
  body.theme-apricot .schedule-summary-stats { gap: 22px; }
  body.theme-apricot .schedule-summary-stats b { color: #877463; font-size: 12px; }
  body.theme-apricot .schedule-summary-stats strong { color: #4d3e32; font-size: 18px; }
  body.theme-apricot .schedule-summary-stats span:first-child strong { color: var(--apricot); }
  body.theme-apricot .schedule-week { padding: 10px 0; margin-bottom: 8px; background: #f7f5f1; border-radius: 5px; color: #786b5f; font-size: 13px; font-weight: 600; }
  body.theme-apricot :is(.schedule-week, .schedule-grid) { gap: 8px; }
  body.theme-apricot .schedule-cell { min-height: 177px; padding: 11px; border-radius: 7px; box-shadow: none; }
  body.theme-apricot .schedule-cell:not(.weekend-cell):not(.holiday-cell):not(.approved-leave-cell):not(.pending-leave-cell) { background: #fff; border-color: #e6e0d7; }
  body.theme-apricot .schedule-cell:hover { transform: none; box-shadow: 0 3px 8px #6b442413; }
  body.theme-apricot .schedule-cell strong { color: #41404a; font-size: 18px; }
  body.theme-apricot .schedule-card-weekday { display: none; }
  body.theme-apricot .schedule-date-line { gap: 6px; flex-wrap: wrap; }
  body.theme-apricot .schedule-relative { font-size: 12px; padding: 3px 6px; }
  body.theme-apricot .schedule-relative.today { display: inline-flex; background: var(--apricot); color: #fff; }
  body.theme-apricot .today-cell { box-shadow: 0 0 0 2px #f1b58e; }
  body.theme-apricot .schedule-cell.today-cell:hover { box-shadow: 0 0 0 2px #f1b58e, 0 3px 8px #6b442413; }
  body.theme-apricot .schedule-daily { gap: 4px; padding: 8px; margin-top: 10px; border-radius: 5px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
  body.theme-apricot .schedule-cell:not(.weekend-cell):not(.holiday-cell):not(.approved-leave-cell):not(.pending-leave-cell) .schedule-daily { background: #f7f6f3; }
  body.theme-apricot .schedule-item { padding: 7px 8px; border-radius: 5px; font-size: 13px; }
  body.theme-apricot .schedule-item span { font-size: 12px; }
  body.theme-apricot .schedule-work { margin-top: 10px; font-size: 13px; }
  body.theme-apricot .schedule-legend { gap: 16px; font-size: 13px; font-weight: 500; }
  body.theme-apricot .schedule-settings { padding: 0 20px 20px; }
  body.theme-apricot .schedule-settings > .panel-heading { padding-left: 0; padding-right: 0; }
  body.theme-apricot .rest-day-row { border-color: #eae1d5; background: #fffcf8; border-radius: 6px; font-size: 13px; }
  body.theme-apricot .rest-day-row small { color: #8f7b66; }

  /* Seat tools change theme; actual floor images, coordinates, and status
     fills remain intact. Employment borders have one explicit color legend. */
  body.theme-apricot .floorplan-panel { background: #fff; border-color: var(--border); }
  body.theme-apricot .seat-panel .seat-controls { background: #fffcf8; border-bottom: 1px solid #eee2d5; color: #6e5843; padding: 17px 19px; gap: 20px; }
  body.theme-apricot .seat-company-title { color: #4c3c2e; font-size: 15px; }
  body.theme-apricot .seat-company-sub { color: #99816b; font-size: 12px; }
  body.theme-apricot .seat-readonly-note { color: #93765e; font-size: 13px; }
  body.theme-apricot .seat-tools { gap: 16px; font-size: 13px; }
  body.theme-apricot .seat-tools output { color: #8f512c; }
  body.theme-apricot .seat-tools :is(input[type=range], .seat-edit-toggle input) { accent-color: var(--apricot); }
  body.theme-apricot .floorplan-tabs { padding: 16px 19px 0; background: #fff; gap: 8px; }
  body.theme-apricot .floorplan-tabs button { background: #fff; border-color: #e5d7c9; color: #86684e; border-radius: 5px; padding: 8px 14px; font-size: 13px; }
  body.theme-apricot .floorplan-tabs button:hover { color: #b04a1d; border-color: #ddad87; }
  body.theme-apricot .floorplan-tabs button.active { color: #fff; background: var(--apricot); border-color: var(--apricot); box-shadow: 0 2px 5px #a64b1820; }
  body.theme-apricot .floorplan-note { background: #fff; padding: 13px 19px; color: #8c745e; font-size: 13px; line-height: 1.75; }
  body.theme-apricot .floorplan-viewport { background: #f6f3ee; padding: 14px 18px 18px; }
  body.theme-apricot .floorplan-stage { border-color: #e7dcd0; border-radius: 7px; box-shadow: 0 4px 16px #78542e10; }
  body.theme-apricot .floorplan-legend { padding: 14px 19px 17px; color: #7f6a57; font-size: 13px; background: #fff; }
  body.theme-apricot .floorplan-fallback { border-color: #dcc9b6; color: #8b735b; }
  body.theme-apricot .employment-badge { font-size: 12px; border-radius: 4px; padding: 3px 7px; }
  body.theme-apricot .employment-badge.employment-intern { color: #1d62b4; background: #e4f0ff; }
  body.theme-apricot .employment-badge.employment-partner { color: #087a76; background: #ddf6f1; }
  body.theme-apricot .employment-badge.employment-coach { color: #a4540c; background: #fff0d5; }
  body.theme-apricot :is(.floorplan-legend, .seat-legend) i.employment-intern { background: #348ee8; }
  body.theme-apricot :is(.floorplan-legend, .seat-legend) i.employment-partner { background: #14aaa0; }
  body.theme-apricot :is(.floorplan-legend, .seat-legend) i.employment-coach { background: #f4a02c; }
  body.theme-apricot :is(.floorplan-stage .floorplan-marker, .seat-canvas .seat).employment-intern { border-color: #348ee8 !important; }
  body.theme-apricot :is(.floorplan-stage .floorplan-marker, .seat-canvas .seat).employment-partner { border-color: #14aaa0 !important; }
  body.theme-apricot :is(.floorplan-stage .floorplan-marker, .seat-canvas .seat).employment-coach { border-color: #f4a02c !important; }

  /* Login is the same warm office identity without changing its form. */
  body.theme-apricot .login-page { background: #fffdf9; grid-template-columns: 1.05fr 1fr; }
  body.theme-apricot .login-story { background: linear-gradient(145deg, #f3e6d8 0%, #fbf1e6 58%, #f0dbc6 100%); color: #573b29; padding: 45px 11%; }
  body.theme-apricot .login-story .brand { color: #5b3823; padding: 0; }
  body.theme-apricot .login-story .eyebrow { color: #b86a3d; }
  body.theme-apricot .login-story h1 { color: #63442f; font-size: clamp(30px, 3vw, 46px); letter-spacing: -.025em; line-height: 1.55; }
  body.theme-apricot .login-story p { color: #a17d5f; }
  body.theme-apricot .login-story .story-foot { color: #a38165; font-size: 13px; }
  body.theme-apricot .login-bars { gap: 15px; transform: none; }
  body.theme-apricot .login-bars i { background: #df8a54; border-radius: 5px 5px 0 0; }
  body.theme-apricot .login-bars i:nth-child(6) { background: #d1723c; }
  body.theme-apricot .login-bars i:nth-child(7) { background: #c05a2a; }
  body.theme-apricot .login-box { background: #fffdf9; }
  body.theme-apricot .login-form { max-width: 385px; }
  body.theme-apricot .login-form h2 { color: #46372e; font-size: 30px; }
  body.theme-apricot .pill { background: #faecdf; color: #a5653b; padding: 6px 10px; border-radius: 4px; font-size: 12px; }
  body.theme-apricot .login-form form { margin-top: 28px; }
  body.theme-apricot .login-form label { font-size: 14px; margin-bottom: 19px; }
  body.theme-apricot .login-form input { padding: 12px; }
  body.theme-apricot .login-form .primary { padding: 12px 16px; }
  body.theme-apricot .register-link { margin-top: 16px; }
  body.theme-apricot .login-help { color: #9c8978; font-size: 12px; }
  body.theme-apricot .boot { color: #9a7658; }

  @media (max-width: 1280px) {
    body.theme-apricot .overview-workspace { grid-template-columns: minmax(0, 1fr); }
    body.theme-apricot :is(.schedule-week, .schedule-grid) { min-width: 820px; }
    body.theme-apricot .schedule-summary { flex-wrap: wrap; }
  }
  @media (max-width: 1150px) {
    body.theme-apricot .sidebar { width: 184px; padding: 22px 10px 16px; }
    body.theme-apricot .main-wrap { margin-left: 184px; width: calc(100% - 184px); }
    body.theme-apricot .brand { font-size: 16px; }
    body.theme-apricot .nav-item { padding: 9px 10px; font-size: 13px; }
    body.theme-apricot #main { padding: 23px 20px 12px; }
    body.theme-apricot .topbar { padding: 12px 20px; }
    body.theme-apricot .metric { padding: 15px; }
    body.theme-apricot .overview-primary-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body.theme-apricot .overview-secondary-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    body.theme-apricot .overview-primary-metrics .metric strong { font-size: 26px; }
    body.theme-apricot .overview-secondary-metrics .metric strong { font-size: 23px; }
    body.theme-apricot .cost-summary { flex-wrap: wrap; }
    body.theme-apricot .top-actions { gap: 10px; }
  }
  @media (max-width: 720px) {
    body.theme-apricot .sidebar { position: static; width: 100%; padding: 15px 16px 0; overflow: visible; border-right: 0; border-bottom: 1px solid var(--border); }
    body.theme-apricot .sidebar .brand { padding: 0; font-size: 17px; }
    body.theme-apricot .sidebar nav { gap: 6px; margin-top: 14px; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: #e1cab6 transparent; }
    body.theme-apricot .nav-item { min-height: 35px; padding: 8px 12px; margin: 0; font-size: 13px; }
    body.theme-apricot .main-wrap { width: 100%; margin-left: 0; }
    body.theme-apricot .topbar { padding: 10px 16px; gap: 9px 12px; flex-wrap: wrap; min-height: 53px; font-size: 12px; }
    body.theme-apricot .top-actions { gap: 8px 11px; justify-content: flex-start; }
    body.theme-apricot .top-actions .text-button { font-size: 12px; }
    body.theme-apricot .review-top-button { font-size: 12px; padding: 5px 8px; }
    body.theme-apricot #main { padding: 20px 14px 10px; }
    body.theme-apricot .page-heading { margin-bottom: 17px; gap: 12px; flex-wrap: wrap; }
    body.theme-apricot h1 { font-size: 22px; }
    body.theme-apricot .page-heading .primary { padding: 8px 12px; font-size: 13px; }
    body.theme-apricot .toolbar { gap: 9px; align-items: center; }
    body.theme-apricot .toolbar .inline-label { max-width: 100%; }
    body.theme-apricot .toolbar .inline-label select { max-width: 220px; }
    body.theme-apricot .toolbar > #refresh-data { margin-left: 0; }
    body.theme-apricot .filterbar { padding: 11px; gap: 9px; margin-bottom: 14px; }
    body.theme-apricot .filterbar label { flex: 1 1 125px; min-width: 125px; }
    body.theme-apricot .metrics { gap: 10px; margin-bottom: 12px; }
    body.theme-apricot .overview-primary-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.theme-apricot .overview-primary-metrics .metric:first-child { grid-column: 1 / -1; }
    body.theme-apricot .overview-secondary-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.theme-apricot .metric { min-height: 110px; padding: 14px; }
    body.theme-apricot .overview-primary-metrics .metric { min-height: 117px; }
    body.theme-apricot .overview-secondary-metrics .metric { min-height: 105px; }
    body.theme-apricot .metric strong { font-size: 26px; }
    body.theme-apricot .overview-workspace { gap: 0; }
    body.theme-apricot .panel { margin-bottom: 14px; border-radius: 7px; }
    body.theme-apricot .panel-heading { padding: 15px 14px 11px; flex-wrap: wrap; gap: 10px; }
    body.theme-apricot .panel-heading h2 { font-size: 14px; }
    body.theme-apricot :is(th, td) { padding: 10px 13px; }
    body.theme-apricot .rank-tabs { padding: 0 14px; gap: 16px; }
    body.theme-apricot .sort-label { width: auto; margin-left: auto; }
    body.theme-apricot .ranking-v2 .rank-mobile { padding: 12px; }
    body.theme-apricot .trend-v2 .trend-actions { width: 100%; gap: 8px; }
    body.theme-apricot .trend-v2 .trend-chart { padding-left: 4px; padding-right: 4px; }
    body.theme-apricot .trend-v2 .trend-legend { padding-left: 14px; padding-right: 14px; gap: 9px 12px; font-size: 12px; }
    body.theme-apricot .trend-readout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.theme-apricot .cost-summary { padding: 8px 16px 20px; justify-content: center; gap: 18px; }
    body.theme-apricot .cost-pie { width: 210px; height: 210px; flex-basis: 210px; }
    body.theme-apricot .cost-legend { min-width: 0; width: 100%; flex-basis: 100%; }
    body.theme-apricot .cost-legend > div { grid-template-columns: 12px minmax(70px, 1fr) auto; gap: 8px; }
    body.theme-apricot .form-panel { padding: 17px; }
    body.theme-apricot :is(.form-grid, .form-grid.two) { grid-template-columns: 1fr; gap: 15px; }
    body.theme-apricot .form-actions { flex-wrap: wrap; }
    body.theme-apricot dialog { padding: 18px; width: min(650px, 94vw); max-height: 90dvh; }
    body.theme-apricot .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 14px; }
    body.theme-apricot .registration-sound-panel { padding: 14px; }
    body.theme-apricot .registration-sound-options { align-items: stretch; flex-direction: column; gap: 14px; }
    body.theme-apricot .registration-sound-options label { width: 100%; }
    body.theme-apricot .registration-sound-heading { align-items: start; gap: 10px; }
    body.theme-apricot .registration-reject-form label { min-width: 160px; }
    body.theme-apricot .schedule-panel { padding: 14px; }
    body.theme-apricot .schedule-week { display: none; }
    body.theme-apricot .schedule-grid { min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    body.theme-apricot .schedule-cell.empty-day { display: none; }
    body.theme-apricot .schedule-card-weekday { display: inline; font-size: 12px; color: #76695d; }
    body.theme-apricot .schedule-summary { gap: 12px; padding: 12px; }
    body.theme-apricot .schedule-summary-stats { gap: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    body.theme-apricot .schedule-summary-stats span { min-width: 0; }
    body.theme-apricot .schedule-summary-stats strong { font-size: 17px; }
    body.theme-apricot .schedule-cell { min-height: 177px; padding: 10px; }
    body.theme-apricot .schedule-daily { font-size: 13px; }
    body.theme-apricot .schedule-head { gap: 12px; }
    body.theme-apricot .schedule-head h2 { font-size: 15px; }
    body.theme-apricot .schedule-settings { padding: 0 14px 14px; }
    body.theme-apricot .seat-panel .seat-controls { padding: 15px 14px; gap: 12px; }
    body.theme-apricot .seat-tools { width: 100%; justify-content: flex-start; gap: 12px; }
    body.theme-apricot .floorplan-tabs { padding: 14px 14px 0; }
    body.theme-apricot .floorplan-note { padding: 12px 14px; }
    body.theme-apricot .floorplan-viewport { padding: 10px 8px 12px; }
    body.theme-apricot .floorplan-legend { gap: 10px 15px; padding: 12px 14px; font-size: 12px; }
    body.theme-apricot .login-story { min-height: auto; padding: 24px; }
    body.theme-apricot .login-box { padding: 40px 24px; }
    body.theme-apricot .login-form h2 { font-size: 27px; }
    body.theme-apricot footer { gap: 7px; padding: 10px 14px 20px; font-size: 12px; }
  }
}
