/* Equipment Link — design tokens + components
   Light/dark from the validated reference palette; QR zones stay white for scannability. */

:root {
  color-scheme: light;
  --page: #ffffff;
  --surface: #ffffff;
  --fill: #f3f2ef;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --border: rgba(11, 11, 11, 0.10);
  --accent: #2a78d6;
  --accent-soft: rgba(42, 120, 214, 0.10);
  --good: #0ca30c;
  --good-text: #006300;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(11, 11, 11, 0.04), 0 4px 14px rgba(11, 11, 11, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --fill: #262624;
    --ink: #ffffff;
    --ink-2: #c3c2b7;
    --muted: #898781;
    --grid: #2c2c2a;
    --border: rgba(255, 255, 255, 0.10);
    --accent: #3987e5;
    --accent-soft: rgba(57, 135, 229, 0.16);
    --good-text: #0ca30c;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --fill: #262624;
  --ink: #ffffff;
  --ink-2: #c3c2b7;
  --muted: #898781;
  --grid: #2c2c2a;
  --border: rgba(255, 255, 255, 0.10);
  --accent: #3987e5;
  --accent-soft: rgba(57, 135, 229, 0.16);
  --good-text: #0ca30c;
  --shadow: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--page);
  color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- layout ---------- */
.container {
  max-width: 1020px; margin: 0 auto;
  padding-top: 0; padding-bottom: 150px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
.feedwrap {
  max-width: 560px; margin: 0 auto;
  padding-top: 0; padding-bottom: 150px;
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
}
.feedwrap h1 { font-size: 33px; margin: 2px 0 2px; }

/* ---------- app chrome: topbar + bottom tabs ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 12px max(18px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--page) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.topbar .brand { font-family: var(--display); font-weight: 800; font-size: 16.5px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.topbar .spacer { flex: 1; }
.iconbtn { position: relative; font-size: 19px; text-decoration: none; padding: 4px 6px; border-radius: 10px; color: var(--ink); }
.iconbtn:hover { background: var(--accent-soft); text-decoration: none; }

.tabbar {
  position: fixed; z-index: 40;
  left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-around;
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-top: 1px solid var(--grid);
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom, 0px));
}
.tabbar a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: 0.01em;
  max-width: 170px; padding: 6px 0 5px; text-decoration: none; border-radius: 16px;
  transition: background 0.15s ease, color 0.15s ease;
}
.tabbar a:hover { text-decoration: none; }
.tabbar a .ticon { font-size: 22px; line-height: 1; position: relative; }
.tabbar a.active { color: var(--accent); background: var(--accent-soft); }
.tbadge {
  position: absolute; top: -5px; right: -13px;
  background: var(--critical); color: #fff;
  font-size: 10px; font-weight: 800; border-radius: 9px;
  min-width: 16px; padding: 1.5px 4.5px; text-align: center;
}
.iconbtn .tbadge { top: -2px; right: -6px; }

.fab {
  position: fixed; z-index: 41;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(160deg, #4a94ea, #2a78d6); color: #fff; font-size: 30px; font-weight: 300; line-height: 1;
  border: none; cursor: pointer;
  box-shadow: 0 10px 28px rgba(42, 120, 214, 0.5);
  transition: transform 0.12s ease;
}
.fab:hover { transform: scale(1.06); }

/* ---------- feed cards ---------- */
.chiprow { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.chiprow::-webkit-scrollbar { display: none; }
.fchip {
  white-space: nowrap; padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--grid); background: var(--surface);
  font: 600 13px system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink-2); cursor: pointer;
}
.fchip.on { background: var(--ink); color: var(--page); border-color: var(--ink); }

.feed { display: flex; flex-direction: column; gap: 14px; }
.seclabel { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin: 10px 0 -4px; }

