:root {
  color-scheme: light;
  --ink: #172521;
  --muted: #687772;
  --quiet: #94a09b;
  --line: #e3e9e6;
  --canvas: #f5f7f6;
  --paper: #ffffff;
  --green: #156b5d;
  --green-dark: #124d43;
  --green-soft: #e7f4ef;
  --blue: #285e89;
  --blue-soft: #eaf2f8;
  --amber: #a66312;
  --amber-soft: #fff2dd;
  --red: #ae443c;
  --red-soft: #fbecea;
  --shadow: 0 12px 32px rgba(24, 45, 37, .08);
  font-family: "DM Sans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; display: flex; flex-direction: column; background: var(--canvas); color: var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(40, 94, 137, .3); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
.icon { width: 18px; height: 18px; display: inline-flex; flex: 0 0 auto; }
.icon svg { width: 100%; height: 100%; display: block; }
.app-shell { flex: 1; display: flex; }
.app-shell[hidden] { display: none; }
.auth-gate { flex: 1; display: grid; align-content: center; justify-items: center; padding: 28px 16px; background: #eef3f0; }
.auth-gate[hidden] { display: none; }
.auth-card { width: min(420px, 100%); padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.auth-brand { padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.auth-content h1 { margin: 22px 0 6px; font-size: 21px; }
.auth-content > p { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.auth-form { display: grid; gap: 14px; }
.auth-field { display: grid; gap: 6px; }
.auth-field label { color: #53645c; font-size: 11px; font-weight: 600; }
.auth-field input { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid #dce5e0; border-radius: 5px; color: var(--ink); background: #fff; font-size: 13px; }
.auth-form .button { width: 100%; min-height: 42px; margin-top: 4px; }
.auth-error { min-height: 18px; color: var(--red); font-size: 11px; line-height: 1.5; }
.auth-note { margin-top: 16px !important; padding-top: 13px; border-top: 1px solid var(--line); color: var(--quiet) !important; font-size: 10px !important; }
.auth-loading { text-align: center; }
.auth-status-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--amber); background: var(--amber-soft); font-weight: 700; }
.auth-guidance { color: var(--quiet); font-size: 10px; }
.auth-footnote { margin: 16px 0 0; color: #73827a; font-size: 10px; text-align: center; }
.site-filing { padding: 12px 16px; color: var(--muted); font-size: 12px; text-align: center; }
.site-filing a { text-decoration: underline; text-underline-offset: 3px; }
.prototype-banner { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 7px 34px; border-bottom: 1px solid #ead9a5; color: #725b20; background: #fff8e3; font-size: 10px; }
.prototype-banner strong { color: #614d19; white-space: nowrap; }
.prototype-banner span { color: #85733e; }

.sidebar { width: 244px; flex: 0 0 244px; display: flex; flex-direction: column; padding: 24px 14px 16px; background: #fff; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 12px 28px; }
.brand-mark { width: 34px; height: 34px; display: flex; align-items: flex-end; gap: 3px; justify-content: center; padding: 7px; border-radius: 9px; background: var(--green); }
.brand-mark i { display: block; width: 4px; border-radius: 4px; background: #fff; }
.brand-mark i:nth-child(1) { height: 11px; }
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 21px; }
.brand strong { display: block; font-size: 16px; line-height: 1.2; letter-spacing: 0; }
.brand small { display: block; margin-top: 3px; color: var(--quiet); font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.sidebar-caption { padding: 0 12px 10px; color: #a0aaa5; font-size: 11px; font-weight: 600; }
.primary-nav { display: grid; gap: 3px; }
.nav-link { min-height: 42px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 6px; color: #607069; background: transparent; text-align: left; font-size: 13px; font-weight: 500; transition: background .15s, color .15s; }
.nav-link:hover { color: var(--ink); background: #f5f8f6; }
.nav-link.active { color: var(--green-dark); background: var(--green-soft); font-weight: 700; }
.nav-link .nav-count { margin-left: auto; min-width: 21px; height: 21px; display: grid; place-items: center; border-radius: 20px; color: var(--amber); background: var(--amber-soft); font-size: 11px; }
.sidebar-bottom { margin-top: auto; padding: 16px 8px 0; }
.offline-state { display: flex; align-items: center; gap: 9px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 7px; }
.offline-state strong, .offline-state small { display: block; }
.offline-state strong { font-size: 11px; font-weight: 600; }
.offline-state small { margin-top: 3px; color: var(--quiet); font-size: 10px; }
.status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #55a980; box-shadow: 0 0 0 3px #e7f5ed; }
.install-button { width: 100%; display: flex; align-items: center; gap: 8px; margin-top: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--green-dark); background: #fff; font-size: 12px; font-weight: 600; }
.install-button:hover { background: var(--green-soft); }
.sidebar-foot { display: flex; justify-content: space-between; padding: 17px 10px 0; color: #98a39e; font-size: 10px; }

.main-column { min-width: 0; flex: 1; }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .88); }
.topbar-title { display: flex; align-items: baseline; gap: 11px; }
.topbar-title .eyebrow { color: #98a49e; font-size: 11px; }
.topbar-title strong { font-size: 15px; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.connection-chip { display: inline-flex; align-items: center; gap: 8px; color: #687772; font-size: 11px; white-space: nowrap; }
.connection-chip .status-dot { width: 6px; height: 6px; flex-basis: 6px; box-shadow: none; }
.profile-button { display: flex; align-items: center; gap: 9px; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #275849; background: #d9eee4; font-size: 13px; font-weight: 700; }
.profile-copy strong, .profile-copy small { display: block; }
.profile-copy strong { font-size: 11px; }
.profile-copy small { margin-top: 3px; color: var(--quiet); font-size: 10px; }
.profile-chevron { width: 14px; height: 14px; color: #8d9993; }
.mobile-menu { display: none !important; }
#app-content { max-width: 1600px; margin: 0 auto; padding: 30px 34px 48px; }
.page-wrap { width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head h1 { margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: 0; }
.page-head p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.page-head-actions { display: flex; align-items: center; gap: 8px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 2px; border: 0; color: var(--green); background: transparent; font-size: 12px; font-weight: 600; }
.text-link:hover { color: var(--green-dark); }
.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; border: 1px solid transparent; border-radius: 6px; font-size: 12px; font-weight: 600; transition: transform .12s, background .12s, border-color .12s; }
.button:active { transform: translateY(1px); }
.button .icon { width: 16px; height: 16px; }
.button-primary { color: #fff; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { border-color: #dce5e0; color: #45564f; background: #fff; }
.button-secondary:hover { background: #f6f9f7; }
.button-quiet { color: var(--muted); background: transparent; }
.button-danger { border-color: #f1d0cc; color: var(--red); background: #fff; }
.button-small { min-height: 31px; padding: 0 9px; font-size: 11px; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: #65736d; background: #fff; }
.icon-button:hover { color: var(--green); background: #f7faf8; }

.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.stat-cell { min-height: 89px; display: flex; align-items: center; gap: 13px; padding: 16px 19px; }
.stat-cell + .stat-cell { border-left: 1px solid var(--line); }
.stat-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 8px; color: var(--green); background: var(--green-soft); }
.stat-cell:nth-child(2) .stat-icon { color: var(--blue); background: var(--blue-soft); }
.stat-cell:nth-child(3) .stat-icon { color: var(--amber); background: var(--amber-soft); }
.stat-cell:nth-child(4) .stat-icon { color: #6d5b91; background: #f0ecf7; }
.stat-icon .icon { width: 17px; height: 17px; }
.stat-cell small { display: block; color: var(--muted); font-size: 10px; }
.stat-cell strong { display: block; margin-top: 5px; font-size: 19px; line-height: 1; }
.stat-cell em { margin-left: 4px; color: #8d9893; font-size: 10px; font-style: normal; font-weight: 500; }

.dashboard-grid { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.5fr); gap: 18px; align-items: start; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.panel-header { min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 17px; border-bottom: 1px solid var(--line); }
.panel-header h2 { margin: 0; font-size: 13px; font-weight: 700; }
.panel-header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.panel-body { padding: 17px; }
.clock-panel { overflow: hidden; border: 0; color: #f2f8f5; background: #173e36; }
.clock-panel .panel-header { border-color: rgba(255,255,255,.14); }
.clock-panel .panel-header h2 { color: #f2f8f5; }
.clock-panel .panel-header p { color: #b5c9c1; }
.clock-panel .panel-body { padding: 19px; }
.clock-time { margin: 4px 0 2px; font-size: 35px; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.clock-date { color: #b5c9c1; font-size: 11px; }
.clock-project-label { display: block; margin: 21px 0 7px; color: #bdd0c8; font-size: 10px; }
.clock-project { width: 100%; min-height: 39px; padding: 0 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 5px; color: #fff; background: #214c42; font-size: 12px; }
.clock-project option { color: #172521; background: #fff; }
.clock-notes { width: 100%; min-height: 68px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 5px; color: #fff; background: #214c42; font: inherit; font-size: 12px; line-height: 1.5; resize: vertical; }
.clock-notes::placeholder { color: #b5c9c1; }
.clock-evidence { display: flex; gap: 7px; margin-top: 12px; }
.clock-evidence button { min-height: 31px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid rgba(255,255,255,.24); border-radius: 5px; color: #e4f1eb; background: transparent; font-size: 10px; }
.clock-evidence button:hover, .clock-evidence button.is-set { border-color: #91d8bb; color: #d5f5e5; background: rgba(90, 181, 138, .16); }
.clock-evidence .icon { width: 14px; height: 14px; }
.clock-cta { width: 100%; min-height: 43px; margin-top: 17px; border: 0; border-radius: 5px; color: #123d31; background: #a7e4c1; font-size: 13px; font-weight: 700; }
.clock-cta:hover { background: #c0f0d2; }
.clock-cta.is-running { color: #fff; background: #c45b48; }
.clock-cta.is-running:hover { background: #d56d59; }
.clock-active { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.15); color: #c3d7ce; font-size: 10px; }
.pulse-dot { width: 7px; height: 7px; margin-right: 6px; display: inline-block; border-radius: 50%; background: #a7e4c1; box-shadow: 0 0 0 4px rgba(167,228,193,.12); }

.table-panel { overflow: hidden; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table-toolbar-left, .table-toolbar-right { display: flex; align-items: center; gap: 8px; }
.table-toolbar select, .filter-input, .search-input { min-height: 33px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; color: #40514a; background: #fff; font-size: 11px; }
.search-input { width: 200px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { height: 38px; padding: 0 13px; color: #84918a; background: #fafcfb; font-size: 10px; font-weight: 600; white-space: nowrap; }
td { height: 51px; padding: 8px 13px; border-top: 1px solid #edf1ef; color: #374740; font-size: 11px; vertical-align: middle; }
tbody tr:hover { background: #fbfdfc; }
.td-strong { color: #20342c; font-weight: 600; }
.td-muted { display: block; margin-top: 3px; color: var(--quiet); font-size: 10px; }
.project-dot { width: 7px; height: 7px; display: inline-block; margin-right: 7px; border-radius: 50%; vertical-align: 1px; background: var(--green); }
.project-dot.blue { background: #4786b8; }
.project-dot.amber { background: #d2973d; }
.project-dot.rose { background: #bd6d72; }
.tag { display: inline-flex; align-items: center; gap: 5px; min-height: 21px; padding: 0 7px; border-radius: 4px; color: #56655f; background: #f0f3f1; font-size: 10px; white-space: nowrap; }
.tag.success { color: #276d50; background: #e8f5ee; }
.tag.warning { color: #94601d; background: #fff3df; }
.tag.info { color: #336a91; background: #eaf3fa; }
.tag.danger { color: #a14942; background: #fcecea; }
.tag.outline { border: 1px solid var(--line); color: #6d7b74; background: #fff; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 10px; }
.duration { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.time-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty-state { padding: 34px 15px; color: var(--muted); text-align: center; font-size: 12px; }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 13px; }

.summary-band { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.summary-band-label { color: var(--muted); font-size: 11px; }
.summary-band strong { display: block; margin-top: 5px; font-size: 20px; }
.summary-band .summary-note { color: #8b9791; font-size: 10px; text-align: right; }
.filters-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters-row .search-input { flex: 1 1 180px; }
.section-gap { margin-top: 18px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 11px; }
.section-heading h2 { margin: 0; font-size: 14px; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.inline-person { display: flex; align-items: center; gap: 8px; }
.mini-avatar { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #385c4d; background: #e2eee7; font-size: 10px; font-weight: 700; }
.inline-person strong { display: block; font-size: 11px; }
.inline-person small { display: block; margin-top: 2px; color: var(--quiet); font-size: 9px; }
.cell-actions { display: flex; justify-content: flex-end; gap: 5px; }
.cell-actions .icon-button { width: 29px; height: 29px; }
.muted { color: var(--muted); }
.numeric { font-variant-numeric: tabular-nums; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.project-item { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.project-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.project-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 7px; color: var(--green); background: var(--green-soft); }
.project-item h3 { margin: 12px 0 4px; font-size: 13px; }
.project-item .client { color: var(--muted); font-size: 10px; }
.project-stats { display: flex; gap: 19px; margin-top: 17px; padding-top: 12px; border-top: 1px solid var(--line); }
.project-stats span { color: var(--muted); font-size: 9px; }
.project-stats strong { display: block; margin-top: 3px; color: var(--ink); font-size: 12px; }
.project-progress { height: 4px; margin-top: 13px; overflow: hidden; border-radius: 4px; background: #edf1ef; }
.project-progress i { height: 100%; display: block; border-radius: inherit; background: #56a989; }

.report-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 16px; align-items: start; }
.bar-list { display: grid; gap: 15px; }
.bar-row { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(100px, 2.3fr) 55px; align-items: center; gap: 12px; }
.bar-label { overflow: hidden; color: #485950; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 8px; overflow: hidden; border-radius: 10px; background: #eef2ef; }
.bar-fill { height: 100%; min-width: 4px; border-radius: inherit; background: #3e9675; }
.bar-row:nth-child(2n) .bar-fill { background: #4785ad; }
.bar-row:nth-child(3n) .bar-fill { background: #d69a45; }
.bar-value { color: #40514a; font-size: 11px; font-weight: 600; text-align: right; }
.report-callout { padding: 16px; border-radius: 7px; color: #28483d; background: #e9f4ee; }
.report-callout h3 { margin: 0; font-size: 12px; }
.report-callout p { margin: 7px 0 0; color: #63786e; font-size: 10px; line-height: 1.6; }
.report-callout .callout-number { margin-top: 16px; color: var(--green-dark); font-size: 24px; font-weight: 700; }
.report-callout small { color: #70867b; font-size: 10px; }

.evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.evidence-item { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.evidence-image { height: 145px; display: grid; place-items: center; color: #7c8c83; background: linear-gradient(135deg, #e7eee9, #f5f8f6); }
.evidence-image img { width: 100%; height: 100%; object-fit: cover; }
.evidence-image .icon { width: 30px; height: 30px; }
.evidence-copy { padding: 12px; }
.evidence-copy strong { display: block; font-size: 11px; }
.evidence-copy p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.evidence-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; color: #8a9690; font-size: 9px; }

.settings-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; align-items: start; }
.settings-nav { display: grid; gap: 4px; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.settings-nav button { padding: 9px 10px; border: 0; border-radius: 5px; color: #65736d; background: transparent; text-align: left; font-size: 11px; }
.settings-nav button.active { color: var(--green-dark); background: var(--green-soft); font-weight: 700; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row strong { display: block; font-size: 12px; }
.setting-row p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.switch { position: relative; width: 38px; height: 22px; flex: 0 0 38px; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: 20px; background: #d8e0db; transition: .18s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .18s; box-shadow: 0 1px 3px #0002; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(16px); }
.setting-select { min-height: 33px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; color: #45564f; background: #fff; font-size: 11px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(19, 37, 31, .42); }
.modal { width: min(520px, 100%); max-height: min(90vh, 760px); overflow: auto; border-radius: 8px; background: #fff; box-shadow: var(--shadow); animation: modal-in .16s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 19px 20px 15px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 15px; }
.modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.modal-body { padding: 17px 20px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 20px 18px; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field { min-width: 0; display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #5d6d65; font-size: 10px; font-weight: 600; }
.field input, .field select { width: 100%; min-height: 37px; padding: 0 10px; border: 1px solid #dce5e0; border-radius: 5px; color: #263a32; background: #fff; font-size: 11px; }
.field input::placeholder { color: #a4ada8; }
.form-note { color: #829089; font-size: 9px; line-height: 1.5; }
.evidence-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.evidence-selection { min-height: 24px; color: #56806b; font-size: 10px; }
.modal-error { display: none; margin-top: 11px; padding: 9px; border-radius: 5px; color: #963f37; background: #fff0ee; font-size: 10px; }
.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: grid; gap: 8px; }
.toast { max-width: min(360px, calc(100vw - 32px)); padding: 11px 14px; border-radius: 6px; color: #fff; background: #203c32; box-shadow: var(--shadow); font-size: 11px; animation: toast-in .18s ease-out; }
.toast.error { background: #9c443c; }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.mobile-scrim { display: none; }
.account-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.camera-backdrop { z-index: 70; }
#camera-preview { display: block; width: 100%; max-height: 55vh; border-radius: 6px; background: #172b23; object-fit: contain; }
.running-reminder { padding: 9px; color: #946620; background: #fff6df; border-radius: 5px; }
.switch input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 3px; }

@media (max-width: 1120px) {
  .sidebar { width: 220px; flex-basis: 220px; }
  #app-content { padding-right: 22px; padding-left: 22px; }
  .topbar { padding-right: 22px; padding-left: 22px; }
  .stat-cell { padding-right: 12px; padding-left: 12px; }
  .dashboard-grid { grid-template-columns: minmax(275px, .85fr) minmax(0, 1.3fr); }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; width: 258px; transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .mobile-scrim.open { position: fixed; inset: 0; z-index: 55; display: block; background: rgba(18, 35, 29, .3); }
  .mobile-menu { display: inline-grid !important; margin-right: 12px; }
  .topbar { justify-content: flex-start; }
  .topbar-title { margin-right: auto; }
  .dashboard-grid, .report-grid { grid-template-columns: 1fr; }
  .clock-panel { max-width: none; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .topbar { min-height: 62px; padding: 0 13px; }
  .topbar-title { display: block; }
  .topbar-title .eyebrow { display: none; }
  .topbar-title strong { font-size: 14px; }
  .topbar-actions { gap: 8px; }
  .connection-chip, .profile-copy, .profile-chevron { display: none; }
  .profile-button { gap: 0; }
  .avatar { width: 31px; height: 31px; }
  .prototype-banner { align-items: flex-start; flex-direction: column; gap: 2px; padding: 8px 13px; }
  #app-content { padding: 22px 13px 30px; }
  .page-head { align-items: flex-start; margin-bottom: 17px; }
  .page-head h1 { font-size: 19px; }
  .page-head p { max-width: 240px; font-size: 11px; }
  .page-head-actions { align-self: center; }
  .page-head-actions .button { min-height: 34px; padding: 0 9px; font-size: 10px; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-cell { min-height: 72px; gap: 9px; padding: 11px; }
  .stat-cell:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .stat-cell:nth-child(4) { border-top: 1px solid var(--line); }
  .stat-icon { width: 30px; height: 30px; }
  .stat-cell strong { font-size: 16px; }
  .dashboard-grid { gap: 12px; }
  .panel-header { min-height: 49px; padding: 0 12px; }
  .panel-body { padding: 13px; }
  .table-toolbar { align-items: flex-start; flex-direction: column; padding: 10px 11px; }
  .table-toolbar-left, .table-toolbar-right { width: 100%; flex-wrap: wrap; }
  .table-toolbar-left > .filter-input { min-width: 0; flex: 1 1 130px; }
  .search-input { width: 100%; }
  th, td { padding-right: 10px; padding-left: 10px; }
  .project-grid, .evidence-grid { grid-template-columns: 1fr; }
  .project-item { padding: 13px; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .settings-nav button { text-align: center; }
  .summary-band { padding: 12px; }
  .bar-row { grid-template-columns: 85px minmax(50px, 1fr) 42px; gap: 8px; }
  .modal-backdrop { align-items: end; padding: 8px; }
  .modal { max-height: 94vh; border-radius: 9px 9px 6px 6px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .toast-root { right: 10px; bottom: 12px; left: 10px; }
  .toast { max-width: none; }
  .auth-card { padding: 22px 18px; }
}
