/* Private, opt-in studies over the existing Global/Enterprise components.
   Paper: the parent's inspected Murasaki/Vincent observations inform ivory,
   serif/italic hierarchy, calm space and a production folio composition.
   Index: inspected Alder & Stone observations inform oversized sans type,
   fine rules, numbered service rows and an actual look-library index.
   These are adaptations, not copies or claims of full reference playback.
   No assets, business copy, auth gates or document data are supplied here. */

/* Shared readable controls. Neither scope applies to the Cinema document. */
html[data-style-variant="paper"] :is(.agency-page,.portal-page) {
  --paper:#f8f5ee; --ink:#302b29; --muted:#655d59; --blue:#624458;
  --line:#d0c6bf; --edition-accent:#624458; --edition-soft:#eee7eb;
  --edition-surface:#fffdf8; --edition-border:#9a898f; --edition-rail:#eee9e1;
  background:var(--paper); color:var(--ink);
}
html[data-style-variant="index"] :is(.agency-page,.portal-page) {
  --paper:#fff; --ink:#171717; --muted:#5b5b5b; --blue:#202020;
  --line:#c8c8c8; --edition-accent:#171717; --edition-soft:#eeeeeb;
  --edition-surface:#fff; --edition-border:#777; --edition-rail:#f5f5f2;
  background:var(--paper); color:var(--ink);
}
html[data-style-variant="paper"] :is(.agency-page,.portal-page) .global-mark>i,
html[data-style-variant="index"] :is(.agency-page,.portal-page) .global-mark>i { display:none; }
html[data-style-variant="paper"] :is(.agency-page,.portal-page) :is(.pill,.file-button,.account-button,.account-link),
html[data-style-variant="index"] :is(.agency-page,.portal-page) :is(.pill,.file-button,.account-button,.account-link) {
  background:var(--edition-surface); color:var(--ink); border:1px solid var(--edition-border);
  box-shadow:none; min-height:44px; gap:12px;
}
html[data-style-variant="paper"] :is(.agency-page,.portal-page) :is(.pill.dark,.account-primary),
html[data-style-variant="index"] :is(.agency-page,.portal-page) :is(.pill.dark,.account-primary) {
  background:var(--edition-accent); border-color:var(--edition-accent); color:#fff;
}
html[data-style-variant="paper"] :is(.agency-page,.portal-page) :is(.pill,.file-button,.account-button,.account-link):not(:disabled):hover,
html[data-style-variant="index"] :is(.agency-page,.portal-page) :is(.pill,.file-button,.account-button,.account-link):not(:disabled):hover {
  background:var(--edition-soft); border-color:var(--edition-accent); color:var(--ink); box-shadow:none;
}
html[data-style-variant="paper"] :is(.agency-page,.portal-page) :is(.pill.dark,.account-primary):not(:disabled):hover,
html[data-style-variant="index"] :is(.agency-page,.portal-page) :is(.pill.dark,.account-primary):not(:disabled):hover {
  background:var(--ink); border-color:var(--ink); color:#fff;
}
html[data-style-variant="paper"] :is(.agency-page,.portal-page) :is(input,textarea,select):not([type="checkbox"]):not([type="range"]):not([type="file"]),
html[data-style-variant="index"] :is(.agency-page,.portal-page) :is(input,textarea,select):not([type="checkbox"]):not([type="range"]):not([type="file"]) {
  background:var(--edition-surface); color:var(--ink); border:1px solid var(--edition-border);
  box-shadow:none; caret-color:var(--ink); min-height:44px;
}
html[data-style-variant="paper"] :is(.agency-page,.portal-page) :is(input,textarea)::placeholder,
html[data-style-variant="index"] :is(.agency-page,.portal-page) :is(input,textarea)::placeholder { color:var(--muted); opacity:1; }
html[data-style-variant="paper"] :is(.agency-page,.portal-page) :is(button,a,input,textarea,select,summary):focus-visible,
html[data-style-variant="index"] :is(.agency-page,.portal-page) :is(button,a,input,textarea,select,summary):focus-visible {
  outline:3px solid var(--edition-accent); outline-offset:4px;
}
html[data-style-variant="paper"] :is(.agency-page,.portal-page) .file-button:focus-within,
html[data-style-variant="index"] :is(.agency-page,.portal-page) .file-button:focus-within { outline:3px solid var(--edition-accent); outline-offset:4px; }
html[data-style-variant="paper"] .agency-page .track:focus-visible,
html[data-style-variant="index"] .agency-page .track:focus-visible { outline-color:currentColor; outline-offset:-5px; }
/* Cinema's embedded branch keeps its existing contrast and peach action. */
html[data-style-variant="paper"] .agency-page .cinema-gateway,
html[data-style-variant="index"] .agency-page .cinema-gateway { --edition-accent:#f0a17c; }
html[data-style-variant="paper"] .agency-page .cinema-gateway .peach-button,
html[data-style-variant="index"] .agency-page .cinema-gateway .peach-button { background:#f0a17c; color:#111311; border-color:#f0a17c; }
html[data-style-variant="paper"] .agency-page .cinema-gateway .peach-button:hover,
html[data-style-variant="index"] .agency-page .cinema-gateway .peach-button:hover { background:#f4b89a; color:#111311; border-color:#f4b89a; }

/* PAPER — an editorial production folio; the original Cinema still is the hero. */
html[data-style-variant="paper"] .agency-page .preview-note { background:#eee7df; color:#51444a; border-bottom:1px solid var(--line); }
html[data-style-variant="paper"] .agency-page .preview-note span { color:#655d59; }
html[data-style-variant="paper"] .agency-page .global-header { background:#f8f5ee; backdrop-filter:none; box-shadow:none; border-bottom:1px solid var(--line); padding-block:20px; }
html[data-style-variant="paper"] .agency-page .global-nav .pill { border-radius:999px; background:transparent; font-weight:500; }
html[data-style-variant="paper"] .agency-page .global-nav .pill.dark { background:var(--edition-accent); color:#fff; }
html[data-style-variant="paper"] .agency-page .global-hero { grid-template-columns:1fr; gap:48px; padding-block:70px 56px; min-height:0; }
html[data-style-variant="paper"] .agency-page .hero-heading { text-align:center; max-width:980px; margin-inline:auto; }
html[data-style-variant="paper"] .agency-page .hero-heading .kicker { color:var(--edition-accent); margin-bottom:28px; letter-spacing:.15em; }
html[data-style-variant="paper"] .agency-page h1 { font:400 clamp(58px,7.2vw,112px)/1.04 Georgia,'Times New Roman',serif; letter-spacing:-.065em; }
html[data-style-variant="paper"] .agency-page h1 em { color:var(--edition-accent); font-weight:400; }
html[data-style-variant="paper"] .agency-page .hero-intro { max-width:36rem; margin:25px auto; font-size:16px; line-height:1.8; }
html[data-style-variant="paper"] .agency-page .hero-art { min-height:0; width:min(920px,100%); margin-inline:auto; display:grid; grid-template-columns:1fr auto; gap:15px 24px; }
html[data-style-variant="paper"] .agency-page .orbital { display:none; }
html[data-style-variant="paper"] .agency-page .art-label { position:static; grid-column:1; grid-row:1; padding:0; background:none; transform:none; color:var(--muted); font-size:10px; line-height:1.6; }
html[data-style-variant="paper"] .agency-page .art-index { position:static; grid-column:2; grid-row:1; align-self:end; writing-mode:horizontal-tb; transform:none; color:var(--muted); font-size:9px; letter-spacing:.06em; }
html[data-style-variant="paper"] .agency-page .archive-window { position:relative; inset:auto; grid-row:2; grid-column:1/-1; width:100%; background:#fffdf8; border:1px solid var(--line); padding:10px; transform:none; box-shadow:none; }
html[data-style-variant="paper"] .agency-page .archive-window:hover { transform:none; border-color:var(--edition-accent); }
html[data-style-variant="paper"] .agency-page .archive-window img { aspect-ratio:2.05; object-fit:cover; }
html[data-style-variant="paper"] .agency-page .archive-window>span { padding:18px 12px 8px; color:var(--ink); }
html[data-style-variant="paper"] .agency-page .archive-window b { font-size:12px; }
html[data-style-variant="paper"] .agency-page .archive-window small { color:var(--muted); font-size:9px; }
html[data-style-variant="paper"] .agency-page .agency-line { padding-block:24px; justify-content:center; gap:36px; font-size:10px; }
html[data-style-variant="paper"] .agency-page .agency-line .line-note { margin-left:0; }
html[data-style-variant="paper"] .agency-page .section { padding-block:clamp(70px,8vw,120px); }
html[data-style-variant="paper"] .agency-page :is(.section-heading h2,.brief-section h2,.connection-row h2) { font:400 clamp(42px,5vw,72px)/1.08 Georgia,'Times New Roman',serif; letter-spacing:-.045em; }
html[data-style-variant="paper"] .agency-page :is(.section-heading h2,.brief-section h2) em { color:var(--edition-accent); }
html[data-style-variant="paper"] .agency-page .tracks { border:0; border-block:1px solid var(--line); border-radius:0; }
html[data-style-variant="paper"] .agency-page .track { padding:28px; }
html[data-style-variant="paper"] .agency-page .track.active { background:var(--edition-soft); color:var(--ink); box-shadow:inset 0 -3px var(--edition-accent); }
html[data-style-variant="paper"] .agency-page .track strong { font:400 30px/1.2 Georgia,'Times New Roman',serif; letter-spacing:-.035em; }
html[data-style-variant="paper"] .agency-page .track-panel { background:transparent; border-radius:0; padding:40px 0 0; }
html[data-style-variant="paper"] .agency-page .track-panel h3 { font:400 38px/1.12 Georgia,'Times New Roman',serif; letter-spacing:-.04em; }
html[data-style-variant="paper"] .agency-page .track-plan { padding:26px 30px; background:var(--edition-surface); border:1px solid var(--line); }
html[data-style-variant="paper"] .agency-page .process-grid { gap:46px; }
html[data-style-variant="paper"] .agency-page .process-symbol { display:none; }
html[data-style-variant="paper"] .agency-page :is(.process-grid h3,.journey-intro h3,.community-note h3) { font:400 34px/1.16 Georgia,'Times New Roman',serif; letter-spacing:-.035em; }
html[data-style-variant="paper"] .agency-page .connections { background:#eee9e1; }
html[data-style-variant="paper"] .agency-page .community-note { border-color:var(--line); }
html[data-style-variant="paper"] .agency-page #global-brief { background:var(--edition-surface); border:1px solid var(--line); border-radius:2px; padding:32px; box-shadow:none; }
html[data-style-variant="paper"] .agency-page :is(input,textarea,select) { border-radius:3px; }
html[data-style-variant="paper"] .agency-page dialog { background:var(--edition-surface); border-radius:3px; border-color:var(--line); }

/* PAPER portal: warm workbench, serif section hierarchy, large folio plates. */
html[data-style-variant="paper"] .portal-page { background:#faf8f3; --paper:#faf8f3; }
html[data-style-variant="paper"] .portal-page .portal-rail { background:var(--edition-rail); border-right:1px solid var(--line); color:var(--ink); box-shadow:none; }
html[data-style-variant="paper"] .portal-page :is(.shell-brand .global-mark,.shell-brand strong,.shell-rail-footer,.shell-rail-footer a) { color:var(--ink); }
html[data-style-variant="paper"] .portal-page :is(.shell-brand .global-mark span,.shell-group) { color:var(--muted); }
html[data-style-variant="paper"] .portal-page .portal-header { background:#faf8f3; border-color:var(--line); backdrop-filter:none; box-shadow:none; }
html[data-style-variant="paper"] .portal-page .shell-context h1 { font:400 26px/1.2 Georgia,'Times New Roman',serif; letter-spacing:-.03em; }
html[data-style-variant="paper"] .portal-page :is(.section-caption h2,.direction-heading h2,.proof-heading h2,.portal-intro h1) { font-family:Georgia,'Times New Roman',serif; font-weight:400; letter-spacing:-.035em; font-size:34px; line-height:1.15; }
html[data-style-variant="paper"] .portal-page :is(.section-caption h2 em,.direction-heading h2 em,.proof-heading h2 em) { font-family:Georgia,'Times New Roman',serif; font-style:italic; color:var(--edition-accent); }
html[data-style-variant="paper"] .portal-page :is(.account-heading h2,.option-editor h3,.compare-card h3) { font-family:Georgia,'Times New Roman',serif; font-weight:400; font-size:26px; }
html[data-style-variant="paper"] .portal-page .portal-section { padding-block:38px 48px; gap:38px; }
html[data-style-variant="paper"] .portal-page .language-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:40px 30px; }
html[data-style-variant="paper"] .portal-page .language-card { background:transparent; border:0; border-bottom:1px solid var(--line); border-radius:0; box-shadow:none; padding-bottom:24px; }
html[data-style-variant="paper"] .portal-page .language-card>img { border-radius:0; aspect-ratio:1.7; background:#eee9e1; object-fit:contain; }
html[data-style-variant="paper"] .portal-page .language-card .language-copy { padding:18px 0 0; }
html[data-style-variant="paper"] .portal-page .language-card h3 { font:400 28px/1.12 Georgia,'Times New Roman',serif; letter-spacing:-.035em; }
html[data-style-variant="paper"] .portal-page :is(.account-contact,.account-permissions,.account-option,.account-material,.account-proof,.privacy-card,.reference-card,.meeting-card,.proof-controls,.proof-review,.proof-comparison figure) { background:var(--edition-surface); color:var(--ink); border-color:var(--line); border-radius:3px; box-shadow:none; }
html[data-style-variant="paper"] .portal-page :is(.account-asset,.compare-card,.option-editor) { border-radius:0; box-shadow:none; border-color:var(--line); }
html[data-style-variant="paper"] .portal-page .account-asset { background:var(--edition-surface); transform:none; }
html[data-style-variant="paper"] .portal-page :is(.pill,.file-button,.account-button,.account-link,.language-actions button,.shell-view-switch button) { border-radius:3px; }

/* INDEX — typography and numbered linear services, with the same archive image. */
html[data-style-variant="index"] .agency-page .preview-note { background:#fff; color:var(--ink); border-bottom:1px solid var(--line); }
html[data-style-variant="index"] .agency-page .preview-note span { color:var(--muted); }
html[data-style-variant="index"] .agency-page .global-header { background:#fff; border-bottom:1px solid var(--ink); backdrop-filter:none; box-shadow:none; }
html[data-style-variant="index"] .agency-page .global-nav .pill { border-radius:4px; font-weight:600; border-color:#aaa; }
html[data-style-variant="index"] .agency-page .global-hero { grid-template-columns:minmax(0,1.3fr) minmax(0,.8fr); align-items:stretch; gap:clamp(28px,4vw,64px); min-height:0; padding-block:54px 58px; }
html[data-style-variant="index"] .agency-page .hero-heading { padding-block:16px; align-self:center; }
html[data-style-variant="index"] .agency-page .hero-heading .kicker { color:var(--muted); margin-bottom:36px; letter-spacing:.09em; }
html[data-style-variant="index"] .agency-page h1 { font:750 clamp(62px,7.5vw,118px)/.96 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; letter-spacing:-.08em; text-transform:uppercase; }
html[data-style-variant="index"] .agency-page h1 em { font:inherit; color:inherit; }
html[data-style-variant="index"] .agency-page .hero-intro { font-size:15px; line-height:1.7; max-width:30rem; margin-block:30px; }
html[data-style-variant="index"] .agency-page .hero-art { min-height:0; display:grid; grid-template-columns:1fr; gap:20px; align-content:center; border-left:1px solid var(--line); padding-left:clamp(24px,3vw,44px); }
html[data-style-variant="index"] .agency-page .orbital { display:none; }
html[data-style-variant="index"] .agency-page .art-label { position:static; background:transparent; padding:0; transform:none; font-size:10px; color:var(--muted); }
html[data-style-variant="index"] .agency-page .archive-window { position:static; width:100%; border:0; background:#fff; transform:none; box-shadow:none; }
html[data-style-variant="index"] .agency-page .archive-window:hover { transform:none; }
html[data-style-variant="index"] .agency-page .archive-window img { aspect-ratio:.92; object-fit:cover; }
html[data-style-variant="index"] .agency-page .archive-window>span { color:var(--ink); padding:16px 0; border-bottom:1px solid var(--line); }
html[data-style-variant="index"] .agency-page .archive-window b { font-size:12px; font-weight:650; }
html[data-style-variant="index"] .agency-page .archive-window small { color:var(--muted); font-size:9px; }
html[data-style-variant="index"] .agency-page .art-index { position:static; writing-mode:horizontal-tb; transform:none; font-size:9px; color:var(--muted); }
html[data-style-variant="index"] .agency-page .agency-line { font-weight:600; border-color:var(--ink); gap:32px; }
html[data-style-variant="index"] .agency-page .section { padding-block:76px; }
html[data-style-variant="index"] .agency-page :is(.section-heading h2,.brief-section h2,.connection-row h2) { font:650 clamp(40px,4.8vw,72px)/1.02 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; letter-spacing:-.065em; }
html[data-style-variant="index"] .agency-page :is(.section-heading h2 em,.brief-section h2 em) { font:inherit; color:inherit; }
html[data-style-variant="index"] .agency-page .section-heading { grid-template-columns:1.3fr 1fr; gap:40px; margin-bottom:40px; }
html[data-style-variant="index"] .agency-page .tracks { grid-template-columns:1fr; border:0; border-top:1px solid var(--ink); border-radius:0; }
html[data-style-variant="index"] .agency-page .track { display:grid; grid-template-columns:48px minmax(0,1fr) minmax(0,.8fr) 28px; align-items:center; gap:24px; padding:28px 18px; border:0; border-bottom:1px solid var(--ink); }
html[data-style-variant="index"] .agency-page .track+.track { border-left:0; }
html[data-style-variant="index"] .agency-page .track-index { grid-column:1; grid-row:1; padding:0; }
html[data-style-variant="index"] .agency-page .track strong { grid-column:2; grid-row:1; font-size:32px; font-weight:600; letter-spacing:-.045em; }
html[data-style-variant="index"] .agency-page .track>span:nth-last-child(2) { grid-column:3; grid-row:1; font-size:13px; }
html[data-style-variant="index"] .agency-page .track i { position:static; grid-column:4; grid-row:1; }
html[data-style-variant="index"] .agency-page .track.active { background:var(--ink); color:#fff; }
html[data-style-variant="index"] .agency-page .track-panel { background:transparent; border-radius:0; padding:36px 0; border-bottom:1px solid var(--line); }
html[data-style-variant="index"] .agency-page .track-panel h3 { font-size:38px; font-weight:600; }
html[data-style-variant="index"] .agency-page .track-plan { border-left:1px solid var(--line); padding-left:32px; }
html[data-style-variant="index"] .agency-page .process-grid { grid-template-columns:1fr; gap:0; margin-top:40px; }
html[data-style-variant="index"] .agency-page .process-grid article { display:grid; grid-template-columns:160px minmax(0,1fr) minmax(0,1fr); align-items:start; gap:32px; padding-block:32px; border-color:var(--ink); }
html[data-style-variant="index"] .agency-page .process-symbol { display:none; }
html[data-style-variant="index"] .agency-page .process-grid .kicker { grid-column:1; padding-top:5px; }
html[data-style-variant="index"] .agency-page .process-grid h3 { grid-column:2; margin:0; font-size:32px; font-weight:600; }
html[data-style-variant="index"] .agency-page .process-grid p:not(.kicker) { grid-column:3; max-width:none; }
html[data-style-variant="index"] .agency-page .connections { background:#f3f3f0; border-block:1px solid var(--line); }
html[data-style-variant="index"] .agency-page .community-note { border-color:var(--line); }
html[data-style-variant="index"] .agency-page #global-brief { border:0; border-top:2px solid var(--ink); border-radius:0; background:#fff; padding:30px 0 0; box-shadow:none; }
html[data-style-variant="index"] .agency-page :is(input,textarea,select,dialog) { border-radius:0; }
html[data-style-variant="index"] .agency-page dialog { background:#fff; border-color:var(--ink); }

/* INDEX portal: a real, dense image-and-type index with original live controls. */
html[data-style-variant="index"] .portal-page .portal-rail { background:#f5f5f2; border-right:1px solid var(--ink); color:var(--ink); box-shadow:none; }
html[data-style-variant="index"] .portal-page :is(.shell-brand .global-mark,.shell-brand strong,.shell-rail-footer,.shell-rail-footer a) { color:var(--ink); }
html[data-style-variant="index"] .portal-page :is(.shell-brand .global-mark span,.shell-group) { color:var(--muted); }
html[data-style-variant="index"] .portal-page .portal-header { background:#fff; border-bottom:1px solid var(--ink); backdrop-filter:none; box-shadow:none; }
html[data-style-variant="index"] .portal-page .shell-context h1 { font-size:24px; font-weight:650; letter-spacing:-.045em; }
html[data-style-variant="index"] .portal-page :is(.section-caption h2,.direction-heading h2,.proof-heading h2,.portal-intro h1) { font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; font-size:32px; font-weight:650; line-height:1.04; letter-spacing:-.055em; }
html[data-style-variant="index"] .portal-page :is(.section-caption h2 em,.direction-heading h2 em,.proof-heading h2 em) { font:inherit; color:inherit; }
html[data-style-variant="index"] .portal-page .language-grid { display:grid; grid-template-columns:1fr; gap:0; border-top:1px solid var(--ink); }
html[data-style-variant="index"] .portal-page .language-card { display:grid; grid-template-columns:minmax(160px,22%) minmax(0,1fr); align-items:start; gap:28px; padding:22px 0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; box-shadow:none; }
html[data-style-variant="index"] .portal-page .language-card>img { border-radius:0; aspect-ratio:1.45; object-fit:contain; background:#f0f0ed; }
html[data-style-variant="index"] .portal-page .language-card .language-copy { display:grid; grid-template-columns:minmax(0,1fr) minmax(190px,.75fr); gap:8px 28px; padding:0; min-width:0; }
html[data-style-variant="index"] .portal-page .language-copy>.kicker { grid-column:1; grid-row:1; margin:0; font-size:10px; color:var(--muted); }
html[data-style-variant="index"] .portal-page .language-copy>h3 { grid-column:1; grid-row:2; margin:0; font-size:26px; font-weight:650; line-height:1.1; letter-spacing:-.04em; }
html[data-style-variant="index"] .portal-page .language-copy>p:not(.kicker) { grid-column:1; font-size:13px; line-height:1.55; margin:0; }
html[data-style-variant="index"] .portal-page .language-copy>.plate-caption { grid-column:1; margin:0; }
html[data-style-variant="index"] .portal-page .language-copy>.language-actions { grid-column:2; grid-row:1/span 5; align-self:center; margin:0; padding:0; flex-direction:column; gap:8px; }
html[data-style-variant="index"] .portal-page .language-actions button { flex:0 0 auto; }
html[data-style-variant="index"] .portal-page :is(.account-contact,.account-permissions,.account-option,.account-material,.account-proof,.privacy-card,.reference-card,.meeting-card,.proof-controls,.proof-review,.proof-comparison figure,.account-asset) { background:#fff; color:var(--ink); border:1px solid var(--line); border-radius:0; box-shadow:none; }
html[data-style-variant="index"] .portal-page .account-asset { transform:none; }
html[data-style-variant="index"] .portal-page :is(.pill,.file-button,.account-button,.account-link,.language-actions button,.shell-view-switch button,.compare-card,.option-editor) { border-radius:0; }
html[data-style-variant="index"] .portal-page .account-options { gap:24px; }
html[data-style-variant="index"] .portal-page .comparison { gap:32px; }
html[data-style-variant="index"] .portal-page .compare-card { border-top:2px solid var(--ink); padding-top:20px; }

/* Explicit states for both light studies: all audience/error/auth content remains. */
html[data-style-variant="paper"] .portal-page .portal-rail :is(nav>a,.portal-room-actions button,.shell-room-shortcuts button),
html[data-style-variant="index"] .portal-page .portal-rail :is(nav>a,.portal-room-actions button,.shell-room-shortcuts button) { color:var(--ink); background:transparent; min-height:44px; }
html[data-style-variant="paper"] .portal-page .portal-rail :is(nav>a,.portal-room-actions button,.shell-room-shortcuts button):hover,
html[data-style-variant="index"] .portal-page .portal-rail :is(nav>a,.portal-room-actions button,.shell-room-shortcuts button):hover { background:var(--edition-soft); color:var(--ink); }
html[data-style-variant="paper"] .portal-page .portal-rail :is(nav>a[aria-current="page"],.portal-room-actions button[aria-expanded="true"],.shell-room-shortcuts button[aria-pressed="true"]),
html[data-style-variant="index"] .portal-page .portal-rail :is(nav>a[aria-current="page"],.portal-room-actions button[aria-expanded="true"],.shell-room-shortcuts button[aria-pressed="true"]) { background:var(--edition-soft); color:var(--edition-accent); box-shadow:inset 3px 0 var(--edition-accent); }
html[data-style-variant="paper"] .portal-page .portal-rail .portal-team-toggle:before,
html[data-style-variant="index"] .portal-page .portal-rail .portal-team-toggle:before { box-shadow:5px 2px 0 -1px var(--edition-rail),5px 2px 0 0 currentColor; }
html[data-style-variant="paper"] .portal-page .portal-header nav a,
html[data-style-variant="index"] .portal-page .portal-header nav a { background:var(--edition-surface); color:var(--ink); border-color:var(--edition-border); min-height:44px; }
html[data-style-variant="paper"] .portal-page .portal-header nav a:hover,
html[data-style-variant="index"] .portal-page .portal-header nav a:hover { background:var(--edition-soft); color:var(--ink); border-color:var(--edition-accent); }
html[data-style-variant="paper"] .portal-page :is(.shell-view-switch,.account-create form),
html[data-style-variant="index"] .portal-page :is(.shell-view-switch,.account-create form) { background:var(--edition-soft); color:var(--ink); }
html[data-style-variant="paper"] .portal-page :is(.shell-view-switch button,.language-actions button),
html[data-style-variant="index"] .portal-page :is(.shell-view-switch button,.language-actions button) { background:var(--edition-surface); border:1px solid var(--edition-border); color:var(--ink); min-height:44px; box-shadow:none; }
html[data-style-variant="paper"] .portal-page .language-actions button:not(:disabled):not([aria-pressed="true"]):hover,
html[data-style-variant="index"] .portal-page .language-actions button:not(:disabled):not([aria-pressed="true"]):hover,
html[data-style-variant="paper"] .portal-page .shell-view-switch button:not(:disabled):hover,
html[data-style-variant="index"] .portal-page .shell-view-switch button:not(:disabled):hover { background:var(--edition-soft); color:var(--ink); border-color:var(--edition-accent); }
html[data-style-variant="paper"] .portal-page :is(.shell-view-switch button[aria-pressed="true"],.language-actions button[aria-pressed="true"]),
html[data-style-variant="index"] .portal-page :is(.shell-view-switch button[aria-pressed="true"],.language-actions button[aria-pressed="true"]) { background:var(--edition-accent); border-color:var(--edition-accent); color:#fff; box-shadow:none; }
html[data-style-variant="paper"] .portal-page :is(.account-panel .account-muted,.account-code,.shell-context>span,.shell-library-notes,.account-save-explanation summary),
html[data-style-variant="index"] .portal-page :is(.account-panel .account-muted,.account-code,.shell-context>span,.shell-library-notes,.account-save-explanation summary) { color:var(--muted); }
html[data-style-variant="paper"] .portal-page .enterprise-message-dock,
html[data-style-variant="index"] .portal-page .enterprise-message-dock { background:var(--edition-surface); color:var(--ink); border:1px solid var(--edition-border); border-radius:4px; box-shadow:0 12px 40px #241d2222; }
html[data-style-variant="paper"] .portal-page .message-dock-context,
html[data-style-variant="index"] .portal-page .message-dock-context { background:var(--edition-soft); color:var(--muted); border-color:var(--line); }
html[data-style-variant="paper"] .portal-page .account-message,
html[data-style-variant="index"] .portal-page .account-message { background:#f4f2ee; color:var(--ink); border-color:var(--line); border-radius:4px; }
html[data-style-variant="paper"] .portal-page .account-message.own-message,
html[data-style-variant="index"] .portal-page .account-message.own-message { background:var(--edition-soft); color:var(--ink); border-color:var(--edition-border); }
html[data-style-variant="paper"] .portal-page :is(.account-audience,.account-message-context),
html[data-style-variant="index"] .portal-page :is(.account-audience,.account-message-context) { color:var(--edition-accent); border-color:var(--edition-accent); }
html[data-style-variant="paper"] .portal-page :is(.proposal-document,.presentation),
html[data-style-variant="index"] .portal-page :is(.proposal-document,.presentation) { background:var(--edition-surface); color:var(--ink); border-color:var(--line); box-shadow:none; }
html[data-style-variant="paper"] .portal-page #demo-bar,
html[data-style-variant="index"] .portal-page #demo-bar { background:var(--edition-rail); color:var(--ink); border-color:var(--line); }
html[data-style-variant="paper"] .portal-page #demo-bar button,
html[data-style-variant="index"] .portal-page #demo-bar button { background:var(--edition-surface); color:var(--ink); border-color:var(--edition-border); }
html[data-style-variant="paper"] .portal-page #demo-bar button[aria-pressed="true"],
html[data-style-variant="index"] .portal-page #demo-bar button[aria-pressed="true"] { background:var(--edition-accent); color:#fff; border-color:var(--edition-accent); }
html[data-style-variant="paper"] .portal-page #demo-welcome,
html[data-style-variant="index"] .portal-page #demo-welcome { background:var(--edition-surface); color:var(--ink); border-color:var(--edition-border); }
html[data-style-variant="paper"] .portal-page .demo-welcome-art { background:#624458; color:#fffdf8; }
html[data-style-variant="index"] .portal-page .demo-welcome-art { background:#171717; color:#fff; }
html[data-style-variant="paper"] .portal-page #demo-welcome .demo-welcome-copy :is(.kicker,label span,#demo-load-status),
html[data-style-variant="index"] .portal-page #demo-welcome .demo-welcome-copy :is(.kicker,label span,#demo-load-status) { color:var(--muted); }
html[data-style-variant="paper"] .portal-page #demo-welcome .demo-disclosure,
html[data-style-variant="index"] .portal-page #demo-welcome .demo-disclosure { background:var(--edition-soft); color:var(--ink); }
html[data-style-variant="paper"] .portal-page #demo-welcome .demo-welcome-actions button,
html[data-style-variant="index"] .portal-page #demo-welcome .demo-welcome-actions button { background:var(--edition-surface); color:var(--ink); border-color:var(--edition-border); }
html[data-style-variant="paper"] .portal-page #demo-welcome .demo-welcome-actions button:first-child,
html[data-style-variant="index"] .portal-page #demo-welcome .demo-welcome-actions button:first-child { background:var(--edition-accent); color:#fff; border-color:var(--edition-accent); }
html[data-style-variant="paper"] :is(.agency-page,.portal-page) :is(button:disabled,.pill:disabled:hover),
html[data-style-variant="index"] :is(.agency-page,.portal-page) :is(button:disabled,.pill:disabled:hover) { background:#edeae6; color:#706964; border-color:#b9b1aa; box-shadow:none; opacity:.7; transform:none; cursor:not-allowed; }
html[data-style-variant="paper"] .portal-page .file-button:has(input:disabled),
html[data-style-variant="index"] .portal-page .file-button:has(input:disabled) { background:#edeae6; color:#706964; border-color:#b9b1aa; cursor:not-allowed; }

/* Layout changes only at usable widths; no route, hidden or role rules change. */
@media(max-width:1200px) {
  html[data-style-variant="index"] .portal-page .language-card { grid-template-columns:160px minmax(0,1fr); gap:24px; }
  html[data-style-variant="index"] .portal-page .language-card .language-copy { grid-template-columns:1fr; gap:8px; }
  html[data-style-variant="index"] .portal-page .language-copy>.language-actions { grid-column:1; grid-row:auto; flex-direction:row; flex-wrap:wrap; padding-top:8px; }
  html[data-style-variant="index"] .portal-page .language-actions button { flex:1 1 110px; }
}
@media(max-width:1000px) {
  html[data-style-variant="paper"] .agency-page .agency-line { flex-wrap:wrap; gap:14px 24px; }
  html[data-style-variant="index"] .agency-page .global-hero { grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); gap:24px; }
  html[data-style-variant="index"] .agency-page h1 { font-size:clamp(56px,7.3vw,78px); }
  html[data-style-variant="index"] .agency-page .process-grid article { grid-template-columns:120px minmax(0,1fr) minmax(0,1fr); gap:24px; }
  html[data-style-variant="index"] .agency-page .process-grid h3 { font-size:28px; }
}
@media(max-width:760px) {
  html[data-style-variant="paper"] .agency-page .global-hero { gap:32px; padding-block:42px 36px; }
  html[data-style-variant="paper"] .agency-page h1 { font-size:clamp(48px,10.7vw,78px); }
  html[data-style-variant="paper"] .agency-page .hero-intro { font-size:15px; }
  html[data-style-variant="paper"] .agency-page .hero-art { gap:12px; }
  html[data-style-variant="paper"] .agency-page .art-index { grid-column:1; grid-row:3; font-size:9px; }
  html[data-style-variant="paper"] .agency-page .archive-window img { aspect-ratio:1.55; }
  html[data-style-variant="paper"] .agency-page .archive-window { padding:6px; }
  html[data-style-variant="paper"] .agency-page .track { padding:20px 16px; }
  html[data-style-variant="paper"] .agency-page .track strong { font-size:25px; }
  html[data-style-variant="paper"] .agency-page .track-panel { padding-top:28px; }
  html[data-style-variant="paper"] .agency-page .track-plan { padding:22px; }
  html[data-style-variant="paper"] .agency-page #global-brief { padding:22px 18px; }
  html[data-style-variant="paper"] .portal-page .language-grid { grid-template-columns:1fr; gap:30px; }
  html[data-style-variant="paper"] .portal-page .portal-section { padding-block:28px 36px; gap:24px; }
  html[data-style-variant="paper"] .portal-page :is(.section-caption h2,.direction-heading h2,.proof-heading h2) { font-size:30px; }
  html[data-style-variant="index"] .agency-page .global-hero { grid-template-columns:1fr; gap:36px; padding-block:36px; }
  html[data-style-variant="index"] .agency-page h1 { font-size:clamp(52px,11.8vw,86px); }
  html[data-style-variant="index"] .agency-page .hero-heading { padding:0; }
  html[data-style-variant="index"] .agency-page .hero-art { border-left:0; border-top:1px solid var(--ink); padding:24px 0 0; gap:16px; }
  html[data-style-variant="index"] .agency-page .archive-window img { aspect-ratio:1.6; }
  html[data-style-variant="index"] .agency-page .section-heading { grid-template-columns:1fr; gap:24px; }
  html[data-style-variant="index"] .agency-page .section-heading>p { justify-self:start; }
  html[data-style-variant="index"] .agency-page .track { grid-template-columns:28px minmax(0,1fr) 24px; gap:10px 14px; padding:22px 12px; }
  html[data-style-variant="index"] .agency-page .track strong { font-size:27px; }
  html[data-style-variant="index"] .agency-page .track>span:nth-last-child(2) { grid-column:2; grid-row:2; font-size:12px; }
  html[data-style-variant="index"] .agency-page .track i { grid-column:3; }
  html[data-style-variant="index"] .agency-page .track-plan { padding:22px 0 0; border-left:0; border-top:1px solid var(--line); }
  html[data-style-variant="index"] .agency-page .process-grid article { grid-template-columns:1fr; gap:16px; }
  html[data-style-variant="index"] .agency-page .process-grid :is(.kicker,h3,p:not(.kicker)) { grid-column:1; }
  html[data-style-variant="index"] .portal-page .language-card { grid-template-columns:120px minmax(0,1fr); gap:18px; padding-block:20px; }
  html[data-style-variant="index"] .portal-page .language-copy>h3 { font-size:22px; }
  html[data-style-variant="paper"] .portal-page .portal-rail,
  html[data-style-variant="index"] .portal-page .portal-rail { border-right:0; border-bottom:1px solid var(--line); }
  html[data-style-variant="paper"] .portal-page .portal-rail>.portal-room-actions button,
  html[data-style-variant="index"] .portal-page .portal-rail>.portal-room-actions button { border-color:var(--edition-border); }
  html[data-style-variant="paper"] :is(.agency-page,.portal-page) :is(input,textarea,select):not([type="checkbox"]):not([type="range"]):not([type="file"]),
  html[data-style-variant="index"] :is(.agency-page,.portal-page) :is(input,textarea,select):not([type="checkbox"]):not([type="range"]):not([type="file"]) { font-size:16px; min-height:44px; }
}
@media(max-width:480px) {
  html[data-style-variant="paper"] .agency-page .agency-line { justify-content:flex-start; font-size:9px; }
  html[data-style-variant="paper"] .agency-page .agency-line .line-note { width:100%; }
  html[data-style-variant="index"] .portal-page .language-card { grid-template-columns:1fr; gap:16px; }
  html[data-style-variant="index"] .portal-page .language-card>img { aspect-ratio:1.9; }
  html[data-style-variant="index"] .portal-page .language-copy>.language-actions { gap:8px; }
}
@media(prefers-reduced-motion:reduce) {
  html[data-style-variant="paper"] :is(.agency-page,.portal-page) *,
  html[data-style-variant="index"] :is(.agency-page,.portal-page) * { scroll-behavior:auto!important; animation:none!important; transition:none!important; }
  html[data-style-variant="paper"] .portal-page :is(.account-asset,.account-asset:hover,.account-asset:focus-within),
  html[data-style-variant="index"] .portal-page :is(.account-asset,.account-asset:hover,.account-asset:focus-within) { transform:none; }
}
@media(prefers-contrast:more) {
  html[data-style-variant="paper"] :is(.agency-page,.portal-page),
  html[data-style-variant="index"] :is(.agency-page,.portal-page) { --muted:#333; --line:#777; --edition-border:#555; }
}
@media(forced-colors:active) {
  html[data-style-variant="paper"] :is(.agency-page,.portal-page) :is(.pill,.account-button,.account-link,.language-actions button,.shell-view-switch button),
  html[data-style-variant="index"] :is(.agency-page,.portal-page) :is(.pill,.account-button,.account-link,.language-actions button,.shell-view-switch button) { border:1px solid ButtonText; }
  html[data-style-variant="paper"] .portal-page .portal-rail nav>a[aria-current="page"],
  html[data-style-variant="index"] .portal-page .portal-rail nav>a[aria-current="page"] { outline:2px solid Highlight; outline-offset:-3px; }
}
