:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #061019;
  color: #edf7ff;
  --panel: rgba(15, 29, 40, .92);
  --panel-2: #132738;
  --border: #29475b;
  --muted: #9bb1c1;
  --accent: #61c8ff;
  --accent-2: #70e3bb;
  --warn: #ffd479;
  --danger: #ff8f96;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 50% -10%, #17384d 0, #08141d 32rem, #050c12 100%); }
button, input, textarea { font: inherit; }
button, .file-button { min-height: 46px; border: 1px solid var(--accent); border-radius: 12px; background: linear-gradient(135deg, var(--accent), #8dd8ff); color: #04111a; font-weight: 850; padding: .75rem 1rem; cursor: pointer; }
button.secondary, .file-button.secondary { background: transparent; color: var(--accent); }
button.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
button.mini { min-height: 30px; width: auto; padding: .3rem .65rem; margin-top: .55rem; font-size: .75rem; }
input, textarea { width: 100%; border: 1px solid var(--border); border-radius: 12px; background: #07131d; color: inherit; padding: .85rem; margin: .4rem 0 1rem; }
textarea { resize: vertical; }
label { display: block; color: var(--muted); font-size: .86rem; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 1.18rem; }
h2 { margin-bottom: .45rem; font-size: 1.16rem; }
.app-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: max(.9rem, env(safe-area-inset-top)) 1rem .9rem; background: rgba(4, 13, 20, .94); border-bottom: 1px solid var(--border); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-icon { width: 42px; height: 42px; filter: drop-shadow(0 0 10px rgba(97, 200, 255, .35)); }
.header-badges { display: flex; gap: .4rem; align-items: center; }
main { width: min(100%, 820px); margin: 0 auto; padding: 1rem 1rem 6rem; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 14px 40px rgba(0, 0, 0, .25); }
.glow { box-shadow: 0 0 0 1px rgba(97, 200, 255, .08), 0 18px 50px rgba(0, 0, 0, .34); }
.hero, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hero-copy { flex: 1; }
.bob-face { position: relative; width: 82px; height: 82px; flex: 0 0 82px; border: 2px solid var(--accent); border-radius: 22px 22px 30px 30px; background: linear-gradient(180deg, #112d3f, #08141e); box-shadow: inset 0 0 20px rgba(97, 200, 255, .12), 0 0 24px rgba(97, 200, 255, .18); }
.bob-face span { position: absolute; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.bob-face span:first-child { left: 18px; }
.bob-face span:nth-child(2) { right: 18px; }
.bob-face i { position: absolute; left: 24px; right: 24px; bottom: 17px; height: 5px; border-radius: 999px; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
.eyebrow { margin-bottom: .35rem; color: var(--accent); font-size: .7rem; font-weight: 900; letter-spacing: .14em; }
.badge, .status-dot { border: 1px solid var(--border); border-radius: 999px; padding: .35rem .6rem; font-size: .68rem; font-weight: 900; white-space: nowrap; }
.badge.online, .status-dot.complete { color: var(--accent-2); border-color: var(--accent-2); }
.badge.offline, .status-dot.active { color: var(--warn); border-color: var(--warn); }
.status-dot.idle { color: var(--muted); }
.next-action { font-size: 1.02rem; }
.progress { height: 8px; overflow: hidden; border-radius: 999px; background: #07131d; margin: 1rem 0; }
.progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .25s ease; }
.two-col { display: grid; grid-template-columns: 1fr 110px; gap: .8rem; }
.button-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; margin-top: 1rem; }
.dashboard-grid article { min-height: 94px; padding: .85rem; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(180deg, #102333, #0b1924); }
.dashboard-grid span { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.dashboard-grid strong { display: block; margin-top: .8rem; font-size: .95rem; word-break: break-word; }
.capture-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.file-button { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.file-button input { display: none; }
.muted { color: var(--muted); font-size: .84rem; }
.timeline { list-style: none; padding: 0; margin: 1rem 0 0; }
.timeline li { border: 1px solid var(--border); border-left: 3px solid var(--accent); padding: .75rem; margin-bottom: .75rem; background: var(--panel-2); border-radius: 0 12px 12px 0; }
.timeline-head { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-bottom: .4rem; }
.timeline time, .timeline small { display: block; color: var(--muted); font-size: .72rem; }
.evidence-type { color: var(--accent); font-size: .68rem; font-weight: 900; }
.actions { display: grid; gap: .75rem; }
footer { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem max(.8rem, env(safe-area-inset-bottom)); background: #050d14; border-top: 1px solid var(--border); color: var(--muted); font-size: .7rem; }
@media (max-width: 600px) {
  .hero { align-items: flex-start; }
  .hero button { width: 100%; }
  .section-heading { align-items: flex-start; }
}
@media (max-width: 440px) {
  .header-badges { flex-direction: column; align-items: flex-end; }
  .hero { flex-wrap: wrap; }
  .hero-copy { min-width: calc(100% - 100px); }
  .two-col, .button-row, .capture-grid { grid-template-columns: 1fr; }
}

.app-shell { opacity: 0; }
.app-shell.app-ready { opacity: 1; transition: opacity .38s ease; }
.boot-screen { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem max(1.25rem, env(safe-area-inset-bottom)); background: radial-gradient(circle at 50% 20%, #17384d 0, #07131d 40%, #03080c 100%); }
.boot-screen.boot-complete { opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.boot-console { width: min(100%, 430px); padding: 1.4rem; border: 1px solid var(--border); border-radius: 24px; background: rgba(5, 16, 25, .96); box-shadow: 0 0 0 1px rgba(97, 200, 255, .08), 0 0 60px rgba(97, 200, 255, .12); }
.boot-icon { display: block; width: 74px; height: 74px; margin: 0 auto 1rem; filter: drop-shadow(0 0 18px rgba(97, 200, 255, .42)); }
.boot-console > h1, .boot-console > .eyebrow, .boot-headline, .boot-boundary { text-align: center; }
.boot-console > h1 { font-size: 1.55rem; }
.boot-headline { min-height: 1.5rem; color: var(--muted); }
.boot-checks { list-style: none; padding: 0; margin: 1.25rem 0; }
.boot-checks li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; padding: .6rem .7rem; border-bottom: 1px solid rgba(41, 71, 91, .55); color: var(--muted); }
.boot-checks li::before { content: "○"; color: var(--border); margin-right: .15rem; }
.boot-checks li span { flex: 1; }
.boot-checks li strong { color: var(--muted); font-size: .72rem; letter-spacing: .08em; }
.boot-checks li.running { color: var(--warn); }
.boot-checks li.running::before { content: "◌"; color: var(--warn); animation: boot-spin .8s linear infinite; }
.boot-checks li.passed { color: #edf7ff; }
.boot-checks li.passed::before { content: "✓"; color: var(--accent-2); }
.boot-checks li.passed strong { color: var(--accent-2); }
.boot-progress { height: 6px; overflow: hidden; border-radius: 999px; background: #02070b; }
.boot-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .22s ease; }
.boot-boundary { margin: .9rem 0; color: var(--muted); font-size: .62rem; letter-spacing: .08em; }
.boot-skip { width: 100%; }
@keyframes boot-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
