/* ============================================================
   12sRecap — styles
   Mobile-first, dark, single column, no external assets.
   ============================================================ */

:root{
  --bg:#08080c;
  --surface:#13131b;
  --surface-2:#1a1a24;
  --text:#f6f3ec;
  --muted:#9b98aa;
  --line:rgba(255,255,255,.09);
  --line-strong:rgba(255,255,255,.16);
  --accent:#ff5a3c;
  --accent-soft:#ff8266;
  --accent-ink:#200a04;
  --radius:20px;
  --safe-b:env(safe-area-inset-bottom, 0px);
  --font:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", sans-serif;
}

*, *::before, *::after{ box-sizing:border-box; }

html{
  -webkit-text-size-adjust:100%;
}

html, body{ margin:0; padding:0; }

body{
  min-height:100dvh;
  word-break:keep-all;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font);
  font-size:16px;
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overscroll-behavior-y:none;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(60% 34% at 50% -8%, rgba(255,90,60,.16), transparent 70%),
    radial-gradient(46% 28% at 88% 12%, rgba(120,90,255,.10), transparent 70%),
    radial-gradient(52% 30% at 6% 24%, rgba(255,140,90,.06), transparent 70%),
    var(--bg);
  pointer-events:none;
}

button, input{ font:inherit; color:inherit; }
button{ cursor:pointer; -webkit-tap-highlight-color:transparent; }
svg{ display:block; }

