/* Canonical Lacuna presentation. No role/readiness/ACL/receipt state encoded. */
/* R14 first Native port. Actual routing/data/commands and slot nodes remain native. */
.lacuna-native-shell[data-native-r14=true][data-r14-theme=smoked]{--workspace-bg:#080e10;--workspace-panel:#10191d;--workspace-raised:#142329;--workspace-soft:#13332f;--workspace-line:#253b43;--workspace-line-bright:#41636b;--workspace-text:#edf3f4;--workspace-muted:#a2b6bf;--workspace-blue:#58e2cb;--workspace-amber:#f2c65d;--r14-forge:#f2c65d}
.lacuna-native-shell[data-native-r14=true][data-r14-theme=light]{color-scheme:light;--workspace-bg:#f5f8fa;--workspace-panel:#fff;--workspace-raised:#eaf1f4;--workspace-soft:#d9efea;--workspace-line:#cbd7dc;--workspace-line-bright:#8aa4ad;--workspace-text:#13282e;--workspace-muted:#4b6772;--workspace-blue:#00776d;--workspace-amber:#8a5b00;--r14-forge:#8a5b00}
.lacuna-native-shell[data-native-r14=true][data-r14-theme=oled]{color-scheme:dark;--workspace-bg:#000;--workspace-panel:#080c0d;--workspace-raised:#101819;--workspace-soft:#0c2621;--workspace-line:#263737;--workspace-line-bright:#506c67;--workspace-text:#f3faf7;--workspace-muted:#aec1b9;--workspace-blue:#65ecd0;--workspace-amber:#ffd76a;--r14-forge:#ffd76a}
.shell[data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true]{--r14-lab:var(--workspace-blue,#58e2cb);--r14-forge:var(--workspace-amber,#f2c65d);--r14-surface:var(--workspace-panel);--bg:var(--workspace-bg);--surface:var(--workspace-panel);--surface-strong:var(--workspace-raised);--panel:var(--workspace-panel);--panel-2:var(--workspace-raised);--text:var(--workspace-text);--muted:var(--workspace-muted);--line:var(--workspace-line);--line-strong:var(--workspace-line-bright);--cyan:var(--workspace-blue);--amber:var(--r14-forge);font:14px/1.5 Inter,"Segoe UI",system-ui,sans-serif;min-width:0}
.lacuna-native-shell[data-native-r14=true] :is(button,input,textarea,select){font:inherit}
.lacuna-native-shell[data-native-r14=true] .lacuna-native-shell__brand{gap:8px;min-width:0}
.lacuna-native-shell[data-native-r14=true] .lacuna-native-shell__citadel-mark{width:38px;height:40px;flex:none}
.lacuna-native-shell[data-native-r14=true] .lacuna-native-shell__citadel-mark{color:var(--workspace-text)}
.lacuna-native-shell[data-r14-theme=light] [data-brand-layer=cyan]{fill:#087f80}
.lacuna-native-shell[data-native-r14=true] .lacuna-native-shell__citadel-mark>svg{display:block;width:38px;height:40px;max-width:100%}
.lacuna-native-shell[data-native-r14=true] .r14-native-wordmark{display:block;width:112px;height:22px;flex:none;color:var(--workspace-text)}
.r14-native-wordmark>svg{width:100%;height:100%;display:block}
.lacuna-native-shell[data-native-r14=true] .lacuna-native-shell__brand>.brand .brand-lockup{position:absolute!important;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
.lacuna-native-shell[data-native-r14=true] .lacuna-native-shell__brand>.brand{min-width:0;padding:0;border:0}
.lacuna-native-shell[data-native-r14=true][data-compact=true] .r14-native-wordmark{display:none}
.shell[data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .lacuna-native-shell__tab{min-height:42px;min-width:52px;font-size:12px;border-radius:8px;padding:8px;color:var(--workspace-muted)}
.shell[data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .lacuna-native-shell__tab[aria-current=page]{background:var(--workspace-soft);color:var(--r14-lab);border-color:var(--r14-lab)}
.shell[data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .lacuna-native-shell__tab[data-mode=project][aria-current=page]{color:var(--r14-forge);border-color:var(--r14-forge);background:color-mix(in srgb,var(--r14-forge) 10%,var(--workspace-bg))}
.lacuna-native-shell[data-native-r14=true] :is(.domain-rail-item,.chat-room-list-item){min-width:0;max-width:100%;padding:12px;border-radius:8px;overflow-wrap:anywhere;white-space:normal}
.lacuna-native-shell[data-native-r14=true] .domain-rail-meta{display:block;margin-top:4px;font-size:11px;color:var(--workspace-muted)}
.lacuna-native-shell[data-native-r14=true] [data-native-r14-project=true]{min-width:0;container:r14-project / inline-size}
.r14-native-project-heading{gap:6px!important;margin-bottom:10px!important}
.r14-native-project-heading>h2{font-size:23px;line-height:1.35;overflow-wrap:anywhere;min-width:0}
.r14-native-project-heading>.domain-kicker{font-size:10px;color:var(--r14-forge)}
.r14-native-checkpoints{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;margin:8px 0 14px;position:relative;border-top:1px solid var(--workspace-line);padding-top:13px;min-width:0}
.r14-native-checkpoint{display:flex;flex-direction:column;align-items:center;gap:4px;border:0!important;border-radius:0!important;padding:4px 2px 9px!important;background:transparent!important;min-width:0;min-height:80px!important;color:var(--workspace-muted)!important;font-size:11px!important}
.r14-native-checkpoint:disabled{opacity:1;cursor:default}.r14-native-checkpoint strong{font-size:12px;line-height:1.5;overflow-wrap:anywhere}.r14-native-checkpoint small{font-size:10px;line-height:1.45}
.r14-native-checkpoint-icon{display:grid;place-items:center;width:38px;height:38px;border:2px solid var(--workspace-line);border-radius:50%;background:var(--workspace-bg);font-size:23px;font-weight:400}
.r14-native-checkpoint-icon>.checkpoint-glyph{width:23px;height:23px;display:block}
.r14-native-checkpoint[aria-current=step]{color:var(--r14-forge)!important}.r14-native-checkpoint[aria-current=step] .r14-native-checkpoint-icon{border-color:var(--r14-forge)}
.r14-native-orientation{min-width:0;margin:0 0 12px;border-left:2px solid var(--r14-forge);padding:10px 12px;background:var(--workspace-panel);border-radius:0 8px 8px 0}
.r14-native-orientation .forge-state-card{margin:0;border:0;background:transparent;padding:0}
.r14-native-phase{font-size:10px;color:var(--r14-forge)}.r14-native-status{display:block;font-size:15px;line-height:1.5}.r14-native-progress{display:block;font-size:11px;color:var(--workspace-muted);margin-top:4px}.r14-native-next{font-size:12px;line-height:1.6;margin:8px 0;overflow-wrap:anywhere}
.r14-native-open-current{min-height:38px!important;border:1px solid var(--workspace-line);border-radius:7px;background:var(--workspace-soft);padding:7px 11px;color:var(--workspace-text)}
.r14-native-result-boundary{display:block;color:var(--workspace-muted);font-size:11px;line-height:1.5;margin-top:7px}
.r14-native-result{min-width:0;border-radius:8px}.r14-native-result :is(p,li,pre,code){overflow-wrap:anywhere;max-width:100%}
.lacuna-native-shell[data-native-r14=true] :is(.lacuna-project-conversation,.lacuna-project-conversation__feed,.lacuna-project-conversation__composer,.studio-main,.studio-tabpanel){min-width:0;max-width:100%}
.lacuna-native-shell[data-native-r14=true] :is(.domain-status,.domain-version){font-size:11px;line-height:1.5}
.lacuna-native-shell[data-native-r14=true] :is(button,a,input,textarea,select,summary):focus-visible{outline:2px solid var(--workspace-blue);outline-offset:2px}
@media(max-width:700px){.r14-native-project-heading>h2{font-size:20px}.r14-native-checkpoints{padding-top:9px;margin-bottom:9px}.r14-native-checkpoint{min-height:74px!important}.r14-native-checkpoint-icon{width:32px;height:32px;font-size:20px}.r14-native-checkpoint strong{font-size:10px}.r14-native-checkpoint small{font-size:9px}.r14-native-orientation{padding:9px}.r14-native-wordmark{display:none!important}}
@media(prefers-reduced-motion:reduce){.lacuna-native-shell[data-native-r14=true] *{scroll-behavior:auto}}
.lacuna-native-shell[data-design=lacuna-r7] {
  /* Palette inherits the parent's current theme, including Light/OLED.
     Never overwrite parent preference tokens in a child or profile dialog. */
  --lacuna-control:36px;--lacuna-radius:8px;--lacuna-space:16px;
  font:14px/1.5 "Segoe UI", system-ui, Arial, sans-serif;
}
.lacuna-native-shell[data-design=lacuna-r7] button { border-radius:var(--lacuna-radius,8px); }
.lacuna-native-shell[data-design=lacuna-r7] .chat-command-message-sender { font-size:12px;line-height:1.4; }
.lacuna-native-shell[data-design=lacuna-r7] .chat-command-message { padding:10px 12px;max-width:100%;border-radius:8px; }
.lacuna-native-shell[data-design=lacuna-r7] .chat-command-message-head { gap:8px;margin-bottom:5px; }
.lacuna-native-shell[data-design=lacuna-r7] .message-body { font-size:14px;line-height:1.5; }
.lacuna-native-shell[data-design=lacuna-r7] .semantic-block { border-radius:8px;min-width:0; }
.lacuna-native-shell[data-design=lacuna-r7] .chat-command-message-footer { font-size:11px;line-height:1.4; }
@media(pointer:coarse){.lacuna-native-shell[data-design=lacuna-r7]{--lacuna-control:44px;}}
.native-source-return { display:flex;grid-column:1/-1;align-items:center;gap:8px 12px;flex-wrap:wrap;width:100%;padding:10px 12px;border:1px solid var(--workspace-line);border-left:2px solid var(--workspace-blue);border-radius:8px;background:var(--workspace-panel);font-size:13px; }
.native-source-return > span { flex:1;min-width:0;overflow-wrap:anywhere; }
.native-source-return > button { min-height:36px; }
.native-source-return > small { flex-basis:100%;color:var(--workspace-muted);font-size:11px; }
@media(max-width:560px) {
  .shell[data-lacuna-native=true][data-product-mode=chat][data-chat-rail-drawer=closed] .lacuna-native-shell[data-design=lacuna-r7][data-compact=true] .black-lab-rail { display:none!important; }
  .native-source-return { padding:8px;gap:6px; }
  .native-source-return > span { flex:0 0 100%;font-size:12px;line-height:1.4; }
  .native-source-return > button { min-height:44px;width:100%; }
  .native-source-return > small { display:none; }
  .shell[data-lacuna-native=true][data-product-mode=chat] .lacuna-native-shell[data-design=lacuna-r7] .studio-chat {
    overflow-y:auto;grid-template-rows:max-content max-content max-content minmax(120px,1fr);
  }
  .shell[data-lacuna-native=true][data-product-mode=chat] .lacuna-native-shell[data-design=lacuna-r7] .studio-chat > :is(.studio-chat-stream,.studio-chat-threads,.studio-chat-media,.studio-chat-files) { grid-row:4!important;min-height:120px; }
  .shell[data-lacuna-native=true][data-product-mode=chat] .lacuna-native-shell[data-design=lacuna-r7] .chat-command-header:has(.native-source-return) {
    grid-template-areas:"return return return" "drawer kind title" "summary summary summary" "actions actions actions" "selection selection selection";
  }
  .native-source-return { grid-area:return; }
}

/* R14 Native polish R2 — observed Source paint corrections only. Keep native
   hidden/currentness, status/disclosure, route and conversation owners intact. */
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true]{--studio-bg:var(--workspace-bg);--studio-panel:var(--workspace-panel);--studio-raised:var(--workspace-raised);--studio-line:var(--workspace-line);--studio-line-strong:var(--workspace-line-bright);--studio-text:var(--workspace-text);--studio-muted:var(--workspace-muted);--studio-accent:var(--workspace-blue);--studio-amber:var(--workspace-amber)}
.r14-native-brand-label{position:absolute!important;inline-size:1px!important;block-size:1px!important;overflow:hidden!important;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .lacuna-native-shell__brand{flex:1 1 0;min-inline-size:0;gap:7px}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .lacuna-native-shell__brand>.brand .brand-lockup{inline-size:1px!important;block-size:1px!important;overflow:hidden!important;clip:rect(0,0,0,0);clip-path:inset(50%)}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .lacuna-native-shell__brand>.brand .brand-controls{display:none}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .lacuna-native-shell__citadel-mark{inline-size:34px;block-size:36px}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .lacuna-native-shell__citadel-mark>svg{inline-size:34px;block-size:36px}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .r14-native-wordmark{inline-size:108px;block-size:20px}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] button.lacuna-native-shell__rail-toggle{font-size:0!important;inline-size:28px;min-inline-size:28px;flex:0 0 28px;min-block-size:36px;padding:0;margin-inline-start:4px}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] [data-native-r14-project=true]{padding:12px!important;gap:8px!important}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] [data-native-r14-project=true]>.studio-main{gap:8px;min-inline-size:0}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .r14-native-project-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:0!important;margin:0!important;min-inline-size:0}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .r14-native-project-heading>.domain-kicker{grid-column:1;grid-row:1;font-size:10px;align-self:center}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .r14-native-project-heading>.domain-status{grid-column:2;grid-row:1;justify-self:end;font-size:10px;padding:2px 7px}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .r14-native-project-heading>h2{grid-column:1/-1;grid-row:2;margin:0!important;font-size:21px;line-height:1.3;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-block-size:2.6em;overflow:hidden;overflow-wrap:anywhere;word-break:normal}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .r14-native-project-heading[data-r14-title-expanded=true]>h2{display:block;-webkit-line-clamp:unset;max-block-size:none;overflow:visible}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .r14-native-title-toggle{grid-column:1/-1;grid-row:3;justify-self:start;min-block-size:28px;padding:2px 0;border:0;background:transparent;color:var(--workspace-blue);font-size:11px;font-weight:500}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .r14-native-checkpoints{grid-template-columns:repeat(6,minmax(52px,1fr));gap:0;margin:0;padding:8px 0 0;overflow-x:auto;max-inline-size:100%;scrollbar-width:thin;overscroll-behavior-inline:contain;scroll-snap-type:inline proximity}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .r14-native-checkpoint{gap:3px;min-block-size:64px!important;padding:2px 2px 5px!important;scroll-snap-align:center;white-space:nowrap;overflow-wrap:normal;word-break:normal}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .r14-native-checkpoint strong{font-size:11px!important;line-height:1.4;white-space:nowrap;overflow-wrap:normal;word-break:normal}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .r14-native-checkpoint small{font-size:9px!important;line-height:1.3;min-block-size:12px;white-space:nowrap;overflow-wrap:normal;word-break:normal}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .r14-native-checkpoint-icon{inline-size:32px;block-size:32px;border-width:1.5px}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .r14-native-stage-legend{margin:0;font-size:10px;line-height:1.4;color:var(--workspace-muted)}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .forge-state-card.r14-native-orientation{margin:0;padding:0;gap:0}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .forge-state-card.r14-native-orientation>.forge-state-card__summary{min-block-size:54px;padding:8px 10px;gap:8px;grid-template-columns:18px minmax(0,1fr) 16px}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .forge-state-card__copy{gap:2px}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .forge-state-card__title{font-size:13px;line-height:1.4}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] :is(.forge-state-card__revision,.forge-state-card__reason){font-size:11px;line-height:1.4}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .forge-state-card__reason{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-block-size:2.8em}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .forge-state-card__actions{display:flex;flex-wrap:wrap;gap:4px 8px;padding:0 10px 8px 36px;font-size:12px;line-height:1.45}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .forge-state-card__actions:empty{display:none}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .forge-state-card__actions>button{inline-size:auto;min-block-size:34px;font-size:12px;padding:5px 9px}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] :is(.forge-state-card__next-label,.forge-state-card__owner){font-size:10px}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .r14-native-supporting-next{margin:10px 0 0;padding:10px!important;display:grid;gap:4px;font-size:12px}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] [data-native-r14-project=true] .studio-tabs{margin:0 0 8px;padding:0;gap:4px;flex-wrap:nowrap;overflow-x:auto;max-inline-size:100%}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] [data-native-r14-project=true] .studio-tab{white-space:nowrap}
@media(max-width:700px){.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] [data-native-r14-project=true]{padding:10px!important}.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .r14-native-project-heading>h2{font-size:18px;line-height:1.35;-webkit-line-clamp:3;max-block-size:4.05em}.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .r14-native-project-heading[data-r14-title-expanded=true]>h2{max-block-size:none;-webkit-line-clamp:unset}.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .r14-native-title-toggle{min-block-size:34px}.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .forge-state-card__actions{padding-inline-start:10px}}
@media(min-width:1101px){
  .shell[data-ui-edition="rick"][data-lacuna-native=true]:is([data-product-mode=lab],[data-product-mode=project])>.lacuna-native-shell[data-native-r14=true][data-context=true]:has(.lacuna-project-conversation[data-presentation=inline]>.lacuna-project-conversation__launcher[aria-expanded=false]:not([hidden]))>.lacuna-native-shell__body{grid-template-rows:minmax(0,1fr) auto!important}
  .shell[data-ui-edition="rick"][data-lacuna-native=true]:is([data-product-mode=lab],[data-product-mode=project])>.lacuna-native-shell[data-native-r14=true][data-context=true]:has(.lacuna-project-conversation[data-presentation=inline]>.lacuna-project-conversation__launcher[aria-expanded=false]:not([hidden]))>.lacuna-native-shell__body>.lacuna-native-shell__rail{grid-row:1/-1!important}
  .shell[data-ui-edition="rick"][data-lacuna-native=true]:is([data-product-mode=lab],[data-product-mode=project])>.lacuna-native-shell[data-native-r14=true][data-context=true]:has(.lacuna-project-conversation[data-presentation=inline]>.lacuna-project-conversation__launcher[aria-expanded=false]:not([hidden]))>.lacuna-native-shell__body>.lacuna-native-shell__main{grid-row:1!important;min-block-size:0;position:static!important}
  .shell[data-ui-edition="rick"][data-lacuna-native=true]:is([data-product-mode=lab],[data-product-mode=project])>.lacuna-native-shell[data-native-r14=true][data-context=true]:has(.lacuna-project-conversation[data-presentation=inline]>.lacuna-project-conversation__launcher[aria-expanded=false]:not([hidden]))>.lacuna-native-shell__body>.lacuna-native-shell__context{grid-column:2!important;grid-row:2!important;position:static!important;inset:auto!important;min-block-size:0;max-block-size:none;block-size:auto;padding:6px 12px!important;margin:0;border:0;border-top:1px solid var(--workspace-line)}
  .shell[data-ui-edition="rick"][data-lacuna-native=true]>.lacuna-native-shell[data-native-r14=true] .lacuna-project-conversation__launcher{position:static!important;max-inline-size:100%;min-block-size:34px;font-size:12px}
}

/* Source-only R7 consumer: one pinned native route, no cloned controls. */
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .r14-native-project-topline {
  position:sticky;inset-block-start:0;z-index:4;display:grid;grid-template-columns:minmax(0,.9fr) minmax(360px,1.4fr);
  align-items:center;gap:12px 24px;min-inline-size:0;padding-block:10px;background:var(--workspace-bg);
  border-block-end:1px solid var(--workspace-line);
}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .r14-native-project-topline .r14-native-checkpoints {
  padding-block:6px 0;border:0;isolation:isolate;align-self:center;
}
.r14-native-project-topline .r14-native-checkpoints::before {
  content:"";position:absolute;inset-inline:calc(100% / 12);inset-block-start:24px;block-size:1px;background:var(--workspace-line-bright);z-index:-1;
}
.shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .r14-native-checkpoint[aria-current=step] .r14-native-checkpoint-icon {
  background:color-mix(in srgb,var(--r14-forge) 16%,var(--workspace-bg));box-shadow:0 0 0 3px color-mix(in srgb,var(--r14-forge) 10%,transparent);
}
.stage-motion-work .stage-work-gear { transform-origin:12px 12px;animation:r7-native-gear 8s linear infinite;animation-play-state:paused; }
.stage-motion-work[data-motion-visible=true] .stage-work-gear { animation-play-state:running; }
@keyframes r7-native-gear { to { transform:rotate(360deg); } }
[data-motion=off] .stage-work-gear { animation:none!important; }
@media(prefers-reduced-motion:reduce) { .stage-motion-work .stage-work-gear { animation:none!important; } }
@media(max-width:1100px) {
  .shell[data-ui-edition="rick"][data-lacuna-native=true] .lacuna-native-shell[data-native-r14=true] .r14-native-project-topline { grid-template-columns:minmax(0,1fr);gap:6px;padding-block:8px; }
}

/* Optional admitted product basis. Readable business brief != runtime packet. */
.forge-execution-workspace .project-product-basis { min-inline-size:0;display:grid;gap:14px;padding:18px;border:1px solid var(--workspace-line,var(--line));border-radius:12px;background:var(--workspace-panel,var(--panel)); }
.project-product-basis__heading { display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap; }
.project-product-basis__heading h4 { margin:0;font-size:18px;line-height:1.35;letter-spacing:-.015em; }
.project-product-basis__state { color:var(--workspace-blue,var(--cyan));font-size:11px;line-height:1.5; }
.project-product-basis[data-state=conflict] .project-product-basis__state { color:var(--workspace-amber,var(--amber)); }
.project-product-basis__columns { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px; }
.project-product-basis__columns>div { display:grid;align-content:start;gap:18px;min-inline-size:0; }
.project-product-basis__expected { padding-inline-start:24px;border-inline-start:1px solid var(--workspace-line,var(--line)); }
.project-product-basis__field { min-inline-size:0; }
.project-product-basis__field h5 { margin:0 0 6px;color:var(--workspace-text,var(--text));font-size:12px;font-weight:650;line-height:1.5; }
.project-product-basis__field p { margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7; }
.project-product-basis :is(.project-product-basis__boundary,.project-product-basis__sample,.project-product-basis__packet,.project-product-basis__lineage) { margin:0;color:var(--workspace-muted,var(--muted));font-size:11px;line-height:1.65;overflow-wrap:anywhere; }
.project-product-basis__sample { padding:10px 12px;border:1px dashed var(--workspace-line,var(--line));border-radius:8px; }
.project-product-basis :is(.project-product-basis__details,.project-product-basis__long-copy) { min-inline-size:0; }
.project-product-basis__details { border-block-start:1px solid var(--workspace-line,var(--line));padding-block-start:4px; }
.project-product-basis summary { display:flex;align-items:center;justify-content:space-between;gap:14px;min-block-size:36px;list-style:none;cursor:pointer;font-size:12px;line-height:1.6;overflow-wrap:anywhere;color:var(--workspace-muted,var(--muted)); }
.project-product-basis summary::-webkit-details-marker { display:none; }
.project-product-basis summary::after { content:"";inline-size:6px;block-size:6px;border-inline-end:1.5px solid currentColor;border-block-end:1.5px solid currentColor;transform:rotate(45deg);flex:none;margin-inline-end:3px; }
.project-product-basis details[open]>summary::after { transform:rotate(225deg); }
.project-product-basis__details>.project-product-basis__field { margin-block:14px; }
.project-product-basis__identity { display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 16px;margin:18px 0;font-size:10px;line-height:1.6; }
.project-product-basis__identity dt { color:var(--workspace-muted,var(--muted)); }.project-product-basis__identity dd { margin:0;overflow-wrap:anywhere; }
.project-product-basis__link { color:var(--workspace-blue,var(--cyan));font-size:12px;text-underline-offset:3px; }
.project-product-basis__packet { border-block-start:1px solid var(--workspace-line,var(--line));padding-block-start:12px; }
@media(max-width:760px) {
  .forge-execution-workspace .project-product-basis { padding:14px;gap:12px; }
  .project-product-basis__columns { grid-template-columns:minmax(0,1fr);gap:18px; }
  .project-product-basis__expected { padding-inline-start:0;padding-block-start:18px;border-inline-start:0;border-block-start:1px solid var(--workspace-line,var(--line)); }
  .project-product-basis__identity { grid-template-columns:minmax(0,1fr);gap:3px; }.project-product-basis__identity dd { margin-block-end:9px; }
}

/* RC17 / D3 S1: maintained shell presentation, not prototype business state.
   Preserve native hidden/inert, theme, exact DTO/version and all form owners. */
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true] {
  --rc17-rail-width:280px;--rc17-control-radius:10px;--rc17-card-radius:16px;
  --rc17-dock-height:calc(68px + env(safe-area-inset-bottom,0px));
  --lacuna-control:34px;--lacuna-radius:var(--rc17-control-radius);
  font:14px/1.5 Inter,"Segoe UI",system-ui,sans-serif;min-width:0;
}
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-compact=true] { --rc17-rail-width:76px; }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-navigation-placement=sidebar] { --native-catalog-width:var(--rc17-rail-width); }
.shell[data-ui-edition=rick][data-lacuna-native=true]:is([data-product-mode=chat],[data-product-mode=lab],[data-product-mode=project]) > .lacuna-native-shell[data-layout=forge-focus-r1][data-native-r14=true][data-rc17-source=true][data-navigation-placement=sidebar] > .lacuna-native-shell__body { grid-template-columns:var(--rc17-rail-width) minmax(0,1fr)!important; }
@media(min-width:1101px) {
  .shell[data-ui-edition=rick][data-lacuna-native=true]:is([data-product-mode=lab],[data-product-mode=project]) > .lacuna-native-shell[data-layout=forge-focus-r1][data-native-r14=true][data-rc17-source=true][data-navigation-placement=sidebar][data-context=true]:has(> .lacuna-native-shell__body > .lacuna-native-shell__context:not([hidden]) .native-project-conversation-host:not([hidden]) > .lacuna-project-conversation[data-surface-r6=true][data-presentation=inline]:not([hidden]) > .lacuna-project-conversation__content:not([hidden])) > .lacuna-native-shell__body { grid-template-columns:var(--rc17-rail-width) minmax(0,1fr) minmax(280px,360px)!important; }
}
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true] .lacuna-native-shell__header { min-height:76px;gap:10px;padding:14px 16px;border-bottom:0; }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true] .lacuna-native-shell__brand { flex:1;gap:10px;min-width:0; }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true] .r14-native-wordmark { width:162px;max-width:100%;height:26px;flex:0 1 162px;min-width:0; }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true] .lacuna-native-shell__tabs { gap:6px;padding:4px 14px 16px; }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true] .lacuna-native-shell__tab { min-height:58px;min-width:0;padding:9px 6px;border-radius:12px;gap:5px;font-size:12px; }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true] .lacuna-native-shell__mode-mark svg { width:20px;height:20px; }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true] .lacuna-native-shell__rail-toggle { display:grid;place-items:center;flex:0 0 34px;width:34px;min-width:34px;min-height:34px;padding:7px;border-radius:50%; }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true] .lacuna-native-shell__rail-toggle::before { content:none!important; }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true] .lacuna-native-shell__rail-toggle svg { width:18px;height:18px;pointer-events:none; }
.rc17-native-control-label { position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true] :is(.domain-rail-item,.chat-room-list-item) { border-radius:var(--rc17-control-radius);padding:10px 12px;gap:5px;min-width:0; }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true] :is(.domain-rail-meta,.chat-room-list-item-meta) { font-size:12px;line-height:1.45; }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true] :is(.domain-card,.studio-main,.studio-context,.lacuna-project-conversation,.lacuna-plan0-surface__question) { border-radius:var(--rc17-card-radius);min-width:0; }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true] :is(.domain-status,.domain-version,.forge-result-available__boundary,.studio-section__summary) { font-size:12px;line-height:1.5; }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true] :is(.button,input:not([type=checkbox]):not([type=radio]),textarea,select) { border-radius:var(--rc17-control-radius); }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true] :is(button,a,input,textarea,select,summary):focus-visible { outline:2px solid var(--workspace-blue);outline-offset:3px; }
@media(hover:hover) and (pointer:fine) {
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true] :is(.lacuna-native-shell__tab,.domain-rail-item,.chat-room-list-item):not(:disabled):hover { border-color:var(--workspace-line-bright);background:var(--workspace-raised); }
}
@media(min-width:761px) {
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-navigation-placement=sidebar] .lacuna-native-shell__header { height:auto!important;min-height:76px!important;gap:10px!important; }
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-compact=true] .lacuna-native-shell__header { padding-inline:8px;gap:0;flex-wrap:wrap;justify-content:center; }
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-compact=true] .lacuna-native-shell__brand { flex:0 0 auto; }
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-compact=true] .lacuna-native-shell__tabs { padding:6px 10px 14px;gap:7px; }
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-compact=true] .lacuna-native-shell__tab { min-height:44px;width:44px; }
}
@media(max-width:760px) {
  /* Retain the real navigation error/status row; it must not overlap main. */
  .shell[data-ui-edition=rick][data-lacuna-native=true]:is([data-product-mode=chat],[data-product-mode=lab],[data-product-mode=project]) > .lacuna-native-shell[data-layout=forge-focus-r1][data-native-r14=true][data-rc17-source=true][data-navigation-placement=mobile-header] { grid-template-rows:auto auto minmax(0,1fr) auto auto!important;min-height:0;max-height:100dvh; }
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-navigation-placement=mobile-header] > .lacuna-native-shell__topbar { grid-row:1;display:block;min-height:0;padding:0; }
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-navigation-placement=mobile-header] > .lacuna-native-shell__status { grid-row:2!important; }
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-navigation-placement=mobile-header] > .lacuna-native-shell__body { grid-row:3!important;min-height:0; }
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-navigation-placement=mobile-header] > .lacuna-native-shell__version { grid-row:5!important; }
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-navigation-placement=mobile-header] .lacuna-native-shell__header { width:100%;height:auto!important;min-height:calc(56px + env(safe-area-inset-top,0px))!important;padding:8px 12px;padding-block-start:max(8px,env(safe-area-inset-top,0px)); }
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-navigation-placement=mobile-header] .r14-native-wordmark { display:none; }
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-navigation-placement=mobile-header] .lacuna-native-shell__rail-toggle { min-height:44px;min-width:44px;width:44px;flex-basis:44px; }
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true] > .lacuna-native-shell__tabs[data-rc17-dock=true] { grid-row:4!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px;margin:0;min-width:0;min-height:var(--rc17-dock-height);padding:6px 12px calc(6px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--workspace-line);background:var(--workspace-panel); }
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true] > .lacuna-native-shell__tabs[data-rc17-dock=true] .lacuna-native-shell__tab { min-height:54px;width:auto;min-width:44px;font-size:12px;border-radius:10px; }
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-catalogue-open=true] > .lacuna-native-shell__tabs[data-rc17-dock=true] { display:none!important; }
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true] :is(input:not([type=checkbox]):not([type=radio]),textarea,select) { font-size:16px; }
}
@media(pointer:coarse) {
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true] { --lacuna-control:44px; }
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true] :is(.lacuna-native-shell__rail-toggle,.button) { min-height:44px;min-width:44px;touch-action:manipulation; }
}
@media(prefers-reduced-motion:reduce) {
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true] :is(.lacuna-native-shell__tabs,.lacuna-native-shell__rail) { scroll-behavior:auto; }
}

