@layer workspace {
/* Navigation and dashboard canvas */
body.dashboard-page {background:var(--ui-bg);font:14px/1.85 var(--ui-font);overflow-x:clip}
.app-shell {display:block;min-height:100dvh}
.sidebar {position:fixed;inset:0 0 0 auto;width:var(--ui-sidebar-width);height:100dvh;display:flex;flex-direction:column;padding:24px 16px 18px;background:var(--ui-sidebar);border:0;border-inline-end:1px solid var(--ui-line);z-index:100;overflow:hidden;box-shadow:none}
.sidebar .brand {display:flex;align-items:center;height:48px;padding:0 12px;flex:none}
.sidebar .brand>div {display:none}
.podly-logo {display:block;width:92px;height:32px;background:url('/assets/brand/podly-white.webp') center/contain no-repeat}
body.dashboard-page .sidebar .podly-logo {width:132px;height:44px}
:root[data-podly-theme=light] .podly-logo {filter:invert(1)}
.workspace-switcher {display:grid;grid-template-columns:34px minmax(0,1fr) 14px;gap:10px;align-items:center;width:100%;padding:10px;margin:22px 0;background:transparent;border:1px solid var(--ui-line);border-radius:12px;text-align:start}
.workspace-switcher .avatar {display:grid;place-items:center;width:34px;height:34px;font-size:15px}
.workspace-copy {display:grid;min-width:0;gap:0}
.workspace-copy strong {font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-copy small {font-size:11px}
.main-nav {display:flex;flex-direction:column;gap:5px;flex:1;min-height:0;overflow:auto;padding:0}
.sidebar .nav-label {font-size:11px;color:var(--ui-subtle);padding:0 12px;margin:18px 0 5px}
.sidebar :is(.nav-item,.developer-sidebar-link) {display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:11px 12px;background:transparent;color:var(--ui-muted);border:0;border-radius:10px;text-align:start;text-decoration:none;position:relative;overflow:hidden}
.sidebar :is(.nav-item,.developer-sidebar-link):hover {background:var(--ui-raised);color:var(--ui-text)}
.sidebar :is(.nav-item,.developer-sidebar-link).active {background:var(--ui-accent-soft);color:var(--ui-accent)}
.sidebar :is(.nav-item,.developer-sidebar-link)::before,.sidebar :is(.nav-item,.developer-sidebar-link)::after {content:none}
.sidebar .nav-item b {font-size:13px;font-weight:550}
.sidebar :is(.nav-item,.developer-sidebar-link) small {display:none}
.nav-icon {display:grid;place-items:center;width:22px;height:22px;background:transparent;color:inherit;flex:none}
.nav-icon svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6}
.sidebar-bottom {margin-top:16px;padding-top:12px;border-top:1px solid var(--ui-line);background:transparent;flex:none}
.sidebar-actions {display:flex;gap:8px;margin-top:10px}
.sidebar-action {display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;flex:1;padding:8px;background:transparent;border:1px solid var(--ui-line);border-radius:10px;color:var(--ui-muted);font-size:12px}
.sidebar-action>span {width:18px;display:grid;place-items:center}
.sidebar-action svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6}
.sidebar-action b {display:block;font-size:12px}
.main-content {margin-right:var(--ui-sidebar-width);width:auto;min-width:0;padding:0 36px 48px;background:var(--ui-bg)}
.topbar {position:sticky;top:0;z-index:80;display:flex;align-items:center;gap:18px;min-height:88px;height:auto;margin:0 -36px 28px;padding:18px 36px;border:0;background:var(--ui-bg);backdrop-filter:none}
.breadcrumb {min-width:0;flex:1;display:grid;padding:0;border:0;background:transparent;gap:0}
.breadcrumb::before {content:none}
.breadcrumb span {font-size:11px;color:var(--ui-subtle)}
.breadcrumb strong {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px;color:var(--ui-text)}
.top-actions {flex:none;display:flex;align-items:center;margin-inline-start:auto;gap:12px}
.top-primary-actions,.top-account-actions {display:flex;align-items:center;gap:10px;padding:0;border:0}
.top-actions :is(.top-primary-actions,.top-account-actions)>:is(button,a),.top-actions .hero-credit-trigger {flex-shrink:0;min-height:44px;height:44px;border:0;border-radius:0;background:transparent;color:var(--ui-text);box-shadow:none}
.top-actions :is(.icon-button,.user-menu,.dashboard-create-shortcut,.podly-theme-toggle) {width:44px;min-width:44px;max-width:44px;display:grid;place-items:center;padding:10px}
.top-actions .top-primary-actions>.dashboard-create-shortcut {color:var(--ui-action)}
.top-actions .hero-credit-trigger {display:flex;align-items:center;gap:8px;border-radius:99px;width:auto;min-width:0;max-width:none;padding:0 14px}
.hero-credit-trigger>strong {font-size:13px;font-variant-numeric:tabular-nums;direction:ltr}
.hero-credit-trigger>i {display:none}
.top-actions a:is(.dashboard-circle-shortcut,.dashboard-circle-mobile) {display:flex;align-items:center;gap:6px;border-radius:99px;padding:0 12px;width:auto;color:var(--ui-muted)}
body.dashboard-page .topbar .top-account-actions>.dashboard-circle-mobile {display:none}
.circle-name {font-size:12px}
.user-menu img {width:32px;height:32px;object-fit:cover;border-radius:50%}
.sidebar-collapse {position:static;flex:none;background:transparent}
.topbar :is(.sidebar-collapse,.mobile-menu) {border:0;border-radius:0;background:transparent;box-shadow:none}
.topbar :is(.sidebar-collapse,.mobile-menu):hover {background:transparent;color:var(--ui-accent)}
.top-actions :is(.top-primary-actions,.top-account-actions)>:is(button,a):hover,.top-actions .hero-credit-trigger:hover {background:transparent;color:var(--ui-accent);text-decoration:none}
.topbar :is(.top-primary-actions,.top-account-actions)>:is(button,a):focus-visible,.topbar :is(.hero-credit-trigger,.sidebar-collapse,.mobile-menu):focus-visible {outline:0;color:var(--ui-accent);box-shadow:0 2px 0 var(--ui-accent)}
.mobile-menu,.sidebar-backdrop {display:none}
.main-content>.view {width:100%;max-width:1500px;margin-inline:auto;padding:0 0 32px}
.view {display:none;scroll-margin-top:112px}.view.active {display:block}
.section-header {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin:0 0 26px;padding:0;background:transparent;border:0}
.section-header h1 {margin:0}
.section-header p {margin:5px 0 0;font-size:14px}
/* Overview: compact metrics, a clear action, and recent work. */
#overview {display:none}
#overview.active {display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:22px}
#overview>.section-header {grid-column:1/-1;margin-bottom:4px}
#overview .overview-primary-grid {grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
#overview .overview-stats {grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0}
#overview .stat-card {min-height:110px;display:flex;align-items:center;gap:16px;padding:20px;border:0;border-radius:14px;background:var(--ui-surface)}
#overview .stat-icon {display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:50%;background:var(--ui-accent-soft);color:var(--ui-accent)}
#overview .stat-icon svg {fill:none;stroke:currentColor;stroke-width:1.7}
#overview .stat-card strong {font-size:26px;line-height:1.6;font-weight:700}
#overview .stat-card span,#overview .stat-card small {font-size:12px;color:var(--ui-muted)}
#overview .stat-card:nth-child(2) .stat-icon {background:var(--ui-action-soft);color:var(--ui-action)}
#overview .stat-card:nth-child(3) .stat-icon {background:var(--ui-success-soft);color:var(--ui-success)}
#overview .creation-quick-panel {display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;min-height:0;padding:24px;background:var(--ui-surface);border:0;border-radius:16px}
#overview .creation-quick-panel::before,#overview .creation-quick-panel::after {content:none}
.creation-quick-panel h2 {font-size:22px;max-width:none;line-height:1.8;margin:4px 0 8px}
.creation-quick-panel p {font-size:14px;line-height:1.9;margin:0;max-width:68ch}
.creation-quick-button {align-self:center;flex:none;min-height:46px;border-radius:10px;padding:10px 20px}
#overview .activity-panel {border:0;padding:24px}
.activity-panel .panel-heading {margin-bottom:18px}
.activity-list {display:grid;gap:0}
.activity-list>div,.activity-list>article {padding:15px 0;border:0;border-bottom:1px solid var(--ui-line);background:transparent;border-radius:0}
.activity-list strong {font-size:13px}
.activity-list time {font-size:12px;color:var(--ui-subtle)}
#overview .activity-main {display:flex;flex-wrap:wrap;gap:6px 16px;align-items:baseline}
#overview .activity-main strong {min-width:0;flex:1 1 240px;white-space:normal;overflow-wrap:anywhere;line-height:1.9;font-size:14px;font-weight:600}
#overview .activity-status {font-size:12px;line-height:1.8;color:var(--ui-muted)}
#overview .activity[data-status=completed] .activity-status {color:var(--ui-success)}
#overview .activity[data-status=awaiting_review] .activity-status {color:var(--ui-warning)}
#overview .activity:is([data-status=failed],[data-status=cancelled]) .activity-status {color:var(--ui-danger)}
#overview .activity-copy small {display:flex;flex-wrap:wrap;gap:6px 12px;color:var(--ui-subtle);font-size:12px;margin-top:6px}
#overview .activity-action {display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;background:transparent;color:var(--ui-accent);padding-inline:12px}
#overview .activity-action:hover {background:var(--ui-accent-soft)}
#overview .overview-secondary-grid {grid-column:1/-1;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}
.overview-secondary-grid>.panel {grid-column:span 2;min-height:200px;padding:22px;background:var(--ui-surface);border:0}
#overview .overview-secondary-grid>.product-spotlight {display:grid;grid-template-columns:minmax(0,1fr) 64px;align-items:center;gap:16px}
#overview .product-spotlight-copy {min-width:0}
#overview .product-spotlight img {width:64px;height:64px}
@media(min-width:761px) and (max-width:1180px) {
 .overview-secondary-grid>.panel {grid-column:span 3}
}
.overview-secondary-grid h2 {font-size:18px}
.overview-secondary-grid p {font-size:13px}
:is(.feedback-orb,.balance-glow,.settings-heading-art,.growth-invite-art) {display:none}
.product-spotlight-actions {display:flex;gap:16px;flex-wrap:wrap}
/* Studio tool selection; future-feature voting retains its own action row. */
#studioChooser .creation-hub-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:18px}
#studioChooser .studio-card-item {position:relative;display:flex;min-width:0}
#studioChooser .creation-choice {display:flex;flex-direction:column;width:100%;height:100%;min-height:216px;padding:0;border:1px solid var(--ui-line);border-radius:16px;background:var(--ui-surface);text-align:start;transform:none;overflow:hidden}
#studioChooser .creation-choice:hover {border-color:var(--ui-accent);background:var(--ui-raised)}
#studioChooser .choice-flip {position:static;display:flex;flex:1;height:auto;width:auto;transform:none}
#studioChooser .choice-face-front {position:static;display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0;min-height:216px;padding:24px;border:0;background:transparent;transform:none;backface-visibility:visible;gap:8px;border-radius:0}
#studioChooser .choice-face-back {display:none}
#studioChooser .choice-front-icon {position:static;display:grid;place-items:center;width:48px;height:48px;margin:0 0 12px;background:var(--ui-accent-soft);color:var(--ui-accent);border:0;border-radius:14px;box-shadow:none}
#studioChooser .choice-front-icon img {display:none}
#studioChooser .choice-front-icon svg {visibility:visible;width:25px;height:25px;filter:none;fill:none;stroke:currentColor;stroke-width:1.6}
#studioChooser .choice-front-title {font-size:17px;font-weight:700;color:var(--ui-text)}
#studioChooser .choice-front-description {display:block;font-size:13px;color:var(--ui-muted);line-height:1.9;margin:0 0 12px;overflow:visible;overflow-wrap:anywhere;max-width:100%}
#studioChooser .choice-front-status {margin:auto 0 0;padding-inline-end:10px;font-size:11px;background:var(--ui-accent-soft);color:var(--ui-accent);align-self:flex-start}
#studioChooser .studio-card-arrow {position:absolute;inset:auto auto 20px 20px;width:28px;height:28px;background:transparent;color:var(--ui-muted);box-shadow:none}
#studioChooser .studio-card-pin {position:absolute;top:10px;left:10px;width:44px;height:44px;min-height:44px;background:transparent;border:0;color:var(--ui-muted);padding:12px}
#studioChooser .studio-card-pin[aria-pressed=true] {color:var(--ui-accent);background:var(--ui-accent-soft)}
/* Future cards keep voting controls in flow, below the description. */
#studioChooser .creation-future-grid .creation-choice {height:100%;min-height:0;display:flex;flex-direction:column}
#studioChooser .creation-future-grid .choice-face-front {min-height:0;padding:24px 24px 12px}
#studioChooser .studio-feature-actions {display:flex;align-self:stretch;width:100%;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:0 24px 20px;border:0;background:transparent}
#studioChooser .studio-feature-actions .choice-front-status {position:static;margin:0;flex:none}
#studioChooser .studio-feature-actions .studio-feature-vote {position:static;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:52px;min-height:44px;padding:8px;direction:ltr}
#studioChooser .studio-feature-vote svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
body.dashboard-page:has(dialog[open]),body.community-page:has(dialog[open]) {overflow:hidden}
dialog.studio-future-dialog {width:min(1200px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;overflow:hidden}
dialog.studio-future-dialog[open] {display:flex;flex-direction:column}
.studio-future-header {display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;padding:16px 24px;border-bottom:1px solid var(--ui-line)}
.studio-future-header h2 {margin:0;font-size:19px}
.studio-future-header .studio-modal-close {flex:none;margin:0}
.studio-future-content {flex:1 1 auto;min-width:0;min-height:0;padding:24px;overflow:auto;overscroll-behavior:contain}
@media(min-width:781px) and (max-width:1000px){.studio-future-dialog .creation-future-grid {grid-template-columns:repeat(2,minmax(0,1fr))}}
#studioChooser .creation-ready>.creation-section-heading {display:grid;gap:6px;margin-bottom:20px}
#studioChooser .creation-section-heading :is(h2,p) {margin:0}
#studioChooser .studio-pin-notice {margin:0 0 22px;font-size:12px}
/* App destinations sit above the studio tools, with real navigation links. */
#studioChooser .studio-apps {margin:0 0 32px}
#studioChooser .studio-apps-heading {display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}
#studioChooser .studio-apps-heading h2 {margin:0;font-size:18px}
#studioChooser .studio-apps-heading p {margin:0;font-size:12px}
#studioChooser .studio-apps-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#studioChooser .studio-app-banner {
 --app-tone:var(--ui-accent);--app-tint:var(--ui-accent-soft);
 position:relative;isolation:isolate;display:flex;align-items:center;min-width:0;min-height:240px;
 padding:24px 26px;overflow:hidden;border:1px solid var(--ui-glass-line);border-radius:22px;
 background:radial-gradient(ellipse at 12% 60%,color-mix(in srgb,var(--app-tone) 10%,transparent),transparent 60%),linear-gradient(135deg,var(--ui-glass-shine),transparent 46%),var(--ui-glass);box-shadow:var(--ui-glass-shadow);color:var(--ui-text);text-decoration:none;touch-action:manipulation;
}
#studioChooser .studio-app-banner--meditation {--app-tone:var(--ui-success);--app-tint:var(--ui-success-soft)}
#studioChooser .studio-app-banner-art {position:absolute;z-index:-1;inset:12px auto 12px 12px;width:32%;height:calc(100% - 24px);object-fit:contain;pointer-events:none}
#studioChooser .studio-app-banner-copy {display:flex;flex-direction:column;align-items:flex-start;gap:10px;max-width:63%;min-width:0}
#studioChooser .studio-app-banner-name {color:var(--app-tone);font-size:12px;font-weight:700}
#studioChooser .studio-app-banner strong {font-size:21px;font-weight:750;line-height:1.7;text-wrap:balance}
#studioChooser .studio-app-banner-description {font-size:13px;line-height:1.9;color:var(--ui-muted);text-wrap:pretty}
#studioChooser .studio-app-banner-action {display:inline-flex;align-items:center;gap:10px;min-height:44px;margin-top:6px;padding:8px 12px;border-radius:10px;background:var(--app-tint);color:var(--app-tone);font-size:12px;font-weight:700}
#studioChooser .studio-app-banner-action svg {width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;transition:transform 180ms ease}
#studioChooser .studio-app-banner:hover {border-color:var(--app-tone)}
#studioChooser .studio-app-banner:hover .studio-app-banner-action {background:var(--ui-action);color:var(--ui-action-on)}
#studioChooser .studio-app-banner:hover .studio-app-banner-action svg {transform:translateX(-3px)}
#studioChooser .studio-app-banner:focus-visible {outline:2px solid var(--ui-action);outline-offset:4px}
#studioChooser .studio-app-banner:active {border-color:var(--ui-action)}
@media(max-width:1100px) {
 #studioChooser .studio-app-banner {padding:20px;min-height:250px}
 #studioChooser .studio-app-banner strong {font-size:18px}
 #studioChooser .studio-app-banner-copy {max-width:63%}
}
@media(max-width:760px) {
 #studioChooser .studio-apps-heading {align-items:flex-start;flex-direction:column;gap:4px}
 #studioChooser .studio-apps-grid {grid-template-columns:1fr;gap:12px}
 #studioChooser .studio-app-banner {min-height:226px}
 #studioChooser .studio-app-banner-copy {max-width:63%}
}
@media(prefers-reduced-motion:reduce) {
 #studioChooser .studio-app-banner-action svg,
 #studioChooser .studio-app-banner:hover .studio-app-banner-action svg {transition:none;transform:none}
}
.creation-modal-panel,.creation-modal-dialog {width:min(1000px,calc(100vw - 40px));max-height:calc(100dvh - 40px);overflow:auto;padding:24px}
.creation-modal-close {position:absolute;inset:16px auto auto 16px;z-index:5;width:44px;height:44px;border-radius:50%;font-size:23px}
.creation-modal-panel .section-header,.creation-modal-dialog .section-header {padding-inline-end:54px}
.creation-wizard-progress,.wizard-progress {background:var(--ui-raised);border-radius:99px}
:is(.wizard-step,.creation-step).active {background:var(--ui-accent-soft);color:var(--ui-accent)}
:is(.tts-form,.dialogue-form,.advertising-form,.source-podcast-form,.manual-project-form) {background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:16px;box-shadow:none}
:is(.tts-step,.source-step-head>span,.cover-section-title>span) {background:var(--ui-accent-soft);color:var(--ui-accent);border-radius:50%;width:32px;height:32px;display:inline-grid;place-items:center;font-size:13px}
:is(.tts-estimate,.ad-estimate,.source-estimate,.billing-confirm-total) {padding:18px;background:var(--ui-raised);border:1px solid var(--ui-line);border-radius:12px}
/* Projects and detail workspace */
.library-shell {padding:0;background:transparent;border:0}
.library-shell::before {content:none}
.library-toolbar {display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}
.library-heading-icon {display:none}
.library-heading h1 {margin:0}
.library-new-project {border-radius:99px}
.library-summary {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 22px}
.library-summary>button {display:flex;align-items:center;gap:14px;min-height:84px;padding:16px 20px;background:var(--ui-surface);border:0;border-radius:12px;text-align:start}
.library-summary strong {font-size:23px;color:var(--ui-text)}
.library-summary small {font-size:12px}
.library-summary .summary-icon {width:40px;height:40px;display:grid;place-items:center}
.library-controlbar {display:flex;align-items:center;flex-wrap:wrap;gap:12px;background:transparent;border:0;padding:0;margin:0 0 24px}
.library-search {display:flex;align-items:center;gap:10px;flex:1;min-width:200px;border:1px solid var(--ui-line-strong);border-radius:10px;padding:0 12px;background:var(--ui-surface)}
.library-search:focus-within {border-color:var(--ui-accent)}
.library-search input, .library-search input:focus-visible {border:0;background:transparent;min-width:0;width:100%;outline:0;box-shadow:none}
.library-select {display:flex;align-items:center;gap:8px}
.library-select>span {font-size:12px;color:var(--ui-muted)}
.library-result-meta {font-size:12px;color:var(--ui-muted)}
#projects .library-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));grid-auto-rows:auto;gap:20px}
#projects .library-card {position:relative;display:flex;flex-direction:column;height:auto;min-height:0;padding:14px;gap:12px;overflow:visible;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:16px}
#projects .library-card-image {position:relative;height:164px;min-height:0;border-radius:10px;overflow:hidden;background:var(--ui-raised)}
.library-cover {position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.library-card-image:has(.library-cover:not(.is-loading):not(.is-unavailable)) .library-card-placeholder {visibility:hidden}
.library-card-placeholder {display:grid;place-items:center;height:100%;color:var(--ui-accent);background:var(--ui-accent-soft)}
.library-card-placeholder svg {width:40px;height:40px}
.card-title-action {padding:0;min-height:0;border:0;border-radius:0;background:transparent;color:var(--ui-text);text-align:start;font-size:15px;font-weight:650;line-height:1.9;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-title-action:hover {background:transparent}
.library-card .project-tile-delete {min-height:44px;margin-top:8px;color:var(--ui-danger);background:transparent;border:1px solid var(--ui-line)}
.library-card .project-tile-delete:hover {background:var(--ui-danger-soft);border-color:var(--ui-danger)}
.library-card :is(.card-info,.card-meta,.library-card-meta) {font-size:12px;color:var(--ui-muted)}
.library-card .card-actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:12px;border-top:1px solid var(--ui-line)}
.library-card .card-actions button {flex:1;min-height:44px}
.library-card-menu {padding:6px;min-width:180px}
.media-dialog {padding:26px;width:min(1100px,calc(100vw - 36px));max-height:calc(100dvh - 36px);overflow:auto}
.media-close {position:absolute;top:16px;left:16px;z-index:5}
.media-dialog h2 {padding-inline-end:48px}
.media-action {border-radius:10px}
/* The project pane owns one full-height scrolling area. */
body.dashboard-page .project-workspace #mediaContent {overflow:hidden}
body.dashboard-page .project-workspace .project-workspace-layout {min-height:0;overflow:hidden}
body.dashboard-page .project-workspace .media-workspace {height:100%;min-height:0;overflow:auto;box-sizing:border-box}
body.dashboard-page .project-workspace .media-workspace-panel {height:auto;min-height:100%;overflow:visible}
/* A single-field dialog needs its own measure, independent of studio wizards. */
body.dashboard-page #create.active[data-mode=manual] > .studio-panel.manual-project-studio:not([hidden]) {width:min(480px,100%);max-width:480px;height:auto;padding:32px;border-color:var(--ui-line);border-radius:20px}
body.dashboard-page #create[data-mode=manual] .manual-project-form.panel {display:grid;width:100%;max-width:none;gap:24px;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
body.dashboard-page #create[data-mode=manual] .manual-project-intro {display:grid;gap:8px;padding:0;padding-inline-end:36px;border:0;background:transparent;box-shadow:none}
body.dashboard-page #create[data-mode=manual] .manual-project-intro h2 {margin:0;font-size:22px;line-height:1.6}
body.dashboard-page #create[data-mode=manual] .manual-project-intro p {margin:0;color:var(--ui-muted);font-size:13px;line-height:1.9}
body.dashboard-page #create[data-mode=manual] .manual-project-field {display:grid;gap:8px;min-width:0}
body.dashboard-page #create[data-mode=manual] .manual-project-field label {font-size:13px;font-weight:600}
body.dashboard-page #create[data-mode=manual] .manual-project-field input {width:100%;min-height:52px;padding:12px 14px;border-color:var(--ui-line-strong);border-radius:12px;font-size:14px}
body.dashboard-page #create[data-mode=manual] .manual-project-field input:focus-visible {border-color:var(--ui-accent);outline:2px solid var(--ui-accent);outline-offset:2px}
body.dashboard-page #create[data-mode=manual] .manual-project-error:empty {display:none}
body.dashboard-page #create[data-mode=manual] .manual-project-error {font-size:12px;line-height:1.9;overflow-wrap:anywhere}
body.dashboard-page #create[data-mode=manual] .manual-project-footer {display:grid;gap:16px;padding-top:24px;border-top:1px solid var(--ui-line)}
body.dashboard-page #create[data-mode=manual] .manual-project-footer button {display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:48px;border-radius:12px;font-size:14px}
body.dashboard-page #create[data-mode=manual] .manual-project-footer button svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body.dashboard-page #create[data-mode=manual] .manual-project-cost {display:grid;gap:2px;margin:0;text-align:center;font-size:12px;line-height:1.9}
body.dashboard-page #create[data-mode=manual] .manual-project-cost strong {color:var(--ui-text);font-size:12px;font-weight:500}
body.dashboard-page #create[data-mode=manual] .creation-modal-close {position:absolute;inset:20px auto auto 20px;display:grid;place-items:center;width:44px;height:44px;margin:0;padding:12px;color:var(--ui-muted);border-radius:10px}
body.dashboard-page #create[data-mode=manual] .creation-modal-close:hover {color:var(--ui-text);background:var(--ui-hover)}
@media(max-width:540px) {
 body.dashboard-page #create.active[data-mode=manual] {padding:16px}
 body.dashboard-page #create.active[data-mode=manual] > .studio-panel.manual-project-studio:not([hidden]) {padding:24px;max-height:calc(100dvh - 32px);border-radius:16px}
 body.dashboard-page #create[data-mode=manual] .manual-project-intro h2 {font-size:20px}
 body.dashboard-page #create[data-mode=manual] .creation-modal-close {inset:12px auto auto 12px}
}
/****** Billing, settings, developer and support surfaces ******/
/* Reserve separate columns for opening an alert and dismissing it. */
.notifications-panel {width:min(410px,calc(100vw - 24px));right:auto}
.notifications-panel .notification-item {display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:start;gap:4px;padding:6px}
.notifications-panel .notification-open {padding:10px 8px;min-width:0;border:0;background:transparent;text-align:start;align-items:start;box-shadow:none}
.notifications-panel .notification-remove {position:static;display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;border:0;background:transparent;box-shadow:none}
.notifications-panel .notification-open:hover,.notifications-panel .notification-remove:hover {background:var(--ui-hover)}
/* Keep the switch track and thumb in one geometry instead of a native checkbox
   with the retired switch thumb protruding from it. */
:is(.settings-switch,.settings-feature-switch) input[type=checkbox] {appearance:none;-webkit-appearance:none;position:relative;flex:0 0 44px;width:44px;min-width:44px;height:24px;padding:0;margin:0;border:0;border-radius:99px;background:var(--ui-line-strong);cursor:pointer}
:is(.settings-switch,.settings-feature-switch) input[type=checkbox]::after {content:'';position:absolute;top:3px;right:3px;width:18px;height:18px;border-radius:50%;background:var(--ui-text);transition:right .18s}
:is(.settings-switch,.settings-feature-switch) input[type=checkbox]:checked {background:var(--ui-accent-fill)}
:is(.settings-switch,.settings-feature-switch) input[type=checkbox]:checked::after {right:23px;background:var(--ui-accent-on,#fff)}
.billing-confirm-dialog header [data-billing-cancel] {min-width:44px;min-height:44px;padding:0}
.billing-overview {gap:20px}
.billing-balance-hero {padding:28px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:16px}
.balance-card::before,.balance-card::after {content:none}
.balance-card strong {color:var(--ui-text)}
.billing-summary-grid {gap:12px}
.summary-card {padding:18px;background:var(--ui-surface)}
.summary-card strong {font-size:22px;color:var(--ui-text)}
.billing-section-head h2 {font-size:19px}
:is(.plan-card,.billing-credit-pack-option,.credit-pack-option) {padding:20px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:14px}
:is(.plan-card.featured,.billing-credit-pack-option.active,.credit-pack-option.active) {border-color:var(--ui-accent);background:var(--ui-accent-soft)}
.billing-trust-row>div {background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:12px;padding:18px}
.ledger-tabs {border-bottom:1px solid var(--ui-line);padding-bottom:8px}
.user-settings-layout {display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px}
.user-settings-nav {display:flex;flex-direction:column;gap:6px;background:transparent;border:0;padding:0}
.user-settings-nav>button {width:100%;background:transparent;border:0;text-align:start;margin-bottom:6px;padding:14px;border-radius:12px;color:var(--ui-muted)}
.user-settings-nav>button.active {background:var(--ui-accent-soft);color:var(--ui-accent)}
.user-settings-nav svg {fill:none;stroke:currentColor;stroke-width:1.5}
.settings-card {margin-bottom:20px}
.settings-card-title {border-color:var(--ui-line)}
.settings-card-icon,.settings-profile-mark {background:var(--ui-accent-soft);color:var(--ui-accent);border-radius:12px}
.settings-content-head .settings-profile-mark {display:none}
.settings-content-head {gap:16px}
.settings-content-head p,.settings-card-title p {max-width:68ch;line-height:1.9}
.settings-meta-row strong {font-variant-numeric:tabular-nums}
.settings-form-actions {display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.settings-card footer {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;border-top:1px solid var(--ui-line);padding-top:20px;margin-top:24px;gap:16px}
.settings-readonly-field {border:0;border-radius:10px;padding:12px;background:var(--ui-raised)}
#developers .dev-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
#developers :is(.dev-card,.dev-stat,.dev-step>div) {min-width:0;padding:22px}
.dev-hero {background:transparent;border:0;padding:0 0 24px}
/* Ticket inbox: a scannable list and a conversation with a clear next step. */
.ticket-page .ticket-hero {display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0;margin:0 0 22px}
.ticket-page .ticket-hero h1 {margin:0;font-size:26px;line-height:1.6}
.ticket-page .ticket-hero p {margin:4px 0 0;font-size:14px}
.ticket-page .ticket-hero .primary-button {flex:none;min-height:46px}
.ticket-page .ticket-summary {display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}
.ticket-page .ticket-summary .summary-card {display:flex;align-items:center;justify-content:center;gap:12px;min-height:46px;padding:9px 15px;border-radius:10px;font-size:13px;text-align:start;cursor:pointer}
.ticket-page .summary-card::after,.ticket-page .summary-card strong::after {content:none}
.ticket-page .summary-card strong {display:grid;place-items:center;min-width:24px;margin:0;font-size:14px;font-variant-numeric:tabular-nums;line-height:1.6}
.ticket-page .ticket-workspace {display:grid;grid-template-columns:minmax(310px,.7fr) minmax(0,1.4fr);height:max(700px,calc(100dvh - 270px));min-height:0;overflow:hidden;border-radius:16px}
.ticket-page .ticket-list-panel {display:flex;flex-direction:column;min-height:0;min-width:0;border-inline-end:1px solid var(--ui-line)}
.ticket-list-heading {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;padding:18px 18px 0}
.ticket-list-heading h2 {margin:0;font-size:15px}
.ticket-list-heading>span {font-size:11px;color:var(--ui-muted)}
.ticket-page .list-toolbar {padding:14px 16px 8px;gap:8px}
.ticket-page .ticket-search {min-width:0;border:1px solid var(--ui-line-strong);border-radius:var(--ui-control-radius);background:var(--ui-input);padding-inline:10px}
.ticket-search-icon {width:17px;height:17px;flex:none;color:var(--ui-muted)}
.ticket-page .ticket-search input {min-width:0;font-size:12px;padding-inline:0}
.ticket-page .list-toolbar>button {display:grid;place-items:center;flex:none;width:44px;min-height:44px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-raised);color:var(--ui-muted)}
.ticket-page .list-toolbar>button svg {width:20px;height:20px}
.ticket-page .ticket-filter-row {padding:0 16px 14px;gap:8px}
.ticket-page .ticket-filter-row :is(select,.podly-select-trigger) {font-size:12px}
.ticket-page .ticket-filter-row .podly-select-leading {display:none}
.ticket-page .ticket-list {height:auto;min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;border-top:1px solid var(--ui-line)}
.ticket-page .ticket-item {display:flex;flex-direction:column;align-items:stretch;gap:8px;width:100%;padding:17px 18px;border:0;border-bottom:1px solid var(--ui-line);border-radius:0;background:transparent;color:var(--ui-text);text-align:start}
.ticket-page .ticket-item:hover {background:var(--ui-hover)}
.ticket-page .ticket-item.active {background:var(--ui-accent-soft);box-shadow:inset 0 0 0 1px var(--ui-accent)}
.ticket-page .ticket-item:focus-visible {outline:2px solid var(--ui-accent);outline-offset:-3px}
.ticket-page .ticket-item-head {display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0;color:var(--ui-muted);font-size:11px}
.ticket-page .ticket-number {direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums;font-size:12px;font-weight:500}
.ticket-item-subject {font-size:15px;font-weight:700;line-height:1.8;overflow-wrap:anywhere}
.ticket-item-preview {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:var(--ui-muted);font-size:12px;line-height:1.9;overflow-wrap:anywhere}
.ticket-page .ticket-item-meta {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:2px}
.ticket-item-category {margin-inline-start:auto;font-size:11px;color:var(--ui-muted)}
.ticket-unread-label {display:inline-flex;align-items:center;gap:5px;color:var(--ui-accent);font-size:11px;font-weight:650}
.ticket-page .unread-dot {display:inline-block;width:6px;height:6px;flex:none;border-radius:50%;background:currentColor}
.ticket-page .ticket-pagination {min-height:0;padding:0}
.ticket-page .ticket-pagination:not(:empty) {padding:12px;border-top:1px solid var(--ui-line)}
.ticket-page .ticket-detail-panel {display:flex;flex-direction:column;min-width:0;min-height:0}
.ticket-page .detail-empty {height:100%;min-height:0;padding:28px;gap:0}
.ticket-page .detail-empty>span {width:52px;height:52px;background:var(--ui-raised);border-radius:14px;color:var(--ui-muted)}
.ticket-page .detail-empty svg {width:28px;height:28px}
.ticket-page .detail-empty h2 {font-size:20px;margin:18px 0 8px}
.ticket-page .detail-empty p {max-width:40ch;margin:0 0 12px;line-height:2}
.ticket-page .detail-empty small {max-width:42ch;color:var(--ui-muted);font-size:12px;line-height:1.9}
.ticket-page .detail-header {display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:20px 22px 14px;border-bottom:0}
.detail-heading {min-width:0}
.ticket-page .detail-header h2 {margin:10px 0 6px;font-size:20px;line-height:1.8;overflow-wrap:anywhere}
.ticket-page .detail-header h2:focus {outline:0}
.ticket-page .detail-title-row {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ticket-page .detail-title-row [data-back-list] {display:none}
.ticket-page .detail-meta {display:flex;flex-wrap:wrap;gap:4px 14px;color:var(--ui-muted);font-size:11px}
.ticket-page .detail-actions {flex:none}
.ticket-page .detail-actions button {min-height:40px;font-size:12px;white-space:nowrap}
.ticket-next-step {margin:0 22px 14px;padding:12px 14px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-raised)}
.ticket-next-step strong {font-size:13px}
.ticket-next-step p {margin:3px 0 0;font-size:12px;line-height:1.9}
.ticket-thread {display:flex;flex:1;flex-direction:column;min-height:100px;overflow:hidden;border-top:1px solid var(--ui-line)}
.ticket-thread-heading {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 22px 0}
.ticket-thread-heading h3 {margin:0;font-size:12px;font-weight:600;color:var(--ui-muted)}
.ticket-thread-heading>span {font-size:11px;color:var(--ui-muted)}
.ticket-page .conversation {height:auto;min-height:0;flex:1;padding:16px 22px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.ticket-page .message-row {display:flex;margin-bottom:16px}
.ticket-page .message-row:last-child {margin-bottom:0}
.ticket-page .message-bubble {max-width:min(88%,650px);padding:12px 15px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-raised);color:var(--ui-text)}
.ticket-page .message-row.user {justify-content:flex-start}
.ticket-page .message-row.admin {justify-content:flex-end}
.ticket-page .message-row.admin .message-bubble {background:var(--ui-accent-soft)}
.ticket-page .message-author {display:flex;justify-content:space-between;flex-wrap:wrap;gap:3px 20px;margin-bottom:7px;font-size:11px}
.ticket-page .message-author time {color:var(--ui-muted);font-size:10px}
.ticket-page .message-bubble p {font-size:13px;line-height:2;overflow-wrap:anywhere;color:var(--ui-text)}
.ticket-page .reply-box {flex:none;padding:14px 22px 12px;border-top:1px solid var(--ui-line);background:var(--ui-input)}
.reply-label {display:block;margin-bottom:7px;font-size:12px;font-weight:650}
.ticket-page .reply-box textarea {min-height:76px;height:76px;max-height:180px;margin:0;font-size:13px}
.ticket-page .reply-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-top:4px}
.ticket-page .reply-actions small {color:var(--ui-muted);font-size:10px}
.ticket-page .reply-actions .primary-button {min-height:40px;padding:8px 16px;margin-inline-start:auto;margin-right:auto;font-size:13px}
.ticket-page .reply-file {min-height:40px;max-width:100%;padding:4px 0;font-size:12px;color:var(--ui-muted);flex-wrap:wrap;overflow-wrap:anywhere}
.ticket-page .reply-file:focus-within {outline:2px solid var(--ui-accent);outline-offset:3px;border-radius:4px}
.ticket-page .reply-file input {pointer-events:auto;width:1px;height:1px;clip-path:inset(50%)}
.ticket-page .reply-state:empty {display:none}
.ticket-page .ticket-finished {padding:16px 22px;border-top:1px solid var(--ui-line);font-size:12px;color:var(--ui-muted)}
.ticket-page .ticket-rating {flex:none;max-height:300px;overflow:auto;border-top:1px solid var(--ui-line)}
.ticket-page .ticket-workspace.ticket-onboarding {height:auto;min-height:0;display:block}
.ticket-page .ticket-onboarding .ticket-list-panel {border:0}
.ticket-page .ticket-onboarding .ticket-list {border:0}
@media(max-width:1100px) and (min-width:901px) {
 .ticket-page .ticket-workspace {grid-template-columns:minmax(280px,.85fr) minmax(0,1.15fr);height:max(780px,calc(100dvh - 270px))}
 .ticket-page .reply-actions small {display:none}
 .ticket-page .detail-header {flex-wrap:wrap}
}
@media(max-width:900px) {
 .ticket-page .ticket-workspace {display:block;height:auto;min-height:0}
 .ticket-page .ticket-list-panel {border-inline-end:0}
 .ticket-page .ticket-list {height:auto;max-height:none;min-height:240px;overflow:visible}
 .ticket-page .ticket-detail-panel {display:none}
 .ticket-page .detail-open .ticket-list-panel {display:none}
 .ticket-page .detail-open .ticket-detail-panel {display:flex;min-height:620px}
 .ticket-page .detail-title-row [data-back-list] {display:inline-flex;align-items:center;min-height:44px;padding:6px 10px;font-size:12px}
 .ticket-page .conversation {max-height:440px;min-height:220px}
 .ticket-page:has(.detail-open) .ticket-summary {display:none}
 .ticket-page:has(.detail-open) .ticket-hero {margin-bottom:16px}
}
@media(max-width:620px) {
 .ticket-page .ticket-hero {align-items:flex-start;gap:12px;margin-bottom:18px}
 .ticket-page .ticket-hero h1 {font-size:21px}
 .ticket-page .ticket-hero p {font-size:12px}
 .ticket-page .ticket-hero .primary-button {padding:10px 12px;font-size:12px;white-space:nowrap}
 .ticket-page .ticket-summary {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px}
 .ticket-page .ticket-summary .summary-card {justify-content:space-between;padding:8px 12px;font-size:12px}
 .ticket-page .ticket-list-heading {padding:16px 14px 0}
 .ticket-page .detail-header {flex-direction:row;flex-wrap:wrap;padding:14px}
 .ticket-page .detail-header h2 {font-size:18px}
 .ticket-page .detail-meta {gap:4px 10px}
 .ticket-page .detail-actions {margin-inline-start:auto}
 .ticket-next-step {margin:0 14px 14px}
 .ticket-page .conversation {padding:14px}
 .ticket-thread-heading {padding:12px 14px 0}
 .ticket-page .message-bubble {max-width:94%}
 .ticket-page .reply-box {padding:14px}
 .ticket-page .reply-actions small {display:none}
}
/* Empty states use actual icons and consistent support choices. */
:is(.notifications-empty.large>span,.no-result-icon,.quick-start-icon) {display:grid;place-items:center;width:44px;height:44px;margin-inline:auto;color:var(--ui-muted)}
:is(.notifications-empty.large>span,.no-result-icon,.quick-start-icon) svg {width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.6}
.dashboard-ticket-center .ticket-onboarding .quick-start-grid>:is(a,button) {display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:18px;border:0;border-radius:12px;background:var(--ui-raised);color:var(--ui-text);text-align:start;text-decoration:none;font-size:13px;font-weight:550;line-height:1.8}
.dashboard-ticket-center .ticket-onboarding .quick-start-grid>:is(a,button):hover {background:var(--ui-hover);text-decoration:none}
.dashboard-ticket-center .ticket-onboarding .quick-start-grid b {display:flex;align-items:center;gap:8px}
.dashboard-ticket-center .ticket-onboarding .quick-start-grid b span {display:grid;place-items:center;flex:none;width:28px;height:28px;margin:0;color:var(--ui-accent)}
.dashboard-ticket-center .ticket-onboarding .quick-start-grid em {font-style:normal;font-weight:400;color:var(--ui-muted)}
/* Fixed content rows align every plan, including the free tier. */
body.dashboard-page #billing .billing-plan-grid {align-items:stretch}
body.dashboard-page #billing .billing-plan-grid .billing-plan-card {display:grid;grid-template-rows:28px minmax(54px,auto) 40px 74px 46px 1fr;gap:14px;width:100%;max-width:none;min-height:0;padding:22px;transform:none}
body.dashboard-page #billing .billing-plan-card>:is(.plan-current,.plan-free,.plan-popular) {position:static;grid-row:1;justify-self:start;align-self:start;max-width:100%;white-space:nowrap;line-height:20px}
body.dashboard-page #billing .billing-plan-card :is(.plan-card-top),
body.dashboard-page #billing .billing-plan-card.featured .plan-card-top {grid-row:2;min-height:0;padding:0;align-self:start}
body.dashboard-page #billing .billing-plan-card .plan-storage {grid-row:3;display:flex;align-items:baseline;gap:6px;margin:0;align-self:start}
body.dashboard-page #billing .billing-plan-card .plan-price {grid-row:4;display:flex;align-content:start;align-items:baseline;flex-wrap:wrap;gap:4px 6px;margin:0;padding:0}
body.dashboard-page #billing .billing-plan-card .plan-price small {width:100%;margin:0}
body.dashboard-page #billing .billing-plan-card .plan-purchase {grid-row:5;margin:0;padding:0;min-height:46px}
body.dashboard-page #billing .billing-plan-card ul {grid-row:6;align-content:start;margin:12px 0 0;padding:0;list-style:none}
#billing .billing-product-explainer {padding:0 0 24px;border:0;border-bottom:1px solid var(--ui-line);border-radius:0;background:transparent;box-shadow:none}
#billing .billing-product-explainer>div {display:flex;flex-direction:column;align-items:flex-start;gap:8px}
#billing .billing-product-explainer p {margin:0}
#billing .billing-product-explainer button {border:0;background:transparent;color:var(--ui-accent);padding-inline:0;text-align:start}
/* Editor workspaces: preserve coordinates; replace every painted surface. */
body:is(.manual-editor-page) {background:var(--ui-bg);font:14px/1.85 var(--ui-font);color:var(--ui-text)}
:is(.manual-shell) {background:var(--ui-bg)}
:is(.manual-header) {background:var(--ui-sidebar);border:0;border-bottom:1px solid var(--ui-line);padding:16px 24px;gap:16px}
:is(.manual-header) h1 {font-size:19px;margin:0}
:is(.manual-library,.manual-workspace,.manual-inspector) {background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:14px}
:is(.manual-library,.manual-inspector) {padding:18px}
:is(.manual-toolbar,.manual-panel-head,.music-library-header) {border-color:var(--ui-line)}
:is(.timeline,.timeline-body,.timeline-scroll,.timeline-viewport,.wave-wrap,.wave-shell,.manual-timeline,.manual-timeline-scroll) {background:var(--ui-bg);border-color:var(--ui-line);border-radius:10px}
:is(.time-ruler,.timeline-ruler,.track-label,.track-labels,.timeline-track-head) {background:var(--ui-raised);color:var(--ui-muted);border-color:var(--ui-line)}
:is(.clip,.timeline-clip,.manual-clip) {background:var(--ui-accent-soft);color:var(--ui-accent);border:1px solid var(--ui-accent);border-radius:9px}
:is(.clip,.timeline-clip,.manual-clip).selected {outline:2px solid var(--ui-accent);outline-offset:2px}
:is(.playhead) {background:var(--ui-action)}
:is(.track,.timeline-track,.manual-track) {border-color:var(--ui-line)}
.transport-bar {display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px;background:var(--ui-raised);border:1px solid var(--ui-line);border-radius:12px;margin-bottom:16px}
 .transport-bar button {min-width:44px;min-height:44px;border-radius:50%}
:is(.transport #playMix,.transport-quick button) {display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;line-height:1}
:is(.transport-quick button) svg {display:block;width:22px;height:22px;fill:currentColor;stroke:none}
#playMix svg {display:block;width:22px;height:22px}
#playMix [data-icon-state] {display:none}
#playMix[data-play-state=play] [data-icon-state=play],#playMix[data-play-state=pause] [data-icon-state=pause],#playMix[data-play-state=loading] [data-icon-state=loading] {display:block}
#playMix[data-play-state=loading] svg {animation:studio-spin 1s linear infinite}
@keyframes studio-spin {to{transform:rotate(360deg)}}
:is(.transport #playMix) {background:var(--ui-action);color:var(--ui-action-on);border:0;border-radius:50%}
:is(.manual-library-card,.manual-segment,.music-library-item,.music-clip-controls) {background:var(--ui-raised);border:1px solid var(--ui-line);border-radius:12px;color:var(--ui-text)}
:is(.manual-busy) {background:var(--ui-overlay)}
.audio-meta audio {display:none}
/* Compact library actions wrap within the available panel width. */
.manual-library-action {min-height:44px;padding:6px 10px;line-height:1.7;background:var(--ui-raised);border:1px solid var(--ui-line);border-radius:10px;color:var(--ui-text);font-size:13px}
.manual-library-action svg {color:var(--ui-accent);fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.manual-library-action:not(:disabled):hover {background:var(--ui-hover);border-color:var(--ui-accent)}
.manual-library-action:focus-visible {outline:2px solid var(--ui-accent);outline-offset:3px}
.manual-playhead,.manual-playhead::before {background:var(--ui-action)}
.manual-playhead {box-shadow:0 0 0 1px var(--ui-bg)}
.manual-range {background:color-mix(in srgb,var(--ui-accent) 18%,transparent);border-inline:1px solid var(--ui-accent);border-radius:0}
.manual-range>button,.manual-range>button:not(:disabled):hover {padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--ui-accent);transition:none}
.manual-range>button::before {content:'';position:absolute;top:0;bottom:0;left:calc(50% - 1px);width:2px;background:currentColor}
.manual-range>button::after {content:'';position:absolute;top:50%;left:calc(50% - 4px);width:8px;height:28px;transform:translateY(-50%);border-radius:4px;background:currentColor}
.manual-range>button:focus-visible {outline:2px solid var(--ui-accent);outline-offset:-2px}
#rangeOverlayLabel {padding:2px 4px;color:var(--ui-text);background:var(--ui-surface);font-size:11px;line-height:22px;font-variant-numeric:tabular-nums}
@media(max-width:760px){
 .manual-header {padding:12px;gap:12px;align-items:flex-start}
 .manual-heading {flex:1 1 100%;min-width:0}
 .manual-heading>div {min-width:0;flex:1}
 .manual-heading h1 {font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .manual-header-actions {width:100%;justify-content:space-between}
 .manual-header-actions :is(#exportMix,#finalizeMix,#publishMix) {display:none}
}
/* Responsive shell and stable interaction geometry */
@media(min-width:761px){
 html.sidebar-collapsed .sidebar {width:76px;padding-inline:10px}
 html.sidebar-collapsed .main-content {margin-right:76px}
 html.sidebar-collapsed .sidebar :is(.brand,.workspace-switcher .workspace-copy,.workspace-switcher .chevron,.nav-label,.nav-item b,.nav-item small,.sidebar-action b) {display:none}
 html.sidebar-collapsed .workspace-switcher {display:flex;justify-content:center;padding:8px;border:0}
 html.sidebar-collapsed .sidebar :is(.nav-item,.developer-sidebar-link) {justify-content:center;padding:12px}
 html.sidebar-collapsed .sidebar-actions {flex-direction:column}
}
@media(max-width:1100px){
 .user-settings-layout {grid-template-columns:minmax(0,1fr)}
 .user-settings-nav {position:static;display:flex;flex-direction:row;overflow:auto;max-width:100%;padding-bottom:8px}
 .user-settings-nav>button {flex:none;width:auto;min-height:44px;grid-template-columns:20px minmax(0,1fr);padding:10px 12px;gap:8px}
 .user-settings-nav :is(small,i) {display:none}
 .settings-card footer {position:static;margin-inline:0;padding-inline:0}

 #studioChooser .creation-hub-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
 .main-content {padding-inline:24px}.topbar{margin-inline:-24px;padding-inline:24px;gap:12px}
 .top-actions,.top-primary-actions,.top-account-actions {gap:6px}
 .top-primary-actions .dashboard-circle-shortcut {display:none}
 body.dashboard-page .topbar .top-account-actions>.dashboard-circle-mobile {display:inline-flex;justify-content:center;flex:0 0 auto;width:auto;min-width:44px;max-width:none;min-height:44px;padding:0 8px;gap:6px}
 #overview .overview-primary-grid {grid-template-columns:1fr}
 #overview .creation-quick-panel {min-height:0;flex-direction:row;align-items:center}
 #overview .creation-quick-panel h2 {font-size:20px;max-width:none}
}
@media(max-width:760px){
 .sidebar {width:min(300px,86vw);transform:translateX(105%);padding:18px 16px;z-index:210}
 .sidebar.open {transform:translateX(0)}
 .sidebar-backdrop.open {display:block;position:fixed;inset:0;background:var(--ui-overlay);z-index:200}
 .main-content {margin-right:0;padding:0 16px 40px}
 .topbar {margin:0 -16px 20px;padding:12px 16px;gap:8px;min-height:74px;flex-wrap:wrap}
 .mobile-menu {display:grid;flex:none}
 .sidebar-collapse {display:none}
 .breadcrumb strong {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.breadcrumb span {display:none}
 .top-actions {gap:6px}.top-primary-actions {display:none}.top-account-actions{gap:6px}
 .top-actions :is(.top-primary-actions,.top-account-actions)>:is(button,a) {width:44px;min-width:44px;max-width:44px;height:44px;padding:10px}
 .top-actions .hero-credit-trigger {padding-inline:10px;min-width:0;width:auto;gap:5px}
 .hero-credit-trigger>span {display:none}
 .top-actions .hero-credit-trigger strong {font-size:12px}

 .sidebar-mobile-close {display:grid;position:absolute;top:18px;left:16px;background:transparent}
 #overview.active {gap:16px}
 #overview .overview-stats {grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 #overview .stat-card {flex-direction:column;align-items:flex-start;padding:14px 10px;gap:10px;min-height:0}
 #overview .stat-card strong {font-size:20px}
 #overview .stat-card span,#overview .stat-card small {font-size:11px}
 #overview .stat-icon {width:32px;height:32px}
 #overview .creation-quick-panel {flex-direction:column;align-items:flex-start;padding:22px}
 #overview .creation-quick-button {align-self:flex-start}
 #overview .activity {grid-template-columns:20px minmax(0,1fr);gap:8px 12px}
 #overview .activity-main {display:grid;gap:4px}
 #overview .activity-main strong {font-size:14px}
 #overview .activity-action {grid-column:2;justify-self:start;padding-inline:0}
 #overview .overview-secondary-grid {grid-template-columns:1fr;gap:14px}
 .overview-secondary-grid>.panel {grid-column:auto;min-height:0}
 #studioChooser .creation-hub-grid {grid-template-columns:minmax(0,1fr);gap:12px}
 #studioChooser .choice-face-front {padding:18px 14px;min-height:225px}
 #studioChooser .choice-front-title {font-size:15px}
 #studioChooser .choice-front-description {font-size:12px}
 .library-summary {gap:8px}.library-summary>button {padding:12px;gap:8px;flex-direction:column;align-items:flex-start}.library-summary strong{font-size:21px}
 .library-controlbar {gap:10px}.library-search{flex-basis:100%}.library-select{flex:1;min-width:0}.library-select select{width:100%;min-width:0}.library-select>span{display:none}
 .user-settings-layout {display:block}.user-settings-nav{display:none}
 #developers .dev-grid {grid-template-columns:1fr}
 .creation-modal-panel,.creation-modal-dialog {width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:18px}
 .media-dialog {width:calc(100vw - 16px);padding:18px;max-height:calc(100dvh - 16px)}
 .section-header h1 {font-size:24px}.section-header p{font-size:13px}
 .studio-future-dialog .creation-future-grid {grid-template-columns:1fr}
 .studio-future-content {padding:16px}
 .studio-future-header {padding:12px 16px}
 :is(.manual-header) {padding:12px;gap:10px;flex-wrap:wrap}
}
@media(max-width:400px){
 .topbar .breadcrumb {display:none}
 .top-actions {flex:1;justify-content:flex-end}
 #studioChooser .choice-face-front {min-height:185px}
}
}
@layer workspace {
#overview>.overview-hero {grid-column:1/-1;width:100%;min-width:0;display:flex;align-items:center;justify-content:space-between;margin:0 0 4px;padding:0;background:transparent;border:0}
.overview-hero-copy {min-width:0;width:100%}
.overview-hero h1 {font-size:28px;max-width:none;margin:5px 0 8px}
.overview-kicker {font-size:12px;margin:0}
svg:not([fill]) {fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.library-card-placeholder {width:100%;position:absolute;inset:0}
:is(.community-compose-dialog,.community-modal-card,.community-publish-dialog,.community-profile-dialog,.profile-edit-dialog,.brand-profile-dialog,.branding-dialog,.brand-dialog,.cover-picker-dialog) {background:var(--ui-surface);color:var(--ui-text);border:1px solid var(--ui-line-strong);border-radius:20px;box-shadow:var(--ui-shadow)}
:is(.community-modal-backdrop,.community-compose-backdrop) {background:var(--ui-overlay)}
:is(.social-export-types,.social-export-presets,.social-export-summary) {border-color:var(--ui-line);background:var(--ui-raised);border-radius:12px}
.social-export {width:min(640px,calc(100vw - 24px))}
.social-export button[aria-pressed=true] {background:var(--ui-accent-soft);color:var(--ui-accent)}
.timeline-clip.music-clip {background:var(--ui-action-soft);color:var(--ui-action);border-color:var(--ui-action)}
.timeline-clip.insert-clip {background:var(--ui-info-soft);color:var(--ui-info);border-color:var(--ui-info)}
.clip-handle {background:var(--ui-accent)}
.transport-time,.timeline-tools {color:var(--ui-muted);font-size:12px}
.transport-time b {color:var(--ui-action)}
}
@layer workspace {
#create.active[data-mode]:not([data-mode=choose]) {position:fixed;inset:0;z-index:300;display:grid;place-items:center;width:100vw;height:100dvh;max-width:none;margin:0;padding:24px;overflow:auto;background:var(--ui-overlay);backdrop-filter:blur(5px)}
#create[data-mode]:not([data-mode=choose])>.studio-panel:not([hidden]) {position:relative;width:min(860px,100%);max-width:100%;max-height:calc(100dvh - 48px);min-height:0;margin:auto;padding:24px 28px;overflow:auto;background:var(--ui-surface);color:var(--ui-text);border:1px solid var(--ui-line-strong);border-radius:20px;box-shadow:var(--ui-shadow)}
#create .studio-panel>.section-header {display:none}
#create .creation-modal-close {position:sticky;top:0;left:0;display:grid;place-items:center;margin:0 auto -44px 0;z-index:15;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:transparent}
#create .creation-studio-layout {display:block;margin:0;max-width:none;width:100%;gap:0}
#create .creation-studio-aside {position:static;display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;text-align:start;padding:12px 0 20px;margin:0;gap:8px 14px;border-bottom:1px solid var(--ui-line);background:transparent}
#create .creation-studio-aside .wizard-progress {grid-column:1/-1;order:0;width:100%;margin:18px 0 0;gap:6px}
#create .wizard-progress-item {height:4px;min-height:4px;background:var(--ui-raised);border-radius:99px}
#create .wizard-progress-item.active,#create .wizard-progress-item.done {background:var(--ui-accent)}
#create .wizard-service-mark {grid-row:1/3;grid-column:1;width:44px;height:44px;margin:0;background:var(--ui-accent-soft);color:var(--ui-accent);border:0;border-radius:12px}
#create .wizard-service-mark svg {width:24px;height:24px}
#create .creation-studio-aside h2 {grid-column:2;margin:0;font-size:20px;padding-inline-end:48px}
#create .creation-studio-aside>p {grid-column:2;margin:0;font-size:12px}
#create .creation-wizard-card {width:100%;max-width:none;min-height:0;margin:0;padding:0;border:0;background:transparent;border-radius:0;box-shadow:none}
#create .creation-wizard-step>header {padding:18px 0 0;align-items:flex-start;text-align:start;border:0;gap:4px}
#create .creation-wizard-step>header h3 {font-size:18px;margin:3px 0}
#create .creation-wizard-step>header p {font-size:13px;max-width:none}
#create .creation-wizard-step>header span {font-size:12px;color:var(--ui-accent)}
#create .wizard-step-body {padding:18px 0;gap:18px}
#create .wizard-step-body label {font-size:13px;font-weight:500}
#create .wizard-step-body :is(input:not([type=checkbox]):not([type=radio]),textarea,select) {font-size:14px;width:100%}
#create .wizard-step-nav {border-top:1px solid var(--ui-line);padding-top:18px}
#create .wizard-step-nav button {min-height:44px;padding:10px 20px;border-radius:99px;font-size:13px}
#create .wizard-next {background:var(--ui-action);color:var(--ui-action-on);border:0}
#create .wizard-review-summary {background:var(--ui-raised);border:1px solid var(--ui-line);border-radius:12px;padding:18px}
#create .wizard-summary-head {background:transparent;color:var(--ui-text)}
@media(max-width:760px){
 #create.active[data-mode]:not([data-mode=choose]){padding:10px}
 #create[data-mode]:not([data-mode=choose])>.studio-panel:not([hidden]) {max-height:calc(100dvh - 20px);min-height:0;width:100%;padding:16px;border-radius:16px}
 #create .creation-studio-aside h2{font-size:18px}
 #create .creation-wizard-card .form-row{grid-template-columns:1fr}
}
}
@layer workspace {
#create .creation-studio-aside {display:block;text-align:start;padding-top:6px}
#create .wizard-service-mark,#create .wizard-eyebrow {display:none}
#create .creation-studio-aside h2 {padding-inline:0 58px;margin-bottom:8px}
#create .creation-studio-aside>p {display:none}
#create .wizard-progress {display:grid;width:100%;margin:20px 0 16px}
#create .wizard-current {display:grid;grid-template-columns:1fr;gap:4px;width:100%;min-width:0;padding:0;margin:0;border:0;text-align:start}
#create .wizard-current small {font-size:12px;color:var(--ui-accent)}
#create .wizard-current strong {font-size:17px}
#create .wizard-current span {font-size:13px;color:var(--ui-muted);line-height:1.9;max-width:100%}
#create .wizard-assurance {display:none}
.automation-option input {appearance:auto;width:20px;height:20px;margin:0;padding:0;background:none;border:initial}
.automation-option input::after {content:none}
#projectReviewDialog,#projectOutputDialog {width:min(850px,calc(100vw - 24px))}
#projectOutputDialog pre {white-space:pre-wrap;line-height:2;font-family:inherit}
#projectOutputDialog audio {width:100%}
.review-dialog-form {display:flex;flex-direction:column;gap:16px}
.review-dialog-form textarea {width:100%;min-height:40vh}
.review-dialog-head {display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.review-dialog-actions {display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.source-output-meta {background:var(--ui-accent-soft);color:var(--ui-accent);padding:16px;border-radius:12px}
}
@layer workspace {
#create .wizard-step-body {min-width:0}
#create .wizard-step-body>* {min-width:0;max-width:100%}
#create .wizard-step-body :is(.range-field,.slider-field,.duration-field,.duration-control) {min-width:0;max-width:100%}
#create .wizard-step-body input[type=range] {display:block;width:100%;max-width:100%}
#create .wizard-step-body :is(.form-row,.tts-options,.dialogue-options,.podcast-speaker-row) {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;max-width:100%}
#create .wizard-step-body :is(.form-row,.tts-options,.dialogue-options,.podcast-speaker-row)>* {min-width:0}
#create .wizard-step-body :is(select,input,textarea) {max-width:100%;min-width:0}
@media(max-width:560px){#create .wizard-step-body :is(.form-row,.tts-options,.dialogue-options,.podcast-speaker-row){grid-template-columns:1fr}}
}
@layer workspace {
/* Illustrated ready tools. Brand orange connects the catalog to dashboard actions. */
#studioChooser .studio-card-item {
 --studio-tone:var(--ui-accent);
 --studio-tint:var(--ui-accent-soft);
}
#studioChooser .studio-card-item:is([data-service=podcast],[data-service=advertisement]) {
 --studio-tone:var(--ui-action);--studio-tint:var(--ui-action-soft);
}
#studioChooser .studio-card-item:is([data-service=music],[data-service=meditation]) {
 --studio-tone:var(--ui-success);--studio-tint:var(--ui-success-soft);
}
#studioChooser .studio-card-item:is([data-service=occasion-message],[data-service=children-story]) {
 --studio-tone:var(--ui-danger);--studio-tint:var(--ui-danger-soft);
}
#studioChooser .studio-card-item .creation-choice {
 position:relative;isolation:isolate;min-height:260px;height:100%;border-radius:20px;
 border-color:color-mix(in srgb,var(--studio-tone) 23%,var(--ui-line));
 background:radial-gradient(ellipse at 12% 75%,color-mix(in srgb,var(--studio-tone) 9%,transparent),transparent 65%),var(--ui-surface);
 box-shadow:0 4px 16px #0000000a;
 transition:border-color 180ms ease,box-shadow 180ms ease,background-color 180ms ease;
}
#studioChooser .studio-card-item .creation-choice::before {
 content:"";position:absolute;z-index:-1;pointer-events:none;left:-10%;bottom:-80px;width:72%;height:130px;
 border:1px solid color-mix(in srgb,var(--studio-tone) 14%,transparent);border-radius:50%;transform:rotate(-12deg);
 background:linear-gradient(180deg,color-mix(in srgb,var(--studio-tone) 9%,transparent),transparent);
 box-shadow:18px -15px 0 color-mix(in srgb,var(--studio-tone) 3%,transparent);
}
#studioChooser .studio-card-item .choice-flip {width:100%;min-width:0;align-self:stretch}
#studioChooser .studio-card-item .choice-face-front {
 position:relative;isolation:auto;min-height:260px;width:100%;padding:22px 24px 74px;gap:9px;
}
#studioChooser .studio-card-item .choice-front-icon {
 position:static;flex:none;width:46px;height:46px;margin:0 0 3px;border-radius:13px;
 background:color-mix(in srgb,var(--studio-tone) 12%,var(--ui-surface));color:var(--studio-tone);
 border:1px solid color-mix(in srgb,var(--studio-tone) 24%,transparent);
}
#studioChooser .studio-card-item .choice-front-icon svg {visibility:visible;width:24px;height:24px}
#studioChooser .studio-card-item .studio-card-art {
 display:block;position:absolute;z-index:-1;inset:76px auto auto 18px;margin:0;margin-inline:0;width:30%;height:144px;
 object-fit:contain;object-position:left center;pointer-events:none;opacity:1;
 transition:transform 220ms ease;
}
#studioChooser .studio-card-item .choice-front-title {
 display:block;max-width:64%;font-size:18px;line-height:1.7;font-weight:750;text-wrap:balance;
}
#studioChooser .studio-card-item .choice-front-description {
 max-width:62%;margin:0;font-size:13px;font-weight:450;line-height:1.95;text-wrap:pretty;
}
#studioChooser .studio-card-item .choice-front-status {
 position:absolute;inset:auto auto 22px 22px;margin:0;margin-inline:0;padding:4px 9px;max-width:34%;
 color:var(--studio-tone);background:var(--studio-tint);border:1px solid color-mix(in srgb,var(--studio-tone) 22%,transparent);
 font-size:11px;line-height:1.7;
}
#studioChooser .studio-card-item .studio-card-arrow {
 position:absolute;inset:auto 16px 14px auto;display:inline-flex;align-items:center;justify-content:center;gap:8px;
 width:auto;max-width:62%;height:auto;min-height:44px;padding:8px 12px;border-radius:10px;
 font-size:13px;font-weight:700;line-height:1.7;color:var(--ui-action);background:transparent;
 transition:background-color 180ms ease,color 180ms ease;
}
#studioChooser .studio-card-item .studio-card-arrow svg {
 width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;transition:transform 180ms ease;
}
#studioChooser .studio-card-item .studio-card-pin {top:10px;left:10px;z-index:2;width:44px;height:44px;min-height:44px;color:var(--ui-subtle)}
#studioChooser .studio-card-item .studio-card-pin[aria-pressed=true] {color:var(--ui-action);background:var(--ui-action-soft)}
#studioChooser .studio-card-item .studio-card-pin:hover {color:var(--ui-action)}
#studioChooser .studio-card-item .creation-choice:focus-visible {outline:2px solid var(--ui-action);outline-offset:4px}
#studioChooser .studio-card-item .creation-choice:active {background-color:var(--studio-tint)}
@media(hover:hover) {
 #studioChooser .studio-card-item .creation-choice:hover {
  border-color:var(--studio-tone);background-color:var(--ui-raised);box-shadow:0 8px 28px color-mix(in srgb,var(--studio-tone) 10%,transparent);
 }
 #studioChooser .studio-card-item .creation-choice:hover .studio-card-arrow {background:var(--ui-action);color:var(--ui-action-on)}
 #studioChooser .studio-card-item .creation-choice:hover .studio-card-arrow svg {transform:translateX(-3px)}
 #studioChooser .studio-card-item .creation-choice:hover .studio-card-art {opacity:1;transform:translateY(-3px)}
}
/* Glass artwork has alpha, preserving its materials in both themes. */
@media(max-width:560px) {
 #studioChooser .studio-card-item .creation-choice {min-height:244px}
 #studioChooser .studio-card-item .choice-face-front {min-height:244px;padding:20px 18px 72px}
 #studioChooser .studio-card-item .choice-front-title {font-size:16px;max-width:64%}
 #studioChooser .studio-card-item .choice-front-description {max-width:64%;font-size:13px}
 #studioChooser .studio-card-item .studio-card-art {inset:78px auto auto 12px;width:29%;height:128px}
 #studioChooser .studio-card-item .studio-card-arrow {right:10px;font-size:12px}
 #studioChooser .studio-card-item .choice-front-status {left:16px;font-size:10px}
}
@media(prefers-reduced-motion:reduce) {
 #studioChooser .studio-card-item :is(.creation-choice,.studio-card-arrow,.studio-card-arrow svg,.studio-card-art) {transition:none;transform:none}
}
/* Labels, hints and counters each stay in normal flow at every text size. */
body.dashboard-page .ticket-modal .ticket-field,
body.dashboard-page .ticket-modal .ticket-field.podly-select-field {position:static;display:grid;min-width:0;gap:8px;margin:0 0 20px}
body.dashboard-page .ticket-modal .ticket-field::after {content:none}
body.dashboard-page .ticket-modal .ticket-field>.ticket-field-label {position:static;inset:auto;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;width:auto;height:auto;padding-inline:2px;line-height:1.9;pointer-events:auto}
body.dashboard-page .ticket-modal .ticket-field-label small {margin-inline-start:auto;color:var(--ui-muted);font-size:12px;font-weight:400}
body.dashboard-page .ticket-modal .ticket-field :is(input:not([type=file]),select) {min-height:54px;padding:12px 16px}
body.dashboard-page .ticket-modal .ticket-field select {padding-inline-end:48px}
body.dashboard-page .ticket-modal .ticket-field textarea {min-height:184px;padding:14px 16px;line-height:1.9}
body.dashboard-page .ticket-modal .ticket-wizard-actions {position:static;inset:auto;margin:16px 0 0;padding:0}
body.dashboard-page .ticket-character-counter {display:block;position:static;justify-self:end;margin:0;direction:ltr;unicode-bidi:isolate;white-space:nowrap;color:var(--ui-muted);font-size:12px;font-variant-numeric:tabular-nums}
body.dashboard-page .ticket-modal .ticket-file-remove {display:none;width:36px;height:36px;min-height:36px;padding:0;place-items:center}
body.dashboard-page .ticket-modal .attachment-field.has-file {grid-template-columns:46px minmax(0,1fr) auto 36px}
body.dashboard-page .ticket-modal .attachment-field.has-file .ticket-file-remove {display:grid}
@media(max-width:620px) {
 body.dashboard-page .ticket-modal .ticket-field>.ticket-field-label {flex-direction:column;gap:2px}
 body.dashboard-page .ticket-modal .ticket-field-label small {margin-inline-start:0}
 body.dashboard-page .ticket-modal .attachment-field.has-file {grid-template-columns:42px minmax(0,1fr) 36px}
 body.dashboard-page .ticket-modal .attachment-field.has-file em {grid-column:1 / 3;grid-row:2}
 body.dashboard-page .ticket-modal .attachment-field.has-file .ticket-file-remove {grid-column:3;grid-row:2}
}
}

