/* ==========================================================================
   SAIUNES STYLE
   01 Foundations   02 Navigation   03 Hero & buttons   04 Broadcast animation
   05 Destinations  06 Content layout     07 Channel ideas
   08 Pricing       09 Questions    10 Founder & footer 11 Reading pages
   12 Contact       13 Reveals      14 Streaming Studio 15 Authentication 16 Utility pages
   17 Responsive layouts 18 Motion preferences

   One component definition per selector. Screen-size changes belong in the
   responsive section; use the 12px radius token throughout.
   ========================================================================== */
/* ==========================================================================
   01. FOUNDATIONS
   ========================================================================== */
:root { --lime: #d8ff45; --shell: 1320px; --radius: 12px; --sans: Arial, Helvetica, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace; --paper: #101316; --ink: #f7f5ef; --ink-soft: #b9bec5; --orange: #ff914d; --orange-deep: #ffad78; --line: #ffffff12; --surface: #171b20; color-scheme: dark; background: var(--paper); color: var(--ink); }
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; border-radius: var(--radius); }
[hidden] { display: none !important; }
::selection { background: var(--orange); color: #fff; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 14px; background: var(--orange); color: #191512; font-weight: 800; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 64px), var(--shell)); margin-inline: auto; }
.platform-icons { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
main { display: flow-root; }
/* ==========================================================================
   02. NAVIGATION
   ========================================================================== */
.header { position: fixed; inset: 0 0 auto; z-index: 100; background: #101316; color: #f7f5ef; border: 0; }
.header-content { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; margin-inline: auto; width: min(calc(100% - 64px),var(--shell)); height: 88px; }
.logo { display: inline-flex; align-items: center; justify-self: start; gap: 12px; }
.logo img { border-radius: var(--radius); width: 48px; height: 48px; border: 1px solid #ffffff16; }
.logo span { display: grid; gap: 1px; }
.logo strong { font-weight: 800; font-size: 17px; }
.logo small { font-family: var(--mono); text-transform: uppercase; color: #a7abb1; font-size: 10px; letter-spacing: .06em; }
.navigation { display: flex; align-items: center; justify-content: center; border-radius: var(--radius); gap: 3px; padding: 4px; border: 1px solid #ffffff14; background: #ffffff04; }
.navigation > a { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; cursor: pointer; transition: background .18s ease, color .18s ease, transform .18s ease; border-radius: var(--radius); min-height: 40px; padding: 0 16px; color: #c6c9ce; font-size: 16px; font-weight: 500; }
.header-actions { display: flex; align-items: center; justify-self: end; gap: 18px; }
.account-links { display: flex; align-items: center; gap: 9px; }
.account-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; font-weight: 800; transition: background .18s ease, color .18s ease, transform .18s ease; border-radius: var(--radius); min-height: 48px; padding: 0 22px; border: 1px solid #ff9855; background: #ff914d; color: #191512; font-size: 14px; }
.menu-button { min-width: 72px; height: 42px; display: none; align-items: center; justify-content: center; gap: 10px; padding: 0 12px; background: transparent; cursor: pointer; border-radius: var(--radius); border: 1px solid #ffffff35; }
.menu-label { font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.menu-icon { width: 16px; display: grid; gap: 4px; }
.menu-icon i { height: 1px; display: block; background: currentColor; transition: transform .2s ease; }
.menu-button[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(2.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(-2.5px) rotate(-45deg); }
.mobile-menu { padding: 36px 32px; overflow-y: auto; border-top: 1px solid var(--line); height: calc(100vh - 88px); height: calc(100dvh - 88px); background: #101316; border-color: #ffffff1a; color: #f7f5ef; }
.mobile-menu > a { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: clamp(28px, 8vw, 52px); font-weight: 700; cursor: pointer; border-color: #ffffff1a; }
.mobile-account { color: #ffac75; }
.navigation > a:hover, .navigation > a:focus-visible { color: #fff; background: #ffffff0c; transform: none; }
.account-button:hover, .account-button:focus-visible { background: #ffb17e; color: #191512; transform: translateY(-1px); }
.account-links .studio-link { padding-inline: 12px; border-color: transparent; background: transparent; color: #e7e9ec; }
:is(a, summary, button):focus-visible { outline: 2px solid #ff9757; outline-offset: 5px; }
section[id] { scroll-margin-top: 104px; }
/* ==========================================================================
   03. HERO & SHARED ACTIONS
   ========================================================================== */
.intro { background: radial-gradient(ellipse at 80% 28%,#ff914d0b,transparent 55%); }
.intro .eyebrow { color: #c2c4c8; }
.intro .button { box-shadow: 0 8px 32px #ff85371a; }
.hero-art { min-width: 0; width: 100%; }
.hero { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(0,1fr); align-items: center; gap: clamp(32px,4vw,64px); padding-block: 168px 80px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .05em; line-height: 1.6; }
.live-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,92,0,.12); }
.hero h1 { margin: 0; font-size: clamp(54px,5.3vw,76px); letter-spacing: -.055em; font-weight: 700; line-height: 1.04; }
.hero-title-line { display: block; }
.hero-highlight { color: #ff9b5d; white-space: nowrap; }
:is(h1,h2) em { color: var(--orange-deep); font: inherit; font-style: normal; }
.hero-description { max-width: 520px; margin: 24px 0 0; color: #c2c7ce; font-size: 20px; line-height: 1.55; }
.hero-actions { display: flex; margin-top: 28px; }
.button { display: inline-flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 32px; padding: 0 24px; border: 1px solid #ff914d; border-radius: var(--radius); background: #ff914d; color: #191512; font-size: 16px; font-weight: 700; transition: background .2s, transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); background: #ffad79; border-color: #ffad79; box-shadow: 0 8px 24px #ff914d20; }
.button > span { font-size: 22px; font-weight: 400; }
/* ==========================================================================
   04. HERO BROADCAST ANIMATION — native SVG, no video or canvas download
   ========================================================================== */
.broadcast { height: clamp(320px,32vw,430px); position: relative; width: 100%; min-width: 0; overflow: hidden; isolation: isolate; border: 0; background: transparent; }
.broadcast-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.broadcast-status { position: absolute; top: 24px; left: 26px; z-index: 2; display: flex; align-items: center; gap: 8px; color: #d8dfcc; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
.broadcast-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(216,255,69,.45); }
.tv-float { animation: tv-drift 7s ease-in-out infinite; }
.radio-float { animation: radio-drift 8s ease-in-out infinite; }
.signal-orbit { transform-box: fill-box; transform-origin: center; transform: rotate(var(--orbit-rotation)); }
.signal-trace { animation: orbit-flow 16s linear infinite; }
.signal-orbit-second .signal-trace { animation-duration: 12s; animation-direction: reverse; }
.signal-packet { animation: signal-flow 3.2s linear infinite; }
.radio-packet { animation-delay: -1.6s; animation-duration: 3.8s; }
.signal-pulse { transform-origin: 320px 315px; animation: core-breathe 4.5s ease-in-out infinite; }
.radio-dial { transform-box: fill-box; transform-origin: center; animation: record-spin 16s linear infinite; }
.audio-bars rect { transform-box: fill-box; transform-origin: center; animation: audio-level 1.3s var(--delay) ease-in-out infinite alternate; }
.tv-picture { transform-origin: 125px 94px; animation: scene-shift 12s ease-in-out infinite alternate; }
.tv-scan { animation: video-scan 5s linear infinite; }
.tv-progress { stroke-dasharray: 75 100; animation: progress-flow 9s ease-in-out infinite alternate; }
[data-stream-animation].animation-paused * { animation-play-state: paused !important; }
@keyframes tv-drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes radio-drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes orbit-flow { to { stroke-dashoffset: -900; } }
@keyframes signal-flow { to { stroke-dashoffset: -165; } }
@keyframes core-breathe { 0%,100% { opacity: .5; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes record-spin { to { transform: rotate(360deg); } }
@keyframes audio-level { to { transform: scaleY(.3); opacity: .6; } }
@keyframes scene-shift { to { transform: translateX(10px) scale(1.12); } }
@keyframes video-scan { to { transform: translateY(112px); } }
@keyframes progress-flow { to { stroke-dashoffset: -60; } }
/* ==========================================================================
   05. COMPATIBLE DESTINATIONS — one list for all screens
   ========================================================================== */
.destinations { margin-bottom: 24px; }
.destination-panel { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(ellipse at 100% 0,#ff914d0c,transparent 60%),var(--surface); }
.destination-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.destination-heading::before { content: ''; width: 4px; height: 24px; flex: 0 0 4px; border-radius: var(--radius); background: var(--orange); }
.destination-heading h2 { margin: 0; color: var(--ink); font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -.025em; }
.platform-list { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.platform-list li { --platform-color: #f7f5ef; min-width: 0; min-height: 116px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px 8px; border: 1px solid #ffffff12; border-radius: var(--radius); background: linear-gradient(155deg,#ffffff05,transparent); color: #e2e5e9; font-size: 15px; font-weight: 500; line-height: 1.4; transition: border-color .2s,background-color .2s,transform .2s; }
.platform-list [data-stream-target="youtube"] { --platform-color: #ff625f; }
.platform-list [data-stream-target="twitch"] { --platform-color: #bf94ff; }
.platform-list [data-stream-target="kick"] { --platform-color: #a6ed4b; }
.platform-list [data-stream-target="instagram"] { --platform-color: #ff91b5; }
.platform-list [data-stream-target="facebook"] { --platform-color: #76a9ff; }
.platform-list .custom-rtmp { --platform-color: #ffad78; border-color: #ff914d55; background: linear-gradient(145deg,#ff914d1c,#ff914d05); color: #ffbd92; }
.platform-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--platform-color); }
.platform-icon svg { display: block; width: 38px; height: 38px; fill: currentColor; }
/* ==========================================================================
   06. CONTENT SECTION LAYOUT
   ========================================================================== */
.section { padding-block: 88px; }
.section-heading { max-width: 900px; margin-bottom: 42px; }
.section-description { max-width: 720px; margin: 22px 0 0; color: var(--ink-soft); font-size: 18px; line-height: 1.7; }
/* ==========================================================================
   07. CHANNEL IDEAS & PRICING LAYOUT
   ========================================================================== */
.ideas-and-pricing { display: flex; align-items: flex-start; gap: 48px; padding-block: 88px; }
section.channel-ideas { flex: 1; min-width: 0; scroll-margin-top: 112px; }
.channel-ideas h2 { margin: 0; font-size: clamp(36px,3.7vw,52px); letter-spacing: -.05em; font-weight: 600; line-height: 1.1; }
.channel-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; }

.channel-card { display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1fr); min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.channel-art { position: relative; min-height: 240px; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; border-right: 1px solid var(--line); }
.tv-art { background: radial-gradient(ellipse at 50% 80%,#ff914d1c,transparent 70%),#1a2025; }
.tv-screen { width: 75%; max-width: 126px; height: 92px; display: grid; place-items: center; border: 8px solid #373f47; border-radius: var(--radius); background: var(--orange); color: #171b20; font-size: 28px; transform: rotate(-8deg); box-shadow: 8px 8px 0 rgba(22,22,22,.12); }
.tv-screen::after { position: absolute; width: 50px; height: 5px; background: #69717a; content: ''; bottom: -17px; }
.radio-art { background: radial-gradient(ellipse at 50% 80%,#ff914d18,transparent 70%),#221f1d; }
.record { width: 128px; height: 128px; max-width: 85%; border-radius: 50%; border: 1px solid #55514c; background: repeating-radial-gradient(circle,#101316 0 3px,#393c3f 4px 5px,#101316 6px 8px); box-shadow: 10px 10px 0 rgba(22,22,22,.12); }
.record::before { content: ''; position: absolute; width: 47px; height: 47px; left: 50%; top: 50%; transform: translate(-50%,-50%); border: 18px solid var(--orange); border-radius: 50%; background: var(--ink); }
.gaming-art { background: radial-gradient(ellipse at 50% 80%,#8ba9d31c,transparent 70%),#1c222c; }
.controller { display: flex; align-items: center; justify-content: space-around; width: 80%; max-width: 154px; height: 90px; border: 3px solid #5c6673; border-radius: var(--radius); background: #252d38; transform: rotate(9deg); font-size: 50px; box-shadow: 7px 9px 0 rgba(22,22,22,.12); }
.controller b { font-size: 17px; color: var(--orange-deep); letter-spacing: 2px; }
.news-art { background: radial-gradient(ellipse at 50% 80%,#ffba8018,transparent 70%),#24211e; }
.newspaper { width: 80%; max-width: 130px; padding: 13px; background: #30312f; border: 1px solid #666763; font-weight: 900; font-size: 30px; line-height: .9; letter-spacing: -.06em; transform: rotate(-7deg); box-shadow: 7px 8px 0 rgba(22,22,22,.12); }
.newspaper > span { display: block; margin-top: 15px; padding-top: 6px; border-top: 3px solid var(--orange); font-size: 6px; font-family: var(--mono); letter-spacing: 0; }
.channel-content { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 28px; }
.channel-content h3 { margin: 0 0 12px; font-size: 26px; letter-spacing: -.035em; font-weight: 600; }
.channel-content p { margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
/* ==========================================================================
   08. PRICING
   ========================================================================== */
.pricing { position: sticky; top: 104px; flex: 0 0 40%; min-width: 0; scroll-margin-top: 104px; }
.price-card { padding: 34px; border: 1px solid #ff914d40; border-radius: var(--radius); background: radial-gradient(ellipse at top right,#ff914d10,transparent 65%),var(--surface); }
.price-amount { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin: 26px 0; }
.price-amount strong { font-size: clamp(60px,6vw,88px); font-weight: 500; line-height: 1; letter-spacing: -.07em; }
.price-amount span { font-size: 14px; line-height: 1.65; }
.price-card ul { display: grid; gap: 16px; margin: 30px 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.5; }
.price-card li { display: flex; align-items: baseline; gap: 10px; }
.price-card li::before { content: '✓'; color: var(--orange-deep); }
.price-card .button { width: 100%; }
.price-guarantee { margin: 20px 0 0; font-size: 14px; text-align: left; line-height: 1.8; }
/* ==========================================================================
   09. FREQUENTLY ASKED QUESTIONS
   ========================================================================== */
.faq { max-width: 840px; padding-block: 48px; scroll-margin-top: 88px; }
.faq-list { padding: 8px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq-list details + details { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 74px; padding-block: 20px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; line-height: 1.45; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 22px; font-weight: 400; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { margin: 0 30px 24px 0; color: var(--ink-soft); font-size: 16px; line-height: 1.8; }
.faq-list a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; }
/* ==========================================================================
   10. FOUNDER & FOOTER
   ========================================================================== */
.footer { background: var(--paper); color: var(--ink); }
.footer-content { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: clamp(40px,7vw,100px); padding-block: 88px; border-block: 1px solid var(--line); align-items: center; }
.founder-photo { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #ff7a08; }
.founder-photo img { width: 100%; height: auto; }
.founder-photo figcaption { position: absolute; inset: auto 16px 16px; display: grid; gap: 5px; padding: 14px 16px; border: 1px solid #ffffff20; border-radius: var(--radius); background: #101316ed; font-size: 16px; }
.founder-photo figcaption span { color: var(--ink-soft); font-size: 13px; }
.footer-intro { display: grid; justify-items: start; gap: 24px; min-width: 0; }
.footer-intro > .eyebrow { margin: 0; color: var(--orange-deep); }
.footer-content h2 { margin: 0; font-weight: 600; font-size: clamp(36px,4.2vw,56px); letter-spacing: -.05em; line-height: 1.1; }
.footer-intro > p:not(.eyebrow) { max-width: 560px; margin: 0; font-size: 18px; line-height: 1.75; color: var(--ink-soft); }
.footer-actions { width: 100%; display: flex; gap: 12px; }
.footer-button { min-width: 0; border-color: #ffffff26; color: var(--ink); background: transparent; }
.footer-actions .footer-button:first-child { border-color: var(--orange); background: var(--orange); color: #191512; }
.footer-story { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 5px; font-size: 15px; }
.footer-bottom { display: grid; grid-template-columns: 1fr; justify-items: center; align-items: end; gap: 34px; padding-block: 54px; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.footer nav a { font-weight: 700; color: var(--ink-soft); font-size: 14px; }
.footer-button:is(:hover,:focus-visible) { background: #ffffff0c; color: var(--ink); }
.footer-actions .footer-button:first-child:is(:hover,:focus-visible) { border-color: #ffad79; background: #ffad79; color: #191512; }
.footer nav a:hover, .footer nav a:focus-visible { color: var(--orange-deep); }
/* ==========================================================================
   11. READING PAGES — shared by About, Privacy Policy and Terms of Use
   Uses the shared navigation, colors, buttons, footer and 12px radius above.
   ========================================================================== */
.page-intro { padding-block: 168px 64px; }
.page-intro h1 { max-width: 1040px; margin: 0; font-size: clamp(48px,5.5vw,76px); font-weight: 600; line-height: 1.08; letter-spacing: -.05em; }
.page-description { max-width: 740px; margin: 28px 0 0; color: var(--ink-soft); font-size: 20px; line-height: 1.7; }
.page-meta { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font: 12px/1.6 var(--mono); }
/* Fixed column spacing; the article stays close to the contents on wide screens. */
.reading-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); align-items: start; gap: 48px; padding-bottom: 88px; }
.page-sidebar { display: flex; flex-direction: column; align-self: stretch; gap: 24px; min-width: 0; }
:is(.page-notice, .page-contents) { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.page-notice { border-color: #ff914d35; background: linear-gradient(145deg,#ff914d0b,transparent),var(--surface); }
:is(.page-notice, .page-contents) > strong { color: var(--orange-deep); font: 600 11px/1.6 var(--mono); letter-spacing: .04em; }
.page-notice p { margin: 12px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.75; }
/* Only the contents stick. Its own scroll area keeps the rounded panel intact. */
.page-contents { position: sticky; top: 112px; display: grid; flex-shrink: 0; max-height: calc(100vh - 136px); max-height: calc(100dvh - 136px); overflow-y: auto; scrollbar-width: thin; scroll-padding-block: 22px; }
.page-contents > strong { padding-bottom: 12px; }
.page-contents > a { display: flex; align-items: center; min-height: 44px; padding-block: 10px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.page-contents > a:hover, .page-contents > a:focus-visible { color: var(--orange-deep); }
.page-portrait { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.page-portrait img { width: 100%; height: auto; }
.page-portrait figcaption { padding: 14px 18px; color: var(--ink-soft); font-size: 14px; }
.page-article { min-width: 0; max-width: 760px; }
.article-section + .article-section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
.article-section h2 { margin: 0 0 24px; font-size: clamp(28px,3vw,38px); font-weight: 600; line-height: 1.2; letter-spacing: -.035em; }
.article-section h3 { margin: 30px 0 12px; font-size: 22px; font-weight: 600; line-height: 1.35; letter-spacing: -.025em; }
.article-section p { margin: 0 0 20px; color: var(--ink-soft); font-size: 18px; line-height: 1.8; }
.article-section p:last-child { margin-bottom: 0; }
.article-section .article-label { margin-bottom: 14px; color: var(--orange-deep); font: 600 11px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.article-section .article-lead { color: var(--ink); font-size: 23px; font-weight: 500; line-height: 1.6; }
.article-section a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.article-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin-top: 32px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.article-facts > div { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 20px; background: var(--surface); }
.article-facts span { color: var(--orange-deep); font: 11px/1.6 var(--mono); }
.article-facts strong { overflow-wrap: anywhere; font-size: 15px; font-weight: 500; line-height: 1.6; }
.article-list { display: grid; gap: 12px; margin: 20px 0; padding-left: 22px; color: var(--ink-soft); font-size: 18px; line-height: 1.8; }
.article-list li::marker { color: var(--orange); }
.article-section .article-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; margin-top: 24px; padding-block: 14px; border-top: 1px solid var(--line); font-weight: 600; text-decoration: none; }
:is(.navigation, .mobile-menu, .footer nav) a[aria-current="page"] { color: var(--orange-deep); }
/* ==========================================================================
   12. CONTACT DIALOG
   ========================================================================== */
body > .contact-backdrop { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 20px; overflow-y: auto; background: rgba(22, 22, 22, .58); backdrop-filter: blur(10px); }
body > .contact-backdrop[hidden] { display: none; }
body.contact-open { overflow: hidden; }
.contact-dialog { position: relative; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; width: min(100%, 620px); padding: clamp(28px, 5vw, 54px); border: 1px solid #ffffff25; border-radius: var(--radius); background: var(--surface); box-shadow: 14px 14px 0 rgba(22, 22, 22, .24); color: var(--ink); }
.contact-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 1px solid #ffffff25; border-radius: var(--radius); background: transparent; color: var(--ink); font: inherit; font-size: 24px; cursor: pointer; }
.contact-label { display: block; margin-bottom: 14px; color: #c84700; font: 700 11px/1.2 "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.contact-dialog h2 { max-width: 500px; margin: 0 56px 18px 0; font-size: clamp(38px, 7vw, 64px); line-height: .95; }
.contact-dialog p { max-width: 510px; margin: 0 0 22px; color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.contact-email { display: block; margin-bottom: 26px; color: var(--ink); font: 700 14px/1.4 "SFMono-Regular", Consolas, "Liberation Mono", monospace; overflow-wrap: anywhere; }
.contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #ffffff25; border-radius: var(--radius); }
.contact-actions button { min-height: 50px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.contact-actions button + button { border-left: 1px solid var(--ink); }
.contact-actions .contact-primary { background: var(--orange); color: #191512; }
.contact-actions button:hover, .contact-actions button:focus-visible { background: var(--ink); color: #191512; outline: none; }
.contact-dialog > small { min-height: 18px; display: block; margin-top: 10px; color: var(--ink-soft); font-size: 12px; }
/* ==========================================================================
   13. CONTENT REVEALS
   ========================================================================== */
.reveal { opacity: 1; transform: translateY(0); transition: opacity .5s ease,transform .5s cubic-bezier(.2,.7,.3,1); }
.reveal.reveal-hidden { opacity: 0; transform: translateY(16px); }
/* ==========================================================================
   14. STREAMING STUDIO
   The /streaming layout and engine contracts, using the shared dark palette.
   A. Shell & loading  B. Dashboard  C. Stream cards  D. Dialogs
   E. Live Control    F. Uploads    G. Interactive guide
   ========================================================================== */
/* A. Shell & loading */
.studio-page { --muted: var(--ink-soft); --danger: #ff8585; --studio-border: #ffffff26; --studio-panel: #1d2329; --soft: var(--paper); --white: var(--ink); --green: #8ee6ad; --green-soft: #8ee6ad12; --red: var(--danger); }
.studio-page :is(button,input,select,textarea) { font: inherit; }
.studio-page :is(button,a,input,select,textarea):focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.studio-page button { cursor: pointer; }
.studio-page button:disabled { cursor: not-allowed; opacity: .45; }
.studio-page svg { display: block; fill: currentColor; }




.studio-workspace { padding-top: 88px; min-height: 430px; }
.studio-loading { display: grid; justify-items: center; align-content: center; gap: 18px; min-height: calc(100vh - 88px); min-height: calc(100dvh - 88px); padding: 48px 16px; text-align: center; }
.studio-loading-signal { position: relative; display: grid; place-items: center; width: 132px; height: 132px; color: var(--orange); }
.studio-loading-signal > i { position: absolute; inset: 30px; border: 1px solid currentColor; border-radius: 50%; animation: studio-broadcast 2.4s ease-out infinite; }
.studio-loading-signal > i:nth-child(2) { animation-delay: -.8s; }
.studio-loading-signal > i:nth-child(3) { animation-delay: -1.6s; }
.studio-loading-signal svg { width: 32px; height: 32px; }
.studio-loading-wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 24px; color: var(--orange); }
.studio-loading-wave i { width: 3px; height: 18px; border-radius: 2px; background: currentColor; animation: studio-wave 1s ease-in-out infinite alternate; }
.studio-loading-wave i:nth-child(2n) { animation-delay: -.3s; }
.studio-loading-wave i:nth-child(3n) { animation-delay: -.6s; }
.studio-loading p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.studio-error { max-width: 500px; margin: 48px auto; padding: 28px; border: 1px solid var(--studio-border); border-radius: var(--radius); background: var(--surface); }
.studio-error h2 { margin: 0 0 12px; font-size: 24px; }
.studio-error p { color: var(--ink-soft); line-height: 1.6; }
/* B. Dashboard — same two panels, guide strip and toolbar as /streaming. */
.studio-page :is(.app-playground,.app-playground-mount,.ui-app-shell,.ui-playground,.ui-studio-sl-card,.stx-streams-workspace) { min-width: 0; }
.studio-page .app-playground-page { width: min(calc(100% - 80px),1320px); margin-inline: auto; padding-block: 28px 16px; }
.studio-page .ui-studio-sl-card { display: grid; gap: 18px; }
.studio-page :is(.btn-primary,.btn-secondary,.btn-danger,.st-btn) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--studio-border); border-radius: var(--radius); background: transparent; color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.3; transition: border-color .18s,background .18s; }
.studio-page .btn-primary { background: var(--orange); border-color: var(--orange); color: #191512; }
.studio-page .btn-primary:hover:not(:disabled) { background: var(--orange-deep); border-color: var(--orange-deep); }
.studio-page :is(.btn-secondary,.st-btn):hover:not(:disabled) { border-color: var(--orange); background: #ff914d0b; }
.studio-page .btn-danger { color: var(--danger); border-color: #ff858540; background: #ff85850a; }
.studio-page .stx-studio-summary { display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px; }
.studio-page .stx-workspace-actions { min-width: 0; flex: 2 1 390px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px; border: 1px solid var(--studio-border); border-radius: var(--radius); background: var(--surface); }
.studio-page .stx-workspace-actions > div:first-child { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.studio-page .stx-workspace-actions > div:first-child::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px #ff914d1f; }
.studio-page .stx-eyebrow { color: var(--orange-deep); font: 600 10px/1.4 var(--mono); text-transform: uppercase; }
.studio-page .stx-workspace-actions strong { font-size: clamp(18px,2vw,24px); line-height: 1.3; }
.studio-page .stx-workspace-buttons { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.studio-page .stx-workspace-buttons button { flex: 1 1 190px; min-height: 48px; white-space: nowrap; }
.studio-page .stx-capacity-summary { min-width: 0; flex: 3 1 570px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--studio-border); border-radius: var(--radius); background: var(--studio-panel); }
.studio-page .stx-capacity-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 24px; }
.studio-page .stx-capacity-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.studio-page .stx-capacity-eyebrow { color: var(--orange-deep); font: 700 13px/1.4 var(--mono); text-transform: uppercase; }
.studio-page .stx-capacity-status { max-width: 100%; display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid #74d69a40; border-radius: var(--radius); background: #74d69a0b; color: #8ee6ad; }
.studio-page .stx-capacity-status[data-state="attention"] { border-color: #ff914d40; background: #ff914d0b; color: var(--orange-deep); }
.studio-page .stx-capacity-status[data-state="loading"] { color: var(--ink-soft); border-color: var(--line); background: transparent; }
.studio-page .stx-capacity-status-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: currentColor; }
.studio-page .stx-capacity-status strong { font-size: 12px; line-height: 1.3; font-weight: 700; }
.studio-page .stx-capacity-main h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; margin: 0; font-size: clamp(30px,3vw,46px); font-weight: 600; line-height: 1; }
.studio-page .stx-capacity-main h2 span { color: var(--muted); font-size: .8em; font-weight: 800; text-transform: uppercase; }
.studio-page .stx-capacity-message { max-width: 520px; margin: 0; color: var(--muted); font-size: .92em; line-height: 1.45; }
.studio-page .stx-capacity-meter { width: 100%; height: 10px; display: block; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(90deg,var(--orange) var(--stx-progress-percent,0%),#ffffff12 0); }
.studio-page .stx-guide-launch { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid var(--studio-border); border-radius: var(--radius); background: var(--surface); }
.studio-page .stx-guide-launch-copy { min-width: 0; display: flex; align-items: center; gap: 12px; }
.studio-page .stx-how-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--paper); font-size: 18px; font-weight: 900; }
.studio-page .stx-guide-launch-copy > span:last-child { display: grid; gap: 3px; }
.studio-page .stx-guide-launch-copy strong { font-size: 15px; line-height: 1.25; }
.studio-page .stx-guide-launch-copy small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.studio-page .stx-guide-launch-button { min-height: 44px; flex: 0 0 auto; white-space: nowrap; }
.studio-page .stx-stream-toolbar { display: flex; align-items: stretch; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.studio-page .stx-stream-toolbar > :is(button,select,.ui-custom-select) { min-height: 50px; flex: 0 0 auto; border: 1px solid var(--studio-border); border-radius: var(--radius); background: var(--surface); }
.studio-page .stx-stream-search { min-width: 240px; flex: 1 1 280px; display: flex; align-items: center; gap: 10px; padding-inline: 15px; min-height: 50px; border: 1px solid var(--studio-border); border-radius: var(--radius); background: var(--surface); }
.studio-page .stx-stream-search input { width: 100%; min-width: 0; min-height: 46px; padding: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 16px; }
.studio-page .stx-stream-search:focus-within { border-color: var(--orange); }
.studio-page :is(.stx-stream-search,.ui-card-menu-btn,.ui-stream-action-icon,.ui-icon,.ui-card-menu-action) svg { width: 16px; height: 16px; flex-shrink: 0; }
.studio-page .ui-icon { display: inline-grid; place-items: center; width: 16px; height: 16px; }
/* C. Stream cards — canonical full-width poster and centered relay signal. */
.studio-page .ui-stream-list { display: grid; gap: 20px; margin-top: 22px;  grid-template-columns: repeat(auto-fill,minmax(310px,1fr)); }
.studio-page .ui-stream-card { position: relative; min-width: 0; border: 1px solid var(--studio-border); border-radius: var(--radius); background: var(--studio-panel); transition: border-color .18s,transform .18s; }
.studio-page .ui-stream-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.studio-page .ui-stream-card-open-surface { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; z-index: 1; }
.studio-page .ui-stream-card-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 7px 8px 7px 12px; border-bottom: 1px solid var(--studio-border); }
.studio-page .ui-stream-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-soft); }
.studio-page .ui-stream-status { text-transform: uppercase; padding: 4px 8px; border-radius: var(--radius); background: #ffffff0b; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.studio-page .ui-stream-status[data-status="live"] { background: #8ee6ad12; color: #8ee6ad; }
.studio-page .ui-stream-status:is([data-status="processing"],[data-status="starting"],[data-status="scheduled"]) { color: var(--orange-deep); background: #ff914d12; }
.studio-page .ui-stream-status:is([data-status="error"],[data-status="failed"]) { color: var(--danger); background: #ff858512; }
.studio-page .ui-stream-card .ui-stream-mode { display: none; }
.studio-page .ui-stream-card-menu-wrap { position: relative; z-index: 3; }
.studio-page .ui-card-menu-btn { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: var(--ink-soft); }
.studio-page .ui-card-menu { display: none; position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; width: 220px; padding: 6px; border: 1px solid var(--studio-border); border-radius: var(--radius); background: var(--studio-panel); box-shadow: 0 12px 40px #0006; }
.studio-page .ui-card-menu.ui-open { display: grid; }
.studio-page .ui-card-menu.ui-open-up { top: auto; bottom: calc(100% + 6px); }
.studio-page .ui-card-menu-action { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border: 0; background: transparent; color: var(--ink); text-align: left; font-size: 14px; }
.studio-page .ui-card-menu-action:hover { background: #ffffff08; }
.studio-page .ui-menu-danger { color: var(--danger); }
.studio-page .ui-menu-disabled { opacity: .45; pointer-events: none; }
.studio-page .ui-stream-widget-overview { display: grid; gap: 0; padding: 0; }
.studio-page .ui-stream-poster { position: relative; min-height: 270px; min-width: 0; overflow: hidden; display: grid; align-content: space-between; padding: 22px; border-bottom: 1px solid var(--studio-border); background: var(--paper); color: var(--ink); }
.studio-page .ui-stream-poster::before { content: ''; position: absolute; top: 50%; left: 50%; width: 210px; height: 210px; border: 1px solid #ff914d45; border-radius: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.studio-page .ui-stream-poster::after { content: ''; position: absolute; top: 50%; left: 50%; width: 320px; height: 320px; border: 1px solid #ff914d45; border-radius: 50%; transform: translate(-50%,-50%); pointer-events: none; opacity: .55; }
.studio-page .ui-stream-poster-brand { position: relative; z-index: 1; justify-self: end; font: 9px/1.4 var(--mono); }
.studio-page .ui-stream-poster > div { position: relative; z-index: 1; }
.studio-page .ui-stream-name { margin: 0; color: var(--ink); font-size: clamp(24px,3vw,34px); font-weight: 800; line-height: 1.18; overflow-wrap: anywhere; }
.studio-page .ui-stream-poster p { margin: 6px 0 0; color: var(--ink); font-size: 20px; font-weight: 800; }
.studio-page :is(.ui-stream-poster-signal,.ui-stream-preview-broadcast) { position: absolute; top: 50%; left: 50%; width: 130px; height: 130px; transform: translate(-50%,-50%); pointer-events: none; }
.studio-page :is(.ui-stream-poster-signal,.ui-stream-preview-broadcast) i { position: absolute; top: 50%; left: 50%; border: 3px solid var(--orange); border-top-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: translate(-50%,-50%); animation: studio-relay 2.4s ease-in-out infinite; }
.studio-page :is(.ui-stream-poster-signal,.ui-stream-preview-broadcast) i:nth-child(1) { width: 54px; height: 54px; }
.studio-page :is(.ui-stream-poster-signal,.ui-stream-preview-broadcast) i:nth-child(2) { width: 88px; height: 88px; animation-delay: .15s; }
.studio-page :is(.ui-stream-poster-signal,.ui-stream-preview-broadcast) i:nth-child(3) { width: 122px; height: 122px; animation-delay: .3s; }
.studio-page :is(.ui-stream-poster-signal,.ui-stream-preview-broadcast) b { position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); transform: translate(-50%,-50%); }
.studio-page .ui-stream-head-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin: 0; padding: 10px 12px; color: var(--ink-soft); font: 11px/1.6 var(--mono); overflow-wrap: anywhere; }
.studio-page .ui-stream-card-hidden { display: none; }
.studio-page .ui-empty-streams { grid-column: 1 / -1; display: grid; justify-items: center; align-content: center; gap: 16px; min-height: 210px; padding: 40px 24px; border: 1px solid var(--studio-border); border-radius: var(--radius); background: var(--surface); text-align: center; }
.studio-page .ui-first-stream-plus { color: var(--orange); font-size: 40px; line-height: 1; }
.studio-page .ui-empty-streams h2 { margin: 10px 0; font-size: 28px; }
.studio-page .ui-empty-streams p { max-width: 440px; margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
/* D. Shared dialogs, fields, slots and scheduling */
.studio-page.ui-modal-open { overflow: hidden; }
.studio-page .ui-modal-backdrop { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; background: #080b0ee6; backdrop-filter: blur(8px); }
.studio-page .ui-modal { position: relative; width: 100%; max-width: 500px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 24px; border: 1px solid #ffffff20; border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: 0 24px 100px #0005; }
.studio-page .ui-modal-close { position: absolute; top: 16px; right: 16px; z-index: 5; display: grid; place-items: center; width: 36px; height: 36px; min-height: 0; padding: 0; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); font-size: 24px; font-weight: 400; }
.studio-page .ui-modal-header { margin: 0 28px 24px 0; }
.studio-page .ui-modal-header h2 { margin: 10px 0 12px; font-size: 27px; font-weight: 600; letter-spacing: -.035em; line-height: 1.15; }
.studio-page .ui-modal-header p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.studio-page .ui-modal-kicker { color: var(--orange-deep); font: 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.studio-page .ui-form { display: grid; gap: 20px; }
.studio-page .ui-field { display: grid; gap: 9px; min-width: 0; color: var(--ink); font-size: 14px; }
.studio-page :is(.ui-field small, .ui-file-picker small, .ui-replacement-note) { display: block; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.studio-page :is(.ui-field input:not([type="radio"]), .ui-field select, .ui-field textarea, .ui-custom-select-btn) { width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid #ffffff25; border-radius: var(--radius); background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.4; }
.studio-page input::placeholder { color: #858d97; opacity: 1; }
.studio-page .ui-secret-input { display: flex; gap: 8px; min-width: 0; }
.studio-page .ui-secret-input input { flex: 1; }
.studio-page .ui-secret-input button { min-width: 62px; padding: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--orange-deep); font-size: 13px; }
.studio-page .ui-file-picker { display: flex; position: relative; align-items: center; gap: 16px; min-height: 100px; padding: 20px; border: 1px dashed #ff914d60; border-radius: var(--radius); background: #ff914d08; cursor: pointer; }
.studio-page .ui-file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.studio-page .ui-file-picker:focus-within { outline: 2px solid var(--orange); outline-offset: 3px; }
.studio-page .ui-file-picker strong { display: block; margin-bottom: 6px; font-size: 15px; overflow-wrap: anywhere; }
.studio-page .ui-file-icon { padding: 12px 8px; border: 1px solid #ff914d40; border-radius: var(--radius); color: var(--orange-deep); font: 12px/1 var(--mono); }
.studio-page :is(.ui-form-actions, .ui-confirm-actions, .ui-notice-actions) { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.studio-page :is(.ui-form-error, .app-auth-error) { padding: 12px 14px; border: 1px solid #ff858540; border-radius: var(--radius); background: #ff85850a; color: var(--danger); font-size: 14px; line-height: 1.6; }
.studio-page :is(.ui-command-message, .ui-replacement-ready, .app-studio-billing-note) { margin: 0 0 16px; padding: 12px 14px; border: 1px solid #ff914d35; border-radius: var(--radius); background: #ff914d08; color: var(--orange-deep); font-size: 14px; line-height: 1.6; }
.studio-page .ui-settings-section { display: grid; gap: 18px; }
.studio-page .ui-settings-section-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.studio-page .ui-settings-section-head > span { font: 12px/1 var(--mono); color: var(--orange); }
.studio-page .ui-settings-section-head :is(strong, small) { display: block; font-size: 14px; line-height: 1.6; }
.studio-page .ui-settings-section-head small { color: var(--ink-soft); font-size: 12px; }
.studio-page :is(.ui-settings-meta-grid, .ui-manage-slots-grid, .ui-stat-grid) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-block: 20px; }
.studio-page :is(.ui-stream-meta-row, .ui-manage-slots-grid > div, .ui-stat-grid > div) { display: grid; align-content: start; gap: 8px; font-size: 14px; overflow-wrap: anywhere; }
.studio-page :is(.ui-stream-meta-row > span, .ui-manage-slots-grid span, .ui-stat-grid span) { color: var(--ink-soft); font-size: 12px; }
.studio-page .ui-manage-slots-grid > div { padding: 16px; border: 1px solid var(--studio-border); border-radius: var(--radius); background: var(--paper); }
.studio-page .ui-manage-slots-grid strong { font-size: 28px; font-weight: 500; }
.studio-page .ui-slot-stepper { display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; gap: 8px; }
.studio-page .ui-slot-stepper button { border: 1px solid var(--line); background: var(--paper); color: var(--orange); font-size: 22px; }
.studio-page .ui-slot-stepper input { text-align: center; }
.studio-page .ui-price-before-coupon { color: var(--ink-soft); text-decoration: line-through; font-size: 14px; }
.studio-page .ui-price-after-coupon { color: var(--orange-deep); }
/* Native-backed select menus retain the engine's keyboard/position handling. */
.studio-page .ui-native-select { display: none; }
.studio-page .ui-custom-select { position: relative; min-width: 0; }
.studio-page .ui-stream-filter-select { min-width: 0; width: 180px; flex: 0 0 180px; }
.studio-page .ui-custom-select-btn { min-height: 52px; display: flex; align-items: center; gap: 10px; text-align: left; font-size: 14px; }
.studio-page .ui-custom-select-value { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-page .ui-custom-select-options { display: none; position: fixed; top: var(--ui-select-top,auto); bottom: var(--ui-select-bottom,auto); left: var(--ui-select-left,0); width: var(--ui-select-width,auto); max-height: var(--ui-select-max-height,300px); overflow-y: auto; z-index: 400; padding: 6px; border: 1px solid #ffffff25; border-radius: var(--radius); background: #20262c; box-shadow: 0 12px 40px #0006; }
.studio-page .ui-custom-select-options-portal { display: block; }
.studio-page .ui-custom-select-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; background: transparent; color: var(--ink); text-align: left; font-size: 14px; }
.studio-page .ui-custom-select-option:is(:hover,.ui-selected) { background: #ff914d12; color: var(--orange-deep); }
.studio-page .ui-choice-group { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.studio-page .ui-choice-card { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: 14px; cursor: pointer; }
.studio-page .ui-choice-card input { accent-color: var(--orange); }
.studio-page .ui-schedule-picker-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.studio-page .ui-schedule-picker-fields label { display: grid; min-width: 0; gap: 8px; font-size: 12px; color: var(--ink-soft); }
.studio-page .ui-schedule-picker-grid { display: grid; gap: 18px; }
.studio-page .ui-schedule-picker-arrow { color: var(--orange-deep); font-size: 12px; line-height: 1.5; }
.studio-page .ui-time-disabled { opacity: .45; pointer-events: none; }

.studio-page .ui-add-stream-modal .ui-modal-header { padding-bottom: 18px; border-bottom: 1px solid var(--studio-border); }
.studio-page .ui-add-stream-modal .ui-form { gap: 0; }
.studio-page .ui-add-stream-modal .ui-field { padding: 16px 0; border-bottom: 1px solid var(--line); }
.studio-page .ui-add-stream-modal .ui-file-picker { margin-block: 18px; }
.studio-page .ui-add-stream-modal .ui-form-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 0; border: 0; }
/* E. Live Control — canonical preview overlay and action panel. */
.studio-page .ui-live-control-modal { width: min(100%,660px); max-width: 660px; padding: 0; }
.studio-page .ui-live-control-header { position: sticky; top: 0; z-index: 5; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px 16px 24px; border-bottom: 1px solid var(--studio-border); background: var(--surface); }
.studio-page .ui-live-control-header .ui-modal-close { position: static; flex: 0 0 40px; width: 40px; height: 40px; }
.studio-page .ui-live-control-header .ui-modal-kicker { display: inline-flex; align-items: center; gap: 9px; }
.studio-page .ui-live-control-header .ui-modal-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px #ff914d1f; }
.studio-page :is(.ui-live-control,.ui-live-control-grid,.ui-live-control-panel) { display: grid; min-width: 0; }
.studio-page .ui-live-control-preview { min-width: 0; padding: 18px; }
.studio-page .ui-stream-preview { position: relative; width: 100%; min-height: 430px; overflow: hidden; border: 1px solid var(--studio-border); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.studio-page .ui-stream-preview-launch { position: absolute; inset: 0; z-index: 2; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.studio-page .ui-stream-preview-player { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: contain; background: #080b0e; }
.studio-page .ui-stream-preview-playing .ui-stream-preview-launch { display: none; }
.studio-page .ui-stream-preview-loading-state .ui-stream-preview-launch { opacity: .3; pointer-events: none; }
.studio-page .ui-stream-preview-grid { position: absolute; inset: 0; pointer-events: none; }
.studio-page .ui-stream-preview-info { position: absolute; top: 18px; right: 18px; z-index: 3; width: min(250px,calc(100% - 36px)); display: grid; gap: 8px; color: var(--ink); text-align: left; }
.studio-page .ui-stream-preview-meta { display: grid; margin: 0; border: 1px solid var(--studio-border); border-radius: var(--radius); overflow: hidden; background: #171b20ed; font: 11px/1.35 var(--mono); }
.studio-page .ui-stream-preview-meta span { min-width: 0; width: 100%; display: grid; grid-template-columns: 50px minmax(0,1fr); align-items: start; gap: 8px; padding: 8px 10px; overflow-wrap: anywhere; }
.studio-page .ui-stream-preview-meta span + span { border-top: 1px solid var(--studio-border); }
.studio-page .ui-stream-preview-meta small { color: var(--ink-soft); font-size: 9px; text-transform: uppercase; }
.studio-page .ui-stream-preview-meta strong { min-width: 0; font-size: 9px; font-weight: 600; }
.studio-page .ui-live-control-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--studio-border); border-radius: var(--radius); overflow: hidden; background: #171b20ed; }
.studio-page .ui-live-control-facts article { min-width: 0; min-height: 54px; display: grid; align-content: center; gap: 4px; padding: 9px 10px; border-right: 1px solid var(--studio-border); border-bottom: 1px solid var(--studio-border); }
.studio-page .ui-live-control-facts article:nth-child(2n) { border-right: 0; }
.studio-page .ui-live-control-facts article:nth-last-child(-n+2) { border-bottom: 0; }
.studio-page .ui-live-control-facts small { color: var(--ink-soft); font: 9px/1.3 var(--mono); text-transform: uppercase; }
.studio-page .ui-live-control-facts strong { min-width: 0; display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; font-size: 11px; line-height: 1.25; }
.studio-page .ui-live-control-facts i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #8ee6ad; }
.studio-page .ui-live-control-facts i[data-tone="error"], .studio-page .ui-live-control-connection > i[data-tone="error"] { background: var(--danger); }
.studio-page .ui-live-control-facts i[data-tone="working"], .studio-page .ui-live-control-connection > i[data-tone="working"] { background: var(--orange); }
.studio-page .ui-live-control-connection { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 2px 8px; margin: 0; padding: 9px 10px; border: 1px solid var(--studio-border); border-radius: var(--radius); background: #171b20ed; text-align: left; }
.studio-page .ui-live-control-connection > i { grid-row: 1 / span 2; width: 8px; height: 8px; border-radius: 50%; background: #8ee6ad; }
.studio-page .ui-live-control-connection strong { min-width: 0; overflow-wrap: anywhere; font-size: 11px; line-height: 1.25; }
.studio-page .ui-live-control-connection span { min-width: 0; overflow-wrap: anywhere; color: var(--ink-soft); font: 9px/1.25 var(--mono); }
.studio-page .ui-stream-preview-copy { position: absolute; right: 22px; bottom: 22px; left: 22px; display: grid; gap: 3px; }
.studio-page .ui-stream-preview-copy strong { font-size: clamp(24px,3vw,34px); font-weight: 600; overflow-wrap: anywhere; }
.studio-page .ui-stream-preview-copy small { color: var(--ink-soft); font-size: 12px; }
.studio-page .ui-stream-live-flag { position: absolute; top: 12px; left: 12px; padding: 5px 8px; border-radius: var(--radius); background: #8ee6ad18; color: #8ee6ad; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.studio-page .ui-live-control-panel { padding: 18px; border-top: 1px solid var(--studio-border); background: var(--studio-panel); }
.studio-page .ui-live-control-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.studio-page .ui-live-control-actions button { min-width: 0; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--studio-border); border-radius: var(--radius); background: transparent; color: var(--ink); font-size: 12px; font-weight: 800; }
.studio-page .ui-live-control-actions button:hover { border-color: var(--orange); background: #ff914d0b; }
.studio-page .ui-live-control-actions .ui-stream-primary-action { border-color: var(--orange); background: var(--orange); color: #191512; }
.studio-page .ui-live-control-modal :is(.ui-replacement-ready,.ui-replacement-processing) { margin: 0 0 14px; }
.studio-page :is(.ui-stream-preview-loading,.ui-stream-preview-error) { position: absolute; right: 14px; bottom: 14px; left: 14px; z-index: 4; margin: 0; padding: 10px 12px; border-radius: var(--radius); background: #101316ed; font-size: 14px; line-height: 1.45; }
.studio-page .ui-stream-preview-loading { display: flex; align-items: center; gap: 10px; min-height: 54px; }
.studio-page .ui-stream-preview-error { color: var(--danger); }
/* F. Uploads, requests and secure billing */
.studio-page :is(.app-section-loader, .ui-modal-loading, .ui-delete-loading, .app-billing-loader) { display: grid; justify-items: center; align-content: center; gap: 18px; padding: 32px 16px; text-align: center; font-size: 15px; line-height: 1.6; }
.studio-page .app-billing-loader { position: fixed; inset: 0; z-index: 500; background: #080b0ef5; }
.studio-page .app-spinner { width: 28px; height: 28px; border: 2px solid #ff914d25; border-top-color: var(--orange); border-radius: 50%; animation: studio-spin .8s linear infinite; }
.studio-page .ui-progress { height: 6px; margin-block: 20px; overflow: hidden; border-radius: var(--radius); background: #ffffff12; }
.studio-page .ui-progress-bar { height: 100%; width: 0; background: var(--orange); transition: width .2s; }
.studio-page .ui-upload-overlay-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
.studio-page .ui-upload-overlay .ui-modal > strong { display: block; margin-top: 20px; font-size: 22px; }
.studio-page .ui-upload-overlay p { color: var(--ink-soft); font-size: 14px; line-height: 1.65; }
.studio-page .app-status-toast { position: fixed; z-index: 600; bottom: 24px; right: 24px; max-width: min(440px,calc(100% - 32px)); padding: 20px 24px; border: 1px solid #ff914d65; border-radius: var(--radius); background: #20262c; color: var(--ink); box-shadow: 0 12px 40px #0005; font-size: 15px; }
.studio-page .app-status-toast-success { border-color: #8ee6ad65; }
.studio-page .app-status-toast-error { border-color: #ff858565; }
.studio-page .app-status-toast button { position: absolute; right: 8px; top: 8px; border: 0; background: transparent; color: var(--ink-soft); }

/* G. Existing interactive Studio guide */
.studio-page .ui-studio-guide-modal { width:min(calc(100% - 32px),700px); max-width:700px; padding:0; }
.studio-page .ui-studio-guide-header {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:70px;
  margin:0;
  padding:14px 76px 14px 24px;
  border-radius:var(--radius) var(--radius) 0 0;
  background:var(--studio-panel);
  color:var(--ink);
}
.studio-page .ui-studio-guide-header h2 { margin:0; color:var(--ink); font-size:22px; line-height:1.15; }
.studio-page .ui-studio-guide-demo-badge { flex:0 0 auto; padding:4px 7px; border:1px solid var(--orange); border-radius:var(--radius); color:var(--orange); font:700 9px/1 monospace; }
.studio-page .ui-studio-guide-screen-reader { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.studio-page #uiStudioGuideClose { top:15px; right:22px; border-color:rgba(255,253,248,.45); background:transparent; color:var(--ink); }
.studio-page #uiStudioGuideClose:hover,
.studio-page #uiStudioGuideClose:focus-visible { border-color:var(--orange); background:var(--orange); color:var(--ink); }
.studio-page .ui-studio-guide-steps {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  margin:8px 24px 12px;
  padding:0;
  list-style:none;
}
.studio-page .ui-studio-guide-steps li { min-width:0; }
.studio-page .ui-studio-guide-steps button {
  min-width:0;
  width:100%;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:8px 5px;
  border:0;
  border-bottom:2px solid var(--line);
  border-radius:0;
  background:transparent;
  color:var(--ink);
  box-shadow:none;
  font-size:12px;
  cursor:pointer;
}
.studio-page .ui-studio-guide-steps button span {
  font-family:monospace;
  font-size:11px;
  color:var(--orange-deep);
}
.studio-page .ui-studio-guide-steps button[aria-current="step"] { border-color:var(--orange); color:var(--ink); }
.studio-page .ui-studio-guide-steps button:hover:not([aria-current="step"]) { border-color:var(--orange); }
.studio-page .ui-studio-guide-steps button:focus-visible,
.studio-page .ui-studio-guide-playback button:focus-visible { outline:2px solid var(--orange-deep); outline-offset:2px; }
.studio-page .ui-studio-guide-demo { overflow:hidden; margin:0 24px; border:1px solid var(--studio-border); border-radius:var(--radius); background:var(--surface); }
.studio-page .ui-studio-guide-demo-screen { height:290px; overflow:hidden; padding:12px; background:var(--paper); }
.studio-page .ui-studio-guide-scene { width:100%; height:100%; overflow:hidden; }
.studio-page .ui-studio-guide-scene[hidden],
.studio-page .ui-studio-guide-scene [hidden] { display:none !important; }
.studio-page .ui-studio-guide-scene > div { width:100%; height:100%; }
.studio-page #uiStudioGuideFormSnapshot { overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.studio-page .ui-studio-guide-scene .ui-modal { width:100%; max-width:none; max-height:none; padding:14px; border:1px solid var(--studio-border); background:var(--paper); box-shadow:none; }
.studio-page .ui-studio-guide-scene .ui-modal-close { display:none; }
.studio-page .ui-studio-guide-scene .ui-modal-header { margin-right:0; padding-bottom:10px; }
.studio-page .ui-studio-guide-scene .ui-modal-header h2 { font-size:20px; }
.studio-page .ui-studio-guide-scene .ui-modal-header p { font-size:12px; }
.studio-page .ui-studio-guide-scene .ui-add-stream-modal .ui-field { padding:9px 0; }
.studio-page .ui-studio-guide-scene .ui-add-stream-modal .ui-field input { min-height:40px; font-size:13px; }
.studio-page .ui-studio-guide-scene .ui-add-stream-modal .ui-file-picker { min-height:70px; margin:10px 0; padding:9px; }
.studio-page .ui-studio-guide-scene .ui-studio-guide-focused-field input { border-color:var(--orange); box-shadow:0 0 0 3px rgba(255,92,0,.15); }
.studio-page #uiStudioGuideFormSnapshot .ui-field,
.studio-page #uiStudioGuideFormSnapshot .ui-file-picker,
.studio-page #uiStudioGuideFormSnapshot .ui-form-actions { position:relative; }
.studio-page #uiStudioGuideFormSnapshot .ui-studio-guide-focused-field::after {
  content:"↙";
  position:absolute;
  z-index:2;
  top:5px;
  right:6px;
  display:grid;
  place-items:center;
  width:23px;
  height:23px;
  border:1px solid var(--studio-border);
  border-radius:50%;
  background:var(--orange);
  color:var(--ink);
  font:800 16px/1 sans-serif;
  pointer-events:none;
  animation:studio-guide-pointer 1s ease-in-out infinite;
}
.studio-page #uiStudioGuideFormSnapshot .ui-file-picker.ui-studio-guide-focused-field { border-color:var(--orange); box-shadow:0 0 0 3px rgba(255,92,0,.15); }
.studio-page #uiStudioGuideFormSnapshot .ui-form-actions.ui-studio-guide-focused-field .btn-primary { box-shadow:0 0 0 3px rgba(255,92,0,.22); }
.studio-page #uiStudioGuideFormSnapshot .ui-form-actions.ui-studio-guide-focused-field::after { top:auto; bottom:7px; }
.studio-page #uiStudioGuideActionSnapshot { display:grid; align-content:center; }
.studio-page #uiStudioGuideActionSnapshot .stx-workspace-actions { width:100%; min-height:0; gap:18px; padding:16px; }
.studio-page #uiStudioGuideActionSnapshot .stx-workspace-actions button { flex-basis:0; min-height:42px; }
.studio-page .ui-studio-guide-demo[data-playing="true"] #uiStudioGuideActionSnapshot .stx-header-add-stream { animation:studio-guide-highlight 1.5s ease-in-out infinite; }
.studio-page #uiStudioGuideUploadSnapshot { display:grid; align-content:center; }
.studio-page #uiStudioGuideUploadSnapshot .ui-modal { gap:8px; }
.studio-page #uiStudioGuideUploadSnapshot .app-spinner { width:28px; height:28px; }
.studio-page #uiStudioGuideUploadSnapshot .ui-upload-overlay-progress { padding:5px; }
.studio-page #uiStudioGuideUploadSnapshot .ui-stat-grid span { font-size:10px; }
.studio-page #uiStudioGuideUploadSnapshot .ui-stat-grid strong { font-size:12px; }
.studio-page #uiStudioGuideStreamSnapshot { display:grid; place-items:center; }
.studio-page #uiStudioGuideStreamSnapshot > div { width:min(100%,340px); }
.studio-page #uiStudioGuideStreamSnapshot .ui-stream-card { overflow:hidden; box-shadow:none; transform:none; }
.studio-page #uiStudioGuideStreamSnapshot .ui-stream-poster { min-height:170px; padding:14px; }
.studio-page #uiStudioGuideStreamSnapshot .ui-stream-poster .ui-stream-name { font-size:20px; }
.studio-page #uiStudioGuideStreamSnapshot .ui-stream-poster p { font-size:12px; }
.studio-page #uiStudioGuideStreamSnapshot .ui-stream-head-meta { font-size:10px; }
.studio-page #uiStudioGuideStreamSnapshot .ui-live-control-modal { overflow:hidden; border:1px solid var(--studio-border); background:var(--paper); color:var(--ink); }
.studio-page #uiStudioGuideStreamSnapshot .ui-live-control-header { min-height:34px; padding:5px 10px; }
.studio-page #uiStudioGuideStreamSnapshot .ui-live-control-header .ui-modal-kicker { color:var(--orange); }
.studio-page #uiStudioGuideStreamSnapshot .ui-stream-preview { min-height:138px; }
.studio-page #uiStudioGuideStreamSnapshot .ui-stream-preview-info { display:none; }
.studio-page #uiStudioGuideStreamSnapshot .ui-stream-preview-copy strong { font-size:18px; }
.studio-page #uiStudioGuideStreamSnapshot .ui-live-control-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.studio-page #uiStudioGuideStreamSnapshot .ui-live-control-actions button { min-height:37px; padding:5px; border-top:1px solid rgba(255,255,255,.24); font-size:10px; }
.studio-page .ui-studio-guide-demo[data-playing="true"] #uiStudioGuideStreamSnapshot .ui-stream-primary-action { animation:studio-guide-highlight 1.5s ease-in-out infinite; }
.studio-page .ui-studio-guide-demo[data-playing="false"] * { animation-play-state:paused !important; }
.studio-page .ui-studio-guide-playback { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:9px 24px 0; }
.studio-page .ui-studio-guide-playback p { margin:0; color:var(--muted); font-size:12px; line-height:1.4; }
.studio-page .ui-studio-guide-playback > div { display:flex; flex:0 0 auto; gap:5px; }
.studio-page .ui-studio-guide-playback button { min-height:40px; padding:7px 10px; border:1px solid var(--line); background:var(--surface); color:var(--ink); font-size:11px; font-weight:800; cursor:pointer; }
.studio-page .ui-studio-guide-playback button:hover { border-color:var(--orange); }
.studio-page .ui-studio-guide-note {
  display:flex;
  gap:9px;
  margin:12px 24px 0;
  padding:9px 11px;
  border-left:3px solid var(--orange);
  background:rgba(255,92,0,.08);
  font-size:11px;
  line-height:1.4;
}
.studio-page .ui-studio-guide-note strong { flex:0 0 auto; color:var(--orange-deep); }
.studio-page .ui-studio-guide-note[hidden] { display:none !important; }
.studio-page .ui-studio-guide-actions {
  position:sticky;
  bottom:0;
  display:flex;
  justify-content:flex-end;
  margin:6px 0 0;
  padding:12px 24px 16px;
  background:var(--paper);
}
.studio-page .ui-studio-guide-actions button { min-height:48px; min-width:170px; }
@keyframes studio-guide-highlight { 50% { box-shadow:0 0 0 5px rgba(255,92,0,.18); } }
@keyframes studio-guide-pointer { 50% { transform:translate(-3px,3px); } }

@keyframes studio-spin { to { transform: rotate(360deg); } }
@keyframes studio-broadcast { 0% { opacity: .7; transform: scale(.65); } 100% { opacity: 0; transform: scale(2); } }
@keyframes studio-wave { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes studio-relay { 50% { opacity: .45; transform: translate(-50%,-50%) scale(.9); } }

/* H. Account & Billing — shared controls above, unique layouts below. */
.studio-page .app-billing-card { width: min(100%, 390px); display: grid; justify-items: center; gap: 12px; padding: 30px; text-align: center; border: 1px solid var(--studio-border); background: var(--surface); box-shadow: none; border-radius: var(--radius); }
.studio-page .app-billing-card small { margin: 0; color: var(--muted); font-size: 0.875em; }
.studio-page .platform-account-menu > .app-account-resources { display: none; }
.studio-page .app-account-page { width: min(920px, 100%); display: grid; gap: 22px; margin: 0 auto; background: var(--surface); color: var(--ink); }
.studio-page .app-account-heading { margin-bottom: 6px; }
.studio-page .app-account-identity { padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.studio-page .app-account-security { padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: none; display: grid; gap: 24px; }
.studio-page .app-account-danger { padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: none; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-color: rgba(185, 32, 49, .2); }
.studio-page .app-account-identity div { display: grid; gap: 8px; }
.studio-page .app-account-security-head { display: grid; gap: 8px; }
.studio-page .app-account-password-grid label { display: grid; gap: 8px; }
.studio-page .app-account-identity small { color: var(--muted); font-size: .78em; font-weight: 850; text-transform: uppercase; }
.studio-page .app-account-password-grid label > span { color: var(--muted); font-size: .78em; font-weight: 850; text-transform: uppercase; }
.studio-page .app-account-identity strong { overflow-wrap: anywhere; font-size: 1.08em; }
.studio-page .app-account-danger > div { display: grid; gap: 8px; }
.studio-page .app-account-danger h2 { margin: 0; }
.studio-page .app-account-danger p { margin: 0; max-width: 650px; color: var(--muted); line-height: 1.55; }
.studio-page .app-account-danger .btn-danger { flex: 0 0 auto; }
.studio-page .app-account-closure-modal .ui-modal { width: min(580px, 100%); }
.studio-page .app-account-closure-warning { display: grid; gap: 7px; margin-top: 20px; padding: 15px 16px; border: 1px solid rgba(185, 32, 49, .18); border-radius: var(--radius); background: #fff5f6; }
.studio-page .app-account-closure-case { display: grid; gap: 7px; margin-top: 20px; padding: 15px 16px; border: 1px solid rgba(185, 32, 49, .18); border-radius: var(--radius); background: #fff5f6; }
.studio-page .app-account-closure-warning strong { color: var(--red); }
.studio-page .app-account-closure-warning span { color: var(--muted); line-height: 1.5; }
.studio-page .app-account-closure-case span { color: var(--muted); line-height: 1.5; }
.studio-page .app-account-closure-case strong { overflow-wrap: anywhere; font-size: 1.05em; }
@media (max-width: 620px) {
.studio-page .app-account-danger { align-items: stretch; flex-direction: column; }
}
@media (max-width: 620px) {
.studio-page .app-account-danger .btn-danger { width: 100%; }
}
.studio-page .app-account-security-head h2 { margin: 0; }
.studio-page .app-account-security-head p { margin: 0; color: var(--muted); line-height: 1.55; }
.studio-page .app-account-message { margin: 0; min-height: 22px; color: var(--green); font-weight: 750; }
.studio-page .app-account-password-grid { width: min(560px, 100%); display: grid; gap: 15px; }
.studio-page .app-account-password-grid input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.studio-page .app-account-password-grid input:focus { border-color: rgba(255, 121, 0, .65); box-shadow: none; outline: 0; }
.studio-page .app-account-message.error { color: var(--red); }
.studio-page .app-billing-page { width: 100%; max-width: 1040px; margin-inline: auto; background: var(--surface); color: var(--ink); }
.studio-page .app-page-heading { display: grid; gap: 8px; margin-bottom: 24px; }
.studio-page .app-page-heading > div > span { color: #c84700; font-family: "SFMono-Regular",Consolas,"Liberation Mono",monospace; font-size: 10px; font-weight: 600; text-transform: uppercase; }
.studio-page .app-card-kicker { color: var(--orange-deep); font-size: 0.875em; font-weight: 900; text-transform: uppercase; }
.studio-page .app-page-heading h1 { max-width: 980px; margin: 5px 0 0; font-size: 3.4em; line-height: .98; }
.studio-page .app-page-heading p { max-width: 780px; margin: 9px 0 0; color: var(--muted); font-size: 0.875em; line-height: 1.55; }
.studio-page .app-billing-account { padding: 22px; min-height: 260px; display: grid; gap: 22px; background: radial-gradient(circle at 90% 0, rgba(255, 121, 0, .11), transparent 18rem),
    var(--surface); }
.studio-page .app-billing-invoices { padding: 22px; }
.studio-page .app-billing-section-head h2 { margin: 2px 0 0; font-size: 1.25em; }
.studio-page .app-billing-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.studio-page .app-billing-inline-loader { min-height: 230px; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--muted); font-size: 0.875em; }
.studio-page .app-billing-status { padding: 5px 8px; border: 1px solid rgba(31, 166, 75, .22); border-radius: var(--radius); background: var(--green-soft); color: #137737; font-size: 0.875em; font-weight: 900; text-transform: uppercase; }
.studio-page .app-billing-invoice-status { padding: 5px 8px; border: 1px solid rgba(31, 166, 75, .22); border-radius: var(--radius); background: var(--green-soft); color: #137737; font-size: 0.875em; font-weight: 900; text-transform: uppercase; }
.studio-page .app-billing-status[data-status="none"] { border-color: var(--line); background: var(--soft); color: var(--muted); }
.studio-page .app-billing-invoice-status[data-status="void"] { border-color: var(--line); background: var(--soft); color: var(--muted); }
.studio-page .app-empty-state { min-height: 170px; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--muted); text-align: center; margin-top: 14px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: none; }
.studio-page .app-empty-state strong { color: var(--ink); font-size: 0.875em; }
.studio-page .app-empty-state span { max-width: 360px; font-size: 0.875em; line-height: 1.5; }
.studio-page .app-billing-dashboard { display: grid; gap: 16px; }
.studio-page .app-billing-dashboard[hidden] { display: none; }
.studio-page .app-billing-account-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.studio-page .app-billing-plan-panel { min-width: 0; display: grid; align-content: space-between; gap: 18px; padding: 22px; }
.studio-page .app-billing-payment-panel { min-width: 0; display: grid; align-content: space-between; gap: 18px; padding: 22px; border-left: 1px solid var(--line); background: rgba(248, 249, 251, .72); }
.studio-page .app-billing-payment-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.studio-page .app-billing-payment-head h3 { margin: 2px 0 0; font-size: 1.125em; }
.studio-page .app-billing-card-mark { min-width: 52px; min-height: 31px; display: grid; place-items: center; border-radius: var(--radius); background: var(--ink); color: var(--ink); font-size: 0.875em; font-weight: 900; }
.studio-page .app-billing-price { display: flex; align-items: baseline; gap: 8px; margin: -7px 0 0; }
.studio-page .app-billing-price strong { font-size: 2.625em; }
.studio-page .app-billing-price span { color: var(--muted); font-size: 0.875em; }
.studio-page .app-billing-payment-detail span { color: var(--muted); font-size: 0.875em; }
.studio-page .app-billing-coupon-trigger { width: max-content; max-width: 100%; display: flex; align-items: center; gap: 10px; margin-top: -9px; padding: 0; border: 0; background: transparent; color: var(--orange-deep); text-align: left; cursor: pointer; }
.studio-page .app-billing-coupon-trigger[hidden] { display: none; }
.studio-page .app-billing-coupon-trigger strong { font-size: .875em; }
.studio-page .app-billing-coupon-trigger > span { color: var(--muted); font-size: .75em; font-weight: 750; }
.studio-page .app-billing-coupon-trigger:hover strong { text-decoration: underline; }
.studio-page .app-billing-coupon-trigger:focus-visible strong { text-decoration: underline; }
.studio-page .app-billing-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.studio-page .app-billing-facts > div { display: grid; gap: 5px; padding: 15px 12px 0; border-left: 1px solid var(--line); }
.studio-page .app-billing-facts > div:first-child { padding-left: 0; border-left: 0; }
.studio-page .app-billing-facts span { color: var(--muted); font-size: 0.875em; font-weight: 750; }
.studio-page .app-billing-facts strong { font-size: 0.875em; }
.studio-page .app-billing-payment-detail { display: grid; gap: 5px; }
.studio-page .app-billing-payment-detail strong { font-size: 1.125em; }
.studio-page .app-billing-payment-panel .btn-primary { width: 100%; justify-content: space-between; }
.studio-page .app-billing-account-actions { display: flex; align-items: center; min-height: 20px; }
.studio-page .app-billing-cancel-button { width: max-content; padding: 0; border: 0; background: transparent; color: #a23a32; font-size: 0.875em; font-weight: 800; cursor: pointer; }
.studio-page .app-billing-coupon-modal { padding: 24px; }
.studio-page .app-billing-coupon-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); }
.studio-page .app-billing-coupon-modal-content { display: grid; gap: 12px; margin: 20px 0; }
.studio-page .app-billing-coupon-offers { display: grid; gap: 12px; }
.studio-page .app-billing-coupon-offer { display: grid; gap: 4px; padding: 16px; border: 1px solid rgba(255, 121, 0, .2); border-radius: var(--radius); background: var(--orange-soft); }
.studio-page .app-billing-coupon-offer > span:first-child { color: var(--orange-deep); font-size: .75em; font-weight: 900; text-transform: uppercase; }
.studio-page .app-billing-coupon-offer strong { font-size: 1.125em; }
.studio-page .app-billing-coupon-offer-term { color: var(--ink); font-size: .875em; font-weight: 800; }
.studio-page .app-billing-coupon-offer small { margin-top: 5px; color: var(--muted); font-size: .75em; }
.studio-page .app-billing-coupon-offer code { color: var(--ink); font-family: inherit; font-weight: 850; }
.studio-page .app-billing-coupon-invoice-details { display: grid; margin: 0; border-top: 1px solid var(--line); }
.studio-page .app-billing-coupon-invoice-details > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: .875em; }
.studio-page .app-billing-coupon-invoice-details dt { margin: 0; color: var(--muted); }
.studio-page .app-billing-coupon-invoice-details dd { margin: 0; color: var(--ink); font-weight: 850; white-space: nowrap; }
.studio-page .app-billing-coupon-savings-row dd { color: #11743a; }
.studio-page .app-billing-coupon-total-row { font-weight: 900; }
.studio-page .app-billing-cancel-button:hover { color: var(--red); text-decoration: underline; }
.studio-page .app-billing-cancel-modal { padding: 24px; }
.studio-page .app-billing-cancel-modal .ui-modal { width: min(660px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overscroll-behavior: contain; scrollbar-gutter: stable; }
.studio-page .app-billing-cancel-form { display: grid; gap: 18px; margin-top: 18px; }
.studio-page .app-billing-cancel-form fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
.studio-page .app-billing-cancel-form legend { grid-column: 1 / -1; margin-bottom: 8px; color: var(--ink); font-size: 0.875em; font-weight: 800; }
.studio-page .app-billing-cancel-form fieldset label { min-height: 46px; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: #3e444a; font-size: 0.875em; cursor: pointer; }
.studio-page .app-billing-cancel-form fieldset label:hover { border-color: rgba(255, 121, 0, .4); background: #fffaf5; }
.studio-page .app-billing-cancel-form fieldset label:has(input:checked) { border-color: rgba(255, 121, 0, .65); background: var(--orange-soft); color: var(--ink); }
.studio-page .app-billing-cancel-form input { accent-color: var(--orange); }
.studio-page .app-billing-cancel-comment { display: grid; gap: 7px; }
.studio-page .app-billing-cancel-comment > span { font-size: 0.875em; font-weight: 800; }
.studio-page .app-billing-cancel-comment small { color: var(--muted); font-weight: 600; }
.studio-page .app-billing-cancel-comment textarea { min-height: 96px; padding: 14px 16px; resize: vertical; }
.studio-page .app-billing-cancel-warning { margin-top: 18px; padding: 18px; border: 1px solid rgba(255, 121, 0, .22); border-radius: var(--radius); background: linear-gradient(135deg, #fffaf5, var(--surface)); color: var(--muted); font-size: 0.875em; line-height: 1.5; }
.studio-page .app-billing-invoice-list { display: grid; margin-top: 15px; }
.studio-page .app-billing-invoice-row { min-height: 62px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(90px, auto) minmax(92px, auto); align-items: center; gap: 14px; border-top: 1px solid var(--line); }
.studio-page .app-billing-invoice-row > div { min-width: 0; display: grid; gap: 3px; }
.studio-page .app-billing-invoice-row > div strong { overflow: hidden; font-size: 0.875em; text-overflow: ellipsis; white-space: nowrap; }
.studio-page .app-billing-invoice-row > div span { color: var(--muted); font-size: 0.875em; }
.studio-page .app-billing-invoice-amount { font-size: 0.875em; text-align: right; }
.studio-page .app-billing-invoice-link { color: var(--orange-deep); font-size: 0.875em; font-weight: 820; text-align: right; }
@media (max-width: 960px) {
.studio-page .app-page-heading h1 { font-size: 3.25em; }
}
@media (max-width: 960px) {
.studio-page .app-billing-account-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
.studio-page .app-billing-payment-panel { border-top: 1px solid var(--line); border-left: 0; }
}
@media (max-width: 680px) {
.studio-page .platform-account-menu > .app-account-resources { display: flex; }
}
@media (max-width: 680px) {
.studio-page .app-page-heading h1 { font-size: 2.65em; }
}
@media (max-width: 680px) {
.studio-page .app-billing-coupon-modal { padding: max(12px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left)); }
}
@media (max-width: 680px) {
.studio-page .app-billing-cancel-modal { padding: max(12px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left)); }
}
@media (max-width: 680px) {
.studio-page .app-billing-coupon-dialog { width: 100%; max-height: calc(100dvh - 24px); border-radius: var(--radius); }
}
@media (max-width: 680px) {
.studio-page .app-billing-cancel-modal .ui-modal { width: 100%; max-height: calc(100dvh - 24px); border-radius: var(--radius); }
}
@media (max-width: 680px) {
.studio-page .app-billing-cancel-form fieldset { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
.studio-page .app-billing-invoice-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; padding-block: 12px; }
}
@media (max-width: 680px) {
.studio-page .app-billing-invoice-row > div strong { overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
}
@media (max-width: 680px) {
.studio-page .app-billing-invoice-amount { text-align: left; }
}
@media (max-width: 680px) {
.studio-page .app-billing-invoice-link { text-align: right; }
}
@media (max-width: 430px) {
.studio-page .app-page-heading h1 { font-size: 2.25em; }
}
@media (max-width: 430px) {
.studio-page .app-billing-account { padding: 17px; }
}
@media (max-width: 430px) {
.studio-page .app-billing-invoices { padding: 17px; }
}
@media (max-width: 430px) {
.studio-page .app-billing-plan-panel { padding: 17px; }
}
@media (max-width: 430px) {
.studio-page .app-billing-payment-panel { padding: 17px; }
}
@media (max-width: 430px) {
.studio-page .app-billing-facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 430px) {
.studio-page .app-billing-cancel-form fieldset { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 430px) {
.studio-page .app-billing-facts > div { padding: 10px 0; border-top: 1px solid var(--line); border-left: 0; }
}
@media (max-width: 430px) {
.studio-page .app-billing-facts > div:first-child { padding: 10px 0; border-top: 1px solid var(--line); border-left: 0; }
}

/* ==========================================================================
   15. AUTHENTICATION — email, account creation and code verification
   The same form layout and field contract are used at every step.
   ========================================================================== */
.auth-page { background: radial-gradient(ellipse at 50% 20%,#ff914d0b,transparent 60%),var(--paper); }
.auth-screen { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 40px 24px; }
.auth-card { width: min(100%,480px); }
.auth-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.auth-home { color: var(--ink-soft); font-size: 14px; text-underline-offset: 4px; }
.auth-home:hover { color: var(--ink); text-decoration: underline; }
.auth-content { padding: 32px; border: 1px solid #ffffff1c; border-radius: var(--radius); background: var(--surface); box-shadow: 0 24px 80px #0002; }
.auth-heading h1 { margin: 0; max-width: 360px; font-size: clamp(30px,4vw,38px); font-weight: 600; line-height: 1.1; letter-spacing: -.04em; }
.auth-heading p { margin: 16px 0 28px; color: var(--ink-soft); font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.auth-form { display: grid; gap: 14px; }
.auth-field { display: grid; gap: 10px; font-size: 14px; font-weight: 600; }
:is(.auth-field,.auth-code) input { width: 100%; min-width: 0; min-height: 54px; padding: 14px 16px; border: 1px solid #ffffff2a; border-radius: var(--radius); background: var(--paper); color: var(--ink); font: 16px/1.4 var(--sans); }
.auth-field input::placeholder { color: #8e98a3; }
.auth-field input:focus, .auth-code input:focus { outline: 2px solid var(--orange); outline-offset: 3px; }
.auth-code { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
.auth-code input { padding: 12px 0; text-align: center; font: 600 24px/1.2 var(--mono); }
:is(.auth-submit,.auth-secondary) { width: 100%; min-height: 52px; padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-size: 16px; font-weight: 700; transition: background .18s; }
.auth-submit { background: var(--orange); border-color: var(--orange); color: #191512; }
.auth-submit:hover { background: var(--orange-deep); }
.auth-secondary { background: transparent; color: var(--ink-soft); }
.auth-secondary:hover { background: #ffffff08; color: var(--ink); }
.auth-form :disabled { opacity: .6; cursor: wait; }
:is(.auth-error,.auth-message) { margin: 0; padding: 12px 14px; border: 1px solid #ff858540; border-radius: var(--radius); background: #ff858508; color: #ffadad; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.auth-message { color: #a8e3bd; border-color: #8ee6ad35; background: #8ee6ad08; }
.auth-terms { margin: 24px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.75; text-wrap: balance; }
.auth-terms a { color: var(--ink); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
/* ==========================================================================
   16. MEMBER GATEWAY, PROFILES, ERRORS & EMAIL PREFERENCES
   Public shells only; authenticated application controls remain protected.
   ========================================================================== */
.member-page > .app-playground { padding-top: 88px; min-height: calc(100vh - 88px); }
.member-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 24px; font-size: 14px; }
.member-links :is(a,button) { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink-soft); }
.member-links button { margin-left: auto; cursor: pointer; }
.app-content-loading { display: grid; justify-items: center; align-content: center; gap: 20px; min-height: calc(100vh - 88px); padding: 32px 24px; color: var(--ink-soft); text-align: center; }
.app-content-error p { max-width: 480px; margin: 0; line-height: 1.6; }
.member-page .app-content-loading .app-spinner { width: 32px; height: 32px; border: 2px solid #ff914d25; border-top-color: var(--orange); border-radius: 50%; animation: studio-spin .8s linear infinite; }
.profiles-page { width: min(calc(100% - 64px),var(--shell)); margin-inline: auto; padding-block: 160px 80px; }
.profiles-header { max-width: 760px; margin-bottom: 40px; }
.profiles-header h1 { margin: 0; font-size: clamp(48px,6vw,76px); line-height: 1.1; letter-spacing: -.05em; }
.profiles-header-copy p { color: var(--ink-soft); font-size: 18px; line-height: 1.7; }
.profiles-header-copy a { color: var(--orange-deep); }
.profiles-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.profile-card { min-width: 0; display: grid; gap: 32px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.profile-card-primary { border-color: #ff914d60; background: linear-gradient(135deg,#ff914d12,transparent),var(--surface); }
.profile-card-top { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-soft); font: 10px/1.5 var(--mono); }
.profile-card h2 { margin: 0 0 8px; font-size: 28px; }
.profile-card p { margin: 0; color: var(--ink-soft); line-height: 1.5; }
.profile-card-action { display: flex; justify-content: space-between; gap: 12px; color: var(--orange-deep); font-size: 14px; }
.profile-card-placeholder { color: var(--ink-soft); }
[class*="error-page-"] { padding-inline: 24px; }
.error-shell { width: min(100%,1180px); min-height: 100vh; margin-inline: auto; display: grid; grid-template-rows: auto 1fr; }
.error-topbar { display: flex; align-items: center; min-height: 92px; }
.error-brand { display: inline-flex; align-items: center; gap: 12px; }
.error-brand img { width: 48px; height: 48px; border-radius: var(--radius); }
.error-brand span { display: grid; gap: 4px; }
.error-brand strong { font-size: 18px; }
.error-brand small { color: var(--ink-soft); font-size: 12px; }
.error-card { align-self: center; padding-block: 64px; }
.error-card-copy { max-width: 720px; }
.error-eyebrow { color: var(--orange-deep); font: 12px/1.6 var(--mono); }
.error-code { margin: 16px 0; font-size: clamp(80px,16vw,160px); color: var(--orange); line-height: 1; }
.error-title { margin: 20px 0; font-size: clamp(42px,6vw,76px); font-weight: 600; line-height: 1.05; letter-spacing: -.04em; }
.error-message { max-width: 560px; color: var(--ink-soft); font-size: 18px; line-height: 1.65; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.error-action { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 20px; border: 1px solid var(--orange); border-radius: var(--radius); background: var(--orange); color: #191512; font-size: 14px; font-weight: 700; cursor: pointer; }
.error-action.secondary { border-color: #ffffff2a; background: transparent; color: var(--ink); }
body[data-page="unsubscribe"] { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 24px; }
.sai-unsubscribe-shell { width: min(100%,520px); }
.sai-unsubscribe-shell main { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sai-unsubscribe-shell img { width: 48px; height: 48px; border-radius: var(--radius); }
.sai-unsubscribe-shell h1 { font-size: 34px; font-weight: 600; line-height: 1.1; }
.sai-unsubscribe-shell p { color: var(--ink-soft); line-height: 1.65; }
.sai-unsubscribe-shell label { display: grid; gap: 10px; margin-top: 24px; font-size: 14px; }
.sai-unsubscribe-shell :is(select,textarea) { width: 100%; min-height: 50px; padding: 12px; border: 1px solid #ffffff2a; border-radius: var(--radius); background: var(--paper); color: var(--ink); font: 16px var(--sans); }
.sai-unsubscribe-shell textarea { min-height: 110px; resize: vertical; }
.sai-unsubscribe-shell button { width: 100%; min-height: 52px; margin-top: 24px; border: 1px solid var(--orange); background: var(--orange); color: #191512; font-weight: 700; cursor: pointer; }
.sai-unsubscribe-shell a { display: block; padding: 20px 0 0; text-align: center; font-size: 14px; }

/* ==========================================================================
   17. RESPONSIVE LAYOUTS — public pages and Studio, grouped by screen size
   ========================================================================== */
/* SMALL DESKTOP — 1100px */
@media (max-width:1100px) {
  .navigation { display: none; }
  .menu-button { display: inline-flex; }
  .header-content { grid-template-columns: 1fr auto; gap: 16px; }
  .account-links .account-button { padding-inline: 16px; }
  .hero { gap: 32px; padding-top: 160px; }
  .hero h1 { font-size: clamp(48px,5.3vw,60px); }
  .ideas-and-pricing { flex-direction: column; gap: 40px; }
  .channel-ideas { width: 100%; }
  .pricing { position: static; flex: auto; width: min(100%,640px); align-self: center; }
  .channel-grid { gap: 16px; }
  .channel-content { padding: 24px; }
  .channel-content h3 { font-size: 24px; }
}
/* TABLETS — 980px */
@media (max-width:980px) {
  .reading-layout { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .page-sidebar { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); align-items: start; }
  .page-contents { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 18px; max-height: none; overflow: visible; }
  .page-contents > strong { grid-column: 1 / -1; }
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-content { max-width: 760px; }
  .hero h1 { font-size: clamp(54px,7vw,72px); }
  .hero-art { max-width: 700px; justify-self: center; }
  .broadcast { height: clamp(260px,35vw,320px); }
  .platform-list { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .custom-rtmp { grid-column: span 2; }

}
/* STUDIO TABLETS — 900px */
@media (max-width:900px) {
  .studio-page .app-playground-page { width: min(calc(100% - 40px),720px); }
}
/* SHORT DESKTOP WINDOWS */
@media (min-width:1101px) and (max-height:700px) {
  .pricing { position: static; }
}
/* PHONES & SMALL TABLETS — 760px */
@media (max-width:760px) {
  .studio-workspace { padding-top: 74px; }
  .member-page > .app-playground { padding-top: 74px; }
  .app-content-loading { min-height: calc(100vh - 74px); min-height: calc(100dvh - 74px); }
  .profiles-page { width: calc(100% - 32px); padding-block: 120px 48px; }
  .profiles-grid { grid-template-columns: minmax(0,1fr); }
  .studio-loading { min-height: calc(100vh - 74px); min-height: calc(100dvh - 74px); }
  .container { width: min(calc(100% - 32px), var(--shell)); }
  .footer-content { grid-template-columns: minmax(0,1fr); padding-block: 56px; gap: 32px; }
  .founder-photo { width: min(100%,320px); }
  .footer-content h2 { font-size: clamp(34px,7vw,44px); }
  .footer-intro > p:not(.eyebrow) { font-size: 17px; }
  .footer-actions { width: 100%; display: grid; }
  .footer-bottom { grid-template-columns: 1fr; align-items: start; }
  .footer nav { justify-content: flex-start; }
  .header-content { width: min(calc(100% - 32px),var(--shell)); height: 74px; }
  .account-links { display: flex; }
  .account-links .studio-link { display: none; }
  .header-actions { gap: 8px; }
  .account-links .account-button { min-height: 44px; padding-inline: 10px; font-size: 13px; }
  .menu-button { min-width: 62px; height: 44px; padding-inline: 8px; gap: 6px; }
  .menu-label { font-size: 12px; }
  .menu-icon { width: 14px; }
  .logo { min-height: 44px; gap: 8px; }
  .logo img { width: 44px; height: 44px; }
  .logo strong { font-size: 14px; }
  .logo small { font-size: 9px; }
  .mobile-menu { height: calc(100vh - 74px); height: calc(100dvh - 74px); padding: 22px 24px; }
  .hero-art { display: none; }
  .hero { padding-block: 128px 56px; }
  .hero-content > .eyebrow { margin-bottom: 18px; }
  .hero-detail { display: none; }
  .hero h1 { font-size: clamp(42px,8.5vw,60px); }
  .hero-description { font-size: 18px; margin-top: 20px; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .button { width: 100%; }
  .button { padding-inline: 20px; }
  .destinations { margin-bottom: 0; }
  .destination-panel { padding: 20px 16px; }
  .destination-heading { margin-bottom: 18px; }
  .destination-heading h2 { font-size: 20px; }
  .platform-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .platform-list li { min-height: 56px; flex-direction: row; gap: 8px; padding: 12px 8px; font-size: 14px; }
  .platform-icon svg { width: 28px; height: 28px; }
  .custom-rtmp { grid-column: 1 / -1; }
  .ideas-and-pricing { padding-block: 64px; gap: 32px; }
  .channel-ideas h2 { font-size: clamp(32px,6.4vw,44px); }
  .section { padding-block: 64px; }
  .section-heading { margin-bottom: 32px; }
  .section-description { margin-top: 20px; font-size: 17px; }
  .channel-grid { gap: 16px; }
  .channel-card { grid-template-columns: minmax(0,.55fr) minmax(0,1fr); }
  .channel-content { padding: 20px; }
  .channel-content h3 { font-size: 22px; }
  .channel-content p { font-size: 16px; }
  .channel-art { min-height: 190px; }
  .tv-screen { height: 70px; border-width: 5px; }
  .record { width: 72px; height: 72px; }
  .record::before { width: 30px; height: 30px; border-width: 12px; }
  .controller { height: 66px; font-size: 32px; }
  .controller b { font-size: 10px; letter-spacing: 0; }
  .newspaper { padding: 10px; font-size: 20px; }
  .price-card { padding: 28px; }
  .price-amount strong { font-size: 80px; }
  .faq-list { padding-inline: 20px; }
  .faq-list p { margin-right: 0; }
  .page-intro { padding-block: 128px 40px; }
  .page-intro h1 { font-size: clamp(42px,9vw,60px); }
  .page-description { margin-top: 24px; font-size: 18px; }
  .page-meta { gap: 12px; margin-top: 24px; font-size: 11px; }
  .reading-layout { gap: 40px; padding-bottom: 64px; }
  .page-sidebar { grid-template-columns: minmax(0,1fr); }
  .page-portrait { width: min(100%,320px); }
  :is(.page-notice, .page-contents) { padding: 20px; }
  .page-contents > a { font-size: 14px; }
  .article-section + .article-section { margin-top: 36px; padding-top: 36px; }
  .article-section h2 { font-size: clamp(28px,6vw,34px); }
  .article-section h3 { font-size: 21px; }
  .article-section p, .article-list { font-size: 17px; }
  .article-section .article-lead { font-size: 21px; }
  .article-facts { grid-template-columns: minmax(0,1fr); }
  .article-facts > div { padding: 18px; gap: 8px; }
  .footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* STUDIO — 680px */
/* STUDIO PHONES & DIALOGS — 620px */
@media (max-width:620px) {
  .studio-page .app-playground-page { width: calc(100% - 24px); padding-top: 18px; }
  .studio-page .stx-workspace-actions { padding: 16px; }
  .studio-page .stx-capacity-main { padding: 22px; }
  .studio-page .stx-stream-toolbar > .ui-stream-filter-select { flex: 1 1 180px; }
  .studio-page .stx-stream-search { min-width: 0; flex-basis: 100%; }
  .studio-page .ui-stream-list { grid-template-columns: minmax(0,1fr); }
  .studio-page .ui-stream-poster { min-height: 230px; }
  .studio-page .ui-modal-backdrop { padding: 8px; }
  .studio-page .ui-modal { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); padding: 20px; }
  .studio-page .ui-live-control-modal { padding: 0; }
  .studio-page .ui-live-control-header { min-height: 58px; padding: 9px 10px 9px 16px; }
  .studio-page :is(.ui-live-control-preview,.ui-live-control-panel) { padding: 12px; }
  .studio-page .ui-stream-preview { min-height: 360px; }
  .studio-page .ui-stream-preview-info { top: 12px; right: 12px; width: min(250px,calc(100% - 24px)); }
  .studio-page .ui-stream-preview-copy { right: 16px; bottom: 18px; left: 16px; }
  .studio-page .ui-stream-preview-copy strong { font-size: 24px; }
  .studio-page .ui-live-control-facts article { min-height: 50px; }
  .studio-page .ui-add-stream-modal .ui-form-actions { grid-template-columns: minmax(0,1fr); }
  .studio-page .ui-schedule-picker-fields { gap: 6px; }
  .studio-page .ui-custom-select-btn { padding-inline: 9px; gap: 6px; font-size: 13px; }
  .studio-page .stx-guide-launch { align-items:stretch; flex-direction:column; padding:16px; }
  .studio-page .stx-guide-launch-button { width:100%; }
  .studio-page #uiStudioGuideModal { padding:8px; }
  .studio-page .ui-studio-guide-modal { width:100%; padding:0; }
  .studio-page .ui-studio-guide-header { min-height:64px; gap:7px; padding:12px 58px 12px 17px; }
  .studio-page .ui-studio-guide-header h2 { font-size:19px; }
  .studio-page #uiStudioGuideClose { right:17px; }
  .studio-page .ui-studio-guide-steps { margin:8px 17px 12px; }
  .studio-page .ui-studio-guide-demo { margin:0 17px; }
  .studio-page .ui-studio-guide-demo-screen { height:285px; padding:9px; }
  .studio-page .ui-studio-guide-steps button { gap:3px; font-size:10px; }
  .studio-page #uiStudioGuideActionSnapshot .stx-workspace-actions { gap:12px; padding:11px; }
  .studio-page #uiStudioGuideActionSnapshot .stx-workspace-actions button { flex:1 1 100%; }
  .studio-page #uiStudioGuideStreamSnapshot .ui-stream-poster { min-height:160px; }
  .studio-page #uiStudioGuideStreamSnapshot .ui-stream-preview { min-height:100px; }
  .studio-page .ui-studio-guide-playback { align-items:stretch; flex-direction:column; gap:7px; margin:9px 17px 0; }
  .studio-page .ui-studio-guide-playback > div { justify-content:flex-end; }
  .studio-page .ui-studio-guide-note { display:grid; gap:3px; margin:12px 17px 0; }
  .studio-page .ui-studio-guide-actions { margin:12px 0 0; padding:10px 17px 14px; }
  .studio-page .ui-studio-guide-actions button { width:100%; }
}
/* CONTACT DIALOG — 540px */
@media (max-width:540px) {
  .auth-screen { padding: 24px 16px; }
  .auth-content { padding: 24px 20px; }
  .auth-topbar { margin-bottom: 24px; gap: 12px; }
  .auth-home { font-size: 13px; }
  .auth-code { gap: 6px; }
  .auth-code input { min-height: 48px; font-size: 22px; }
  .sai-unsubscribe-shell main { padding: 24px 20px; }
  .error-actions > * { flex: 1 1 160px; }
  body > .contact-backdrop { align-items: end; padding: 10px; }
  .contact-dialog { padding: 30px 22px 22px; box-shadow: 8px 8px 0 rgba(22, 22, 22, .24); }
  .contact-dialog h2 { margin-right: 42px; font-size: clamp(38px, 13vw, 52px); }
  .contact-actions { grid-template-columns: minmax(0, 1fr); }
  .contact-actions button + button { border-top: 1px solid #161616; border-left: 0; }
}
/* NARROW PHONES — 420px */
@media (max-width:420px) {
  .header-content { gap: 8px; }
  .logo img { width: 36px; height: 36px; }
  .logo small { display: none; }
  .channel-card { grid-template-columns: minmax(0,.5fr) minmax(0,1fr); }
  .channel-content { padding: 18px; }
  .channel-content h3 { font-size: 20px; }
  .price-card { padding: 23px; }
  .price-amount strong { font-size: 72px; }
}
/* NARROW STUDIO GUIDE — 380px */
@media (max-width:380px) {
  .studio-page .ui-studio-guide-demo-screen { height:245px; }
}
/* ==========================================================================
   18. INPUT & MOTION PREFERENCES
   ========================================================================== */
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .platform-list li:hover { border-color: var(--platform-color); background-color: #ffffff06; transform: translateY(-3px); }
}
@media (prefers-reduced-motion:reduce) {
  .studio-page *, .studio-page *::before, .studio-page *::after { animation: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal, .reveal.reveal-hidden { opacity: 1; transform: none; transition: none; }
  [data-stream-animation] *, [data-stream-animation] *::before, [data-stream-animation] *::after { animation: none !important; transition: none !important; }
}