/* RC19 shared-shell S2 geometry/typography only. Inherit the parent palette;
   the existing explicit R14 smoked/light/oled selectors remain its sole opt-in
   owners. A presentation marker must not select a palette on the parent shell. */
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2] {
  --rc17-rail-width:292px;--rc17-control-radius:10px;--rc17-card-radius:13px;
  --native-context-preset:minmax(320px,360px);
  font-family:Inter,"Segoe UI",Arial,sans-serif;
}
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2][data-compact=true] { --rc17-rail-width:76px; }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2] .lacuna-native-shell__rail { padding:0; }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2] .lacuna-native-shell__header { gap:10px; }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2] .lacuna-native-shell__brand { flex:1;min-width:0; }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2] .r14-native-wordmark { width:190px;flex:0 1 190px;height:28px; }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2] .lacuna-native-shell__rail-toggle { flex:0 0 44px;width:44px;min-width:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:12px; }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2] .lacuna-native-shell__rail-toggle .lacuna-native-shell__citadel-mark,
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2] .lacuna-native-shell__rail-toggle svg { width:44px;height:44px; }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2] .lacuna-native-shell__mode-mark svg { width:21px;height:21px; }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2] .lacuna-native-shell__tab { min-height:60px;border-color:transparent;background:transparent;color:var(--workspace-muted); }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2] .lacuna-native-shell__tab[aria-current=page] { color:var(--workspace-blue);background:color-mix(in srgb,var(--workspace-blue) 9%,var(--workspace-panel));border-color:color-mix(in srgb,var(--workspace-blue) 35%,var(--workspace-line)); }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2] .lacuna-native-shell__tab[data-mode=project][aria-current=page] { color:var(--workspace-amber);background:color-mix(in srgb,var(--workspace-amber) 9%,var(--workspace-panel));border-color:color-mix(in srgb,var(--workspace-amber) 35%,var(--workspace-line)); }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2] :is(.lacuna-native-shell__tab,.lacuna-native-shell__rail-toggle) { touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent; }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2] .domain-context-rail { padding:14px!important; }
@media(min-width:761px) {
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2][data-navigation-placement=sidebar] .lacuna-native-shell__header { min-height:90px!important;height:90px!important;padding:14px 16px; }
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2][data-compact=true] .lacuna-native-shell__header { padding:14px 16px;flex-wrap:nowrap; }
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2][data-compact=true] .lacuna-native-shell__brand { display:none; }
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2][data-compact=true] .lacuna-native-shell__tabs { padding:4px 10px 16px; }
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2][data-compact=true] .domain-context-rail { padding-inline:6px!important; }
}
@media(min-width:1101px) {
  .shell[data-ui-edition=rick][data-lacuna-native=true]:is([data-product-mode=lab],[data-product-mode=project]) > .lacuna-native-shell[data-layout=forge-focus-r1][data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2][data-navigation-placement=sidebar][data-context=true]:has(> .lacuna-native-shell__body > .lacuna-native-shell__context:not([hidden]) .native-project-conversation-host:not([hidden]) > .lacuna-project-conversation[data-surface-r6=true][data-presentation=inline]:not([hidden]) > .lacuna-project-conversation__content:not([hidden])) > .lacuna-native-shell__body { grid-template-columns:var(--rc17-rail-width) minmax(0,1fr) var(--native-context-width,var(--native-context-preset))!important;grid-template-rows:minmax(0,1fr); }
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2]:has(.lacuna-project-conversation[data-presentation=inline][data-panel-width=wide]) { --native-context-preset:clamp(360px,calc(100vw - var(--native-catalog-width,292px) - 380px),520px); }
  .shell[data-ui-edition=rick][data-lacuna-native=true]:is([data-product-mode=lab],[data-product-mode=project]) > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2]:has(> .lacuna-native-shell__body > .lacuna-native-shell__context:not([hidden]) .native-project-conversation-host:not([hidden]) > .lacuna-project-conversation[data-presentation=inline]:not([hidden]) > .lacuna-project-conversation__content:not([hidden])) > .lacuna-native-shell__body > .lacuna-native-shell__context { grid-column:3;grid-row:1;height:100%;block-size:100%;border-inline-start:1px solid var(--workspace-line);border-block-start:0; }
}
@media(hover:hover) and (pointer:fine) {
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2] .lacuna-native-shell__tab:not(:disabled):hover { color:var(--workspace-blue);background:color-mix(in srgb,var(--workspace-blue) 5%,var(--workspace-panel)); }
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2] .lacuna-native-shell__tab[data-mode=project]:not(:disabled):hover { color:var(--workspace-amber);background:color-mix(in srgb,var(--workspace-amber) 9%,var(--workspace-panel)); }
}
@media(max-width:760px) {
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2] .lacuna-native-shell__header { padding-inline:12px; }
  .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2] .lacuna-native-shell__tab { min-height:54px; }
}

