/* Rogo / Harvey finishing pass — 10 November 2026.
   Material, optical hierarchy and interaction only. Frame geometry, source
   content, scroll containers and native actions remain owned by the demo. */
:is(html,body)[data-direction=rogo] {
  --finish-ink:#262b2a; --finish-muted:#737973; --finish-rule:#e1e5de;
  --finish-paper:#fff; --finish-field:#f5f6f2; --finish-blue:#05308c;
  --finish-selected:#edf2fa; --finish-edge:#cbd7e9;
  --finish-panel-shadow:0 1px 2px #27312605,0 5px 14px -9px #2731261c;
}
:is(html,body)[data-direction=harvey] {
  --finish-ink:#242922; --finish-muted:#74796e; --finish-rule:#e1e4dc;
  --finish-paper:#fffefa; --finish-field:#f5f5ef; --finish-blue:#05308c;
  --finish-selected:#eef2f9; --finish-edge:#cbd5e6;
  --finish-panel-shadow:0 1px 2px #252c2005,0 8px 18px -13px #252c2036;
}

/* Shared precision: every workflow uses the same ink and explicit state cues. */
html:is([data-direction=rogo],[data-direction=harvey]) body[data-design=atelier][data-finish=polished] #studyRoot {
  --wf-ink:var(--finish-ink); --wf-body:#505a53; --wf-muted:var(--finish-muted);
  --wf-line:var(--finish-rule); --wf-field:var(--finish-field); --wf-pane:var(--finish-paper);
  --wf-selected:var(--finish-selected); --wf-edge:var(--finish-edge);
  --wf-accent:var(--finish-blue); --wf-shadow:var(--finish-panel-shadow);
  font-kerning:normal;
  :is(.ms-return>strong,.ms-sheet,.or-metrics,.ps-card-value,.ds-cover-metrics,.cs-analysis-metrics) { font-variant-numeric:tabular-nums lining-nums; }
  :is(.or-header,.cs-appbar,.ps-header,.ds-workspace-bar,.as-header) { background:var(--finish-field)!important; border-color:var(--finish-rule)!important; }
  :is(.or-context,.cs-reader-toolbar,.as-panel-heading) { background:var(--finish-paper)!important; }
  :is(.or-contacts,.or-node,.as-connector,.ps-record,.cs-attachment) { border-color:var(--finish-rule)!important; box-shadow:var(--finish-panel-shadow)!important; }
  :is(.or-section-heading h3,.or-coverage-heading h3,.ms-analysis-title,.as-connector-head h3) { font-weight:550!important; letter-spacing:-.015em!important; }
  :is(.ms-return>span,.ms-assumptions dt,.or-contact-label,.ps-card-place,.ds-cover-metrics dt) { color:#70786f!important; }
  :is(.ms-sheet :is(td,th),.or-reason-list>article,.as-access-list>div) { border-color:var(--finish-rule)!important; }

  /* Sourcing: an opaque fact card above the map; blue is reserved for actions. */
  .institutional-buybox { background:var(--finish-field)!important; }
  .buybox-chips span { background:#ffffffc7!important; border-color:var(--finish-rule)!important; box-shadow:0 1px 1px #26332603!important; }
  [class*="native-sourcing-preview_propertyCard__"] { border-color:#d9e0d6!important; box-shadow:0 1px 2px #202c2010,0 12px 30px -13px #202c2038!important; }
  [class*="native-sourcing-preview_propertyCard__"] dl { background:var(--finish-field)!important; }
  [class*="native-sourcing-preview_legend__"] { box-shadow:0 1px 2px #2330230a,0 4px 12px #23302308!important; }

  /* Owner resolution: a selected source reads as evidence, not another card. */
  .or-source-list { background:var(--finish-field)!important; }
  .or-source-list>button[aria-pressed=true] { border-color:var(--finish-edge)!important; background:#fff!important; box-shadow:inset 2px 0 0 #05308c,0 2px 6px #20355708!important; }
  .or-extract { background:#f7f8f4!important; border-color:var(--finish-rule)!important; border-left-color:#6e85ad!important; }
  .or-node-person { background:var(--finish-selected)!important; border-color:var(--finish-edge)!important; }
  .or-contact-basis { color:#7a8278!important; }
  .owner-study .or-cite { background:#f2f5fb!important; border-color:#dce4f0!important; color:#284b85!important; }

  /* Cole: distinct mail, attachment and reviewed-work surfaces. */
  .cs-mail-sidebar,.cs-platform-sidebar { background:var(--finish-field)!important; }
  .cs-folder.is-active { background:#eaf0f9!important; box-shadow:inset 2px 0 0 #7992b9!important; }
  .cs-thread-label { color:#646e61!important; background:#f1f3ed!important; }
  .cs-avatar,.cs-property-mark { background:#f0f4fa!important; border-color:#dce5f0!important; }
  .cs-file-kind { background:#f7f8f5!important; border-color:#e1e5dd!important; }
  .cs-platform-link { background:#f2f5fa!important; border-color:#d8e2ef!important; box-shadow:inset 0 1px 0 #fff,0 2px 6px #1e345609!important; }
  .cs-analysis-metrics { background:var(--finish-field)!important; border-color:var(--finish-rule)!important; }
  .cs-review-items { border-color:var(--finish-rule)!important; }

  /* Pipeline: legible records on a quiet board with a single clear selection. */
  .ps-board { background:var(--finish-field)!important; }
  .pipeline-story .ps-deal { border-color:#dfe4da!important; box-shadow:0 1px 2px #26302105,0 5px 13px -10px #26302133!important; }
  .pipeline-story .ps-deal.is-selected { border-color:#b7c9e4!important; box-shadow:inset 0 2px 0 #05308c,0 2px 4px #18305908,0 8px 17px -11px #18305926!important; }
  .ps-card-next { background:#fafbf8!important; border-color:var(--finish-rule)!important; }
  .ps-mode button[aria-pressed=true] { border-color:#dce2da!important; color:#234777!important; box-shadow:0 1px 3px #20302010!important; }
  .ps-provider-strip,.ps-sync-fields { border-color:var(--finish-rule)!important; }

  /* Model: selected scenario, spreadsheet column and citation are one system. */
  .ms-workbook { border-color:#dde2d8!important; box-shadow:0 1px 2px #21311b05,0 8px 18px -15px #21311b24!important; }
  .ms-workbook-summary { border-color:var(--finish-rule)!important; background:#fff!important; }
  .ms-workbook-icon { border-color:#e1e5dd!important; background:#f5f7f1!important; color:#69745e!important; }
  .ms-sheet thead th { background:#f7f8f3!important; color:#697362!important; }
  .ms-sheet .ms-current-column { background:#f2f5fb!important; color:#294b79!important; }
  .ms-sheet .ms-sheet-results :is(th,td) { border-top-color:#d3dccb!important; }
  .ms-sheet-tabs button[aria-pressed=true] { color:#284777!important; }
  .ms-assumptions button[aria-pressed=true] { color:#05308c!important; border-color:#cfdbee!important; box-shadow:0 1px 3px #14356a0c!important; }
  .ms-evidence-record[data-selected=true] { border-color:#9eb6d6!important; box-shadow:0 0 0 2px #eaf0f9,0 5px 13px #20345208!important; }

  /* Documents: restrained paper depth and a crisp editorial reading surface. */
  .ds-paper-stage { background:#ecefe8!important; }
  .ds-paper { background:#fffefb!important; border-color:#dbe0d4!important; box-shadow:0 1px 2px #2832200c,0 15px 34px -21px #28322038!important; }
  .ds-masthead,.ds-table,.ds-source-line { border-color:#dfe4d8!important; }
  .ds-page-navigation button[aria-selected=true] { color:#05308c!important; background:#eef3fa!important; border-color:#d7e0ed!important; }
  .ds-cover-result,.ds-reconciled { background:#17385e!important; box-shadow:inset 0 1px 0 #ffffff1c!important; }

  /* Your AI: connection permissions and answer evidence retain visual priority. */
  .as-connector-head,.as-connector-foot { background:#fafbf7!important; }
  .as-user-message { background:#f1f5fa!important; border-color:#d9e3ee!important; box-shadow:0 1px 2px #17365004!important; }
  .as-tool-trace { background:#f7f8f3!important; border-color:#e0e5d8!important; }
  .as-composer { border-color:#cfd8c8!important; box-shadow:0 1px 3px #25361a09,0 6px 16px -10px #25361a20!important; }
  .as-composer:focus-within { border-color:#8ba5c7!important; box-shadow:0 0 0 3px #05308c0b,0 2px 5px #223e6208!important; }
  .agent-study .as-source-links>button { background:#f1f5fb!important; border-color:#d7e2f0!important; }

  button { transition:background-color 180ms ease,border-color 180ms ease,color 180ms ease,box-shadow 180ms ease,transform 180ms ease!important; }
  :is(button,a,summary,textarea):focus-visible { outline:2px solid #4167a2!important; outline-offset:3px!important; }
  button:not(:disabled):active { transform:translateY(1px); }
}

/* Rogo: the context pane is part of a considered, low-noise working document. */
html[data-direction=rogo] body[data-design=atelier][data-finish=polished] #studyRoot {
  [data-tour-viewport] { border-color:#dfe5dc!important; box-shadow:0 1px 3px #29392505,0 8px 22px -17px #29392528!important; }
  [data-tour-caption] { background:#fafbf7!important; border-color:#e2e6de!important; }
  .replica-source-list>button { border-color:#e5e9e1!important; color:#454d43!important; }
  .replica-source-list>button small { color:#7e8778!important; }
  [aria-label="Platform preview modules"] button[aria-selected=true] { background:#eaf0f7!important; border-color:#d8e1ec!important; color:#173d78!important; box-shadow:inset 2px 0 0 #6586b8!important; }
  [aria-label="Platform preview modules"] button[aria-selected=true] .replica-module-icon { color:#446ba4!important; }
  .ms-header h2 { color:#292f27!important; letter-spacing:-.045em!important; }
  .ms-return>strong,.ms-return-primary>strong { color:#283529!important; letter-spacing:-.045em!important; }
  .ms-return-primary>strong { color:#213e68!important; }
  .ms-case-row.is-current { background:#f0f4fa!important; color:#234575!important; }
  .ms-case-row.is-current .ms-case-track i { background:#7994b9!important; }
  .ms-sheet-tabs button[aria-pressed=true] { background:#fff!important; border-color:#dce3d7!important; box-shadow:0 1px 2px #24381a07!important; }
  .cs-mail-content>h2,.cs-deal-header h2,.or-source-detail h2 { letter-spacing:-.035em!important; }
  .or-metrics strong { color:#344f73!important; font-weight:450!important; }
  .ps-card-title { letter-spacing:-.02em!important; }
  [data-tour-caption] [class*="guideActions__"] :is(button[data-guide-action=next],button[data-guide-action=replay]) { background:linear-gradient(#16469b,#05308c)!important; border-color:#0b3487!important; box-shadow:inset 0 1px 0 #ffffff26,0 2px 4px #092f7d16!important; }
}

/* Harvey: dark navigation carries the frame; warm paper carries the work. */
html[data-direction=harvey] body[data-design=atelier][data-finish=polished] #studyRoot {
  [class*="guided-platform-demo_modules__"] { background:linear-gradient(160deg,#1a211a,#11170f 70%)!important; box-shadow:inset -1px 0 0 #ffffff0c!important; }
  [aria-label="Platform preview modules"] button[aria-selected=true] { background:#313b31!important; border-color:#4d5a49!important; box-shadow:inset 2px 0 0 #a6bfa0,inset 0 1px 0 #ffffff08!important; }
  .replica-rail-footer { border-color:#ffffff13!important; color:#99a390!important; }
  [data-tour-caption] { background:#fcfcf8!important; border-top-color:#dce2d3!important; box-shadow:0 -3px 10px #25311903!important; }
  :is(.ms-returns,.ms-analysis-row) { border-color:#e0e4d8!important; box-shadow:0 1px 2px #27322005,0 5px 13px -11px #27322025!important; }
  .ms-header h2,.or-identity h2,.cs-mail-content>h2,.cs-deal-header h2,.as-answer-core h2,.as-settings-intro h2 { font-family:Georgia,"Times New Roman",serif!important; font-weight:400!important; letter-spacing:-.035em!important; }
  .ds-page-heading h2 { font-family:Georgia,"Times New Roman",serif!important; font-weight:400!important; letter-spacing:-.035em!important; }
  .ms-return>strong,.ms-return-primary>strong { color:#283623!important; font-weight:400!important; }
  .ms-return-primary>strong { text-shadow:0 1px 0 #fff; }
  .ms-case-row.is-current { background:#edf2e8!important; color:#31452b!important; }
  .ms-case-track i { background:#aab59e!important; }
  .ms-case-row.is-current .ms-case-track i { background:#455c3b!important; }
  .ms-sheet-tabs button[aria-pressed=true] { border-bottom-color:#61765a!important; }
  .or-contact strong,.ps-card-value>strong,.ds-cover-metrics dd { color:#31482b!important; }
  .or-node-person h3 { color:#26456e!important; }
  .ds-cover-result,.ds-reconciled { background:#2a3c28!important; }
  [data-tour-caption] [class*="guideActions__"] :is(button[data-guide-action=next],button[data-guide-action=replay]) { background:linear-gradient(#34402e,#263122)!important; border-color:#2c3926!important; box-shadow:inset 0 1px 0 #ffffff20,0 2px 4px #23301b16!important; }
}

/* All eight Rogo illustrations share the same compact product materials. */
body[data-direction=rogo] {
  .ix-r-app { background:linear-gradient(130deg,#f6f6f2,#eeefe9); border-color:#dadfd4; box-shadow:inset 0 1px 0 #fff,0 1px 2px #24301c0a,0 15px 28px -21px #24301c52; }
  .ix-r-chrome { color:#7a8074; text-shadow:0 1px 0 #fff; }
  .ix-r-chrome>span:first-child { color:#454b40; }
  .ix-r-context { background:#fafaf6; border-color:#e3e6dc; }
  .ix-r-work { background:#fffefa; border-color:#e2e5db; box-shadow:0 1px 3px #28371e05; }
  .ix-r-label,.ix-r-context-note { color:#7d8375; }
  .ix-r-data { border-color:#e9ebe3; }
  .ix-r-data strong { color:#3c4437; font-variant-numeric:tabular-nums; }
  .ix-r-search { background:#f7f8f2; border-color:#e2e5da; box-shadow:inset 0 1px 2px #30432004; }
  .ix-r-property h4,.ix-r-title,.ix-r-memo h4 { color:#2e3529; text-wrap:pretty; }
  .ix-r-icon { background:#f0f3e9; border-color:#dfe4d6; color:#6c795e; }
  .ix-r-property-meta strong { color:#4e5a43; font-variant-numeric:tabular-nums; }
  .ix-r-entity { border-color:#e1e5d9; box-shadow:0 1px 2px #26391b04; }
  .ix-r-entity-active { background:#f1f5fb; border-color:#ccdbed; box-shadow:inset 2px 0 0 #7594bd,0 2px 5px #203a5e06; }
  .ix-r-path { color:#87917c; }
  .ix-r-pill { color:#6e7960; background:#f5f7ee; border-color:#e2e7d8; }
  .ix-r-current { color:#254c83!important; background:#edf2fa!important; box-shadow:inset 2px 0 0 #8ba5c9; }
  .ix-r-avatar { background:#f2f4eb; color:#778467; border-color:#e0e5d7; }
  .ix-r-compose,.ix-r-brief { background:#fff; border-color:#dfe4d8; box-shadow:0 1px 2px #26371d06,0 7px 15px -12px #26371d25; }
  .ix-r-compose>p { color:#414a39; }
  .ix-r-compose footer { color:#7d8771; border-color:#e5e9de; }
  .ix-r-sheet { border-color:#dfe4d7; box-shadow:0 1px 2px #2a3b1e05; }
  .ix-r-sheet-head { background:#f4f6ed; color:#7a846e; }
  .ix-r-input>strong { color:#48583b; font-variant-numeric:tabular-nums; }
  .ix-r-scenario b { background:#eaf1fc; color:#244e8e; box-shadow:inset 0 0 0 1px #dce6f5,0 1px 2px #163e7c06; }
  .ix-r-documents .ix-r-work { background:#f0f2e9; }
  .ix-r-memo { background:#fffef9; border-color:#dde2d4; box-shadow:0 1px 2px #293a1c0a,0 11px 21px -16px #293a1c35; }
  .ix-r-memo-rule { background:#e2e6da; }
  .ix-r-pipeline>div:first-child { color:#244b83; background:#edf3fc; box-shadow:inset 2px 0 0 #7e9fc9; }
  .ix-r-task { background:#fbfcf7; border-color:#e0e5d7; box-shadow:0 1px 2px #26371d04; }
  .ix-r-task>svg { color:#869475; }
  .ix-r-brief header>svg,.ix-r-output>svg { color:#81946d; }
  .ix-r-brief p { color:#59664e; }
  .ix-r-output { border-color:#e5e9de; }
  .ix-r-connect-brand { color:#405035; }
  .ix-r-permissions .ix-r-data>strong { color:#586747; }
  .ix-r-footnote { color:#828c76; border-color:#e5e9dd; }
}

/* All eight Harvey illustrations use a jewel-dark rail and editorial paper. */
body[data-direction=harvey] {
  .ix-v-app { border-color:#cbd4c3; background:#f4f5ee; box-shadow:0 1px 3px #18241012,0 16px 28px -20px #18241050; }
  .ix-v-rail { background:linear-gradient(160deg,#1e281b,#141c12); color:#8e9e82; box-shadow:inset -1px 0 0 #ffffff08; }
  .ix-v-rail>span.ix-v-active { background:#35432e; border-left-color:#b0c69c; color:#e9efe4; box-shadow:inset 0 1px 0 #ffffff0b; }
  .ix-v-rail-bottom { border-color:#ffffff14; color:#a7b49b; }
  .ix-v-chrome { background:#fcfcf7; border-color:#dfe6d6; color:#818e74; }
  .ix-v-heading,.ix-v-property-title h5,.ix-v-owner h5 { color:#2b3a24; }
  .ix-v-label { color:#78866d; }
  .ix-v-buybox>span { background:#fffefa; border-color:#dae4d0; color:#687b59; }
  .ix-v-status { background:#f1f5ea; border-color:#dce5d2; color:#698056; }
  .ix-v-property-card,.ix-v-owner article,.ix-v-financials article,.ix-v-letter,.ix-v-brief,.ix-v-hub { background:#fffefb; border-color:#dce4d3; box-shadow:0 1px 2px #293d1c05,0 7px 15px -13px #293d1c2b; }
  .ix-v-property-title>.ix-v-status { background:#edf3fc; border-color:#d2dff1; color:#244e89; }
  .ix-v-property-values { border-color:#e0e7d8; }
  .ix-v-property-values strong,.ix-v-financials article>strong { color:#354c28; font-variant-numeric:tabular-nums; }
  .ix-v-owner-link { color:#91a27d; }
  .ix-v-file,.ix-v-notice,.ix-v-model-note,.ix-v-pipeline-footer { color:#7b8b6e; }
  .ix-v-person { background:#eaf0e1; border-color:#d8e2cd; color:#70865d; }
  .ix-v-letter h4,.ix-v-letter>p { color:#3b4c30; }
  .ix-v-letter footer { border-color:#e1e8d9; color:#7a8b6b; }
  .ix-v-cases { background:#fcfdf8; border-color:#dce5d3; box-shadow:0 1px 2px #293d1c04; }
  .ix-v-cases b { background:#eaf1fb; border-color:#cddcf0; color:#1b4482; box-shadow:0 1px 2px #14346c08; }
  .ix-v-documents .ix-v-content { background:linear-gradient(135deg,#e8eee0,#edf1e8); }
  .ix-v-paper { background:#fffef8; border-color:#d6dfca; box-shadow:0 1px 2px #2433160b,0 13px 23px -16px #24331642; }
  .ix-v-paper>h4 { color:#2c4022; }
  .ix-v-paper-bottom { border-color:#dfe7d5; }
  .ix-v-pipeline { border-color:#dbe5d1; box-shadow:0 1px 2px #263a1805; }
  .ix-v-pipeline-head { background:#f3f7ec; color:#7d8e6e; border-color:#dfe8d5; }
  .ix-v-pipeline-row { border-color:#e3eadb; }
  .ix-v-selected { background:#eff4fc; border-left-color:#5275ab; }
  .ix-v-selected>strong { color:#244b82; }
  .ix-v-brief p,.ix-v-deliverables h5 { color:#3a512e; }
  .ix-v-deliverables article,.ix-v-tools>span { background:#fffefa; border-color:#dce6d2; box-shadow:0 1px 2px #263a1805; }
  .ix-v-deliverables article>svg,.ix-v-tools svg { color:#7a9564; }
  .ix-v-connection-line:before { border-color:#bdcdb0; }
  .ix-v-connection-line svg { color:#8da17b; background:#f4f5ee; }
  .ix-v-hub>span { background:#edf3e4; color:#799562; border-color:#dae6ce; }
  .ix-v-access { color:#7e916f; }
}

@media (hover:hover) and (pointer:fine) {
  html:is([data-direction=rogo],[data-direction=harvey]) body[data-design=atelier][data-finish=polished] #studyRoot {
    :is(.replica-source-list>button,.or-source-list>button,.ms-sheet-tabs button,.ps-mode button):not(:disabled):hover { background:#f0f4ed!important; border-color:#cbd7c2!important; }
    [data-tour-caption] [class*="guideActions__"] button[data-guide-action]:not(:disabled):hover { box-shadow:inset 0 1px 0 #ffffff24,0 3px 7px #263e241b!important; }
    .pipeline-story .ps-deal:hover { border-color:#b7c6a9!important; box-shadow:0 2px 5px #263a1810,0 7px 16px -11px #263a1830!important; }
  }
}
@media (prefers-reduced-motion:reduce) {
  html:is([data-direction=rogo],[data-direction=harvey]) body[data-design=atelier][data-finish=polished] #studyRoot button { transition:none!important; }
  html:is([data-direction=rogo],[data-direction=harvey]) body[data-design=atelier][data-finish=polished] #studyRoot button:not(:disabled):active { transform:none; }
}