.acard { border-radius: 22px; overflow: hidden; display: block; color: var(--ink); padding: 0; }
.acard:hover { text-decoration: none; }
.acard .cwrap { position: relative; }
.acard .cover { width: 100%; height: auto; max-height: 520px; object-fit: cover; display: block; }
.acard .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,0.66) 100%);
}
.acard .ontitle {
  position: absolute; left: 17px; right: 17px; bottom: 13px; color: #fff;
}
.acard .ontitle .t { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.acard .ontitle .p { font-size: 12.5px; font-weight: 600; opacity: 0.92; margin-top: 1px; text-shadow: 0 1px 6px rgba(0,0,0,0.4); }
.ochip {
  position: absolute; top: 12px; right: 12px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.26); border: 1px solid rgba(255,255,255,0.38);
  color: #fff; padding: 5px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3); white-space: nowrap;
}
.acard.rowcard { display: flex; gap: 14px; align-items: flex-start; padding: 15px 16px; border-radius: 20px; }
.rtile {
  flex: 0 0 56px; height: 56px; border-radius: 17px;
  display: flex; align-items: center; justify-content: center; font-size: 27px;
}
.rowcard .rbody { flex: 1; min-width: 0; }
.rowcard .title { font-size: 16px; }
.rowcard .chips { margin-top: 6px; }
.acard .abody { padding: 13px 17px 15px; }
.acard .title { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.acard .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.acard .lastline { margin-top: 8px; color: var(--muted); }

/* staggered entrance */
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(0.985); } }
.feed > * { animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) backwards; }
.feed > *:nth-child(1) { animation-delay: 0.03s; } .feed > *:nth-child(2) { animation-delay: 0.07s; }
.feed > *:nth-child(3) { animation-delay: 0.11s; } .feed > *:nth-child(4) { animation-delay: 0.15s; }
.feed > *:nth-child(5) { animation-delay: 0.19s; } .feed > *:nth-child(6) { animation-delay: 0.23s; }
.feed > *:nth-child(7) { animation-delay: 0.27s; } .feed > *:nth-child(8) { animation-delay: 0.31s; }
.feed > *:nth-child(9) { animation-delay: 0.35s; } .feed > *:nth-child(10) { animation-delay: 0.39s; }
.feed > *:nth-child(n+11) { animation-delay: 0.42s; }

