/* Quire — ink and paper, with a saffron accent. */
:root {
  --bg: #f5f3ee;
  --bg-2: #ecE9e1;
  --surface: #ffffff;
  --surface-2: #f7f5f0;
  --raise: #ffffff;
  --line: rgba(20, 20, 24, .09);
  --line-2: rgba(20, 20, 24, .16);
  --text: #16171a;
  --muted: #6b6a66;
  --faint: #9a988f;
  --accent: #c8860f;
  --accent-ink: #1a1306;
  --accent-bg: #f2b544;
  --accent-soft: rgba(242, 181, 68, .16);
  --danger: #c4372b;
  --ok: #2f8a5b;
  --shadow-1: 0 1px 2px rgba(20, 18, 12, .06), 0 2px 8px rgba(20, 18, 12, .05);
  --shadow-2: 0 8px 28px rgba(20, 18, 12, .12), 0 2px 6px rgba(20, 18, 12, .06);
  --shadow-3: 0 24px 60px rgba(20, 18, 12, .22);
  --r-s: 10px; --r: 14px; --r-l: 20px; --r-xl: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI Variable", "Segoe UI", system-ui, Roboto, "Helvetica Neue", sans-serif;
  --font-d: -apple-system-headline, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --spring: cubic-bezier(.2, .9, .25, 1.04);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0d0f; --bg-2: #111215; --surface: #16171a; --surface-2: #1c1d21; --raise: #202125;
    --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .13);
    --text: #f3f1ec; --muted: #a4a29b; --faint: #75736d;
    --accent: #f2b544; --accent-ink: #1a1306; --accent-bg: #f2b544; --accent-soft: rgba(242, 181, 68, .14);
    --danger: #ff6b5e; --ok: #5fd39a;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 10px 30px rgba(0, 0, 0, .45); --shadow-3: 0 28px 70px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0d0f; --bg-2: #111215; --surface: #16171a; --surface-2: #1c1d21; --raise: #202125;
  --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .13);
  --text: #f3f1ec; --muted: #a4a29b; --faint: #75736d;
  --accent: #f2b544; --accent-ink: #1a1306; --accent-bg: #f2b544; --accent-soft: rgba(242, 181, 68, .14);
  --danger: #ff6b5e; --ok: #5fd39a;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 10px 30px rgba(0, 0, 0, .45); --shadow-3: 0 28px 70px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; min-height: 100dvh;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .4; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 2px; box-shadow: inset 0 -2px 0 var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.ic { width: 22px; height: 22px; flex: none; }
.ic.accent { color: var(--accent); }
.ic.faint { color: var(--faint); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 4px; }
.row.gap { gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 10px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.center { text-align: center; }
.app { min-height: 100dvh; }
.view { min-height: 100dvh; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: 15.5px;
  transition: transform .15s var(--ease), background .2s, box-shadow .2s;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn .ic { width: 19px; height: 19px; }
.btn.primary { background: var(--accent-bg); color: var(--accent-ink); border-color: transparent; box-shadow: 0 6px 18px rgba(242, 181, 68, .28); }
.btn.danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.block { display: flex; width: 100%; }
.btn.lg { min-height: 54px; font-size: 17px; }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: 14.5px; }
.text-btn { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 6px; color: var(--accent); font-weight: 600; font-size: 16px; }
.text-btn .ic { width: 24px; height: 24px; }
.text-btn.sm { min-height: 32px; font-size: 14px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; color: var(--text); transition: background .2s, transform .15s; }
.icon-btn:active { transform: scale(.92); background: var(--line); }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.sm .ic { width: 18px; height: 18px; }

/* ---------- Screen chrome ---------- */
.screen { padding: calc(var(--sat) + 8px) max(16px, var(--sar)) 0 max(16px, var(--sal)); max-width: 1080px; margin: 0 auto; }
.nav-top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin: 0 -8px; }
.large-title { font: 700 34px/1.1 var(--font-d); letter-spacing: -.02em; margin: 6px 0 14px; }
.title-sm { font: 600 17px/1.2 var(--font-d); margin: 0; text-align: center; flex: 1; }
.lede { color: var(--muted); margin: -4px 0 18px; font-size: 16px; }
.dock-space { height: calc(120px + var(--sab)); }
.dock-space.small { height: calc(40px + var(--sab)); }
.hint { color: var(--muted); font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start; margin: 12px 2px; }
.hint .ic { width: 18px; height: 18px; margin-top: 1px; }
.hint.warn { color: var(--danger); }
.hint.center { justify-content: center; }