[hidden]{ display:none !important; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

.muted{ color:var(--muted); }
.small{ font-size:12px; }
.fine{ font-size:11.5px; line-height:1.5; color:var(--muted); margin:8px 0 0; }

.app{
  width:100%;
  max-width:560px;
  margin:0 auto;
  min-height:100dvh;
  position:relative;
}

/* ---------- header ---------- */

.header-wrap{
  position:sticky;
  top:0;
  z-index:30;
  background:linear-gradient(180deg, rgba(8,8,12,.97) 62%, rgba(8,8,12,.78));
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  padding:calc(14px + env(safe-area-inset-top, 0px)) 20px 10px;
}

.back-btn{
  flex:none;
  width:32px;
  height:32px;
  border-radius:50%;
  border:1px solid var(--line);
  background:rgba(255,255,255,.045);
  color:var(--text);
  display:grid;
  place-items:center;
  padding:0;
  margin-left:-4px;
}
.back-btn svg{ width:20px; height:20px; }
.back-btn:active{ background:rgba(255,255,255,.12); }

.brand{ display:flex; align-items:center; gap:8px; min-width:0; }
.brand-mark{ width:24px; height:24px; display:block; filter:drop-shadow(0 4px 12px rgba(255,90,60,.35)); }
.brand-mark svg{ width:24px; height:24px; }
.brand-name{ font-weight:800; font-size:16px; letter-spacing:-.02em; }

.top-actions{ display:flex; align-items:center; gap:8px; margin-left:auto; }

.ghost-mini{
  border:1px solid var(--line-strong);
  background:rgba(255,255,255,.04);
  color:var(--text);
  border-radius:99px;
  font-size:11px;
  font-weight:700;
  padding:6px 10px;
}

.lang-toggle{
  display:flex;
  align-items:center;
  padding:3px;
  gap:2px;
  border-radius:99px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
}

.lang-btn{
  border:none;
  background:transparent;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  padding:5px 9px;
  border-radius:99px;
  transition:background .18s, color .18s;
}
.lang-btn.active{ background:#f6f3ec; color:#111015; }

.step-track{
  height:2px;
  margin:0 20px;
  background:rgba(255,255,255,.07);
  border-radius:2px;
  overflow:hidden;
}
.step-track span{
  display:block;
  height:100%;
  width:33.333%;
  background:linear-gradient(90deg,#ff8a6a,#ff5a3c);
  border-radius:2px;
  transition:width .35s cubic-bezier(.2,.8,.2,1);
}

/* ---------- screens ---------- */

main{ position:relative; }

.screen{
  display:none;
  padding:10px 20px calc(132px + var(--safe-b));
}
.screen.is-active{ display:block; animation:screen-in .3s cubic-bezier(.2,.8,.2,1) both; }

@keyframes screen-in{
  from{ opacity:0; transform:translateY(10px); }
  to{ opacity:1; transform:none; }
}

.head{ padding:10px 0 4px; }

.eyebrow{
  margin:0 0 8px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.18em;
  color:var(--accent-soft);
  text-transform:uppercase;
}

.display{
  margin:0 0 10px;
  font-size:clamp(30px, 8.6vw, 42px);
  line-height:1.06;
  letter-spacing:-.035em;
  font-weight:800;
}

.sub{
  margin:0;
  color:var(--muted);
  font-size:14.5px;
  line-height:1.55;
}

/* ---------- month grid ---------- */

.grid-meta{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin:14px 2px 10px;
  min-height:16px;
}
.count{ font-size:12px; font-weight:800; letter-spacing:.06em; color:var(--text); }
.hint{ font-size:11px; color:var(--accent-soft); text-align:right; line-height:1.35; }

.month-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:9px;
}

.month-cell{
  position:relative;
  aspect-ratio:3 / 4;
  border-radius:15px;
  background:var(--surface);
  border:1px solid var(--line);
  overflow:hidden;
  padding:0;
  transition:transform .14s ease, border-color .18s ease, box-shadow .18s ease;
  user-select:none;
  -webkit-user-select:none;
}
.month-cell:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.month-cell:active{ transform:scale(.975); }

.month-cell.is-empty{
  border-style:dashed;
  border-color:rgba(255,255,255,.15);
  background:rgba(255,255,255,.022);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  color:var(--muted);
}

.cell-month{
  position:absolute;
  top:7px;
  left:7px;
  z-index:3;
  font-size:9.5px;
  font-weight:800;
  letter-spacing:.09em;
  padding:3px 7px;
  border-radius:99px;
  background:rgba(6,6,10,.58);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  color:#fff;
}
.is-empty .cell-month{
  position:static;
  background:none;
  padding:0;
  color:var(--muted);
  font-size:10px;
  letter-spacing:.12em;
  margin-bottom:1px;
}

.cell-thumb{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  z-index:1;
}

.cell-shade{
  position:absolute;
  inset:0;
  z-index:2;
  background:linear-gradient(180deg, rgba(0,0,0,0) 52%, rgba(0,0,0,.58));
  pointer-events:none;
}

.cell-plus{ font-size:20px; line-height:1; opacity:.55; font-weight:300; }
.cell-add{ font-size:9.5px; letter-spacing:.02em; }

.cell-tools{
  position:absolute;
  left:50%;
  bottom:6px;
  z-index:4;
  transform:translateX(-50%);
  display:flex;
  gap:4px;
}
.tool{
  width:23px;
  height:23px;
  padding:0;
  border-radius:7px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(6,6,10,.56);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  color:#fff;
  font-size:14px;
  line-height:1;
  display:grid;
  place-items:center;
}
.tool:active{ background:rgba(255,255,255,.22); }

.cell-x{
  position:absolute;
  top:6px;
  right:6px;
  z-index:4;
  width:21px;
  height:21px;
  padding:0;
  border-radius:50%;
  border:none;
  background:rgba(6,6,10,.62);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  color:#fff;
  font-size:13px;
  line-height:1;
  display:grid;
  place-items:center;
}

.month-cell.dragging{ opacity:.35; }
.month-cell.drop-target{ outline:2px solid var(--accent); outline-offset:-2px; }

/* ---------- buttons ---------- */

.primary-btn{
  width:100%;
  min-height:56px;
  border:none;
  border-radius:16px;
  background:linear-gradient(180deg, #ff7c5e, #ff5a3c 62%, #f24c30);
  color:var(--accent-ink);
  font-size:16px;
  font-weight:800;
  letter-spacing:-.01em;
  box-shadow:0 14px 34px -16px rgba(255,90,60,.75), inset 0 1px 0 rgba(255,255,255,.28);
  transition:transform .12s ease, filter .18s ease, opacity .18s ease;
}
.primary-btn:active{ transform:scale(.985); }
.primary-btn:disabled{
  opacity:1;
  background:#1c1c25;
  color:#716e82;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);
  filter:none;
  cursor:default;
}

.ghost-btn{
  min-height:56px;
  border-radius:16px;
  border:1px solid var(--line-strong);
  background:rgba(255,255,255,.045);
  color:var(--text);
  font-size:14.5px;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 18px;
  transition:background .18s ease;
}
.ghost-btn:active{ background:rgba(255,255,255,.1); }
.ghost-btn.wide{ width:100%; margin-top:16px; }
.ghost-btn.attention{
  border-color:rgba(255,90,60,.45);
  background:rgba(255,90,60,.08);
  color:#ffd9cf;
}

.ghost-btn .limit{
  font-size:11px;
  font-weight:600;
  color:var(--muted);
  padding-left:2px;
}

.ico{ width:18px; height:18px; flex:none; }
.ico.tiny{ width:13px; height:13px; }

.text-btn{
  display:block;
  width:100%;
  border:none;
  background:none;
  color:var(--muted);
  font-size:13px;
  font-weight:600;
  padding:14px 8px;
  text-align:center;
}
.text-btn.strong{ color:var(--text); font-weight:700; }
.text-btn.test{ color:#8b88a0; font-size:11.5px; }
.text-btn:hover{ color:var(--text); }

.small-btn{
  border:none;
  border-radius:12px;
  background:#f6f3ec;
  color:#131018;
  font-weight:800;
  font-size:12px;
  padding:11px 13px;
  white-space:nowrap;
}

.privacy-note{
  display:flex;
  align-items:flex-start;
  gap:7px;
  margin:16px 2px 0;
  color:#7d7a90;
  font-size:11px;
  line-height:1.5;
}
.privacy-note .ico{ margin-top:1px; color:#7d7a90; }

/* ---------- dock ---------- */

.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:40;
  display:flex;
  justify-content:center;
  padding:14px 20px calc(14px + var(--safe-b));
  background:linear-gradient(180deg, rgba(8,8,12,0), rgba(8,8,12,.9) 34%, rgba(8,8,12,.99));
  pointer-events:none;
}
.dock > *{ pointer-events:auto; width:100%; max-width:520px; }
.dock-row{ display:flex; gap:10px; }
.dock-row .primary-btn{ flex:1.5; }
.dock-row .ghost-btn{ flex:1; }

/* ---------- style screen ---------- */

.stage-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:9px;
  padding-top:6px;
}

.stage{
  position:relative;
  border-radius:22px;
  overflow:hidden;
  background:#000;
  box-shadow:0 30px 70px -34px #000, 0 0 0 1px rgba(255,255,255,.09);
  isolation:isolate;
}

#previewCanvas{
  display:block;
  height:min(52vh, 560px);
  width:auto;
  max-width:100%;
  aspect-ratio:9 / 16;
  background:#0d0d13;
}

.play-btn{
  position:absolute;
  inset:0;
  margin:auto;
  width:58px;
  height:58px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(6,6,10,.46);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  color:#fff;
  display:grid;
  place-items:center;
  transition:opacity .22s ease, transform .22s ease;
}
.play-btn svg{ width:26px; height:26px; }
.play-btn .i-pause{ display:none; }
.play-btn.is-playing{ opacity:0; transform:scale(.92); }
.play-btn:focus-visible{ opacity:1; transform:none; }

.timeline{
  width:min(100%, 300px);
  height:3px;
  border-radius:3px;
  background:rgba(255,255,255,.12);
  overflow:hidden;
}
.timeline span{
  display:block;
  height:100%;
  width:0%;
  background:linear-gradient(90deg,#ff8a6a,#ff5a3c);
  border-radius:3px;
}

.stage-note{
  margin:0;
  font-size:10.5px;
  color:#7d7a90;
  letter-spacing:.01em;
}

.panel{
  margin-top:20px;
  padding:17px 16px 6px;
  border-radius:22px;
  background:rgba(255,255,255,.035);
  border:1px solid var(--line);
}

.panel-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  margin-bottom:12px;
}
.panel-title h2{
  margin:0;
  font-size:14px;
  font-weight:800;
  letter-spacing:-.01em;
}

.templates{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:8px;
  margin-bottom:16px;
}

.tpl{
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:5px 5px 8px;
  border-radius:14px;
  border:1px solid transparent;
  background:rgba(0,0,0,.28);
  text-align:left;
  color:var(--muted);
  transition:border-color .18s, background .18s, transform .12s;
}
.tpl:active{ transform:scale(.98); }
.tpl.active{
  border-color:var(--accent);
  background:rgba(255,90,60,.09);
  color:var(--text);
  box-shadow:0 0 0 1px rgba(255,90,60,.25), 0 10px 30px -20px rgba(255,90,60,.8);
}

.tpl-thumb{
  display:block;
  border-radius:9px;
  overflow:hidden;
  aspect-ratio:9 / 16;
  background:#05050a;
}
.tpl-thumb canvas{ width:100%; height:100%; display:block; }

.tpl-name{ font-size:11.5px; font-weight:800; padding:0 2px; }
.tpl-desc{ font-size:9px; line-height:1.3; padding:0 2px; min-height:2.4em; }

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
  border-top:1px solid rgba(255,255,255,.06);
  font-size:13.5px;
  font-weight:700;
}

.seg{
  display:flex;
  gap:2px;
  padding:3px;
  border-radius:11px;
  background:rgba(0,0,0,.36);
  border:1px solid rgba(255,255,255,.05);
}
.seg button{
  border:none;
  background:none;
  color:var(--muted);
  font-size:11.5px;
  font-weight:800;
  padding:7px 12px;
  border-radius:8px;
  transition:background .18s, color .18s;
}
.seg button.active{ background:rgba(255,255,255,.14); color:#fff; }

.panel .hint{
  display:block;
  margin:2px 0 12px;
  color:#7d7a90;
  text-align:left;
  font-size:10.5px;
  line-height:1.5;
}

/* ---------- result ---------- */

.result-media{
  position:relative;
  margin:16px auto 4px;
  height:min(44vh, 520px);
  aspect-ratio:9 / 16;
  max-width:100%;
  border-radius:22px;
  overflow:hidden;
  background:#000;
  box-shadow:0 30px 70px -34px #000, 0 0 0 1px rgba(255,255,255,.09);
}
.result-media video,
.result-media img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  background:#000;
}
.badge{
  position:absolute;
  left:10px;
  top:10px;
  z-index:2;
  font-size:9.5px;
  font-weight:800;
  letter-spacing:.06em;
  padding:4px 8px;
  border-radius:99px;
  background:rgba(6,6,10,.62);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  color:#fff;
  border:1px solid rgba(255,255,255,.12);
}

.codec-note{
  text-align:center;
  margin:10px 8px 2px;
  color:#8b88a0;
}

.teaser{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:16px;
  padding:13px 14px;
  border-radius:16px;
  border:1px dashed rgba(255,255,255,.18);
  background:rgba(255,255,255,.03);
}
.teaser.unlocked{
  border-style:solid;
  border-color:rgba(255,90,60,.28);
  background:rgba(255,90,60,.07);
}
.unlock-check{
  flex:none;
  width:24px;
  height:24px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--accent);
  color:#1b0b06;
  font-size:12px;
  font-weight:900;
}