.seg { display: flex; gap: 6px; background: var(--fill); border: 1px solid transparent; border-radius: 13px; padding: 4px; margin-bottom: 16px; }
.seg button {
  flex: 1; border: none; background: transparent; padding: 9px; border-radius: 10px;
  font: 700 13.5px system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--muted); cursor: pointer;
}
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.remcard { display: flex; gap: 13px; align-items: center; padding: 14px 15px; border-radius: 20px; }
.remcard .body { flex: 1; min-width: 0; }
.remcard .title { font-family: var(--display); font-weight: 800; font-size: 15.5px; }
.dtile { flex: 0 0 56px; border-radius: 16px; padding: 9px 0 7px; text-align: center; background: var(--fill); }
.dtile b { display: block; font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; line-height: 1.1; }
.dtile span { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.dtile.warn { background: rgba(250, 178, 25, 0.16); }
.dtile.over { background: rgba(208, 59, 59, 0.12); } .dtile.over b { color: var(--critical); }
.topnav {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 20px; margin-bottom: 24px;
  border-bottom: 1px solid var(--grid);
  background: var(--surface);
}
.topnav .brand { font-weight: 700; font-size: 16px; color: var(--ink); }
.topnav .brand:hover { text-decoration: none; }
.topnav a.navlink { color: var(--ink-2); font-weight: 500; }
.topnav a.navlink.active { color: var(--ink); }
.topnav .spacer { flex: 1; }
.topnav .navbadge {
  display: inline-block; min-width: 18px; text-align: center;
  background: var(--critical); color: #fff; border-radius: 9px;
  font-size: 11px; font-weight: 700; padding: 1px 5px; margin-left: 4px;
  vertical-align: 1px;
}

:root { --display: ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', sans-serif; }
h1 { font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; margin: 8px 0 4px; }
.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }
.statpills { display: flex; gap: 8px; margin: 12px 0 18px; flex-wrap: wrap; }
.pill { padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.pill.green { background: rgba(12, 163, 12, 0.12); color: var(--good-text); }
.pill.gray { background: var(--grid); color: var(--ink-2); }
h2 { font-size: 16px; margin: 32px 0 12px; }
h3 { font-size: 15px; margin: 0 0 6px; }
.sub { color: var(--ink-2); margin: 0 0 20px; }
.mini { font-size: 12.5px; color: var(--muted); }
.crumb { font-size: 13px; color: var(--muted); margin: 16px 0 4px; }
.crumb a { color: var(--muted); }

/* ---------- cards & tiles ---------- */
.card {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(11, 11, 11, 0.05), 0 6px 22px rgba(11, 11, 11, 0.06);
  padding: 18px;
  transition: transform 0.16s ease;
}
a.card:active, .acard:active { transform: scale(0.98); }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .card { border-color: var(--border); box-shadow: none; }
}
:root[data-theme="dark"] .card { border-color: var(--border); box-shadow: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 20px 0 8px; }
.tile { padding: 14px 18px; }
.tile .label { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.tile .value { font-size: 30px; font-weight: 700; line-height: 1.2; margin-top: 2px; }
.tile .value.good { color: var(--good-text); }
.tile .note { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- chips & badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
  padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--ink-2);
  white-space: nowrap;
}
.chip.urgent { background: rgba(208, 59, 59, 0.10); border-color: rgba(208, 59, 59, 0.35); color: var(--critical); }
.chip.high { background: rgba(236, 131, 90, 0.12); border-color: rgba(236, 131, 90, 0.4); color: #b05532; }
:root[data-theme="dark"] .chip.high { color: var(--serious); }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .chip.high { color: var(--serious); } }
.chip.good { background: rgba(12, 163, 12, 0.10); border-color: rgba(12, 163, 12, 0.3); color: var(--good-text); }
.chip.warn { background: rgba(250, 178, 25, 0.14); border-color: rgba(250, 178, 25, 0.5); color: #8a6003; }
:root[data-theme="dark"] .chip.warn { color: var(--warning); }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .chip.warn { color: var(--warning); } }
.chip.neutral { background: transparent; }

.badge-verified { color: var(--good-text); font-weight: 600; font-size: 12.5px; }
.badge-flag { color: #8a6003; font-weight: 600; font-size: 12.5px; }
:root[data-theme="dark"] .badge-flag { color: var(--warning); }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .badge-flag { color: var(--warning); } }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: 600 14px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  padding: 10px 16px; border-radius: 13px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  transition: filter 0.12s ease;
}
.btn:hover { filter: brightness(0.97); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; }
.btn-big { width: 100%; padding: 14px 16px; font-size: 15px; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

input[type="text"], input[type="tel"], input[type="number"], input[type="password"], textarea, select {
  width: 100%; font: 15px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--fill);
  border: 1px solid transparent; border-radius: 12px; padding: 11px 13px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
label.f { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin: 12px 0 4px; }

/* ---------- lists / rows ---------- */
.rowlist { display: flex; flex-direction: column; gap: 10px; }
.issue-row {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 16px 17px; color: var(--ink); border-radius: 20px;
}
.issue-row:hover { text-decoration: none; }
.itile {
  flex: 0 0 46px; height: 46px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-size: 23px; background: var(--fill);
}
.issue-row .body { flex: 1; min-width: 0; }
.issue-row .title { font-weight: 600; }
.issue-row .meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.issue-row .chev { color: var(--muted); align-self: center; }

.asset-mini {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px; color: var(--ink);
}
.asset-mini:hover { background: var(--accent-soft); text-decoration: none; }
.asset-mini .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-mini .ic { font-size: 18px; }

.unit-block { border-top: 1px solid var(--grid); padding-top: 12px; margin-top: 12px; }
.unit-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.unit-head .un { font-weight: 700; }
.unit-head .edit { font-size: 12.5px; }

/* ---------- meta grids / timeline ---------- */
.metagrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.metagrid .k { font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.metagrid .v { font-size: 14px; margin-top: 1px; }

.timeline { list-style: none; margin: 8px 0 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--grid); }
.timeline .when { flex: 0 0 92px; font-size: 12.5px; color: var(--muted); padding-top: 1px; }
.timeline .what { flex: 1; }
.timeline .cost { color: var(--ink-2); font-size: 13px; white-space: nowrap; }

/* ---------- QR ---------- */
.qrbox { background: #fff; border: 1px solid var(--grid); border-radius: 10px; padding: 10px; display: inline-block; line-height: 0; }
.qrbox img { width: 132px; height: 132px; image-rendering: pixelated; }

/* ---------- tenant / scan view ---------- */
.scanwrap {
  max-width: 460px; margin: 0 auto;
  padding: 20px max(18px, env(safe-area-inset-right)) 60px max(18px, env(safe-area-inset-left));
}
.scanhead { text-align: center; padding: 18px 0 6px; }
.scanhead .bigicon { font-size: 44px; }
.scanhead h1 { margin: 6px 0 2px; font-size: 20px; }
.scanhead .where { color: var(--ink-2); font-size: 14px; }
.scan-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.scan-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.poweredby { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 34px; }
.poweredby a { color: var(--ink-2); font-weight: 600; }

.tipcard { margin-top: 10px; }
.tipcard ol { margin: 8px 0 0; padding-left: 20px; }
.tipcard li { margin: 6px 0; }

.demobar {
  background: var(--accent-soft); border: 1px dashed var(--accent);
  color: var(--ink); border-radius: 9px; padding: 10px 12px; font-size: 13.5px; margin: 12px 0;
}
.photostrip { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.photostrip img { width: 74px; height: 74px; object-fit: cover; border-radius: 8px; border: 1px solid var(--grid); }

.steps { display: flex; gap: 6px; margin: 14px 0 18px; }
.steps .s { flex: 1; height: 4px; border-radius: 2px; background: var(--grid); }
.steps .s.on { background: var(--accent); }

/* ---------- outbox ---------- */
.mail { padding: 14px 16px; }
.mail .hdr { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.mail .to { color: var(--ink-2); font-size: 13px; }
.mail .subj { font-weight: 700; }
.mail pre {
  margin: 10px 0 0; padding: 12px; background: var(--fill);
  border: 1px solid var(--grid); border-radius: 8px;
  font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap; word-break: break-word; color: var(--ink-2);
}

/* ---------- stickers / print ---------- */
.stickergrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 16px; }
.sticker {
  background: #fff; color: #0b0b0b;
  border: 1.5px dashed #b9b7ae; border-radius: 12px;
  padding: 16px; text-align: center;
  break-inside: avoid;
}
.sticker img { width: 118px; height: 118px; image-rendering: pixelated; }
.sticker .cta { font-weight: 800; font-size: 14.5px; margin-top: 8px; }
.sticker .what { font-size: 12.5px; color: #52514e; margin-top: 3px; }
.sticker .microbrand { font-size: 10.5px; color: #898781; margin-top: 8px; letter-spacing: 0.03em; }

@media print {
  .topnav, .no-print, #toast { display: none !important; }
  body { background: #fff; }
  .container { max-width: none; padding: 0; }
}

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--ink); color: var(--page);
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
  max-width: 88vw; text-align: center; z-index: 50;
}
#toast.show { opacity: 1; }

.empty { color: var(--muted); text-align: center; padding: 26px 0; font-size: 14px; }
.footnote { margin-top: 40px; font-size: 12.5px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- agent UI ---------- */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-right: 6px; vertical-align: 1px; }
.dot.on { background: var(--good); box-shadow: 0 0 6px rgba(12, 163, 12, 0.6); }
.demonote { margin-top: 10px; padding: 8px 10px; border: 1px dashed var(--grid); border-radius: 8px; }

.shimmer { animation: pulse 1.4s ease-in-out infinite; }
.shimmerbox {
  padding: 14px; border-radius: 9px; background: var(--accent-soft);
  color: var(--ink-2); font-size: 14px;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

.btn-mini { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }
.sugrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.agentcard { border-left: 3px solid var(--accent); }
.cause { padding: 7px 0; border-top: 1px solid var(--grid); }
.cause:first-of-type { border-top: none; }
.k { font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.tightlist { margin: 6px 0 0; padding-left: 18px; }
.tightlist li { margin: 5px 0; }

/* ---------- capture ---------- */
.capitem { display: flex; gap: 12px; padding: 12px; }
.capitem .body { flex: 1; min-width: 0; }
.capitem .title { font-weight: 600; }
.capthumb {
  width: 76px; height: 76px; object-fit: cover; border-radius: 9px;
  border: 1px solid var(--grid); flex: 0 0 76px;
}
.capthumb.noimg { display: flex; align-items: center; justify-content: center; font-size: 30px; background: var(--fill); }
.capthumb.big { width: 100%; height: 190px; flex: none; margin-bottom: 10px; }
.capdraft { margin-top: 14px; }
.audiorow { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.audiorow audio { flex: 1; height: 40px; }
.btn.recording { border-color: var(--critical); color: var(--critical); animation: pulse 1.2s ease-in-out infinite; }
.thumbstrip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tthumb {
  width: 76px; height: 76px; object-fit: cover; border-radius: 14px;
  border: 1px solid var(--grid);
}
.addtile {
  display: flex; align-items: center; justify-content: center;
  background: var(--fill); color: var(--muted); font-size: 26px;
  border: 1.5px dashed var(--grid); cursor: pointer;
}
.assetphoto { width: 100%; max-height: 220px; object-fit: cover; border-radius: 9px; border: 1px solid var(--grid); margin-top: 12px; }
