.studio-panel { --studio-ink: #e6eef8; position: fixed; z-index: 55; top: var(--studio-top, 62px); bottom: 0; right: 0; width: 472px; max-width: 100%; display: flex; flex-direction: column; background: #080d14; color: var(--studio-ink); border-left: 1px solid rgba(148,163,184,.18); box-shadow: -12px 0 32px rgba(0,0,0,.55); font-size: .92rem; }
.studio-panel[hidden], .studio-confirm[hidden], .studio-conflict[hidden] { display: none; }
.studio-panel *, .studio-panel *::before, .studio-panel *::after { box-sizing: border-box; }
.studio-header { display: flex; align-items: center; gap: 8px; padding: 20px 20px 14px; border-bottom: 1px solid rgba(148,163,184,.16); }
.studio-header > div { flex: 1; min-width: 0; }
.studio-header strong { display: block; font: 700 1.8rem 'Space Grotesk', sans-serif; letter-spacing: -.06em; color: #f1f5f9; }
.studio-eyebrow { display: block; font-size: .65rem; line-height: 1.4; font-weight: 700; letter-spacing: .12em; color: #38bdf8; text-transform: uppercase; }
.studio-body { overflow: auto; overscroll-behavior: contain; min-height: 0; flex: 1; padding: 20px 24px 32px; scrollbar-gutter: stable; }
.studio-button { min-height: 40px; border: 1px solid rgba(148,163,184,.24); border-radius: 8px; padding: 9px 12px; font: 600 .8rem Inter, sans-serif; background: #0b111b; color: #e6eef8; cursor: pointer; line-height: 1.35; }
.studio-button:hover { border-color: rgba(56,189,248,.48); background: #101827; }
.studio-button.primary { background: #38bdf8; border-color: #38bdf8; color: #06090d; }
.studio-button.primary:hover { background: #7dd3fc; }
.studio-button.quiet { background: transparent; }
.studio-button:disabled { opacity: .45; cursor: default; }
.studio-panel :focus-visible, #studio-toggle:focus-visible { outline: 3px solid #38bdf8; outline-offset: 3px; }
.studio-connection { margin: 0; padding: 8px 24px 0; font-size: .7rem; color: #94a3b8; min-height: 24px; }
.studio-status { margin: 0; padding: 10px 24px; min-height: 39px; font-size: .8rem; line-height: 1.5; border-top: 1px solid rgba(148,163,184,.16); background: #0b111b; color: #7dd3fc; }
.studio-panel .is-error { color: #fda4af; }
.studio-intro { padding: 5px 0 20px; }
.studio-intro h2 { margin: 9px 0; font: 600 1.8rem/1.1 'Space Grotesk', sans-serif; max-width: 300px; letter-spacing: -.04em; color: #f1f5f9; }
.studio-intro > p:last-child { color: #94a3b8; margin-bottom: 0; line-height: 1.5; }
.studio-tabs { display: flex; border-bottom: 1px solid rgba(148,163,184,.18); gap: 4px; }
.studio-tabs button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: #94a3b8; flex: 1; padding: 11px 5px; }
.studio-tabs button[aria-pressed=true] { border-bottom-color: #38bdf8; color: #38bdf8; background: rgba(56,189,248,.12); }
.studio-tools { display: flex; gap: 7px; margin: 16px 0 8px; }
.studio-search { min-width: 0; width: 100%; border: 1px solid rgba(148,163,184,.24); border-radius: 8px; padding: 10px; font: inherit; background: #06090d; color: var(--studio-ink); }
.studio-tools button[aria-pressed=true] { background: rgba(56,189,248,.18); border-color: rgba(56,189,248,.45); color: #38bdf8; }
.studio-count { color: #94a3b8; font-size: .72rem; }
.studio-cards { display: flex; flex-direction: column; gap: 12px; }
.studio-card { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 18px; text-align: left; border-radius: 10px; background: #0b111b; border: 1px solid rgba(148,163,184,.18); box-shadow: 0 4px 16px rgba(0,0,0,.3); overflow-wrap: anywhere; }
.studio-card-top { font-size: .66rem; color: #94a3b8; font-weight: 500; }
.studio-card-title { font: 600 1.2rem/1.25 'Space Grotesk', sans-serif; letter-spacing: -.025em; color: #f1f5f9; }
.studio-card-text { color: #cbd5e1; font-size: .82rem; font-weight: 400; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.studio-card-foot { align-self: flex-start; padding: 3px 8px; background: rgba(56,189,248,.14); color: #7dd3fc; border-radius: 4px; font-size: .66rem; }
.studio-empty { padding: 26px 12px; line-height: 1.5; text-align: center; border: 1px dashed rgba(148,163,184,.24); border-radius: 10px; }
.studio-empty h3 { font: 600 1.3rem 'Space Grotesk', sans-serif; color: #f1f5f9; }
.studio-empty p { color: #94a3b8; }
.studio-money-note { padding: 12px; margin: 0; border-left: 3px solid #f59e0b; background: rgba(245,158,11,.12); color: #fbbf24; font-size: .78rem; line-height: 1.5; border-radius: 0 8px 8px 0; }
.studio-detail-title { font: 600 2rem/1.12 'Space Grotesk', sans-serif; letter-spacing: -.04em; overflow-wrap: anywhere; margin: 12px 0; color: #f1f5f9; }
.studio-meta { color: #94a3b8; font-size: .74rem; line-height: 1.5; }
.studio-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.studio-detail-section { margin: 24px 0; overflow-wrap: anywhere; }
.studio-detail-section h3 { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #38bdf8; margin-bottom: 8px; }
.studio-detail-section p { line-height: 1.6; white-space: pre-wrap; margin-top: 0; color: #cbd5e1; }
.studio-source { display: inline-block; color: #38bdf8; font-weight: 600; padding: 10px 0; text-underline-offset: 4px; }
.studio-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.studio-field { display: flex; flex-direction: column; gap: 7px; margin: 0 0 17px; font-size: .8rem; font-weight: 600; color: #cbd5e1; }
.studio-field input, .studio-field select, .studio-field textarea { width: 100%; min-width: 0; background: #06090d; border: 1px solid rgba(148,163,184,.26); border-radius: 7px; color: var(--studio-ink); padding: 10px; font: 400 .9rem/1.5 Inter, sans-serif; }
.studio-field textarea { resize: vertical; min-height: 90px; }
.studio-field input:disabled, .studio-form fieldset:disabled { opacity: .65; }
.studio-conflict { border: 1px solid rgba(245,158,11,.42); border-radius: 8px; padding: 15px; background: rgba(245,158,11,.12); color: #fde68a; font-size: .82rem; line-height: 1.5; }
.studio-conflict summary { cursor: pointer; padding: 10px 0; font-weight: 600; }
.studio-conflict details { max-height: 350px; overflow: auto; }
.studio-confirm { position: absolute; z-index: 4; left: 16px; right: 16px; top: 30%; padding: 24px; border: 1px solid rgba(56,189,248,.36); border-radius: 12px; background: #0f172a; color: #e6eef8; box-shadow: 0 12px 80px rgba(0,0,0,.75); line-height: 1.5; }
.studio-confirm p { color: #94a3b8; }
#studio-toggle { color: #e6eef8; background: transparent; border-color: rgba(148,163,184,.28); }
@media (min-width: 1120px) { .boardroom.studio-open .room-panel.home { width: calc(100% - 472px); max-width: none; margin-left: 0; margin-right: 472px; } }
@media (max-width: 1119px) { .studio-panel { top: 0; width: min(100%, 600px); box-shadow: 0 0 0 100vmax rgba(0,0,0,.7); } }
@media (max-width: 600px) { .studio-header { padding: 14px 12px; gap: 6px; } .studio-header strong { font-size: 1.5rem; } .studio-header .studio-eyebrow { font-size: .55rem; letter-spacing: .05em; } .studio-header .studio-button { padding: 8px; font-size: .7rem; } .studio-body { padding: 18px 16px 32px; } .studio-connection, .studio-status { padding-left: 16px; padding-right: 16px; } .studio-status { padding-bottom: max(10px, env(safe-area-inset-bottom)); } .studio-tabs button { font-size: .75rem; } .studio-intro h2 { font-size: 1.7rem; } }
@media (prefers-reduced-motion: reduce) { .studio-panel * { scroll-behavior: auto; transition: none; animation: none; } }