/* Financial decisions stay in one column; only checkout uses a dialog. */
#billing :is(#creditTopupEstimate,#creditTopupError){grid-column:1/-1;margin:0;line-height:1.9}
#billing #creditTopupEstimate{color:var(--ui-text);font-weight:600}
/* These sections receive focus after jumping within billing. */
#billing :is(#creditTopup,#billingPackages,#billingLedger):focus{outline:none}
#billing .billing-plan-card ul{line-height:1.85}
.billing-confirm-dialog :is(#billingConfirmTerms,#billingConfirmNote,#billingConfirmCalculation){line-height:1.9;overflow-wrap:anywhere}
.billing-confirm-dialog .billing-confirm-calculation{margin-block:16px;padding-block:12px;border-block:1px solid var(--ui-line)}
.billing-confirm-dialog .billing-confirm-calculation summary{cursor:pointer;font-weight:600}
.billing-confirm-dialog #billingQuoteValidity{font-size:12px;color:var(--ui-muted)}
.payment-result-dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;color:var(--ui-text);background:var(--ui-surface)}
.payment-result-dialog .celebration-details p{margin:0}
@media(max-width:600px){.billing-confirm-dialog footer{flex-wrap:wrap}.billing-confirm-dialog footer button{flex:1 1 100%;white-space:normal}.billing-confirm-dialog .billing-confirm-inner{padding:20px}}
