/* Backline — Mansad. Calm green-grey neutrals, teal for actions, Mansad charcoal + gold in the brand band. */
:root {
  --bg: #f2f4f1; --surface: #ffffff; --surface-2: #eaeeea; --line: #d7ddd6;
  --ink: #17201c; --ink-2: #4b5852; --ink-3: #75817a;
  --brand: #0f5c4d; --brand-strong: #0a463a; --brand-wash: #e0eeea; --on-brand: #ffffff;
  --danger: #b3372a; --danger-wash: #f8e7e4; --warn: #96600f; --warn-wash: #f6ecd6;
  --good: #2d774a; --good-wash: #e1efe5; --info: #3d6882; --info-wash: #e4ecf1;
  --charcoal: #1f2422; --gold: #c9a54b;
  --shadow: 0 1px 2px rgba(23, 32, 28, 0.06), 0 10px 28px -14px rgba(23, 32, 28, 0.2);
  --radius: 10px;
  --f-display: "Archivo", "Arial Narrow", sans-serif;
  --f-body: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1514; --surface: #172120; --surface-2: #131b1a; --line: #2a3634;
    --ink: #e8ede9; --ink-2: #a6b2ac; --ink-3: #7d8983;
    --brand: #3fbfa5; --brand-strong: #62d6bf; --brand-wash: #14302a; --on-brand: #06130f;
    --danger: #ee7d68; --danger-wash: #36211d; --warn: #e3b055; --warn-wash: #32291a;
    --good: #6fc68c; --good-wash: #1b3023; --info: #8db8d1; --info-wash: #1b2a33;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 28px -14px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; } }

/* Mansad band at the very top (also fills the phone's status-bar area) */
.topband { height: calc(4px + env(safe-area-inset-top, 0px)); background: linear-gradient(90deg, var(--charcoal) 0 70%, var(--gold) 70% 100%); }

.logo { display: block; height: 28px; width: auto; }
.logo--dark { display: none; }
@media (prefers-color-scheme: dark) { .logo--light { display: none; } .logo--dark { display: block; } }

/* Splash */
.splash { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--ink-2); }
.splash__mark { width: 64px; height: auto; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }

