/* Ommi Cam — honey on charcoal. One bold element: the viewfinder readout on the result card. */

:root {
  --bg: #16181D;
  --surface: #1F2228;
  --raised: #2E3139;
  --line: #3A3E47;
  --text: #F3F4F6;
  --muted: #B8BCC6;
  --honey: #F2B134;
  --honey-deep: #D58E14;
  --warn: #FFB4A3;
  --ok: #8FE3AE;
  --vf: #000;
  --display: "Sora", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --tabbar: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
}
#app { max-width: 560px; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 16px 24px; }
.boot { color: var(--muted); padding: 40px 0; text-align: center; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.2; margin: 0; }
h1 { font-size: 26px; letter-spacing: -0.01em; }
h2 { font-size: 19px; margin: 32px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
h3 { font-size: 16px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
a { color: var(--honey); }

:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin-bottom: 8px; }
.topbar .title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wordmark { display: flex; align-items: center; gap: 10px; }
.wordmark img { width: 34px; height: 34px; }
.wordmark .stack { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.wordmark .ommi { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; }
.wordmark .cam { font-family: var(--display); font-weight: 600; font-size: 9px; letter-spacing: 0.32em; margin-right: -0.32em; color: var(--honey); margin-top: 2px; }
.iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: transparent; color: var(--text); border: 0; cursor: pointer;
}
.iconbtn:hover { background: var(--surface); }

/* ---------- tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: var(--tabbar); color: var(--muted); text-decoration: none; font-size: 12px;
}
.tabbar a[aria-current="page"] { color: var(--honey); }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--raised); color: var(--text); font: 600 16px var(--body); cursor: pointer;
  text-decoration: none;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--honey); color: #16181D; border-color: var(--honey); }
.btn.primary:hover { background: #F5BF55; }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.btn.danger { color: var(--warn); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > .btn { flex: 1 1 auto; }

/* the big shutter button */
.snap {
  position: relative; display: flex; align-items: center; gap: 16px; width: 100%;
  min-height: 92px; padding: 16px 20px; border-radius: 20px; cursor: pointer;
  background: var(--honey); color: #16181D; border: 0; text-align: left;
}
.snap:focus-within { outline: 3px solid var(--text); outline-offset: 3px; }
.snap .ring { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 4px solid #16181D; display: grid; place-items: center; }
.snap .ring::after { content: ""; width: 36px; height: 36px; border-radius: 50%; background: #16181D; }
.snap strong { display: block; font: 600 20px var(--display); }
.snap span { font-size: 14px; }
.snap input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- chips & choice grids */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text); font-size: 14px; text-decoration: none;
}
.chip.film { border-color: var(--honey-deep); }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice {
  min-height: 56px; padding: 8px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: 600 15px var(--body); cursor: pointer;
}
.choice[aria-pressed="true"] { border-color: var(--honey); background: #2A2416; color: var(--honey); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.seg.two { grid-template-columns: repeat(2, 1fr); }
.seg button { min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 600 15px var(--body); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--raised); color: var(--text); }

.reading { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface); margin: 14px 0 0; }
.reading strong { font-family: var(--display); }

