:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #243c32; background: #f6f8f2; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
button, select { font: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button, select { border: 1px solid #cad5c6; border-radius: 12px; color: #243c32; background: #fff; min-height: 46px; }
button { padding: 10px 16px; cursor: pointer; }
button:hover:not(:disabled) { background: #edf2e8; border-color: #82997e; }
button:disabled, fieldset:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #698960; outline-offset: 4px; }
.masthead { max-width: 1512px; margin: auto; display: flex; align-items: center; gap: 28px; padding: 26px 40px; }
.wordmark { color: #294a37; text-decoration: none; font-family: Georgia, serif; font-size: 42px; font-weight: 700; letter-spacing: -2px; line-height: 1; }
.wordmark span { font-family: sans-serif; font-size: 19px; vertical-align: top; margin-left: 5px; color: #779b69; }
.masthead p { font-size: 14px; color: #6d796e; }
.badge { margin-left: auto; font-size: 12px; color: #61705f; background: #e9eee3; border-radius: 30px; padding: 8px 13px; }
.workspace { max-width: 1512px; margin: auto; padding: 0 40px; display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 26px; }
.stage { min-height: 640px; height: calc(100dvh - 178px); max-height: 920px; position: relative; overflow: hidden; border-radius: 28px; background: #e8eee4; }
#viewport { position: absolute; inset: 0; }
#viewport canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.status { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); max-width: min(80%, 430px); text-align: center; background: #fafbf7; padding: 18px 24px; border-radius: 16px; line-height: 1.6; box-shadow: 0 10px 40px #384c3310; }
.status[hidden] { display: none; }
.status.error { color: #883b30; }
.stage-caption { position: absolute; left: 26px; top: 24px; display: flex; align-items: center; gap: 9px; font-size: 14px; background: #fafbf7dd; padding: 10px 15px; border-radius: 30px; max-width: calc(100% - 52px); }
.live-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: #719864; }
.camera-hint { position: absolute; bottom: 20px; left: 26px; right: 180px; margin: 0; color: #5c6f59; font-size: 12px; line-height: 1.5; pointer-events: none; }
.camera-reset { position: absolute; right: 20px; bottom: 16px; background: #fafbf7db; font-size: 12px; min-height: 38px; }
.panel { padding: 24px 0 0; }
.paw { font-size: 28px; }
h1 { font-size: 25px; line-height: 1.25; letter-spacing: -.7px; margin: 16px 0 10px; }
.panel-intro p { line-height: 1.6; font-size: 14px; color: #6d796e; margin: 0 0 28px; max-width: 270px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 9px; }
#clip-count { color: #7b8875; font-weight: 400; float: right; }
select { width: 100%; padding: 10px 34px 10px 13px; text-overflow: ellipsis; cursor: pointer; }
.clip-original { font-size: 11px; color: #71806c; line-height: 1.5; overflow-wrap: anywhere; min-height: 33px; margin: 9px 2px 16px; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 25px; }
.quick-actions button { font-size: 12px; min-height: 34px; padding: 7px 11px; border-radius: 9px; background: #edf2e8; border-color: transparent; }
.quick-actions button[aria-pressed="true"] { background: #d5e3cc; border-color: #a4ba98; }
.playback-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-bottom: 24px; }
button.primary { background: #54735c; color: white; border-color: #54735c; }
button.primary:hover:not(:disabled) { background: #405e47; }
.panel-note { border-top: 1px solid #dce4d6; margin-top: 28px; padding-top: 22px; }
.panel-note strong { font-size: 13px; font-weight: 600; }
.panel-note p { font-size: 12px; line-height: 1.7; color: #72806c; margin-top: 8px; }
footer { text-align: center; padding: 22px 20px; color: #8a9683; font-size: 12px; }
.no-script { text-align: center; color: #883b30; }
@media (max-width: 900px) { .masthead { padding: 23px 22px; gap: 18px; } .workspace { padding: 0 22px; grid-template-columns: minmax(0,1fr) 280px; gap: 20px; } .stage { min-height: 570px; } .camera-hint { right: 22px; bottom: 66px; } .camera-reset { right: auto; left: 20px; } }
@media (max-width: 680px) { .masthead { padding: 20px; flex-wrap: wrap; gap: 10px 18px; } .wordmark { font-size: 36px; } .masthead p { display: none; } .badge { font-size: 11px; } .workspace { display: block; padding: 0 14px; } .stage { min-height: 360px; height: 53dvh; max-height: 540px; border-radius: 22px; } .stage-caption { left: 16px; top: 16px; max-width: calc(100% - 32px); font-size: 12px; } .camera-hint { left: 18px; bottom: 61px; font-size: 10px; } .camera-reset { left: 14px; bottom: 12px; } .panel { padding: 25px 10px 0; } .panel-intro { position: relative; padding-left: 45px; } .paw { position: absolute; left: 0; top: 0; } h1 { margin-top: 0; font-size: 23px; } .panel-intro p { max-width: none; margin-bottom: 22px; } .clip-original { min-height: 0; } .panel-note { margin-top: 22px; } footer { padding-bottom: 28px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
@media (max-width: 680px) {
  /* Подсказка и кнопка имеют отдельную полосу, лапы не перекрывают текст. */
  #viewport { bottom: 88px; }
}
