/* FORGE — industrial dark, electric lime */
:root {
  --bg: #0a0a0b; --bg-raised: #121214; --bg-card: #161618;
  --line: #232326; --line-strong: #2e2e33;
  --ink: #f2f2ef; --ink-dim: #9b9b93; --ink-faint: #5d5d57;
  --accent: #c8f135; --accent-ink: #0c0f00; --accent-dim: rgba(200, 241, 53, 0.14);
  --water: #4dc9f0; --water-deep: #1e8ab8; --danger: #ff5c39;
  --display: 'Anton', 'Arial Narrow', sans-serif; --body: 'Barlow', sans-serif;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  font-family: var(--body);
  background: radial-gradient(120% 60% at 50% -10%, rgba(200,241,53,0.06), transparent 60%), repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,0.012) 3px 4px), var(--bg);
  color: var(--ink); min-height: 100dvh; padding-bottom: calc(76px + var(--sab));
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; user-select: none; -webkit-user-select: none;
}
input, textarea { user-select: text; -webkit-user-select: text; }
.app-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + var(--sat)) 16px 10px; background: rgba(10,10,11,0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 14px; height: 14px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 60%, 60% 100%, 0 100%); }
.brand h1 { font-family: var(--display); font-size: 22px; letter-spacing: 0.06em; font-weight: 400; line-height: 1; }
.header-week { font-family: var(--display); font-size: 15px; letter-spacing: 0.08em; color: var(--accent); }
.header-week small { color: var(--ink-faint); font-size: 15px; }
.week-strip { display: flex; gap: 6px; overflow-x: auto; padding: 14px 16px 4px; scrollbar-width: none; scroll-padding: 16px; }
.week-strip::-webkit-scrollbar { display: none; }
.week-pill { flex: 0 0 auto; min-width: 52px; padding: 8px 0 6px; background: var(--bg-card); border: 1px solid var(--line); color: var(--ink-dim); text-align: center; cursor: pointer; font-family: var(--body); }
.week-pill b { display: block; font-family: var(--display); font-size: 17px; font-weight: 400; color: var(--ink); }
.week-pill small { font-size: 9px; letter-spacing: 0.14em; }
.week-pill.current b { color: var(--accent); }
.week-pill.active { background: var(--accent); border-color: var(--accent); }
.week-pill.active b, .week-pill.active small { color: var(--accent-ink); }
.week-pill .wk-dots { display: flex; gap: 2px; justify-content: center; margin-top: 3px; height: 3px; }
.week-pill .wk-dots i { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.week-pill .wk-dots i.on { background: var(--accent); }
.week-pill.active .wk-dots i { background: rgba(12,15,0,0.25); }
.week-pill.active .wk-dots i.on { background: var(--accent-ink); }
.day-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 10px 16px 2px; }
.day-pill { padding: 9px 0 7px; text-align: center; cursor: pointer; background: transparent; border: 1px solid transparent; color: var(--ink-faint); position: relative; }
.day-pill b { display: block; font-family: var(--display); font-size: 13px; font-weight: 400; letter-spacing: 0.05em; }
.day-pill small { font-size: 8px; letter-spacing: 0.1em; display: block; margin-top: 2px; text-transform: uppercase; }
.day-pill.today b { color: var(--ink); }
.day-pill.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.day-pill.active b { color: var(--accent); }
.day-pill .done-tick { position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.workout-head { padding: 18px 16px 6px; }
.workout-title { font-family: var(--display); font-size: clamp(38px, 11vw, 52px); line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase; font-weight: 400; }
.workout-title .accent { color: var(--accent); }
.workout-sub { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--ink-dim); font-size: 13px; letter-spacing: 0.04em; }
.progress-track { flex: 1; height: 3px; background: var(--line); overflow: hidden; }
.progress-track i { display: block; height: 100%; background: var(--accent); transition: width 0.4s cubic-bezier(.2,.8,.2,1); }
.exercise-list { padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.ex-card { background: var(--bg-card); border: 1px solid var(--line); border-left: 3px solid var(--line-strong); padding: 14px 14px 12px; animation: rise 0.35s cubic-bezier(.2,.8,.2,1) backwards; }
.ex-card:nth-child(1) { animation-delay: 0.02s; } .ex-card:nth-child(2) { animation-delay: 0.06s; } .ex-card:nth-child(3) { animation-delay: 0.1s; } .ex-card:nth-child(4) { animation-delay: 0.14s; } .ex-card:nth-child(5) { animation-delay: 0.18s; } .ex-card:nth-child(6) { animation-delay: 0.22s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.ex-card.complete { border-left-color: var(--accent); }
.ex-card.complete .ex-name { color: var(--ink-dim); }
.ex-top { display: flex; align-items: baseline; gap: 10px; }
.ex-num { font-family: var(--display); font-size: 15px; color: var(--ink-faint); min-width: 22px; }
.ex-card.complete .ex-num { color: var(--accent); }
.ex-name { font-family: var(--display); font-size: 19px; font-weight: 400; letter-spacing: 0.03em; text-transform: uppercase; flex: 1; line-height: 1.1; }
.ex-target { font-size: 11px; letter-spacing: 0.12em; color: var(--accent); white-space: nowrap; font-weight: 600; }
.set-rows { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.set-block { display: flex; flex-direction: column; gap: 3px; }
.set-row { display: grid; grid-template-columns: 44px 1fr 1fr 46px; gap: 6px; align-items: stretch; }
.set-hist { padding-left: 50px; font-size: 10px; letter-spacing: 0.1em; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.set-hist b { color: var(--ink-dim); font-weight: 600; }
.set-hist .pr-star { color: var(--accent); }
.set-label { display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 12px; color: var(--ink-faint); letter-spacing: 0.06em; background: var(--bg-raised); border: 1px solid var(--line); }
.set-field { position: relative; }
.set-field input { width: 100%; height: 46px; background: var(--bg-raised); border: 1px solid var(--line); color: var(--ink); font-family: var(--body); font-size: 17px; font-weight: 600; text-align: center; padding-right: 26px; border-radius: 0; font-variant-numeric: tabular-nums; }
.set-field input:focus { outline: none; border-color: var(--accent); }
.set-field input::placeholder { color: var(--ink-faint); font-weight: 400; }
.set-field .suffix { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); font-size: 9px; letter-spacing: 0.08em; color: var(--ink-faint); pointer-events: none; }
.set-done { border: 1px solid var(--line); background: var(--bg-raised); color: var(--ink-faint); cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s; }
.set-done svg { width: 20px; height: 20px; fill: currentColor; }
.set-done.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ex-note { margin-top: 10px; width: 100%; background: transparent; border: none; border-bottom: 1px dashed var(--line-strong); color: var(--ink-dim); font-family: var(--body); font-size: 13px; padding: 6px 2px; border-radius: 0; }
.ex-note:focus { outline: none; border-bottom-color: var(--accent); }
.ex-note::placeholder { color: var(--ink-faint); }
.rest-card { margin: 28px 16px; padding: 44px 20px; text-align: center; border: 1px dashed var(--line-strong); }
.rest-card h3 { font-family: var(--display); font-size: 46px; font-weight: 400; letter-spacing: 0.04em; color: var(--ink-faint); }
.rest-card h3 span { color: var(--accent); }
.rest-card p { color: var(--ink-dim); font-size: 14px; margin-top: 10px; }
.day-complete-banner { margin: 4px 16px 0; padding: 14px 16px; background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-size: 17px; letter-spacing: 0.06em; display: flex; justify-content: space-between; align-items: center; animation: rise 0.35s cubic-bezier(.2,.8,.2,1); }
.date-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 4px; }
.date-arrow { width: 42px; height: 42px; background: var(--bg-card); border: 1px solid var(--line); color: var(--ink-dim); font-size: 17px; cursor: pointer; }
.date-arrow:disabled { opacity: 0.25; }
.date-label { text-align: center; }
.date-label b { display: block; font-family: var(--display); font-size: 20px; font-weight: 400; letter-spacing: 0.05em; text-transform: uppercase; }
.date-label b .accent { color: var(--accent); }
.date-label small { color: var(--ink-faint); font-size: 11px; letter-spacing: 0.1em; }
.water-panel { overflow: hidden; }
.water-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.water-readout { margin-top: 8px; font-variant-numeric: tabular-nums; }
.water-readout b { font-family: var(--display); font-size: 42px; font-weight: 400; color: var(--water); line-height: 1; }
.water-readout span { color: var(--ink-faint); font-size: 15px; }
.water-streak { margin-top: 8px; font-size: 12px; color: var(--ink-dim); letter-spacing: 0.05em; }
.water-streak b { color: var(--accent); }
.bottle { position: relative; width: 92px; height: 150px; flex: 0 0 auto; border: 2px solid var(--line-strong); border-radius: 10px 10px 16px 16px; border-top-width: 6px; overflow: hidden; background: var(--bg-raised); }
.bottle.full { border-color: var(--water); box-shadow: 0 0 22px rgba(77,201,240,0.35); }
.liquid { position: absolute; left: 0; right: 0; bottom: 0; height: 0%; background: linear-gradient(180deg, var(--water), var(--water-deep)); transition: height 0.6s cubic-bezier(.2,.8,.2,1); }
.wave { position: absolute; left: -30%; top: -9px; width: 160%; height: 18px; background: var(--bg-raised); border-radius: 38% 52% 44% 56%; animation: bob 3.2s ease-in-out infinite alternate; }
.wave2 { background: transparent; border-bottom: 3px solid rgba(255,255,255,0.28); animation-duration: 4.6s; animation-direction: alternate-reverse; top: -7px; }
@keyframes bob { from { transform: translateX(-14px) rotate(-2deg); } to { transform: translateX(14px) rotate(2deg); } }
.bottle-marks { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-evenly; pointer-events: none; }
.bottle-marks i { display: block; width: 10px; height: 1px; background: rgba(255,255,255,0.22); margin-left: 6px; }
.bottle-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 19px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.55); pointer-events: none; }
.water-msg { min-height: 18px; margin-top: 10px; font-size: 12px; letter-spacing: 0.06em; color: var(--water); }
.water-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.water-btn { padding: 10px 0 8px; background: var(--bg-raised); border: 1px solid var(--line); color: var(--ink); font-family: var(--display); font-size: 15px; cursor: pointer; }
.water-btn small { display: block; font-family: var(--body); font-size: 8px; letter-spacing: 0.14em; color: var(--ink-faint); margin-top: 2px; }
.water-btn:active { border-color: var(--water); color: var(--water); }
.water-btn.undo { color: var(--ink-dim); }
.drop { position: fixed; font-size: 16px; pointer-events: none; z-index: 70; animation: dropfall 1.4s ease-in forwards; }
@keyframes dropfall { from { transform: translateY(0) rotate(0); opacity: 1; } to { transform: translateY(46vh) rotate(220deg); opacity: 0; } }
.macro-row { margin-bottom: 12px; } .macro-row:last-child { margin-bottom: 0; }
.macro-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; font-size: 11px; letter-spacing: 0.12em; color: var(--ink-dim); }
.macro-head b { font-family: var(--display); font-size: 15px; font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; }
.macro-head b span { color: var(--ink-faint); font-size: 12px; }
.macro-track { height: 6px; background: var(--line); overflow: hidden; }
.macro-track i { display: block; height: 100%; background: var(--accent); transition: width 0.4s cubic-bezier(.2,.8,.2,1); }
.macro-track i.over { background: var(--danger); }
.meal-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.meal-row:last-child { border-bottom: none; }
.meal-check { width: 24px; height: 24px; flex: 0 0 auto; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: transparent; }
.meal-row.on .meal-check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.meal-check svg { width: 15px; height: 15px; fill: currentColor; }
.meal-info { flex: 1; min-width: 0; }
.meal-name { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.meal-row.on .meal-name { color: var(--ink-dim); }
.meal-qty { font-size: 11px; color: var(--ink-faint); }
.meal-macros { font-size: 10px; color: var(--ink-faint); letter-spacing: 0.05em; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meal-macros b { display: block; font-family: var(--display); font-size: 13px; font-weight: 400; color: var(--ink-dim); }
.meal-row.on .meal-macros b { color: var(--accent); }
.food-form input[type="text"] { width: 100%; height: 42px; background: var(--bg-raised); border: 1px solid var(--line); color: var(--ink); font-family: var(--body); font-size: 15px; padding: 0 10px; border-radius: 0; }
.food-form input:focus { outline: none; border-color: var(--accent); }
.food-macros { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 74px; gap: 6px; margin-top: 6px; }
.food-macros input { height: 42px; background: var(--bg-raised); border: 1px solid var(--line); color: var(--ink); font-size: 14px; text-align: center; border-radius: 0; min-width: 0; }
.food-macros .btn-accent { height: 42px; font-size: 12px; flex: none; }
.custom-food-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.custom-food-row:last-child { border-bottom: none; }
.custom-food-row .cf-name { flex: 1; color: var(--ink); font-weight: 600; }
.custom-food-row .cf-macros { color: var(--ink-faint); font-size: 11px; white-space: nowrap; }
.cf-del { background: none; border: none; color: var(--danger); font-size: 16px; cursor: pointer; padding: 4px 6px; }
.supp-note { font-size: 11px; color: var(--ink-faint); }
.checkin-row { margin-bottom: 12px; }
.checkin-weight { display: flex; gap: 8px; align-items: center; }
.checkin-weight input { width: 100px; height: 46px; background: var(--bg-raised); border: 1px solid var(--line); color: var(--ink); font-size: 18px; font-weight: 600; text-align: center; border-radius: 0; font-variant-numeric: tabular-nums; }
.checkin-weight input:focus { outline: none; border-color: var(--accent); }
.bw-unit { color: var(--ink-faint); font-size: 12px; letter-spacing: 0.08em; }
.pose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pslot { position: relative; aspect-ratio: 3 / 4; border: 1px dashed var(--line-strong); background: var(--bg-raised); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; padding: 0; overflow: hidden; }
.pslot.add { color: var(--ink-dim); }
.pslot.add:active { border-color: var(--accent); color: var(--accent); }
.pslot-plus { font-family: var(--display); font-size: 34px; line-height: 0.8; }
.pslot.add small { font-family: var(--display); font-size: 12px; letter-spacing: 0.14em; }
.pslot.filled { border-style: solid; border-color: var(--line-strong); }
.pslot.filled img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pslot-label { position: absolute; left: 6px; bottom: 6px; background: rgba(10,10,11,0.78); color: var(--accent); font-family: var(--display); font-size: 10px; letter-spacing: 0.1em; padding: 2px 7px; }
.pslot-del { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border: none; background: rgba(10,10,11,0.72); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.pslot-del:active { background: var(--danger); }
.pose-select { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 10px; }
.pose-select button { padding: 7px 0; background: var(--bg-raised); border: 1px solid var(--line); color: var(--ink-faint); font-family: var(--display); font-size: 11px; letter-spacing: 0.08em; cursor: pointer; }
.pose-select button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.compare-cell { position: relative; }
.compare-cell img { width: 100%; display: block; border: 1px solid var(--line-strong); }
.compare-cell .tag { position: absolute; left: 6px; top: 6px; background: rgba(10,10,11,0.8); color: var(--accent); font-family: var(--display); font-size: 11px; letter-spacing: 0.1em; padding: 3px 8px; }
.compare-empty { grid-column: 1 / -1; }
.gallery { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 auto; width: 84px; cursor: pointer; }
.gallery-item img { width: 84px; height: 112px; object-fit: cover; border: 1px solid var(--line-strong); display: block; }
.gallery-item.sel img { border-color: var(--accent); }
.gallery-item small { display: block; text-align: center; font-size: 9px; color: var(--ink-faint); letter-spacing: 0.08em; margin-top: 3px; }
.progress-hero { padding: 22px 16px 8px; }
.progress-hero h2 { font-family: var(--display); font-size: clamp(34px, 10vw, 48px); font-weight: 400; line-height: 0.95; text-transform: uppercase; }
.progress-hero h2 span { color: var(--accent); }
.progress-hero .hero-sub { color: var(--ink-dim); font-size: 13px; margin-top: 8px; letter-spacing: 0.03em; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px; }
.stat-tile { background: var(--bg-card); border: 1px solid var(--line); padding: 14px; }
.stat-tile .v { font-family: var(--display); font-size: 28px; font-weight: 400; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-tile .v em { font-style: normal; color: var(--accent); }
.stat-tile .k { font-size: 10px; letter-spacing: 0.14em; color: var(--ink-dim); text-transform: uppercase; margin-top: 6px; }
.panel { margin: 10px 16px; background: var(--bg-card); border: 1px solid var(--line); padding: 16px 14px; }
.panel-title { font-family: var(--display); font-size: 15px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.unit-hint { color: var(--ink-faint); font-size: 11px; letter-spacing: 0.06em; text-transform: none; font-family: var(--body); }
.chart-wrap { width: 100%; }
.chart-wrap svg { display: block; width: 100%; height: auto; }
.chart-empty { color: var(--ink-faint); font-size: 13px; padding: 18px 0; text-align: center; }
.btn-accent { flex: 1; height: 46px; background: var(--accent); color: var(--accent-ink); border: none; font-family: var(--display); font-size: 14px; letter-spacing: 0.08em; cursor: pointer; border-radius: 0; }
.btn-accent:active { transform: translateY(1px); }
.btn-ghost { flex: 1; height: 42px; background: transparent; border: 1px solid var(--line-strong); color: var(--ink-dim); font-family: var(--display); font-size: 12px; letter-spacing: 0.1em; cursor: pointer; border-radius: 0; }
.btn-ghost:active { border-color: var(--accent); color: var(--accent); }
.btn-ghost.danger { color: var(--danger); border-color: rgba(255,92,57,0.4); }
.pr-list { display: flex; flex-direction: column; }
.pr-row { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.pr-row:last-child { border-bottom: none; }
.pr-row .pr-name { color: var(--ink-dim); letter-spacing: 0.02em; }
.pr-row .pr-val { font-family: var(--display); font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pr-row .pr-val small { color: var(--ink-faint); font-size: 10px; letter-spacing: 0.08em; }
.settings-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 14px; font-size: 14px; color: var(--ink-dim); }
.seg { display: flex; border: 1px solid var(--line-strong); }
.seg button { padding: 8px 16px; background: transparent; border: none; color: var(--ink-faint); font-family: var(--display); font-size: 12px; letter-spacing: 0.1em; cursor: pointer; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.date-input { background: var(--bg-raised); border: 1px solid var(--line); color: var(--ink); padding: 8px 10px; font-family: var(--body); font-size: 14px; border-radius: 0; color-scheme: dark; }
.settings-actions { display: flex; gap: 8px; margin-top: 4px; }
.fine-print { color: var(--ink-faint); font-size: 11px; margin-top: 12px; line-height: 1.5; }
.tab-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(10,10,11,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: var(--sab); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 0 10px; background: none; border: none; cursor: pointer; color: var(--ink-faint); }
.tab svg { width: 22px; height: 22px; fill: currentColor; }
.tab span { font-family: var(--display); font-size: 10px; letter-spacing: 0.16em; }
.tab.active { color: var(--accent); }
.toast { position: fixed; left: 50%; bottom: calc(90px + var(--sab)); transform: translateX(-50%) translateY(20px); background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-size: 13px; letter-spacing: 0.08em; padding: 10px 18px; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; z-index: 60; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.lock-screen { position: fixed; inset: 0; z-index: 200; background: radial-gradient(120% 60% at 50% -10%, rgba(200,241,53,0.08), transparent 60%), var(--bg); display: flex; align-items: center; justify-content: center; padding: calc(24px + var(--sat)) 24px calc(24px + var(--sab)); }
.lock-screen.hidden { display: none; }
.lock-box { width: 100%; max-width: 300px; text-align: center; }
.lock-box .brand-mark { width: 22px; height: 22px; margin: 0 auto; }
.lock-box h2 { font-family: var(--display); font-size: 30px; letter-spacing: 0.08em; margin-top: 12px; }
.lock-box p { color: var(--ink-dim); font-size: 13px; letter-spacing: 0.06em; margin-top: 4px; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 22px 0 8px; }
.pin-dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: background 0.15s, border-color 0.15s; }
.pin-dots i.on { background: var(--accent); border-color: var(--accent); }
.pin-err { min-height: 16px; color: var(--danger); font-size: 12px; letter-spacing: 0.08em; margin-bottom: 10px; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pin-pad button { aspect-ratio: 1; border: 1px solid var(--line); background: var(--bg-card); color: var(--ink); font-family: var(--display); font-size: 24px; cursor: pointer; border-radius: 50%; }
.pin-pad button:active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pin-pad .pin-del { border-color: transparent; background: transparent; font-size: 20px; }
.pin-pad .pin-del:active { background: transparent; color: var(--accent); border-color: transparent; }
.lock-box.shake { animation: shake 0.42s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-8px); } 40%, 60% { transform: translateX(8px); } }