/* ---------- result: the viewfinder */
.shot { margin: 8px 0 18px; }
.shot .gear { font: 600 18px/1.3 var(--display); margin: 0 0 4px; }
.shot .mode { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.viewfinder {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--vf); border-radius: 16px; padding: 18px 8px 14px; border: 1px solid #2B2B2B;
}
.vf-cell { text-align: center; padding: 0 4px; border-left: 1px solid #262626; }
.vf-cell:first-child { border-left: 0; }
.vf-val { font: 600 30px/1.1 var(--display); color: var(--honey); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; }
.vf-val.sm { font-size: 19px; padding-top: 8px; letter-spacing: -0.02em; }
.vf-cap { font-size: 12px; color: var(--muted); margin-top: 6px; }
.vf-sub { font-size: 12px; color: var(--text); margin-top: 2px; }
.lines { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.lines li { display: flex; gap: 10px; align-items: flex-start; }
.lines svg { flex: none; margin-top: 2px; color: var(--muted); }
.lines .warn svg { color: var(--warn); }
.why { margin: 14px 0 0; }
.how { margin: 8px 0 0; padding-left: 22px; }
.how li { margin: 4px 0; }
.note { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 13px; margin-bottom: 8px; }

.alt { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }
.alt .viewfinder { padding: 12px 6px 10px; }
.alt .vf-val { font-size: 22px; }
.alt .vf-val.sm { font-size: 17px; }

/* ---------- lists & cards */
.list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.list > li { border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.item { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; background: var(--surface); color: var(--text); text-decoration: none; width: 100%; border: 0; text-align: left; font: inherit; cursor: pointer; }
.item .grow { flex: 1; min-width: 0; }
.item .sub { display: block; color: var(--muted); font-size: 13px; }
.item .end { color: var(--muted); font-size: 14px; white-space: nowrap; }
label.item { cursor: pointer; }
.item input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--honey); flex: none; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.panel + .panel { margin-top: 12px; }
.progress { height: 8px; border-radius: 99px; background: var(--raised); overflow: hidden; margin: 8px 0; }
.progress > i { display: block; height: 100%; background: var(--honey); }

.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper .iconbtn { width: 40px; height: 40px; background: var(--raised); }
.stepper output { min-width: 28px; text-align: center; font-weight: 600; }

/* ---------- forms */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; color: var(--muted); }
.field .hint { font-size: 13px; color: var(--muted); }
input[type="text"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 16px var(--body);
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--honey); }

/* ---------- toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 12px; font-weight: 600;
  max-width: calc(100% - 32px); z-index: 20; box-shadow: 0 6px 24px rgba(0,0,0,.4);
}
/* ---------- frame editor */
.fe { background: var(--bg); border-color: var(--honey-deep); }
.fe h3 { color: var(--honey); }
.fe textarea { resize: vertical; min-height: 64px; }
.fe-meter { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface); font-size: 14px; }
.fe-meter:empty { display: none; }
.fe-meter.ok { color: var(--ok); }
.fe-meter.warn { color: var(--warn); }
.fe-filters { display: grid; gap: 2px; }
.fe-filters:empty { display: none; }
.fe-label { font-size: 14px; color: var(--muted); }
.list > li.editing { padding: 10px; background: var(--surface); }
.frame-n { font-family: var(--display); font-weight: 600; color: var(--honey); min-width: 34px; }
.frame-note { display: block; font-size: 14px; color: var(--text); font-style: italic; }
button.item { color: var(--text); }
.plain { background: none; border: 0; color: var(--text); text-align: left; font: inherit; padding: 0; cursor: pointer; }

.empty { padding: 18px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); }

/* Hidden but still reachable by keyboard and screen readers (photo picker inside a button-styled label). */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
label.btn:focus-within { outline: 2px solid var(--honey); outline-offset: 2px; }