/* ---------- Library ---------- */
.lib-head { position: sticky; top: 0; z-index: 5; margin: 0 calc(-1 * max(16px, var(--sar))) 0 calc(-1 * max(16px, var(--sal))); padding: calc(var(--sat) + 6px) max(16px, var(--sar)) 10px max(16px, var(--sal)); background: color-mix(in oklab, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); margin-top: calc(-1 * (var(--sat) + 8px)); }
.title-row { display: flex; align-items: center; justify-content: space-between; min-height: 52px; gap: 8px; }
.title-row .large-title { margin: 4px 0 6px; }
.search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); color: var(--faint); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; height: 100%; }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
.search .ic { width: 19px; height: 19px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 2px; scrollbar-width: none; margin: 0 -2px; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; font-weight: 550; color: var(--muted); transition: all .2s var(--ease); }
.chip .ic { width: 16px; height: 16px; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: transparent; }
.chip.add { padding: 0 10px; }

.banner { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; margin: 14px 0 0; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.banner b { display: block; font-size: 15px; }
.banner small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.banner-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex: none; }
.banner.soft > .ic:last-child { color: var(--faint); }

.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 14px; margin-top: 18px; }
@media (min-width: 700px) { .doc-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 28px 20px; } }
.doc-card { position: relative; animation: rise .38s var(--ease) both; }
.doc-open { display: block; width: 100%; text-align: left; border-radius: var(--r); }
.doc-thumb { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r); background: var(--surface-2); overflow: hidden; box-shadow: var(--shadow-2); border: 1px solid var(--line); transition: transform .25s var(--ease); }
.doc-open:active .doc-thumb { transform: scale(.97); }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .3s; }
.doc-thumb img.in { opacity: 1; }
.doc-thumb .count { position: absolute; right: 8px; bottom: 8px; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: rgba(12, 13, 15, .72); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sel-dot { position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: rgba(12, 13, 15, .45); color: #fff; }
.doc-card.selected .sel-dot { background: var(--accent-bg); color: var(--accent-ink); }
.doc-card.selected .doc-thumb { outline: 3px solid var(--accent-bg); outline-offset: 2px; }
.doc-info { padding: 10px 30px 0 2px; }
.doc-title { font-weight: 600; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doc-title .fav { display: inline-block; color: var(--accent); vertical-align: -3px; margin-right: 4px; }
.doc-title .fav .ic { width: 15px; height: 15px; }
.doc-meta { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.doc-meta .reading { color: var(--accent); }
.doc-snip { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.doc-more { position: absolute; right: -8px; bottom: -6px; color: var(--muted); }
.doc-grid .doc-more { top: auto; }

.doc-list { display: grid; gap: 2px; margin-top: 14px; }
.doc-list .doc-card { display: flex; align-items: center; }
.doc-list .doc-open { display: flex; gap: 14px; align-items: center; padding: 10px 4px; flex: 1; min-width: 0; }
.doc-list .doc-thumb { width: 54px; flex: none; border-radius: 9px; box-shadow: var(--shadow-1); }
.doc-list .doc-thumb .count { display: none; }
.doc-list .doc-info { padding: 0; flex: 1; min-width: 0; }
.doc-list .doc-more { position: static; }
.doc-list .sel-dot { top: 50%; left: 50%; transform: translate(-50%, -50%); }

.empty { text-align: center; padding: 56px 20px 20px; max-width: 420px; margin: 0 auto; }
.empty h2 { font: 650 22px/1.25 var(--font-d); margin: 18px 0 8px; letter-spacing: -.01em; }
.empty p { color: var(--muted); margin: 0 0 18px; }
.empty-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.empty-art { position: relative; width: 150px; height: 170px; margin: 6px auto 0; }
.empty-art .sheet-a, .empty-art .sheet-b { position: absolute; inset: 18px 26px; border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-2); border: 1px solid var(--line); }
.empty-art .sheet-a { transform: rotate(-7deg) translate(-8px, 4px); opacity: .7; }
.empty-art .sheet-b { background: repeating-linear-gradient(to bottom, transparent 0 18px, var(--line-2) 18px 20px) var(--surface); background-clip: content-box; padding: 22px 16px; transform: rotate(3deg); }
.empty-art .c { position: absolute; width: 26px; height: 26px; border: 3.5px solid var(--accent-bg); }
.empty-art .tl { top: 0; left: 6px; border-right: 0; border-bottom: 0; border-radius: 9px 0 0 0; }
.empty-art .tr { top: 0; right: 6px; border-left: 0; border-bottom: 0; border-radius: 0 9px 0 0; }
.empty-art .bl { bottom: 0; left: 6px; border-right: 0; border-top: 0; border-radius: 0 0 0 9px; }
.empty-art .br { bottom: 0; right: 6px; border-left: 0; border-top: 0; border-radius: 0 0 9px 0; }

/* ---------- Dock ---------- */
.dock {
  position: fixed; z-index: 20; left: 50%; bottom: calc(14px + var(--sab)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 999px;
  background: color-mix(in oklab, var(--raise) 88%, transparent); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-3); -webkit-backdrop-filter: saturate(1.8) blur(22px); backdrop-filter: saturate(1.8) blur(22px);
  animation: dockIn .5s var(--spring) both;
}
.dock-btn { display: grid; justify-items: center; gap: 1px; min-width: 66px; height: 54px; align-content: center; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s, transform .15s; }
.dock-btn .ic { width: 23px; height: 23px; color: var(--text); }
.dock-btn:active:not(:disabled) { transform: scale(.94); background: var(--line); }
.dock-btn.danger, .dock-btn.danger .ic { color: var(--danger); }
.scan-fab { width: 66px; height: 66px; margin: -18px 4px; border-radius: 999px; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent-ink); box-shadow: 0 10px 28px rgba(242, 181, 68, .45), inset 0 1px 0 rgba(255, 255, 255, .45); transition: transform .2s var(--spring); }
.scan-fab .ic { width: 30px; height: 30px; stroke-width: 2; }
.scan-fab:active { transform: scale(.92); }
.dock-cta { display: inline-flex; align-items: center; gap: 7px; height: 50px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--accent-bg); color: var(--accent-ink); font-weight: 700; font-size: 15px; box-shadow: 0 8px 22px rgba(242, 181, 68, .35); margin-left: 2px; }
.dock-cta .ic { width: 21px; height: 21px; }
.doc-dock .dock-btn { min-width: 52px; }
@media (max-width: 370px) { .doc-dock .dock-btn { min-width: 44px; } .doc-dock .dock-btn span { font-size: 10.5px; } .dock-cta { padding: 0 14px 0 12px; } }

/* ---------- Document ---------- */
.doc-h1 { display: flex; align-items: center; gap: 8px; text-align: left; margin: 2px 0 4px; max-width: 100%; }
.doc-h1 h1 { font: 700 28px/1.15 var(--font-d); letter-spacing: -.02em; margin: 0; overflow-wrap: anywhere; }
.doc-h1 .ic { width: 18px; height: 18px; flex: none; }
.doc-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.folder-tag { display: inline-flex; gap: 4px; align-items: center; }
.folder-tag .ic { width: 15px; height: 15px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 13px; margin-left: 4px; }
.pill .ic { width: 15px; height: 15px; }
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 16px; -webkit-touch-callout: none; }
@media (min-width: 700px) { .page-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px; } }
.page-tile { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-2); border: 1px solid var(--line); cursor: pointer; -webkit-user-select: none; user-select: none; touch-action: pan-y; animation: rise .35s var(--ease) both; }
.pt-img { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.pt-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; opacity: 0; transition: opacity .3s; pointer-events: none; }
.pt-img img.in { opacity: 1; }
.pt-num { position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%); min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--raise); border: 1px solid var(--line-2); font-size: 12px; font-weight: 700; display: grid; place-items: center; box-shadow: var(--shadow-1); }
.pt-ocr { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: rgba(12, 13, 15, .6); }
.add-tile { display: grid; place-content: center; justify-items: center; gap: 6px; background: transparent; border: 1.5px dashed var(--line-2); box-shadow: none; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.add-tile .ic { width: 28px; height: 28px; }
.placeholder { background: var(--accent-soft); border: 2px dashed var(--accent); box-shadow: none; animation: none; }
.drag-ghost { position: fixed; z-index: 100; pointer-events: none; transform: scale(1.06) rotate(-2deg); box-shadow: var(--shadow-3); transition: transform .2s var(--spring); animation: none; }
.reordering .page-tile:not(.placeholder) { transition: transform .2s var(--ease); }

/* ---------- Sheets ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(8, 8, 10, .42); opacity: 0; transition: opacity .25s; }
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100dvh - var(--sat) - 24px); overflow: auto; overscroll-behavior: contain;
  padding: 8px 18px calc(18px + var(--sab)); border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--raise);
  box-shadow: var(--shadow-3); transform: translateY(105%); transition: transform .32s var(--spring); outline: none;
}
.sheet-wrap.open .sheet-scrim { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
@media (min-width: 700px) {
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: var(--r-xl); padding-bottom: 20px; transform: translateY(24px) scale(.97); opacity: 0; transition: transform .28s var(--spring), opacity .2s; }
  .sheet-wrap.open .sheet { opacity: 1; }
}
.grab { width: 100%; height: 22px; display: grid; place-items: center; cursor: grab; touch-action: none; margin-bottom: 2px; }
.grab::before { content: ""; width: 38px; height: 5px; border-radius: 9px; background: var(--line-2); }
.sheet-title { font: 650 19px/1.25 var(--font-d); margin: 2px 2px 14px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.sheet-msg { color: var(--muted); margin: -6px 2px 18px; }
.menu { display: grid; gap: 2px; margin-bottom: 10px; }
.menu-item { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 12px; border-radius: 14px; text-align: left; font-size: 16px; font-weight: 500; }
.menu-item:active { background: var(--line); }
@media (hover: hover) { .menu-item:hover { background: var(--line); } }
.menu-item small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.menu-item.danger { color: var(--danger); }
.menu-item > .ic:first-child { color: var(--muted); }
.menu-item.danger > .ic:first-child { color: var(--danger); }
.field { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.form-rows { display: grid; gap: 12px; margin-bottom: 4px; }
.form-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; }
.form-row .label { color: var(--muted); font-size: 14px; font-weight: 550; }
@media (max-width: 360px) { .form-row { grid-template-columns: 1fr; gap: 6px; } }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { height: 36px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: all .2s var(--ease); }
.seg button[aria-checked="true"] { background: var(--raise); color: var(--text); box-shadow: var(--shadow-1); }
.ready { display: flex; align-items: center; gap: 8px; min-height: 26px; margin: 14px 2px 10px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.ready .ic { width: 18px; height: 18px; }
.dest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.dest { display: grid; justify-items: start; gap: 3px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); text-align: left; transition: transform .15s, background .2s; }
.dest:first-child { background: var(--accent-bg); color: var(--accent-ink); border-color: transparent; }
.dest:first-child small { color: rgba(26, 19, 6, .7); }
.dest .ic { width: 24px; height: 24px; margin-bottom: 6px; }
.dest b { font-size: 15px; }
.dest small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.dest:active:not(:disabled) { transform: scale(.97); }
.export-sheet .hint.faint { font-size: 12.5px; }

.text-status { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13.5px; margin: -6px 2px 12px; }
.text-status .ic { width: 17px; height: 17px; }
.text-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; line-height: 1.6; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); max-height: 52dvh; overflow: auto; margin-bottom: 14px; -webkit-user-select: text; user-select: text; }
.text-edit { min-height: 44dvh; resize: vertical; line-height: 1.55; margin-bottom: 14px; }
.text-sheet .btn { min-width: 0; }

.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(96px + var(--sab)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 16px; background: #1d1e22; color: #f3f1ec; font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-3); transition: all .3s var(--spring); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast-act { color: #f2b544; font-weight: 700; }
.busy { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(8, 8, 10, .45); opacity: 0; pointer-events: none; transition: opacity .2s; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.busy.show { opacity: 1; pointer-events: auto; }
.busy-card { display: grid; justify-items: center; gap: 12px; min-width: 220px; max-width: 300px; padding: 24px 22px; border-radius: 22px; background: var(--raise); box-shadow: var(--shadow-3); text-align: center; font-weight: 550; }
.bar { width: 100%; height: 5px; border-radius: 9px; background: var(--line-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent-bg); border-radius: inherit; transition: width .25s; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; display: inline-block; flex: none; }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; }
.spinner.xs { width: 13px; height: 13px; border-width: 2px; border-color: rgba(255, 255, 255, .3); border-top-color: #f2b544; }
.pill .spinner.xs { border-color: var(--accent-soft); border-top-color: var(--accent); }

/* ---------- Camera ---------- */
.view-camera, .view-viewer, .view-review { background: #000; color: #f3f1ec; }
.camera { position: fixed; inset: 0; background: #000; color: #fff; overflow: hidden; touch-action: none; }
.cam-stage { position: absolute; inset: 0; }
.cam-stage video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.cam-grid { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(to right, transparent calc(33.33% - .5px), rgba(255,255,255,.28) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.66% - .5px), rgba(255,255,255,.28) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
  linear-gradient(to bottom, transparent calc(33.33% - .5px), rgba(255,255,255,.28) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.66% - .5px), rgba(255,255,255,.28) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px)); }
.cam-quad { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cam-quad polygon { fill: rgba(242, 181, 68, .16); stroke: #f2b544; stroke-width: 3; stroke-linejoin: round; opacity: 0; transition: opacity .2s; filter: drop-shadow(0 0 10px rgba(242, 181, 68, .55)); }
.cam-quad.found polygon { opacity: 1; }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam-flash.go { animation: flash .38s ease-out; }
.cam-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: calc(var(--sat) + 10px) max(14px, var(--sar)) 30px max(14px, var(--sal)); background: linear-gradient(rgba(0,0,0,.55), transparent); }
.cam-btn { display: inline-flex; align-items: center; gap: 5px; height: 42px; min-width: 42px; padding: 0 10px; justify-content: center; border-radius: 999px; color: #fff; background: rgba(30, 30, 34, .5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 13px; font-weight: 650; margin-left: 6px; }
.cam-btn:first-child { margin-left: 0; }
.cam-btn.on { background: #f2b544; color: #1a1306; }
.cam-btn .ic { width: 21px; height: 21px; }
.cam-hint { position: absolute; left: 0; right: 0; top: calc(var(--sat) + 72px); display: flex; justify-content: center; pointer-events: none; }
.cam-hint span:not(:empty) { padding: 8px 16px; border-radius: 999px; background: rgba(20, 20, 24, .62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 14.5px; font-weight: 600; }
.cam-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px max(16px, var(--sar)) calc(22px + var(--sab)) max(16px, var(--sal)); background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.modes { display: flex; justify-content: center; gap: 4px; margin-bottom: 18px; }
.modes button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; letter-spacing: .02em; color: rgba(255, 255, 255, .7); text-transform: uppercase; }
.modes button[aria-checked="true"] { color: #1a1306; background: #f2b544; }
.shutter-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 420px; margin: 0 auto; }
.shutter { position: relative; width: 84px; height: 84px; border-radius: 999px; display: grid; place-items: center; }
.shutter .ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.shutter .ring circle { fill: none; stroke: #f2b544; stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .12s linear; }
.shutter::before { content: ""; position: absolute; inset: 0; border-radius: 999px; border: 4px solid rgba(255, 255, 255, .92); }
.shutter i { width: 66px; height: 66px; border-radius: 999px; background: #fff; transition: transform .15s var(--ease); }
.shutter:active i { transform: scale(.88); }
.cam-side { justify-self: start; position: relative; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: rgba(30, 30, 34, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.cam-side .ic { width: 25px; height: 25px; }
.cam-side.has { padding: 0; border: 2px solid #fff; overflow: visible; }
.cam-side.has img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; animation: pop .35s var(--spring); }
.cam-side .badge { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #f2b544; color: #1a1306; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.cam-side.done { justify-self: end; width: auto; padding: 0 16px; gap: 6px; display: inline-flex; border-radius: 999px; height: 48px; font-weight: 700; font-size: 15px; background: #f2b544; color: #1a1306; }
.cam-side.done:disabled { background: rgba(30, 30, 34, .55); color: #fff; }
.cam-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; background: #0c0d0f; z-index: 2; }
.cam-msg-card { max-width: 340px; text-align: center; }
.cam-msg-card > .ic { width: 44px; height: 44px; color: #f2b544; }
.cam-msg-card h2 { font: 650 21px/1.3 var(--font-d); margin: 12px 0 8px; }
.cam-msg-card p { color: #a4a29b; margin: 0 0 20px; }
.camera .cam-msg .btn.ghost { color: #fff; border-color: rgba(255,255,255,.2); }
.camera:has(.cam-msg:not([hidden])) .cam-bottom .modes, .camera:has(.cam-msg:not([hidden])) .shutter { visibility: hidden; }

/* ---------- Review ---------- */
.review { position: fixed; inset: 0; display: flex; flex-direction: column; background: #0c0d0f; color: #f3f1ec; }
.rv-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: calc(var(--sat) + 6px) max(12px, var(--sar)) 6px max(12px, var(--sal)); }
.rv-top > :first-child { justify-self: start; color: #f3f1ec; }
.rv-top > :last-child { justify-self: end; }
.rv-title { text-align: center; line-height: 1.2; }
.rv-title b { display: block; font-size: 16.5px; }
.rv-title small { color: #a4a29b; font-size: 12.5px; }
.crop-stage, .enh-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.enh-stage { padding: 12px 16px; }
.crop-frame { position: relative; touch-action: none; }
.crop-frame img { width: 100%; height: 100%; object-fit: fill; -webkit-user-select: none; user-select: none; pointer-events: none; border-radius: 2px; }
.crop-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.crop-svg .dim { fill: rgba(0, 0, 0, .5); }
.crop-svg .edge { fill: none; stroke: #f2b544; stroke-width: 2.5; stroke-linejoin: round; }
.crop-frame.bad .edge { stroke: #ff6b5e; }
.handle { position: absolute; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 999px; touch-action: none; }
.handle::before { content: ""; position: absolute; inset: 11px; border-radius: 999px; background: rgba(242, 181, 68, .25); border: 3px solid #f2b544; box-shadow: 0 2px 10px rgba(0,0,0,.45); transition: transform .15s var(--spring); }
.handle.active::before { transform: scale(1.35); background: rgba(242, 181, 68, .45); }
.ehandle { position: absolute; left: 0; top: 0; width: 44px; height: 30px; margin: -15px 0 0 -22px; touch-action: none; }
.ehandle::before { content: ""; position: absolute; left: 10px; right: 10px; top: 12px; height: 6px; border-radius: 9px; background: #f2b544; box-shadow: 0 1px 6px rgba(0,0,0,.5); }
.crop-frame.dragging .ehandle:not(.active)::before, .crop-frame.dragging .handle:not(.active)::before { opacity: .55; }
.loupe { position: absolute; top: 14px; width: 120px; height: 120px; border-radius: 999px; border: 3px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,.6); pointer-events: none; z-index: 3; }
.crop-warn { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: rgba(255, 107, 94, .92); color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.rv-tools { display: flex; justify-content: center; gap: 4px; padding: 8px max(10px, var(--sar)) 4px max(10px, var(--sal)); flex-wrap: wrap; }
.tool { display: grid; justify-items: center; gap: 3px; min-width: 64px; padding: 8px 6px; border-radius: 14px; font-size: 11.5px; font-weight: 600; color: #cfcdc6; transition: background .2s, transform .15s; }
.tool .ic { width: 23px; height: 23px; color: #f3f1ec; }
.tool:active:not(:disabled) { transform: scale(.93); background: rgba(255,255,255,.08); }
.tool.on { color: #f2b544; } .tool.on .ic { color: #f2b544; }
.tool.danger, .tool.danger .ic { color: #ff8a80; }
.rv-strip { display: flex; gap: 10px; overflow-x: auto; padding: 8px max(16px, var(--sal)) calc(12px + var(--sab)); scrollbar-width: none; justify-content: safe center; }
.rv-strip::-webkit-scrollbar { display: none; }
.strip-thumb { position: relative; flex: none; width: 46px; height: 60px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; opacity: .6; transition: all .2s; background: #222; }
.strip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.strip-thumb span { position: absolute; bottom: 2px; right: 3px; font-size: 10px; font-weight: 800; text-shadow: 0 1px 3px #000; }
.strip-thumb[aria-selected="true"] { border-color: #f2b544; opacity: 1; }
.crop-step .rv-tools { padding-bottom: 2px; }
.crop-step:not(:has(.rv-strip)) .rv-tools { padding-bottom: calc(14px + var(--sab)); }

.enh-img { max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; object-fit: contain; box-shadow: 0 14px 40px rgba(0,0,0,.6); border-radius: 3px; transition: transform .3s var(--ease), opacity .2s; background: #fff; }
.enh-spin { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s; pointer-events: none; }
.enh-stage.loading .enh-spin { opacity: 1; transition-delay: .25s; }
.enh-stage.loading .enh-img { opacity: .75; }
.nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: rgba(30, 30, 34, .55); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav-arrow.prev { left: max(8px, var(--sal)); } .nav-arrow.next { right: max(8px, var(--sar)); }
.nav-arrow:disabled { opacity: 0; pointer-events: none; }
@media (pointer: coarse) { .nav-arrow { display: none; } }
.adjust { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: center; padding: 6px max(18px, var(--sar)) 0 max(18px, var(--sal)); max-width: 640px; margin: 0 auto; width: 100%; }
.adjust[hidden] { display: none; }
@media (max-width: 520px) { .adjust { grid-template-columns: 1fr; gap: 6px; } .adjust .text-btn { justify-self: end; } }
.slider { display: flex; align-items: center; gap: 10px; }
.slider .ic { width: 19px; height: 19px; color: #a4a29b; }
.slider output { width: 30px; text-align: right; font-size: 12.5px; color: #a4a29b; font-variant-numeric: tabular-nums; }
input[type="range"] { flex: 1; accent-color: #f2b544; height: 30px; }
.filters { display: flex; gap: 10px; overflow-x: auto; padding: 8px max(16px, var(--sal)) calc(14px + var(--sab)); scrollbar-width: none; justify-content: safe center; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; display: grid; justify-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: #a4a29b; width: 72px; }
.fthumb { width: 64px; height: 82px; border-radius: 12px; overflow: hidden; background: #26272b; border: 2.5px solid transparent; transition: border-color .2s, transform .2s var(--spring); }
.fthumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.fthumb img.in { opacity: 1; }
.filter[aria-checked="true"] { color: #f2b544; }
.filter[aria-checked="true"] .fthumb { border-color: #f2b544; transform: translateY(-2px); }
.review .btn.primary { box-shadow: none; }

/* ---------- Viewer ---------- */
.viewer { position: fixed; inset: 0; display: flex; flex-direction: column; background: #000; color: #fff; }
.vw-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: calc(var(--sat) + 8px) max(12px, var(--sar)) 22px max(12px, var(--sal)); background: linear-gradient(rgba(0,0,0,.6), transparent); }
.vw-count { font-weight: 650; font-size: 15px; }
.vw-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; padding: calc(var(--sat) + 60px) 10px 10px; }
.vw-img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.6); will-change: transform; -webkit-user-select: none; user-select: none; transition: opacity .2s; }
.vw-spin { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.vw-spin[hidden] { display: none; }
.vw-tools { display: flex; justify-content: center; gap: 4px; padding: 8px max(10px, var(--sar)) calc(12px + var(--sab)) max(10px, var(--sal)); background: #0c0d0f; border-top: 1px solid rgba(255,255,255,.06); }

/* ---------- Settings ---------- */
.set-group-title { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin: 22px 6px 8px; }
.set-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-1); }
.set-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); cursor: pointer; }
.set-row:last-child { border-bottom: 0; }
.set-row.static { cursor: default; }
.set-row > .ic:first-child { width: 22px; height: 22px; color: var(--accent); }
.set-row small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 1px; }
.set-row .val { color: var(--muted); font-size: 15px; }
.set-row:active:not(.static) { background: var(--line); }
.switch { -webkit-appearance: none; appearance: none; position: relative; width: 51px; height: 31px; flex: none; border-radius: 999px; background: var(--line-2); transition: background .25s; cursor: pointer; margin: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 999px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .3s var(--spring); }
.switch:checked { background: var(--accent-bg); }
.switch:checked::after { transform: translateX(20px); }
.about { font-size: 12.5px; text-align: center; margin: 18px 0; }

.callout { display: flex; gap: 14px; padding: 16px; margin: 22px 0 14px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.callout > .ic { width: 26px; height: 26px; color: var(--accent); margin-top: 1px; }
.callout b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.callout p { margin: 0 0 8px; color: var(--muted); font-size: 14.5px; }
.callout p:last-child { margin-bottom: 0; }
.callout p.small { font-size: 13px; }
.callout.privacy { background: linear-gradient(160deg, var(--accent-soft), transparent 60%) var(--surface); }
.callout.ok > .ic { color: var(--ok); }
.callout.warm > .ic { color: var(--danger); }

/* ---------- Install ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px; box-shadow: var(--shadow-1); margin: 14px 0; }
.detected { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.detected .ic { width: 18px; height: 18px; }
.detected b { color: var(--text); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 42px; min-height: 30px; font-size: 15.5px; line-height: 1.5; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 29px; height: 29px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.kbd { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; white-space: nowrap; vertical-align: 1px; }
.kbd .ic { width: 15px; height: 15px; }
.other-devices { margin: 6px 2px; }
.other-devices summary { color: var(--accent); font-weight: 600; cursor: pointer; padding: 8px 0; list-style: none; }
.other-devices summary::-webkit-details-marker { display: none; }

/* ---------- Welcome ---------- */
.welcome { min-height: 100dvh; display: flex; flex-direction: column; padding: calc(var(--sat) + 18px) 24px calc(24px + var(--sab)); max-width: 520px; margin: 0 auto; touch-action: pan-y; }
.wl-brand { display: flex; align-items: center; gap: 10px; font: 700 20px var(--font-d); letter-spacing: -.01em; }
.logo { width: 30px; height: 30px; border-radius: 9px; background: #16171a; position: relative; box-shadow: var(--shadow-1); }
.logo i { position: absolute; inset: 7px 8px; border-radius: 2px; background: #f6f3ec; }
.logo::before, .logo::after { content: ""; position: absolute; width: 8px; height: 8px; border: 2px solid #f2b544; }
.logo::before { top: 4px; left: 4px; border-right: 0; border-bottom: 0; }
.logo::after { bottom: 4px; right: 4px; border-left: 0; border-top: 0; }
.wl-track { position: relative; flex: 1; min-height: 440px; }
.wl-card { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateX(40px); transition: opacity .45s var(--ease), transform .55s var(--spring); pointer-events: none; }
.wl-card.past { transform: translateX(-40px); }
.wl-card.on { opacity: 1; transform: none; pointer-events: auto; }
.wl-card h1 { font: 750 34px/1.1 var(--font-d); letter-spacing: -.025em; margin: 34px 0 12px; }
.wl-card p { color: var(--muted); font-size: 17px; line-height: 1.5; margin: 0; }
.wl-art { position: relative; width: 210px; height: 240px; margin: 0 auto; }
.wl-art .paper { position: absolute; inset: 22px 34px; border-radius: 10px; background: #fbfaf6; box-shadow: var(--shadow-3); padding: 26px 18px; display: grid; gap: 11px; align-content: start; transform: rotate(-4deg); }
.wl-art .paper span { height: 7px; border-radius: 9px; background: #d9d5ca; }
.wl-art .paper span.short { width: 62%; }
.wl-art .paper span.hl { background: #f2b544; }
.wl-art .c { position: absolute; width: 34px; height: 34px; border: 4px solid #f2b544; }
.wl-art .tl { top: 6px; left: 16px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.wl-art .tr { top: 6px; right: 16px; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.wl-art .bl { bottom: 6px; left: 16px; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.wl-art .br { bottom: 6px; right: 16px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.wl-art .beam { position: absolute; left: 26px; right: 26px; height: 3px; top: 30px; border-radius: 9px; background: #f2b544; box-shadow: 0 0 18px 4px rgba(242,181,68,.55); animation: beam 2.6s var(--ease) infinite; }
.wl-art .search-pill { position: absolute; left: 0; right: 0; bottom: 4px; margin: 0 auto; width: max-content; display: flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 999px; background: var(--raise); box-shadow: var(--shadow-2); font-size: 14px; border: 1px solid var(--line); }
.wl-art .search-pill .ic { width: 18px; height: 18px; color: var(--muted); }
.shield-wrap { position: absolute; inset: 20px 30px; border-radius: 36px; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgba(242,181,68,.35), transparent 60%), var(--surface); box-shadow: var(--shadow-3); border: 1px solid var(--line); }
.shield-wrap .ic { width: 92px; height: 92px; color: var(--accent); stroke-width: 1.3; }
.wl-art .device { display: none; }
.wl-dots { display: flex; justify-content: center; gap: 8px; margin: 10px 0 22px; }
.wl-dots i { width: 7px; height: 7px; border-radius: 9px; background: var(--line-2); transition: all .3s var(--spring); }
.wl-dots i.on { width: 24px; background: var(--accent-bg); }
.wl-actions { display: grid; gap: 6px; justify-items: center; }
.wl-actions .text-btn { color: var(--muted); }

.center-msg { text-align: center; padding-top: 30vh; }

/* ---------- Motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }
@keyframes dockIn { from { opacity: 0; transform: translate(-50%, 30px); } }
@keyframes beam { 0%, 100% { top: 30px; opacity: .2; } 50% { top: 200px; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
