@font-face {
  font-family: "Noto Sans";
  src: url("./assets/regular.ttf") format("truetype");
  font-weight: 400 500;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url("./assets/bold.ttf") format("truetype");
  font-weight: 600 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f2f1ed;
  --surface: #fffefb;
  --surface-muted: #f8f7f2;
  --ink: #1c2b29;
  --muted: #52615c;
  --line: #dfdfd6;
  --bronze: #785438;
  --bronze-soft: #ede4d7;
  --green: #285b4a;
  --green-soft: #e6efe8;
  --negative: #913c31;
  --negative-soft: #fbefeb;
  --sidebar: #152628;
  --sidebar-text: #d0dbd6;
  --sidebar-muted: #a5b5af;
  --sidebar-active: #32423e;
  --view-padding: clamp(18px, 2.7vw, 40px);
  --shadow: 0 2px 3px #17262006, 0 12px 28px -24px #17262035;
  --radius: 12px;
  font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body[data-sector="insaat"] {
  --sidebar: #1b2833;
  --sidebar-active: #31424c;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
img, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:not(:disabled), summary, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .56; }
:focus-visible { outline: 3px solid #996642; outline-offset: 3px; }
[hidden] { display: none !important; }
::selection { background: #e8d6be; color: var(--ink); }

h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.22; }
h2 { font-size: clamp(18px, 2vw, 23px); letter-spacing: -.035em; }
h3 { font-size: 16px; letter-spacing: -.025em; }
p + p { margin-top: 10px; }
dl, ol, ul { margin-block: 0; }

.shell {
  display: grid;
  grid-template-columns: clamp(205px, 18vw, 238px) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px 17px 21px;
  background: var(--sidebar);
  color: var(--sidebar-text);
}

.brand {
  display: block;
  width: fit-content;
  margin: 0 6px 22px;
}

img.brand, .brand img {
  width: 147px;
  height: auto;
  object-fit: contain;
}

.sector-brand {
  display: grid;
  gap: 5px;
  margin: 0 6px 22px;
  padding-top: 16px;
  border-top: 1px solid #ffffff21;
  color: var(--sidebar-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.sector-brand strong, .sector-brand b {
  color: #fffdf7;
  font-size: 15px;
}

.steps { display: grid; gap: 4px; }
.nav-caption {
  margin: 10px 10px 3px;
  color: var(--sidebar-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 43px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--sidebar-text);
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
}

.step:hover { background: #ffffff0a; }
.step:is([aria-current="step"], [aria-current="page"]) {
  border-color: #e2b78d3d;
  background: var(--sidebar-active);
  color: #fffdf7;
  font-weight: 700;
}

.step-index {
  flex: 0 0 24px;
  display: grid;
  place-content: center;
  height: 24px;
  border: 1px solid #ffffff2b;
  border-radius: 6px;
  color: var(--sidebar-text);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.step:is([aria-current="step"], [aria-current="page"]) .step-index {
  color: #2b251e;
  background: #dab38b;
  border-color: #dab38b;
}

.nav-count {
  min-width: 20px;
  margin-left: auto;
  padding: 2px 5px;
  border-radius: 5px;
  background: #ffffff16;
  color: #fffdf7;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.sidebar :focus-visible { outline-color: #e2b78d; }

.sidebar-foot {
  margin: auto 6px 0;
  padding-top: 20px;
  color: var(--sidebar-muted);
  font-size: 12px;
  line-height: 1.6;
}

.sidebar-foot p, .sidebar-foot .muted { color: inherit; }

.workspace { min-width: 0; }
.topbar {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 11px var(--view-padding);
  border-bottom: 1px solid var(--line);
  background: #fbfaf6;
}

.topbar-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 13px;
  min-width: 0;
  font-size: 13px;
  color: var(--muted);
}
.topbar-info strong { color: var(--ink); }

.workspace-location {
  display: grid;
  gap: 1px;
  min-width: 0;
  line-height: 1.35;
}
.workspace-location strong { color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.workspace-location-label { color: var(--muted); font-size: 11px; }
.topbar-context { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; color: var(--muted); font-size: 12px; }

.demo-pill, .status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 99px;
  color: var(--bronze);
  background: var(--bronze-soft);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.35;
}

.demo-pill { white-space: nowrap; }
.reset-button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.reset-button:hover, .button.secondary:hover { background: var(--surface-muted); border-color: #a9b1a8; }
.button.primary {
  border-color: #284c40;
  background: #284c40;
  color: #fffef9;
}

.button.primary:hover:not(:disabled) { border-color: #16392e; background: #16392e; }

#content {
  width: 100%;
  max-width: 1430px;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(18px, 2.5vw, 36px) var(--view-padding) 43px;
}

#content:focus { outline: none; }
.page-intro {
  display: grid;
  gap: 7px;
  margin-bottom: 21px;
}

.eyebrow {
  width: fit-content;
  color: var(--bronze);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.page-intro h1 {
  max-width: 30ch;
  font-size: clamp(28px, 3.35vw, 45px);
  font-weight: 700;
  line-height: 1.09;
  letter-spacing: -.062em;
  text-wrap: balance;
}

.page-intro p:not(.eyebrow) { max-width: 74ch; color: var(--muted); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(16px, 3vw, 34px);
  margin-bottom: 14px;
  padding: clamp(17px, 2.6vw, 30px);
  border: 1px solid #243c3c;
  border-radius: var(--radius);
  background: linear-gradient(108deg, #13282b, #20373a);
  color: #f8f5ed;
  box-shadow: 0 14px 35px -29px #0f2529b0;
}
body[data-sector="insaat"] .hero { background: linear-gradient(108deg, #172a37, #273a46); }
.hero-content { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; }
.hero-content h1 {
  font-size: clamp(26px, 3.25vw, 45px);
  line-height: 1.1;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero .eyebrow { color: #e4bc96; }
.hero p { margin-top: 0; color: #d1dcd8; font-size: 13px; }
.hero .actions { justify-content: flex-start; margin-top: 4px; }
.hero .button { min-height: 37px; border-color: #ffffff34; color: #fffdf7; background: #ffffff0b; }
.hero .button:hover { border-color: #dfb28a; background: #ffffff18; }
.hero .button.primary { border-color: #d9ac81; background: #ddb48b; color: #25231e; }
.hero .button.primary:hover { background: #e9c9a5; }
.hero-signal {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding: 13px 17px;
  border: 1px solid #ffffff2c;
  border-radius: 9px;
  background: #101e2361;
  color: #dfebe6;
  font-size: 12px;
}
.hero-signal strong {
  color: #f3c39e;
  font-size: clamp(25px, 3.3vw, 42px);
  line-height: 1.06;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.hero-signal p, .hero-signal span:last-child { color: #c3d2cd; font-size: 12px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
  gap: 9px;
  margin-bottom: 15px;
}

.metric, .panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 99px;
  padding: 12px 14px;
}

.metric-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-value, .risk-value {
  color: var(--ink);
  font-size: clamp(22px, 2.24vw, 32px);
  line-height: 1.2;
  letter-spacing: -.05em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.metric-help { margin-top: auto; color: var(--muted); font-size: 12px; }
.panel { padding: clamp(14px, 1.65vw, 22px); margin-bottom: 14px; }

.section-head {
  margin-bottom: 13px;
}

.section-head p { margin-top: 5px; color: var(--muted); font-size: 13px; }

.split {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 16px;
}

.split > * { min-width: 0; }
.side-stack { display: grid; gap: 13px; }
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 1fr);
  align-items: start;
  gap: 13px;
}
.dashboard-grid > * { min-width: 0; }
.trend-panel .chart { height: clamp(182px, 22vw, 250px); }

.watchlist, .activity-list { display: grid; margin: 0; padding: 0; list-style: none; }
.watch-row, .activity-row { min-width: 0; border-top: 1px solid var(--line); padding: 11px 0; }
.watch-row:last-child, .activity-row:last-child { padding-bottom: 0; }
.watch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 11px;
  align-items: start;
}
.watch-main { min-width: 0; }
.watch-main :is(strong, h3), .activity-body strong { display: block; font-size: 13px; line-height: 1.35; }
.watch-main .status-chip + h3 { margin-top: 5px; }
.watch-main :is(p, small), .activity-body :is(p, small) {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.watch-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 5px 8px; }
.watch-actions .status-chip { white-space: nowrap; }
.activity-row { display: grid; grid-template-columns: minmax(70px, auto) minmax(0, 1fr); gap: 10px; align-items: start; }
.activity-time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.activity-body { min-width: 0; }

.risk-card {
  display: grid;
  gap: 7px;
  padding: 15px 17px;
  border: 1px solid #e9cec3;
  border-inline-start: 4px solid #aa5346;
  border-radius: 10px;
  background: var(--negative-soft);
}

.risk-card.safe {
  border-color: #c8dbcb;
  border-inline-start-color: var(--green);
  background: var(--green-soft);
}

.risk-card p { max-width: 76ch; }
.risk-card .risk-value, .risk-card.danger .risk-value { color: var(--negative); }
.risk-card.safe .risk-value { color: var(--green); }

.muted { color: var(--muted); }
.negative { color: var(--negative); }
.positive, .incoming { color: var(--green); }
.nowrap { white-space: nowrap; }
.note {
  padding: 11px 13px;
  border: 1px solid #e3dacc;
  border-radius: 8px;
  background: #f8f3eb;
  color: #514333;
  font-size: 13px;
}

:is(.risk-card, .table-wrap, .chart, .choice-grid, .note, details) + :is(.risk-card, .table-wrap, .legend, .chart, .note, details, .decision-form) {
  margin-top: 12px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
}

.data-table th, .data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e9e8e0;
  text-align: left;
  vertical-align: top;
}

.data-table th { background: var(--surface-muted); color: var(--muted); font-size: 12px; }
.data-table tbody tr:last-child :is(td, th) { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfaf7; }
.data-table :is(.amount, .numeric, .number, .num) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table :is(.date, time) { white-space: nowrap; }
.data-table .muted { margin-top: 3px; font-size: 11px; }

.records-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 11px;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.filter-group button {
  min-height: 34px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.filter-group button:hover { border-color: #a9afa5; color: var(--ink); }
.filter-group button:is(.selected, [aria-pressed="true"]) {
  border-color: #a19b8d;
  background: #eae9e1;
  color: var(--ink);
}
.search-field { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--muted); font-size: 12px; }
:is(input.search-field, .search-field input) {
  flex: 1 1 138px;
  min-width: 0;
  min-height: 35px;
  max-width: 280px;
  padding: 5px 9px;
  border: 1px solid #b9c1b8;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}
.record-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  text-underline-offset: 3px;
}
.record-link:hover { text-decoration: underline; }
.data-table .record-link { font-size: 13px; }
#record-count { margin-bottom: 8px; font-size: 12px; }

.panel > p + .button { margin-top: 12px; }
.note + .choice-grid { margin-top: 12px; }

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 13px;
}

details summary {
  padding: 10px 13px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

details[open] summary { margin-bottom: 2px; }
details > :not(summary) { margin: 0 13px 12px; }
details > .table-wrap { width: auto; }
.data-table details { border: 0; background: transparent; }
.data-table details summary { padding: 0; }
.data-table details > :not(summary) { margin: 5px 0 0; }
details.panel { padding: 0; }
details.panel summary { padding: 13px 16px; }
details.panel > :not(summary) { margin-inline: 16px; }

.status-chip:is(.good, .safe, .positive, [data-tone="good"]) { background: var(--green-soft); color: var(--green); }
.status-chip:is(.danger, .negative, [data-tone="risk"]) { background: var(--negative-soft); color: var(--negative); }
.status-chip[data-tone="warn"] { background: #f4e8d3; color: #714c23; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 17px;
}

.choice-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.choice {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 7px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  text-align: left;
  overflow-wrap: anywhere;
}

.choice:hover { background: #faf7ef; border-color: #a58565; }
.choice:is(.selected, [aria-pressed="true"]) {
  border-color: #8d6b4b;
  background: #f5ede1;
  box-shadow: inset 0 -2px #a27c55;
}

.choice strong { font-size: 14px; }
.choice span:nth-child(2) { color: var(--muted); }
.choice span:last-child { font-size: 12px; font-weight: 700; }

.decision-form { display: grid; gap: 13px; }
.decision-form .actions { margin-top: 3px; }
.decision-form label:not(.check-label) { display: grid; gap: 5px; color: var(--ink); font-size: 13px; font-weight: 700; }
.decision-form :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  width: 100%;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid #b8c0b7;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font-weight: 400;
}

.decision-form textarea { min-height: 85px; resize: vertical; }
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 36px;
  padding: 5px 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

input:is([type="radio"], [type="checkbox"]) { accent-color: var(--green); }
.check-label input { flex: 0 0 16px; height: 16px; margin: 2px 0 0; }
.check-label small { display: block; color: var(--muted); }

.legend, .chart-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 16px;
  color: var(--muted);
  font-size: 12px;
}

.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.swatch {
  display: inline-block;
  width: 21px;
  border-top: 3px solid var(--bronze);
  border-radius: 2px;
}

.swatch.selected-line { border-color: var(--green); }
.chart { display: block; width: 100%; max-width: 100%; height: clamp(190px, 26vw, 305px); }
.chart-dates { justify-content: space-between; }
.note + .legend { margin-top: 12px; }
.empty {
  padding: 23px;
  border: 1px dashed #bcc4ba;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.form-error { margin: 0; color: var(--negative); font-size: 13px; font-weight: 700; }
.form-error:empty { display: none; }

.modal {
  position: fixed;
  width: min(480px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 80px #101e2460;
}

.modal h2 { margin-bottom: 8px; }
.modal::backdrop { background: #12222091; }

.record-drawer.modal {
  inset: 0 0 0 auto;
  width: min(510px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-inline-start: 1px solid var(--line);
  border-radius: 0;
}
.drawer-head {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  z-index: 1;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.drawer-head h2 { margin: 3px 0 0; }
.drawer-head p:not(.eyebrow) { color: var(--muted); font-size: 12px; }
.drawer-close {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.drawer-close:hover { border-color: #a39f94; }
.drawer-body { padding: 18px 20px 24px; }
.drawer-body > * + * { margin-top: 14px; }
.record-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: baseline; gap: 0; }
.record-facts > div { display: grid; grid-template-columns: subgrid; grid-column: span 2; }
.record-facts :is(dt, dd) { margin: 0; padding: 8px 6px; border-bottom: 1px solid var(--line); font-size: 13px; }
.record-facts dt { color: var(--muted); }
.record-facts dd { font-weight: 700; overflow-wrap: anywhere; }
:target { scroll-margin-top: 80px; }

@media (max-width: 1050px) {
  .split { grid-template-columns: 1fr; gap: 12px; }
  .split > .panel { margin-bottom: 0; }
  .split + .panel { margin-top: 16px; }
}

@media (max-width: 1130px) {
  .dashboard-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 800px) {
  .shell { display: block; }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 9px 15px;
    min-height: 0;
    padding: 13px var(--view-padding);
  }
  .brand { margin: 0; }
  img.brand, .brand img { width: 120px; }
  .sector-brand { margin: 0; padding: 0; border: 0; }
  .steps {
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }
  .nav-caption { grid-column: 1 / -1; margin: 3px 4px 1px; }
  .step { gap: 6px; padding: 6px; }
  .sidebar-foot { display: none; }
  .topbar { min-height: 58px; padding-block: 8px; }
  .choice-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { grid-template-columns: 1fr; gap: 11px; }
  .hero-signal { padding: 10px 12px; }
  .hero-content h1 { text-wrap: initial; }
  .topbar-context { row-gap: 4px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 490px) {
  :root { --view-padding: 14px; }
  .sidebar { gap: 11px 12px; }
  img.brand, .brand img { width: 98px; }
  .sector-brand, .sector-brand strong { font-size: 12px; }
  .step { min-height: 40px; }
  .topbar { position: static; gap: 7px; }
  .topbar-info { flex: 1 1 155px; gap: 3px 8px; font-size: 12px; }
  .reset-button { min-height: 38px; padding: 6px 10px; font-size: 12px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metric { min-height: 98px; padding: 12px; }
  .metric-help { font-size: 11px; }
  .metric-value { font-size: 21px; }
  .data-table th, .data-table td { padding: 9px 10px; }
  .watch-row { grid-template-columns: 1fr; gap: 2px; }
  .watch-actions { justify-content: flex-start; }
  .watch-actions .record-link { min-height: 33px; }
  .topbar-info > .topbar-context { flex-basis: 100%; }
  .actions > :is(button, a) { flex: 1 1 125px; }
  .hero .actions > :is(button, a) { flex: 0 1 auto; }
}

@media (min-width: 440px) and (max-width: 490px) {
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .record-drawer .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-value { font-size: 20px; }
}

@media (max-width: 379px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: no-preference) {
  .button, .reset-button, .step, .choice, .filter-group button { transition: background-color .15s ease, border-color .15s ease; }
}