/* AI scene read (M3) */
.ai-read { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line, rgba(255,255,255,.08)); }
.ai-read:not(.done) { flex-direction: row; align-items: center; gap: 10px; color: var(--muted); }
.ai-read.done { border-color: var(--honey); }
.spinner { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--muted); border-top-color: var(--honey); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* Film frame reference photos */
.frame-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; }
.fe-photo { display: grid; gap: 8px; }
.fe-photo-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fe-thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.fe-photo-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Contact sheet */
.sheet { margin-top: 20px; padding: 16px; border-radius: 14px; background: #fff; color: #16181D; }
.sheet-title { font-family: var(--display); font-size: 1.3rem; margin: 0; color: #16181D; }
.sheet-meta { margin: 4px 0 14px; font-size: .85rem; color: #555; }
.sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sheet-cell { margin: 0; break-inside: avoid; }
.sheet-pic { aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: #eceef2; display: grid; place-items: center; }
.sheet-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet-pic span { font-size: .7rem; color: #888; }
.sheet-cell figcaption { display: grid; gap: 1px; margin-top: 4px; font-size: .72rem; line-height: 1.3; color: #333; }
.sheet-cell figcaption strong { font-size: .8rem; color: #16181D; }
.sheet-lens { color: #777; }
.sheet-note { font-style: italic; }
.sheet-foot { margin: 14px 0 0; font-size: .7rem; color: #999; text-align: right; }
@media (min-width: 560px) { .sheet-grid { grid-template-columns: repeat(4, 1fr); } }

@media print {
  @page { margin: 12mm; }
  html, body { background: #fff !important; }
  .tabbar, .topbar, .no-print, .toast { display: none !important; }
  .sheet-page { padding: 0 !important; max-width: none !important; margin: 0 !important; }
  .sheet { margin: 0; padding: 0; border-radius: 0; }
  .sheet-grid { grid-template-columns: repeat(4, 1fr); gap: 4mm; }
  .sheet-pic { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Golden hour banner */
.golden { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 12px; border-radius: 999px; font-size: .9rem;
  background: var(--surface); color: var(--muted); border: 1px solid transparent; }
.golden.now { color: #16181D; background: var(--honey); font-weight: 600; }
.golden.ask { cursor: pointer; font: inherit; font-size: .9rem; color: var(--honey); border-color: var(--honey); background: transparent; }

/* Logo mark on every screen's top bar; "Shooting with" picker */
.topmark { width: 26px; height: 26px; flex: none; }
.using { display: grid; gap: 6px; margin: 0 0 12px; }
.using .seg { display: flex; flex-wrap: wrap; }
.using .seg button { flex: 1 1 auto; min-width: 0; }

/* Help */
.topbar-actions { display: flex; align-items: center; gap: 4px; }
.help-btn { color: var(--muted); }
.help-sec { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin: 0 0 10px; padding: 0 14px; }
.help-sec > summary { cursor: pointer; padding: 14px 0; font-family: var(--display); font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.help-sec > summary::-webkit-details-marker { display: none; }
.help-sec > summary::after { content: "+"; color: var(--honey); font-size: 22px; line-height: 1; }
.help-sec[open] > summary::after { content: "−"; }
.help-intro { margin: -4px 0 10px; color: var(--muted); }
.help-list { margin: 0 0 14px; }
.help-list dt { font-weight: 600; margin-top: 10px; color: var(--honey); }
.help-list dd { margin: 2px 0 0; line-height: 1.45; }

/* Welcome (first run) */
.welcome { display: flex; flex-direction: column; min-height: calc(100dvh - var(--tabbar) - 24px); }
.wel-top { display: flex; justify-content: flex-end; min-height: 44px; }
.wel-hero { text-align: center; padding: 8px 8px 20px; }
.wel-mark { width: 96px; height: 96px; filter: drop-shadow(0 8px 24px rgba(242, 177, 52, .25)); animation: wel-turn 1.2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes wel-turn { from { transform: rotate(-60deg) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.wel-hero h1 { font-family: var(--display); font-size: 28px; line-height: 1.15; margin: 18px 0 8px; letter-spacing: -0.02em; }
.wel-brand { color: var(--honey); white-space: nowrap; }
.wel-hero p { margin: 0 auto; max-width: 30ch; color: var(--muted); line-height: 1.45; }
.wel-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.wel-step { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; padding: 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); animation: wel-up .5s ease both; }
.wel-step:nth-child(2) { animation-delay: .08s; } .wel-step:nth-child(3) { animation-delay: .16s; }
@keyframes wel-up { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.wel-num { font-family: var(--display); font-weight: 600; color: var(--honey); font-size: 18px; width: 14px; text-align: center; }
.wel-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(242, 177, 52, .12); color: var(--honey); }
.wel-step strong { display: block; }
.wel-step span span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.wel-cta { min-height: 56px; font-size: 17px; margin-top: auto; }
.wel-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 16px 0 4px; font-size: 14px; }
.wel-more a, .linklike { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.linklike { background: none; border: 0; padding: 4px; font: inherit; cursor: pointer; }
.app-foot { margin-top: 28px; line-height: 1.6; text-align: center; }
.wel-privacy { font-size: 12px; opacity: .8; }
.app-foot a { color: var(--muted); }

/* Ommi Vision scene button: its own full-width row */
.choice.vision { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 8px; font-size: 16px; }
.choice.vision svg { width: 20px; height: 20px; }

/* One-line, bold page titles in the top bar */
.topbar h1 { font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* Result: other options as tappable cards */
.opts-h { margin-top: 24px; }
.opts { display: grid; gap: 10px; margin-top: 10px; }
.opt { display: grid; grid-template-columns: 1fr auto; text-align: left; gap: 2px 10px; width: 100%; padding: 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.opt:hover, .opt:focus-visible { border-color: var(--honey); }
.opt-cam { grid-column: 1; font: 600 16px var(--display); display: flex; align-items: center; gap: 8px; }
.opt-tag { font: 600 11px var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--honey-deep); border: 1px solid var(--honey-deep); border-radius: 6px; padding: 1px 6px; }
.opt-lens { grid-column: 1; color: var(--muted); font-size: 14px; }
.opt-set { grid-column: 1; margin-top: 6px; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.opt-set b { color: var(--honey); font: 600 17px var(--display); }
.opt-use { grid-column: 2; grid-row: 1 / span 3; align-self: center; display: flex; align-items: center; gap: 2px; color: var(--honey); font-size: 14px; font-weight: 600; }
.opts-more { margin-top: 10px; }
.opts-more > summary { cursor: pointer; color: var(--muted); padding: 8px 0; }
.picked { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.picked .linklike { color: var(--honey); }

/* ---- Night: banner, Night session button, planner */
.golden-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.golden.night { text-decoration: none; color: var(--text); background: #1A1F30; border-color: #2C3554; }
.golden.night svg:last-child { flex: none; width: 18px; height: 18px; color: var(--muted); }
.golden-night { margin-left: auto; display: flex; align-items: center; padding: 2px; border-radius: 999px; }
.golden.now .golden-night .moon-dark { fill: #6B5420; }
.moon-svg { flex: none; display: block; }
.moon-dark { fill: #3A3F4D; stroke: #8A90A0; stroke-width: 1.2; }
.moon-lit { fill: #ECE6D3; }
.choice.daynight { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; font-size: 16px; font-weight: 600; }
.choice.daynight svg { width: 20px; height: 20px; }
.choice.to-night { background: #1A1F30; border-color: #3B4A7A; color: #D4DBFF; }
.choice.to-day { color: var(--honey); border-color: var(--honey-deep); background: transparent; }
.gear-acc { margin-top: 14px; }
.gear-acc button { display: flex; align-items: center; justify-content: center; gap: 6px; }
.gear-acc svg { width: 18px; height: 18px; color: var(--ok); }

.night-page h2 { margin-top: 26px; }
.moon-card { display: flex; align-items: center; gap: 16px; margin-top: 4px; background: linear-gradient(160deg, #1A1F30, var(--surface)); }
.moon-name { margin: 0; padding: 0; border: 0; font: 600 21px var(--display); }
.moon-lit-pct { margin: 2px 0 4px; color: var(--honey); font-weight: 600; }
.moon-times { display: flex; flex-direction: column; margin: 0; }
.card-h { margin: 0 0 6px; font: 600 16px var(--display); }
.panel .card-h + p { margin-top: 0; }
.night-page .panel { margin-top: 12px; }
.night-best { margin: 10px 0 2px; }
.clouds-line { margin: 8px 0 0; }
.credit { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.credit a { color: var(--muted); }
.warn-text { color: var(--warn); }
.good-text { color: var(--ok); }

.timeline { display: grid; gap: 6px; margin-top: 4px; }
.tl-line { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 8px; }
.tl-lab { font-size: 12px; color: var(--muted); }
.tl-row { position: relative; height: 12px; border-radius: 6px; background: var(--surface); overflow: hidden; }
.tl-row > i { position: absolute; top: 0; bottom: 0; }
.tl-sky { height: 22px; background: linear-gradient(90deg, #4A3B5C, #2B3150 18%, #2B3150 82%, #4A3B5C); }
.tl-dark { background: #0B0E1A; }
.tl-best { border: 2px solid var(--honey); border-radius: 6px; }
.tl-moon { background: #ECE6D3; border-radius: 6px; }
.tl-core { background: linear-gradient(90deg, #C9A6FF, #F2B134); border-radius: 6px; }
.tl-cloud { background: #C8CDD8; }
.tl-ticks { height: 16px; background: none; overflow: visible; }
.tl-ticks > span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }

.night-strip { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; }
.night-cell { flex: none; width: 62px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; }
.night-cell.good { border-color: var(--honey-deep); }
.nc-day { color: var(--muted); }
.nc-date { font: 600 16px var(--display); }
.nc-pct { color: var(--muted); }
.nc-star { color: var(--honey); height: 16px; }
.nc-cloud { color: var(--muted); font-size: 11px; height: 14px; white-space: nowrap; }
.night-check { margin-top: 16px; }
.daynight-seg { margin: 0 0 10px; }
.daynight-seg button { display: flex; align-items: center; justify-content: center; gap: 8px; }
.daynight-seg button svg { width: 18px; height: 18px; }
.daynight-seg button[aria-pressed="true"]:last-child { background: #232A45; color: #D4DBFF; }
.moon-btn svg { width: 22px; height: 22px; }
.choice.vision { justify-content: flex-start; text-align: left; padding: 10px 14px; font-size: 15px; font-weight: 500; }
.choice.vision .vision-text { min-width: 0; }
.choice.vision strong { font-weight: 600; }
.vision-tip { margin: -2px 0 12px; }
.night-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; padding: 8px 12px;
  border-radius: 10px; background: #1A1F30; border: 1px solid #2C3554; font-size: 14px; }
.night-note .linklike { color: var(--honey); white-space: nowrap; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }

/* Red light + night vision */
.redlight { position: fixed; inset: 0; z-index: 10000; background: #000; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; cursor: pointer; }
.redlight-glow { position: absolute; inset: 0; background: #FF1A00; }
.redlight-bar { position: relative; display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 10px 16px; border-radius: 999px;
  background: rgba(0,0,0,.55); color: #ff6a55; font-size: 13px; cursor: default; }
.redlight-bar input { width: 180px; accent-color: #ff3b1f; }
.redlight-hint { position: relative; margin: 0 0 calc(18px + env(safe-area-inset-bottom)); padding: 0 24px; text-align: center; color: rgba(0,0,0,.7); font-size: 13px; }
.redlight-btn { gap: 8px; }
.redlight-dot { width: 12px; height: 12px; border-radius: 50%; background: #FF2A10; box-shadow: 0 0 8px #FF2A10; }
.night-actions { margin-top: 16px; }
.night-actions .btn { flex: 1; }
/* No filter on body: a filter turns fixed elements (the tab bar) into scrolling ones. The overlay does the dimming. */
html.night-vision::after { content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; background: #D91D00; mix-blend-mode: multiply; }
.ln { display: block; }
.backup-status { display: flex; align-items: center; gap: 8px; margin: 8px 0 14px; padding: 10px 12px; border-radius: 12px; font-weight: 600; }
.backup-status svg { width: 20px; height: 20px; flex: none; }
.backup-status.none { color: var(--warn); background: rgba(255, 120, 100, .10); border: 1px solid rgba(255, 120, 100, .45); }
.backup-status.ok { color: var(--ok); background: rgba(143, 227, 174, .08); border: 1px solid rgba(143, 227, 174, .4); }
.night-list { margin-top: 4px; }
.night-list dt { margin-top: 18px; font-size: 17px; }
.night-list dd { color: var(--muted); }

/* Ommi Pro badges */
.pro-pill { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px 1px 4px; border-radius: 999px; font: 600 10.5px var(--body);
  letter-spacing: .02em; color: var(--honey); border: 1px solid rgba(242,177,52,.55); background: rgba(242,177,52,.08); white-space: nowrap; vertical-align: middle; }
.pro-pill svg { width: 12px; height: 12px; }
.pro-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--honey); white-space: nowrap; }
.pro-badge svg { width: 16px; height: 16px; }
.pro-badge b { font-weight: 700; }
.pro-free { color: var(--muted); font-weight: 400; }
h2 .pro-badge { margin-left: 10px; font-family: var(--body); vertical-align: middle; }
.pro-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.snap .pro-pill { margin-left: 8px; color: #16181D; border-color: rgba(22,24,29,.5); background: rgba(22,24,29,.1); }
.choice .pro-pill { display: flex; width: max-content; margin: 4px auto 0; }
.redlight-btn .pro-pill { margin-left: 4px; }
.night-strip.locked { opacity: .35; pointer-events: none; filter: saturate(.3); }
.strip-wrap { position: relative; }
.strip-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.strip-lock span { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--honey-deep); }
.night-cell { cursor: pointer; font: inherit; color: inherit; }
.night-cell.sel { border-color: var(--honey); background: #2A2416; }
.night-cell.sel.good { border-color: var(--honey); }
.plan-head { margin: 4px 0 8px; }
.strip-key { margin: 6px 0 14px; }
/* Three icons in the top bar: drop the small logo so the title fits */
.topbar:has(.topbar-actions > :nth-child(3)) .topmark { display: none; }
