/* ---------- lock / profile ---------- */
.lock { min-height: 100dvh; display: flex; flex-direction: column; position: relative; }
.lock-art { position: absolute; inset: 0 0 auto; height: 46dvh; overflow: hidden; }
.lock-art svg { width: 100%; height: 100%; }
.lock-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--bg) 100%); }
.lock-panel {
  position: relative; margin: calc(18dvh + var(--safe-t)) 16px 24px; padding: 28px 22px 22px;
  background: var(--surface); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-lg);
  max-width: 440px; align-self: center; width: calc(100% - 32px);
}
.lock-kicker { font-family: var(--f-ui); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lock-title { font-size: var(--fs-3xl); line-height: 1.05; margin: 6px 0 18px; color: var(--text); }
.lock-q { font-family: var(--f-ui); font-weight: 600; font-size: var(--fs-md); }
.lock-sub { color: var(--muted); margin-top: 2px; }
.who { display: grid; gap: 12px; margin-top: 16px; }
.who-btn { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 10px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface-solid); cursor: pointer; text-align: left; transition: transform .15s; }
.who-btn > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.who-btn b { font-family: var(--f-ui); font-size: var(--fs-md); }
.who-btn small { color: var(--muted); font-size: var(--fs-sm); }
.who-btn .ico { color: var(--muted); }
.avatar.big { width: 52px; height: 52px; font-size: var(--fs-base); }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 22px 0 6px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent); transition: background .15s, transform .15s; }
.pin-dots i.on { background: var(--accent); transform: scale(1.08); }
.pin-dots.shake { animation: shake .36s; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.pin-err { min-height: 1.6em; text-align: center; color: var(--danger); font-size: var(--fs-sm); }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 300px; margin: 6px auto 0; }
.key { height: 68px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface-solid); font-family: var(--f-ui); font-size: 1.6rem; font-weight: 500; cursor: pointer; transition: transform .1s, background .1s; }
.key:active { transform: scale(.95); background: var(--accent-soft); }
.key.fn { background: transparent; border-color: transparent; color: var(--muted); display: grid; place-items: center; }
.key.ok { color: var(--accent); }
.lock-links { margin-top: 10px; }
.pin-hint { text-align: center; margin-top: 8px; padding: 10px; border-radius: 12px; background: var(--accent-soft); }
.danger-text { color: var(--danger); display: block; margin: 4px auto 0; }
.field-label { display: flex; align-items: center; gap: 6px; font-family: var(--f-ui); font-weight: 500; font-size: var(--fs-sm); color: var(--muted); margin-bottom: 6px; }