.teaser-text{ min-width:0; flex:1 1 0; }
.teaser-text strong{ display:block; font-size:13px; letter-spacing:-.01em; }
.teaser-text span{ display:block; font-size:11px; color:var(--muted); margin-top:2px; }

#btnRestart{ margin-top:6px; }

/* ---------- cross promo ---------- */

.promo-block{ margin-top:26px; }
.promo-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin:0 2px 2px;
}
.promo-head h2{
  margin:0;
  font-size:13px;
  font-weight:800;
  letter-spacing:.02em;
  color:var(--text);
}
.promo-note{
  font-size:10px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--muted);
}
.promo-card{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:9px;
  padding:12px 13px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background:rgba(255,255,255,.03);
  color:inherit;
  text-decoration:none;
  transition:border-color .2s, background .2s;
}
.promo-card:hover{
  border-color:rgba(255,90,60,.4);
  background:rgba(255,90,60,.06);
}
.promo-mark{
  flex:none;
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:11px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(155deg,#2c2242,#1a142c);
  font-size:17px;
  line-height:1;
}
.promo-mark.rose{ background:linear-gradient(155deg,#4a1f2a,#2c141c); }
.promo-copy{ min-width:0; flex:1; }
.promo-copy strong{ display:block; font-size:13.5px; letter-spacing:-.01em; color:var(--text); }
.promo-copy span{ display:block; margin-top:2px; font-size:11.5px; line-height:1.45; color:var(--muted); }
.promo-arrow{ color:var(--accent-soft); font-size:14px; }

.site-footer{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:7px;
  margin:-104px 0 0;
  padding:0 20px calc(112px + var(--safe-b));
  font-size:11.5px;
  color:#7d7a90;
}
.site-footer a{ color:#a09db0; text-decoration:none; }
.site-footer a:hover{ color:var(--text); }
.site-footer .dot{ opacity:.5; }

/* ---------- modals & sheets ---------- */

.modal{
  position:fixed;
  inset:0;
  z-index:60;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}
.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(4,4,8,.62);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  animation:fade-in .22s ease both;
}
@keyframes fade-in{ from{ opacity:0 } to{ opacity:1 } }

.sheet{
  position:relative;
  width:100%;
  max-width:520px;
  max-height:90dvh;
  overflow-y:auto;
  padding:9px 22px calc(20px + var(--safe-b));
  background:#121219;
  border-top:1px solid rgba(255,255,255,.1);
  border-radius:24px 24px 0 0;
  box-shadow:0 -30px 80px -20px rgba(0,0,0,.8);
  animation:sheet-in .3s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes sheet-in{
  from{ transform:translateY(100%); }
  to{ transform:none; }
}

.sheet-grab{
  width:38px;
  height:4px;
  margin:2px auto 14px;
  border-radius:99px;
  background:rgba(255,255,255,.18);
}

.sheet-title{
  margin:0 0 6px;
  font-size:21px;
  line-height:1.2;
  letter-spacing:-.025em;
  font-weight:800;
}
.sheet-sub{
  margin:0 0 16px;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}

.sheet-item{
  display:block;
  width:100%;
  text-align:left;
  border:none;
  border-top:1px solid rgba(255,255,255,.07);
  background:none;
  color:var(--text);
  font-size:15px;
  font-weight:600;
  padding:16px 2px;
}
.sheet-item.danger{ color:#ff7a63; }
.sheet-item.quiet{ color:var(--muted); }

/* paywall */

.paywall-sheet{ padding-bottom:calc(16px + var(--safe-b)); }

.features{
  list-style:none;
  margin:0 0 18px;
  padding:0;
  display:grid;
  gap:9px;
}
.features li{
  position:relative;
  padding-left:26px;
  font-size:13.5px;
  color:#ddd9d0;
}
.features li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:-1px;
  width:18px;
  height:18px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:10px;
  font-weight:900;
  color:#160a06;
  background:var(--accent);
}

.price-row{
  display:flex;
  align-items:baseline;
  gap:9px;
  margin-bottom:14px;
}
.price{ font-size:34px; font-weight:800; letter-spacing:-.04em; }
.price-once{ font-size:12px; color:var(--muted); font-weight:600; }

/* ---------- year-end launch offer ---------- */

.price-was{
  align-self:center;
  font-size:15px;
  font-weight:700;
  color:var(--muted);
  text-decoration:line-through;
  text-decoration-thickness:2px;
  text-decoration-color:rgba(255,90,60,.7);
}
.promo-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin:-4px 0 14px;
  padding:5px 11px;
  border-radius:999px;
  border:1px solid rgba(255,90,60,.42);
  background:rgba(255,90,60,.12);
  color:var(--accent-soft);
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.07em;
  line-height:1.25;
  text-transform:uppercase;
  white-space:nowrap;
}
.promo-badge::before{
  content:"";
  flex:none;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--accent);
}
.promo-badge em{ font-style:normal; }
.promo-badge.sm{
  margin:6px 0 0;
  padding:3px 7px;
  gap:4px;
  font-size:8.5px;
  letter-spacing:0;
}
.teaser-promo{ flex-basis:100%; }
.teaser-promo .promo-badge.sm{ margin:0; }
.promo-was{
  font-weight:800;
  color:rgba(246,243,236,.6);
  text-decoration:line-through;
  text-decoration-thickness:1.5px;
  text-decoration-color:rgba(255,90,60,.7);
}

.paywall-sheet .primary-btn{ margin-top:2px; }
.paywall-sheet .fine{ text-align:center; }

.restore{ margin-top:6px; }

.restore-box{
  display:flex;
  gap:8px;
  padding:4px 0 8px;
}
.restore-box input{
  flex:1;
  min-width:0;
  height:42px;
  padding:0 12px;
  border-radius:11px;
  border:1px solid var(--line-strong);
  background:rgba(0,0,0,.35);
  color:var(--text);
  font-size:13px;
  outline:none;
}
.restore-box input:focus{ border-color:var(--accent); }

/* ---------- overlays ---------- */

.overlay{
  position:fixed;
  inset:0;
  z-index:80;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(6,6,10,.82);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
.render-overlay{ background:rgba(6,6,10,.68); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); }

.busy-card, .render-card{
  width:100%;
  max-width:320px;
  border-radius:22px;
  padding:26px 22px;
  text-align:center;
  background:rgba(18,18,26,.94);
  border:1px solid var(--line-strong);
  box-shadow:0 30px 80px -30px #000;
}
.busy-card p{ margin:14px 0 0; font-size:13px; color:var(--muted); }

.spinner{
  display:inline-block;
  width:30px;
  height:30px;
  border-radius:50%;
  background:conic-gradient(from 0deg, rgba(255,90,60,0), #ff5a3c);
  -webkit-mask:radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  mask:radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  animation:spin .9s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg) } }

.render-count{
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:4px;
  color:var(--text);
  font-variant-numeric:tabular-nums;
}
.render-count span:first-child{
  font-size:56px;
  font-weight:800;
  letter-spacing:-.05em;
  line-height:1;
}
.render-count .unit{ font-size:16px; color:var(--muted); font-weight:700; }

#renderStage{ margin:10px 0 16px; font-size:13px; font-weight:700; }
.progress{
  height:4px;
  border-radius:4px;
  background:rgba(255,255,255,.1);
  overflow:hidden;
}
.progress span{
  display:block;
  width:0%;
  height:100%;
  background:linear-gradient(90deg,#ff8a6a,#ff5a3c);
  border-radius:4px;
}
.render-card .fine{ margin-top:12px; }

/* ---------- toast ---------- */

.toast{
  position:fixed;
  left:50%;
  bottom:calc(96px + var(--safe-b));
  z-index:100;
  max-width:calc(100vw - 40px);
  padding:11px 16px;
  border-radius:13px;
  background:rgba(26,26,36,.97);
  border:1px solid rgba(255,255,255,.13);
  box-shadow:0 18px 40px -18px #000;
  color:#fff;
  font-size:13px;
  line-height:1.4;
  text-align:center;
  opacity:0;
  transform:translate(-50%, 10px);
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
}
.toast.show{ opacity:1; transform:translate(-50%, 0); }

body.is-locked{ overflow:hidden; }

/* ---------- wide screens ---------- */

@media (min-width:720px){
  .screen{ padding-left:26px; padding-right:26px; }
  .topbar{ padding-left:26px; padding-right:26px; }
  .month-grid{ gap:11px; }
  #previewCanvas{ height:min(52vh, 560px); }
}

@media (prefers-reduced-motion:reduce){
  *, *::before, *::after{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}