/* R1 actual grid defects: context defaults to a bounded second-row message or
   launcher. Only a real open inline conversation may own the third column. */
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2] > .lacuna-native-shell__body > .lacuna-native-shell__context { grid-column:2;grid-row:2;height:auto;block-size:auto;min-block-size:0;max-block-size:none;border-inline-start:0;border-block-start:1px solid var(--workspace-line); }
.shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2] .domain-rail-item { display:flex;flex-direction:column;align-items:stretch;text-align:start;gap:4px; }
@media(min-width:761px) and (max-width:1100px) {
 .shell[data-ui-edition=rick][data-lacuna-native=true]:is([data-product-mode=chat],[data-product-mode=lab],[data-product-mode=project]) > .lacuna-native-shell[data-layout=forge-focus-r1][data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2][data-navigation-placement=sidebar] > .lacuna-native-shell__body { grid-template-columns:var(--rc17-rail-width) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) auto; }
 .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2] > .lacuna-native-shell__body > .lacuna-native-shell__rail { grid-column:1;grid-row:1 / -1; }
 .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2] > .lacuna-native-shell__body > .lacuna-native-shell__main { grid-column:2;grid-row:1; }
}
@media(max-width:760px) {
 .shell[data-ui-edition=rick][data-lacuna-native=true] > .lacuna-native-shell[data-native-r14=true][data-rc17-source=true][data-source-port-scope=shell-s2] > .lacuna-native-shell__body > .lacuna-native-shell__context { grid-column:1;grid-row:2; }
}

