/* "Publish on this bench": live screens on the homepage bench, zoom into a screen, publishing panel.
   The stage itself stays clean: only one small button is added to it. */

/* Screens laid exactly inside the frames of the three displays of the render
   (measured on the 1496 × 684 picture: y 51–190, x 280–579 / 597–900 / 918–1217). */
.screens { position: absolute; inset: 0; pointer-events: none; }
.scr { position: absolute; top: 7.456%; height: 20.468%; width: 20.053%; padding: 0; border: 0; border-radius: .55% / 1.2%; overflow: hidden; background: #e9eae7; color: #17191c; cursor: zoom-in; pointer-events: auto; container-type: size; text-align: left; font-family: Inter, system-ui, sans-serif; }
.scr[data-screen="left"] { left: 18.717%; }
.scr[data-screen="center"] { left: 39.906%; width: 20.321%; }
.scr[data-screen="right"] { left: 61.364%; }
.scr:focus-visible { outline: 2px solid #8fd3ff; outline-offset: 2px; }
.scr-body { position: absolute; inset: 0; }
.scr-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Kinesus default content: calm e-paper style */
.scr-def { position: absolute; inset: 0; padding: 10cqh 8cqw; display: flex; flex-direction: column; justify-content: center; gap: 5cqh; }
.scr-def small { font-size: 7.5cqh; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #b3261e; }
.scr-def b { font-size: 17cqh; font-weight: 600; line-height: 1.05; letter-spacing: -.01em; }
.scr-def span { font-size: 9.5cqh; line-height: 1.3; color: #3b3f45; }
.scr-def.scr-brand b { font-family: Audiowide, Inter, sans-serif; font-weight: 400; font-size: 18cqh; }
/* Visitor content */
.scr-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 8cqh 7cqw; text-align: center; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
.scr-text.l { font-size: 17cqh; } .scr-text.m { font-size: 12cqh; } .scr-text.s { font-size: 9.5cqh; }
.scr-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 3.5cqh 5cqw; background: rgba(233,234,231,.94); font-size: 8.5cqh; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Zoom: the bench moves so the chosen screen fills the view */
.product.zooming .bench { transition: transform .9s cubic-bezier(.2,.75,.2,1) !important; }
.product.zoomed .bench { transform-origin: 0 0; }
.product.zoomed .hs, .product.zoomed .tag, .product.zoomed .pub-btn { opacity: 0 !important; pointer-events: none; transition-delay: 0s; }
.product.zoomed .scr { cursor: zoom-out; }
.zoom-bar { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60; display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(16,18,22,.88); border: 1px solid var(--line); backdrop-filter: blur(10px); box-shadow: 0 14px 40px rgba(0,0,0,.5); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.zoom-bar.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.zoom-bar button { height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: none; color: var(--ink); font: 600 13px Inter, sans-serif; cursor: pointer; white-space: nowrap; }
.zoom-bar button:hover { background: rgba(255,255,255,.08); }
.zoom-bar .zb-pub { background: var(--ink); color: var(--bg); }
.zoom-bar .zb-pub:hover { background: #fff; }
.zoom-bar .zb-report { color: var(--ink-3); }

/* The one small button on the stage */
.pub-btn { position: absolute; left: 0; bottom: 6px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 999px; border: 1px solid var(--line); background: rgba(10,11,13,.6); color: var(--ink-2); font: 600 9px Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; opacity: 0; transition: opacity .6s ease 10s, color .2s, border-color .2s; }
.pub-btn i { font-style: normal; font-size: 12px; line-height: 1; }
.product.lit .pub-btn { opacity: .75; }
.pub-btn:hover { color: var(--ink); border-color: rgba(255,255,255,.35); opacity: 1 !important; transition-delay: 0s; }
.product.resetting .pub-btn { transition: none; }

/* Publishing panel */
dialog.pub { width: min(980px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: #0f1216; color: var(--ink); overflow: auto; }
dialog.pub::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.pub-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; padding: clamp(20px, 3vw, 34px); }
.pub-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pub-head h2 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.01em; }
.pub-head p { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; max-width: 60ch; }
.pub-x { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.pub-lbl { display: block; margin: 0 0 8px; color: var(--ink-3); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.pub-screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; border-radius: 14px; background: #6f7378; }
/* Unchosen screens are dimmed; the chosen one is bright, outlined in blue and ticked. */
.pub-screens button { aspect-ratio: 300 / 140; border-radius: 6px; border: 2px solid transparent; background: #a7aaa6; color: #3a3d41; font: 600 12px Inter, sans-serif; cursor: pointer; transition: background .2s, box-shadow .2s, border-color .2s; }
.pub-screens button:hover { background: #c3c5c1; }
.pub-screens button.on { border-color: #4fb7ff; background: #f7f8f5; color: #0f1216; box-shadow: 0 0 0 3px rgba(79,183,255,.45), 0 0 22px rgba(79,183,255,.55); }
.pub-screens button.on::before { content: "✓ "; color: #1a8be0; font-weight: 700; }
.pub-preview { margin-top: 16px; position: relative; aspect-ratio: 300 / 140; border-radius: 10px; border: 8px solid #a9adb2; overflow: hidden; background: #e9eae7; color: #17191c; container-type: size; }
.pub-note { margin: 12px 0 0; color: var(--ink-3); font-size: 12px; line-height: 1.5; }
.pub-form { display: flex; flex-direction: column; gap: 18px; }
.pub-file { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pub-file label, .pub-file button { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: none; color: var(--ink); font: 600 13px Inter, sans-serif; cursor: pointer; }
.pub-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pub-file .pub-rm { border-color: var(--line); color: var(--ink-3); }
.pub-form textarea { width: 100%; min-height: 84px; resize: vertical; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #0a0c0f; color: var(--ink); font: 400 15px/1.45 Inter, sans-serif; }
.pub-form textarea:focus { outline: none; border-color: rgba(143,211,255,.6); }
.pub-count { margin-top: 4px; text-align: right; color: var(--ink-3); font-size: 12px; }
.pub-queue { padding: 12px 14px; border-radius: 12px; background: rgba(143,211,255,.06); border: 1px solid rgba(143,211,255,.18); color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.pub-queue b { color: var(--ink); font-weight: 600; }
.pub-rules summary { cursor: pointer; color: var(--ink-2); font-size: 13px; }
.pub-rules ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-3); font-size: 13px; line-height: 1.55; }
.pub-accept { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 13px; line-height: 1.45; cursor: pointer; }
.pub-accept input { margin-top: 2px; width: 16px; height: 16px; accent-color: #8fd3ff; flex: none; }
.pub-accept a { color: var(--ink); }
.pub-go { height: 48px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font: 600 15px Inter, sans-serif; cursor: pointer; }
.pub-go:disabled { opacity: .45; cursor: default; }
.pub-msg { min-height: 1.4em; margin: -6px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.pub-msg.err { color: #ff9a9a; }
.pub-demo { color: #ffd479; font-size: 12px; }
.pub-hp { position: absolute; left: -9999px; }
.pub [hidden] { display: none !important; }
.pub-in > * { min-width: 0; }
@media (max-width: 760px) { .pub-in { grid-template-columns: minmax(0, 1fr); } .pub-screens button { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .product.zooming .bench { transition: none !important; } }
