:root {
  color-scheme: light;
  font-family: "Inter", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  color: #182428;
  background: #f3f6f6;
  --muted: #526367;
  --line: #e0e7e7;
  --teal: #17665d;
  --surface: #fff;
  --sidebar: #14302f;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary, input[type=checkbox] { cursor: pointer; }
:focus-visible { outline: 2px solid #2e897e; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.7rem, 3vw, 2.25rem); line-height: 1.3; letter-spacing: -.035em; }
h2 { font-size: 1.18rem; }
h3 { font-size: 1rem; }
small, .muted { color: var(--muted); }
.muted { line-height: 1.6; }
.workspace { display: grid; grid-template-columns: 224px minmax(0, 1fr); }
.sidebar {
  background: var(--sidebar); color: #e7f3f0; display: flex; flex-direction: column; padding: 26px 15px 16px;
  height: 100vh; position: sticky; top: 0; overflow: auto;
}
.brand { display: flex; align-items: center; gap: 12px; line-height: 1.5; }
.sidebar .brand { margin: 0 8px 30px; }
.brand-icon {
  display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 9px;
  background: #bce4d7; color: #153c35; font-size: 24px; font-weight: 600;
}
.brand strong { display: block; font-size: 1.14rem; }
.brand small, .profile small { display: block; color: #b0cbc5; font-size: .79rem; }
.nav-label { color: #a2bfba; font-size: .76rem; padding: 0 12px; margin: 20px 0 8px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; margin: 3px 0; border-radius: 7px; color: #d5e8e3; }
.sidebar nav a span { width: 18px; text-align: center; font-size: 17px; line-height: 1; }
.sidebar nav a:hover { background: #264744; }
.sidebar nav a.selected { background: #28504a; color: #fff; font-weight: 650; }
.sidebar-bottom { margin-top: auto; padding-top: 35px; }
.demo-note { color: #b0cbc5; padding: 0 6px 11px; font-size: .8rem; }
.demo-note span, .live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4eac91; margin-right: 5px; vertical-align: .08em; }
.profile { display: flex; align-items: center; gap: 10px; padding: 12px 5px 4px; border-top: 1px solid #385350; }
.profile-actions { margin-left: auto; display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.avatar { border-radius: 50%; background: #d7eade; color: #235248; width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0; }
.signout { background: transparent; color: #d6e7e1; border: 0; padding: 7px 3px; font-size: .8rem; }
.signout:hover { color: #fff; text-decoration: underline; }
.stage { min-width: 0; }
.topbar { min-height: 59px; padding: 12px clamp(16px, 3vw, 38px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: #f9fbfa; color: var(--muted); }
.topbar strong { color: #233534; }
.divider { margin: 0 8px; color: #7c918d; }
.top-role { color: #285046; background: #e7efeb; padding: 4px 9px; border-radius: 5px; font-size: .8rem; }
.main { max-width: 1630px; padding: 29px clamp(16px, 3vw, 38px) 42px; margin: 0 auto; }
.viewport-workspace { height: 100vh; height: 100dvh; min-height: 0; grid-template-rows: minmax(0, 1fr); overflow: clip; }
.viewport-workspace > .sidebar { height: 100%; }
.viewport-workspace > .stage, .viewport-workspace .main, .task-workspace .task-panel, .archive-layout {
  display: flex; flex-direction: column; min-height: 0;
}
.viewport-workspace .main { flex: 1; width: 100%; padding-block: 16px 10px; }
.viewport-workspace .topbar,
.viewport-workspace .main > .message,
.task-workspace .main > :is(.page-heading, .tabs),
.task-workspace .task-panel > :not(.task-table-scroll) { flex: none; }
.task-workspace .task-panel { flex: 1; }
.archive-layout { flex: 1; }
.archive-panels { display: grid; grid-template-rows: repeat(2, minmax(130px, 1fr)); gap: 8px; min-height: 0; flex: 1; overflow: auto; }
.task-workspace .archive-panel :is(.section-title, .table-footer) { padding-block: 5px; }
.archive-layout > :is(.filters, .applied) { flex: none; }
.page-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin-bottom: 22px; }
.page-heading .muted { margin-top: 7px; }
.button-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 37px; padding: 7px 13px;
  color: #294441; background: var(--surface); border: 1px solid #d4dfdd; border-radius: 7px;
  font-weight: 600; white-space: nowrap;
}
.button:hover { border-color: #7aa89e; background: #f2faf7; }
.button.primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.button.primary:hover { background: #104e46; }
.button.danger { color: #a73535; border-color: #eac8c7; }
.button.danger:hover { background: #faedeb; border-color: #c47777; }
.button.compact { min-height: 33px; padding: 5px 10px; font-size: .86rem; }
.button:disabled { opacity: .5; cursor: default; border-color: #d4dfdd; background: var(--surface); }
.employee-actions { flex-wrap: nowrap; }
.management-heading { flex: none; gap: 8px; margin-bottom: 12px; }
.tabs { display: flex; gap: 5px; flex-wrap: wrap; padding: 4px; margin-bottom: 16px; border-radius: 8px; background: #e6eceb; width: fit-content; }
.tabs a { padding: 7px 14px; border-radius: 5px; color: #485e5a; white-space: nowrap; }
.tabs a:hover { background: #f1f6f4; }
.tabs a.active { background: #fff; color: #145e54; font-weight: 700; box-shadow: 0 1px 2px #0b30201a; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 17px; }
.stat { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 13px 16px 12px; }
.stat span { color: var(--muted); display: block; font-size: .88rem; }
.stat strong { display: block; font-size: 1.95rem; line-height: 1.19; margin-top: 6px; color: #1e5149; font-variant-numeric: tabular-nums; }
.stat.amber strong { color: #85531a; }
.stat.red strong, .late-date { color: #a93636; }
.stat.green strong { color: #167050; }
.panel { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-width: 0; }
.panel-space { margin-top: 18px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 16px 11px; }
.task-workspace .page-heading { margin-bottom: 12px; }
.task-workspace .tabs { margin-bottom: 10px; }
.task-workspace .section-title { padding-block: 10px; }
.section-title > div { display: flex; align-items: center; gap: 9px; }
.count { color: #45665f; background: #edf3f0; padding: 3px 7px; border-radius: 5px; font-size: .8rem; }
.filters { padding: 0 16px 12px; }
.filter-main, .filter-date, .filter-choices { display: flex; align-items: center; gap: 4px; }
.filter-main { overflow-x: auto; padding: 4px; margin: -4px; }
.filter-date, .filter-choices { flex: 0 0 auto; }
.filter-date-separator { color: var(--muted); font-size: .83rem; }
.filter-choice { position: relative; }
.filter-choice summary { list-style: none; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.filter-choice summary::-webkit-details-marker { display: none; }
.filter-choice summary, .filter-date input, .filter-date select, .search-control {
  border: 1px solid #d8e2e0; border-radius: 6px; background: #fff; padding: 6px 8px; min-height: 33px; color: #304642; font-size: .86rem;
}
.filter-choice summary, .filter-date input, .filter-date select, .filter-date > .button.compact { padding-inline: 5px; }
.filter-date input[type=date] { width: 108px; }
.filter-choice[open] summary { border-color: #408779; }
.filter-choice.filter-applied summary,
.search-control.filter-applied,
.filter-date .filter-applied {
  background: #0471ff linear-gradient(90deg, #0471ff, #167bff);
  border-color: #0471ff;
  color: #fff;
  font-weight: 700;
}
.filter-options { position: fixed; z-index: 4; min-width: 168px; max-width: calc(100vw - 16px); overflow: auto; padding: 7px; border: 1px solid var(--line); background: #fff; box-shadow: 0 8px 23px #142f2c22; border-radius: 7px; }
.filter-option-list { max-height: min(220px, 35vh); overflow: auto; }
.filter-option-heading { padding: 6px 4px 2px; color: var(--muted); font-size: .8rem; font-weight: 650; }
.filter-menu-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 5px; padding-top: 6px; border-top: 1px solid var(--line); }
.filter-options label { display: flex; align-items: center; gap: 7px; padding: 6px 4px; white-space: nowrap; }
.filter-options label:hover { background: #eff7f3; }
.filter-options .filter-select-all { border-bottom: 1px solid var(--line); margin-bottom: 3px; font-weight: 650; }
.filter-person-search { display: block; width: 100%; min-height: 32px; margin-bottom: 5px; padding: 5px 7px; border: 1px solid #d8e2e0; border-radius: 5px; }
.filter-no-matches { padding: 6px 4px; font-size: .86rem; }
.filter-options [hidden] { display: none; }
input[type=checkbox], .filter-options input[type=radio] { accent-color: var(--teal); }
.search-control { display: flex; align-items: center; gap: 4px; flex: 1 1 200px; min-width: 100px; max-width: 300px; padding: 0 6px; }
.search-control > span { color: #526e66; font-size: 19px; }
.search-control input { min-width: 0; width: 100%; border: 0; background: transparent; padding: 6px 0; }
.search-control.filter-applied > span, .search-control.filter-applied input { color: inherit; }
.filter-date select.filter-applied option { color: #304642; background: #fff; }
.filter-date input[type=date].filter-applied::-webkit-calendar-picker-indicator { filter: invert(1); }
.applied { margin: 0 16px 12px; display: flex; flex-wrap: wrap; gap: 5px; }
.applied span { color: #215e54; background: #edf5f1; border-radius: 5px; font-size: .78rem; padding: 4px 6px; }
.task-workspace .applied { flex-wrap: nowrap; overflow-x: auto; }
.task-workspace .applied span { flex: none; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .91rem; }
.task-table-scroll { max-height: min(65vh, 640px); }
.task-workspace .task-table-scroll { flex: 2; min-height: 0; max-height: none; overflow: auto; overscroll-behavior: contain; }
.task-ledger { min-width: 2473px; table-layout: fixed; }
.task-ledger-daily { min-width: 0; }
.task-ledger thead th { position: sticky; top: 0; z-index: 2; }
.ledger-number { width: 112px; }
.ledger-date { width: 118px; }
:is(.task-ledger-daily, .task-ledger-focus) .ledger-number { width: 94px; }
:is(.task-ledger-daily, .task-ledger-focus) .ledger-date:nth-child(2) { width: 99px; }
.ledger-title { width: 207px; }
.ledger-type { width: 118px; }
.task-ledger-focus .ledger-type { width: 94px; }
.ledger-completion { width: 230px; }
.ledger-status { width: 66px; }
.ledger-input { width: 224px; }
.ledger-warning { width: 86px; }
.ledger-overdue { width: 100px; }
.ledger-content { width: 220px; }
.task-ledger-focus .ledger-progress { width: 180px; }
.ledger-note { width: 166px; }
.ledger-overdue-explanation { width: 128px; }
.task-ledger-focus .ledger-overdue-explanation { width: 104px; }
.ledger-owner { width: 72px; }
.ledger-group { width: 100px; }
.ledger-quality-score { width: 128px; }
.ledger-score { width: 78px; }
.task-ledger td { vertical-align: top; overflow-wrap: anywhere; }
:is(.task-ledger-daily, .task-ledger-focus) :is(th, td):nth-child(2) { padding-inline: 8px; }
.task-ledger:not(.task-ledger-focus) th.ledger-type-cell { text-align: center; }
.task-ledger td.ledger-type-cell { padding-inline: 6px 1px; }
.task-ledger .ledger-status-cell { padding-inline: 6px 4px; }
.task-ledger .ledger-status-cell + :is(th, td) { padding-inline-start: 8px; }
.task-ledger-focus .ledger-overdue-explanation-cell { padding-inline: 6px; }
.task-ledger td.ledger-warning-cell { padding-inline: 6px; }
.task-ledger .ledger-title-cell { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 var(--line); }
.task-ledger thead .ledger-title-cell { z-index: 3; background: #f1f6f4; }
.task-ledger tbody tr:hover .ledger-title-cell { background: #f9fcfa; }
.completion-controls { display: flex; gap: 6px; align-items: stretch; }
.completion-controls input[name="closed_on"] { flex: 1 1 0; }
.completion-controls button { flex: 0 0 auto; }
.completion-change summary { display: flex; align-items: center; gap: 8px; list-style: none; white-space: nowrap; cursor: pointer; }
.completion-change summary::-webkit-details-marker { display: none; }
.completion-change-label { color: var(--teal); font-weight: 600; }
.completion-change-label::before { content: ""; display: inline-block; margin-inline-end: 4px; border-block: 4px solid transparent; border-inline-start: 5px solid currentColor; }
.completion-change[open] .completion-change-label::before { transform: rotate(90deg); }
.completion-change summary:hover .completion-change-label { text-decoration: underline; }
.completion-change form { margin-top: 6px; }
.completion-change .completion-controls { margin-bottom: 6px; }
.completion-change textarea { margin-bottom: 6px; }
.completion-calendar { width: min(340px, calc(100vw - 24px)); padding: 16px; background: white; color: inherit; border: 1px solid var(--line); border-radius: 12px; }
.completion-calendar::backdrop { background: #142c2a60; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.calendar-month { margin: 12px 0 8px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.calendar-grid span { padding: 4px 0; }
.calendar-grid button { min-height: 34px; padding: 0; }
.calendar-grid button:disabled { color: var(--muted); opacity: .45; cursor: default; }
.ledger-explanation { display: grid; gap: 5px; justify-items: start; }
.ledger-inline-form { display: flex; gap: 6px; align-items: stretch; }
.ledger-inline-form input[type=number] { flex: 1 1 0; }
.ledger-inline-form button { flex: 0 0 auto; }
th, td { padding: 11px 12px; border-bottom: 1px solid #eaf0ef; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 16px; }
th:last-child, td:last-child { padding-right: 16px; }
th { color: #455b56; background: #f1f6f4; white-space: nowrap; font-size: .82rem; font-weight: 700; }
td { line-height: 1.48; }
.management-table :is(th, td) { padding-block: 5px; }
.management-table .button.compact { min-height: 27px; padding-block: 3px; }
.management-table-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; scroll-padding-top: 32px; }
.management-table-scroll thead th { position: sticky; top: 0; z-index: 1; }
td small { display: block; margin-top: 2px; font-size: .76rem; }
tbody tr:hover { background: #f9fcfa; }
.task-name a { font-weight: 650; }
.task-name a:hover, .text-link:hover { text-decoration: underline; }
.text-link { color: #15675b; font-weight: 650; white-space: nowrap; }
.pill { display: inline-block; padding: 3px 7px; border-radius: 5px; font-size: .77rem; white-space: nowrap; background: #eef2f2; color: #465c58; }
.pill.routine, .pill.doing { background: #e8f1f7; color: #245976; }
.pill.focus { background: #f4edf8; color: #674782; }
.pill.done { background: #e6f3ed; color: #23634d; }
.pill.late { background: #faebea; color: #a23736; }
.pill.due-warning-15 { background: #dcecff; color: #214d86; font-weight: 650; }
.pill.due-warning-7 { background: #ffedac; color: #684500; font-weight: 650; }
.pill.due-warning-3 { background: #fbd1cd; color: #8e2726; font-weight: 650; }
.late-date { font-weight: 650; }
.table-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 16px; color: var(--muted); font-size: .84rem; }
.task-workspace .table-footer { padding-block: 8px; }
.empty { text-align: center; color: var(--muted); padding: 31px 10px !important; }
.empty strong, .empty span { display: block; }
.empty strong { color: #263b37; margin-bottom: 5px; }
.form-panel { padding: clamp(15px, 2.4vw, 24px); }
.form-panel > p, .form-panel h2, .form-panel h3 { margin-bottom: 11px; }
.form-panel h3 { margin-top: 19px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field.wide { grid-column: 1 / -1; }
.form-grid > .wide { grid-column: 1 / -1; }
.field { min-width: 0; }
.field > label, .auth-form > label { display: block; margin-bottom: 6px; font-weight: 650; }
.standard-form input:not([type=checkbox]), .standard-form select, .standard-form textarea {
  width: 100%; min-width: 0; padding: 9px 10px; min-height: 38px; background: #fff; color: #182428; border: 1px solid #d3dfdc; border-radius: 6px;
}
.standard-form textarea { resize: vertical; line-height: 1.6; }
.completion-controls input[name="closed_on"],
.completion-controls .button.compact,
.ledger-inline-form :is(input[type=number], .button.compact),
.ledger-remarks textarea {
  height: 26px; min-height: 26px; padding-block: 2px;
}
.ledger-inline-form :is(input[type=number], .button.compact) { padding-inline: 6px; }
.ledger-remarks textarea { resize: none; }
.ledger-remarks [role=status] { color: var(--muted); }
.ledger-remarks [role=status]:empty { margin: 0; }
.ledger-remarks [role=status].error { color: #a73535; }
.ledger-explanation textarea { height: 38px; }
.ledger-explanation textarea { resize: none; line-height: 18px; }
.standard-form input:disabled, .standard-form select:disabled, .standard-form textarea:disabled { background: #edf1ef; color: #526367; }
.form-actions { margin-top: 17px; }
.detail-columns { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(240px, 1fr); align-items: start; gap: 15px; }
.long-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.metadata { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 15px; row-gap: 13px; }
.metadata dd { margin: 0; overflow-wrap: anywhere; }
.metadata dt { color: var(--muted); }
.upload-form { margin-top: 15px; }
.routine-import-preview td { max-width: 280px; vertical-align: top; }
.routine-rule-name { white-space: nowrap; }
.routine-rule-name .routine-rule-number { display: inline-block; min-width: 7ch; margin: 0 8px 0 0; font-variant-numeric: tabular-nums; }
.errorlist { color: #a73535; margin: 5px 0; padding-left: 16px; }
.message { border: 1px solid #cddfdb; background: #eef7f3; color: #28564b; border-radius: 7px; padding: 9px 12px; margin-bottom: 13px; }
.message.error { background: #faedeb; border-color: #eac8c7; color: #8d2a2b; }
.report-stats { margin-top: 15px; }
.report-stats .stat { background: #f8fbfa; }
.dashboard-main { max-width: none; }
.dashboard-main > :not(.dashboard-breakdown) { flex: none; }
.dashboard-main .page-heading {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; margin-bottom: 8px;
}
.dashboard-main .page-heading .muted { margin: 0; }
.dashboard-main .tabs { margin-bottom: 8px; }
.dashboard-main .tabs a { padding-block: 5px; }
.dashboard-total { display: flex; align-items: center; gap: 10px; padding: 6px 10px; }
.dashboard-total strong { font-size: 1.55rem; line-height: 1; margin: 0; }
.dashboard-categories {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px; margin-bottom: 5px;
}
.dashboard-category { padding: 7px 9px; container-type: inline-size; }
.dashboard-category h2 { margin-bottom: 4px; font-size: 1.1rem; line-height: 1.2; }
.stats.dashboard-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 0; }
.stats.dashboard-stats.has-pending-approval { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dashboard-stats .stat { padding: 4px 3px; text-align: center; white-space: nowrap; }
.dashboard-stats .stat span { line-height: 1.25; }
.dashboard-stats .stat strong { font-size: 1.4rem; line-height: 1.1; margin-top: 2px; }
.dashboard-total:hover, .dashboard-stats a.stat:hover { border-color: #67a296; background: #f3faf7; }
.dashboard-total strong, .dashboard-stats a.stat strong { text-decoration: underline; text-underline-offset: 3px; }
.dashboard-note { margin-bottom: 7px; font-size: .85rem; }
.dashboard-breakdown { display: flex; flex-direction: column; min-height: 0; }
.dashboard-breakdown .section-title { flex: none; padding-block: 7px; }
.breakdown-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.breakdown-table { table-layout: fixed; min-width: 670px; }
.breakdown-name { width: clamp(102px, 13vw, 172px); }
.breakdown-total { width: 78px; }
.breakdown-table tbody th { padding-block: 4px; background: transparent; color: #263b37; font-size: inherit; white-space: normal; }
.breakdown-table thead { position: sticky; top: 0; z-index: 1; }
.breakdown-table thead th { padding: 3px 5px; text-align: center; }
.breakdown-table thead th:first-child[rowspan] { text-align: left; padding-left: 16px; }
.breakdown-table th[scope="colgroup"] { background: #eaf3ef; }
.breakdown-table th[scope="colgroup"], .breakdown-table .breakdown-category-start { border-left: 1px solid var(--line); }
.breakdown-table td:not(.empty) { padding: 0; text-align: center; font-variant-numeric: tabular-nums; }
.breakdown-table td a {
  display: block; padding: 4px; color: var(--teal); font-weight: 700; line-height: 1.3;
  text-decoration: underline; text-underline-offset: 3px;
}
.breakdown-table td a:hover { background: #eaf5f0; }
.breakdown-table td a:focus-visible { outline-offset: -3px; }
.auth-body { display: grid; place-items: center; padding: 22px; background: #edf3f1; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 850px; width: 100%; background: #fff; border: 1px solid #dce7e4; border-radius: 14px; overflow: hidden; }
.auth-intro { background: var(--sidebar); color: #f3faf7; min-height: 430px; padding: 29px; display: flex; flex-direction: column; justify-content: space-between; gap: 35px; }
.auth-caption { padding: 0 0 24px; }
.auth-caption h1 { font-size: clamp(2rem, 4vw, 3.05rem); }
.auth-caption p { color: #c5ddd5; margin-top: 13px; }
.auth-card { align-self: center; padding: clamp(18px, 4vw, 39px); }
.auth-card h2 { font-size: 1.52rem; margin-bottom: 15px; }
.auth-form > label { margin-top: 12px; }
.auth-form > .button { margin-top: 15px; width: 100%; }
.auth-link { color: var(--teal); margin-top: 14px; }
.auth-link a:hover { text-decoration: underline; }
.demo-access { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
.demo-access h3 { margin-bottom: 8px; color: var(--muted); font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@container (max-width: 276px) {
  .stats.dashboard-stats,
  .stats.dashboard-stats.has-pending-approval { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .dashboard-stats .stat { padding-inline: 1px; white-space: normal; }
  .dashboard-stats .stat span { font-size: .77rem; }
}
@media (max-width: 970px) {
  .workspace { grid-template-columns: 184px minmax(0, 1fr); }
  .sidebar { padding-inline: 9px; }
}
@media (max-width: 720px) {
  .workspace { display: block; }
  .viewport-workspace { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .sidebar { position: static; height: auto; padding: 10px 12px; }
  .sidebar .brand { margin: 0 0 8px; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 3px; }
  .sidebar nav a { padding: 6px; font-size: .84rem; gap: 5px; }
  .sidebar nav a span, .nav-label, .demo-note { display: none; }
  .sidebar-bottom { padding-top: 5px; }
  .profile { padding: 5px 2px 0; }
  .avatar { width: 25px; height: 25px; }
  .main { padding-top: 18px; }
  .topbar { min-height: 41px; padding-block: 5px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .stat { padding: 9px 11px; }
  .detail-columns { grid-template-columns: 1fr; }
  .task-ledger .ledger-title-cell { left: auto; box-shadow: none; }
  .viewport-workspace > .sidebar {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 8px; height: auto;
  }
  .viewport-workspace .sidebar .brand { margin: 0; gap: 6px; }
  .viewport-workspace .sidebar .brand small, .viewport-workspace .topbar { display: none; }
  .viewport-workspace .sidebar .brand-icon { width: 26px; height: 26px; flex-basis: 26px; }
  .viewport-workspace .sidebar nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: nowrap; overflow-x: auto; }
  .viewport-workspace .sidebar nav a { flex: none; white-space: nowrap; }
  .viewport-workspace .sidebar-bottom, .viewport-workspace .profile { padding: 0; border: 0; }
  .viewport-workspace .main { padding-block: 10px 8px; }
  .task-workspace .page-heading { gap: 7px; margin-bottom: 10px; }
  .task-workspace .page-heading .muted { margin-top: 2px; }
  .task-workspace .page-heading .button-row { gap: 4px; }
  .task-workspace .page-heading .button { min-height: 30px; padding: 4px 6px; font-size: .82rem; }
  .task-workspace .tabs { margin-bottom: 8px; }
  .task-workspace .section-title, .task-workspace .table-footer { padding-block: 7px; }
}
@media (max-width: 530px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-intro { min-height: 0; padding: 16px; gap: 12px; }
  .auth-caption { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .tabs a { padding-inline: 8px; }
  .dashboard-main .page-heading { grid-template-columns: minmax(0, 1fr) auto; }
  .dashboard-main .page-heading .muted { grid-column: 1 / -1; grid-row: 2; }
  .dashboard-main .tabs { margin-bottom: 6px; }
  .dashboard-total { grid-column: 2; grid-row: 1; }
  .dashboard-category { padding: 5px 6px; }
  .dashboard-stats .stat { padding-block: 3px; }
  .dashboard-stats .stat strong { font-size: 1.24rem; margin-top: 0; }
  .dashboard-note { line-height: 1.35; margin-bottom: 4px; }
  .dashboard-breakdown .section-title { padding-block: 5px; }
}

