/* Screen Recorder. Settings beside the stage on wide screens; one column under 860 px. */
.rc-wrap { max-width: 1180px; margin: 0 auto; padding: 96px 16px 48px; color: var(--text-primary); box-sizing: border-box; display: grid; gap: 16px; min-width: 0;
  --rc-accent: var(--color-primary, #6366f1); --rc-rec: #f0717b; --rc-warn: var(--color-warning, #f59e0b); --rc-ok: #4ade80; }
:root[data-theme="light"] .rc-wrap { --rc-accent: #4f46e5; --rc-rec: #c62d3a; --rc-warn: #b45309; --rc-ok: #15803d; }
.rc-wrap *, .rc-wrap *::before, .rc-wrap *::after { box-sizing: border-box; }
.rc-wrap [hidden] { display: none !important; }
.rc-intro h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 8px; text-wrap: balance; }
.rc-intro p { color: var(--text-secondary); margin: 0; max-width: 64ch; }
.rc-main { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .rc-main { grid-template-columns: minmax(0, 1fr); } }
.rc-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; display: grid; gap: 12px; min-width: 0; }
.rc-card h2 { font-size: 1.1rem; margin: 0; }
.rc-group { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border-color); }
.rc-settings > h2 + .rc-group { border-top: 0; padding-top: 0; }
.rc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rc-row2 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rc-field { display: grid; gap: 4px; min-width: 0; }
.rc-label { font-weight: 600; font-size: 0.9rem; color: var(--text-secondary); }
.rc-input { width: 100%; max-width: 100%; min-width: 0; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--border-color);
  background: var(--bg-primary); color: var(--text-primary); font: inherit; font-size: 16px; min-height: 44px; }
.rc-input:focus-visible, .rc-btn:focus-visible, .rc-switch input:focus-visible { outline: 2px solid var(--rc-accent); outline-offset: 2px; }
.rc-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; min-height: 44px; cursor: pointer; }
.rc-switch input { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--border-color); position: relative; cursor: pointer; flex: none; margin: 0; transition: background .15s; }
.rc-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.rc-switch input:checked { background: var(--rc-accent); }
.rc-switch input:checked::after { transform: translateX(18px); }
.rc-switch input:disabled { opacity: .45; cursor: not-allowed; }
.rc-check { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; min-height: 44px; }
.rc-check input { width: 20px; height: 20px; accent-color: var(--rc-accent); margin: 0; }
.rc-hint { color: var(--text-secondary); font-size: 0.86rem; margin: 0; }
.rc-hint:empty, .rc-msg:empty { display: none; }
.rc-warn { color: var(--rc-warn); font-weight: 600; }
.rc-msg { margin: 0; font-weight: 600; color: var(--rc-warn); font-size: 0.92rem; overflow-wrap: anywhere; }
.rc-msg.rc-ok { color: var(--rc-ok); }
.rc-meter { height: 6px; border-radius: 3px; background: var(--border-color); overflow: hidden; }
.rc-meter i { display: block; height: 100%; width: 0; background: var(--rc-ok); }
.rc-btn { font: inherit; font-weight: 600; min-height: 44px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-primary); color: var(--text-primary); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.rc-btn:hover:not(:disabled) { border-color: var(--rc-accent); }
.rc-btn:disabled { opacity: .5; cursor: not-allowed; }
.rc-btn--primary { background: var(--rc-accent); border-color: var(--rc-accent); color: #fff; }
.rc-btn--rec { background: var(--rc-rec); border-color: var(--rc-rec); color: #fff; }
.rc-settings > .rc-btn--rec { width: 100%; min-height: 52px; font-size: 1.05rem; }
.rc-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; display: inline-block; }
.rc-stage { position: relative; background: #0b0c12; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; display: grid; place-items: center; }
.rc-stage video { width: 100%; height: 100%; object-fit: contain; display: block; }
.rc-idle { color: #9a9db2; margin: 0; padding: 16px; text-align: center; }
.rc-badge { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; font: 600 .85rem ui-monospace, Menlo, monospace; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; }
.rc-badge.rc-live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #ff4d5a; animation: rc-blink 1s steps(2) infinite; }
@keyframes rc-blink { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .rc-badge.rc-live::before { animation: none; } .rc-switch input, .rc-switch input::after { transition: none; } }
.rc-count { position: absolute; inset: 0; display: grid; place-items: center; font: 700 clamp(3rem, 12vw, 6rem) ui-monospace, Menlo, monospace; color: #fff; background: rgba(0,0,0,.35); }
.rc-stat { color: var(--text-secondary); font-variant-numeric: tabular-nums; font-family: ui-monospace, Menlo, monospace; }
.rc-result { display: grid; gap: 12px; }
.rc-result video { width: 100%; max-height: 60vh; background: #000; border-radius: 8px; }
.rc-confirm { border: 1px solid var(--rc-rec); border-radius: 8px; padding: 12px; display: grid; gap: 8px; }
.rc-confirm p { margin: 0; font-weight: 600; }
.rc-phone p { margin: 0; color: var(--text-secondary); }
.rc-privacy { color: var(--text-secondary); font-size: 0.88rem; margin: 0; }
.rc-foot { text-align: center; padding: 24px 16px 40px; font-size: 0.9rem; }
.rc-foot a { color: var(--text-secondary); }
