/* Shared navigation and setup, scoped to avoid changing component specimens. */
.skip-link{position:fixed;top:var(--dimension-8);left:var(--dimension-16);transform:translateY(-180%);z-index:10000;padding:var(--space-12) var(--space-16);background:var(--graphite-950);border:var(--border-width-2) var(--border-style) var(--red-500);border-radius:var(--radius-md)}
.skip-link:focus{transform:none}
/* Joined section choices preserve one track at narrow widths. */
.page-outline{display:block;max-width:100%;overflow-x:auto;margin:0 0 var(--space-24);padding:0;border:0}
.page-outline > .ads-tab-group{width:max-content;max-width:none}
/* A page with enough sections (Accessibility's 11, Design Principles' 10)
   overflows this strip - .page-outline already scrolls to reach the rest
   (verified via scrollLeft, not assumed), but nothing said so: the last
   tab just stopped dead at the viewport edge mid-label, reading as a
   layout bug rather than a scrollable control. experience.js toggles
   these classes from real scroll position, so the fade only ever appears
   on the edge that still has unscrolled content. */
.page-outline.has-overflow-start{mask-image:linear-gradient(to right,transparent 0,#000 var(--space-24),#000 100%);-webkit-mask-image:linear-gradient(to right,transparent 0,#000 var(--space-24),#000 100%)}
.page-outline.has-overflow-end{mask-image:linear-gradient(to left,transparent 0,#000 var(--space-24),#000 100%);-webkit-mask-image:linear-gradient(to left,transparent 0,#000 var(--space-24),#000 100%)}
.page-outline.has-overflow-start.has-overflow-end{mask-image:linear-gradient(to right,transparent 0,#000 var(--space-24),#000 calc(100% - var(--space-24)),transparent 100%);-webkit-mask-image:linear-gradient(to right,transparent 0,#000 var(--space-24),#000 calc(100% - var(--space-24)),transparent 100%)}
.app-main :is(h2,h3,section[id]){scroll-margin-top:var(--space-24)}
.setup-notice{display:flex;align-items:center;justify-content:space-between;gap:var(--space-16);flex-wrap:wrap;padding:var(--space-16) var(--space-20);margin-bottom:var(--space-24);border:var(--border-width-1) var(--border-style) var(--line-strong);border-radius:var(--radius-md);background:var(--graphite-900)}
.setup-context{position:sticky;top:0;z-index:5;box-shadow:var(--shadow-sm)}
.setup-context[data-floating=false]{position:static;box-shadow:none}
.app-main:has(> .setup-context){scroll-padding-block-start:var(--setup-context-height,0px)}
.setup-notice p{margin:0;max-width:65ch;font-family:var(--type-body-family);font-size:var(--type-body-size);font-weight:var(--type-body-weight);font-style:var(--type-body-style);line-height:var(--type-body-line-height);letter-spacing:var(--type-body-tracking);}
.setup-actions{display:flex;gap:var(--space-12);align-items:center;flex-wrap:wrap}
.setup-notice > .setup-actions{margin-inline-start:auto;justify-content:flex-end}
.setup-actions :is(.setup-edit,.setup-close){--setup-action-size:max(var(--size-control),var(--size-target),calc(var(--icon-size) + var(--space-16)));inline-size:var(--setup-action-size);block-size:var(--setup-action-size);padding:0;flex:none;transition:color var(--duration-base) var(--ease-standard),border-color var(--duration-base) var(--ease-standard),background-color var(--duration-base) var(--ease-standard)}
.setup-actions :is(.setup-edit,.setup-close):is(:hover,:focus-visible){color:var(--text-hi);border-color:var(--text-hi);background:var(--graphite-800)}
.setup-actions :is(.setup-edit,.setup-close):active{color:var(--text-hi);border-color:var(--text-hi);background:var(--graphite-700)}
.setup-actions a:not(.btn),.setup-help a{text-decoration:underline;text-underline-offset:3px}
.setup-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(230px,1fr);gap:var(--space-24);align-items:start}
.setup-panel{padding:clamp(var(--space-20),3vw,var(--space-32));border:var(--border-width-1) var(--border-style) var(--line);border-radius:var(--radius-md);background:var(--graphite-900);min-width:0;}
.setup-panel h2{margin:0 0 var(--space-12);font-family:var(--type-h2-family);font-size:var(--type-h2-size);font-weight:var(--type-h2-weight);font-style:var(--type-h2-style);line-height:var(--type-h2-line-height);letter-spacing:var(--type-h2-tracking);}
/* margin reset to 0, not left as the browser's default <p> margin
   (1em, ~16px here) - that default was never actually in this rule,
   so it was competing with (and winning over, since adjacent margins
   collapse to the larger one) the h2's own authored 12px margin-bottom
   above it: the gap rendered as 16px, not the 12px the heading's own
   rule actually says. Below, .setup-fields already has its own
   deliberate margin-top:24px, which was already winning that
   collapse regardless - zeroed for the same reason, not because it
   was visibly wrong there too. */
.setup-panel p{margin:0;}
.setup-steps{display:flex;list-style:none;padding:0;gap:var(--space-12);flex-wrap:wrap;margin:var(--space-24) 0;}
.setup-steps li{padding:var(--space-8) var(--space-14);border:var(--border-width-1) var(--border-style) var(--line);border-radius:var(--radius-24);color:var(--type-body-color);font-family:var(--type-body-family);font-size:var(--type-body-size);font-weight:var(--type-body-weight);font-style:var(--type-body-style);line-height:var(--type-body-line-height);letter-spacing:var(--type-body-tracking);}
.setup-steps [aria-current=step]{border-color:var(--red-500);background:var(--red-tint);color:var(--text-hi)}
.setup-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-20);margin:var(--space-24) 0;}
.setup-field{display:flex;flex-direction:column;gap:var(--space-8);font-family:var(--type-body-family);font-size:var(--type-body-size);font-weight:var(--type-body-weight);font-style:var(--type-body-style);line-height:var(--type-body-line-height);letter-spacing:var(--type-body-tracking);}
.setup-field input,.setup-field select{width:100%;height:var(--dimension-44);padding:0 var(--space-18);color:var(--type-body-color);background:var(--graphite-950);border:var(--border-width-1) var(--border-style) var(--line-strong);border-radius:var(--radius-md);font:inherit}
.export-preview{width:100%;min-height:var(--dimension-44);padding:var(--space-10) var(--space-12);color:var(--text-hi);background:var(--graphite-950);border:var(--border-width-1) var(--border-style) var(--line-strong);border-radius:var(--radius-md);font:inherit}
.setup-field input[aria-invalid=true],.setup-field select[aria-invalid=true]{border-color:var(--border-state-error,var(--danger-500))}
.setup-error{color:var(--type-error-color);min-height:0;font-family:var(--type-body-family);font-size:var(--type-body-size);font-weight:var(--type-body-weight);font-style:var(--type-body-style);line-height:var(--type-body-line-height);letter-spacing:var(--type-body-tracking);}
.setup-platforms{border:0;padding:0;margin:var(--space-24) 0;}
/* font-size/weight matched to .setup-field's label (14px/500) - this
   legend had neither explicitly set, falling back to the browser's
   default <legend> size (~16px) and an authored 600 weight, so "Where
   will your product be used?" rendered visibly larger and heavier than
   "Project name"/"What type of product are you creating?" right above
   it, despite all three being the same kind of field question. */
.setup-platforms legend{margin-bottom:var(--space-12);font-family:var(--type-body-family);font-size:var(--type-body-size);font-weight:var(--type-body-weight);font-style:var(--type-body-style);line-height:var(--type-body-line-height);letter-spacing:var(--type-body-tracking);}
.setup-options{display:flex;flex-wrap:wrap;gap:var(--space-12);}
.setup-option{display:flex;gap:var(--space-10);align-items:center;padding:var(--space-12) var(--space-14);cursor:pointer;font-family:var(--type-body-family);font-size:var(--type-body-size);font-weight:var(--type-body-weight);font-style:var(--type-body-style);line-height:var(--type-body-line-height);letter-spacing:var(--type-body-tracking);}
.setup-option input{width:var(--dimension-18);height:var(--dimension-18);accent-color:var(--red-500)}
/* One <details> per component category on MD Export - collapsed by
   default so 69 individual checkboxes don't all render open at once;
   each summary carries its own "select whole category" checkbox
   alongside the native disclosure triangle, kept in sync (including
   indeterminate state) with its category's individual checkboxes. */
.export-category-groups{display:flex;flex-direction:column;gap:var(--space-8);margin:var(--space-12) 0 var(--space-20);}
.export-category-details{border:var(--border-width-1) var(--border-style) var(--line-strong);border-radius:var(--radius-md);padding:0 var(--space-14);}
.export-category-details[open]{padding-bottom:var(--space-14);}
.export-category-summary{display:flex;align-items:center;gap:var(--space-10);padding:var(--space-12) 0;cursor:pointer;list-style:none;font-family:var(--type-body-family);font-size:var(--type-body-size);font-weight:var(--type-body-weight);font-style:var(--type-body-style);line-height:var(--type-body-line-height);letter-spacing:var(--type-body-tracking);}
.export-category-summary::-webkit-details-marker{display:none}
.export-category-summary .export-category-count{margin-inline-end:auto;}
.export-category-summary .chev{color:var(--text-dim);transform:rotate(-90deg)}
.export-category-details[open]>.export-category-summary .chev{transform:rotate(0deg)}
.export-category-summary .setup-option{padding:0;border:0;font-weight:var(--type-selected-weight)}
.export-category-summary .setup-option:has(:checked){background:none}
.export-category-count{font-weight:var(--type-body-weight);color:var(--text-mid)}
.export-category-options{display:flex;flex-direction:column;gap:var(--space-2);margin-top:var(--space-4);}
.export-component-option{display:flex;gap:var(--space-10);align-items:center;padding:var(--space-8) var(--space-6);border-radius:var(--radius-6);cursor:pointer;font-family:var(--type-body-family);font-size:var(--type-body-size);font-weight:var(--type-body-weight);font-style:var(--type-body-style);line-height:var(--type-body-line-height);letter-spacing:var(--type-body-tracking);}
.export-component-option:hover{background:var(--graphite-900)}
.export-component-option input{width:var(--dimension-16);height:var(--dimension-16);accent-color:var(--red-500)}
.setup-help{color:var(--type-caption-color);font-family:var(--type-caption-family);font-size:var(--type-caption-size);font-weight:var(--type-caption-weight);font-style:var(--type-caption-style);line-height:var(--type-caption-line-height);letter-spacing:var(--type-caption-tracking);}
/* Foundation audit NP01 - saving Project setup replaces the one existing
   profile, so this notice needs to read as a real consequence, not routine
   help text like the rest of .setup-help. */
#existingProfileNotice{color:var(--amber-500);background:color-mix(in srgb, var(--amber-500) 12%, transparent);border:var(--border-width-1) var(--border-style) color-mix(in srgb, var(--amber-500) 30%, transparent);border-radius:var(--radius-6);padding:var(--space-10) var(--space-14);margin:var(--space-12) 0;font-family:var(--type-body-family);font-size:var(--type-body-size);font-weight:var(--type-body-weight);font-style:var(--type-body-style);line-height:var(--type-body-line-height);letter-spacing:var(--type-body-tracking);}
/* Foundation audit NP02 - a project-context reconciliation notice (changed
   recommendation, or an explained override) reads as informational, not a
   warning like #existingProfileNotice above - blue, matching this system's
   existing info-banner convention (see .alert-demo-banner--info). */
[data-role="context-changed-notice"]{color:var(--blue-500);background:color-mix(in srgb, var(--blue-500) 10%, transparent);border-inline-start:var(--border-width-3) var(--border-style) var(--blue-500);border-radius:var(--radius-6);padding:var(--space-10) var(--space-14);margin-top:var(--space-12);font-family:var(--type-body-family);font-size:var(--type-body-size);font-weight:var(--type-body-weight);font-style:var(--type-body-style);line-height:var(--type-body-line-height);letter-spacing:var(--type-body-tracking);}
[data-role="context-changed-notice"] .btn{margin-inline-start:var(--space-8);}
.setup-review{display:grid;grid-template-columns:minmax(100px,1fr) 2fr;gap:var(--space-12);margin:var(--space-24) 0;}
.setup-review dt{color:var(--text-mid)}
.setup-review dd{margin:0;overflow-wrap:anywhere}
.export-preview{min-height:var(--dimension-320);resize:vertical;margin:var(--space-16) 0;font-family:var(--font-mono);font-size:var(--type-caption-size);font-weight:var(--type-caption-weight);font-style:var(--type-caption-style);line-height:var(--type-caption-line-height);letter-spacing:var(--type-caption-tracking);}
.setup-panel .setup-status{min-height:var(--dimension-24);margin:var(--space-16) 0;font-family:var(--type-body-family);font-size:var(--type-body-size);font-weight:var(--type-body-weight);font-style:var(--type-body-style);line-height:var(--type-body-line-height);letter-spacing:var(--type-body-tracking);}
/* Informational only (see the help text right below the buttons it sits
   above) - never a gate, consistent with every other Foundation page
   letting Save/export happen at any completion state. */
.setup-readiness{list-style:none;margin:var(--space-8) 0 0;padding:0;display:flex;flex-direction:column;gap:var(--space-6);font-family:var(--type-body-family);font-size:var(--type-body-size);font-weight:var(--type-body-weight);font-style:var(--type-body-style);line-height:var(--type-body-line-height);letter-spacing:var(--type-body-tracking);}
.setup-readiness li{display:flex;align-items:center;gap:var(--space-8);color:var(--text-mid)}
.setup-readiness li[data-done="true"]{color:var(--text-hi)}
.setup-readiness .readiness-dot{flex:none;width:var(--dimension-8);height:var(--dimension-8);border-radius:var(--radius-full);background:var(--line-strong)}
.setup-readiness li[data-done="true"] .readiness-dot{background:var(--red-500)}
.platform-guidance{margin-block:var(--space-24);border:var(--border-width-1) var(--border-style) var(--line-strong);border-radius:var(--radius-md);padding:0 var(--space-14);}
.platform-guidance[open]{padding-bottom:var(--space-14);}
.platform-guidance-summary{display:flex;align-items:center;gap:var(--space-10);cursor:pointer;padding:var(--space-14) 0;list-style:none;font-weight:var(--type-selected-weight)}
.platform-guidance-summary::-webkit-details-marker{display:none}
.platform-guidance-summary .chev{color:var(--text-dim);margin-inline-start:auto;transform:rotate(-90deg)}
.platform-guidance[open]>.platform-guidance-summary .chev{transform:rotate(0deg)}
.platform-guidance p{color:var(--type-body-color);font-family:var(--type-body-family);font-size:var(--type-body-size);font-weight:var(--type-body-weight);font-style:var(--type-body-style);line-height:var(--type-body-line-height);letter-spacing:var(--type-body-tracking);margin:var(--space-6) 0 0;}
.app-main{min-width:0;}
.app-main>section,.system-card-grid>*{min-width:0;}
.app-main pre{max-width:100%;overflow:auto}
.button-matrix-wrap{position:relative;max-width:100%;}
.checkbox-demo-field,.radio-demo-field{position:relative}
.app-main h1{overflow-wrap:anywhere}
.get-library-copy,.guide-body-text,.guide-list{overflow-wrap:anywhere}
/* Foundation audit - this used to be pinned to --text-hi specifically to
   stay legible regardless of the saved brand color, on the reasoning that
   it was a site-chrome control, not a demonstrated specimen. A direct
   request now gives it the real Button component's own Primary treatment
   (.btn-demo--primary, set in experience.js) instead, deliberately tracking
   brand color the same way every other Primary button in this system
   already does - its text color is still contrast-resolved against
   whatever brand color is active (see foundation-model.js's foreground()),
   so it can't become illegible, only lower-contrast against a very dark
   brand choice, the same accepted tradeoff every other Primary button here
   already carries. Only the layout property .btn-demo doesn't itself set
   is still needed here. */
.component-open-link{align-self:center;}
.setup-notice h2{margin:0 0 var(--space-8);font-family:var(--type-h2-family);font-size:var(--type-h2-size);font-weight:var(--type-h2-weight);font-style:var(--type-h2-style);line-height:var(--type-h2-line-height);letter-spacing:var(--type-h2-tracking);}
.setup-panel [hidden],.setup-field[hidden]{display:none!important}
@media(max-width:900px){.setup-layout{grid-template-columns:1fr}.setup-layout>aside{order:2}}
@media(max-width:640px){.setup-fields{grid-template-columns:1fr}.setup-actions .btn{min-height:var(--dimension-44);}.setup-review{grid-template-columns:1fr;gap:var(--space-8);}.setup-review dd{margin-bottom:var(--space-12);}.topbar-right{gap:var(--space-8);}.app-topbar{gap:var(--space-8);}.brand{white-space:normal}.page-outline .group-btn-segment{min-height:var(--size-target);}.setup-notice{padding:var(--space-12) var(--space-16);gap:var(--space-8);}.app-main .usage-row{flex-wrap:wrap}.app-main .guide-dodont{grid-template-columns:minmax(0,1fr)}}
@media(pointer:coarse){.sidebar-menu-toggle,.theme-toggle,.icon-btn{min-width:var(--dimension-44);min-height:var(--dimension-44);}.nav-link{min-height:var(--dimension-44);display:flex;align-items:center}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media(max-width:640px){
  .app-main{padding:var(--space-24) var(--space-16);}
  .app-main .border-config-grid{grid-template-columns:minmax(0,1fr)!important}
  .app-main .theme-pair-grid,.app-main .color-field-grid{grid-template-columns:minmax(0,1fr)}
  .theme-pair-col,.color-field{min-width:0;}
  .theme-pair-label-row{height:auto;min-height:var(--dimension-32);flex-wrap:wrap}
  .app-main .modal-demo-confirm-shortcuts{grid-template-columns:minmax(0,1fr)}
  .app-main .cascader-demo-panel{min-width:0;max-width:calc(100vw - var(--dimension-100));overflow-x:auto}
  .tabs-demo-bar{max-width:100%;overflow-x:auto}
  .calendar-demo-grid{max-width:100%;overflow-x:auto}
  .transfer-demo-panel{max-width:100%;overflow-x:auto}
}
@media(min-width:641px) and (max-width:900px){.app-main .border-config-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
.setup-foundation-changes { margin-block-start:var(--space-24); overflow:auto; }
.setup-foundation-changes table { width:100%; border-collapse:collapse; }
.setup-foundation-changes th,.setup-foundation-changes td { padding:var(--space-12); text-align:start; vertical-align:top; border-block-end:var(--border-width-1) var(--border-style) var(--line); overflow-wrap:anywhere; }
@media(max-width:640px){.setup-foundation-changes table{min-width:32rem}}
/* Task guidance stays visible; it is not collapsible documentation prose. */
.project-start,.setup-journey{margin-block:var(--space-24);}
.project-start > :is(p,ol),.setup-journey > :is(p,details,nav){margin-block:var(--space-12);}
.project-start h2,.setup-journey h2{margin-block:0 var(--space-12);overflow-wrap:anywhere;}
.onboarding-path{display:flex;flex-wrap:wrap;gap:var(--space-8) var(--space-32);padding-inline-start:var(--space-20);color:var(--text-mid);}
.setup-steps li{padding:0;}
.setup-steps button{display:block;background:transparent;color:inherit;font:inherit;border:0;border-radius:inherit;padding:var(--space-8) var(--space-14);min-height:var(--size-target);cursor:pointer;}
.setup-steps button:focus-visible,.setup-journey a:focus-visible{outline: var(--focus-ring-width) solid var(--text-hi);outline-offset:3px;}
.setup-next-actions{margin-block:var(--space-20);}
.setup-journey{padding:var(--space-20);border:var(--border-width-1) var(--border-style) var(--line-strong);border-radius:var(--radius-md);background:var(--graphite-900);min-width:0;}
.setup-journey summary{cursor:pointer;min-height:var(--size-target);display:flex;align-items:center;text-decoration:underline;text-underline-offset:3px;}
.guided-step-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-12);padding:0;list-style:none;}
.guided-step-list a[aria-current=step]{font-weight:var(--type-selected-weight);}
.setup-journey .setup-status:empty{display:none;}
.setup-journey .ads-foundation-editor{padding:var(--space-16) 0 0;margin:var(--space-16) 0 0;border:0;border-block-start:var(--border-width-1) var(--border-style) var(--line);border-radius:0;background:transparent;justify-content:flex-end;}
.setup-journey .ads-foundation-editor p:empty{display:none;}
.setup-journey h2{font-size:var(--type-h3-size);line-height:var(--type-h3-line-height);}
.setup-journey .setup-actions a,.project-start .setup-actions a{overflow-wrap:anywhere;max-width:100%;white-space:normal;}
.setup-steps[hidden],#setupStepCount[hidden]{display:none;}
@media(max-width:640px){.guided-step-list{grid-template-columns:1fr}.setup-journey{padding:var(--space-16)}.setup-readiness li{flex-wrap:wrap}.onboarding-path{display:block}.onboarding-path li+li{margin-block-start:var(--space-8)}}

/* Onboarding starts on a quiet canvas; project setup expands underneath. */
body.onboarding-page{grid-template-columns:minmax(0,1fr);grid-template-areas:"topbar" "main";}
.onboarding-page .app-sidebar,.onboarding-page .sidebar-menu-toggle,.onboarding-page .sidebar-scrim{display:none!important;}
.onboarding-page .app-main{padding:0 clamp(var(--space-20),4vw,var(--space-64)) var(--space-48);}
.project-choice{min-block-size:calc(100dvh - 112px);display:grid;place-items:center;padding:var(--space-48) 0;}
.project-choice-copy{max-inline-size:680px;text-align:center;margin-inline:auto;}
.project-choice .page-title{max-inline-size:660px;margin-inline:auto;margin-bottom:var(--space-16);text-wrap:balance;}
.project-choice .page-lede{max-inline-size:510px;margin-inline:auto;margin-bottom:var(--space-32);text-wrap:pretty;}
.project-choice-actions{display:flex;align-items:center;justify-content:center;gap:var(--space-16);flex-wrap:wrap;}
.project-choice-actions .btn{min-inline-size:176px;min-block-size:48px;justify-content:center;}
.project-choice.has-selection{min-block-size:auto;padding-block:var(--space-48);border-bottom:var(--border-width-1) var(--border-style) var(--line);}
.project-setup-area{max-inline-size:var(--size-content);margin-inline:auto;padding-top:var(--space-40);}
.project-setup-area[hidden],.project-history-empty[hidden]{display:none!important;}
.project-setup-heading h2{font:inherit;font-size:var(--type-h2-size);font-weight:var(--type-h2-weight);line-height:var(--type-h2-line-height);margin:0 0 var(--space-12);}
.project-setup-heading>p:last-child{color:var(--text-mid);margin:0;}
#projectFormActions{justify-content:flex-end;padding-top:var(--space-24);margin-top:var(--space-24);border-top:var(--border-width-1) var(--border-style) var(--line);}
#projectFormActions #setupNext{order:10;}
#projectFormActions #setupBack{margin-inline-end:auto;}
.onboarding-contract{margin-top:var(--space-32);color:var(--text-mid);}
.onboarding-contract summary{cursor:pointer;padding-block:var(--space-12);}
.project-history-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-24);flex-wrap:wrap;}
.project-history-heading .btn{flex:none;}
.project-history-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--space-24);flex-wrap:wrap;}
.project-history-search{inline-size:min(100%,480px);}
.project-history-toolbar p{margin:0 0 var(--space-12);}
.project-history-scope{margin:var(--space-16) 0;}
.project-history-list{display:grid;gap:var(--space-16);}
.project-history-card{display:flex;align-items:center;justify-content:space-between;gap:var(--space-24);padding:var(--space-24);border:var(--border-width-1) var(--border-style) var(--line);border-radius:var(--radius-md);background:var(--graphite-900);}
.project-history-card>div{min-inline-size:0;}
.project-history-card h2{font-size:var(--type-h2-size);line-height:var(--type-h2-line-height);font-weight:var(--type-h2-weight);margin:0 0 var(--space-8);overflow-wrap:anywhere;}
.project-history-meta{margin:0 0 var(--space-8);color:var(--text-mid);overflow-wrap:anywhere;}
.project-history-card time{display:block;}
.project-history-card .btn{flex:none;}
.project-history-active{display:inline-block;margin-top:var(--space-12);padding:var(--space-4) var(--space-8);border-radius:var(--radius-md);background:var(--red-tint);color:var(--text-hi);font-size:var(--type-caption-size);}
.project-history-empty{text-align:center;padding:var(--space-64) var(--space-24);border:var(--border-width-1) dashed var(--line-strong);border-radius:var(--radius-md);}
.project-history-empty h2{margin:0 0 var(--space-12);font-size:var(--type-h2-size);}
.project-history-empty p{color:var(--text-mid);margin:0 0 var(--space-24);}
@media(max-width:640px){
  .onboarding-page .app-topbar{padding-inline:var(--space-16);gap:var(--space-8);}
  .onboarding-page .version-badge,.onboarding-page .brand-color-group,.onboarding-page .icon-btn{display:none;}
  .onboarding-page .topbar-right{margin-inline-start:auto;}
  .project-choice-actions{gap:var(--space-12);}
  .project-choice-actions .btn{min-inline-size:0;inline-size:100%;max-inline-size:320px;}
  .project-history-card{align-items:flex-start;flex-direction:column;gap:var(--space-16);padding:var(--space-20);}
  .project-history-card .btn{inline-size:100%;justify-content:center;}
}

