.studio-desk, .live-dialog { --green: #183e36; --paper: #faf8f2; --ink: #223d35; --line: #dfe5d8; --muted: #596859; }
#dashboard.studio-desk { max-width: none; width: 100%; margin: 0; padding: 0; min-height: calc(100dvh - 70px); display: grid; grid-template-columns: 226px minmax(0,1fr); background: #f5f6ef; color: var(--ink); }
#dashboard[hidden], .auth-checking #dashboard, .auth-mode #dashboard { display: none !important; }
.studio-desk-sidebar { background: #fbfaf3; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 28px 16px 24px; }
.studio-desk-label { margin: 0 12px 22px; font-size: 10px; font-weight: 650; letter-spacing: .1em; color: #5c6b58; }
#desk-nav { display: grid; gap: 6px; }
#desk-nav a, .desk-sidebar-footer a { color: #314e3e; text-decoration: none; }
#desk-nav a { border-radius: 6px; padding: 12px 14px; font-size: 13px; font-weight: 600; }
#desk-nav a:hover { background: #e6eee2; }
#desk-nav a[aria-current] { background: #183e36; color: #fff; }
#desk-nav .desk-new-order:not([aria-current]) { margin-top: 12px; border: 1px solid #c6d2c0; }
.desk-sidebar-footer { display: grid; gap: 6px; margin-top: auto; padding: 32px 12px 0; overflow-wrap: anywhere; font-size: 13px; }
.desk-sidebar-footer small { color: #5c6b58; }
.desk-sidebar-footer a { font-size: 12px; margin-top: 8px; }
.desk-sidebar-footer a:hover { text-decoration: underline; }
.studio-desk-main { min-width: 0; width: 100%; max-width: 1350px; padding: 0 38px 55px; margin-inline: auto; }
.studio-desk h1, .live-dialog h2 { font-family: Georgia, serif; color: var(--ink); font-weight: 500; }
.studio-desk h1 em { color: #5a7055; }
.studio-desk .live-card h2 { font-family: Georgia, serif; font-weight: 500; color: var(--ink); }
.studio-desk .library-section { border-top: 1px solid var(--line); }
.studio-desk .library-section .section-top { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.studio-desk .library-section .section-top > div { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.studio-desk .section-top h2, .studio-team-toolbar h2 { margin-bottom: 0; }
.studio-desk .section-top input { margin-left: auto; }
.studio-desk .project-grid { margin-top: 15px; }
.studio-desk .empty-state { grid-column: 1 / -1; min-width: 0; }
.studio-desk .live-card, .live-dialog { box-shadow: 0 5px 20px #253c1910; }
.studio-desk .studio-table td { overflow-wrap: anywhere; }
.studio-desk .studio-team-toolbar { justify-content: space-between; }
.studio-header .studio-brand-logo { width: 42px; height: 42px; object-fit: contain; flex: 0 0 42px; }
.studio-desk .order-name, .studio-desk .order-name:visited { color: var(--green); text-decoration: none; }
.studio-desk .order-name:hover, .studio-desk .order-name:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.studio-desk .button, .live-dialog .button { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; border-radius: 5px; min-height: 42px; background: var(--green); border: 1px solid var(--green); color: white; font-weight: 600; font-size: 13px; text-decoration: none; }
.studio-desk .button-outline, .live-dialog .button-outline { background: transparent; color: var(--green); }
.studio-desk .button:hover, .live-dialog .button:hover { box-shadow: 0 0 0 2px #7e957956; }
.studio-desk .button-small { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.studio-desk .text-link, .live-dialog .text-link { color: #244f3b; font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.studio-desk :focus-visible, .live-dialog :focus-visible { outline: 2px solid #79592e; outline-offset: 3px; }
.studio-desk .order-list, .studio-desk .live-timeline { list-style: none; }
.studio-desk .desk-order-actions{display:flex;align-items:center;gap:13px;flex-wrap:wrap}
.studio-desk .desk-order-actions .text-link{display:inline-flex;align-items:center;min-height:34px;padding:4px 0;border:0;background:transparent;line-height:1.25;white-space:nowrap}
.studio-desk .desk-delete-order{color:#a02f2d}
.studio-desk .desk-show-deleted{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--green);margin-bottom:8px}
.studio-desk .live-dialog { width: min(530px,calc(100vw - 26px)); }
.live-dialog .dialog-x { color: var(--green); background: #f4f6ed; }
.desk-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 0 0 24px; }
.desk-metrics > div { display: grid; gap: 8px; background: #fffdf7; border: 1px solid var(--line); border-radius: 6px; padding: 15px; min-width: 0; }
.desk-metrics > div:last-child { background: #eaf0e4; }
.desk-metrics span { color: var(--muted); font-size: 12px; }
.desk-metrics strong { color: var(--green); font-family: Georgia, serif; font-size: clamp(21px,3vw,35px); font-weight: 500; overflow-wrap: anywhere; }
#showOwnerSetup { margin: 10px 0 14px; padding: 0; font-size: 13px; }
.login-card > small { display: block; }
#desk-menu-toggle, #desk-menu-close, #desk-menu-backdrop { display: none; }
.desk-release-control { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: 13px; font-weight: 600; }
.desk-release-control input { appearance: none; flex: 0 0 40px; width: 40px; height: 24px; padding: 0; border: 1px solid #a6b5a0; border-radius: 20px; background: #e6ebe1; position: relative; cursor: pointer; }
.desk-release-control input::before { content: ''; position: absolute; inset: 3px auto 3px 3px; width: 16px; border-radius: 100%; background: white; box-shadow: 0 1px 3px #183e3640; }
.desk-release-control input:checked { border-color: var(--green); background: var(--green); }
.desk-release-control input:checked::before { left: 19px; }
@media (max-width: 1000px) {
 #dashboard.studio-desk { grid-template-columns: 1fr; }
 body:not(.auth-mode):not(.auth-checking):not(.editor-mode) .studio-header #desk-menu-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 8px; }
 #desk-menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
 .studio-desk-sidebar { position: fixed; z-index: 121; inset: 0 auto 0 0; width: min(290px, 88vw); padding: max(14px,env(safe-area-inset-top)) 16px max(20px,env(safe-area-inset-bottom)); overflow: auto; overscroll-behavior: contain; visibility: hidden; transform: translateX(-100%); transition: transform .22s ease, visibility .22s; }
 .studio-desk-label { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 12px 12px; }
 #desk-menu-close { display: grid; place-items: center; min-width: 38px; min-height: 38px; font-size: 22px; }
 #desk-menu-backdrop { position: fixed; z-index: 120; inset: 0; background: #223d3566; }
 .desk-menu-open { overflow: hidden; }
 .desk-menu-open .studio-desk-sidebar { visibility: visible; transform: translateX(0); box-shadow: 15px 0 40px #223d3526; }
 .desk-menu-open #desk-menu-backdrop { display: block; }
 .studio-desk-main { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) { .studio-desk-sidebar { transition: none; } }
@media (max-width: 620px) {
 body:not(.editor-mode) .studio-header { height: auto; min-height: 64px; flex-wrap: wrap; padding-block: 12px; }
 body:not(.editor-mode) .studio-header .header-context { display: none; }
 body:not(.editor-mode) .studio-header .header-actions { width: 100%; flex-wrap: wrap; margin-left: 0; }
 body:not(.editor-mode) .studio-header #newProject { margin-left: auto; }
 #desk-nav a { padding: 11px 14px; font-size: 13px; }
 .studio-desk-main { padding-inline: 14px; }
 .studio-desk .section-top input { width: 100%; }
 .desk-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .studio-desk .studio-table { min-width: 420px; }
 .studio-desk .studio-team-toolbar { flex-wrap: wrap; }
}
