:root {
  color-scheme: light;
  --canvas: #f4f3ed;
  --paper: #fffefa;
  --ink: #1e3128;
  --muted: #536258;
  --line: #e2e5db;
  --pine: #183128;
  --leaf: #29523e;
  --lime: #e9eed8;
  --corn: #f8d65f;
  --rust: #943e27;
  --focus: #1f6b51;
  --radius: 22px;
  --shadow: 0 1px 2px #263b2710, 0 5px 18px #263b2706;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); min-width: 300px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .58; cursor: wait; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px;
}
button, input, select, textarea { min-width: 0; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
svg.icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }
[hidden] { display: none !important; }
.splash { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 13px; color: var(--muted); }
.splash strong { font-size: 26px; color: var(--ink); }
.shell { min-height: 100dvh; display: grid; grid-template-columns: 224px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100dvh; padding: 27px 16px 17px;
  display: flex; flex-direction: column; background: var(--pine); color: #edf3e6; z-index: 4;
}
.brand { display: flex; gap: 12px; align-items: center; margin: 0 8px; }
.brand img { border-radius: 13px; display: block; width: 44px; height: 44px; flex: none; }
.brand strong { display: block; font-size: 22px; font-weight: 790; letter-spacing: -.045em; }
.brand small { display: block; color: #b7cbbd; font-size: 11px; margin-top: 3px; }
.nav-title { color: #a9c0af; margin: 40px 12px 10px; font-size: 10px; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; }
.nav { display: grid; gap: 4px; }
.nav button, .account { display: flex; gap: 11px; align-items: center; width: 100%; text-align: left; border: 0; color: inherit; background: transparent; border-radius: 12px; min-height: 46px; padding: 9px 11px; }
.nav button { color: #d5e3d8; font-size: 14px; font-weight: 620; }
.nav button[aria-current="page"] { color: #ffdf73; background: #ffffff14; }
.nav button:hover, .account:hover { background: #ffffff16; }
.nav button:focus-visible, .account:focus-visible { outline-color: var(--corn); }
.nav button svg { width: 18px; height: 18px; }
.sidebar-foot { margin-top: auto; padding-top: 15px; border-top: 1px solid #ffffff19; }
.account .avatar { width: 36px; height: 36px; border-radius: 11px; background: #e9c755; color: var(--pine); }
.account small { display: block; color: #b7cbbd; margin-top: 2px; font-size: 11px; }
.account > .icon:last-child { margin-left: auto; width: 17px; }
.workspace { width: 100%; max-width: 1480px; padding: 28px clamp(20px, 3vw, 48px) 44px; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 21px; }
.crumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 650; }
.crumb .icon { color: #718374; width: 17px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.top-actions .mobile-settings { display: none; }
.icon-btn { border: 1px solid var(--line); background: var(--paper); border-radius: 13px; width: 44px; height: 44px; display: inline-grid; place-items: center; flex: none; position: relative; }
.icon-btn:hover { background: #e9eee1; }
.unread { position: absolute; top: 6px; right: 6px; min-width: 15px; height: 15px; padding: 0 3px; line-height: 15px; border-radius: 10px; background: #f6d35a; color: #2b3924; font-size: 9px; font-weight: 800; }
.btn { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 9px 15px; text-align: center; font-size: 13px; font-weight: 750; line-height: 1.25; }
.btn .icon { width: 17px; height: 17px; }
.primary { background: var(--pine); color: #fbfdf3; }
.primary:hover { background: #2f5945; }
.secondary { background: #edf0e3; color: #234231; border-color: #e3e9d9; }
.secondary:hover { background: #e2e9d3; }
.ghost { background: var(--paper); border-color: var(--line); }
.ghost:hover { background: #f1f3ea; }
.link-btn { background: transparent; border: 0; padding: 0; display: inline-flex; gap: 6px; align-items: center; color: #2b5c45; font-size: 12px; font-weight: 750; min-height: 30px; }
.link-btn:hover { text-decoration: underline; }
.link-btn .icon { width: 15px; height: 15px; }
.page-title { font-size: clamp(28px, 3vw, 41px); letter-spacing: -.05em; line-height: 1.05; }
.page-intro { margin-bottom: 22px; }
.page-intro p { margin-top: 8px; color: var(--muted); line-height: 1.45; font-size: 14px; }
.banner-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(292px, 1fr); gap: 15px; margin-bottom: 22px; }
.hero { overflow: hidden; border-radius: var(--radius); background: #f3d76d; position: relative; min-height: 187px; padding: 24px; display: flex; align-items: center; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 85% 70%, #e9b84b 0%, transparent 70%); }
.hero img { position: absolute; width: min(54%, 335px); height: 114%; right: -10px; bottom: -9%; object-fit: contain; z-index: -1; }
.hero-content { width: 100%; position: relative; }
.eyebrow { display: flex; align-items: center; gap: 7px; font-size: 10px; line-height: 1.4; letter-spacing: .115em; font-weight: 800; text-transform: uppercase; }
.eyebrow .icon { width: 15px; height: 15px; }
.hero h1 { max-width: 79%; font-size: clamp(27px, 3.55vw, 47px); line-height: 1.02; letter-spacing: -.06em; margin: 7px 0 7px; }
.hero p { max-width: 73%; color: #415039; font-size: 13px; font-weight: 560; line-height: 1.35; }
.clockline { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 370px; gap: 6px; margin-top: 14px; }
.clock-stat { display: grid; justify-items: center; gap: 3px; border: 1px solid #77643234; background: #fff3b7ec; border-radius: 10px; padding: 7px 4px; white-space: nowrap; }
.clock-stat strong { font-size: 30px; line-height: 1.05; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.clock-stat span { font-size: 11px; color: #415039; font-weight: 700; }
.card { background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.weather { padding: 16px 17px 11px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 9px; }
.weather .card-head { margin-bottom: 10px; }
.weather h2 { font-size: 14px; font-weight: 800; }
.weather .link-btn { overflow-wrap: anywhere; max-width: 58%; text-align: right; }
.weather-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; }
.weather-cell { display: grid; justify-items: center; gap: 6px; padding: 8px 2px; background: #f2f4ea; border-radius: 11px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.weather-cell .icon { color: #42674d; width: 23px; height: 23px; }
.weather-cell strong { font-size: 17px; letter-spacing: -.05em; color: var(--ink); }
.weather-cell .weather-hour { font-variant-numeric: tabular-nums; font-size: 16px; }
.weather-value { display: flex; align-items: center; gap: 5px; }
.weather-state { font-size: 10px; line-height: 1; }
.weather small { display: block; font-size: 9px; color: var(--muted); line-height: 1.25; margin-top: 6px; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 15px; align-items: start; }
.column { display: grid; gap: 14px; min-width: 0; }
.panel { padding: 18px; }
.panel h2 { font-size: 19px; line-height: 1.15; letter-spacing: -.035em; }
.section-title { display: flex; align-items: center; gap: 8px; }
.section-title .icon { width: 18px; height: 18px; color: #4e745b; }
.subtle { color: var(--muted); font-size: 12px; line-height: 1.48; }
.panel .card-head + .subtle { margin-top: 6px; }
.badge { padding: 4px 8px; background: #e9eee0; color: #315542; border-radius: 7px; font-size: 10px; font-weight: 780; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.badge.hot { color: #8a391e; background: #f8e7d8; }
.badge.dark { color: #395044; background: #dce9df; }
.badge .icon { width: 13px; height: 13px; }
.tag-edit-line, .task-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; }
.tag-edit-line { margin-top: 5px; gap: 5px 9px; }
.task-label { display: inline-block; min-width: 0; max-width: 100%; border-radius: 7px; padding: 3px 7px; background: #e3ead7; color: #284936; font-size: 11px; font-weight: 690; overflow-wrap: anywhere; }
.row-btn .task-tags { margin-top: 4px; }
.completion-comment { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 7px; }
.completion-comment > strong { font-size: 12px; }
.focus-card { margin-top: 14px; padding: 17px; background: #f0f2e7; border-radius: 15px; border: 1px solid #e7ebdd; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 11px; font-weight: 650; margin-bottom: 8px; }
.task-title { font-size: clamp(20px, 2.5vw, 27px); line-height: 1.13; font-weight: 780; letter-spacing: -.037em; overflow-wrap: anywhere; }
.task-copy { margin-top: 8px; font-size: 14px; line-height: 1.5; color: #3d5044; white-space: pre-wrap; overflow-wrap: anywhere; }
.due-line { display: flex; align-items: center; gap: 7px; margin-top: 11px; color: #3e5444; font-size: 12px; font-weight: 680; }
.due-line.late { color: var(--rust); }
.due-line .icon { width: 16px; height: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.actions .link-btn { margin-left: auto; padding: 0 3px; }
.proposal { margin-top: 13px; background: #fffdf5; padding: 11px 12px; border-radius: 10px; border: 1px solid #e9e5d5; }
.proposal .task-copy { margin-top: 5px; font-size: 13px; }
.empty { display: grid; align-content: center; justify-items: start; min-height: 136px; gap: 7px; }
.empty-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #43624c; background: #e4ebd8; }
.empty h3 { font-size: 17px; letter-spacing: -.025em; }
.overview-tiles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-top: 10px; }
.overview-tiles div { background: #f2f4ec; border-radius: 10px; padding: 8px 9px; }
.overview-tiles strong { display: block; font-size: 22px; letter-spacing: -.06em; }
.overview-tiles span { color: var(--muted); font-size: 10px; line-height: 1.25; display: block; }
.workload-list { margin-top: 9px; display: grid; gap: 1px; }
.member { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 8px 0; }
.member + .member { border-top: 1px solid var(--line); }
.avatar { background: #e3e9d4; color: #2c553d; border-radius: 9px; display: inline-grid; place-items: center; width: 33px; height: 33px; font-size: 13px; font-weight: 800; flex: none; }
.avatar.tone { background: #f4e8ca; color: #6c5323; }
.member strong { display: block; font-size: 13px; }
.member .subtle { font-size: 11px; }
.member .count { font-size: 17px; font-weight: 760; }
.notes textarea { display: block; width: 100%; resize: vertical; min-height: 169px; border: 1px solid #e8e4d6; border-radius: 12px; padding: 11px 12px; background: repeating-linear-gradient(#fbf8eb 0 25px,#f0ead7 25px 26px); background-origin: content-box; line-height: 26px; font-size: 14px; margin-top: 10px; }
.notes-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 6px; }
.note-state { font-size: 10px; color: var(--muted); }
.queue-list { display: grid; gap: 6px; margin-top: 9px; }
.row-btn { display: flex; align-items: center; justify-content: space-between; gap: 7px; background: #f2f4eb; border: 1px solid #e8ecdf; border-radius: 11px; width: 100%; text-align: left; padding: 8px 10px; min-height: 43px; }
.row-btn:hover { background: #e9efdf; }
.row-btn strong { font-size: 13px; overflow-wrap: anywhere; }
.row-btn .subtle { display: block; font-size: 11px; }
.row-btn .icon { width: 15px; }
.tool-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 11px; }
.tool-row input[type=search] { flex: 1 1 200px; }
.tool-row select { flex: 0 1 auto; }
.list-panel { padding: 14px; }
.list-head { display: flex; justify-content: space-between; margin: 2px 1px 9px; color: var(--muted); font-size: 12px; }
.task-list { display: grid; gap: 5px; }
.table-row { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(0,.75fr) minmax(0,.75fr) 18px; }
.table-row > span { min-width: 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; }
.check { display: inline-flex; gap: 7px; align-items: center; min-height: 32px; font-size: 12px; font-weight: 650; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: #2b6248; }
.stats-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.stat-title { display: flex; gap: 8px; align-items: center; font-weight: 770; margin-bottom: 11px; }
.stat-numbers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin-bottom: 11px; }
.stat-numbers div { background: #f0f3e7; padding: 9px; border-radius: 9px; }
.stat-numbers strong { display: block; font-size: 20px; letter-spacing: -.04em; }
.stat-numbers span { color: var(--muted); font-size: 10px; }
meter { width: 100%; height: 12px; accent-color: #60875d; }
meter::-webkit-meter-optimum-value { background: #60875d; }
.legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); }
.helper { margin-top: 13px; padding: 11px 13px; border-radius: 11px; background: #e9eee0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
label.field { display: grid; gap: 5px; font-size: 12px; font-weight: 750; }
input:not([type=checkbox]), select, textarea { width: 100%; min-height: 43px; border: 1px solid #d8dfd3; border-radius: 10px; background: #fffefb; padding: 8px 10px; font-size: 14px; }
textarea { resize: vertical; min-height: 86px; }
select { width: auto; }
.field input, .field select { width: 100%; }
.form { display: grid; gap: 11px; }
.form .actions { margin-top: 2px; }
.field-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.form-error { color: #8c3224; background: #faebe4; border-radius: 8px; padding: 8px 9px; font-size: 12px; line-height: 1.35; }
.dialog-title { font-size: 23px; letter-spacing: -.04em; line-height: 1.15; }
.dialog-head { margin-bottom: 12px; }
.dialog-head .icon-btn { width: 34px; height: 34px; }
dialog { background: var(--paper); color: var(--ink); border: 1px solid #dfe4d9; border-radius: 21px; width: min(calc(100% - 24px), 530px); max-height: min(90dvh, 860px); padding: 17px; box-shadow: 0 20px 70px #172e2544; overflow: auto; }
dialog::backdrop { background: #142d235e; backdrop-filter: blur(2px); }
dialog .task-title { font-size: 21px; }
.dialog-body { display: grid; gap: 10px; }
.dialog-body .task-meta { margin-bottom: 0; }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.history li { background: #f1f3ea; padding: 8px 10px; border-radius: 9px; font-size: 13px; overflow-wrap: anywhere; }
.history .subtle { display: block; }
.event { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.event:last-child { border-bottom: 0; }
.event.new { font-weight: 760; }
.settings-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); padding: 9px 0; font-size: 13px; }
.settings-row strong { display: block; margin-bottom: 2px; }
.city-list { display: grid; gap: 5px; }
.city-form { display: flex; gap: 6px; }
.toasts { position: fixed; right: 13px; bottom: 13px; display: grid; gap: 6px; z-index: 10; width: min(360px,calc(100% - 26px)); pointer-events: none; }
.toast { background: #203e31; color: #fffef2; border-radius: 11px; padding: 10px 12px; font-size: 13px; line-height: 1.4; box-shadow: 0 4px 18px #25372a38; }
.toast.error { background: #843f2e; }
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); }
.auth-visual { background: var(--pine); display: grid; align-content: center; justify-items: center; color: #fbf7e8; padding: 25px; gap: 10px; text-align: center; }
.auth-visual img { width: min(73%, 400px); }
.auth-visual h1 { font-size: clamp(38px,5vw,66px); letter-spacing: -.065em; }
.auth-visual p { font-size: 14px; color: #d4e0d4; }
.auth-main { min-height: 100dvh; display: grid; align-content: center; justify-items: center; padding: 18px; }
.auth-card { padding: clamp(18px,4vw,32px); width: min(100%, 405px); }
.auth-card .brand { margin: 0 0 14px; }
.auth-card .brand small { color: var(--muted); }
.auth-card h1 { font-size: 24px; letter-spacing: -.04em; }
.auth-card .subtle { margin: 5px 0 14px; }
.auth-card .btn { width: 100%; }
@media (min-width: 761px) and (max-width: 1040px) {
  .shell { grid-template-columns: 180px minmax(0,1fr); }
  .sidebar { padding-inline: 11px; }
  .brand { margin-inline: 3px; }
  .brand strong { font-size: 20px; }
  .brand img { width: 39px; height: 39px; }
  .banner-grid, .work-grid { grid-template-columns: minmax(0,1.35fr) minmax(218px,1fr); gap: 11px; }
  .workspace { padding-inline: 16px; }
  .hero { padding: 16px; }
  .hero img { right: -20px; }
  .panel { padding: 13px; }
  .weather { padding: 13px 9px; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: fixed; inset: auto 0 0; height: auto; padding: 4px 4px max(4px, env(safe-area-inset-bottom)); border-top: 1px solid #ffffff18; }
  .sidebar .brand, .sidebar-foot, .nav-title { display: none; }
  .nav { display: flex; justify-content: space-around; gap: 2px; }
  .nav button { display: grid; flex: 1; justify-items: center; text-align: center; padding: 5px 2px; gap: 3px; min-height: 45px; font-size: 10px; }
  .nav button .icon { width: 17px; height: 17px; }
  .workspace { padding: 12px 12px calc(70px + env(safe-area-inset-bottom)); }
  .topbar { margin-bottom: 10px; }
  .crumb { display: none; }
  .topbar > .mobile-brand { display: flex; }
  .mobile-brand { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; letter-spacing: -.03em; }
  .mobile-brand img { width: 28px; height: 28px; border-radius: 8px; }
  .top-actions { gap: 4px; }
  .top-actions .mobile-settings { display: inline-grid; }
  .top-actions .icon-btn { width: 40px; height: 41px; }
  .top-actions .btn { min-height: 41px; padding-inline: 8px; font-size: 11px; }
  .top-actions .btn .icon { width: 15px; }
  .banner-grid, .work-grid { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .banner-grid { margin-bottom: 10px; }
  .column { gap: 9px; }
  .hero { min-height: 117px; border-radius: 16px; padding: 11px 13px; }
  .hero img { width: 48%; right: -9px; height: 131%; bottom: -15%; }
  .hero h1 { font-size: clamp(24px,7vw,34px); margin-block: 4px; }
  .hero p { font-size: 10px; }
  .eyebrow { font-size: 8px; }
  .eyebrow .icon { width: 12px; }
  .clockline { margin-top: 8px; gap: 5px; }
  .clock-stat { padding: 5px 3px; gap: 1px; }
  .clock-stat strong { font-size: 27px; }
  .clock-stat span { font-size: 9px; }
  .card { border-radius: 15px; }
  .weather { padding: 6px 8px; }
  .weather .card-head { margin-bottom: 3px; }
  .weather h2 { font-size: 12px; }
  .weather .link-btn { min-height: 24px; font-size: 10px; }
  .weather-grid { gap: 3px; }
  .weather-cell { padding: 4px 3px; gap: 2px; border-radius: 7px; font-size: 9px; }
  .weather-cell .icon { width: 14px; height: 14px; }
  .weather-cell strong, .weather-cell .weather-hour { font-size: 13px; }
  .weather-state { font-size: 9px; }
  .weather small { margin-top: 4px; font-size: 8px; }
  .panel { padding: 11px; }
  .panel h2 { font-size: 17px; }
  .focus-card { padding: 10px; margin-top: 8px; border-radius: 10px; }
  .empty { min-height: 93px; }
  .actions { gap: 5px; margin-top: 8px; }
  .actions .btn { min-height: 43px; padding-inline: 9px; font-size: 12px; }
  .actions .link-btn { font-size: 11px; }
  .table-row { grid-template-columns: minmax(0,1.3fr) minmax(0,.8fr) 15px; }
  .table-row .date-cell { grid-column: 2; grid-row: 2; font-size: 10px; margin-top: -5px; }
  .table-row > .icon { grid-column: 3; grid-row: 1; }
  .stats-grid { grid-template-columns: 1fr; gap: 8px; }
  .toasts { bottom: calc(55px + env(safe-area-inset-bottom)); }
  input:not([type=checkbox]), select, textarea { font-size: 16px; }
  .auth { display: block; }
  .auth-visual { padding: 12px; gap: 0; }
  .auth-visual img { width: 100px; }
  .auth-visual h1 { font-size: 31px; }
  .auth-visual p { font-size: 11px; margin-top: 3px; }
  .auth-main { padding: 12px; }
  .auth-card { padding: 14px; }
}
.topbar > .mobile-brand { display: none; }
@media (max-width: 760px) { .topbar > .mobile-brand { display: flex; } }

/* Department workspace */
.department-board { margin-top: 17px; }
.department-board > .subtle { margin-top: 6px; }
.dept-empty { padding: 13px 0 4px; }
.dept-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.dept-record { display: grid; align-content: start; gap: 7px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); min-width: 0; }
.dept-record h3 { font-size: 16px; letter-spacing: -.018em; line-height: 1.25; overflow-wrap: anywhere; }
.dept-copy { font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.dept-period, .dept-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 13px; color: var(--muted); font-size: 12px; }
.dept-period svg, .dept-meta svg { width: 15px; height: 15px; }
.dept-person { display: flex; align-items: center; gap: 9px; min-width: 0; }
.dept-person > div { min-width: 0; }
.dept-filename { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.dept-row-actions, .board-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.dept-row-actions .btn { min-height: 34px; font-size: 11px; padding: 5px 9px; text-decoration: none; }
.board-remote { background: #e4ecfa; color: #234477; }
.board-leave { background: #eee4f8; color: #674184; }
.board-vacation { background: #e1f0e3; color: #305841; }
.board-notice { background: #f7ebc6; color: #74531a; }
.lunch-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; border: 1px solid #dfc665; padding: 8px 13px; border-radius: 11px; background: #f8e39a; color: #392d16; font-size: 14px; }
.lunch-banner > span { margin-left: auto; font-size: 11px; }
#lunch-left { font-size: 21px; font-variant-numeric: tabular-nums; }
.hero-role { display: flex; align-items: center; gap: 7px; }
.hero-role .avatar { width: 23px; height: 23px; border-radius: 7px; font-size: 11px; }
.clockline { grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,.72fr) minmax(0,1.3fr); max-width: 500px; }
.clock-stat { align-content: center; min-height: 68px; }
.clock-shift strong { font-size: clamp(15px, 1.8vw, 24px); }
.clock-shift span { white-space: normal; text-align: center; }

:root[data-theme="rose"] {
  --canvas:#f4f2f5; --paper:#fbfafc; --ink:#382f3d; --muted:#605867; --line:#e4dee7;
  --pine:#54495f; --leaf:#65566f; --focus:#756283; --corn:#e5d9eb; --shadow:0 5px 20px #3827410c;
}
[data-theme="rose"] .sidebar, [data-theme="rose"] .nav button { color:#f3eef5; }
[data-theme="rose"] .sidebar small, [data-theme="rose"] .nav-title { color:#ddd2e1; }
[data-theme="rose"] .nav button[aria-current="page"] { color:#eee2f4; background:#ffffff23; }
[data-theme="rose"] .account .avatar, [data-theme="rose"] .avatar { background:#e8deed; color:#52405e; }
[data-theme="rose"] .hero { background:#e9e3ec; border-color:var(--line); }
[data-theme="rose"] .hero::before { background:radial-gradient(ellipse at 88% 55%, #ddd4e5 0%, transparent 75%); }
[data-theme="rose"] .clock-stat { background:#f9f6faed; border-color:#d9d0df; }
[data-theme="rose"] .clock-stat span, [data-theme="rose"] .hero p { color:var(--muted); }
[data-theme="rose"] .secondary, [data-theme="rose"] .weather-cell, [data-theme="rose"] .focus-card,
[data-theme="rose"] .row-btn, [data-theme="rose"] .overview-tiles > div, [data-theme="rose"] .stat-cell,
[data-theme="rose"] .proposal, [data-theme="rose"] .history li { background:#f3eff5; color:var(--ink); border-color:var(--line); }
[data-theme="rose"] .link-btn, [data-theme="rose"] .weather-cell .icon, [data-theme="rose"] .section-title .icon { color:#65556f; }
[data-theme="rose"] .task-copy, [data-theme="rose"] .due-line:not(.late) { color:var(--muted); }
[data-theme="rose"] .primary:hover { background:#65566f; }
[data-theme="rose"] .ghost:hover, [data-theme="rose"] .icon-btn:hover { background:#f2edf4; }
[data-theme="rose"] .notes textarea { background:#f8f5f9; border-color:var(--line); }

:root[data-theme="navy"] {
  color-scheme: dark;
  --canvas:#172233; --paper:#212f46; --ink:#edf2fc; --muted:#becbe0; --line:#3b4c65;
  --pine:#152237; --leaf:#405674; --focus:#9dbdff; --corn:#a9c6fd; --rust:#ffb7a3; --shadow:0 8px 22px #0003;
}
[data-theme="navy"] .sidebar, [data-theme="navy"] .nav button { color:#d9e5f7; }
[data-theme="navy"] .sidebar small, [data-theme="navy"] .nav-title { color:#a8b8d3; }
[data-theme="navy"] .nav button[aria-current="page"] { color:#c4d9ff; background:#ffffff17; }
[data-theme="navy"] .hero { background:#263751; border-color:var(--line); }
[data-theme="navy"] .hero::before { background:radial-gradient(ellipse at 88% 55%, #344b6d 0%, transparent 75%); }
[data-theme="navy"] .hero img { opacity:.72; }
[data-theme="navy"] .hero p, [data-theme="navy"] .clock-stat span { color:var(--muted); }
[data-theme="navy"] .clock-stat { background:#21324cee; border-color:#647a98; }
[data-theme="navy"] .primary { background:#416298; color:#fff; }
[data-theme="navy"] .primary:hover { background:#4d70a8; }
[data-theme="navy"] .secondary, [data-theme="navy"] .weather-cell, [data-theme="navy"] .focus-card,
[data-theme="navy"] .row-btn, [data-theme="navy"] .overview-tiles > div, [data-theme="navy"] .stat-cell,
[data-theme="navy"] .proposal, [data-theme="navy"] .history li, [data-theme="navy"] .settings-row { background:#293a52; color:var(--ink); border-color:var(--line); }
[data-theme="navy"] .link-btn, [data-theme="navy"] .section-title .icon, [data-theme="navy"] .weather-cell .icon,
[data-theme="navy"] .crumb .icon { color:#b8d0fb; }
[data-theme="navy"] .task-copy, [data-theme="navy"] .due-line:not(.late) { color:var(--muted); }
[data-theme="navy"] .ghost:hover, [data-theme="navy"] .icon-btn:hover, [data-theme="navy"] .row-btn:hover { background:#364b67; }
[data-theme="navy"] .notes textarea, [data-theme="navy"] input:not([type="checkbox"]),
[data-theme="navy"] textarea, [data-theme="navy"] select { background:#23324a; border-color:var(--line); color:var(--ink); }
[data-theme="navy"] .avatar, [data-theme="navy"] .badge, [data-theme="navy"] .task-label { background:#3a5276; color:#ebf3ff; }
[data-theme="navy"] .badge.hot { background:#623f35; color:#ffe1d4; }
[data-theme="navy"] .form-error { background:#573532; color:#ffd7ce; }
[data-theme="navy"] .lunch-banner { background:#614a24; border-color:#96743e; color:#fff0c9; }
[data-theme="navy"] .event, [data-theme="navy"] .setting { border-color:var(--line); }

@media (max-width: 760px) {
  .nav { overflow-x:auto; justify-content:flex-start; }
  .nav button { flex:1 0 51px; font-size:9px; }
  .department-board { margin-top: 9px; }
  .dept-grid { grid-template-columns:1fr; gap:7px; }
  .dept-record { padding:10px; }
  .clockline { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .clock-stat strong { font-size:25px; }
  .clock-shift strong { font-size:15px; }
}
@media (max-width: 370px) {
  .clockline { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

.home-grid { display: grid; grid-template-columns: minmax(0,1fr); grid-template-areas: "banner" "work" "callbacks" "board"; gap: 16px; }
.home-grid > .banner-grid { grid-area: banner; margin-bottom: 0; }
.home-grid > .work-grid { grid-area: work; }
.home-grid > #callbacks-panel { grid-area: callbacks; min-width: 0; }
.home-grid > .department-board { grid-area: board; margin-top: 0; }
.pad-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: 8px; }
.notes-foot { flex-wrap: wrap; }
.callback-pad textarea { min-height: 104px; margin-top: 7px; }
.callback-pad .note-state { min-height: 13px; }
.callback-pad .card-head { flex-wrap: wrap; gap: 4px; }
#time { letter-spacing: -.065em; }
@media (min-width: 1100px) {
  .home-grid { grid-template-columns: minmax(0,4fr) minmax(184px,1fr); grid-template-areas: "banner callbacks" "work work" "board board"; }
  .home-grid > .banner-grid { grid-template-columns: minmax(0,1.55fr) minmax(220px,1fr); }
  .callback-pad { height: 100%; display: flex; flex-direction: column; }
  .callback-pad textarea { flex: 1; }
}
@media (max-width: 760px) {
  .home-grid { gap: 9px; }
}

.focus-queue { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 12px; }
