:root {
  color-scheme: light dark;
  --bg: #f2f7f5;
  --surface: #ffffff;
  --glass: rgba(255,255,255,.78);
  --line: rgba(37,26,58,.13);
  --text: #162821;
  --muted: #57695f;
  --accent: #147d60;
  --accent-soft: #dcefe7;
  --button: #147d60;
  --field: rgba(242,247,245,.9);
  --danger: #af2838;
  --shadow: 0 18px 60px rgba(35,23,55,.07);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#101b17; --surface:#1e3028; --glass:rgba(30,48,40,.85);
    --line:rgba(255,255,255,.14); --text:#edf6f1; --muted:#adc3b6;
    --accent:#57d5a2; --accent-soft:#203f32; --button:#147d60;
    --field:rgba(16,27,23,.75); --danger:#ff9ba6; --shadow:0 20px 64px rgba(0,0,0,.22);
  }
}
:root[data-theme="dark"] {
  color-scheme:dark; --bg:#101b17; --surface:#1e3028; --glass:rgba(30,48,40,.85);
  --line:rgba(255,255,255,.14); --text:#edf6f1; --muted:#adc3b6;
  --accent:#57d5a2; --accent-soft:#203f32; --button:#147d60;
  --field:rgba(16,27,23,.75); --danger:#ff9ba6; --shadow:0 20px 64px rgba(0,0,0,.22);
}
:root[data-theme="light"] { color-scheme:light; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; background:var(--bg); color:var(--text); }
button,input,textarea,select { font:inherit; }
button,a,input,textarea,select,summary { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
a { color:var(--accent); }
:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
.aurora { position:fixed; inset:0; background:radial-gradient(ellipse at 65% 0%, rgba(20,125,96,.09), transparent 60%); pointer-events:none; z-index:-1; }
.glass { background:var(--surface); border:1px solid var(--line); box-shadow:inset 0 1px 0 rgba(255,255,255,.15),var(--shadow); }
@supports (backdrop-filter:blur(24px)) or (-webkit-backdrop-filter:blur(24px)) {
  .glass { background:var(--glass); backdrop-filter:blur(24px) saturate(115%); -webkit-backdrop-filter:blur(24px) saturate(115%); }
}
.brand { display:flex; align-items:center; gap:12px; color:inherit; text-decoration:none; }
.brand img { width:46px; height:46px; border-radius:13px; }
.brand span { display:flex; flex-direction:column; line-height:1.2; }
.brand strong { font-size:16px; font-weight:650; }
.brand small { color:var(--muted); font-size:12px; margin-top:3px; }
.eyebrow { font-size:12px; letter-spacing:.1em; font-weight:650; color:var(--accent); margin:0 0 14px; }
.primary-button,.secondary-button { display:inline-flex; align-items:center; justify-content:center; min-height:46px; border-radius:14px; padding:0 20px; font-weight:600; font-size:15px; text-decoration:none; border:1px solid transparent; cursor:pointer; transition:box-shadow .16s; }
.primary-button { color:#fff; background:var(--button); box-shadow:0 3px 10px rgba(74,38,115,.12); }
.primary-button:hover { filter:brightness(1.08); }
.secondary-button { color:var(--text); background:var(--surface); border-color:var(--line); }
.secondary-button:hover { background:var(--accent-soft); }
button:disabled { cursor:wait; opacity:.6; }
dialog { width:min(680px,calc(100% - 24px)); max-height:calc(100dvh - 32px); border:1px solid var(--line); border-radius:28px; padding:0; background:var(--surface); color:var(--text); box-shadow:var(--shadow); }
dialog::backdrop { background:rgba(20,16,27,.48); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); }
.dialog-close { position:sticky; z-index:2; float:right; top:14px; margin:14px 14px 0; border:1px solid var(--line); background:var(--field); color:var(--text); width:44px; height:44px; border-radius:50%; font-size:24px; }
.empty-shot { min-height:150px; border:1px dashed var(--line); border-radius:20px; display:grid; place-items:center; color:var(--muted); padding:24px; text-align:center; }
.toast { position:fixed; z-index:50; left:50%; bottom:24px; width:max-content; max-width:calc(100% - 32px); transform:translate(-50%,12px); padding:14px 20px; background:var(--surface); color:var(--text); border:1px solid var(--line); box-shadow:var(--shadow); border-radius:16px; font-weight:600; opacity:0; transition:opacity .18s,transform .18s; pointer-events:none; }
.toast.show { opacity:1; transform:translate(-50%,0); }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; animation:none!important; scroll-behavior:auto!important; } }
@media (prefers-reduced-transparency:reduce) { .glass,dialog { background:var(--surface); backdrop-filter:none; -webkit-backdrop-filter:none; } dialog::backdrop { backdrop-filter:none; } }
@media (prefers-contrast:more) { :root { --line:currentColor; } .glass { background:var(--surface); backdrop-filter:none; } }