/* The Native subject is still sticky until the shared project header owns it.
   Keep it opaque; the source donor's transparent subject must not expose the
   scrolling content underneath. Higher S2 scope preserves the literal donor. */
.shell[data-lacuna-native=true] > .lacuna-native-shell[data-source-port-scope=shell-s2] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .r14-native-project-topline { background:var(--workspace-bg); }

/* R1 mobile review: one readable work stream, not three nested frames. The
   same compact layer/editor owns note/reply; formal decisions stay unchanged. */
.shell[data-lacuna-native=true] .forge-result-note-context { margin-block:0 12px;overflow-wrap:anywhere; }
.shell[data-lacuna-native=true] .forge-result-note-context>summary { cursor:pointer;font-size:12px;line-height:1.6; }
.shell[data-lacuna-native=true] .forge-result-note-context>p { white-space:pre-wrap;font-size:12px;line-height:1.65; }
@media(max-width:700px) {
 .shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .r14-native-project-topline { position:static;inset-block-start:auto;z-index:auto; }
 .shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .studio-result-review { padding:0;border:0;background:transparent; }
 .shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .studio-result-review-editor { padding-inline-start:0;border-inline-start:0; }
}

/* L2 RC19 Forge donor integration: same scoped Source CSS, served only through this existing versioned asset. */
/* Forge-only composition from RC19 forge-studio/review/records surfaces.
   Main owns shared control geometry. Native forms, actions, receipts and the
   retained sibling preview host are not moved or overridden by these rules.
   Integrator loads this scoped sheet AFTER lacuna-native-design-tokens.css. */
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] {
  --rc19-forge-accent: var(--amber,var(--r14-forge,#e9bb72));
  min-inline-size: 0;
}

.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .r14-native-project-topline {
  display: block; min-inline-size: 0; margin: 0; padding: 0 0 12px;
  border: 0; background: transparent;
}
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .r14-native-project-heading {
  min-inline-size: 0; margin: 0;
}
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .forge-state-card.r14-native-orientation {
  margin: 0 0 14px; padding: 0; min-inline-size: 0;
  border: 1px solid var(--workspace-line); border-inline-start: 2px solid var(--rc19-forge-accent);
  border-radius: 12px; background: var(--workspace-panel);
}
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .forge-state-card__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px;
}
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .forge-state-card__next {
  min-inline-size: 0; flex: 1 1 20ch; overflow-wrap: anywhere; line-height: 1.6;
}
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .rc19-native-forge-route {
  min-inline-size: 0; margin-block: 16px 0; padding-block: 12px;
  border-block-start: 1px solid var(--workspace-line); background: transparent;
}
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .rc19-native-forge-route > summary {
  color: var(--workspace-muted); cursor: pointer; line-height: 1.6;
}
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .rc19-native-forge-route .r14-native-checkpoints {
  grid-template-columns: repeat(6,minmax(0,1fr)); overflow-x: visible;
  margin: 12px 0 0; padding: 8px 0 0; min-inline-size: 0;
}
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .r14-native-result {
  min-inline-size: 0; padding-block-start: 4px; border: 0; background: transparent;
}
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .studio-result-review-note {
  min-inline-size: 0; margin-block: 8px; padding: 12px 14px;
  border: 1px solid var(--workspace-line); border-radius: 12px;
  background: var(--workspace-panel); overflow-wrap: anywhere;
}
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .studio-result-review-note > summary {
  cursor: pointer; line-height: 1.65; color: var(--workspace-text);
}
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] :is(.studio-result-review-reply,.studio-result-review-resolution,.studio-result-review-note-permission) {
  line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere;
}
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .studio-result-review-pending {
  min-inline-size: 0; margin-block: 12px; padding: 12px 14px;
  border: 1px solid var(--rc19-forge-accent); border-radius: 12px;
  line-height: 1.65; background: var(--workspace-panel);
}
@media(max-width:700px) {
  .shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .rc19-native-forge-route .r14-native-checkpoints {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .forge-state-card__actions {
    align-items: stretch;
  }
}

/* R2: the real Native heading can contain TWO state badges. Legacy grid
   placement put both in column2/row1 and squeezed the eyebrow. Keep original
   nodes and DOM order in normal flow; Main alone owns topline positioning. */
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .r14-native-project-heading {
  display: flex; flex-wrap: wrap; align-items: flex-start;
}
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .r14-native-project-heading > * {
  grid-column: auto; grid-row: auto; min-inline-size: 0;
}
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .r14-native-project-heading > .domain-kicker,
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .r14-native-project-heading > h2,
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .r14-native-project-heading > .r14-native-title-toggle {
  flex: 0 1 100%; max-inline-size: 100%;
}
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .r14-native-project-heading > .domain-kicker {
  inline-size: auto; white-space: normal;
}
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .r14-native-project-heading > .domain-status {
  flex: 0 1 auto; inline-size: auto; max-inline-size: 100%; margin: 0;
  white-space: normal; overflow-wrap: anywhere; justify-self: auto;
}
@media(max-width:700px) {
  /* One final donor rule owns this local mobile surface. It follows the
     desktop card declaration, so a later literal fold cannot restore it. */
  .shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .studio-result-review-note {
    padding: 10px 0; border-inline: 0; border-radius: 0;
  }
}

/* H10: Main supplies exact, current embedded-project and active-tab markers.
   Remove only duplicated product presentation, never review/error/intent UI.
   A standalone, loading or unadmitted Result retains its own context. */
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] {
  min-inline-size: 0;
}
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .gc-result-seam[data-embedded-project=true][data-source-mode=live][data-result-state=CURRENT] > :is(.gc-seam-header,.gc-source-notice):not([role=alert]) {
  display: none;
}
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject]:is([data-studio-tab=result],[data-studio-tab=review]) .domain-result:has(> .forge-f78-result-slot .gc-result-seam[data-embedded-project=true][data-source-mode=live][data-result-state=CURRENT]) > :is(.domain-kicker,.forge-result-heading,.domain-result-human-summary):not(.domain-result-acceptance-summary):not([role=status]):not([role=alert]) {
  display: none;
}
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject][data-studio-tab=review] .gc-result-seam[data-embedded-project=true][data-source-mode=live][data-result-state=CURRENT] > .gc-working-field > .gc-content-card > :is(.gc-delivered-object,.gc-technical):not([role=status]):not([role=alert]) {
  display: none;
}
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject][data-studio-tab=review] .gc-result-seam[data-embedded-project=true][data-source-mode=live][data-result-state=CURRENT] > .gc-working-field > .gc-content-card > .gc-native-metadata > .forge-f78-result > :is(header,.forge-f78-authored,.forge-f78-materials,.forge-f78-history):not([role=status]):not([role=alert]) {
  display: none;
}

