/* HoseLog design system. Primary green #0D8241 + near-black ink. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* brand */
  --brand: #0D8241;
  --brand-hover: #0A6C36;
  --brand-ink: #075A2C;
  --brand-50: #EAF5EE;
  --brand-100: #D3EBDC;
  /* neutrals (slightly cool steel) */
  --ink: #0E1411;
  --ink-2: #3B4540;
  --muted: #66716B;
  --line: #E3E7E4;
  --line-2: #D2D8D4;
  --bg: #F5F7F6;
  --panel: #FFFFFF;
  --sunken: #F0F3F1;
  /* status */
  --ok: #0D7A3E;     --ok-bg: #E6F4EB;
  --warn: #8A5300;   --warn-bg: #FFF1D6;   --warn-dot: #E89A0C;
  --bad: #B42318;    --bad-bg: #FDECEA;    --bad-dot: #D92D20;
  --neutral: #4B5550; --neutral-bg: #EEF1EF;
  /* shape */
  --r-sm: 6px; --r: 10px; --r-lg: 14px;
  --shadow-1: 0 1px 2px rgba(16, 24, 20, .06);
  --shadow-2: 0 1px 3px rgba(16, 24, 20, .08), 0 4px 16px rgba(16, 24, 20, .06);
  --focus: 0 0 0 3px rgba(13, 130, 65, .28);
  --sidebar-w: 248px;

  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); min-height: 100vh; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }
h1 { font-size: 1.6rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; margin: 0; }
h2 { font-size: 1rem; font-weight: 650; letter-spacing: -.005em; margin: 0 0 .9rem; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em; background: var(--sunken); padding: .1em .35em; border-radius: 4px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(to right, var(--panel) calc(var(--sidebar-w) - 1px), var(--line) 0 var(--sidebar-w), transparent 0); }
body.no-chrome .shell { grid-template-columns: minmax(0, 1fr); }
main { padding: 2rem 2.25rem 4rem; max-width: 1280px; width: 100%; }
body.no-chrome main { max-width: none; padding: 0; }

.sidebar {
  position: sticky; top: 0; height: 100vh; align-self: start; display: flex; flex-direction: column;
  background: var(--panel); border-right: 1px solid var(--line); padding: 1.1rem .85rem 1rem;
}
.sidebar[hidden] { display: none; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: .35rem .7rem 1.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.wordmark { display: block; height: 24px; width: auto; }
.login-hero .wordmark { height: 33px; }
.menu-toggle { display: none; border: 0; background: transparent; padding: .35rem; color: var(--ink); cursor: pointer; }

#nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
#nav .nav-label { font-size: .7rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 1rem .7rem .35rem; }
#nav a {
  display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: var(--r-sm);
  color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .93rem;
}
#nav a svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
#nav a:hover { background: var(--sunken); color: var(--ink); }
#nav a.active { background: var(--brand-50); color: var(--brand-ink); }
#nav a.active svg { color: var(--brand); }

