/* The Amiga: look and feel taken from the truck. Bright green, light-blue
   lettering with a heavy black outline, yellow streaks and white sparkles,
   on top of calm, readable forms. */

@font-face { font-family: 'Lilita One'; src: url('../fonts/lilita-one-latin.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Kaushan Script'; src: url('../fonts/kaushan-script-latin.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/nunito-latin.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; }

:root {
  --green: #27ae4a;
  --green-light: #3cc55e;
  --green-deep: #1a9139;
  --green-dark: #0e6b2e;
  --sky: #8fe4f6;
  --yellow: #e6f03a;
  --cream: #fff6dc;
  --ink: #101412;
  --paper: #f3f7f1;
  --surface: #ffffff;
  --muted: #56625b;
  --line: #d6dfd3;
  --danger: #c62f2f;
  --warn-bg: #fff4d6;
  --warn-line: #e3ae3f;
  --display: 'Lilita One', 'Arial Black', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  -webkit-tap-highlight-color: transparent;
}
body.splashing { background: var(--green); overflow: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: var(--green-dark); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- brand background ---------- */

.brand-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(140% 90% at 15% 0%, var(--green-light) 0%, transparent 55%),
    radial-gradient(120% 80% at 100% 100%, var(--green-deep) 0%, transparent 60%),
    var(--green);
}
/* The speckled, printed texture of the truck wrap. */
.brand-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .45;
  mix-blend-mode: multiply;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.35 0 0 0 0 0.1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.streak {
  position: absolute;
  height: 12px;
  border-radius: 12px;
  background: var(--yellow);
  transform: rotate(-30deg);
}
.streak.s1 { width: 46%; top: 6%; left: -14%; }
.streak.s2 { width: 30%; height: 5px; top: 11%; left: -8%; }
.streak.s3 { width: 52%; bottom: 13%; right: -20%; }
.streak.s4 { width: 32%; height: 5px; bottom: 8%; right: -10%; }
.sparkle {
  position: absolute;
  width: 22px;
  height: 22px;
  fill: #fff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, .7));
  animation: twinkle 2.8s ease-in-out infinite;
}
.sparkle.k1 { top: 16%; left: 8%; }
.sparkle.k2 { top: 22%; right: 9%; width: 30px; height: 30px; animation-delay: .7s; }
.sparkle.k3 { top: 42%; left: 5%; width: 16px; height: 16px; animation-delay: 1.3s; }
.sparkle.k4 { top: 50%; right: 6%; width: 18px; height: 18px; animation-delay: .3s; }
.sparkle.k5 { bottom: 24%; left: 12%; width: 26px; height: 26px; animation-delay: 1.8s; }
.sparkle.k6 { bottom: 30%; right: 14%; width: 14px; height: 14px; animation-delay: 1s; }
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50% { transform: scale(.5) rotate(25deg); opacity: .55; }
}

/* ---------- logo, tagline, avatar ---------- */

.logo { display: flex; flex-direction: column; align-items: center; width: min(80vw, 340px); margin: 0 auto; }
.logo svg, .tagline svg { display: block; width: 100%; height: auto; overflow: visible; }
.logo-the { width: 28%; margin-bottom: -3%; }
.logo-amiga { width: 100%; }
.logo-back { width: 94%; margin-top: -8%; }
.logo.sm { width: 170px; }
.tagline { width: min(84vw, 340px); margin: 0 auto; }

.avatar {
  width: 150px;
  aspect-ratio: 1;
  flex: none;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--ink);
  background: var(--green);
  box-shadow: 6px 6px 0 var(--ink);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.avatar.xl { width: min(46vw, 200px); }
.avatar.sm { width: 46px; border-width: 3px; box-shadow: 3px 3px 0 var(--ink); margin: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 18px;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .08s, box-shadow .08s;
}
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn.primary { background: var(--sky); }
.btn.big { width: 100%; min-height: 62px; font-size: 1.15rem; }
.btn.slim { min-height: 42px; padding: 6px 14px; font-size: .92rem; }
.btn.danger { color: var(--danger); border-color: var(--danger); box-shadow: 3px 3px 0 var(--danger); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 22px; height: 22px; flex: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.brand-bg :focus-visible { outline-color: var(--yellow); }

.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}
.link.danger { color: var(--danger); }

.lang-btn {
  flex: none;
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: .85rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}
.icon-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}

/* ---------- splash ---------- */

.splash {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  /* Failsafe: never keep covering the app if the script didn't run. */
  animation: splash-failsafe 0s 6s forwards;
}
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.splash .avatar, .splash .logo-the, .splash .logo-amiga, .splash .logo-back, .splash .tagline { opacity: 0; }
.splash.play .avatar { animation: pop .6s cubic-bezier(.2, 1.5, .4, 1) .05s forwards; }
.splash.play .logo-the { animation: drop .45s cubic-bezier(.2, 1.4, .4, 1) .4s forwards; }
.splash.play .logo-amiga { animation: slam .5s cubic-bezier(.2, 1.5, .4, 1) .55s forwards; }
.splash.play .logo-back { animation: stamp .45s cubic-bezier(.2, 1.6, .4, 1) .95s forwards; }
.splash.play .tagline { animation: rise .5s ease-out 1.25s forwards; }
.splash.play .streak { animation: sweep .7s cubic-bezier(.2, .8, .3, 1) both; }
.splash.play .streak.s3, .splash.play .streak.s4 { animation-name: sweep-back; }
.splash.out { animation: splash-out .45s ease-in forwards; }
@keyframes pop { from { opacity: 0; transform: scale(.3) rotate(-15deg); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes slam { from { opacity: 0; transform: scale(1.8); } to { opacity: 1; transform: none; } }
@keyframes stamp { from { opacity: 0; transform: scale(1.5) rotate(-10deg); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes sweep { from { transform: translateX(-120%) rotate(-30deg); } to { transform: rotate(-30deg); } }
@keyframes sweep-back { from { transform: translateX(120%) rotate(-30deg); } to { transform: rotate(-30deg); } }
@keyframes splash-out { to { opacity: 0; transform: scale(1.06); visibility: hidden; } }
@keyframes splash-failsafe { to { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  .sparkle { animation: none; }
  .splash .avatar, .splash .logo-the, .splash .logo-amiga, .splash .logo-back, .splash .tagline { opacity: 1; }
  .splash.play * { animation: none !important; }
  .splash.out { animation: fade-out .2s forwards; }
  @keyframes fade-out { to { opacity: 0; visibility: hidden; } }
  .btn, .kind-btn { transition: none; }
}

/* ---------- home and confirmation ---------- */

.home {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: max(14px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
}
.home-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.safety {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: .9rem;
  line-height: 1.2;
  box-shadow: 3px 3px 0 var(--ink);
}
.safety > span { flex: 1; }
.sos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 48px;
  padding: 4px 8px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--danger);
  color: #fff;
  text-decoration: none;
  line-height: 1.05;
}
.sos b { font-size: 1.15rem; }
.sos small { font-size: .68rem; font-weight: 800; }
.home-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 6px; }
.home-lead {
  max-width: 30ch;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 800;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}
.home-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 420px; margin: auto auto 0; }
.home-saved { text-align: center; font-weight: 700; }
.home-saved .link { color: #fff; }
.demo-note {
  max-width: 420px;
  margin: 0 auto;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .2);
  font-size: .85rem;
  font-weight: 700;
  text-align: center;
}
.sent-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 22px 18px;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  box-shadow: 6px 6px 0 var(--ink);
}
.sent-card h1 { font-family: var(--display); font-weight: 400; font-size: 2rem; }
.ref {
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--sky);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .08em;
}

/* ---------- report steps ---------- */

.step-head {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: max(10px, env(safe-area-inset-top)) 14px 0;
  border-bottom: 3px solid var(--ink);
  background: var(--green);
  color: #fff;
}
.step-head-row { display: flex; align-items: center; gap: 12px; max-width: 640px; margin: 0 auto; padding-bottom: 10px; }
.step-head small { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .95; }
.step-head h1 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: .01em; text-shadow: 2px 2px 0 var(--ink); }
.progress { height: 6px; margin: 0 -14px; background: rgba(0, 0, 0, .25); }
.progress span { display: block; height: 100%; background: var(--yellow); transition: width .3s; }
.step-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
  padding: 18px 16px calc(110px + env(safe-area-inset-bottom));
}
.step-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(243, 247, 241, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.step-nav .btn { flex: 1; max-width: 300px; }
.hint { color: var(--muted); font-weight: 600; }
.section-title { margin-top: 6px; font-family: var(--display); font-weight: 400; font-size: 1.3rem; }

/* ---------- form fields ---------- */

.field { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: .95rem; }
.field .opt { color: var(--muted); font-style: normal; font-weight: 600; font-size: .85rem; }
input, textarea, select {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(143, 228, 246, .7); }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #fff;
  min-width: 0;
}
fieldset.card legend { margin-left: -4px; padding: 0 6px; font-family: var(--display); font-size: 1.15rem; }
.card .remove { position: absolute; top: 14px; right: 14px; }
.choice { margin: 0; padding: 0; border: 0; min-width: 0; }
.choice legend { margin-bottom: 8px; padding: 0; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.chip input:checked + span { background: var(--sky); box-shadow: 2px 2px 0 var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-weight: 700; cursor: pointer; }
.check input { flex: none; width: 26px; height: 26px; min-height: 0; margin: 1px 0 0; accent-color: var(--green-dark); }
.check.consent { padding: 12px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; }

/* ---------- location ---------- */

.map {
  position: relative;
  z-index: 0;
  height: 280px;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  background: #e5ece3;
}
.map-off { display: grid; place-items: center; padding: 16px; color: var(--muted); font-weight: 700; text-align: center; }
.pin span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 30px;
  height: 30px;
  border: 3px solid var(--ink);
  border-radius: 50% 50% 50% 0;
  background: var(--sky);
  transform: rotate(-45deg);
}
.pin span::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
}
.where-info { display: flex; flex-direction: column; gap: 4px; }
.addr { font-weight: 800; font-size: 1.05rem; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
}
.warn { padding: 10px 12px; border: 2px solid var(--warn-line); border-radius: 12px; background: var(--warn-bg); color: #6e3f00; font-weight: 700; }
.warn ul { margin: 6px 0 10px; padding-left: 20px; }
.spinner {
  width: 46px;
  height: 46px;
  border: 5px solid rgba(255, 255, 255, .3);
  border-top-color: var(--sky);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
.spinner.small { display: inline-block; width: 16px; height: 16px; border-width: 3px; border-color: var(--line); border-top-color: var(--green); vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- photos ---------- */

.kind-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kind-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 96px;
  padding: 12px;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  background: #fff;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .08s, box-shadow .08s;
}
.kind-btn:active { transform: translate(3px, 3px); box-shadow: none; }
.kind-btn:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.kind-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.kind-btn svg { width: 30px; height: 30px; color: var(--green-dark); }
.kind-btn .count {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-size: .9rem;
}
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.thumbs li { position: relative; aspect-ratio: 1; overflow: hidden; border: 2px solid var(--ink); border-radius: 12px; background: #dfe5dc; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumb-kind {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 6px 4px;
  overflow: hidden;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.thumb-del {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  font-size: .8rem;
  font-weight: 900;
  cursor: pointer;
}

/* ---------- review ---------- */

.review-row { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 16px; background: #fff; }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review-head h2 { font-family: var(--display); font-weight: 400; font-size: 1.1rem; }
.mini-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mini-thumbs img { width: 52px; height: 52px; object-fit: cover; border: 2px solid var(--ink); border-radius: 8px; }

/* ---------- toast and busy overlay ---------- */

#toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 60;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
#busy {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: rgba(16, 20, 18, .75);
  color: #fff;
  font-weight: 800;
  text-align: center;
}

/* ---------- management app ---------- */

.admin-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) 16px 10px;
  border-bottom: 3px solid var(--ink);
  background: var(--green);
  color: #fff;
}
.admin-head .brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.admin-head .brand b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.35rem; letter-spacing: .02em; text-shadow: 2px 2px 0 var(--ink); }
.admin-head .brand small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.admin-head .brand b { white-space: nowrap; }
@media (max-width: 480px) {
  .admin-head { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .admin-head .brand b { font-size: 1.15rem; }
  .admin-head .brand small { display: none; }
}
.admin-main { display: flex; flex-direction: column; gap: 14px; max-width: 1100px; margin: 0 auto; padding: 18px 16px 60px; }
.page-title { font-family: var(--display); font-weight: 400; font-size: 1.9rem; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar input[type="search"] { flex: 1 1 240px; width: auto; }
.filter-chip {
  min-height: 42px;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.filter-chip[aria-pressed="true"] { background: var(--sky); box-shadow: 2px 2px 0 var(--ink); }
.report-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.report-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}
.report-row:hover, .report-row:focus-visible { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.report-row .who { font-weight: 800; font-size: 1.05rem; }
.report-row .meta { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; font-weight: 600; }
.badge {
  display: inline-flex;
  align-items: center;
  align-self: start;
  padding: 2px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}
.badge.new { background: var(--yellow); }
.badge.in_progress { background: var(--sky); }
.badge.closed { background: #e4e8e3; }
.status-select { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.status-select select { width: auto; min-height: 42px; }
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.detail-grid .col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.panel { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 2px solid var(--line); border-radius: 16px; background: #fff; }
.panel h2 { font-family: var(--display); font-weight: 400; font-size: 1.25rem; }
.kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 6px 12px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 700; }
.kv dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 2px solid var(--ink); border-radius: 12px; background: #dfe5dc; }
.photo-grid figcaption { margin-top: 4px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.login { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; }
.login-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 380px;
  padding: 22px;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}
.login-card .sub { text-align: center; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; color: var(--muted); }
.login-top { display: flex; justify-content: flex-end; }
.print-head { display: none; }

@media print {
  body { background: #fff; font-size: 10.5pt; }
  .no-print, .admin-head, #toast, #busy { display: none !important; }
  .admin-main { max-width: none; padding: 0; }
  .print-head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
  .detail-grid { grid-template-columns: 1fr; }
  .panel { break-inside: avoid; border: 1px solid #999; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-grid figure { break-inside: avoid; }
  .avatar.sm { box-shadow: none; }
  a { color: inherit; text-decoration: none; }
}
