/* 📸 Снимай и готово — docs/SNIMAI-I-GOTOVO.md. Same palette as /do/ (Кажи и готово). */
:root {
  --bg: #0b0d12; --panel: #12151d; --panel-2: #181c26; --ink: #e8ecf3; --muted: #8b96ab;
  --ring: #232936; --accent: #f5a623; --ok: #4ade80; --bad: #e97676; --rec: #ef4444;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --bg: #f6f4ef; --panel: #ffffff; --panel-2: #f0ede6; --ink: #1b1a17; --muted: #5f5a50; --ring: #e2ddd2; --accent: #c77d00; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
button, input, textarea { font: inherit; }
a { color: var(--accent); }
.sn-top { display: flex; align-items: center; padding: 14px 16px; max-width: 760px; margin: 0 auto; }
.sn-logo { font-weight: 900; font-size: 18px; color: var(--ink); text-decoration: none; }
.sn-top nav { margin-left: auto; } .sn-top nav a { color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.sn-wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 90px; }
.sn-screen h1 { font-size: clamp(1.6rem, 5vw, 2.3rem); margin: 18px 0 8px; text-align: center; }
.sn-screen h2 { margin: 14px 0 6px; }
.sn-sub { color: var(--muted); text-align: center; max-width: 560px; margin: 0 auto 22px; }
.sn-muted { color: var(--muted); font-size: 13.5px; }
#sn-start .sn-muted { text-align: center; }
.sn-big { display: block; width: 100%; max-width: 420px; margin: 18px auto 10px; padding: 18px; border: 0; border-radius: 18px; background: var(--accent); color: #1a1205; font-size: 20px; font-weight: 900; cursor: pointer; box-shadow: 0 6px 28px rgba(245,166,35,.25); }
.sn-big:disabled { opacity: .5; cursor: default; }
.sn-card { background: var(--panel); border: 1px solid var(--ring); border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
.sn-resume { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.sn-chips button { background: var(--panel-2); color: var(--ink); border: 1px solid var(--ring); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.sn-say { display: flex; gap: 8px; align-items: stretch; }
.sn-say textarea, .sn-say input { flex: 1; min-width: 0; background: var(--panel); color: var(--ink); border: 1px solid var(--ring); border-radius: 12px; padding: 10px 12px; font-size: 16px; }
.sn-mic { width: 56px; border: 1px solid var(--ring); border-radius: 12px; background: var(--panel-2); font-size: 24px; cursor: pointer; }
.sn-mic.on { background: var(--rec); border-color: var(--rec); }
.sn-voice { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; background: var(--panel); border: 1px solid var(--ring); border-radius: 14px; padding: 12px 14px; }
.sn-voice label { cursor: pointer; }
.sn-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 10px 0; }
.sn-btn { border: 0; border-radius: 12px; padding: 11px 16px; background: var(--accent); color: #1a1205; font-weight: 800; cursor: pointer; }
.sn-btn.ghost { background: var(--panel-2); color: var(--ink); border: 1px solid var(--ring); font-weight: 600; }
.sn-btn.rec { background: var(--rec); color: #fff; font-size: 18px; padding: 14px 26px; border-radius: 999px; }
.sn-btn.big { font-size: 17px; padding: 14px 22px; }
.sn-btn:disabled { opacity: .45; cursor: default; }
.sn-msg { color: var(--muted); text-align: center; min-height: 1.4em; }
.sn-msg.bad { color: var(--bad); }
.sn-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sn-facts span { background: var(--panel-2); border: 1px solid var(--ring); border-radius: 999px; padding: 4px 10px; font-size: 13px; }

/* filming — the camera is the whole screen (like the phone's own camera app); everything is ON the picture.
   z-index is below the site watermark (999998) and the chat bubble, so both stay visible; the controls keep clear
   of the watermark (bottom-left) and of the bubble (bottom-right) — docs/WATERMARK-AND-LIVE-CHANNEL.md, zones table. */
.sn-screen[hidden] { display: none !important; }

.sn-shoot { position: fixed; inset: 0; z-index: 999000; background: #000; color: #fff; }
.sn-shoot { --sn-top: calc(48px + env(safe-area-inset-top, 0px)); -webkit-user-select: none; user-select: none; }
/* the picture. „full“: the phone's shape = the clip's shape → whole screen, the WHOLE recorded frame (contain — nothing is
   hidden, nothing looks zoomed). „crop“: you see exactly the frame the clip will show (WYSIWYG) — 16:9 at the top when the
   phone stands upright and the clip is wide (the Reporter Studio / Show Maker way), 9:16 in the middle when it lies down. */
.sn-cam { position: absolute; inset: 0; background: #000; overflow: hidden; }
.sn-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.sn-shoot[data-layout="crop"] .sn-cam video { object-fit: cover; }
.sn-shoot[data-layout="crop"][data-ori="portrait"] .sn-cam { inset: var(--sn-top) 0 auto 0; height: auto; aspect-ratio: 16 / 9; }
.sn-shoot[data-layout="crop"][data-ori="landscape"] .sn-cam { inset: 0 auto 0 50%; width: auto; aspect-ratio: 9 / 16; transform: translateX(-50%); }
.sn-shoot[data-layout="crop"][data-ori="portrait"] .sn-instr { margin-top: calc(100vw * 9 / 16 + 8px); }
.sn-circle { position: absolute; left: 50%; top: 50%; height: 64%; aspect-ratio: 1; max-width: 90%; transform: translate(-50%, -50%); border: 2px dashed rgba(255,255,255,.35); border-radius: 50%; pointer-events: none; }
.sn-shoot[data-layout="crop"] .sn-cam { box-shadow: 0 0 0 2px rgba(251,191,36,.7) inset; }
.sn-hud { position: absolute; inset: 0; display: flex; flex-direction: column; pointer-events: none; padding: env(safe-area-inset-top, 0) 0 0; }
.sn-hud button { pointer-events: auto; }
.sn-hud [hidden], .sn-cam [hidden] { display: none !important; }
.sn-topbar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,0)); font-weight: 800; font-size: 14px; text-shadow: 0 1px 3px #000; }
.sn-grow { flex: 1; }
.sn-step { font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sn-budget { white-space: nowrap; }
/* full-screen camera: the chat bubble would sit on the buttons — hidden only while filming (the watermark stays) */
html.gc-lock #gd-fab, html.gc-lock #gd-panel { display: none !important; }
#sn-rec { background: var(--rec); border-radius: 6px; padding: 0 6px; animation: snb 1s infinite; }
@keyframes snb { 50% { opacity: .4; } }
.sn-budget-warn { color: #fbbf24; }
.sn-pill { white-space: nowrap; border: 0; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; font-weight: 800; padding: 7px 12px; font-size: 13px; backdrop-filter: blur(6px); cursor: pointer; }
.sn-instr { margin: 0 10px; padding: 10px 12px; border-radius: 14px; background: rgba(0,0,0,.62); backdrop-filter: blur(4px); pointer-events: auto; }
.sn-instr h3 { margin: 0 0 4px; font-size: 15px; opacity: .85; font-weight: 700; }
.sn-instr p { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 800; }
.sn-instr p.alt { font-size: 16px; font-weight: 600; opacity: .9; margin-top: 8px; }
.sn-instr .more { background: none; border: 0; color: #fbbf24; font-weight: 800; padding: 6px 0 0; cursor: pointer; font-size: 14px; }
.sn-meter { display: flex; align-items: center; gap: 6px; margin: 8px 12px 0; align-self: flex-start; background: rgba(0,0,0,.5); border-radius: 999px; padding: 4px 10px; }
.sn-meter b { display: block; width: 90px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.25); overflow: hidden; }
.sn-meter i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .1s; }
.sn-meter.low i { background: #fbbf24; }
.sn-orient { margin: 8px 12px 0; align-self: center; background: #fbbf24; color: #1a1205; font-weight: 800; border-radius: 999px; padding: 8px 14px; }
.sn-count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 110px; font-weight: 900; text-shadow: 0 2px 12px #000; pointer-events: none; }
.sn-msgs { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.sn-lens { display: flex; gap: 6px; margin: 8px 12px 0; align-self: flex-start; }
.sn-lens[hidden] { display: none; }
.sn-lens button { border: 0; border-radius: 999px; padding: 7px 12px; font-weight: 800; font-size: 13px; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(6px); cursor: pointer; }
.sn-lens button.on { background: #fbbf24; color: #1a1205; }
.sn-bottom { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 0 calc(62px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.6)); }
.sn-tip { max-width: 92%; background: rgba(0,0,0,.78); border: 2px solid #fbbf24; border-radius: 12px; padding: 9px 14px; font-size: 17px; font-weight: 800; text-align: center; pointer-events: auto; }
.sn-shoot .sn-msg { margin: 0; min-height: 0; padding: 0 14px; font-size: 14px; font-weight: 700; text-align: center; color: #fff; text-shadow: 0 1px 4px #000; }
.sn-shoot .sn-msg:empty { display: none; }
.sn-shoot .sn-msg.bad { color: #fca5a5; }
.sn-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 0 16px; pointer-events: none; }
.sn-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.35); }
.sn-dots i.done { background: var(--ok); } .sn-dots i.cur { background: #fbbf24; transform: scale(1.4); } .sn-dots i.skip { opacity: .35; }
.sn-ctrls { width: 100%; display: flex; justify-content: center; }
.sn-grp { display: flex; align-items: center; justify-content: center; gap: 16px; }
.sn-grp[hidden] { display: none; }
.sn-recbtn { width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff; background: var(--rec); cursor: pointer; padding: 0; position: relative; }
.sn-recbtn:disabled { opacity: .4; }
.sn-recbtn.stop::after { content: ""; position: absolute; inset: 22px; background: #fff; border-radius: 6px; }
.sn-ib { width: 62px; border: 0; background: none; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; text-shadow: 0 1px 4px #000; }
.sn-ib span { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 22px; backdrop-filter: blur(6px); }
.sn-ib small { font-size: 11.5px; font-weight: 700; }
.sn-wide { border: 0; border-radius: 999px; background: var(--accent); color: #1a1205; font-weight: 900; font-size: 17px; padding: 15px 22px; cursor: pointer; min-width: 120px; }
.sn-wide.ghost { background: rgba(255,255,255,.22); color: #fff; backdrop-filter: blur(6px); }
.sn-more { border: 0; background: rgba(255,255,255,.18); color: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 13px; cursor: pointer; pointer-events: auto; max-width: 70%; }
.sn-remind { position: absolute; inset: 0; z-index: 5; background: rgba(0,0,0,.82); display: flex; align-items: center; justify-content: center; padding: 20px; }
.sn-remind[hidden] { display: none; }
.sn-remind-in { max-width: 420px; background: var(--panel); color: var(--ink); border: 2px solid #fbbf24; border-radius: 20px; padding: 20px 18px; text-align: center; }
.sn-remind-in h3 { margin: 4px 0 10px; font-size: 20px; }
.sn-remind-in p { margin: 8px 0; font-size: 17px; line-height: 1.35; }
.sn-remind-ico { font-size: 52px; }
.sn-remind-in .sn-wide { margin-top: 12px; width: 100%; }
.sn-install { font-size: 13px; }
.sn-sheet { position: absolute; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; z-index: 3; }
.sn-sheet[hidden] { display: none; }
.sn-sheet-in { width: 100%; max-height: 75%; overflow: auto; background: var(--panel); color: var(--ink); border-radius: 18px 18px 0 0; padding: 14px 14px 80px; }
.sn-debug { position: absolute; left: 4px; right: 4px; top: 150px; margin: 0; font: 11px/1.3 ui-monospace, Menlo, monospace; background: rgba(0,0,0,.75); color: #7CFC9B; padding: 6px; z-index: 4; pointer-events: none; white-space: pre-wrap; }
.sn-list { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sn-list li { background: var(--panel-2); border: 1px solid var(--ring); border-radius: 999px; padding: 6px 12px; font-size: 14px; cursor: pointer; }
.sn-list li.done { border-color: var(--ok); }
.sn-list li.cur { border-color: var(--accent); font-weight: 800; }
.sn-list li.skip { opacity: .5; text-decoration: line-through; }

/* results */
.sn-progress { height: 30px; background: var(--panel-2); border-radius: 999px; position: relative; overflow: hidden; margin: 12px 0; }
.sn-progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); transition: width .3s; }
.sn-progress span { position: relative; display: block; text-align: center; line-height: 30px; font-size: 13px; font-weight: 700; }
.sn-res { background: var(--panel); border: 1px solid var(--ring); border-radius: 14px; padding: 12px; margin: 12px 0; }
.sn-res h3 { margin: 0 0 8px; }
.sn-res video { width: 100%; max-height: 60vh; background: #000; border-radius: 10px; }
.sn-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.sn-photos a { display: block; } .sn-photos img { width: 100%; border-radius: 8px; display: block; }
.sn-how { background: rgba(245,166,35,.1); border: 1px solid var(--accent); border-radius: 14px; padding: 12px 14px; margin: 14px 0; }
.sn-how ol { margin: 6px 0 0; padding-left: 20px; }

/* phone lying down: the controls go to the right edge like the phone's own camera app; nothing needs scrolling */
@media (orientation: landscape) and (max-height: 560px) {
  .sn-topbar { padding: 6px 12px; font-size: 13px; }
  .sn-instr { max-width: 46%; margin: 0 0 0 10px; padding: 8px 10px; }
  .sn-instr p { font-size: 16px; } .sn-instr p.alt { font-size: 13px; margin-top: 4px; } .sn-instr h3 { font-size: 13px; margin-bottom: 2px; }
  .sn-bottom { display: contents; }
  .sn-msgs { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); width: auto; max-width: 44%; }
  .sn-ctrls { position: absolute; right: calc(14px + env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); width: auto; }
  .sn-grp { flex-direction: column; gap: 10px; }
  .sn-wide { min-width: 132px; padding: 11px 14px; font-size: 15px; }
  .sn-more { position: absolute; right: 14px; bottom: 8px; max-width: 40%; }
  .sn-count { font-size: 80px; }
  .sn-tip { font-size: 14px; padding: 6px 10px; }
  .sn-debug { top: 60px; }
  .sn-remind-in { padding: 12px; } .sn-remind-ico { font-size: 30px; display: inline; } .sn-remind-in h3 { display: inline; font-size: 17px; } .sn-remind-in p { font-size: 14px; margin: 4px 0; }
}

.sn-upbadge { font-size: 12px; background: rgba(255,255,255,.18); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.sn-pair { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .sn-pair { grid-template-columns: 1fr 1fr; } }
.sn-pair video { width: 100%; max-height: 55vh; background: #000; border-radius: 10px; margin-top: 6px; }

/* 👁 what the AI eye saw (after a take) */
.sn-look { margin: 8px 10px 0; padding: 8px 12px; border-radius: 14px; background: rgba(0,0,0,.66); backdrop-filter: blur(4px); pointer-events: auto; font-size: 15px; line-height: 1.3; }
.sn-look p { margin: 4px 0; }
.sn-look .sn-row { justify-content: flex-start; margin: 6px 0 2px; }
.sn-look .sn-pill { background: #fbbf24; color: #1a1205; font-size: 14px; padding: 8px 12px; }
@media (orientation: landscape) and (max-height: 560px) { .sn-look { max-width: 46%; font-size: 13px; padding: 6px 10px; } }

.sn-voice input[type="text"], .sn-voice input[type="tel"], .sn-voice input[type="url"] { width: 100%; margin-top: 6px; padding: 10px; border-radius: 10px; border: 1px solid var(--ring); background: var(--panel-2); color: var(--ink); font-size: 16px; }

/* the first question: inside · outside · an object */
.sn-kind { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.sn-kind button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 14px; border: 2px solid var(--ring); background: var(--panel); color: var(--ink); cursor: pointer; text-align: center; }
.sn-kind button span { font-size: 28px; } .sn-kind button b { font-size: 15px; } .sn-kind button small { font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.sn-kind button.on { border-color: var(--accent); background: rgba(245,166,35,.12); }

/* commands, not explanations: one short line, big; the explanation only on „по-подробно“ */
.sn-instr p.cmd { font-size: 30px; line-height: 1.12; font-weight: 900; }
.sn-instr p.alt { font-size: 15px; font-weight: 500; margin-top: 6px; }
.sn-ask p { font-weight: 700; }
@media (orientation: landscape) and (max-height: 560px) { .sn-instr p.cmd { font-size: 22px; } }

.sn-chk { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 16px; cursor: pointer; }
.sn-chk input { width: 22px; height: 22px; }