/* This new details element is ONLY Main's passive unconfirmed-chat hint.
   The shared .reason class also carries access/receipt errors: never hide it. */
.shell[data-lacuna-native=true] .native-project-conversation-placeholder {
  min-inline-size: 0; margin: 0; padding: 0;
}
.shell[data-lacuna-native=true] .native-project-conversation-placeholder > summary {
  display: flex; align-items: center; min-block-size: 44px; padding: 8px 0;
  cursor: pointer; color: var(--workspace-muted); font-size: 12px;
  line-height: 1.5; overflow-wrap: anywhere;
}
.shell[data-lacuna-native=true] .native-project-conversation-placeholder > summary:focus-visible {
  outline: 2px solid var(--workspace-amber); outline-offset: 2px;
}
.shell[data-lacuna-native=true] .native-project-conversation-placeholder[open] > .lacuna-project-conversation__reason {
  margin: 0 0 12px; line-height: 1.6; overflow-wrap: anywhere;
}

@media(max-width:700px) {
  /* One outer gutter; nested product/review wrappers add no further columns.
     Keep authored content, exact references and all action/error owners intact. */
  .shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] :is(.domain-result,.forge-f78-result-slot,.gc-result-seam,.gc-working-field,.gc-content-card,.gc-native-metadata,.forge-f78-result,.studio-result-review-host,.studio-result-review) {
    min-inline-size: 0; max-inline-size: 100%; padding-inline: 0;
  }
  .shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] :is(.domain-result,.studio-result-review) {
    padding-block: 0; border: 0; background: transparent;
  }
  .shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .studio-result-review {
    margin-block: 0;
  }
  .shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .studio-result-review-note > summary {
    padding-inline: 0;
  }
  .shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .studio-result-review-note {
    padding-inline: 0; border-inline: 0;
  }
  .shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .forge-f78-result {
    gap: 16px;
  }
  .shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject][data-studio-tab=review] .gc-result-seam[data-embedded-project=true][data-source-mode=live][data-result-state=CURRENT] .gc-native-metadata {
    margin-block-start: 0;
  }
  .shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .studio-result-review-host {
    margin-block-start: 0;
  }
  .shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] :is(.r14-native-project-heading,.forge-state-card__next,.studio-result-review-note,.studio-result-review-reply,.studio-result-review-pending-payload,.domain-result-attribution) {
    min-inline-size: 0; overflow-wrap: anywhere;
  }
  .shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .forge-state-card__actions {
    display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  }
  .shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .forge-state-card__next {
    flex: 0 1 auto; inline-size: 100%;
  }
  .shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .forge-state-card__actions > :is(button,a) {
    min-block-size: 44px; min-inline-size: 0; max-inline-size: 100%;
    white-space: normal; overflow-wrap: anywhere;
  }
  .shell[data-lacuna-native=true] .lacuna-native-shell__context:has(> .native-project-conversation-host > .native-project-conversation-placeholder:only-child) {
    padding-block: 0;
  }
}