/* Sign in */
.auth { min-height: 85vh; display: grid; place-content: center; padding: 32px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)); gap: 16px; }
.auth__card { width: min(420px, 100%); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.auth__card h1 { font-size: 24px; margin-top: 10px; }
.auth__logo { height: 30px; margin-bottom: 6px; }
.auth__foot { text-align: center; color: var(--ink-3); font-size: 12.5px; }
.stack { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.note { font-size: 14px; color: var(--ink-2); background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
.input--code { font-family: var(--f-mono); font-size: 22px; letter-spacing: 0.3em; text-align: center; }
.form-error { color: var(--danger); font-size: 13.5px; font-weight: 500; }

/* Shell */
.shell { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0 56px; }
.masthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 20px 16px; }
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand__logo { height: 28px; flex-shrink: 0; }
.brand__rule { width: 1px; height: 36px; background: var(--line); flex-shrink: 0; }
.brand__text { min-width: 0; }
.brand__name { font-family: var(--f-display); font-weight: 800; font-size: 22px; line-height: 1.15; }
.brand__sub { color: var(--ink-2); font-size: 12.5px; letter-spacing: 0.02em; }
.branch-picker {
  font-family: var(--f-display); font-weight: 800; font-size: 21px; line-height: 1.15; max-width: 100%;
  border: 1px solid transparent; background: transparent; color: var(--ink); padding: 0 26px 0 0; margin: 0 0 0 -2px;
  appearance: none; -webkit-appearance: none; cursor: pointer; border-radius: 6px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.branch-picker:hover { border-color: var(--line); }
.who { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.who__name { font-weight: 600; color: var(--ink); }

.tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1 0 auto; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; padding: 9px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background 0.15s ease, color 0.15s ease; }
.tabs__btn:hover { color: var(--ink); }
.tabs__btn[aria-current="page"] { background: var(--surface); color: var(--brand-strong); box-shadow: var(--shadow); }
.tabs__btn .sm { display: none; }
.tabs__badge { min-width: 20px; padding: 1px 6px; border-radius: 999px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; background: var(--danger); color: #fff; text-align: center; }

.install { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 14px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); font-size: 14px; }
.install img { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; }
.install p { flex: 1; min-width: 0; color: var(--ink-2); }

.intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-block: 22px 18px; }
.intro h1 { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.intro p { color: var(--ink-2); font-size: 14.5px; max-width: 64ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; border-radius: 8px; padding: 10px 18px; font-weight: 600; font-size: 14px; cursor: pointer; border: 1px solid transparent; transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-strong); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); background: var(--brand-wash); }
.btn--sm { padding: 6px 12px; font-size: 13px; }
.btn--block { width: 100%; padding-block: 12px; }
.btn-text { background: none; border: 0; cursor: pointer; padding: 6px 8px; border-radius: 6px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.btn-text:hover { background: var(--surface-2); color: var(--ink); }
.btn-text--danger:hover { color: var(--danger); }
.btn-text--go { color: var(--brand); }

/* Cards and forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 24px; }
.form__wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field__hint { font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
.req { color: var(--danger); }
.input, .select { min-height: 46px; }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 10px 12px; font-size: 16px; }
.textarea { resize: vertical; min-height: 104px; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px var(--brand-wash); }
.priority { border: 0; padding: 0; margin: 0; min-width: 0; }
.priority legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.priority__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick__body { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); transition: border-color 0.15s ease, background 0.15s ease; }
.pick__body strong { font-size: 14px; }
.pick__body small { color: var(--ink-3); font-size: 12px; }
.pick:hover .pick__body { border-color: var(--ink-3); }
.pick input:focus-visible + .pick__body { outline: 2px solid var(--brand); outline-offset: 2px; }
.pick input:checked + .pick__body { border-color: var(--brand); background: var(--brand-wash); }
.pick--high input:checked + .pick__body { border-color: var(--danger); background: var(--danger-wash); }
.pick--medium input:checked + .pick__body { border-color: var(--warn); background: var(--warn-wash); }
.photo-drop { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 14px; border: 1.5px dashed var(--line); border-radius: 8px; background: var(--surface-2); transition: border-color 0.15s ease, background 0.15s ease; }
.photo-drop:hover { border-color: var(--brand); background: var(--brand-wash); }
#f-photo:focus-visible + .photo-drop { outline: 2px solid var(--brand); outline-offset: 2px; }
.photo-drop__icon { width: 38px; height: 38px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; }
.photo-drop__icon svg { width: 20px; height: 20px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.photo-drop strong { display: block; font-size: 14px; }
.photo-drop small { color: var(--ink-3); font-size: 12.5px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; }
.thumb img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.thumb button { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; line-height: 1; font-size: 15px; }
.form__submit { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.aside { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.aside h2 { font-size: 15px; font-weight: 700; }
.aside ol { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.aside p { font-size: 13px; color: var(--ink-3); }

/* Overview */
.totals, .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.stat { padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat__num { display: block; font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 500; line-height: 1.2; }
.stat__label { font-size: 12px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.05em; }
.stat--danger .stat__num { color: var(--danger); }
.stat--warn .stat__num { color: var(--warn); }
.site-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.site { display: flex; flex-direction: column; gap: 12px; padding: 18px; text-align: left; cursor: pointer; border-top: 3px solid var(--good); transition: border-color 0.15s ease, transform 0.15s ease; }
.site:hover { transform: translateY(-1px); border-color: var(--brand); }
.site[data-level="warn"] { border-top-color: var(--warn); }
.site[data-level="danger"] { border-top-color: var(--danger); }
.site__name { font-family: var(--f-display); font-weight: 700; font-size: 18px; }
.site__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.site__nums b { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 20px; line-height: 1.2; }
.site__nums span { font-size: 11.5px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.04em; }
.site__note { font-size: 13px; color: var(--ink-2); }
.site__note--danger { color: var(--danger); font-weight: 600; }

/* Board */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.col__title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-family: var(--f-body); font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.col__count { font-family: var(--f-mono); font-weight: 500; color: var(--ink-3); }
.col__cards { display: flex; flex-direction: column; gap: 12px; min-height: 72px; padding: 8px; border-radius: var(--radius); background: var(--surface-2); }
.col__cards:empty::after { content: attr(data-empty); display: block; padding: 18px 8px; text-align: center; color: var(--ink-3); font-size: 13px; }
.issue-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); padding: 14px 16px; border-top: 3px solid var(--info); min-width: 0; }
.issue-card[data-priority="high"] { border-top-color: var(--danger); }
.issue-card[data-priority="medium"] { border-top-color: var(--warn); }
.issue-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 8px; }
.chip { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.chip--high { background: var(--danger-wash); color: var(--danger); }
.chip--medium { background: var(--warn-wash); color: var(--warn); }
.chip--low { background: var(--info-wash); color: var(--info); }
.ref { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.issue-card__age { margin-left: auto; font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.issue-card__title { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; font-size: 15.5px; font-weight: 700; line-height: 1.35; margin-bottom: 4px; overflow-wrap: anywhere; }
.issue-card__title:hover { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; }
.issue-card__desc { color: var(--ink-2); font-size: 13.5px; margin-bottom: 10px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.issue-card__photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; margin-bottom: 10px; }
.photo-btn { display: block; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; line-height: 0; aspect-ratio: 1 / 1; }
.photo-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.issue-card__photos--one { grid-template-columns: 1fr; }
.issue-card__photos--one .photo-btn { aspect-ratio: 16 / 9; }
.issue-card__footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.issue-card__by { font-size: 12.5px; color: var(--ink-3); }
.issue-card__actions { display: flex; gap: 2px; flex-wrap: wrap; }

/* Detail sheet */
.sheet { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45); }
.sheet::backdrop { background: rgba(8, 12, 11, 0.55); }
.sheet__inner { position: relative; padding: 26px 26px 22px; }
.sheet__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 20px; line-height: 1; }
.sheet h2 { font-size: 22px; margin: 8px 40px 6px 0; overflow-wrap: anywhere; }
.sheet__meta { color: var(--ink-3); font-size: 13px; margin-bottom: 14px; }
.sheet__desc { color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 16px; }
.sheet__photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.sheet__photos .photo-btn { aspect-ratio: 4 / 3; }
.sheet__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.history { padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.history ol { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.history li { display: flex; gap: 10px; }
.history time { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); min-width: 112px; }
.history h3 { font-family: var(--f-body); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }

.lightbox { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 32px; background: rgba(8, 12, 11, 0.9); }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.lightbox__close { position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); right: calc(20px + env(safe-area-inset-right, 0px)); width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 24px; cursor: pointer; }

/* Tables */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-2); padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .strong { font-weight: 600; }
.table .sub { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.due-input { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 6px; padding: 5px 8px; font-family: var(--f-mono); font-size: 13px; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill--ok { background: var(--good-wash); color: var(--good); }
.pill--soon { background: var(--warn-wash); color: var(--warn); }
.pill--overdue { background: var(--danger-wash); color: var(--danger); }
.pill--role { background: var(--surface-2); color: var(--ink-2); }
.row-actions { display: flex; gap: 2px; justify-content: flex-end; flex-wrap: wrap; }
.empty-note { padding: 28px 18px; text-align: center; color: var(--ink-2); font-size: 14px; }
.schedule-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.add-form { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr auto; gap: 14px; align-items: end; padding: 18px; margin-top: 16px; }
.add-form--people { grid-template-columns: 1fr 1.4fr 1fr 1fr auto; }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0 0; }
.roles div { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.roles dt { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.roles dd { margin: 0; font-size: 13px; color: var(--ink-2); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); z-index: 70; max-width: calc(100vw - 32px); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); text-align: center; }
.toast[data-kind="error"] { background: var(--danger); color: #fff; }

@media (max-width: 900px) {
  .report-grid, .board { grid-template-columns: 1fr; }
  .stats, .totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .add-form, .add-form--people { grid-template-columns: 1fr 1fr; }
  .roles { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .masthead { padding-block: 14px 12px; }
  .brand__logo { height: 22px; }
  .brand__rule { height: 30px; }
  .brand__name, .branch-picker { font-size: 18px; }
  .brand__sub { display: none; }
  .who__name { display: none; }
  .tabs__btn { padding: 10px 10px; font-size: 13px; }
  .tabs__btn .lg { display: none; }
  .tabs__btn .sm { display: inline; }
  .form { grid-template-columns: 1fr; padding: 18px; }
  .priority__row { grid-template-columns: repeat(3, 1fr); }
  .site-grid { grid-template-columns: 1fr; }
  .add-form, .add-form--people { grid-template-columns: 1fr; }
  .intro { margin-block: 18px 14px; }
  .intro h1 { font-size: 23px; }
  .sheet { max-height: calc(100vh - 24px); }
  .sheet__inner { padding: 22px 18px 18px; }
  .history time { min-width: 96px; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 14px; align-items: center; text-align: right; overflow-wrap: anywhere; }
  .table td::before { content: attr(data-label); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); flex-shrink: 0; text-align: left; }
  .table td.row-actions-cell { justify-content: flex-end; }
  .table td.row-actions-cell::before { content: none; }
}