.sidebar-foot { border-top: 1px solid var(--line); padding: .9rem .45rem 0; display: grid; gap: .9rem; }
.user { display: flex; align-items: center; gap: .6rem; font-size: .88rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-100); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; }
.user .who { min-width: 0; flex: 1; line-height: 1.25; }
.user .who a { color: var(--ink); text-decoration: none; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user .who span { color: var(--muted); font-size: .78rem; text-transform: capitalize; }
.icon-btn { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: var(--r-sm); width: 32px; height: 32px; display: grid; place-items: center; padding: 0; cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn svg { width: 16px; height: 16px; }
.lockup { display: flex; flex-direction: column; gap: 3px; }
.by { color: var(--muted); font-size: .72rem; line-height: 1; padding-left: 2px; }
.login-hero .by { font-size: .8rem; }
.login-hero .by { color: rgba(255, 255, 255, .7); }

/* ---------- page furniture ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head .sub { color: var(--muted); margin: .35rem 0 0; font-size: .95rem; }
.crumb { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; color: var(--muted); text-decoration: none; margin-bottom: .5rem; }
.crumb:hover { color: var(--ink); }
.crumb svg { width: 15px; height: 15px; }
.crumb { white-space: nowrap; }
table, .stat .n, dl.facts dd, .meter + .row { font-variant-numeric: tabular-nums; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.35rem 1.5rem; margin-bottom: 1.25rem; box-shadow: var(--shadow-1); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.panel-head h2 { margin: 0; display: flex; align-items: center; gap: .55rem; }
.panel-head h2 svg { width: 18px; height: 18px; color: var(--muted); }
.empty h1 svg, .empty > svg { display: block; margin: 0 auto .4rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.cols > .panel { margin-bottom: 0; }
.stack > * + * { margin-top: 1.25rem; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.05rem 1.15rem; text-decoration: none; color: inherit; box-shadow: var(--shadow-1);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.stat:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-1px); color: inherit; }
.stat .top { display: flex; align-items: center; justify-content: space-between; }
.stat .l { color: var(--muted); font-size: .84rem; font-weight: 550; }
.stat .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--sunken); color: var(--ink-2); }
.stat .ic svg { width: 16px; height: 16px; }
.stat .n { font-size: 2rem; font-weight: 750; letter-spacing: -.03em; margin-top: .45rem; line-height: 1.1; }
.stat.good .ic { background: var(--ok-bg); color: var(--ok); }
.stat.warn .ic { background: var(--warn-bg); color: var(--warn); }
.stat.bad .ic { background: var(--bad-bg); color: var(--bad); }
.stat.bad .n { color: var(--bad); }
.stat.warn .n { color: var(--warn); }
.stat.zero .n { color: var(--ink); }

.meter { height: 8px; border-radius: 999px; background: var(--sunken); overflow: hidden; display: flex; }
.meter span { display: block; height: 100%; }
.cols-hose { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.cols-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); margin-bottom: 1.25rem; }
.notice { display: flex; gap: .75rem; align-items: center; background: var(--warn-bg); border-color: #F3DDB0; color: var(--ink); }
.notice svg { width: 20px; height: 20px; color: var(--warn); flex: none; }
.next-action { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 1.5rem; }
.next-action .na-what { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; margin-top: .15rem; }
.next-action.bad { background: var(--bad-bg); border-color: #F1C3BE; }
.next-action.bad .na-what { color: var(--bad); }
.na-grid { display: flex; gap: 2rem; justify-content: flex-end; flex-wrap: wrap; }
.na-grid div { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.na-grid span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.na-grid strong { font-size: 1rem; }
.hero-stat { display: flex; flex-direction: column; justify-content: space-between; gap: .75rem; }
.big-pct { font-size: 3.6rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--brand); }
.big-pct span { font-size: 1.8rem; margin-left: .1rem; letter-spacing: 0; }
.big-pct.warn { color: var(--warn); } .big-pct.bad { color: var(--bad); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--warn-dot); color: #fff; font-size: .72rem; font-weight: 700; }
.hose-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { font-size: .78rem; font-weight: 600; padding: .1rem .45rem; border-radius: 5px; background: var(--sunken); color: var(--ink-2); text-decoration: none; border: 1px solid var(--line); }
.chip:hover { border-color: var(--brand); color: var(--brand-ink); }
td .small svg { width: 13px; height: 13px; vertical-align: -2px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -1.5rem; padding: 0 1.5rem; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
th, td { text-align: left; padding: .7rem .75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; white-space: nowrap; background: var(--panel); }
th a { color: inherit; text-decoration: none; }
th a:hover { color: var(--ink); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.link { cursor: pointer; }
tbody tr.link:hover td { background: #F7FAF8; }
td strong { font-weight: 650; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem; padding: .18rem .6rem .18rem .5rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; white-space: nowrap; line-height: 1.4;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.b-ok { background: var(--ok-bg); color: var(--ok); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-warn::before { background: var(--warn-dot); }
.b-bad { background: var(--bad-bg); color: var(--bad); }
.b-bad::before { background: var(--bad-dot); }
.b-neutral { background: var(--neutral-bg); color: var(--neutral); }
.badge.plain::before { display: none; }

/* ---------- buttons ---------- */
button, .btn {
  font: inherit; font-size: .9rem; font-weight: 600; line-height: 1.2;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--ink);
  padding: .55rem .95rem; border-radius: var(--r-sm); cursor: pointer; text-decoration: none;
  box-shadow: var(--shadow-1); transition: background .12s, border-color .12s, color .12s;
}
button:hover, .btn:hover { background: var(--sunken); color: var(--ink); }
button svg, .btn svg { width: 16px; height: 16px; flex: none; }
button.primary, .btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
button.primary:hover, .btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
button.danger { color: var(--bad); border-color: #F1C3BE; }
button.danger:hover { background: var(--bad-bg); }
button.sm, .btn.sm { padding: .32rem .6rem; font-size: .8rem; }
button:disabled { opacity: .55; cursor: default; }

/* ---------- forms ---------- */
input, select, textarea {
  font: inherit; font-size: .93rem; padding: .55rem .7rem; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); width: 100%; transition: border-color .12s, box-shadow .12s;
}
input::placeholder, textarea::placeholder { color: #98A29C; }
input:hover, select:hover, textarea:hover { border-color: #BCC4BF; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
input[type="file"] { padding: .45rem; background: var(--sunken); }
textarea { min-height: 84px; resize: vertical; }
label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: .35rem; }
.hint { color: var(--muted); font-size: .78rem; margin-top: .3rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
fieldset { border: none; padding: 0 0 1.4rem; margin: 0 0 1.4rem; border-bottom: 1px solid var(--line); }
fieldset:last-of-type { border-bottom: 0; margin-bottom: .5rem; }
legend { font-weight: 650; font-size: .98rem; margin-bottom: .9rem; padding: 0; }
.filters { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(140px, 1fr)); gap: .65rem; margin-bottom: 1rem; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search-wrap input { padding-left: 2.1rem; }
.error { color: var(--bad); font-size: .88rem; min-height: 1.2em; margin: .5rem 0; }
.form-actions { display: flex; gap: .6rem; align-items: center; padding-top: .25rem; }

/* ---------- definition lists ---------- */
dl.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem 1.25rem; margin: 0; }
dl.facts dt { font-size: .75rem; color: var(--muted); font-weight: 550; text-transform: uppercase; letter-spacing: .05em; }
dl.facts dd { margin: .2rem 0 0; font-weight: 550; }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 1.1rem 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: .45rem; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 1.2rem; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .t-what { font-weight: 600; text-transform: capitalize; }
.timeline .t-meta { color: var(--muted); font-size: .82rem; }
.timeline ul { margin: .35rem 0 0; padding: 0; list-style: none; font-size: .84rem; color: var(--ink-2); }
.timeline ul li { padding: .1rem 0; }
.timeline ul li::before, .timeline ul li::after { display: none; }
.timeline .from { color: var(--muted); text-decoration: line-through; }

/* ---------- empty states ---------- */
.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.empty svg { width: 34px; height: 34px; color: var(--line-2); margin-bottom: .4rem; }

/* ---------- toast ---------- */
#toast {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translate(-50%, 8px); background: var(--ink); color: #fff;
  padding: .7rem 1.1rem; border-radius: var(--r); opacity: 0; transition: opacity .18s, transform .18s; pointer-events: none;
  box-shadow: var(--shadow-2); font-size: .9rem; font-weight: 550; z-index: 50;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- login ---------- */
.login-wrap { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.login-hero {
  position: relative; overflow: hidden; color: #fff; padding: 3rem 3.5rem; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(1200px 600px at -10% 110%, #12A353 0%, transparent 55%), linear-gradient(160deg, #0A5E30 0%, #0D8241 55%, #0B6E37 100%);
}
.login-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: repeating-linear-gradient(115deg, #fff 0 1px, transparent 1px 34px);
}
.login-hero > * { position: relative; z-index: 1; }
.login-hero .brand { color: #fff; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .4rem; vertical-align: 0; }
.login-hero h1 { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -.035em; line-height: 1.05; max-width: 14ch; }
.login-hero p { font-size: 1.05rem; color: rgba(255, 255, 255, .85); max-width: 40ch; margin: 1rem 0 0; }
.login-hero ul { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .7rem; }
.login-hero li { display: flex; gap: .65rem; align-items: center; color: rgba(255, 255, 255, .92); }
.login-hero li svg { width: 18px; height: 18px; flex: none; }
.login-form { display: grid; place-items: center; padding: 3rem 1.5rem; background: var(--panel); }
.login-form form { width: 100%; max-width: 360px; }
.login-form h2 { font-size: 1.5rem; letter-spacing: -.02em; margin: 0 0 .35rem; font-weight: 700; }
.login-form .field { margin-bottom: 1rem; }
.login-form button.primary { width: 100%; padding: .75rem; font-size: .95rem; margin-top: .5rem; }

/* ---------- QR labels ---------- */
.labels { display: grid; grid-template-columns: repeat(auto-fill, 3.5in); gap: .15in; }
.label {
  width: 3.5in; height: 1.5in; background: #fff; border: 1px dashed #AEB6B1; border-radius: 8px; color: #000;
  display: flex; gap: .12in; align-items: center; padding: .1in .12in; overflow: hidden; break-inside: avoid;
}
.label > img { width: 1.25in; height: 1.25in; flex: none; }
.label > div { font-size: 8.5pt; line-height: 1.3; min-width: 0; flex: 1; }
.label > div div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.label .ln { font-size: 14pt; font-weight: 800; letter-spacing: -.01em; }
.label .code { font-family: ui-monospace, Menlo, monospace; color: #444; margin-top: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .filters { grid-template-columns: 1fr 1fr 1fr; }
  .filters .search-wrap { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .shell { background: none; grid-template-rows: auto 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 20; height: auto; padding: .6rem 1rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-head { padding: 0; }
  .menu-toggle { display: inline-flex; box-shadow: none; }
  #nav, .sidebar-foot { display: none; }
  .sidebar.open #nav { display: flex; padding-top: .6rem; }
  .sidebar.open .sidebar-foot { display: grid; margin-top: .5rem; }
  main { padding: 1.25rem 1rem 3rem; }
  .cols, .cols-hero, .cols-hose { grid-template-columns: minmax(0, 1fr); }
  dl.facts { grid-template-columns: 1fr 1fr; }
  .next-action { grid-template-columns: 1fr; gap: .75rem; }
  .na-grid { justify-content: flex-start; gap: 1.25rem; }
  .page-head .actions { width: 100%; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-hero { padding: 2rem 1.5rem; }
  .login-hero ul { display: none; }
  .panel { padding: 1.1rem 1rem; }
  .table-wrap { margin: 0 -1rem; padding: 0 1rem; }
  }
@media (max-width: 560px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .stat .n { font-size: 1.6rem; }
  h1 { font-size: 1.35rem; }
  .tag { padding: 14px 24px 14px 22px; font-size: 12px; }
  .tag-qr { width: 76px; height: 76px; }
}

/* ---------- print ---------- */
@media print {
  .sidebar, .no-print, #toast { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
  main { padding: 0; max-width: none; }
    .labels { gap: .1in; }
  .label { border-color: #ccc; }
  .panel { box-shadow: none; }
}

/* ---------- timeline actions ---------- */
.choice { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice-btn { position: relative; margin: 0; cursor: pointer; }
.choice-btn input { position: absolute; opacity: 0; pointer-events: none; }
.choice-btn span { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1rem; border: 1.5px solid var(--line-2); border-radius: 10px;
  background: #fff; color: var(--ink); font-weight: 600; font-size: .95rem; transition: all .12s; }
.choice-btn input:focus-visible + span { box-shadow: var(--focus); }
.choice-btn input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand-ink); }
.choice-btn.bad input:checked + span { border-color: var(--bad-dot); background: var(--bad-bg); color: var(--bad); }
.action-form { border: 2px solid var(--brand); }
.big-btn { min-height: 48px; padding: .7rem 1.4rem; font-size: 1rem; }
details.more > summary { cursor: pointer; color: var(--brand-ink); font-size: .88rem; font-weight: 600; }
.link-btn { border: 0; background: none; box-shadow: none; padding: 0; color: var(--muted); font-size: .75rem; font-weight: 500; text-decoration: underline; cursor: pointer; }
.tl .link-btn { opacity: .7; } .tl li:hover .link-btn { opacity: 1; }
.link-btn:hover { background: none; color: var(--brand); }
.tl > li { padding-bottom: 1.2rem; }
.tl .t-what { text-transform: none; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.tl .t-what svg { width: 16px; height: 16px; color: var(--muted); }
.tl .t-notes { margin-top: .3rem; font-size: .9rem; color: var(--ink-2); }
.tl li.tl-bad::before { background: var(--bad-dot); box-shadow: 0 0 0 3px var(--bad-bg); }
.tl li.tl-warn::before { background: var(--warn-dot); box-shadow: 0 0 0 3px var(--warn-bg); }
.tl li.tl-neutral::before, .tl li.tl-edit::before { background: var(--line-2); box-shadow: 0 0 0 3px var(--sunken); }
.tl li.voided .t-what, .tl li.voided .t-notes { text-decoration: line-through; color: var(--muted); }
.thumbs { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.verdict-bad.next-action { background: var(--bad-bg); border-color: #F1C3BE; } .verdict-bad .na-what { color: var(--bad); }
.verdict-warn.next-action { background: var(--warn-bg); border-color: #F3DDB0; } .verdict-warn .na-what { color: var(--warn); }
.verdict-ok .na-what { color: var(--ok); }

/* ---------- phone view after scanning ---------- */
.act { max-width: 560px; margin: 0 auto; }
.verdict { border-radius: 16px; padding: 1.3rem 1.4rem; margin: .75rem 0 1rem; color: #fff; }
.verdict .v-title { font-size: 2rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.verdict .v-sub { font-size: 1rem; opacity: .92; margin-top: .25rem; }
.verdict-ok.verdict { background: var(--brand); }
.verdict-warn.verdict { background: #B86E00; }
.verdict-bad.verdict { background: var(--bad); }
.verdict-neutral.verdict { background: #4B5550; }
.act-id { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem 1.1rem; margin-bottom: 1rem; line-height: 1.5; }
.act-id strong { font-size: 1.25rem; margin-right: .35rem; }
.act-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1rem; }
.act-btn { min-height: 64px; font-size: 1.02rem; justify-content: flex-start; padding: .8rem 1rem; border-radius: 12px; }
.act-btn svg { width: 22px; height: 22px; }
@media (max-width: 560px) { .choice-btn span { min-height: 48px; } }

/* ---------- help ---------- */
.help h2 { margin-top: 1.5rem; } .help h2:first-child { margin-top: 0; }
.help p { max-width: 64ch; }
.help-status { display: flex; gap: .9rem; align-items: center; margin: .5rem 0; }
.verdict-chip { flex: none; width: 190px; text-align: center; padding: .45rem .6rem; border-radius: 8px; color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .02em; }
.verdict-chip.verdict-ok { background: var(--brand); } .verdict-chip.verdict-warn { background: #B86E00; } .verdict-chip.verdict-bad { background: var(--bad); }
@media (max-width: 560px) { .help-status { flex-direction: column; align-items: flex-start; gap: .3rem; } }
@media print { .verdict-chip { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
