/* Gear Tracker – Apple-inspiriertes Design */
:root {
  --bg: #f5f5f7; --surface: #ffffff; --surface-2: #ececf0; --fill: rgba(118,118,128,.12); --line: rgba(60,60,67,.12);
  --text: #1d1d1f; --muted: #86868b; --accent: #0071e3; --accent-ink: #ffffff;
  --good: #248a3d; --bad: #d70015; --warn: #b25000; --info: #0071e3;
  --good-bg: rgba(52,199,89,.14); --bad-bg: rgba(255,59,48,.12); --warn-bg: rgba(255,159,10,.16); --info-bg: rgba(0,113,227,.1);
  --tile: #f5f5f7; --radius: 18px; --shadow: 0 1px 1px rgba(0,0,0,.02), 0 6px 24px rgba(0,0,0,.05);
  --bar: rgba(250,250,252,.78);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #1c1c1e; --surface-2: #2c2c2e; --fill: rgba(118,118,128,.24); --line: rgba(84,84,88,.55);
    --text: #f5f5f7; --muted: #98989d; --accent: #0a84ff; --accent-ink: #ffffff;
    --good: #30d158; --bad: #ff453a; --warn: #ff9f0a; --info: #0a84ff;
    --good-bg: rgba(48,209,88,.16); --bad-bg: rgba(255,69,58,.16); --warn-bg: rgba(255,159,10,.16); --info-bg: rgba(10,132,255,.18);
    --tile: #e9e9ed; --shadow: none; --bar: rgba(22,22,24,.78); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #1c1c1e; --surface-2: #2c2c2e; --fill: rgba(118,118,128,.24); --line: rgba(84,84,88,.55);
  --text: #f5f5f7; --muted: #98989d; --accent: #0a84ff; --accent-ink: #ffffff;
  --good: #30d158; --bad: #ff453a; --warn: #ff9f0a; --info: #0a84ff;
  --good-bg: rgba(48,209,88,.16); --bad-bg: rgba(255,69,58,.16); --warn-bg: rgba(255,159,10,.16); --info-bg: rgba(10,132,255,.18);
  --tile: #e9e9ed; --shadow: none; --bar: rgba(22,22,24,.78); color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.42 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
  letter-spacing: -.012em; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
.view { max-width: 980px; margin: 0 auto; padding: 0 16px 28px; }
.num, .tab { font-variant-numeric: tabular-nums; }

/* ---------- Topbar (iOS Large Title) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; background: var(--bar);
  backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px);
  padding: calc(10px + env(safe-area-inset-top)) max(16px, calc((100% - 948px) / 2)) 10px;
  display: flex; align-items: center; gap: 10px; min-height: 56px;
}
.topbar h1 { font-size: 30px; font-weight: 700; letter-spacing: -.025em; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .back { font-size: 17px; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; flex: 1; }
.topbar .back::before { content: ""; width: 11px; height: 11px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); margin: 0 2px 0 4px; border-radius: 1px; }
.iconbtn {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--fill); color: var(--accent);
  display: grid; place-items: center; font-size: 26px; font-weight: 400; line-height: 1; cursor: pointer; flex: none;
}
.iconbtn.ghost { width: auto; padding: 0 14px; border-radius: 17px; font-size: 15px; font-weight: 600; }

/* ---------- Tabbar ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: center;
  background: var(--bar); border-top: .5px solid var(--line);
  backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px);
  padding: 6px 4px calc(4px + env(safe-area-inset-bottom));
}
.tabbar a { flex: 1; max-width: 140px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: 10.5px; font-weight: 500; padding: 3px 0; letter-spacing: 0; }
.tabbar svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.active { color: var(--accent); }

/* ---------- Summary ---------- */
.summary { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 18px 18px 16px; margin: 6px 0 14px; }
.summary .k { font-size: 13px; color: var(--muted); font-weight: 500; }
.summary .big { font-size: 40px; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; margin: 2px 0 4px; font-variant-numeric: tabular-nums; }
.summary .delta { font-size: 15px; font-weight: 600; }
.summary .cells { display: grid; grid-template-columns: .7fr 1.6fr 1fr; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: .5px solid var(--line); }
.summary .cells div { min-width: 0; }
.summary .cells b { display: block; font-size: 19px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary .cells span { font-size: 12px; color: var(--muted); }

.alert { border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; font-size: 15px; line-height: 1.35; }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.bad { background: var(--bad-bg); color: var(--bad); }
.alert.good { background: var(--good-bg); color: var(--good); }
.alert a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Search & filters ---------- */
.search {
  width: 100%; padding: 9px 12px 9px 36px; border-radius: 12px; border: 0; background: var(--fill); outline: none; font-size: 17px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 10px center; background-size: 18px;
}
.search::placeholder { color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 2px; scrollbar-width: none; margin: 0 -16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; background: var(--surface); box-shadow: var(--shadow); padding: 7px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--text); color: var(--bg); }
.chip .n { opacity: .5; margin-left: 5px; font-variant-numeric: tabular-nums; }
.seg { display: flex; background: var(--fill); border-radius: 10px; padding: 2px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1; border: 0; background: transparent; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; color: var(--text); }
.seg button.on { background: var(--surface); box-shadow: 0 2px 6px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); }
.listhead { display: flex; justify-content: space-between; align-items: center; margin: 16px 2px 10px; font-size: 13px; color: var(--muted); gap: 8px; }
.listhead select { border: 0; background: transparent; color: var(--accent); font-size: 15px; font-weight: 500; text-align: right; }
.viewtoggle { display: flex; gap: 2px; background: var(--fill); border-radius: 8px; padding: 2px; }
.viewtoggle button { border: 0; background: transparent; width: 32px; height: 26px; border-radius: 6px; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.viewtoggle button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.viewtoggle svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Product image tile ---------- */
.prod { background: var(--tile); display: grid; place-items: center; overflow: hidden; position: relative; }
.prod img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.prod img.photo { object-fit: cover; mix-blend-mode: normal; }
.prod .ini { font-weight: 650; color: #8e8e93; letter-spacing: -.02em; }

/* ---------- Grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gcard { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: var(--text); display: flex; flex-direction: column; transition: transform .15s; }
.gcard:active { transform: scale(.97); }
.gcard .prod { aspect-ratio: 1 / 1; margin: 8px 8px 0; border-radius: 12px; }
.gcard .prod img { padding: 12%; }
.gcard .prod img.photo { padding: 0; }
.gcard .prod .ini { font-size: 34px; }
.gcard .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.gcard .t { font-size: 15px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: -.015em; }
.gcard .m { font-size: 12px; color: var(--muted); }
.gcard .foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 6px; font-variant-numeric: tabular-nums; }
.gcard .p { font-weight: 650; font-size: 15px; }
.gcard .d { font-size: 12px; font-weight: 600; }
.gcard .flag { position: absolute; top: 8px; left: 8px; }

/* ---------- List ---------- */
.list { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.row { display: flex; gap: 12px; align-items: center; padding: 10px 14px; color: var(--text); position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 72px; right: 0; border-top: .5px solid var(--line); }
.row:active { background: var(--fill); }
.thumb { width: 46px; height: 46px; border-radius: 11px; flex: none; }
.thumb img { padding: 8%; }
.thumb img.photo { padding: 0; }
.thumb .ini { font-size: 15px; }
.row .main { flex: 1; min-width: 0; }
.row .t { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .m { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .r { text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.row .r .p { font-weight: 600; font-size: 15px; }
.row .r .d { font-size: 12px; font-weight: 600; }
.row .chev { width: 8px; height: 8px; border-right: 2px solid #c7c7cc; border-top: 2px solid #c7c7cc; transform: rotate(45deg); flex: none; margin-left: 2px; }
.badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.badge { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--fill); color: var(--muted); white-space: nowrap; letter-spacing: 0; }
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.solid { background: rgba(255,255,255,.92); color: #1d1d1f; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.badge.solid.info { color: #0071e3; } .badge.solid.bad { color: #d70015; }
.pos { color: var(--good); } .neg { color: var(--bad); } .muted { color: var(--muted); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; }
.empty { text-align: center; color: var(--muted); padding: 48px 12px; }

/* ---------- Detail ---------- */
.hero-img { aspect-ratio: 4 / 3; border-radius: 24px; margin: 4px 0 18px; max-height: 46vh; width: 100%; }
.hero-img img { padding: 8%; }
.hero-img img.photo { padding: 0; }
.hero-img .ini { font-size: 64px; }
.hero-img .edit { position: absolute; right: 12px; bottom: 12px; background: rgba(255,255,255,.9); color: #1d1d1f; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.titleblock { margin: 0 2px 16px; }
.titleblock .eyebrow { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.titleblock h2 { margin: 2px 0 6px; font-size: 28px; line-height: 1.12; font-weight: 700; letter-spacing: -.028em; }
.idchip { display: inline-block; background: var(--fill); border-radius: 7px; padding: 2px 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.card h2, .sectiontitle { font-size: 13px; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); margin: 0 0 10px; font-weight: 500; }
.statuscard { display: flex; align-items: center; gap: 12px; }
.statuscard .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.statuscard .txt { flex: 1; min-width: 0; }
.statuscard .txt b { display: block; font-size: 17px; font-weight: 600; }
.statuscard .txt span { font-size: 15px; color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; margin: 0; font-size: 16px; }
.kv dt, .kv dd { padding: 11px 0; border-bottom: .5px solid var(--line); margin: 0; }
.kv dt { color: var(--text); padding-right: 16px; }
.kv dd { color: var(--muted); text-align: right; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.kv dt:nth-last-of-type(1), .kv dd:last-of-type { border-bottom: 0; }
.card .kv { margin: -8px 0; }
.bar { height: 6px; background: var(--fill); border-radius: 3px; overflow: hidden; margin: 10px 0 2px; }
.bar i { display: block; height: 100%; background: var(--good); border-radius: 3px; }
.valuebig { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.valuebig .lbl { font-size: 13px; color: var(--muted); }
.valuebig .num { font-size: 22px; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 380px) { .valuebig .num { font-size: 19px; } }
.history { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.history li { padding: 10px 0; border-bottom: .5px solid var(--line); }
.history li:last-child { border-bottom: 0; padding-bottom: 0; }
.history li:first-child { padding-top: 0; }
.qrbox { display: flex; gap: 16px; align-items: center; }
.qrbox svg { width: 92px; height: 92px; background: #fff; padding: 4px; border-radius: 10px; flex: none; box-shadow: 0 0 0 .5px var(--line); }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 14px; padding: 13px 18px; background: var(--fill); color: var(--accent); font-weight: 600; cursor: pointer; font-size: 17px; letter-spacing: -.01em; transition: opacity .15s, transform .1s; }
.btn:active { transform: scale(.98); opacity: .85; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.good { background: var(--good); color: #fff; }
.btn.danger { background: var(--surface); color: var(--bad); box-shadow: var(--shadow); }
.btn.small { padding: 7px 13px; font-size: 14px; border-radius: 999px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .4; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; }
.btnrow .btn { flex: 1; min-width: 130px; }
.form { display: grid; gap: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin: 0 4px 6px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 0; background: var(--surface); outline: none; min-height: 46px;
  box-shadow: 0 0 0 .5px var(--line); -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%238e8e93' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.field textarea { min-height: 90px; resize: vertical; }
.field .with { display: flex; gap: 8px; }
.field .with input { flex: 1; min-width: 0; }
.field .with .btn { padding: 0 16px; font-size: 15px; }
.field .hint { font-size: 13px; color: var(--muted); margin: 6px 4px 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.quick button { border: 0; background: var(--fill); color: var(--accent); border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 600; cursor: pointer; }
.check { display: flex; gap: 10px; align-items: center; font-size: 16px; color: var(--text); }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }
.formcard { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.formcard .field input, .formcard .field select, .formcard .field textarea { background: var(--bg); box-shadow: none; }

/* ---------- Sheet ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.38); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet { background: var(--bg); width: 100%; max-width: 560px; border-radius: 22px 22px 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; animation: up .28s cubic-bezier(.2,.9,.3,1); }
.sheet::before { content: ""; display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--fill); margin: 0 auto 14px; }
.sheet .field input, .sheet .field select { background: var(--surface); }
@media (min-width: 640px) { .sheet-bg { align-items: center; } .sheet { border-radius: 22px; } }
.sheet h3 { margin: 0 0 16px; font-size: 22px; letter-spacing: -.02em; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Scanner ---------- */
.scanner { position: relative; background: #000; border-radius: 24px; overflow: hidden; aspect-ratio: 3/4; max-height: 62vh; width: 100%; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner .frame { position: absolute; inset: 20% 16%; border-radius: 24px; box-shadow: 0 0 0 999px rgba(0,0,0,.42); outline: 3px solid rgba(255,255,255,.95); }
.scanner .msg { position: absolute; bottom: 16px; left: 16px; right: 16px; text-align: center; color: #fff; font-size: 15px; font-weight: 500; }

/* ---------- Labels ---------- */
.tape-wrap { background: var(--fill); border-radius: 14px; padding: 22px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; overflow-x: auto; }
.tape { background: #fff; color: #000; display: flex; align-items: center; height: 72px; padding: 0 16px 0 10px; gap: 10px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.15); flex: none; }
.tape svg { height: 56px; width: 56px; flex: none; }
.tape .tx { display: flex; flex-direction: column; justify-content: center; line-height: 1.05; white-space: nowrap; font-family: "Helvetica Neue", Arial, sans-serif; letter-spacing: 0; }
.tape .l1 { font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.tape .l2 { font-size: 13px; margin-top: 3px; }
.tape .idbig { font-weight: 800; font-size: 26px; letter-spacing: .06em; font-family: ui-monospace, Menlo, monospace; }
.tape .idsm { font-family: ui-monospace, Menlo, monospace; font-weight: 700; }
.tape-caption { font-size: 12px; color: var(--muted); }
.designs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.designs button { border: 0; box-shadow: 0 0 0 1px var(--line); background: var(--surface); border-radius: 12px; padding: 10px 6px; cursor: pointer; font-size: 13px; line-height: 1.3; }
.designs button.on { box-shadow: 0 0 0 2px var(--accent); color: var(--accent); }
details.guide summary { cursor: pointer; font-weight: 600; color: var(--accent); list-style: none; }
details.guide summary::-webkit-details-marker { display: none; }
details.guide ol { padding-left: 20px; font-size: 15px; }
details.guide li { margin-bottom: 8px; }
.selrow { display: flex; align-items: center; gap: 12px; padding: 9px 14px; position: relative; color: var(--text); }
.selrow + .selrow::before { content: ""; position: absolute; top: 0; left: 50px; right: 0; border-top: .5px solid var(--line); }
.selrow input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.selrow .main { flex: 1; min-width: 0; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom)); background: rgba(30,30,32,.92); color: #fff; padding: 11px 18px; border-radius: 999px; z-index: 60; font-size: 15px; font-weight: 500; max-width: calc(100% - 32px); box-shadow: 0 8px 30px rgba(0,0,0,.25); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); animation: up .25s; }
.toast.err { background: var(--bad); }

/* ---------- Login ---------- */
.auth { max-width: 380px; margin: 14vh auto 0; text-align: center; }
.auth .logo { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 18px; display: block; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.auth h1 { font-size: 32px; letter-spacing: -.03em; margin: 0 0 6px; }
.auth p { color: var(--muted); margin: 0 0 24px; }
.auth .form { text-align: left; }
.photo-edit { position: absolute; right: 12px; bottom: 30px; background: rgba(255,255,255,.92); color: #1d1d1f; border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg button.on, :root:not([data-theme="light"]) .viewtoggle button.on { background: #636366; } }
:root[data-theme="dark"] .seg button.on, :root[data-theme="dark"] .viewtoggle button.on { background: #636366; }
