/* Fix-It — one screen. (SIT-114.) Light and dark follow the phone. */
:root {
  --bg: #f6f7f9; --card: #ffffff; --ink: #111827; --soft: #4b5563; --line: #e5e7eb;
  --accent: #2563eb; --accent-ink: #ffffff; --warn: #b45309; --ok: #15803d; --wait: #6d28d9;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1115; --card: #1a1d24; --ink: #f3f4f6; --soft: #a1a7b3; --line: #2a2f3a;
          --accent: #5b8def; --accent-ink: #0f1115; --warn: #fbbf24; --ok: #4ade80; --wait: #c4b5fd; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 680px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom)); }
h1 { font-size: 24px; margin: 4px 0 2px; }
h2 { font-size: 17px; margin: 26px 0 10px; }
p.sub { color: var(--soft); margin: 0 0 16px; }
.top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 0 0 12px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 10px 0 4px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px; }
button { font: 600 16px system-ui, sans-serif; border: 0; border-radius: 10px; padding: 12px 16px; cursor: pointer; background: var(--accent); color: var(--accent-ink); }
button.quiet { background: transparent; color: var(--soft); padding: 6px 8px; font-weight: 500; font-size: 14px; }
button[disabled] { opacity: .5; }
.msg { min-height: 22px; margin-top: 10px; font-size: 14px; color: var(--warn); }
.said { margin: 6px 0 8px; overflow-wrap: anywhere; }
.meta { color: var(--soft); font-size: 13px; overflow-wrap: anywhere; }
.status { display: inline-block; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 10px; border: 1px solid currentColor; }
.s-wait { color: var(--wait); } .s-ok { color: var(--ok); } .s-you { color: var(--warn); } .s-plain { color: var(--soft); }
.note { margin: 8px 0 0; padding: 8px 10px; border-left: 3px solid var(--line); color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.diag { margin: 8px 0 0; font-size: 14px; } .diag b { display: inline-block; min-width: 92px; color: var(--soft); font-weight: 600; }
.pic { display: block; max-width: 100%; max-height: 360px; border: 1px solid var(--line); border-radius: 8px; margin-top: 10px; }
.empty { color: var(--soft); text-align: center; padding: 26px 8px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.go { margin-top: 14px; } .wide { width: 100%; }
.hidden { display: none; }
button.add { margin-top: 12px; width: 100%; background: transparent; color: var(--ink); border: 1px dashed var(--soft); font-size: 15px; padding: 11px; }
.tray { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.up { position: relative; } .up img { display: block; width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; }
.up button { position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; border-radius: 12px; padding: 0; font: 700 14px/24px system-ui, sans-serif; background: var(--ink); color: var(--bg); }