/* Overview is the project hub; the library remains in the shared navigation. */
.workspace-overview .project-history-heading{margin-bottom:var(--space-32);}
.workspace-overview .page-lede{margin-bottom:0;}
.overview-draft{display:flex;align-items:center;justify-content:space-between;gap:var(--space-24);padding:var(--space-20) var(--space-24);margin-bottom:var(--space-24);border:var(--border-width-1) var(--border-style) var(--line);border-radius:var(--radius-md);background:var(--graphite-900);}
.overview-draft[hidden]{display:none;}.overview-draft>div{min-inline-size:0;}.overview-draft strong{font-size:var(--type-body-size);}.overview-draft p{margin:var(--space-4) 0 0;overflow-wrap:anywhere;}.overview-draft .btn{flex:none;}
.project-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:var(--space-8);flex-wrap:wrap;}
.workspace-overview .project-history-card>div:first-child{flex:1;}
.workspace-overview .project-history-card h2{font-size:var(--type-h3-size);}
.workspace-overview .project-history-card .setup-help{margin:var(--space-8) 0 0;}
#clearProjectSearch[hidden]{display:none;}
@media(max-width:640px){.overview-draft,.workspace-overview .project-history-card{align-items:stretch;flex-direction:column;}.project-card-actions{justify-content:flex-start;}.project-card-actions .btn{white-space:normal;}.workspace-overview .project-history-heading{gap:var(--space-16);}}