/* H10-R1: actual next-action DOM is label + next + button. A column must not
   wrap into a second horizontal column or give its label a 100% height basis. */
@media(max-width:700px) {
  .shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .forge-state-card__actions {
    flex-wrap: nowrap;
  }
  .shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject] .forge-state-card__next-label {
    flex-basis: auto; min-inline-size: 0; inline-size: 100%;
  }
}

/* Compact only a current, exact Result's read-only navigation context. The
   existing native summary expands all original copy; no node is removed.
   HOLD, unknown review and any extra command/feedback child fail this marker. */
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject][data-studio-tab=result]:has(.gc-result-seam[data-embedded-project=true][data-source-mode=live][data-result-state=CURRENT]) .forge-state-card[data-compact-result-context=true]:not([data-state=hold]):has(> .forge-state-card__summary[aria-expanded=false]):not(:has([role=alert])):not(:has(> .forge-state-card__actions > :not(.forge-state-card__next-label,.forge-state-card__next,.forge-state-card__review-navigation))) > .forge-state-card__summary {
  min-height: 44px; min-block-size: 44px; padding: 10px 12px;
}
.shell[data-lacuna-native=true] .rc19-native-forge[data-native-r14-project=true][data-forge-presentation=rc19][data-project-subject][data-studio-tab=result]:has(.gc-result-seam[data-embedded-project=true][data-source-mode=live][data-result-state=CURRENT]) .forge-state-card[data-compact-result-context=true]:not([data-state=hold]):has(> .forge-state-card__summary[aria-expanded=false]):not(:has([role=alert])):not(:has(> .forge-state-card__actions > :not(.forge-state-card__next-label,.forge-state-card__next,.forge-state-card__review-navigation))) :is(.forge-state-card__revision,.forge-state-card__reason,.forge-state-card__next-label,.forge-state-card__next):not([role=alert]):not([role=status]) {
  display: none;
}

