/* MWD working studio: shared UI roles. Brand assets keep their original colors. */
:root {
 --studio-ink:#000c1a; --studio-copy:#0a1929; --studio-muted:#555d65;
 --studio-canvas:#f7f7f7; --studio-surface:#fefefe; --studio-quiet:#f2f2f2;
 --studio-teal:#11778e; --studio-focus:#087d8e;
 --studio-divider:#b9bec3; --studio-control:#78818a;
 --studio-gradient:linear-gradient(135deg,#000C1A 0%,#000C1A 30%,#10778E 70%,#11778E 100%);
 --navy:var(--studio-ink); --navy-2:var(--studio-ink); --teal:var(--studio-teal);
 --teal-soft:#edf5f6; --bg:var(--studio-canvas); --surface:var(--studio-surface);
 --surface-2:var(--studio-quiet); --text:var(--studio-copy); --muted:var(--studio-muted);
 --border:var(--studio-divider); --radius:8px;
}
body.studio-theme {background:var(--studio-canvas);color:var(--studio-copy);font-size:16px;line-height:1.5}
.studio-theme .main {background:var(--studio-canvas)}
.studio-theme .sidebar,.studio-theme .layout>aside {background:var(--studio-gradient);overflow-y:auto;scrollbar-width:thin}
.studio-theme .sidebar {padding:24px 18px;gap:20px}
.studio-theme .brand {gap:12px;padding-bottom:20px}
.studio-theme .brand-title {font-weight:700}
.studio-theme .nav {gap:3px}
.studio-theme .nav :is(button,a) {min-height:44px;border-radius:6px;color:#eef5f7;font-size:15px}
.studio-theme .nav :is(button,a).active {background:var(--studio-surface);color:var(--studio-ink);box-shadow:none;font-weight:650}
.studio-theme .nav :is(button,a):hover:not(.active) {background:#ffffff1a}
.studio-theme .nav-group-label {margin:18px 12px 6px;color:#d6e9ed;font-size:11px;font-weight:650;letter-spacing:.12em;text-transform:uppercase}
.studio-theme .nav-group-label:first-child {margin-top:0}
.studio-theme .topbar {background:var(--studio-surface);border-bottom:1px solid var(--studio-divider);padding:24px 32px;gap:20px;min-height:96px}
.studio-theme .page-title {color:var(--studio-ink);font-size:28px;font-weight:750;letter-spacing:-.025em}
.studio-theme .page-subtitle:empty {display:none}
.studio-theme .page-subtitle {font-size:14px;color:var(--studio-muted)}
.studio-theme .top-actions {gap:12px;flex-wrap:wrap}
.studio-theme .content {padding:28px 32px 64px}
.studio-theme .btn,.studio-theme button,.studio-theme .button {border-radius:6px;min-height:44px;font-weight:600}
.studio-theme .btn-primary,.studio-theme .btn-teal,.studio-theme button.primary,.studio-theme .button.primary,.studio-theme .button {background:var(--studio-ink);color:var(--studio-surface);border-color:var(--studio-ink);box-shadow:none}
.studio-theme .btn-primary:hover,.studio-theme .btn-teal:hover,.studio-theme button.primary:hover,.studio-theme .button:hover {background:#173743;border-color:#173743;filter:none;box-shadow:none}
.studio-theme .btn-primary:active,.studio-theme button.primary:active,.studio-theme .button:active {background:var(--studio-ink);box-shadow:inset 0 0 0 2px #ffffff66}
.studio-theme .btn-secondary,.studio-theme .secondary-button,.studio-theme .navigation-tools button {background:var(--studio-surface);color:var(--studio-ink);border:1px solid var(--studio-control)}
.studio-theme .btn-secondary:hover,.studio-theme .secondary-button:hover {background:var(--studio-quiet);border-color:var(--studio-ink)}
.studio-theme button:disabled,.studio-theme .btn:disabled {cursor:not-allowed;opacity:.6}
.studio-theme :is(input,select,textarea) {background:var(--studio-surface);color:var(--studio-copy);border:1px solid var(--studio-control);border-radius:6px;font:inherit;min-height:44px}
.studio-theme :is(input,textarea)::placeholder {color:var(--studio-muted);opacity:1}
.studio-theme :is(input[type=checkbox],input[type=radio]) {width:20px;min-width:20px;height:20px;min-height:20px;flex:none;accent-color:var(--studio-teal)}
.studio-theme .pm-filters label:has(input[type=checkbox]) {flex-direction:row;justify-content:flex-start;align-items:center;min-height:44px;text-align:left}
.studio-theme :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible {outline:3px solid var(--studio-focus);outline-offset:3px}
.studio-theme :is(.sidebar,.layout>aside) :focus-visible {outline-color:#fefefe}
.studio-theme .content a:not(.btn):not(.client-tabs a),.studio-theme .text-link {color:var(--studio-teal);text-underline-offset:4px}
.studio-theme .section-title,.studio-theme .modal-title {font-weight:700}
.studio-theme :is(.card,.table-wrap,.panel) {background:var(--studio-surface);border-color:var(--studio-divider);border-radius:8px;box-shadow:none}
.studio-theme .stat {background:var(--studio-surface);border:1px solid var(--studio-divider);border-top:2px solid var(--studio-ink);padding:20px}
.studio-theme .stat-value {color:var(--studio-ink);font-size:32px;font-weight:700;font-variant-numeric:tabular-nums}
.studio-theme :is(.stat-note,.stat-label,.help,.cell-sub,.project-meta,.task-meta) {color:var(--studio-muted);font-size:14px}
.studio-theme .hub-section,.studio-theme .panel,.studio-theme .pm-form,.studio-theme .guide-section,.studio-theme .client-section {background:var(--studio-surface);border:1px solid var(--studio-ink);border-radius:8px;box-shadow:none}
.studio-theme .hub-section {padding:24px;margin-block:28px}
.studio-theme .hub-section>:is(h2,h3,.section-head,.pm-toolbar):first-child {margin:-24px -24px 20px;padding:20px 24px;background:var(--studio-surface);border-bottom:1px solid var(--studio-ink);border-radius:8px 8px 0 0;color:var(--studio-ink)}
.studio-theme .hub-section>:is(h2,h3),.studio-theme .hub-section :is(.section-head h2,.pm-toolbar h3) {font-size:22px;font-weight:700}
.studio-theme .hub-section .hub-section {border:0;border-top:1px solid var(--studio-divider);border-radius:0;padding:24px 0;margin-block:24px 0}
.studio-theme .hub-section .hub-section>:is(h2,h3,.section-head,.pm-toolbar):first-child {margin:0 0 16px;padding:0;border:0}
.studio-theme :is(th,.modal-head,.integration-head,.client-section-head,.panel-heading,.heading,.website-content .panel-heading) {background:var(--studio-surface);color:var(--studio-ink);border-color:var(--studio-divider)}
.studio-theme th {font-size:13px;text-transform:none;letter-spacing:0;font-weight:650}
.studio-theme :is(td,.pm-row,.activity-item,.record) {border-color:var(--studio-divider)}
.studio-theme :is(td,.billing-facts dd) {font-variant-numeric:tabular-nums}
.studio-theme .notice {background:var(--studio-quiet);border:1px solid var(--studio-divider);color:var(--studio-copy);border-radius:6px;font-size:14px}
.studio-theme .notice.warning {background:#fff7e6;color:#755100;border-color:#ad8429}
.studio-theme .dashboard-help {margin-bottom:20px;font-size:14px;color:var(--studio-muted)}
.studio-theme .dashboard-help button {border:0;background:transparent;color:var(--studio-teal);text-decoration:underline;padding:0;min-height:24px}
.studio-theme .progress span {background:var(--studio-teal)}
.studio-theme .project-name.btn,.studio-theme .pm-project-card>div>button {padding:0;background:transparent;border:0;color:var(--studio-ink);font-size:18px;font-weight:700;text-decoration:underline;text-underline-offset:4px;text-align:left;min-height:44px;justify-content:flex-start}
.studio-theme .pm-project-card>div>button:hover,.studio-theme .project-name.btn:hover {color:var(--studio-teal)}
.studio-theme .project-business-group {border:0;background:var(--studio-surface);border-radius:0}
.studio-theme .project-business-group>h3 {background:var(--studio-quiet);border-block:1px solid var(--studio-divider);font-size:18px;padding:16px}
.studio-theme .pm-summary {background:var(--studio-quiet);border:1px solid var(--studio-divider);border-radius:6px;gap:16px;padding:20px}
.studio-theme .pm-summary p {margin:0}
.studio-theme .pm-summary p:nth-child(3) {grid-column:1/-1;padding-top:16px;border-top:1px solid var(--studio-divider)}
.studio-theme .section-count {background:var(--studio-quiet);color:var(--studio-copy);border:1px solid var(--studio-divider);border-radius:6px}
.studio-theme .work-bucket {border:1px solid var(--studio-ink)}
.studio-theme .bucket-heading {background:var(--studio-surface);border-bottom:1px solid var(--studio-ink);margin:-24px -24px 16px;padding:20px 24px}
.studio-theme .bucket-heading h3 {font-size:22px;font-weight:700}
.studio-theme .work-overdue .bucket-heading {background:#fff6f4}
.studio-theme .work-today .bucket-heading {background:#fff9ed}
.studio-theme .work-waiting .bucket-heading {background:#f5f3f7}
.studio-theme .work-bucket .pm-task-row {background:transparent;border:0;border-bottom:1px solid var(--studio-divider);border-radius:0;padding:18px 0;margin:0}
.studio-theme .work-bucket .pm-task-row:last-child {border:0}
.studio-theme .work-empty {background:transparent;border:1px solid var(--studio-divider);border-radius:6px;padding:12px 16px}
.studio-theme .work-empty summary {min-height:24px;color:var(--studio-muted)}
.studio-theme .work-empty p {margin:8px 0;color:var(--studio-muted)}
.studio-theme .client-tabs a[aria-current],.studio-theme .billing-tabs .btn[aria-pressed=true],.studio-theme .tabs a[aria-current=page],.studio-theme .brand-tabs button[aria-selected=true],.studio-theme .website-nav button[aria-current=page] {background:var(--studio-quiet);color:var(--studio-ink);border-color:var(--studio-teal);font-weight:650}
.studio-theme .calendar-day {background:var(--studio-surface);border-color:var(--studio-control);color:var(--studio-copy)}
.studio-theme .calendar-day.is-selected {background:#edf5f6;border-color:var(--studio-teal)}
.studio-theme .calendar-day:hover {background:var(--studio-quiet)}
.studio-theme .workspace-tools {position:relative}
.studio-theme .workspace-tools>summary {list-style:none;display:flex;align-items:center;gap:10px;cursor:pointer}
.studio-theme .workspace-tools>summary::-webkit-details-marker {display:none}
.studio-theme .workspace-tools>summary::after {content:'⌄';font-size:16px}
.studio-theme .workspace-tools-panel {position:absolute;right:0;top:calc(100% + 10px);min-width:220px;padding:8px;background:var(--studio-surface);border:1px solid var(--studio-control);border-radius:8px;box-shadow:0 8px 24px #000c1a1f;z-index:30;display:grid;gap:4px}
.studio-theme .workspace-tools-panel button {text-align:left;justify-content:flex-start;border:0;box-shadow:none}
.studio-theme .mobile-menu summary {background:var(--studio-ink);color:var(--studio-surface)}
.studio-theme .mobile-menu nav {background:var(--studio-surface);border-color:var(--studio-control)}
.studio-theme .mobile-menu .nav-group-label {color:var(--studio-muted)}
.studio-theme .mobile-menu .active {background:var(--studio-quiet);color:var(--studio-ink);font-weight:650}
.studio-theme .mobile-menu summary:focus-visible {outline-color:var(--studio-focus)}
.studio-theme :is(.overview-brand,.overview-brand.compact,.overview-snippets,.local-note,.navigation-tools,.draft-toolbar,.logo-info,.body,.section-actions,.section-editor,.asset-form,.source-note,.guide-row,.note,.download-icon,.sample,.question-answer-section>h3) {color:var(--studio-copy);border-color:var(--studio-divider)}
.studio-theme :is(.local-note,.source-note,.note,.section-editor,.asset-form,.question-answer-section>h3) {background:var(--studio-quiet)}
.studio-theme .layout main>header {background:var(--studio-surface);border-color:var(--studio-divider)}
.studio-theme .layout main .content>section {border:1px solid var(--studio-ink);border-radius:8px;background:var(--studio-surface)}
.studio-theme .layout main .heading {border-bottom:1px solid var(--studio-ink)}
.studio-theme .layout main :is(h1,h2,h3) {color:var(--studio-ink)}
.studio-theme .layout main :is(p,small) {color:var(--studio-muted)}
.studio-theme .asset-item {background:var(--studio-surface);border-color:var(--studio-divider)}
.studio-theme .upload-portal,.studio-theme .login-screen {background:var(--studio-canvas)}
.studio-theme .login-card {border:1px solid var(--studio-ink);border-top:4px solid var(--studio-ink);border-radius:8px;box-shadow:none}
.studio-theme .login-card h1 {font-weight:750}
/* Only opt-in, non-color-critical project previews receive this effect. */
.studio-preview-image {filter:none;transition:filter 200ms cubic-bezier(.22,1,.36,1)}
@media(hover:hover) and (pointer:fine) {
 .studio-preview-link .studio-preview-image {filter:grayscale(.8) sepia(.2) hue-rotate(180deg) contrast(1.1)}
 .studio-preview-link:hover .studio-preview-image,.studio-preview-link:focus-within .studio-preview-image {filter:grayscale(0) sepia(0) contrast(1.05)}
}
@media(max-width:820px) {
 .studio-theme .topbar {padding:16px;min-height:0;align-items:center;gap:12px}
 .studio-theme .topbar>div:first-child {padding-left:48px}
 .studio-theme .page-title {font-size:24px}
 .studio-theme .top-actions {width:100%;gap:10px}
 .studio-theme .content {padding:20px 16px 56px}
 .studio-theme .top-actions [data-action=inbox-open] {margin:0;padding-right:14px}
 .studio-theme .top-actions [data-action=inbox-open] .notification-count {position:static;box-shadow:none;margin-left:8px}
 .studio-theme .workspace-tools {margin-left:auto}
 .studio-theme .hub-section {padding:16px;margin-block:24px}
 .studio-theme .hub-section>:is(h2,h3,.section-head,.pm-toolbar):first-child {margin:-16px -16px 16px;padding:16px}
 .studio-theme .bucket-heading {margin:-16px -16px 16px;padding:16px}
 .studio-theme :is(.hub-section>:is(h2,h3),.hub-section .section-head h2,.hub-section .pm-toolbar h3,.bucket-heading h3) {font-size:20px}
 .studio-theme .hub-section .hub-section {padding:20px 0;margin-block:20px 0}
 .studio-theme .hub-section .hub-section>:is(h2,h3,.section-head,.pm-toolbar):first-child {margin:0 0 16px;padding:0}
}
@media(prefers-reduced-motion:reduce) {.studio-theme *,.studio-preview-image {transition:none!important;animation:none!important;scroll-behavior:auto!important}}
.studio-skip{position:fixed;top:8px;left:8px;transform:translateY(-200%);z-index:200;background:#000c1a;color:#fefefe;padding:12px 18px;border-radius:6px}
.studio-skip:focus{transform:none}
/* Public request forms share the same controls without recoloring document artwork. */
.studio-theme :is(button[type=submit],.upload-finish button) {background:var(--studio-ink);color:var(--studio-surface);border:1px solid var(--studio-ink)}
.studio-theme>.preview-banner+main:not(.main):not(.login-screen),.studio-theme>main:not(.main):not(.login-screen) {border-radius:8px}
.studio-theme .question-section h2 {background:var(--studio-surface);color:var(--studio-ink);border-bottom:1px solid var(--studio-ink);border-radius:0}
.studio-theme .question-section+.question-section {border-color:var(--studio-divider)}
.studio-theme .website-content button.primary {background:var(--studio-ink);border-color:var(--studio-ink)}
@media(max-width:540px){.studio-theme .top-actions .btn-secondary{display:inline-flex}.studio-theme .top-actions{align-items:center}.studio-theme .workspace-tools>summary{display:flex}}
.studio-theme :is(.overview-brand,.overview-brand.compact,.overview-snippets,.guide-row,.navigation-tools,.section-actions) {background:var(--studio-surface)}
.studio-theme .layout>aside .selected {background:var(--studio-surface);color:var(--studio-ink)}
.studio-theme .back-top {background:var(--studio-ink);border-color:var(--studio-ink);color:var(--studio-surface);box-shadow:none}
.studio-theme .swatches button {background:var(--studio-surface);color:var(--studio-copy);border-color:var(--studio-control)}
.studio-theme .portal-header {background:var(--studio-surface);border-color:var(--studio-divider)}
.studio-theme .portal-header a {color:var(--studio-ink)}
