:root {
  --paper: #f5f3ef;
  --card: #ffffff;
  --ink: #1f1b18;
  --ink-2: #4a433d;
  --muted: #8f867d;
  --line: #e5e0d8;
  --cream: #efe8da;
  --cream-2: #e4dccb;
  --orange: #f2602d;
  --orange-dark: #d24a1b;
  --danger: #d84a3a;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --gutter: 30px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
body { overflow: hidden; }

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
input { -webkit-user-select: text; user-select: text; }
[hidden] { display: none !important; }

svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* フィルムの穴 */
.perf {
  position: fixed; top: 0; bottom: 0; width: 14px; z-index: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='30'%3E%3Crect x='1' y='5' width='12' height='19' rx='4' fill='%23e5e1d9'/%3E%3C/svg%3E") repeat-y;
}
.perf-l { left: 7px; }
.perf-r { right: 7px; }

/* ---------- ボタン ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 15px; white-space: nowrap; text-decoration: none;
}
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn.orange { background: var(--orange); color: #fff; box-shadow: 0 3px 0 var(--orange-dark); }
.btn.ink { background: var(--ink); color: var(--paper); }
.btn.line { background: var(--card); border: 1.5px solid var(--line); color: var(--ink); }
.btn.line-dark { background: transparent; border: 1.5px solid #4a433d; color: #f1ebe0; }
.btn.danger { background: transparent; border: 1.5px solid var(--danger); color: #ff8a7a; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; }

.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 0; background: none; color: var(--ink); border-radius: 50%;
}
.icon-btn.round { width: 48px; height: 48px; background: var(--card); border: 1.5px solid var(--line); cursor: pointer; }

.link-btn { border: 0; background: none; color: var(--muted); padding: 8px; font-size: 14px; }

.toast {
  position: fixed; left: 50%; bottom: calc(104px + var(--safe-bottom)); z-index: 50;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); font-weight: 700;
  padding: 11px 18px; border-radius: 999px; font-size: 14px; max-width: calc(100% - 48px); text-align: center;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.shooting .toast { bottom: auto; top: calc(64px + var(--safe-top)); background: rgba(241, 235, 224, .95); color: var(--ink); }

/* ---------- 全体の枠 ---------- */

.app {
  position: relative; z-index: 1; height: 100dvh;
  padding: calc(10px + var(--safe-top)) var(--gutter) calc(92px + var(--safe-bottom));
}
.view { height: 100%; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: none; }
.view::-webkit-scrollbar { display: none; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 14px; }
.page-head h1 { margin: 0; font-size: 34px; font-weight: 900; letter-spacing: .02em; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 900;
  border: 2.5px solid var(--paper); margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }
.avatar.more { background: var(--ink); font-size: 12px; }
.members { display: flex; align-items: center; }
.members.sm .avatar { width: 24px; height: 24px; font-size: 11px; border-width: 2px; margin-left: -6px; }
.members.sm .avatar:first-child { margin-left: 0; }

/* ---------- カメラ ---------- */

#view-camera { overflow: hidden; }

.cam-head { display: grid; gap: 8px; padding: 6px 0 10px; }
.album-picker {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  border: 0; background: none; padding: 0; text-align: left;
}
.album-picker span {
  font-size: 30px; font-weight: 900; line-height: 1.2; letter-spacing: .01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.album-picker svg { width: 26px; height: 26px; stroke-width: 2.6; flex: none; }
.cam-sub { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.cam-head.empty .cam-sub { visibility: hidden; }

.date-switch {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%;
  border: 1.5px solid #4a433d; background: transparent; color: #a99f92;
  font-size: 13px; font-weight: 900;
}
.date-switch svg { width: 20px; height: 20px; }
.date-switch[aria-pressed="true"] { background: #ff8a1e; border-color: #ff8a1e; color: #1f1408; }

/* 起動前：大きな写ルンです */
.launch { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding-bottom: 24px; }
.big-btn { min-height: 58px; padding: 0 30px; font-size: 17px; }
.big-btn svg { width: 24px; height: 24px; }
.launch-hint { margin: -8px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

/* 撮影中：全画面 */
.shoot {
  position: fixed; inset: 0; z-index: 30;
  display: flex; flex-direction: column;
  background: #0f0d0c; color: #f1ebe0;
  padding: var(--safe-top) 0 calc(10px + var(--safe-bottom));
}
.shoot-top { display: flex; align-items: center; gap: 8px; padding: 8px 12px; flex: none; }
.shoot-album { flex: 1; min-width: 0; text-align: center; font-weight: 900; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn.light { color: #f1ebe0; }

.finder-wrap { flex: 1; min-height: 0; display: grid; place-items: center; container-type: size; }
.shoot .finder-wrap { padding: 0; }
.finder {
  --a: 0.6667;
  position: relative; overflow: hidden; background: #000;
  width: min(100cqw, 100cqh * var(--a)); aspect-ratio: var(--a);
  border-radius: 4px;
  touch-action: pan-y; container-type: inline-size;
}
.finder canvas { display: block; width: 100%; height: 100%; }

.source-video { position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.stamp-preview {
  position: absolute; right: 4.5%; bottom: 3.6%;
  font: 600 4.5cqi "Courier New", ui-monospace, monospace;
  color: rgba(255, 160, 60, .92); text-shadow: 0 0 6px rgba(255, 110, 20, .9);
  white-space: pre; pointer-events: none;
}

.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.on { animation: flash .35s ease-out; }
@keyframes flash { 0% { opacity: .95; } 100% { opacity: 0; } }

.filter-badge {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%);
  display: grid; text-align: center; padding: 8px 14px; border-radius: 14px;
  background: rgba(20, 16, 14, .6); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; white-space: nowrap;
}
.filter-badge strong { font-size: 15px; font-weight: 900; }
.filter-badge span { font-size: 11px; color: #e6dccb; }
.filter-badge em { font-style: normal; font-size: 10px; color: #ffd36b; margin-top: 2px; }
.filter-badge.show { animation: badge 1.6s ease forwards; }
@keyframes badge { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }

.cam-error {
  position: absolute; left: 10px; right: 10px; bottom: 10px; margin: 0;
  padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .72); color: #fff;
  font-size: 12px; line-height: 1.6;
}

.chips {
  display: flex; gap: 8px; overflow-x: auto; flex: none;
  padding: 12px 16px 4px;
  scrollbar-width: none; scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: center;
  padding: 8px 15px; border-radius: 999px; border: 1.5px solid #3a332e;
  background: transparent; color: #cfc5b6; font-size: 14px; font-weight: 700;
}
.chip.active { background: #f1ebe0; color: var(--ink); border-color: #f1ebe0; }

.controls { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px 20px 4px; }
.thumb {
  justify-self: start; width: 52px; height: 52px; border-radius: 12px;
  border: 2px solid #f1ebe0; background: #2a2522 center / cover no-repeat;
}
.side-btns { justify-self: end; display: flex; gap: 8px; }
.side-btns .icon-btn.round { width: 46px; height: 46px; background: #241f1c; border-color: #3a332e; color: #f1ebe0; }
.shutter {
  width: 80px; height: 80px; border-radius: 50%; padding: 0;
  border: 4px solid #f1ebe0; background: transparent; display: grid; place-items: center;
}
.shutter span {
  width: 60px; height: 60px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8a5c, var(--orange) 55%, var(--orange-dark));
  transition: transform .1s;
}
.shutter:active span { transform: scale(.88); }

.no-album { flex: 1; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 0 8px 40px; }
.no-album p { margin: 0; color: var(--muted); line-height: 1.8; font-size: 14px; }
.empty-title { color: var(--ink) !important; font-size: 18px !important; font-weight: 900; }

.toy-cam {
  position: relative; width: 220px; height: 128px; margin-bottom: 18px;
  background: var(--cream); border-radius: 26px;
  box-shadow: inset 22px 0 0 #221e1b, inset -22px 0 0 #221e1b, inset 0 -6px 0 var(--cream-2), 0 18px 24px rgba(70, 50, 30, .2);
}
.toy-cam .lens {
  position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; transform: translate(-50%, -46%);
  border-radius: 50%; background: radial-gradient(circle at 40% 38%, #6c7fa8 0 8%, #22304d 22%, #0c0f18 55%);
  box-shadow: 0 0 0 9px #26211e, 0 0 0 12px #3b3531;
}
.toy-cam .flashlamp {
  position: absolute; right: 34px; top: 22px; width: 38px; height: 22px; border-radius: 5px;
  background: repeating-linear-gradient(#fbf8f0 0 3px, #ded6c6 3px 4px); box-shadow: 0 0 0 3px #26211e;
}
.toy-cam { border: 0; padding: 0; display: block; }
.toy-cam .finder-window { position: absolute; left: 50%; top: 14px; width: 26px; height: 14px; transform: translateX(-50%); border-radius: 3px; background: #2a2a30; box-shadow: 0 0 0 3px #4a433d; }
.toy-cam .brand { position: absolute; right: 30px; bottom: 16px; font-size: 9px; font-weight: 900; letter-spacing: .12em; color: var(--ink-2); }
.toy-cam.big { zoom: 1.35; margin: 10px 0 0; cursor: pointer; transition: transform .15s; }
.toy-cam.big:active { transform: scale(.97); }
.toy-cam .nub { position: absolute; left: 30px; top: -9px; width: 44px; height: 13px; border-radius: 7px 7px 2px 2px; background: var(--orange); }

/* ---------- アルバム一覧 ---------- */

.album-list { display: grid; gap: 12px; padding-bottom: 16px; }
.album-card {
  position: relative; display: flex; gap: 14px; align-items: center; text-align: left;
  padding: 12px; border: 0; border-radius: 20px; background: var(--card);
  box-shadow: 0 2px 0 var(--line);
}
.album-cover {
  width: 78px; height: 78px; flex: none; border-radius: 14px;
  background: var(--cream) center / cover no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='78' height='78'%3E%3Crect width='78' height='78' fill='%23efe8da'/%3E%3Crect x='14' y='22' width='50' height='34' rx='8' fill='%23221e1b'/%3E%3Ccircle cx='39' cy='40' r='10' fill='%23efe8da'/%3E%3Ccircle cx='39' cy='40' r='6' fill='%2322304d'/%3E%3Crect x='22' y='18' width='12' height='5' rx='2' fill='%23f2602d'/%3E%3C/svg%3E");
}
.album-card-body { min-width: 0; display: grid; gap: 4px; }
.album-card-body strong { font-size: 17px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-card-body > span { color: var(--muted); font-size: 13px; }
.album-card .members { margin-top: 2px; }
.now-badge {
  position: absolute; top: 10px; right: 12px;
  background: var(--orange); color: #fff; font-size: 11px; font-weight: 900;
  padding: 3px 9px; border-radius: 999px;
}

.empty-card { margin-top: 12px; background: var(--card); border-radius: 24px; padding: 28px 22px; display: grid; gap: 10px; justify-items: center; text-align: center; }
.empty-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

/* ---------- アルバムの中身 ---------- */

.detail-head { display: flex; align-items: center; gap: 4px; padding: 10px 0 0; margin-left: -8px; margin-right: -8px; }
.detail-head h1 { flex: 1; min-width: 0; margin: 0; font-size: 26px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-meta { margin: 4px 0 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.album-actions { display: flex; gap: 8px; margin-bottom: 14px; }
.album-actions .btn { flex: 1; min-height: 44px; font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-bottom: 16px; }
.cell {
  padding: 4px 4px 12px; border: 0; background: var(--card); border-radius: 6px; position: relative;
  box-shadow: 0 2px 6px rgba(60, 40, 20, .1);
}
.cell img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; border-radius: 2px; background: var(--cream); }
.cell.pending::after {
  content: "送信中"; position: absolute; left: 8px; top: 8px;
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff;
}
.empty { color: var(--muted); text-align: center; padding: 48px 16px; line-height: 1.8; font-size: 14px; }

/* ---------- 設定 ---------- */

.settings { display: grid; gap: 12px; padding-bottom: 16px; }
.set-card { display: grid; gap: 6px; padding: 16px 18px; border-radius: 20px; background: var(--card); box-shadow: 0 2px 0 var(--line); }
.set-card.row { grid-template-columns: 1fr auto; align-items: center; }
.set-card.row > div { display: grid; gap: 4px; }
.set-label { font-weight: 900; font-size: 16px; }
.set-help { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }
.set-card input, .sheet input {
  margin-top: 6px; width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--paper); font-size: 16px; font-weight: 700;
}
.set-card summary { cursor: pointer; list-style: none; }
.set-card summary::after { content: "＋"; float: right; color: var(--muted); }
.set-card[open] summary::after { content: "－"; }
.set-card ol { margin: 6px 0 0; padding-left: 1.4em; line-height: 2; color: var(--ink-2); font-size: 14px; }

.toggle {
  width: 54px; height: 32px; border-radius: 999px; border: 0; padding: 3px;
  background: var(--cream-2); display: flex; transition: background .2s;
}
.toggle i { width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.toggle[aria-checked="true"] { background: var(--orange); }
.toggle[aria-checked="true"] i { transform: translateX(22px); }

/* ---------- 下のタブ ---------- */

.tabbar {
  position: fixed; z-index: 10; left: 50%; transform: translateX(-50%);
  bottom: calc(12px + var(--safe-bottom));
  width: min(340px, calc(100% - 64px));
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px;
  background: rgba(255, 255, 255, .96); border-radius: 30px;
  box-shadow: 0 8px 24px rgba(60, 40, 20, .14), 0 0 0 1px rgba(0, 0, 0, .03);
}
.tab {
  display: grid; justify-items: center; gap: 2px; padding: 7px 0 6px;
  border: 0; border-radius: 24px; background: none; color: var(--ink-2);
  font-size: 11px; font-weight: 700;
}
.tab svg { width: 24px; height: 24px; }
.tab.active { background: #efece7; color: var(--orange); }
.tab.active svg { stroke-width: 2.3; }

/* ---------- ダイアログ ---------- */

dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(31, 27, 24, .45); }

.sheet {
  width: min(380px, calc(100vw - 32px)); max-height: 80dvh;
  background: var(--card); border-radius: 26px; box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
}
.sheet form, .sheet-body { padding: 22px; display: grid; gap: 12px; }
.sheet-body.center { justify-items: center; text-align: center; }
.sheet h2 { margin: 0; font-size: 20px; font-weight: 900; }
.sheet-actions { display: flex; gap: 8px; width: 100%; }
.sheet-actions .btn { flex: 1; }

.picker-list { display: grid; gap: 8px; max-height: 46dvh; overflow-y: auto; }
.picker-item {
  display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--paper);
}
.picker-item strong { font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-item span { font-size: 12px; color: var(--muted); }
.picker-item.active { border-color: var(--orange); background: #fff3ed; }

.qr { width: 208px; height: 208px; padding: 14px; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1.5px var(--line); }
.qr svg { width: 100%; height: 100%; display: block; stroke: none; }

.viewer {
  --fade: 1;
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; overflow: hidden;
  background: rgba(10, 8, 7, var(--fade)); color: #f1ebe0; display: none; flex-direction: column;
}
.viewer[open] { display: flex; }
.viewer::backdrop { background: transparent; }
.viewer-top {
  display: flex; align-items: center; gap: 8px; flex: none;
  padding: calc(6px + var(--safe-top)) 12px 6px; transition: opacity .2s;
}
.viewer-top span:not(.icon-btn) { flex: 1; text-align: center; font-weight: 900; font-size: 15px; font-variant-numeric: tabular-nums; }
.viewer-track {
  flex: 1; min-height: 0; display: flex;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior: contain;
  scrollbar-width: none; touch-action: pan-x; -webkit-overflow-scrolling: touch;
}
.viewer-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; padding: 4px 0; }
.slide img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .35); color: #f1ebe0; display: none; place-items: center; transition: opacity .2s;
}
.viewer-nav.prev { left: 12px; }
.viewer-nav.next { right: 12px; }
@media (hover: hover) and (pointer: fine) { .viewer-nav { display: grid; } }
.viewer-meta { flex: none; padding: 12px 16px calc(16px + var(--safe-bottom)); display: grid; gap: 12px; transition: opacity .2s; }
.viewer-meta p { margin: 0; color: #b9ad9e; font-size: 13px; text-align: center; }
.viewer-actions { display: flex; justify-content: center; gap: 8px; }
.viewer.bare .viewer-top, .viewer.bare .viewer-meta, .viewer.bare .viewer-nav { opacity: 0; pointer-events: none; }

/* ---------- 撮影画面のツール ---------- */

.shoot .finder { touch-action: none; }

.tools { flex: none; display: flex; justify-content: center; gap: 14px; padding: 12px 16px 0; }
.tool {
  position: relative; width: 42px; height: 42px; border-radius: 50%; padding: 0;
  display: grid; place-items: center;
  border: 1.5px solid #3a332e; background: transparent; color: #cfc5b6;
}
.tool svg { width: 21px; height: 21px; }
.tool[aria-pressed="true"] { background: #ff8a1e; border-color: #ff8a1e; color: #1f1408; }
.tool-badge {
  position: absolute; right: -4px; top: -4px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: #f1ebe0; color: var(--ink); font-size: 10px; font-weight: 900; line-height: 18px;
}
.tool-badge:empty { display: none; }
.tool.loading { animation: pulse .9s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255,255,255,.45) calc(33.33% - .5px), rgba(255,255,255,.45) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.45) calc(66.66% - .5px), rgba(255,255,255,.45) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
    linear-gradient(transparent calc(33.33% - .5px), rgba(255,255,255,.45) calc(33.33% - .5px), rgba(255,255,255,.45) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.45) calc(66.66% - .5px), rgba(255,255,255,.45) calc(66.66% + .5px), transparent calc(66.66% + .5px));
}

.hud {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: rgba(20, 16, 14, .6); color: #ffd36b; font-size: 18px; font-weight: 900;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.hud svg { width: 22px; height: 22px; }
.hud.show { opacity: 1; }

.countdown {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  color: #fff; font-size: 30cqi; font-weight: 900; text-shadow: 0 4px 24px rgba(0, 0, 0, .5);
}

.zoom-chip {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  min-width: 40px; height: 30px; padding: 0 10px; border-radius: 999px;
  border: 0; background: rgba(20, 16, 14, .55); color: #f1ebe0; font-size: 12px; font-weight: 900;
}
.zoom-chip.active { color: #ffd36b; }

.strength {
  flex: none; display: flex; align-items: center; gap: 12px;
  margin: 10px 16px 0; padding: 8px 14px; border-radius: 999px; background: #241f1c;
  font-size: 13px; font-weight: 700; color: #f1ebe0;
}
.strength input { flex: 1; accent-color: #ff8a1e; }
.strength-val { width: 38px; text-align: right; color: #ffd36b; font-weight: 900; }

.screen-flash { position: fixed; inset: 0; z-index: 40; background: #fff; opacity: 0; pointer-events: none; transition: opacity .08s; }
.screen-flash.on { opacity: 1; }