/* DISCLOSURE_MOTION_M1_R2_BEGIN
   Native Lab/Forge details presentation only. Reuse Studio chevron geometry.
   Note-editor popovers, profile, commands and stage/progress remain outside cut.
   Native full sizing is retained; no height cap or overflow mask. */
.shell[data-lacuna-native=true] #labDomainContent .lacuna-plan0-surface details > summary {
  display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;
}
.shell[data-lacuna-native=true] #labDomainContent .lacuna-plan0-surface details > summary::-webkit-details-marker { display:none; }
.shell[data-lacuna-native=true] #labDomainContent .lacuna-plan0-surface details > summary::marker { content:""; }
.shell[data-lacuna-native=true] #labDomainContent .lacuna-plan0-surface details > summary::after {
  content:"";margin-inline-start:auto;margin-inline-end:3px;inline-size:8px;block-size:8px;
  border-inline-end:2px solid var(--studio-muted,var(--workspace-muted));
  border-block-end:2px solid var(--studio-muted,var(--workspace-muted));
  transform:rotate(45deg);flex:none;
}
.shell[data-lacuna-native=true] #labDomainContent .lacuna-plan0-surface details[open] > summary::after { transform:rotate(225deg); }

@media (prefers-reduced-motion:no-preference) {
  .shell[data-lacuna-native=true] :is(#labDomainContent,#forgeDomainContent) :is(details.studio-accordion,details.forge-f78-materials,details.forge-f78-history,.studio-result-review details,details.lab-blueprint-read__details,.lacuna-plan0-surface details):not(.forge-result-note-popover details) > summary::after,
  .shell[data-lacuna-native=true] :is(#labDomainContent,#forgeDomainContent) details.studio-accordion:not(.forge-result-note-popover details) > summary .studio-chevron {
    transition:transform 160ms cubic-bezier(0.23,1,0.32,1);
  }
  @supports selector(details::details-content) and (transition-behavior:allow-discrete) {
    .shell[data-lacuna-native=true] :is(#labDomainContent,#forgeDomainContent) :is(details.studio-accordion,details.forge-f78-materials,details.forge-f78-history,.studio-result-review details,details.lab-blueprint-read__details,.lacuna-plan0-surface details):not(.forge-result-note-popover details)::details-content {
      opacity:0;transform:translateY(-3px);
      transition:opacity 160ms cubic-bezier(0.23,1,0.32,1),transform 160ms cubic-bezier(0.23,1,0.32,1),content-visibility 160ms;
      transition-behavior:allow-discrete;
    }
    .shell[data-lacuna-native=true] :is(#labDomainContent,#forgeDomainContent) :is(details.studio-accordion,details.forge-f78-materials,details.forge-f78-history,.studio-result-review details,details.lab-blueprint-read__details,.lacuna-plan0-surface details):not(.forge-result-note-popover details)[open]::details-content { opacity:1;transform:none; }
  }
}

/* Descendant keyboard focus includes programmatic reveal-before-focus paths.
   Keep the ancestor body AND its cue immediate; never change native open/inert. */
.shell[data-lacuna-native=true] :is(#labDomainContent,#forgeDomainContent) details:not(.forge-result-note-popover details):has(:focus-visible)::details-content,
.shell[data-lacuna-native=true] :is(#labDomainContent,#forgeDomainContent) details:not(.forge-result-note-popover details):is([data-motion=off],[data-motion=off] *)::details-content {
  transition:none!important;transform:none!important;
}
.shell[data-lacuna-native=true] :is(#labDomainContent,#forgeDomainContent) details:not(.forge-result-note-popover details):has(:focus-visible) > summary::after,
.shell[data-lacuna-native=true] :is(#labDomainContent,#forgeDomainContent) details:not(.forge-result-note-popover details):has(:focus-visible) > summary .studio-chevron,
.shell[data-lacuna-native=true] :is(#labDomainContent,#forgeDomainContent) summary:not(.forge-result-note-popover summary):is([data-motion=off],[data-motion=off] *)::after,
.shell[data-lacuna-native=true] :is(#labDomainContent,#forgeDomainContent) summary:not(.forge-result-note-popover summary):is([data-motion=off],[data-motion=off] *) .studio-chevron {
  transition:none!important;
}
@media (prefers-reduced-motion:reduce) {
  .shell[data-lacuna-native=true] :is(#labDomainContent,#forgeDomainContent) details:not(.forge-result-note-popover details)::details-content { transition:none!important;transform:none!important; }
}
/* DISCLOSURE_MOTION_M1_R2_END */
