:root {
  color-scheme: light;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --type-control: 14px;
  --type-action: 13px;
  --type-item: 15px;
  --type-section: 16px;
  --paper: #ffffff;
  --rail: #f5f6f8;
  --ink: #20252b;
  --muted: #59616b;
  --line: #dfe3e8;
  --accent: #32664b;
  --wash: #eaf2ed;
  --accent-ink: #294e3c;
  --accent-muted: #52695b;
  --accent-line: #cfdfd4;
  --bar: #78877d;
  --bar-selected: #407055;
  --warning: #805b23;
  --warning-bg: #faf3e6;
  --error: #9a3f35;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  font: 15px/1.5 var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
::selection { background: var(--wash); color: var(--ink); }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 30px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: var(--type-section); font-weight: 600; line-height: 1.4; }
h3 { font-size: var(--type-item); font-weight: 600; line-height: 1.45; }
p { margin: 8px 0; }
a { color: var(--accent); text-underline-offset: 3px; }
button, .button, select, input, textarea { font-family: var(--font-ui); color: inherit; }
select, input, textarea { font-size: 16px; font-weight: 400; line-height: 1.5; }
button, .button {
  font-size: var(--type-control); font-weight: 500; line-height: 1.5; letter-spacing: normal;
  min-height: 40px; padding: 8px 13px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--paper); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; white-space: nowrap;
  transition: transform 120ms var(--ease-out), opacity 120ms ease;
}
button:active:not(:focus-visible), .button:active:not(:focus-visible) { transform: scale(.98); }
button:disabled { opacity: .5; cursor: wait; transform: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.primary { background: var(--accent); color: white; border-color: transparent; font-weight: 500; }
.primary svg, .upload-action svg { width: 16px; height: 16px; flex-shrink: 0; }
.muted, .empty { color: var(--muted); }
header { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; border-bottom: 1px solid var(--line); }
.brand { font-size: 23px; letter-spacing: -.04em; font-weight: 650; text-decoration: none; color: var(--ink); }
.brand small { font-size: 13px; letter-spacing: 0; font-weight: 400; color: var(--muted); margin-left: 22px; }
.header-right { display: flex; align-items: center; gap: 16px; font-size: 13px; }
#logout { min-height: 36px; background: transparent; }
.shell { display: grid; grid-template-columns: 202px minmax(0, 1fr); min-height: 100vh; }
.workspace { min-width: 0; }
.sidebar { background: #244737; color: #e7efee; padding: 28px 16px; display: flex; flex-direction: column; }
.sidebar .brand { color: #f3f7f5; font-size: 30px; padding: 0 12px; letter-spacing: -.03em; }
.object-name { margin: 32px 12px 24px; font-size: 14px; }
.sidebar small { display: block; color: #aec2c1; font-size: 12px; margin-top: 5px; }
.rail-bottom { margin: auto 12px 0; padding-top: 50px; font-size: 13px; }
.sidebar :focus-visible { outline-color: #aedab9; }
nav { padding: 0; }
nav button { display: flex; justify-content: flex-start; width: 100%; border: 0; background: transparent; text-align: left; margin-bottom: 6px; font-size: 14px; min-height: 42px; }
nav button { color: #c6d7d4; padding: 12px 10px; }
nav .selected { background: #3b624b; color: #fff; font-weight: 600; }
nav p { margin: 38px 12px 0; color: var(--muted); font-size: 12px; }
main { min-width: 0; padding: 32px 32px 48px; max-width: 1600px; width: 100%; }
header { height: 60px; font-size: 13px; }
.heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
#freshness { font-size: 12px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 14px; }
.spread { justify-content: space-between; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 282px; gap: 38px; align-items: start; }
.surface { min-width: 0; margin-bottom: 38px; overflow-wrap: anywhere; }
.surface > h2, .surface > .row { margin-bottom: 16px; }
.section-caption { color: var(--muted); font-size: 12px; margin: 5px 0 17px; }
#task-count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.table-labels { display: grid; grid-template-columns: 94px 1fr; gap: 20px; padding: 10px 0; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.task { display: grid; grid-template-columns: 94px minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 23px 0; border-bottom: 1px solid var(--line); }
.task-date { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.6; white-space: nowrap; }
.task-date small { display: block; color: var(--error); font-size: 11px; font-weight: 400; white-space: normal; }
.task p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 6px 0 0; max-width: 65ch; }
#unknown .task-date { font-weight: 400; color: var(--muted); }
.split aside { border-left: 1px solid var(--line); padding-left: 27px; }
aside .surface { margin-bottom: 34px; }
aside .task { display: flex; flex-direction: column; gap: 7px; padding: 17px 0; }
aside .task:first-child { padding-top: 0; }
aside .task-date { color: var(--muted); }
aside .muted { font-size: 13px; line-height: 1.55; }
.split aside [data-view] { width: 100%; margin-top: 14px; }
.document { padding: 17px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.document:first-child { padding-top: 0; }
.document h3 { overflow-wrap: anywhere; }
.document p { font-size: 13px; line-height: 1.55; }
.pill { display: inline-block; color: var(--muted); font-size: 12px; padding: 3px 8px; background: var(--rail); border-radius: 4px; margin: 5px 0; }
.pill[data-state='accepted'], .pill[data-state='parsed'] { color: var(--accent); background: var(--wash); }
.pill[data-state='needs_review'], .pill[data-state='checking'], .pill[data-state='partial'], .pill[data-state='ocr_required'] { color: var(--warning); background: var(--warning-bg); }
.pill[data-state='rejected'], .pill[data-state='unreadable'], .pill[data-state='retryable'] { color: var(--error); background: #faeeeb; }
.empty { padding: 21px 0; font-size: 13px; line-height: 1.6; max-width: 65ch; }
.notice { background: var(--warning-bg); color: #714e1b; padding: 14px 17px; border: 1px solid #e9d9ba; border-radius: 6px; margin-bottom: 24px; font-size: 14px; }
label { display: block; margin: 18px 0 7px; font-size: 13px; font-weight: 500; }
select, input { max-width: 100%; min-height: 44px; border: 1px solid #b6bec8; border-radius: 6px; background: white; padding: 9px 11px; caret-color: var(--accent); }
input[type='file'] { display: block; width: 100%; background: var(--paper); font-size: 14px; }
input::file-selector-button { font: inherit; padding: 6px 10px; margin-right: 12px; border: 1px solid var(--line); background: var(--rail); border-radius: 4px; cursor: pointer; }
#upload-panel, #detail { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--rail); }
#upload-panel { max-width: 700px; }
#upload-form .primary { margin-top: 16px; }
#upload-form p { max-width: 65ch; font-size: 13px; }
#upload-result { min-height: 24px; margin-top: 14px; }
#detail-body { font-size: 14px; }
.detail-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.detail-next { white-space: pre-line; max-width: 65ch; }
.detail-source { font-size: 12px; color: var(--muted); margin-top: 18px; white-space: pre-line; }
.detail-dates { display: grid; grid-template-columns: 145px 1fr; gap: 12px; margin: 0; font-size: 13px; }
.detail-dates dt { color: var(--muted); }
.detail-dates dd { margin: 0; }
#dossier-tenant { margin-bottom: 30px; min-width: 200px; }
#facts .surface { display: grid; grid-template-columns: 230px minmax(0, 1fr); column-gap: 30px; padding: 22px 0; margin: 0; border-top: 1px solid var(--line); }
#facts .surface > h2 { grid-row: 1 / span 20; }
#facts p { font-size: 14px; max-width: 75ch; margin-top: 0; }
#facts p.muted { color: var(--muted); font-size: 13px; }
.fact { white-space: pre-line; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.view-switch { display: flex; padding: 3px; background: var(--rail); border-radius: 7px; }
.view-switch button { font-size: var(--type-control); border: 0; background: transparent; min-height: 38px; }
.view-switch [aria-pressed='true'] { background: var(--wash); color: var(--accent-ink); font-weight: 600; }
.calendar-filter { position: relative; display: inline-flex; margin: 0; }
.calendar-filter select { appearance: none; -webkit-appearance: none; min-width: 176px; height: 44px; padding: 10px 40px 10px 14px; border-color: var(--accent-line); color: var(--ink); font-weight: 500; cursor: pointer; }
.select-chevron { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--accent); pointer-events: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (forced-colors: active) {
  .calendar-filter select { appearance: auto; -webkit-appearance: auto; }
  .select-chevron { display: none; }
}
.gantt-period { font-weight: 500; margin-bottom: 16px; }
.gantt-head, .gantt-row { display: grid; grid-template-columns: 215px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.gantt-head { border-top: 1px solid var(--line); }
.gantt-head > span { font-size: 12px; color: var(--muted); padding: 14px 12px 14px 0; }
.gantt-label { border: 0; border-radius: 0; display: block; white-space: normal; text-align: left; padding: 16px 12px 16px 0; background: transparent; }
.gantt-label strong { display: block; font-size: var(--type-item); font-weight: 600; line-height: 1.45; }
.gantt-label small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.gantt-row.selected { background: var(--wash); }
.gantt-row.selected .gantt-label strong { color: var(--accent-ink); }
.gantt-row.selected .gantt-label small, .gantt-row.selected .gantt-caption { color: var(--accent-muted); }
.gantt-row.selected .gantt-label { padding-left: 10px; }
.gantt-axis, .gantt-track { position: relative; min-width: 0; }
.gantt-axis { min-height: 52px; }
.gantt-tick { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); }
.gantt-axis .gantt-tick { top: 16px; bottom: auto; border: 0; transform: translateX(-50%); font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gantt-track { min-height: 98px; }
.gantt-bar { position: absolute; top: 45px; height: 12px; border-radius: 2px; background: var(--bar); }
.selected .gantt-bar { background: var(--bar-selected); }
.gantt-safe { position: absolute; top: 40px; height: 22px; width: 3px; background: var(--warning); }
.gantt-due { position: absolute; top: 46px; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg); background: var(--ink); }
.gantt-today { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--accent); pointer-events: none; }
.gantt-caption { position: absolute; top: 14px; left: 8px; right: 8px; font-size: 12px; color: var(--muted); }
.gantt-hit { position: absolute; inset: 0; width: 100%; border: 0; border-radius: 0; background: transparent; }
.gantt-hit:hover:not(:disabled) { background: transparent; }
.gantt-hit:focus-visible { outline-offset: -3px; }
.login { max-width: 480px; margin: 14vh auto; padding: 32px; }
.login h1 { margin: 34px 0 16px; }
.login .button { margin-top: 22px; }
body.stale #day-view, body.stale #calendar-view, body.stale #dossier-view { opacity: .55; }
@media (hover: hover) and (pointer: fine) {
  button:hover:not(:disabled), .button:hover { background: var(--wash); }
  .primary:hover:not(:disabled) { background: #1a4d39; }
  nav button:hover:not(:disabled) { background: #3b624b; }
  button.detail-link:hover { text-decoration: underline; text-underline-offset: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  button, .button { transition: none; }
  button:active:not(:focus-visible), .button:active:not(:focus-visible) { transform: none; }
}
@media (max-width: 1150px) {
  main { padding: 32px 28px; }
  .shell { grid-template-columns: 180px minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr) 235px; gap: 24px; }
  .split aside { padding-left: 20px; }
  .task { grid-template-columns: 82px minmax(0, 1fr); gap: 14px; }
  .task button { grid-column: 2; justify-self: start; margin-top: -7px; padding-left: 0; }
  .table-labels { grid-template-columns: 82px 1fr; gap: 14px; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 0; }
  .split aside { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; border-left: 0; padding-left: 0; }
  #facts .surface { grid-template-columns: 1fr; }
  #facts .surface > h2 { grid-row: auto; }
  .detail-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 650px) {
  header { height: 62px; padding: 0 18px; }
  .brand small { display: none; }
  .header-right { gap: 10px; font-size: 12px; }
  .shell { display: block; }
  .sidebar { display: block; padding: 16px; }
  .sidebar .brand { padding: 0; font-size: 25px; }
  .object-name, .rail-bottom { display: none; }
  nav { display: flex; flex-wrap: wrap; padding: 12px 0 0; gap: 2px; }
  nav button { width: auto; flex-shrink: 0; min-height: 44px; margin: 0; font-size: 12px; padding: 8px 9px; }
  nav p { display: none; }
  main { padding: 28px 20px 40px; }
  h1 { font-size: 27px; }
  .heading { flex-direction: column; gap: 18px; margin-bottom: 32px; }
  .heading > .upload-action { min-height: 44px; }
  .task { padding: 19px 0; grid-template-columns: 80px minmax(0, 1fr); }
  .task button { min-height: 44px; margin-bottom: -10px; }
  .split aside { display: block; }
  aside .task { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 14px; }
  aside .task button { grid-column: 2; }
  .gantt-head, .gantt-row { display: block; }
  .gantt-head > span { display: none; }
  .gantt-label { width: 100%; padding: 14px 8px 4px; }
  .gantt-track { min-height: 84px; }
  .calendar-toolbar { gap: 12px; }
  #upload-panel, #detail { padding: 18px; }
  #logout { min-height: 44px; }
}

.upload-action { background: #3b624b; color: #ffffff; border-color: #3b624b; font-size: 14px; font-weight: 500; }
.upload-action svg { color: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .upload-action:hover:not(:disabled) { background: #2d513c; border-color: #2d513c; }
}
#calendar { margin-bottom: 18px; }
.gantt-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 12px; }
.gantt-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.gantt-legend i { display: inline-block; flex-shrink: 0; }
.legend-due { width: 8px; height: 8px; background: var(--ink); transform: rotate(45deg); }
.legend-bar { width: 22px; height: 8px; background: var(--bar); border-radius: 2px; }
.legend-safe { height: 15px; border-left: 3px solid var(--warning); }
.legend-today { height: 15px; border-left: 1px dashed var(--accent); }
.calendar-note { font-size: 12px; margin-top: 12px; }

.gantt-today-label { position: absolute; bottom: 2px; font-size: 11px; color: var(--accent-ink); white-space: nowrap; }

/* Sparse accents identify sections and the currently open work item. */
.surface > h2, .surface > .row > h2 { color: var(--accent-ink); }
#task-count { background: var(--wash); color: var(--accent-ink); min-width: 26px; padding: 2px 7px; text-align: center; border-radius: 4px; }
#detail { background: #f4f8f5; border-color: var(--accent-line); }
#detail .muted, #detail .detail-source, #detail .detail-dates dt { color: var(--accent-muted); }

/* Compact the primary work list without shrinking touch targets. */
:is(#tasks, #all-cases) .task { padding-top: 14px; padding-bottom: 14px; row-gap: 4px; }
:is(#tasks, #all-cases) .task p { margin-top: 4px; }
:is(#tasks, #all-cases) .task button { margin-top: 0; margin-bottom: 0; }
@media (hover: hover) and (pointer: fine) {
  .calendar-filter select:hover { border-color: var(--accent); background: #f4f8f5; }
}

.sidebar .brand, .login .brand { display: inline-flex; align-items: center; }
.brand-lockup { display: block; width: 152px; height: auto; }
.login .brand-lockup { width: 188px; }
@media (max-width: 760px) { .sidebar .brand-lockup { width: 128px; } }

#detail-body h3 { font-size: 22px; margin: 6px 0 16px; }
#detail-body h4 { margin: 24px 0 8px; font-size: var(--type-control); font-weight: 600; line-height: 1.4; }
.detail-history strong { font-weight: 600; }
#detail-body .detail-dates { margin: 20px 0; }
#detail-body dd, #detail-body .detail-source { overflow-wrap: anywhere; }
.detail-history { list-style: none; padding: 0 0 0 14px; border-left: 2px solid var(--accent-line); }
.detail-history li { display: grid; gap: 4px; padding: 0 0 16px 10px; font-size: 14px; }
.detail-history li:last-child { padding-bottom: 0; }
.document > button, .fact-card > button { margin-top: 10px; }
.document > .detail-link { display: flex; width: max-content; margin-top: 4px; }

/* One text-action role across tasks, approvals and documents. */
button.detail-link {
  font-family: var(--font-ui);
  font-size: var(--type-action);
  font-weight: 500;
  line-height: 20px;
  letter-spacing: normal;
  min-height: 44px;
  padding: 8px 0;
  justify-content: flex-start;
}
/* Details stay text actions, including hover and pressed states. */
button.detail-link, button.detail-link:hover:not(:disabled), button.detail-link:active {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
}

/* The attention row is one accessible target; its content keeps native headings. */
:is(#tasks, #all-cases) .task { position: relative; padding-right: 32px; grid-template-columns: 94px minmax(0, 1fr); }
:is(#tasks, #all-cases) .task .task-open {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; border-radius: 4px; padding: 0 4px;
  background: transparent; color: var(--accent); justify-content: flex-end;
  transform: none;
}
.task-open svg { width: 18px; height: 18px; flex-shrink: 0; }
:is(#tasks, #all-cases) .task .task-open:focus-visible { outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) {
  :is(#tasks, #all-cases) .task:hover { background: var(--wash); }
}
@media (max-width: 1150px) {
  :is(#tasks, #all-cases) .task { grid-template-columns: 82px minmax(0, 1fr); }
  :is(#tasks, #all-cases) .task .task-open { grid-column: auto; }
}
@media (max-width: 650px) {
  :is(#tasks, #all-cases) .task { grid-template-columns: 80px minmax(0, 1fr); }
}

.case-filters { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(4, minmax(140px, 1fr)); gap: 16px; }
.case-filters label { margin: 0; }
.case-filters input, .case-filters select { display: block; width: 100%; margin-top: 6px; }
.case-note { font-size: 13px; margin: 12px 0 20px; max-width: 75ch; }
.case-actions { border-top: 1px solid var(--accent-line); margin-top: 24px; }
.action-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.case-action-form { margin-top: 20px; max-width: 640px; }
.case-action-form label { display: block; margin: 14px 0; }
.case-action-form :is(input,textarea,select) { width: 100%; margin-top: 6px; font: inherit; color: inherit; }
.case-action-form textarea { resize: vertical; min-height: 100px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.case-action-form textarea[name='comment'] { border: 1px solid var(--line); background: var(--rail); }
.case-action-form textarea[name='comment']:hover { border-color: #b8bec5; }
.case-action-form textarea[name='comment']:focus-visible { border-color: var(--muted); outline: none; }
.case-action-form textarea[name='comment']::selection { background: var(--line); color: var(--ink); }
.case-action-form fieldset { border: 0; padding: 0; margin-top: 16px; }
.case-action-form .evidence-choice { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.case-action-form .evidence-choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.proposal-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.decision-feedback { padding: 10px 0; border-bottom: 1px solid var(--line); }
.action-status { overflow-wrap: anywhere; }
body.stale #cases-view { opacity: .55; }
@media (max-width: 1150px) { .case-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .case-filters label:first-child { grid-column: 1 / -1; } }
@media (max-width: 650px) { .case-filters { gap: 12px; } }

/* A case is a full workspace; dashboard rows remain compact previews. */
#detail { padding: 0; border: 0; background: transparent; }
.back-link { min-height: 44px; margin: -8px 0 12px -8px; padding: 8px; border: 0; background: transparent; color: var(--ink); max-width: 100%; white-space: normal; text-align: left; }
.back-link svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--accent); }
#detail .muted, #detail .detail-source, #detail .detail-dates dt { color: var(--muted); }
.case-workspace { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 40px; margin-top: 28px; align-items: start; }
.case-workspace > * { min-width: 0; }
.case-workspace .case-actions { border: 0; margin: 0; }
.case-workspace h4:first-child { margin-top: 0 !important; }
.case-overview { border-left: 1px solid var(--line); padding-left: 28px; }
.case-history-section { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 4px; }
.case-history-section .detail-history { display: flex; flex-wrap: wrap; gap: 20px 40px; border: 0; padding: 0; }
.case-history-section .detail-history li { padding: 0; }
.proposal-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; max-width: 68ch; }
#approvals .task h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#approvals .task p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media(max-width: 1050px) {
  .case-workspace { grid-template-columns: minmax(0, 1.2fr) minmax(250px, 1fr); gap: 24px; }
  .case-overview { padding-left: 20px; }
}
@media(max-width: 760px) {
  .case-workspace { grid-template-columns: 1fr; gap: 28px; }
  .case-overview { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
}

.tenant-name { color: var(--accent); font-weight: 600; }
.detail-tenant { font-size: 30px; font-weight: 600; line-height: 1.2; color: var(--accent); overflow-wrap: anywhere; }
#detail-subtitle { font-size: 20px; font-weight: 400; line-height: 1.4; margin-top: 8px; overflow-wrap: anywhere; }
#detail-status { margin-top: 14px; }

#login-form { margin-top: 28px; max-width: 380px; }
#login-form label { display: block; margin: 18px 0; font-size: var(--type-control); font-weight: 500; }
#login-form input { display: block; width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--rail); color: var(--ink); font: inherit; }
#login-form input:focus-visible { border-color: var(--muted); outline: 1px solid var(--muted); outline-offset: 1px; }
#login-form button { width: 100%; }
#login-status { font-size: var(--type-control); }

#notification-count { margin-left: 6px; font-size: 12px; }
.notification-filters { gap: 8px; margin-bottom: 12px; }
.notification-filters button[aria-pressed='true'] { background: var(--wash); border-color: var(--accent-line); color: var(--accent-ink); }
.notification-row { border-bottom: 1px solid var(--line); }
.notification-open { position: relative; display: grid; justify-content: stretch; gap: 5px; width: 100%; padding: 20px 24px; border: 0; border-radius: 0; text-align: left; background: transparent; font-weight: 400; }
.notification-row.unread .notification-open::before { content: ''; position: absolute; top: 27px; left: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.notification-open:hover { background: var(--wash); }
.notification-open strong { font-size: var(--type-item); font-weight: 600; }
.notification-kind { font-size: var(--type-control); }
