/* Stage and toolbar */
.toolbar { margin: 18px 0 10px; gap: 10px 16px; font-size: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg > * { border: 0; border-radius: 0; background: var(--card); color: var(--fg); padding: 6px 12px; font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }
.seg > * + * { border-left: 1px solid var(--line); }
.seg > [aria-pressed="true"], .seg > [aria-current] { background: var(--fg); color: var(--bg); }
.ctl { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.stage3d { scroll-margin-top: 64px; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0d0f14; aspect-ratio: 16 / 10; }
.stage3d canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.hud { position: absolute; left: 10px; bottom: 8px; font: 11px/1.5 var(--mono); color: #cfd6e4; pointer-events: none; white-space: pre; text-shadow: 0 1px 2px #000; }

/* Without the API the documents stay in the page as an ordinary stack. */
.uis { display: grid; gap: 16px; margin-top: 16px; }
.uis:empty { display: none; }
.uis .ui { max-width: 100%; overflow: auto; border-radius: 10px; }

/* ---------- Documents. Fixed pixel sizes: each one is a screen. ---------- */
.ui { box-sizing: border-box; font: 15px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif; }
.ui * { box-sizing: border-box; }
.ui button, .ui input, .ui select, .ui textarea { font: inherit; }
.ui :focus-visible { outline: 3px solid #ffb199; outline-offset: 1px; }
.ui [data-ray-hover] { outline: 2px solid #7ad7ff; outline-offset: 1px; }

.laptop { width: 640px; height: 400px; background: #f4f1ea; color: #1d1c1a; display: flex; flex-direction: column; }
.laptop header { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #e6e1d6; border-bottom: 1px solid #d3ccbd; font-size: 13px; }
.laptop header b { flex: 1; }
.laptop header time { font: 12px ui-monospace, monospace; color: #6b6760; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #d2491f; }
.dots i:nth-child(2) { background: #e0a100; }
.dots i:nth-child(3) { background: #3a9a55; }
.laptop .cols { flex: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; padding: 16px 18px; }
.laptop label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: #6b6760; margin: 0 0 4px; }
.laptop input[type=text], .laptop textarea, .laptop select { width: 100%; padding: 8px 10px; border: 1px solid #cfc8b8; border-radius: 6px; background: #fff; color: #1d1c1a; margin-bottom: 12px; }
.laptop textarea { resize: none; height: 110px; }
.laptop input[type=range] { width: 100%; margin: 4px 0 12px; accent-color: #d2491f; }
.laptop .check { display: flex; gap: 8px; align-items: center; text-transform: none; font-weight: 400; font-size: 14px; letter-spacing: 0; color: #1d1c1a; margin-bottom: 14px; }
.laptop .check input { accent-color: #d2491f; width: 16px; height: 16px; }
.laptop button { width: 100%; padding: 10px; border: 0; border-radius: 6px; background: #d2491f; color: #fff; font-weight: 600; cursor: pointer; }
.laptop button:hover { background: #b33a14; }
.laptop > footer { padding: 8px 18px 10px; font-size: 12px; color: #6b6760; border-top: 1px solid #e0dacd; }
.laptop button:active { transform: translateY(1px); }

.billboard { width: 960px; height: 420px; padding: 34px 44px; background: radial-gradient(120% 140% at 0% 0%, #1d2030, #07080c 70%); color: #fff; display: flex; flex-direction: column; overflow: hidden; }
.billboard .kicker { margin: 0; font: 600 15px ui-monospace, monospace; letter-spacing: 0.14em; text-transform: uppercase; color: #9aa3b8; }
.billboard h2 { flex: 1; margin: 14px 0 0; font-size: 64px; line-height: 1.05; letter-spacing: -0.03em; color: var(--ink, #ff7a4d); text-wrap: balance; overflow-wrap: anywhere; }
.billboard.glow h2 { text-shadow: 0 0 18px color-mix(in srgb, var(--ink, #ff7a4d) 70%, transparent), 0 0 60px color-mix(in srgb, var(--ink, #ff7a4d) 40%, transparent); }
.billboard footer { display: flex; align-items: center; justify-content: space-between; font-size: 24px; color: #c5cbd9; }
.billboard button { font-size: 26px; padding: 8px 22px; border-radius: 99px; border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer; }
.billboard button:hover { background: #fff; color: #07080c; }

.wall { width: 1800px; height: 520px; display: grid; grid-template-columns: 1.5fr 1.1fr 0.8fr; gap: 20px; padding: 24px; background: #10131a; color: #e8ebf2; font-size: 17px; }
.wall .pane { background: #1a1e29; border: 1px solid #2c3242; border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; min-height: 0; gap: 10px; }
.wall h3 { margin: 0; font-size: 20px; }
.wall h3 small { font: 12px ui-monospace, monospace; color: #8b94a8; margin-left: 6px; }
.wall input[type=search] { padding: 8px 10px; border-radius: 6px; border: 1px solid #39415a; background: #0d1016; color: inherit; width: 100%; }
.wall .scroll { flex: 1; overflow: auto; min-height: 0; border-radius: 6px; border: 1px solid #2c3242; }
.wall table { width: 100%; border-collapse: collapse; font-size: 15px; }
.wall th, .wall td { text-align: left; padding: 6px 10px; border-bottom: 1px solid #262c3a; }
.wall th { position: sticky; top: 0; background: #222838; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #9aa3b8; }
.wall tr.new td { animation: flash 1.4s ease-out; }
@keyframes flash { from { background: #d2491f; } to { background: transparent; } }
.wall .notes { flex: 1; min-height: 0; overflow: auto; background: #fdf6d8; color: #2b2610; border-radius: 6px; padding: 12px 14px; font: 17px/1.5 Georgia, serif; }
.wall details { font-size: 14px; color: #b8c0d2; }
.wall details p { margin: 6px 0 0; }
.wall summary { cursor: pointer; }
.wall input[type=range] { width: 100%; accent-color: hsl(var(--hue, 18) 80% 60%); }
.wall .swatch { height: 46px; border-radius: 8px; background: linear-gradient(90deg, hsl(var(--hue, 18) 85% 55%), hsl(calc(var(--hue, 18) + 60) 85% 60%)); }
.wall .check { display: flex; gap: 8px; align-items: center; }
.wall .bars { flex: 1; display: flex; align-items: flex-end; gap: 6px; min-height: 60px; }
.wall .bars i { flex: 1; background: hsl(var(--hue, 18) 80% 60%); border-radius: 3px 3px 0 0; height: 20%; }
.wall .bars.on i { animation: bar 1.2s ease-in-out infinite alternate; }
.wall .bars i:nth-child(2n) { animation-delay: -0.4s; }
.wall .bars i:nth-child(3n) { animation-delay: -0.8s; }
@keyframes bar { from { height: 15%; } to { height: 100%; } }
.wall a { color: #7ad7ff; font-size: 15px; }

@media (max-width: 620px) {
  .stage3d { aspect-ratio: 4 / 5; }
}
