:root {
  color-scheme: light;
  --bg: #f5f7f6;
  --surface: #fff;
  --ink: #172521;
  --muted: #5b6863;
  --soft: #74817a;
  --line: #e0e7e3;
  --strong-line: #d1ddd6;
  --brand: #196a57;
  --brand-hover: #145845;
  --mint: #e4f2ec;
  --amber: #fff1da;
  --rose: #fbe9e5;
  --blue: #e8eff9;
  --lilac: #efe8fa;
  --shadow: 0 10px 30px #182c2212;
  font: 14px/1.5 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
a { color: inherit; text-decoration: none; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #277b65; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
small { font-size: 12px; }
button { background: none; border: 0; }
.icon { display: inline-block; width: 18px; height: 18px; flex: 0 0 auto; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.boot { margin: 12vh auto; text-align: center; color: var(--brand); font-size: 20px; font-weight: 700; }
.layout { display: grid; min-height: 100dvh; grid-template-columns: 221px minmax(0,1fr); }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); position: sticky; top: 0; align-self: start; height: 100dvh; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; min-height: 84px; border-bottom: 1px solid var(--line); padding: 16px; gap: 10px; }
.brand img { flex: 0 0 auto; }
.brand b,.brand span { display: block; }
.brand b { font-size: 15px; white-space: nowrap; }
.brand span { color: var(--muted); font-size: 11px; margin-top: 2px; }
.sidebar nav { display: grid; gap: 4px; padding: 24px 12px; }
.nav-title { font-size: 11px; color: var(--muted); font-weight: 650; padding: 0 12px 7px; }
.nav-item { text-align: left; padding: 10px 12px; border-radius: 6px; color: #46564e; display: flex; align-items: center; gap: 11px; min-height: 44px; font-weight: 580; }
.nav-item:hover { background: #eff4f1; }
.nav-item.current { color: #115b4a; background: #e5f2ec; font-weight: 700; }
.sidebar-foot { flex: 1; display: flex; align-items: end; gap: 7px; padding: 24px 18px; color: var(--muted); font-size: 11px; }
.online-dot { width: 7px; height: 7px; margin-bottom: 5px; background: #4c8a70; border-radius: 50%; }
.workspace { min-width: 0; }
.topbar { min-height: 65px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.crumb,.top-actions,.identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.crumb { color: var(--muted); font-size: 13px; flex: 1; }
.crumb .icon { width: 13px; height: 13px; color: var(--soft); }
.crumb strong { color: var(--ink); }
.compact-mark { display: none; }
.identity { padding: 4px 0 4px 5px; gap: 7px; font-size: 13px; white-space: nowrap; }
.identity .icon { width: 14px; height: 14px; }
.avatar { width: 39px; height: 39px; display: inline-grid; place-items: center; border-radius: 7px; background: var(--mint); color: #245d4c; font-size: 15px; font-weight: 700; flex: 0 0 auto; }
.avatar.small { width: 27px; height: 27px; font-size: 11px; border-radius: 6px; }
.avatar.lilac { background: var(--lilac); color: #653a89; }
.avatar.amber { background: var(--amber); color: #89560f; }
.avatar.blue,.avatar.indigo { background: var(--blue); color: #31567e; }
.main { padding: 28px 30px 42px; margin: auto; max-width: 1440px; }
.page-title { margin: 0 0 21px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.page-title h1 { font-size: 31px; line-height: 1.23; font-weight: 750; overflow-wrap: anywhere; }
.overline { color: var(--muted); font-size: 12px; font-weight: 630; margin-bottom: 5px; }
.date-label { display: inline-flex; gap: 6px; align-items: center; }
.date-label .icon { width: 14px; height: 14px; color: var(--brand); }
.btn { border: 1px solid transparent; background: var(--surface); border-radius: 6px; min-height: 37px; padding: 7px 12px; display: inline-flex; gap: 7px; align-items: center; justify-content: center; font-size: 13px; font-weight: 680; white-space: nowrap; flex: 0 0 auto; }
.btn .icon { width: 16px; height: 16px; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-hover); }
.btn.secondary { border-color: var(--strong-line); }
.btn.secondary:hover { background: #eff5f1; }
.btn.quiet { background: none; color: var(--brand); padding: 2px 0; min-height: 28px; font-size: 11px; }
.btn.quiet .icon { order: 1; width: 13px; height: 13px; }
.btn.quiet:hover { text-decoration: underline; }
.badge { display: inline-flex; align-items: center; max-width: 100%; min-height: 22px; padding: 2px 7px; font-size: 11px; font-weight: 650; color: #47564f; border-radius: 4px; background: #edf1ef; white-space: nowrap; }
.badge.sandbox { color: #695017; background: #f7ebce; }
.badge.mint { background: var(--mint); color: #155d49; }
.badge.amber { background: var(--amber); color: #775017; }
.badge.count { background: var(--amber); color: #775017; font-variant-numeric: tabular-nums; }
.stat-band { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 23px; }
.stat { min-height: 91px; display: flex; align-items: center; gap: 12px; padding: 13px 17px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 7px; flex: 0 0 auto; }
.stat-icon.mint { background: var(--mint); color: var(--brand); }
.stat-icon.blue { background: var(--blue); color: #285b90; }
.stat-icon.amber { background: var(--amber); color: #8a5314; }
.stat-icon.rose { background: var(--rose); color: #994a36; }
.stat-label { color: var(--muted); display: block; font-size: 12px; white-space: nowrap; }
.stat strong { display: block; font-size: 26px; font-weight: 740; line-height: 1.25; font-variant-numeric: tabular-nums; }
.today-grid { display: grid; grid-template-columns: minmax(0,2.2fr) minmax(230px,1fr); align-items: start; gap: 19px; }
.context { display: grid; gap: 15px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.panel-top { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; }
.panel h2 { font-size: 16px; line-height: 1.3; font-weight: 720; }
.panel h2 .icon { width: 15px; height: 15px; color: var(--brand); }
.counter { font-size: 11px; font-weight: 650; padding: 2px 6px; display: inline-block; background: #edf1ef; border-radius: 4px; color: var(--muted); }
.inline-select select { min-height: 31px; max-width: 120px; padding: 3px 6px; font-size: 12px; border-radius: 5px; border: 1px solid var(--line); background: var(--surface); }
.segments { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 0 16px 13px; }
.segments button { font-size: 12px; padding: 5px 9px; border: 1px solid transparent; min-height: 31px; border-radius: 5px; color: var(--muted); font-weight: 620; }
.segments button small { font-size: 10px; padding-left: 2px; }
.segments button:hover { background: #f2f6f4; }
.segments button.selected { border-color: #d0e5da; background: var(--mint); color: #155d49; font-weight: 700; }
.task-row,.task-head { display: grid; grid-template-columns: minmax(0,1fr) 70px 78px 14px; gap: 10px; text-align: left; align-items: center; width: 100%; padding: 0 15px; }
.task-table.with-owner .task-row,.task-table.with-owner .task-head { grid-template-columns: minmax(0,1fr) minmax(78px,.4fr) 60px 77px 14px; }
.task-head { min-height: 31px; border-block: 1px solid var(--line); background: #f8faf9; font-size: 11px; color: var(--muted); }
.task-row { min-height: 68px; border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: 0; border-radius: 0 0 7px 7px; }
.task-row:hover { background: #f6faf8; }
.task-title { min-width: 0; padding: 9px 0; }
.task-title b { display: block; font-size: 13px; font-weight: 690; overflow-wrap: anywhere; }
.task-title i { display: inline-block; color: #668276; }
.task-title i .icon { width: 12px; height: 12px; }
.task-title small,.task-owner small { display: block; color: var(--muted); line-height: 1.35; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.task-owner { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 11px; color: var(--muted); }
.task-owner span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.due { color: var(--muted); font-size: 12px; white-space: nowrap; }
.due.late,.blocker-text { color: #963c32 !important; }
.due small { display: block; font-size: 10px; }
.row-arrow .icon { width: 14px; height: 14px; color: var(--soft); }
.status { display: inline-flex; gap: 4px; align-items: center; justify-self: start; border-radius: 4px; padding: 3px 6px; background: #eef2f0; color: #47554e; font-weight: 650; font-size: 11px; white-space: nowrap; }
.status .icon { width: 12px; height: 12px; }
.status.progress { background: var(--blue); color: #245989; }
.status.review { background: var(--amber); color: #805615; }
.status.done { background: var(--mint); color: #1a6050; }
.status.blocked { background: var(--rose); color: #923e31; }
.side-panel .panel-top { min-height: 49px; }
.project-link { display: block; width: 100%; padding: 10px 14px; text-align: left; border-top: 1px solid var(--line); }
.project-link:hover,.material-link:hover,.doc-label:hover,.file-row:hover { background: #f4f8f6; }
.project-link-title,.project-progress { min-width: 0; display: flex; gap: 8px; align-items: center; }
.project-link-title strong { font-size: 12px; flex: 1; overflow-wrap: anywhere; }
.project-link-title>.icon,.material-link>.icon { width: 13px; height: 13px; color: var(--soft); }
.folder-icon { width: 26px; height: 26px; border-radius: 5px; display: grid; place-items: center; color: #356b60; background: #edf5f1; }
.folder-icon .icon { width: 14px; height: 14px; }
.project-progress { padding-left: 34px; margin-top: 6px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
progress { appearance: none; width: 100%; min-width: 25px; border: 0; height: 5px; background: #e5ede8; border-radius: 4px; overflow: hidden; }
progress::-webkit-progress-bar { background: #e5ede8; }
progress::-webkit-progress-value { background: #40836d; border-radius: 4px; }
progress::-moz-progress-bar { background: #40836d; border-radius: 4px; }
.material-link { display: flex; align-items: center; justify-content: space-between; gap: 7px; width: 100%; padding: 10px 14px; text-align: left; border-top: 1px solid var(--line); }
.material-link b { font-size: 12px; overflow-wrap: anywhere; }
.material-link small,.rule-row small,.account-row small,.member small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.empty { display: grid; justify-items: center; gap: 7px; min-height: 104px; padding: 22px 12px; color: var(--muted); text-align: center; }
.empty .icon { color: #557768; }
.empty span { font-size: 12px; }
.project-list-row { display: grid; align-items: center; grid-template-columns: minmax(0,1fr) 145px 115px; border-top: 1px solid var(--line); }
.project-list-row .project-link { border: 0; }
.project-list-row .project-link-title strong { font-size: 14px; }
.project-list-row .project-progress { max-width: 360px; }
.people-stack { display: flex; justify-content: center; gap: 4px; }
.project-missing { justify-self: center; }
.back { color: var(--brand); display: inline-flex; align-items: center; gap: 4px; padding: 0; font-size: 12px; margin-bottom: 10px; }
.back .icon { width: 13px; height: 13px; }
.project-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin: -3px 0 16px; color: var(--muted); font-size: 12px; }
.project-meta .icon { width: 14px; height: 14px; }
.project-detail>.segments { padding-top: 13px; border-bottom: 1px solid var(--line); }
.stage-group h2 { padding: 12px 15px 9px; }
.stage-group + .stage-group { border-top: 1px solid var(--line); }
.doc-row { display: grid; grid-template-columns: minmax(145px, .85fr) minmax(135px,1.15fr) auto; min-height: 66px; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.doc-row:last-child { border-bottom: 0; }
.doc-row .badge { justify-self: start; }
.doc-label { display: flex; align-items: center; gap: 9px; text-align: left; padding: 5px; color: var(--ink); }
.doc-label .icon { color: var(--brand); }
.doc-label small,.file-row small { display: block; color: var(--muted); font-size: 10px; }
.file-row { border: 1px solid var(--line); border-radius: 5px; padding: 6px 8px; margin-top: 4px; display: flex; align-items: center; gap: 8px; min-height: 42px; }
.file-row>span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
.file-row .icon { color: var(--brand); width: 15px; height: 15px; }
.report-controls { margin-bottom: 16px; }
.report-controls .segments { padding-top: 12px; }
.query { border-top: 1px solid var(--line); display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; padding: 12px 16px; }
.report-grid { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(0,1fr); align-items: start; gap: 16px; }
.report-body:only-child { grid-column: 1/-1; }
.report-item { border-top: 1px solid var(--line); padding: 12px 15px; overflow-wrap: anywhere; }
.report-group h3 { background: #f1f6f3; border-top: 1px solid var(--line); padding: 7px 15px; color: #255e4d; font-size: 12px; overflow-wrap: anywhere; }
.report-item>div { display: flex; justify-content: space-between; align-items: start; gap: 7px; }
.report-item p,.saved-note p { margin-top: 5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-item small,.muted-text { color: var(--muted); font-size: 11px; }
.report-note .form-stack,.saved-note { padding: 0 15px 15px; }
.saved-note p + b { display: block; margin-top: 10px; }
.lesson { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 14px; padding: 15px 16px; border-top: 1px solid var(--line); }
.lesson-date { color: var(--brand); font-weight: 700; font-size: 12px; }
.lesson h3 { font-size: 16px; overflow-wrap: anywhere; }
.lesson-title { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.lesson-meta { display: flex; gap: 5px; margin: 4px 0 8px; flex-wrap: wrap; }
.lesson dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lesson dt { font-weight: 650; color: var(--muted); font-size: 11px; }
.lesson dd { font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.team-panel { margin: 0 0 17px; }
.member-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 0 15px 15px; }
.member,.account-row { display: flex; align-items: center; text-align: left; gap: 8px; }
.member { border: 1px solid var(--line); border-radius: 6px; min-height: 65px; padding: 8px; }
.member:hover,.account-row:hover { background: #f2f7f4; }
.member>span:nth-child(2),.account-row>span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.member strong { text-align: center; font-size: 16px; flex: 0 0 auto; }
.member strong small { margin-top: 0; font-size: 10px; }
.member>.icon,.account-row>.icon { width: 14px; height: 14px; color: var(--muted); }
.rule-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 9px 15px; }
.rule-row b { overflow-wrap: anywhere; }
dialog { border: 1px solid var(--strong-line); border-radius: 8px; padding: 0; width: min(620px, calc(100% - 28px)); max-height: min(820px,calc(100dvh - 36px)); color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: #11241c70; }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.dialog-head small { color: var(--brand); font-size: 11px; }
.dialog-head h2 { font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.icon-button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 5px; background: #f1f5f3; flex: 0 0 auto; }
.icon-button:hover { background: var(--line); }
.dialog-content { padding: 14px 16px 16px; }
.task-detail-meta { display: flex; align-items: center; flex-wrap: wrap; column-gap: 12px; row-gap: 6px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.task-detail-meta>span { display: inline-flex; align-items: center; gap: 5px; }
.task-detail-meta .icon { width: 13px; height: 13px; }
.criteria { padding: 8px 11px; background: #f2f6f4; border: 1px solid var(--line); border-radius: 5px; margin: 0 0 10px; font-size: 13px; overflow-wrap: anywhere; }
.criteria p { color: #3b4d43; margin-top: 4px; white-space: pre-wrap; }
.attachments { margin-bottom: 13px; }
.attachment-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; gap: 8px; }
.attachment-head h3 { font-size: 14px; }
.upload { position: relative; cursor: pointer; }
.upload input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.upload:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.form-stack { display: grid; gap: 10px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field span { font-weight: 650; font-size: 12px; }
.field small { color: var(--muted); font-weight: 400; font-size: 10px; }
.field input,.field select,.field textarea { min-height: 35px; width: 100%; min-width: 0; border-radius: 5px; border: 1px solid var(--strong-line); padding: 6px 8px; background: var(--surface); font-size: 13px; }
.field textarea { resize: vertical; }
.form-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.form-actions { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.check-options { padding: 5px 0; margin: 0; border: 0; display: flex; flex-wrap: wrap; gap: 7px 12px; font-size: 12px; }
.check-options legend { font-weight: 650; margin-bottom: 5px; }
.check-options input { accent-color: var(--brand); vertical-align: middle; }
.manage-task { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 9px; }
.manage-task summary { font-size: 12px; cursor: pointer; color: var(--brand); margin-bottom: 8px; }
.desk-actions {display:grid;gap:5px;padding:8px 12px 12px}
.signin {display:grid;align-content:center;min-height:100dvh;padding:28px;background:#f4f7f6;border-top:5px solid #1d6350}
.signin section {width:min(100%,370px);margin:auto}
.signin h1 {margin:5px 0 26px;font-size:28px}
.signin p {margin:15px 0 0;color:var(--brand);font-size:13px}
.signin .form-stack {margin:0 0 12px}
.project-tools {display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end}
@media(max-width:650px){.page-title:has(.project-tools){display:block}.project-tools{justify-content:flex-start;margin-top:8px}}
.desk-actions .btn {justify-content:flex-start;text-align:left;white-space:normal}
.project-day {padding:0 16px 20px;min-width:0}
.project-day .query,.project-day .panel-top {padding-inline:0}
.project-day textarea {width:100%;line-height:1.65}
.daily-copy,.journal-entry p {white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.daily-copy {font:inherit;line-height:1.8;border-left:3px solid var(--brand);padding:4px 14px}
.journal-panel {margin-bottom:18px}
.journal-entry {padding:12px 16px;border-top:1px solid var(--line)}
.journal-entry p {margin:5px 0}
.account-row { width: 100%; padding: 8px; border-bottom: 1px solid var(--line); }
.account-row:last-child { border: 0; }
.toast { position: fixed; right: 22px; bottom: 22px; padding: 10px 13px; background: #195d4c; color: #fff; max-width: calc(100% - 44px); font-weight: 650; font-size: 13px; border-radius: 6px; z-index: 12; box-shadow: var(--shadow); }
.toast.error { background: #872d25; }
@media (max-width: 1130px) {
  .layout { grid-template-columns: 188px minmax(0,1fr); }
  .brand { padding-inline: 11px; gap: 7px; }
  .brand b { font-size: 14px; }
  .main,.topbar { padding-inline: 20px; }
  .stat { padding-inline: 11px; gap: 8px; }
  .today-grid { gap: 12px; grid-template-columns: minmax(0,1fr) 223px; }
  .task-table.with-owner .task-row,.task-table.with-owner .task-head { grid-template-columns: minmax(0,1fr) minmax(56px,.37fr) 56px 72px 12px; gap: 5px; }
  .task-owner .avatar { display: none; }
}
@media (max-width: 900px) {
  .today-grid { grid-template-columns: 1fr; }
  .context { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .layout { display: flex; flex-direction: column; }
  .sidebar { order: 2; width: 100%; height: auto; position: sticky; bottom: 0; z-index: 3; border: 0; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom,0); }
  .brand,.nav-title,.sidebar-foot { display: none; }
  .sidebar nav { display: flex; gap: 0; justify-content: space-evenly; padding: 3px 1px; }
  .nav-item { flex: 1; min-width: 0; border-radius: 5px; display: grid; justify-items: center; align-content: center; gap: 2px; padding: 4px 1px; text-align: center; font-size: 10px; white-space: nowrap; }
  .nav-item .icon { width: 17px; height: 17px; }
  .workspace { flex: 1; }
  .topbar { min-height: 53px; padding-inline: 12px; }
  .compact-mark { display: block; flex: 0 0 auto; }
  .crumb { gap: 6px; }
  .crumb span { font-size: 12px; color: var(--ink); font-weight: 700; }
  .crumb strong,.crumb>.icon { display: none; }
  .top-actions { gap: 5px; }
  .identity { font-size: 11px; gap: 4px; }
  .identity .avatar { width: 23px; height: 23px; }
  .top-actions .sandbox { padding: 2px 4px; font-size: 9px; min-height: 19px; }
  .main { padding: 19px 12px 23px; }
  .page-title { margin-bottom: 14px; }
  .page-title h1 { font-size: 23px; }
  .btn { min-height: 34px; padding: 5px 8px; font-size: 12px; }
  .stat-band { grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 14px; }
  .stat { min-height: 65px; padding: 7px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat strong { font-size: 23px; }
  .stat-label { font-size: 11px; white-space: normal; }
  .stat-icon { width: 32px; height: 32px; }
  .panel-top { min-height: 48px; padding-inline: 9px; }
  .panel h2 { font-size: 15px; }
  .segments { padding: 0 8px 8px; gap: 3px; }
  .segments button { padding-inline: 6px; }
  .task-row,.task-head { grid-template-columns: minmax(0,1fr) 48px 63px 10px; gap: 4px; padding-inline: 7px; }
  .task-table.with-owner .task-row,.task-table.with-owner .task-head { grid-template-columns: minmax(0,1fr) 52px 43px 64px 9px; gap: 3px; }
  .task-row { min-height: 59px; }
  .task-title b { font-size: 12px; }
  .task-title small,.due { font-size: 10px; }
  .task-owner { font-size: 9px; }
  .status { font-size: 10px; gap: 3px; padding: 3px 4px; }
  .status .icon,.row-arrow .icon { width: 10px; height: 10px; }
  .context { grid-template-columns: 1fr; gap: 11px; }
  .project-list-row { grid-template-columns: minmax(0,1fr) auto; }
  .people-stack { display: none; }
  .project-missing { margin-right: 8px; }
  .doc-row { grid-template-columns: minmax(0,1fr) auto; padding-inline: 7px; }
  .doc-files { grid-column: 1/-1; order: 1; }
  .doc-row>.btn { display: none; }
  .report-grid { grid-template-columns: 1fr; }
  .query { padding: 9px; gap: 8px; }
  .query .field { flex: 1 1 103px; }
  .report-item,.report-note .form-stack { padding-inline: 9px; }
  .lesson { grid-template-columns: 52px minmax(0,1fr); gap: 6px; padding-inline: 8px; }
  .lesson dl { grid-template-columns: 1fr; gap: 7px; }
  .member-grid { grid-template-columns: 1fr; }
  dialog { width: calc(100% - 12px); max-height: calc(100dvh - 16px); }
  .dialog-content { padding: 10px; }
  .field input,.field textarea,.field select { font-size: 16px; }
  .toast { right: 12px; bottom: calc(60px + env(safe-area-inset-bottom,0px)); }
}