/* ---------- hero ---------- */
.hero { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 236px; display: flex; align-items: flex-end; box-shadow: var(--shadow); isolation: isolate; color: #fff; }
.hero.compact { min-height: 180px; }
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art svg, .hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 24, 40, .08) 0%, rgba(10, 24, 40, .5) 42%, rgba(10, 24, 40, .86) 100%); }
.hero .snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-text { padding: 18px 18px 16px; width: 100%; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.kicker { font-family: var(--f-ui); font-weight: 500; font-size: var(--fs-sm); letter-spacing: .02em; opacity: .95; }
.hero-title { font-size: var(--fs-2xl); line-height: 1.1; margin: 4px 0 10px; }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.hero .cchip { background: rgba(255, 255, 255, .9); color: var(--navy); text-shadow: none; }
.hero .cchips .arrow { color: #fff; }
.hero-sleep { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-ui); font-size: var(--fs-sm); font-weight: 500; }

/* ---------- today ---------- */
.view > * + * { margin-top: var(--sp-4); }
.countdown { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kicker-dark { font-family: var(--f-ui); font-weight: 500; color: var(--accent); }
.count-num { font-size: 3.4rem; line-height: 1; margin: 6px 0; color: var(--text); }
.count-num small { font-family: var(--f-ui); font-size: var(--fs-md); color: var(--muted); }
.count-ico { color: var(--glacier); opacity: .55; flex: none; }
.complete h2 { display: flex; align-items: center; gap: 8px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions .btn { padding: 0 10px; }
.log-temp { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper .icon-btn { font-size: 1.4rem; font-family: var(--f-ui); }
.temp-input { width: 74px; text-align: center; font-family: var(--f-ui); font-size: var(--fs-lg); font-weight: 600; padding: 6px; -moz-appearance: textfield; }
.temp-input::-webkit-inner-spin-button, .temp-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.unit { color: var(--muted); font-family: var(--f-ui); margin-left: -2px; }
.info-row { display: flex; flex-wrap: wrap; gap: 8px; }
.saved-tick { color: var(--pine-ink); font-family: var(--f-ui); }
.banner.quiet { font-size: var(--fs-sm); }

/* ---------- timeline ---------- */
.tl-head { margin-bottom: 8px; }
.sm-btn { min-height: 48px; padding: 0 14px; font-size: var(--fs-sm); }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-start, .tl-sleep { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: var(--fs-sm); padding: 6px 4px; }
.tl-start .ico, .tl-sleep .ico { color: var(--accent); flex: none; }
.tl-stop { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; position: relative; background: var(--surface-solid); background: transparent; transition: transform .15s var(--ease); }
.tl-stop::before { content: ''; position: absolute; left: 23px; top: 0; bottom: 0; width: 2px; background: var(--glacier-soft); z-index: -1; }
.tl-stop:first-child::before { top: 24px; }
.tl-stop:last-child::before { bottom: calc(100% - 24px); }
.tick { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 2px solid var(--glacier-soft); background: var(--surface-solid); color: transparent; display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.tick:active { transform: scale(.92); }
.tick[aria-checked='true'] { background: var(--pine); border-color: var(--pine); color: #fff; }
.tl-body { flex: 1; min-width: 0; padding-top: 4px; }
.tl-name { font-family: var(--f-ui); font-weight: 500; font-size: var(--fs-md); line-height: 1.35; }
.tl-meta { font-size: var(--fs-sm); margin-top: 2px; }
.tl-stop.done .tl-name { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--glacier-soft); text-decoration-thickness: 2px; }
.tl-border { display: flex; align-items: center; gap: 6px; margin: 2px 0 2px 34px; padding: 4px 10px; width: fit-content; border-radius: 10px; border: 1px dashed var(--alpen); color: var(--alpen-ink); font-family: var(--f-ui); font-size: var(--fs-xs); font-weight: 600; background: var(--surface-solid); }
.editing .tl-stop { align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.editing .tl-stop::before { display: none; }
.editing .tl-name { font-size: var(--fs-base); }
.grip { width: 32px; height: 64px; flex: none; display: grid; place-items: center; color: var(--muted); cursor: grab; touch-action: none; }
.tl-stop.dragging { z-index: 2; background: var(--surface-solid); box-shadow: var(--shadow-lg); border-radius: 14px; transition: none; }
.tl-tools { display: flex; flex-direction: column; }
.tl-tools .icon-btn { height: 48px; }
.icon-btn[disabled] { opacity: .3; pointer-events: none; }
.icon-btn.del { color: var(--danger); }
.input.sm { min-height: 48px; padding: 6px 10px; font-size: var(--fs-sm); width: auto; }
.tl-add { display: flex; gap: 8px; margin-top: 12px; }
.tl-add .input.grow { min-width: 0; }

/* ---------- wishlist ---------- */
.wish .tick { width: 48px; height: 48px; }
.wish li.done .wish-name { text-decoration: line-through; color: var(--muted); }
.wish-name { font-family: var(--f-ui); font-weight: 500; }
.wish-add select.input.sm { max-width: 46%; }

/* ---------- photos ---------- */
.photo-row { display: flex; gap: 10px; flex-wrap: wrap; }
.photo-row:empty { display: none; }
.ph { position: relative; width: 96px; height: 96px; border-radius: 16px; overflow: hidden; border: 0; padding: 0; background: var(--surface-2); cursor: zoom-in; display: grid; place-items: center; flex: none; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.lg { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.ph.pending { cursor: default; color: var(--muted); }
.ph-wrap { position: relative; }
.ph-del { position: absolute; top: -6px; right: -6px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--surface-solid); background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ph-del::after { content: ''; position: absolute; inset: -8px; }
.ph-size { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-family: var(--f-ui); background: rgba(10, 24, 40, .7); color: #fff; padding: 0 6px; border-radius: 6px; }
.ph-star { position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; }
.ph-star .ico { fill: #fff; }

.viewer { position: fixed; inset: 0; z-index: 90; background: #050b13; }
.viewer-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.viewer-track::-webkit-scrollbar { display: none; }
.viewer-slide { flex: 0 0 100%; height: 100%; margin: 0; display: grid; place-items: center; scroll-snap-align: center; overflow: hidden; touch-action: pan-x; }
.viewer-slide img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center; touch-action: none; }
.viewer-bar { position: absolute; top: 0; left: 0; right: 0; padding: calc(var(--safe-t) + 8px) 8px 8px 20px; display: flex; align-items: center; justify-content: space-between; color: #fff; background: linear-gradient(rgba(0,0,0,.5), transparent); font-family: var(--f-ui); }
.viewer-bar .icon-btn { color: #fff; }
