:root {
  --bg: #f4f2ec; --surface: #ffffff; --ink: #1f2a26; --muted: #5d6a64;
  --line: #d9d6cc; --accent: #2f5d50; --accent-ink: #ffffff; --warn: #9a3412;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141a18; --surface: #1e2623; --ink: #e8ece9; --muted: #a3afa9;
    --line: #34403b; --accent: #7fc4ad; --accent-ink: #10201b; --warn: #fdba74;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.shell { max-width: 34rem; margin: 0 auto; padding: 1rem; display: grid; gap: 1rem; }
#app-view { display: grid; gap: 1rem; }
#app-view[hidden], #auth-view[hidden] { display: none; }
.top { display: flex; align-items: center; justify-content: space-between; }
h1 { margin: 0; font-size: 1.6rem; }
h2 { margin: 0 0 .5rem; font-size: 1.05rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: .8rem; padding: 1rem; }
.muted { color: var(--muted); margin: 0; }
.message { min-height: 1.5rem; margin: .5rem 0 0; }
.message.error { color: var(--warn); }
button, .file-button { min-height: 44px; padding: .6rem 1rem; border-radius: .6rem; font: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.primary { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); font-weight: 600; }
.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.scope-choice { border: 0; padding: 0; margin: 0 0 .8rem; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.scope-choice legend { padding: 0; margin-bottom: .3rem; color: var(--muted); }
.scope-choice label { min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; }
.capture-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.captured-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.captured-list li { display: flex; justify-content: space-between; gap: .8rem; padding: .55rem .7rem; border-radius: .5rem; background: var(--bg); }
.captured-list span:first-child { overflow-wrap: anywhere; }
.captured-list span:last-child { color: var(--muted); white-space: nowrap; }
