@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');
/* Generated from accepted APEX Brand records; checkpoint 2413 */
:root{--brand-body-font:"DM Sans",Arial,sans-serif;--brand-heading-font:"Manrope",Arial,sans-serif;--brand-navy:#071a2b;--brand-orange:#ff7412;--brand-paper:#ffffff;--brand-ink:#071a2b;--brand-content-width:80rem;--brand-card-radius:1rem;--brand-control-height:2.75rem;--brand-space-1:0.25rem;--brand-space-2:0.5rem;--brand-space-3:0.75rem;--brand-space-4:1rem;--brand-space-5:1.5rem;--brand-space-6:2rem;}
body{font-family:var(--brand-body-font)}
h1,h2,h3,h4{font-family:var(--brand-heading-font)}
.brand-shell{min-height:100dvh;display:flex;flex-direction:column;min-width:0}.brand-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--brand-space-3);padding:var(--brand-space-4) max(var(--brand-space-4),env(safe-area-inset-right)) var(--brand-space-4) max(var(--brand-space-4),env(safe-area-inset-left));border-bottom:1px solid currentColor}.brand-page{flex:1;min-width:0;width:min(100%,var(--brand-content-width));margin-inline:auto;padding:var(--brand-space-5) max(var(--brand-space-4),env(safe-area-inset-right)) var(--brand-space-6) max(var(--brand-space-4),env(safe-area-inset-left))}.brand-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:var(--brand-space-4)}.brand-action-card,.brand-panel{min-width:0;overflow-wrap:anywhere;border:1px solid currentColor;border-radius:var(--brand-card-radius);padding:var(--brand-space-4)}.brand-control,.brand-input{min-height:var(--brand-control-height);max-width:100%;font:inherit}.brand-footer{margin-top:auto;border-top:1px solid currentColor;padding:var(--brand-space-5) max(var(--brand-space-4),env(safe-area-inset-right)) max(var(--brand-space-5),env(safe-area-inset-bottom)) max(var(--brand-space-4),env(safe-area-inset-left))}.brand-footer-inner{max-width:var(--brand-content-width);margin-inline:auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--brand-space-3)}.brand-stack{display:grid;gap:var(--brand-space-4)}.brand-cluster,.brand-nav{display:flex;flex-wrap:wrap;gap:var(--brand-space-3)}.brand-table-scroll,.brand-responsive-list{max-width:100%;overflow-x:auto}.brand-shell :is(button,a,input,select,textarea,[tabindex]):focus-visible{outline:3px solid var(--brand-orange);outline-offset:3px}@media(max-width:640px){.brand-grid{grid-template-columns:minmax(0,1fr)}.brand-footer-inner{flex-direction:column;align-items:flex-start}}@media(prefers-reduced-motion:reduce){.brand-shell *, .brand-shell *::before,.brand-shell *::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Brand app frame (hosted/brand/app-frame.js; guidance hosted/brand/APP-FRAME.md): every application's header, footer, Credits page, secure-session lock, colours in light and dark, and transitions. Applications supply content only. */
:root{--frame-bg:var(--brand-paper);--frame-ink:var(--brand-ink);--frame-surface:color-mix(in srgb,var(--brand-paper) 94%,var(--brand-navy));--frame-line:color-mix(in srgb,var(--brand-navy) 22%,transparent);--frame-field-line:color-mix(in srgb,var(--brand-navy) 50%,transparent);--frame-muted:color-mix(in srgb,var(--brand-ink) 74%,transparent);--frame-accent:var(--brand-orange);--frame-accent-ink:var(--brand-navy);--frame-bar:var(--brand-navy);--frame-bar-ink:var(--brand-paper);--frame-danger:#a42c2c}
@media(prefers-color-scheme:dark){:root{--frame-bg:var(--brand-navy);--frame-ink:var(--brand-paper);--frame-surface:color-mix(in srgb,var(--brand-navy) 88%,var(--brand-paper));--frame-line:color-mix(in srgb,var(--brand-paper) 24%,transparent);--frame-field-line:color-mix(in srgb,var(--brand-paper) 50%,transparent);--frame-muted:color-mix(in srgb,var(--brand-paper) 78%,transparent);--frame-danger:#ff9b9b}}
body.brand-frame{margin:0;min-height:100dvh;display:flex;flex-direction:column;background:var(--frame-bg);color:var(--frame-ink);color-scheme:light dark;font-family:var(--brand-body-font)}
body.brand-frame>main{flex:1 0 auto;width:100%;min-width:0}
.brand-frame-header{display:flex;align-items:center;gap:var(--brand-space-3);min-height:3.5rem;padding:calc(var(--brand-space-2) + env(safe-area-inset-top)) max(var(--brand-space-4),env(safe-area-inset-right)) var(--brand-space-2) max(var(--brand-space-4),env(safe-area-inset-left));background:var(--frame-bar);color:var(--frame-bar-ink);border-bottom:1px solid var(--frame-line);view-transition-name:brand-frame-header}
.brand-frame-icon{width:2rem;height:2rem;flex:none;border-radius:.5rem}
.brand-frame-name{font:700 1.125rem/1.2 var(--brand-heading-font)}
.brand-frame-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--brand-space-1) var(--brand-space-4);padding:var(--brand-space-4) max(var(--brand-space-4),env(safe-area-inset-right)) max(var(--brand-space-4),env(safe-area-inset-bottom)) max(var(--brand-space-4),env(safe-area-inset-left));border-top:1px solid var(--frame-line);color:var(--frame-muted);font-size:.875rem;view-transition-name:brand-frame-footer}
.brand-frame-footer a{display:inline-flex;align-items:center;min-height:var(--brand-control-height);padding-inline:var(--brand-space-2);color:var(--frame-ink);text-underline-offset:.2em}
.brand-frame-credits{width:min(40rem,calc(100vw - 2rem));max-height:min(85dvh,48rem);padding:var(--brand-space-5);border:1px solid var(--frame-line);border-radius:var(--brand-card-radius);background:var(--frame-bg);color:var(--frame-ink);overflow-wrap:anywhere}
.brand-frame-credits::backdrop{background:color-mix(in srgb,var(--brand-navy) 60%,transparent)}
.brand-frame-credits h2{margin-top:0;font-family:var(--brand-heading-font)}
.brand-frame-credits h3{margin:var(--brand-space-5) 0 var(--brand-space-2);font-size:1rem}
.brand-frame-credits ul{margin:0;padding-left:1.25rem}.brand-frame-credits li+li{margin-top:var(--brand-space-3)}.brand-frame-credits li p{margin:var(--brand-space-1) 0 0;color:var(--frame-muted)}
.brand-frame-credits a{color:inherit;text-underline-offset:.2em}
:is(.brand-frame-credits,.brand-frame-lock) button{min-height:var(--brand-control-height);margin-top:var(--brand-space-4);padding:var(--brand-space-2) var(--brand-space-5);border:1px solid var(--frame-accent);border-radius:.75rem;background:var(--frame-accent);color:var(--frame-accent-ink);font:inherit;font-weight:700;cursor:pointer}
:is(.brand-frame-credits,.brand-frame-lock) button:disabled{opacity:.6;cursor:progress}
.brand-frame-credits form{display:flex;flex-wrap:wrap;gap:0 var(--brand-space-3)}
.brand-frame-credits .brand-frame-all-credits{background:transparent;color:var(--frame-ink)}
#credits-title:focus{outline:none}
.brand-frame-lock{width:min(calc(100% - 2rem),32rem);margin:var(--brand-space-6) auto;padding:var(--brand-space-5);border:1px solid var(--frame-line);border-radius:var(--brand-card-radius);background:var(--frame-surface);text-align:center}
.brand-frame-lock h2{margin:0 0 var(--brand-space-2);font-family:var(--brand-heading-font)}
body.brand-frame :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--frame-accent);outline-offset:3px}
@keyframes brand-frame-leave{to{opacity:0;transform:translateX(-1.5rem)}}
@keyframes brand-frame-enter{from{opacity:0;transform:translateX(1.5rem)}}
::view-transition-old(root){animation:200ms cubic-bezier(.4,0,1,1) both brand-frame-leave}
::view-transition-new(root){animation:260ms cubic-bezier(0,0,.2,1) both brand-frame-enter}
@media(prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}
/* Transitional product layout; migrated from inline HTML. Pending replacement with Brand components. */
@scope (.brand-product-schedule) {

:scope{font-family:var(--body-font),sans-serif;color:var(--ink);background:var(--paper);--body-font:system-ui;--heading-font:system-ui}
*{box-sizing:border-box}body{margin:0}header,footer{padding:16px max(18px,env(safe-area-inset-left));background:var(--paper)}header{border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}main{max-width:1080px;margin:auto;padding:20px 16px 56px}h1{font-size:clamp(1.7rem,4vw,2.3rem);margin:0 0 8px}h2{font-size:1.15rem}p{line-height:1.5}.muted{color:var(--ink)}.toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:18px 0}label{font-weight:600}input,button{font:inherit;border-radius:13px;padding:12px;border:1px solid var(--line);min-height:44px;background:var(--paper);color:var(--ink)}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid var(--orange);outline-offset:2px}.active{background:var(--navy);color:var(--paper)}.panel{background:var(--paper);border-radius:18px;padding:18px;border:1px solid var(--line);box-shadow:none}.grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.grid button{padding:9px 2px;min-width:0;border:0;border-radius:10px}.grid button[aria-pressed=true]{background:var(--navy);color:var(--paper)}.grid button.today:not([aria-pressed=true]){color:var(--orange);outline:1px solid var(--orange)}.days{font-size:.8rem;color:var(--ink);text-align:center;padding:12px 0}.day-empty{visibility:hidden}.layout{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:18px}.event{border-bottom:1px solid var(--line);padding:14px 0}.event:last-child{border-bottom:0}.event strong{display:block}.event time{font-variant-numeric:tabular-nums;color:var(--navy)}.detail{font-size:.9rem;color:var(--ink);margin-top:4px}#error{color:var(--orangeDark)}footer{font-size:.8rem;color:var(--ink)}@media(max-width:620px){.layout{grid-template-columns:1fr}main{padding:16px 12px}.panel{padding:14px}.grid button{padding:8px 0}}@media(orientation:landscape) and (max-height:540px){.layout{grid-template-columns:minmax(240px,36%) 1fr}} 
h1,h2,header strong,#monthTitle{font-family:var(--heading-font),sans-serif}header .identity{display:flex;align-items:center;gap:10px}header img,footer img{width:32px;height:32px;object-fit:contain}footer{display:flex;gap:10px;align-items:center} .event{display:flex;flex-direction:column;gap:3px} .event time{display:block} 
}

/* Transitional product layout; migrated from inline HTML. Pending replacement with Brand components. */
@scope (.brand-product-graph) {
:scope{--ink:CanvasText;--paper:Canvas;--surface:Canvas;--line:GrayText;--orange:Highlight}body{font:16px var(--brand-body-font,system-ui,sans-serif);margin:0;color:var(--ink);background:var(--paper)}main{max-width:1350px;margin:auto;padding:24px}form{display:flex;gap:10px;flex-wrap:wrap;align-items:end}label{display:grid;gap:5px}input,select,button{font:inherit;border:1px solid var(--line);border-radius:10px;padding:10px}button{cursor:pointer}svg{box-sizing:border-box;width:100%;height:62vh;background:var(--surface);border:1px solid var(--line);border-radius:16px;touch-action:none}.layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(240px,1fr);gap:16px;margin-top:18px}aside{background:var(--surface);border-radius:16px;padding:18px;overflow-wrap:anywhere}#notice{min-height:1.5em}a{color:inherit}@media(max-width:750px){.layout{grid-template-columns:1fr}#detail{max-height:none}main{padding:12px}#network{height:68vh;min-height:350px}}#brand-header{display:flex;gap:18px;align-items:center;margin-bottom:24px}#brand-logo{object-fit:contain}#brand-company{font-weight:700;margin:0}#getting-started{margin:12px 0 20px}#network{min-height:420px;display:block}#network text{pointer-events:none;font-size:12px}#detail{max-height:70vh;overflow:auto}#view-switch{display:flex;gap:8px;margin:16px 0}#view-switch button[aria-pressed="true"]{background:var(--ink);color:var(--paper)}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--orange)}@media(max-width:750px){#brand-header{align-items:flex-start}#network{height:55vh}}#brand-header{margin-bottom:12px;gap:12px}#brand-header h1{margin:0;font-size:clamp(1.5rem,3vw,2rem)}#brand-header p{margin:3px 0;font-size:.9rem}#brand-logo{width:54px;height:40px}#getting-started{font-size:.88rem;margin:12px 0;color:var(--ink);opacity:.75}#explore-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:850px}#explore-controls .scope{min-width:0}#explore-controls label{display:block;font-size:.85rem;font-weight:650;margin-bottom:6px}#explore-controls select{width:100%;background:var(--surface);color:var(--ink)}#purpose-help{font-size:.8rem;opacity:.7;margin:8px 0}#search-panel{margin:10px 0}#search-panel summary{cursor:pointer;font-weight:600;font-size:.86rem}#lookup{padding:12px 0}#view-switch{align-items:center;font-size:.86rem;margin:8px 0}#view-switch button{padding:8px 12px}#notice{font-size:.86rem;margin:8px 0}#network{height:58vh;min-height:360px}#detail{border:1px solid var(--line);padding:14px}#detail h2{font-size:1.15rem}.layout{grid-template-columns:minmax(0,3fr) minmax(260px,1fr);align-items:start;margin-top:8px}@media(max-width:750px){#explore-controls{grid-template-columns:1fr}#brand-header{margin-bottom:8px}#network{height:48vh;min-height:300px}.layout{grid-template-columns:1fr}#detail{max-height:none}#lookup input{box-sizing:border-box;min-width:0;max-width:100%;width:100%}#lookup{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}#lookup label{min-width:0;grid-column:1/-1}}
 :scope.diagram-large #network{height:84vh;min-height:620px}body.diagram-large .layout{grid-template-columns:1fr}body.diagram-large #detail{max-height:none}#view-help{font-size:.88rem;line-height:1.45;opacity:.85;max-width:850px;margin:10px 0}.assurance-path{border:1px solid var(--line);border-radius:12px;padding:12px;margin:12px 0}.assurance-stage{border-left:3px solid var(--orange);padding:8px 12px;margin:8px 0;background:var(--paper)}.assurance-stage p{margin:4px 0}.assurance-stage small{opacity:.8}.assurance-stage .missing{font-weight:650}.related-record{display:block;width:100%;text-align:left;margin:8px 0;padding:9px;background:var(--paper);color:var(--ink);border:1px solid var(--line);white-space:normal;overflow-wrap:anywhere}#network text{font-size:15px;font-weight:650;paint-order:stroke;stroke:var(--paper);stroke-width:3px;stroke-linejoin:round}@media(max-width:750px){.related-record{min-height:44px}}h1,h2,h3{font-family:var(--brand-heading-font,system-ui,sans-serif)}#graph-footer{margin-top:24px;padding-top:14px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:12px;align-items:center}#graph-footer[hidden]{display:none}#graph-footer img{width:150px;height:auto}
}

/* Brand preview content only (work item org.orangepeelit.delivery-work-item.brand-frame-rollout-1-workbench-log-20261201.v1).
   Header, footer, Credits page, colours in light and dark, and transitions come from Brand's app frame.
   Component previews keep the Brand palette being edited (--brand-*); the page itself uses the frame's tokens. */
@scope (.brand-product-brand-preview) {
:scope{line-height:1.55;--ink:var(--frame-ink);--accent:var(--frame-accent);--border:var(--frame-line)}
*{box-sizing:border-box}[hidden]{display:none!important}
main{max-width:1390px;margin:auto;padding:18px max(16px,env(safe-area-inset-right)) 32px max(16px,env(safe-area-inset-left))}
.panel{box-shadow:0 7px 28px color-mix(in srgb,var(--frame-ink) 7%,transparent);background:var(--frame-surface)}
.colour-editor{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr));gap:10px;margin:12px 0}
.colour-item{padding:clamp(17px,1.8vw,24px);border:1px solid var(--border);border-radius:18px}
.colour-item input[type=color]{height:48px;cursor:pointer;padding:4px}
.colour-item .usage{font-size:.84rem;min-height:2em}
.editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.footer-preview{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.footer-preview img{max-width:150px;max-height:46px;object-fit:contain}
.accessibility-results{padding-left:20px}
.accessibility-results li{margin:8px 0}
@media(max-width:680px){.editor-grid{grid-template-columns:1fr}}
h1,h2,h3{font-family:var(--brand-headings,inherit)}h1{font-size:clamp(2rem,4vw,3rem);line-height:1.15;margin:0 0 8px}
h2{font-size:1.2rem;margin:0 0 14px}h3{font-size:1rem;margin:0 0 8px}
p{max-width:65ch;margin:8px 0 15px}.subtle{color:var(--frame-muted)}.small{font-size:.875rem}
.hero{padding:22px 0 10px}.hero p{margin:5px 0 0}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px}
.workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start;margin:16px 0}
.side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.panel{border:1px solid var(--border);border-radius:20px;padding:clamp(17px,1.8vw,24px);min-width:0}
.preview-area{min-width:0}.preview-options{display:grid;gap:12px}
.spaced{margin-top:16px}
label{display:block;margin:12px 0 5px;font-weight:650}
select,input,textarea,button{font:inherit;max-width:100%;min-height:44px}
select,input,textarea{width:100%;background:var(--frame-bg);color:var(--frame-ink);border:1px solid var(--frame-field-line);border-radius:16px;padding:10px 14px}
textarea{resize:vertical;min-height:125px}
button{background:var(--frame-accent);color:var(--frame-accent-ink);border:1px solid var(--frame-accent);border-radius:999px;padding:9px 19px;cursor:pointer;font-weight:650}
button.secondary{background:var(--frame-bg);color:var(--frame-ink);border-color:var(--frame-field-line)}
button:disabled{opacity:.55;cursor:not-allowed}
.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.sample{border:1px solid var(--border);background:var(--brand-paper,Canvas);color:var(--brand-ink,CanvasText);border-radius:16px;padding:20px;max-width:100%;margin-top:12px}
.sample button{background:var(--brand-orange,ButtonFace);color:var(--brand-ink,ButtonText)}
.swatches{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr));gap:10px;margin:16px 0}
.swatch{border:1px solid var(--border);border-radius:12px;padding:10px;min-width:0}.swatch strong{display:block;overflow-wrap:anywhere}.swatch div{overflow-wrap:anywhere}
.chip{display:inline-flex;padding:3px 10px;border:1px solid currentColor;border-radius:999px;font-size:.85rem}
.details{margin:18px 0}details summary{cursor:pointer;font-weight:650;padding:8px 2px}
.section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.component-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px}
.component-example{border:1px solid var(--border);border-radius:14px;padding:16px}
.component-example-live{min-height:56px;display:grid;gap:8px;justify-items:start}
.brand-component{font:inherit;max-width:100%}
.brand-component-button{background:var(--brand-orange,ButtonFace);color:var(--brand-ink,ButtonText);border:2px solid var(--brand-ink,currentColor);border-radius:999px;padding:10px 18px;min-height:44px}
.brand-component-status{display:inline-block;background:var(--brand-paper,Canvas);color:var(--brand-ink,CanvasText);border:1px solid currentColor;border-radius:99px;padding:6px 12px}
.brand-component-card{width:100%;border:1px solid currentColor;border-radius:14px;padding:14px;background:var(--brand-paper,Canvas);color:var(--brand-ink,CanvasText)}
.brand-component-card p{margin:0}
.brand-component-form{width:100%}.brand-component-form label{display:block}
.brand-component-input{width:100%}
.brand-component-help{font-size:.875rem}
[data-preview="portrait"]{max-width:360px}
[data-preview="landscape"]{max-width:700px}
.text-medium{font-size:1.5em}.text-large{font-size:2em}
#recovery[hidden],#content[hidden]{display:none}
#recovery{margin-top:24px}
@media(max-width:950px){.workspace{grid-template-columns:minmax(0,1fr)}.side{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.side,.section-grid{grid-template-columns:1fr}.workspace{gap:12px;margin-top:14px}main{padding-top:10px}.hero{padding:16px 0 2px}.panel{padding:16px}}
@media(prefers-reduced-motion:no-preference){button{transition:background-color .15s ease}}
/* Icon gallery panel, layout corrections and logo sizing (previously outside the scope). */
.brand-icons-panel{margin-top:12px}.brand-icon-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:12px 0}.brand-icon-controls label{font-weight:600}.brand-icon-controls input{flex:2 1 180px;min-width:0}.brand-icon-controls select{flex:1 1 150px;min-width:0}
.brand-icon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,140px),1fr));gap:12px;margin-top:12px}.brand-icon-card{min-width:0;border:1px solid var(--frame-line);border-radius:16px;padding:12px;background:var(--frame-surface);color:var(--frame-ink)}.brand-icon-art{max-width:130px;aspect-ratio:1;margin:auto}.brand-icon-art svg{width:100%;height:100%;display:block}.brand-icon-name{font-weight:700;margin:8px 0 0;overflow-wrap:anywhere}.brand-icon-kind{font-size:.8rem;margin:2px 0 0}.brand-icon-empty{display:grid;place-items:center;aspect-ratio:1;border:1px dashed var(--frame-field-line);border-radius:12px}
.section-grid,.workspace{min-width:0}.panel{min-width:0}.component-gallery{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));align-items:start}.component-example{min-width:0}
.footer-preview{flex-wrap:wrap;padding:12px 0}.footer-preview img{display:block;width:min(100%,var(--brand-logo-width,160px));max-height:none;object-fit:contain;padding:var(--brand-logo-padding,12px);box-sizing:content-box}
.brand-logo-sizing{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;margin:12px 0}.brand-logo-sizing label{grid-row:1}.brand-logo-sizing input{min-width:0;width:100%}
@media(max-width:480px){.brand-icons-panel{margin-top:10px}.brand-icon-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.brand-icon-card{padding:9px}.brand-logo-sizing{grid-template-columns:1fr}.brand-logo-sizing label{grid-row:auto}}
@media(max-width:680px){.brand-icon-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1100px){main{max-width:1200px}.section-grid{gap:20px}.component-gallery{gap:16px}}
}

/* Trace content only (work item org.orangepeelit.delivery-work-item.brand-frame-rollout-1-workbench-log-20261201.v1).
   Header, footer, Credits page, colours in light and dark, and transitions come from Brand's app frame. */
@scope (.brand-product-trace) {
:scope{line-height:1.5}
*{box-sizing:border-box}
main{max-width:1140px;margin:auto;padding:1rem}
h1{font-size:1.75rem;margin:.5rem 0}p{margin:.5rem 0}
.controls{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;margin:1rem 0}
button,input{font:inherit;border:1px solid var(--frame-field-line);border-radius:.7rem;padding:.6rem .85rem;background:var(--frame-bg);color:var(--frame-ink)}
button{cursor:pointer}
button[aria-pressed=true]{border-width:2px}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,.8fr);gap:1rem}
#items{display:grid;gap:.5rem;align-content:start}
.entry{width:100%;text-align:left;display:flex;flex-direction:column;gap:.2rem;overflow-wrap:anywhere}
aside{border:1px solid var(--frame-line);background:var(--frame-surface);padding:1rem;border-radius:1rem;min-width:0;overflow-wrap:anywhere}
dt{font-weight:bold;margin-top:.7rem}dd{margin:0}
.trace-note{font-size:.85rem;color:var(--frame-muted)}
@media(max-width:700px){.workspace{grid-template-columns:1fr}aside{position:relative}}
}

/* Log content only (work item org.orangepeelit.delivery-work-item.brand-frame-rollout-1-workbench-log-20261201.v1).
   Header, footer, Credits page, colours in light and dark, and transitions come from Brand's app frame. */
@scope (.brand-product-log) {
:scope{line-height:1.45}
*{box-sizing:border-box}
main{max-width:1400px;margin:auto;padding:20px max(16px,env(safe-area-inset-left)) 60px}
h1{margin:0;font-size:clamp(1.6rem,4vw,2.25rem)}p{max-width:80ch}.subtle{color:var(--frame-muted)}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr));gap:12px;margin:20px 0}
.panel{border:1px solid var(--frame-line);border-radius:14px;padding:14px;background:var(--frame-surface)}.stat{font-size:1.4rem;font-weight:700;overflow-wrap:anywhere}
.controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:15px 0}
select,input,button{font:inherit;background:var(--frame-bg);color:inherit;border:1px solid var(--frame-field-line);border-radius:9px;padding:9px;min-height:44px;max-width:100%}
button{cursor:pointer}
.table-wrap{overflow-x:auto;max-width:100%;border:1px solid var(--frame-line);border-radius:14px}
table{border-collapse:collapse;width:100%;min-width:900px;font-size:.92rem}
thead{background:var(--frame-bg)}th{text-align:left;position:sticky;top:0;white-space:nowrap}th,td{padding:12px;border-bottom:1px solid var(--frame-line);vertical-align:top}
th button{min-height:30px;padding:0 4px;border:0;font-weight:700}
[aria-label="Recorded service events"] table{table-layout:fixed}
[aria-label="Recorded service events"] th{white-space:normal}
th input,th select{display:block;width:100%;min-width:0;margin-top:6px;font-size:.86rem}
td p{margin:.35rem 0}
td{overflow-wrap:anywhere}td.time{white-space:nowrap}tbody tr:hover{background:color-mix(in srgb,var(--frame-accent) 6%,transparent)}
.severity{display:inline-flex;border-radius:999px;padding:3px 9px;font-weight:700;border:1px solid currentColor}
.severity.ERROR{color:var(--frame-danger)}.severity.WARNING{color:color-mix(in srgb,var(--frame-accent) 60%,var(--frame-ink))}.severity.INFO{color:var(--frame-ink)}
#errorsOnly[aria-pressed=true]{border-color:var(--frame-danger);color:var(--frame-danger);font-weight:700}
details{max-width:350px}summary{cursor:pointer}.empty{padding:22px}
@media(max-width:620px){[aria-label="Recorded service events"] .table-wrap{overflow:visible;border:0}[aria-label="Recorded service events"] table{min-width:0;display:block}[aria-label="Recorded service events"] thead{display:block}[aria-label="Recorded service events"] thead tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}[aria-label="Recorded service events"] th{display:block;padding:6px}[aria-label="Recorded service events"] tbody{display:grid;gap:12px}[aria-label="Recorded service events"] tbody tr{display:block;border:1px solid var(--frame-line);border-radius:14px;padding:12px;min-width:0}[aria-label="Recorded service events"] tbody td{display:block;width:100%;padding:8px 0;border:0;overflow-wrap:anywhere;white-space:normal}[aria-label="Recorded service events"] tbody td+td{border-top:1px solid var(--frame-line)}[aria-label="Recorded service events"] details{max-width:100%}[aria-label="Recorded service events"] td.time{white-space:normal}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}main{padding-top:14px}.controls{align-items:stretch}.controls>*{flex:1}}
}

/* Consolidated application presentation within the single Brand stylesheet */

@scope (.brand-product-workbench) {
/* Workbench content only (work item org.orangepeelit.delivery-work-item.brand-frame-rollout-1-workbench-log-20261201.v1).
   Header, footer, Credits page, colours in light and dark, and transitions come from Brand's app frame;
   Workbench's colour roles are the frame's tokens. */
:scope {
  --orange:var(--frame-accent);
  --orange-dark:color-mix(in srgb,var(--frame-accent) 60%,var(--frame-ink));
  --ink:var(--frame-ink);
  --muted:var(--frame-muted);
  --paper:var(--frame-bg);
  --surface:var(--frame-surface);
  --soft:var(--frame-surface);
  --line:var(--frame-line);
  --green:var(--frame-ink);
  --green-bg:var(--frame-surface);
  --blue:var(--frame-ink);
  --blue-bg:var(--frame-surface);
  --warm:color-mix(in srgb,var(--frame-accent) 10%,var(--frame-bg));
  --radius:18px;
}

* {
  box-sizing:border-box;
}

body {
  font-size:16px;
  line-height:1.45;
}

button,
input,
textarea {
  font:inherit;
}

h1,
h2,
h3,
p {
  margin-top:0;
}

main {
  width:100%;
  padding:12px;
}

.card {
  margin:0 0 12px;
  padding:18px;

  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
}

.hero {
  padding-top:22px;
  padding-bottom:22px;
}

.hero h1 {
  max-width:760px;
  margin:2px 0 10px;

  font-size:36px;
  line-height:1.03;
  letter-spacing:-.035em;
}

.lede {
  max-width:680px;
  margin-bottom:0;

  color:var(--muted);
  font-size:16px;
  line-height:1.5;
}

.eyebrow {
  margin-bottom:7px;

  color:var(--orange-dark);
  font-size:10px;
  font-weight:700;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}

.heading h2 {
  margin-bottom:8px;
}

.grid {
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}

.wide {
  grid-column:auto;
}

label {
  display:block;
  color:var(--ink);
  font-size:13px;
  font-weight:700;
}

.optional {
  margin-left:4px;
  color:var(--muted);
  font-size:11px;
  font-weight:400;
}

input,
textarea {
  display:block;

  width:100%;
  margin-top:7px;
  padding:13px 14px;

  border:1px solid var(--line);
  border-radius:14px;

  background:var(--paper);
  color:var(--ink);
}

textarea {
  resize:vertical;
}

input:focus,
textarea:focus {
  outline:none;
  border-color:var(--orange);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--orange) 25%,transparent);
}

.buttons {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
}

button {
  min-height:42px;
  padding:10px 15px;

  border:0;
  border-radius:12px;

  background:var(--orange);
  color:var(--frame-accent-ink);

  font-weight:700;
  cursor:pointer;
}

button:hover:not(:disabled) {
  box-shadow:inset 0 0 0 2px var(--frame-accent-ink);
}

button:disabled {
  cursor:not-allowed;
  background:var(--surface);
  color:var(--muted);
}

button.quiet {
  background:var(--surface);
  color:var(--ink);
  border:1px solid var(--line);
}

button.quiet:hover:not(:disabled) {
  box-shadow:inset 0 0 0 2px var(--line);
}

button.small {
  min-height:36px;
  padding:7px 12px;
  font-size:13px;
}

.pill,
.state,
.source {
  display:inline-flex;
  align-items:center;

  min-height:24px;
  padding:4px 8px;

  border-radius:999px;

  font-size:10px;
  font-weight:700;
  line-height:1;
}

.pill {
  background:var(--surface);
  border:1px solid var(--line);
}

.pill.green,
.state.accepted,
.state.edited,
.state.supplied {
  background:var(--green-bg);
  color:var(--green);
}

.state.proposed {
  background:var(--warm);
  color:var(--orange-dark);
}

.source.user {
  background:var(--blue-bg);
  color:var(--blue);
}

.source.derived {
  background:var(--warm);
  color:var(--orange-dark);
}

.guidance {
  margin:0 0 16px;
  padding:12px 14px;

  border-radius:14px;

  background:var(--warm);
  color:var(--ink);

  font-size:14px;
  line-height:1.45;
}

.decision-cards {
  display:grid;
  gap:10px;
}

.decision-card {
  padding:15px;

  border:1px solid var(--line);
  border-radius:16px;

  background:var(--surface);
}

.decision-header {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}

.decision-title-row {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
}

.decision-title {
  font-size:16px;
  font-weight:700;
}

.decision-value {
  margin-top:11px;
  line-height:1.5;
  white-space:pre-wrap;
}

.decision-value.list {
  display:grid;
  gap:0;
}

.structured-item {
  padding:12px 0;
  border-top:1px solid var(--line);
}

.structured-item:first-child {
  padding-top:5px;
  border-top:0;
}

.structured-title {
  margin-bottom:3px;
  font-size:14px;
  font-weight:700;
}

.structured-detail {
  color:var(--ink);
  line-height:1.45;
}

.reason {
  margin-top:10px;
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
}

.reason strong {
  color:var(--ink);
}

.decision-editor {
  min-height:105px;
  margin-top:10px;
}

.decision-footer {
  display:flex;
  justify-content:flex-end;
  gap:7px;
  margin-top:12px;
}

.inherited {
  margin-top:16px;
  padding:16px;

  border:1px solid var(--line);
  border-radius:16px;

  background:var(--surface);
}

.inherited-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}

.inherited-heading h3 {
  margin-bottom:0;
  font-size:16px;
}

.inherited-help {
  margin:8px 0 12px;
  color:var(--muted);
  font-size:13px;
}

.inherited-list {
  display:grid;
  gap:8px;
}

.inherited-item {
  display:grid;
  grid-template-columns:18px 1fr;
  gap:7px;

  font-size:14px;
  line-height:1.4;
}

.inherited-item::before {
  content:"ÃƒÂ¢Ã…â€œÃ¢â‚¬Å“";
  color:var(--green);
  font-weight:700;
}

.progress-panel {
  display:grid;
  gap:12px;

  margin-top:18px;
  padding-top:18px;

  border-top:1px solid var(--line);
}

.progress-panel p {
  margin:4px 0 0;
  color:var(--muted);
  font-size:13px;
}

.progress-panel button {
  width:100%;
}

.tabs {
  display:flex;
  gap:7px;
  overflow:auto;
  padding:0 0 12px;
  scrollbar-width:none;
}

.tabs::-webkit-scrollbar {
  display:none;
}

.tabs button {
  flex:0 0 auto;
  min-height:38px;

  background:var(--paper);
  color:var(--ink);

  border:1px solid var(--line);
}

.tabs button.active {
  background:var(--ink);
  color:var(--paper);
  border-color:var(--ink);
}

.field {
  padding:13px 0;
  border-top:1px solid var(--line);
}

.field:first-of-type {
  padding-top:0;
  border-top:0;
}

.field-name {
  margin-bottom:5px;
  color:var(--muted);
  font-size:11px;
}

.field-value {
  line-height:1.5;
  white-space:pre-wrap;
}

.unknown {
  color:var(--orange-dark);
}

.knowledge {
  display:grid;
  gap:8px;
}

.knowledge-item {
  padding:12px 13px;
  border-radius:13px;
  background:var(--paper);
  font-size:14px;
  line-height:1.4;
}

.hidden {
  display:none;
}


/* ============================================================
   Larger screens enhance the mobile layout.
   Mobile remains the base implementation.
   ============================================================ */

@media (min-width:720px) {

  main {
    max-width:1060px;
    margin-left:auto;
    margin-right:auto;
  }

  main {
    padding:20px;
  }

  .card {
    padding:22px 24px;
  }

  .hero {
    padding-top:28px;
    padding-bottom:28px;
  }

  .hero h1 {
    font-size:48px;
  }

  .grid {
    grid-template-columns:1fr 1fr;
  }

  .wide {
    grid-column:1 / -1;
  }

  .progress-panel {
    grid-template-columns:1fr auto;
    align-items:center;
  }

  .progress-panel button {
    width:auto;
  }
}


@media (min-width:1000px) {

  main {
    max-width:1120px;
  }

  .card {
    padding:24px 26px;
  }
}
/* ============================================================
   Workbench compact structured content
   ============================================================ */

.structured-item {
  padding:11px 0;
  border-top:1px solid var(--line);
}

.structured-item:first-child {
  padding-top:3px;
  border-top:0;
}

.structured-title {
  margin-bottom:3px;
  font-size:14px;
  font-weight:700;
  line-height:1.35;
}

.structured-detail {
  color:var(--ink);
  font-size:14px;
  line-height:1.45;
}

.item-line {
  display:block;
  padding:9px 0;
  border-top:1px solid var(--line);
}

.item-line:first-child {
  border-top:0;
}

.item-line::before {
  content:none !important;
}

.decision-value.list {
  gap:0;
}

.reason {
  padding:0;
  background:transparent;
  border:0;
}

/* ============================================================
   UX CLEANUP V1
   Mobile first. No preserved template indentation.
   ============================================================ */

main {
  padding-top:10px;
}

.card {
  padding:16px;
}

.hero {
  padding-top:18px;
  padding-bottom:18px;
}

.hero h1 {
  margin-bottom:8px;
}

.guidance {
  margin-bottom:12px;
}

.decision-cards {
  gap:8px;
}

.decision-card {
  padding:14px 15px;
}

.decision-header {
  margin-bottom:0;
}

.decision-title-row {
  gap:6px;
}

.decision-title {
  font-size:16px;
}

.decision-value {
  margin-top:8px;
  padding:0;

  white-space:normal;

  line-height:1.45;
  text-align:left;
}

.decision-value.list {
  display:block;
}

.structured-item {
  margin:0;
  padding:9px 0;

  border-top:1px solid var(--line);

  text-align:left;
}

.structured-item:first-child {
  padding-top:4px;
  border-top:0;
}

.structured-title {
  margin:0 0 2px;
  padding:0;

  font-size:14px;
  line-height:1.35;
}

.structured-detail {
  margin:0;
  padding:0;

  color:var(--ink);

  font-size:14px;
  line-height:1.45;

  text-align:left;
}

.item-line {
  margin:0;
  padding:8px 0;

  border-top:1px solid var(--line);

  text-align:left;
}

.item-line:first-child {
  border-top:0;
}

.item-line::before {
  display:none !important;
  content:none !important;
}

.reason {
  margin-top:8px;
  padding:0;

  border:0;
  background:transparent;

  color:var(--muted);

  font-size:12px;
  line-height:1.35;
}

.reason strong {
  font-weight:700;
}

.decision-footer {
  margin-top:10px;
}

.inherited {
  margin-top:14px;
  padding:14px 15px;

  border:1px solid var(--line);
  border-radius:15px;

  background:var(--surface);
}

.inherited-heading {
  align-items:center;
}

.inherited-heading .eyebrow {
  margin-bottom:3px;
}

.inherited-heading h3 {
  margin:0;
  font-size:15px;
}

.inherited-help {
  display:none;
}

.inherited-list {
  margin-top:10px;
  gap:0;
}

.inherited-item {
  display:block;

  margin:0;
  padding:7px 0;

  border-top:1px solid var(--line);

  font-size:13px;
  line-height:1.4;

  text-align:left;
}

.inherited-item:first-child {
  border-top:0;
}

.inherited-item::before {
  display:none !important;
  content:none !important;
}

.progress-panel {
  margin-top:14px;
  padding-top:14px;
}

.progress-panel p {
  margin-top:2px;
}

.field-value {
  white-space:normal;
  text-align:left;
}

.knowledge-item {
  text-align:left;
}

@media (min-width:720px) {

  main {
    max-width:1000px;
    padding-top:16px;
  }

  .card {
    padding:18px 20px;
  }

  .decision-card {
    padding:15px 18px;
  }
}

/* ============================================================
   PROJECT BRIEF FINAL CLEANUP
   ============================================================ */

.original-idea {
  margin-top:10px;
}

.original-idea summary {
  cursor:pointer;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.original-idea-text {
  margin-top:8px;
  padding:10px 12px;

  border-radius:12px;

  background:var(--paper);

  color:var(--ink);

  font-size:13px;
  line-height:1.45;

  white-space:normal;
}

.progress-panel button[hidden] {
  display:none;
}

.decision-header .source {
  margin-left:0;
}


.entry-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.existing-picker {
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid var(--line);
}

.existing-picker select {
  display:block;
  width:100%;
  margin-top:7px;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
  color:var(--ink);
  font:inherit;
}

.existing-sections {
  display:grid;
  gap:22px;
  margin-top:22px;
}

.knowledge-item {
  padding:14px 0;
  border-top:1px solid var(--line);
}

.knowledge-item:first-child {
  border-top:0;
}

.knowledge-item p {
  margin:7px 0 0;
  color:var(--muted);
}

.knowledge-title-row {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}


/* Contextual candidate review — deliberately subordinate to governed Decision. */
.contextual-review-cards { display:grid; gap:14px; margin:18px 0; }
.contextual-tile { border:1px solid var(--line); border-radius:16px; padding:18px; background:var(--surface); }
.contextual-tile > p { margin:9px 0; overflow-wrap:anywhere; }
.contextual-tile .buttons { flex-wrap:wrap; margin-top:12px; }
.contextual-suggestion { margin-top:14px; border-left:3px solid var(--orange-dark); padding:12px 16px; background:var(--surface); }
.contextual-suggestion p { margin:7px 0; }
@media(max-width:600px) { .contextual-tile { padding:14px; } }

/* Optional context remains available without crowding mobile idea entry. */
.idea-extra{margin:12px 0;border:1px solid var(--line);border-radius:14px;padding:12px 14px}
.idea-extra summary{cursor:pointer;font-weight:700;min-height:28px}
.idea-extra summary:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.idea-extra[open] summary{margin-bottom:12px}
.idea-extra-help{color:var(--muted);font-size:14px;margin:0 0 12px}
.idea-extra .grid{gap:12px}

/* Existing-product conversation first: engineering remains available on demand. */
#existingProductState .conversation-first{
  margin:16px 0;
  padding:18px;
  border-radius:18px;
  background:var(--surface);
  border:1px solid var(--line);
}
#existingProductState .conversation-first h3{font-size:19px;margin:0 0 12px}
#existingProductState .conversation-first textarea{min-height:100px;font-size:16px}
#existingProductState .conversation-first .guidance:empty{display:none}
#existingProductState .agreed-requirement{
  margin:0;
  padding:12px 0;
  border-bottom:1px solid var(--line);
  font-size:15px;
  line-height:1.45;
}
#existingProductState .agreed-requirement:last-child{border-bottom:0}
#existingProductState .existing-product-details{
  margin:16px 0;
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px 16px;
  overflow-wrap:anywhere;
}
#existingProductState .existing-product-details>summary{
  cursor:pointer;
  font-weight:700;
  padding:6px 0;
  min-height:38px;
}
#existingProductState .existing-product-details>summary:focus-visible{
  outline:3px solid var(--orange);
  outline-offset:4px;
}
#existingProductState .stage-grid{display:flex;flex-wrap:wrap;gap:8px}
#existingProductState .stage-item{min-width:100px;flex:1 1 auto}
#existingProductState .existing-sections{gap:18px;margin-top:12px}
#existingProductState .knowledge{overflow-wrap:anywhere}
#existingProductState .knowledge-title-row{flex-wrap:wrap}
@media(max-width:600px){
 #existingProductState .conversation-first{padding:14px;margin:12px 0}
 #existingProductState .existing-product-details{padding:12px}
 #existingProductState h2{font-size:clamp(26px,7vw,34px)}
 #existingProductState .lede{font-size:15px;line-height:1.5}
}

/* Keep the chosen product and its conversation visible on narrow screens. */
body.working-on-existing .hero{display:none}
body.working-on-existing #entrySection{padding:12px 16px}
body.working-on-existing #entrySection .heading,body.working-on-existing #entrySection>.guidance{display:none}
body.working-on-existing #entrySection .entry-actions button{min-height:36px;padding:7px 11px;font-size:14px}
body.working-on-existing #entrySection .existing-picker{margin-top:9px;padding-top:9px}
@media(max-width:600px){body.working-on-existing #entrySection{margin-bottom:8px}body.working-on-existing #existingProductState{padding:14px}}

/* Owner-facing requirement previews show governed wording on demand. */
#existingAcceptedRequirements .agreed-item{
  border-bottom:1px solid var(--line);
  padding:8px 0;
}
#existingAcceptedRequirements .agreed-item summary{
  cursor:pointer;
  padding:8px 3px;
  color:var(--ink);
  line-height:1.4;
  font-size:15px;
  font-weight:600;
  overflow-wrap:anywhere;
}
#existingAcceptedRequirements .agreed-item summary:focus-visible{
  outline:3px solid var(--orange);
  outline-offset:3px;
}
#existingAcceptedRequirements .agreed-item p{
  margin:4px 0 10px;
  padding:10px 12px;
  border-radius:12px;
  background:var(--paper);
  font-size:14px;
  line-height:1.5;
  overflow-wrap:anywhere;
}

/* Phone-first access to existing governed applications. Brand colours are
   inherited from the existing tokens; no alternate theme is introduced. */
.operations-nav{
  display:flex;
  gap:8px;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  padding:10px 12px;
  background:var(--surface);
  border-bottom:1px solid var(--line);
}
.operations-nav a{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 15px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--ink);
  background:var(--surface);
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  white-space:nowrap;
}
.operations-nav a[aria-current="page"]{
  border-color:var(--orange);
  color:var(--ink);
  font-weight:700;
}
.operations-nav a:focus-visible{
  outline:3px solid var(--orange);
  outline-offset:2px;
}
@media(max-width:600px){
  .operations-nav{padding-inline:12px}
  .operations-nav a{min-height:48px}
}

/* Governed microsite typography. Values are supplied by /api/presentation. */
body, button, input, select, textarea {
  font-family: var(--brand-body-font, inherit);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--brand-heading-font, inherit);
}

}

@scope (.brand-product-decide) {
/* Decide content only (work item org.orangepeelit.delivery-work-item.decide-home-20261201.v1).
   Header, footer, Credits page, colours in light and dark, and view transitions come from
   Brand's app frame; Decide defines no colours of its own. Mobile first: the phone layout
   is the default; wider screens adjust below. */
:scope{--line:var(--frame-line);--muted:var(--frame-muted);--surface:var(--frame-surface);--ink:var(--frame-ink);--accent:var(--frame-accent);--accent-ink:var(--frame-accent-ink)}
*,*::before,*::after{box-sizing:border-box}
button,input,select{font:inherit}
.hidden,[hidden]{display:none!important}
.decide-main{width:100%;max-width:48rem;margin:0 auto;padding:var(--brand-space-4) max(var(--brand-space-4),env(safe-area-inset-right)) var(--brand-space-6) max(var(--brand-space-4),env(safe-area-inset-left))}
.decide-main h1{font-family:var(--brand-heading-font);font-size:clamp(1.75rem,7vw,2.75rem);line-height:1.1;margin:var(--brand-space-3) 0}
.decide-title{display:flex;align-items:center;justify-content:space-between;gap:var(--brand-space-3)}
.decide-nav,.decide-back{min-height:var(--brand-control-height);padding:var(--brand-space-2) var(--brand-space-4);border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--ink);font-weight:600;cursor:pointer}
.decide-back{margin-top:var(--brand-space-2);padding-left:var(--brand-space-3)}
.decide-back::before{content:"← "}
.inbox-status{margin:var(--brand-space-3) 0;color:var(--muted)}
.small{color:var(--muted);font-size:.8rem}
.decide-panel,.decision-tile{background:var(--surface);border:1px solid var(--line);border-radius:var(--brand-card-radius);padding:var(--brand-space-4);margin:0 0 var(--brand-space-4);overflow-wrap:anywhere}
.decide-panel h2{font-family:var(--brand-heading-font);margin:0 0 var(--brand-space-2)}
.empty-state{text-align:center;padding:var(--brand-space-6) var(--brand-space-4)}
.empty-state h2{font-size:clamp(1.35rem,5vw,2rem)}
.empty-state p{color:var(--muted);margin:0}
.error-state{border-left:4px solid var(--frame-danger)}
.decision-stack{display:flex;flex-direction:column;gap:var(--brand-space-4)}
.decision-stack .decision-tile{margin:0}
.section-label{font-size:.75rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.decision-tile h2{font-family:var(--brand-heading-font);font-size:clamp(1.3rem,5vw,1.8rem);line-height:1.2;margin:var(--brand-space-2) 0 var(--brand-space-3)}
.decision-tile h3{font-size:1rem;margin:var(--brand-space-3) 0 var(--brand-space-1)}
.decision-tile p{color:var(--muted);line-height:1.55}
.decision-origin{font-size:.8rem;margin:0 0 var(--brand-space-3)}
.decision-fact{margin:var(--brand-space-3) 0}
.decision-fact h3{font-size:.875rem;margin:0 0 var(--brand-space-1)}
.decision-fact p{margin:0;line-height:1.5}
.decision-recommendation{border-left:4px solid var(--accent);padding:var(--brand-space-3) var(--brand-space-4);margin:var(--brand-space-4) 0;background:var(--frame-bg)}
.decision-recommendation p{margin:var(--brand-space-1) 0 0}
.decision-option{padding:var(--brand-space-3) 0;border-bottom:1px solid var(--line)}
.decision-option:last-child{border-bottom:0}
.decision-option strong{display:block}
.decision-option p{margin:var(--brand-space-1) 0}
.decision-detail{border-top:1px solid var(--line);margin:var(--brand-space-3) 0;padding:var(--brand-space-2) 0}
.decision-detail summary{display:flex;align-items:center;min-height:var(--brand-control-height);font-weight:600;cursor:pointer}
/* Three owner choices remain visible together, including on narrow phones. */
.decision-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--brand-space-2);width:100%}
.decision-action{min-width:0;min-height:var(--brand-control-height);padding:var(--brand-space-3) var(--brand-space-1);border:1px solid var(--line);border-radius:.75rem;background:var(--frame-bg);color:var(--ink);font-weight:600;line-height:1.2;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.decision-action.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.decision-action:disabled{opacity:.48;cursor:not-allowed}
.decision-defer{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:var(--brand-space-2)}
.decision-defer p{flex-basis:100%;margin:var(--brand-space-2) 0 0}
.decision-defer .decision-action{flex:1 1 7rem}
.decision-defer input{min-height:var(--brand-control-height);padding:0 var(--brand-space-2);border:1px solid var(--frame-field-line);border-radius:.5rem;background:var(--frame-bg);color:var(--ink)}
.item-message{margin:var(--brand-space-2) 0}
.decision-complete{border-color:var(--accent)}
.decision-complete .item-message[role="status"]{font-weight:700;color:var(--ink)}
.decision-tile.decision-complete .decision-action:disabled{opacity:1}
/* Conclude, hold, then dismiss: the stack moves the next card up as the
   resolved card collapses, only after APEX confirms the decision. */
.decision-tile{transition:max-height 800ms ease-in-out,opacity 650ms ease,padding 800ms ease,margin 800ms ease,border-width 800ms ease}
.decision-tile.decision-leaving{max-height:0!important;opacity:0;pointer-events:none;padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0}
#secure .decision-action{width:100%;margin-top:var(--brand-space-3)}
#decide-notification-enrolment button{min-height:var(--brand-control-height);padding:var(--brand-space-2) var(--brand-space-4);border:1px solid var(--accent);border-radius:.75rem;background:var(--accent);color:var(--accent-ink);font-weight:700;cursor:pointer}
/* In progress, Coming back and History. */
.decide-section{margin:var(--brand-space-6) 0 0}
.decide-section h2{font-family:var(--brand-heading-font);font-size:1.15rem;margin:0 0 var(--brand-space-2)}
.decide-section .decision-detail{border-top:0;margin:0;padding:0}
.decide-section .decision-detail p{margin:var(--brand-space-2) 0;padding:var(--brand-space-3) var(--brand-space-4);border:1px solid var(--line);border-radius:var(--brand-card-radius);background:var(--surface)}
.decide-list,.decide-history{display:grid;gap:var(--brand-space-2);margin:0;padding:0;list-style:none}
.decide-entry-open{display:grid;gap:var(--brand-space-1);width:100%;min-height:var(--brand-control-height);padding:var(--brand-space-3) var(--brand-space-4);border:1px solid var(--line);border-radius:var(--brand-card-radius);background:var(--surface);color:var(--ink);text-align:left;cursor:pointer}
.decide-kind{font-size:.7rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.decide-entry-title{font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.decide-status{justify-self:start;padding:0 var(--brand-space-2);border:1px solid var(--line);border-radius:999px;font-size:.8rem;font-weight:700}
.decide-status-running,.decide-status-checking{border-color:var(--accent)}
.decide-status-failed{border-color:var(--frame-danger);color:var(--frame-danger)}
.decide-after{font-size:.9rem}
.decide-search{display:block;margin:var(--brand-space-3) 0}
.decide-search span{display:block;margin-bottom:var(--brand-space-1);font-size:.8rem;color:var(--muted)}
.decide-search input{width:100%;min-height:var(--brand-control-height);padding:0 var(--brand-space-3);border:1px solid var(--frame-field-line);border-radius:.75rem;background:var(--frame-bg);color:var(--ink)}
/* In progress: the five most recent, grouped by application, with Show all for the rest
   (work item org.orangepeelit.delivery-work-item.brand-ux-tidy-recipe-decide-20261201.v1). */
.decide-group+.decide-group{margin-top:var(--brand-space-4)}
.decide-group h3{font-size:.875rem;font-weight:700;color:var(--muted);margin:0 0 var(--brand-space-2)}
.decide-more{display:flex;flex-wrap:wrap;align-items:center;gap:var(--brand-space-2) var(--brand-space-3);margin-top:var(--brand-space-3)}
.decide-more p{margin:0}
@media(min-width:40rem){
 .decide-main{padding-top:var(--brand-space-6)}
 .decide-panel,.decision-tile{padding:var(--brand-space-5)}
 .decision-actions{display:flex;flex-wrap:wrap;gap:var(--brand-space-3)}
 .decision-action{padding:var(--brand-space-3) var(--brand-space-4)}
 .decision-defer{flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){
 .decision-tile{transition:none}
}
}

@scope (.brand-product-kanban) {
* {
  box-sizing:border-box;
}

html {
  background:#fff;
}

body {
  margin:0;
  background:var(--paper,#fff);
  color:var(--ink,#152534);
  font-family:var(--font-body,system-ui,sans-serif);
  line-height:1.5;
}

body.loading #app,
body.loading footer {
  visibility:hidden;
}

body.failed #app,
body.failed footer,
body.failed nav {
  display:none;
}

a {
  color:inherit;
}

.topbar {
  position:sticky;
  top:0;
  z-index:20;

  min-height:72px;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;

  padding:
    0 max(
      24px,
      calc((100vw - 1240px) / 2)
    );

  background:
    rgba(255,255,255,.96);

  border-bottom:
    1px solid rgba(7,26,43,.13);

  backdrop-filter:
    blur(16px);
}

.brand {
  display:inline-flex;
  align-items:center;
  gap:10px;

  font-family:
    var(--font-heading,system-ui,sans-serif);

  text-decoration:none;
}

.mark {
  width:18px;
  height:18px;

  border-radius:50%;

  background:
    var(--orange);
}

nav {
  display:flex;
  gap:24px;

  font-size:14px;
}

nav a {
  color:#62707d;
  text-decoration:none;
}

nav a:hover,
nav a:focus {
  color:
    var(--navy);
}

main {
  width:
    min(
      1500px,
      calc(100% - 32px)
    );

  margin:
    0 auto;

  padding:
    56px 0 48px;
}

.hero {
  margin-bottom:42px;
}

.eyebrow,
.card-type {
  margin:
    0 0 12px;

  color:
    var(--orange-dark);

  font-size:
    11px;

  font-weight:
    700;

  letter-spacing:
    .14em;
}

.hero h1,
.lane h2,
.card h3 {
  font-family:
    var(--font-heading,system-ui,sans-serif);

  color:
    var(--navy);
}

.hero h1 {
  margin:0;

  font-size:
    clamp(
      58px,
      8vw,
      104px
    );

  line-height:
    .9;

  letter-spacing:
    -.045em;
}

.hero p:last-child {
  margin:
    22px 0 0;

  color:
    #62707d;

  font-size:
    21px;
}

.board {
  display:grid;

  grid-template-columns:repeat(5,minmax(224px,1fr));

  gap:14px;

  align-items:start;

  overflow-x:auto;

  padding-bottom:12px;
}

.lane {
  min-height:420px;

  padding:12px;

  background:
    rgba(7,26,43,.045);

  border:
    1px solid rgba(7,26,43,.13);

  border-radius:20px;
}

.lane-heading {
  min-height:42px;

  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;

  padding:
    4px 5px 12px;
}

.lane-heading h2 {
  margin:0;
  font-size:17px;
}

.lane-heading span {
  min-width:28px;

  padding:
    4px 8px;

  border-radius:999px;

  background:
    rgba(7,26,43,.08);

  color:
    #53616c;

  text-align:center;

  font-size:12px;
  font-weight:700;
}

.cards {
  display:grid;
  gap:9px;
}

.card {
  padding:17px;

  background:#fff;

  border:
    1px solid rgba(7,26,43,.13);

  border-radius:16px;

  box-shadow:
    0 6px 18px rgba(7,26,43,.045);
}

.card-type {
  margin-bottom:8px;
  text-transform:uppercase;
}

.card h3 {
  margin:0;

  font-size:19px;

  letter-spacing:
    -.02em;
}

.card-instance {
  margin-top:9px;

  color:#62707d;

  font-size:12px;
}

.empty {
  margin:4px;

  padding:
    22px 8px;

  color:#8a949c;

  text-align:center;

  font-size:13px;
}

.status {
  margin-top:16px;

  color:#62707d;

  font-size:12px;
}

footer {
  width:
    min(
      1500px,
      calc(100% - 32px)
    );

  margin:
    0 auto;

  display:flex;
  justify-content:space-between;
  gap:20px;

  padding:
    24px 0 36px;

  border-top:
    1px solid rgba(7,26,43,.13);

  color:#62707d;

  font-size:12px;
}

.fatal {
  width:
    min(
      720px,
      calc(100% - 32px)
    );

  margin:
    60px auto;

  padding:
    20px;

  background:#fff;

  border:
    1px solid #d7dde2;

  border-radius:16px;

  color:#152534;
}

@media(max-width:980px) {

  .board {
    grid-template-columns:repeat(5,minmax(230px,1fr));
  }
}

@media(max-width:620px) {

  .topbar {
    min-height:auto;

    align-items:flex-start;
    flex-direction:column;

    padding:
      14px 20px;
  }

  main {
    width:
      calc(100% - 20px);

    padding-top:
      38px;
  }

  footer {
    width:
      calc(100% - 20px);

    flex-direction:column;
  }
}


.card-icon {
  display:block;
  width:36px;
  height:36px;
  margin:0 0 14px;
  object-fit:contain;
  border-radius:9px;
}


.card-mark {
  display:block;
  width:18px;
  height:18px;
  margin:0 0 18px;
  border-radius:50%;
  background:var(--orange);
}

/* Core-backed delivery context on each Kanban tile. */
.card-lifecycle,.card-completion{margin:10px 0 0;font-size:12px;line-height:1.45;color:var(--ink,#152534)}
.card-lifecycle{font-weight:700;text-transform:uppercase;letter-spacing:.045em}
.card-completion{color:#62707d}

/* Layout-only controls. Colours and typography continue to come from Core. */
.board-controls { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0 0 16px; }
.board-controls label { font-size:13px; color:var(--ink); }
.board-controls select { max-width:100%; border:1px solid rgba(7,26,43,.2); background:white; border-radius:10px; padding:9px; font:inherit; }
.card[hidden] { display:none !important; }
@media(max-width:620px) {
  main { padding-top:20px; }
  .hero { margin-bottom:22px; }
  .hero h1 { font-size:44px; }
  .hero p:last-child { font-size:16px; margin-top:8px; }
  .board { display:block; overflow:visible; }
  .lane { display:none; min-height:0; padding:10px; }
  .lane[data-active="true"] { display:block; }
  .card { padding:12px; }
  .card-mark,.card-icon { margin-bottom:8px; }
  .card h3 { font-size:17px; }
}

/* Functional layout only; imagery and palette are supplied by Brand. */
.brand-logo { width: 30px; height: 30px; object-fit: contain; flex: none; }
.brand-footer-logo { max-height: 42px; height: auto; object-fit: contain; }

/* Shared Catalogue footer layout. Identity and colour values come from Brand. */
.site-footer .footer-brand{display:flex;align-items:center;gap:14px}
.site-footer .footer-brand strong{display:block;font-size:16px;color:var(--ink)}
.site-footer .footer-brand p,.site-footer .built-on-apex p{margin:4px 0}
.site-footer .built-on-apex{text-align:right}
.site-footer .built-label{font-weight:700;letter-spacing:.06em}
.site-footer .built-label a{color:var(--orange);text-decoration:none}
.site-footer .build-meta{color:var(--muted,#62707d)}
@media(max-width:620px){.site-footer .built-on-apex{text-align:left}}

/* Mobile lifecycle navigation: layout only; colours inherit Brand tokens. */
.mobile-stages{display:none}
@media(max-width:620px){
  .mobile-stages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:calc(100% - 20px);margin:0 auto 12px}
  .mobile-stages button{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border:1px solid var(--line,rgba(7,26,43,.2));border-radius:12px;background:var(--paper,#fff);color:var(--ink,#152534);font:inherit;font-size:13px;cursor:pointer}
  .mobile-stages button[aria-pressed="true"]{border-color:var(--orange);font-weight:700}
  .mobile-stages button:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
  .mobile-stages span{font-variant-numeric:tabular-nums}
}

/* Evidence-backed compact cards: keep five governed lifecycle stages in one row. */
@media(min-width:621px){
  .board{grid-auto-flow:column;grid-auto-columns:minmax(224px,1fr);align-items:start}
}
.card{padding:12px 14px;border-radius:13px}
.card-type{margin-bottom:5px}
.card h3{font-size:16px;line-height:1.28}
.card-instance{margin-top:5px}
.card-completion,.card-deployment{margin:6px 0 0;font-size:11px;line-height:1.35;color:#62707d}
.lane{min-height:0;border-radius:16px;padding:10px}
.cards{gap:7px}
.hero{margin-bottom:24px}
.hero h1{font-size:clamp(42px,6vw,78px)}
.hero p:last-child{font-size:17px;margin-top:14px}
@media(max-width:620px){.card{padding:11px 12px}}

/* Governed five-stage Kanban, including the accepted In Test stage. The scroll
   viewport contains the columns; no fifth column can wrap beneath Backlog. */
.board-scroll{width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
.board{display:grid;grid-template-columns:repeat(5,minmax(218px,1fr));grid-auto-flow:row;min-width:1130px;width:100%;gap:10px;overflow:visible;align-items:start}
.lane{min-width:0;min-height:0;padding:8px;border-radius:12px;align-self:start}
.lane-heading{min-height:36px;padding:4px 5px 8px}
.lane-heading h2{font-size:15px}
.cards{display:grid;gap:6px}
.card{padding:10px 11px;border-radius:11px;box-shadow:none}
.card h3{margin:0;font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.card-icon{width:28px;height:28px;margin:0 0 6px}
.card-completion,.card-deployment{margin:5px 0 0;font-size:11px;line-height:1.3;color:#62707d}
main{padding:22px 0 30px}
.hero{margin-bottom:14px}
.hero h1{font-size:clamp(32px,4vw,52px);line-height:1}
.hero p:last-child{font-size:14px;margin:7px 0 0}
.eyebrow{margin-bottom:5px}
.board-hint{margin:0 0 8px;color:#62707d;font-size:12px}
@media(min-width:1250px){.board-hint{display:none}}
@media(max-width:620px){
  main{width:calc(100% - 20px);padding-top:14px}
  .hero{margin-bottom:12px}
  .hero h1{font-size:36px}
  .board{display:grid;grid-template-columns:repeat(5,220px);min-width:1140px;overflow:visible}
  .lane{display:block;min-height:0;padding:8px}
  .card{padding:10px}
  .card h3{font-size:14px}
}

}

@scope (.brand-product-recipe) {
:scope{--accent:var(--frame-accent);--ink:var(--frame-ink);--muted:var(--frame-muted);--line:var(--frame-line);--surface:var(--frame-surface);--paper:var(--frame-bg);--field-line:var(--frame-field-line);--font-body:var(--brand-body-font);--font-heading:var(--brand-heading-font);font-family:var(--font-body),system-ui,-apple-system,"Segoe UI",sans-serif}*{box-sizing:border-box}body{font-size:16px;line-height:1.5}a{color:inherit}main{max-width:1040px;margin:auto;padding:var(--brand-space-5) var(--brand-space-4) var(--brand-space-6)}.eyebrow{letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-size:12px}.hero{padding:var(--brand-space-4) 0 var(--brand-space-5)}.hero h1{font-size:clamp(29px,5vw,43px);line-height:1.12;margin:0}.hero p:last-child{color:var(--muted)}.controls{display:grid;grid-template-columns:1fr 1fr;gap:var(--brand-space-2) var(--brand-space-4);background:var(--surface);border:1px solid var(--line);padding:var(--brand-space-4);border-radius:14px}.controls label{font-weight:600;font-size:14px}.controls label:nth-of-type(2){grid-row:1;grid-column:2}.controls input,.controls select{width:100%;font:inherit;padding:var(--brand-space-3);border:1px solid var(--field-line);border-radius:9px;background:var(--paper);color:var(--ink);min-width:0}.controls p{grid-column:1/-1;margin:var(--brand-space-1) 0 0;font-size:13px;color:var(--muted)}.layout{display:grid;grid-template-columns:minmax(190px,300px) minmax(0,1fr);gap:var(--brand-space-5);margin-top:var(--brand-space-5)}aside{min-width:0}h2{font-size:24px;margin:0 0 var(--brand-space-4)}aside ul{list-style:none;padding:0;margin:0;max-height:65vh;overflow:auto}aside li+li{margin-top:var(--brand-space-1)}aside button{width:100%;text-align:left;background:var(--paper);border:1px solid var(--line);border-radius:9px;cursor:pointer;padding:var(--brand-space-3) var(--brand-space-3);color:var(--ink);font:inherit}aside button:hover,aside button.selected{border-color:var(--accent);background:var(--surface)}article{min-height:240px;min-width:0}article h3{margin:var(--brand-space-5) 0 var(--brand-space-2)}article p{overflow-wrap:anywhere}article ol li{padding-bottom:var(--brand-space-3)}.ingredients{list-style:none;padding:0}.ingredients li{display:flex;justify-content:space-between;align-items:start;gap:var(--brand-space-4);padding:var(--brand-space-2) 0;border-bottom:1px solid var(--line)}.ingredients li span{text-align:right;white-space:normal}.meta{color:var(--muted);font-size:14px}.notice,.planned{border:1px solid var(--line);border-radius:12px;padding:var(--brand-space-4);background:var(--surface)}.planned{margin-top:var(--brand-space-6)}.planned button{border:1px solid var(--line);padding:var(--brand-space-3);border-radius:8px}.error{color:var(--frame-danger)!important}@media(max-width:670px){.controls,.layout{display:block}.controls>*{display:block;width:100%;margin-bottom:var(--brand-space-2)}.controls label:nth-of-type(2){margin-top:var(--brand-space-4)}.layout aside ul{max-height:none;overflow:visible}.layout article{padding-top:var(--brand-space-5)}.ingredients li{gap:var(--brand-space-2)}}
/* Colours above are Brand app frame tokens (light and dark). */
h1,h2,h3{font-family:var(--font-heading),system-ui,sans-serif}.ingredients li:has(>span:only-child){justify-content:flex-start}.ingredients li>span:only-child{text-align:left}

.recipe-entry{margin-top:var(--brand-space-6);padding:var(--brand-space-5);border:1px solid var(--line);border-radius:18px;background:var(--surface)}.recipe-entry>p{color:var(--muted)}.entry-tabs{display:flex;gap:var(--brand-space-2);margin:var(--brand-space-4) 0}.entry-tabs button,.recipe-entry form button{min-height:44px;padding:var(--brand-space-2) var(--brand-space-4);border-radius:12px;border:1px solid var(--accent);background:var(--paper);color:var(--ink);font:inherit;cursor:pointer}.entry-tabs button[aria-pressed=true],.recipe-entry form button{background:var(--accent);color:var(--accent-foreground)}.recipe-entry form{display:grid;gap:var(--brand-space-2)}.recipe-entry label{font-weight:600}.recipe-entry input,.recipe-entry textarea{width:100%;font:inherit;padding:var(--brand-space-3);border:1px solid var(--field-line);border-radius:10px;background:var(--paper);color:var(--ink)}.recipe-entry [hidden]{display:none!important}.draft-review{white-space:pre-wrap;overflow-wrap:anywhere;padding:var(--brand-space-3);border-radius:12px;background:var(--paper);border:1px solid var(--line);max-height:400px;overflow:auto}#entry-preview{margin-top:var(--brand-space-4)}

[hidden]{display:none!important}
.main-tabs{display:flex;gap:var(--brand-space-2);margin-top:var(--brand-space-5)}.main-tabs button{flex:1;min-height:52px;padding:var(--brand-space-3) var(--brand-space-3);border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);font:inherit;font-weight:650;cursor:pointer}.main-tabs button[aria-pressed="true"]{background:var(--accent);color:var(--accent-foreground);border-color:var(--accent)}
.step-label{font-size:14px;font-weight:750;color:var(--ink);margin:var(--brand-space-4) 0 var(--brand-space-2)}.photo-entry{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:var(--brand-space-4)}.photo-entry h3{margin:0 0 var(--brand-space-3)}.photo-entry label{display:block;margin-top:var(--brand-space-2)}.photo-entry input[type=file]{padding:var(--brand-space-3);border:1px dashed var(--line);border-radius:10px}.photo-entry button{background:var(--accent);color:var(--accent-foreground);border:0;padding:var(--brand-space-3) var(--brand-space-4);min-height:48px;border-radius:12px;font:inherit}.photo-entry button:disabled{opacity:.6}.entry-tabs button{flex:1}.recipe-entry{background:var(--paper);border:0;padding:0}.recipe-entry form{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:var(--brand-space-4)}.recipe-entry textarea{min-height:130px}.hero{padding-top:var(--brand-space-2)}#add-panel{max-width:760px;margin:0 auto}#entry-preview{margin-bottom:var(--brand-space-5)}
@media(max-width:670px){main{padding:var(--brand-space-4) var(--brand-space-4) var(--brand-space-6)}.hero h1{font-size:32px}.layout article{padding-top:var(--brand-space-4)}.main-tabs{position:sticky;top:0;background:var(--paper);padding:var(--brand-space-2) 0;z-index:2}.controls{padding:var(--brand-space-3)}.photo-entry{padding:var(--brand-space-3)}.recipe-entry form{padding:var(--brand-space-3)}}

/* Brand contract: colours come from the Brand app frame tokens. */
:scope{--accent-foreground:var(--frame-accent-ink);--focus-ring:var(--accent-dark,var(--accent))}
.main-tabs button[aria-pressed="true"],.entry-tabs button[aria-pressed="true"],.recipe-entry form button,.photo-entry button{color:var(--accent-foreground)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px}
button{touch-action:manipulation}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}

/* Reuses Decide's measured-height 800ms ease-in-out dismissal. */
#recipe-list-panel{transition:max-height 800ms ease-in-out,opacity 650ms ease,padding 800ms ease,margin 800ms ease,border-width 800ms ease}
#recipe-layout.recipe-selected{grid-template-columns:minmax(0,1fr)}
#recipe-layout.recipe-selected #recipe-list-panel{max-height:0!important;opacity:0;pointer-events:none;padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-width:0}
#recipe-layout.recipe-selected #detail{width:100%}
@media(prefers-reduced-motion:reduce){#recipe-list-panel{transition:none}}

.nutrition-list{display:grid;grid-template-columns:1fr auto;gap:0;margin:var(--brand-space-2) 0 var(--brand-space-5);max-width:440px}.nutrition-list dt,.nutrition-list dd{margin:0;padding:var(--brand-space-2) 0;border-bottom:1px solid var(--line)}.nutrition-list dd{text-align:right;font-weight:650}

/* Recipe workflow: Brand tokens remain authoritative; responsive controls use them. */
.photo-entry{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--brand-space-3);align-items:start}
.photo-entry h3,.photo-entry #photo-status,.photo-entry #recognise-photo,.photo-entry #photo-preview{grid-column:1/-1}
.visually-hidden-file{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
.photo-action{display:flex!important;align-items:center;justify-content:center;min-height:52px;padding:var(--brand-space-3) var(--brand-space-3);margin:0!important;border-radius:12px;border:1px solid var(--accent);background:var(--accent);color:var(--accent-foreground);font-weight:650;cursor:pointer;text-align:center}
.photo-action.secondary{background:var(--surface);color:var(--ink);border-color:var(--line)}
.visually-hidden-file:focus-visible+.photo-action{outline:3px solid var(--focus-ring);outline-offset:3px}
#photo-status{margin:0;overflow-wrap:anywhere}
#photo-preview{width:100%;height:auto;max-height:380px;object-fit:contain}
.recipe-entry form{gap:var(--brand-space-3)}
.recipe-entry textarea{line-height:1.6;resize:vertical}
.recipe-entry input,.recipe-entry textarea{max-width:100%;min-width:0}
#entry-preview{scroll-margin-top:var(--brand-space-5)}
@media(max-width:480px){.photo-entry{gap:var(--brand-space-2)}.photo-action{padding:var(--brand-space-3) var(--brand-space-2);font-size:15px}.recipe-entry form{padding:var(--brand-space-4)}.main-tabs{gap:var(--brand-space-2)}}

.edit-draft{min-height:48px;padding:var(--brand-space-2) var(--brand-space-4);border:1px solid var(--accent);border-radius:12px;background:var(--surface);color:var(--ink);font:inherit;font-weight:650;cursor:pointer}

/* Brand rhythm: maintain comfortable reading and controls clear of mobile browser chrome. */
.recipe-entry{padding:var(--brand-space-5);margin-top:var(--brand-space-5)}
.recipe-entry form{display:grid;gap:var(--brand-space-2);padding:var(--brand-space-5);min-width:0}
.recipe-entry form label{display:block;margin:var(--brand-space-3) 0 0;line-height:1.35}
.recipe-entry form textarea{display:block;min-height:160px;max-width:100%;margin:0;line-height:1.6}
.recipe-entry form input{margin:0;max-width:100%}
.recipe-entry form button[type="submit"]{margin-top:var(--brand-space-4);min-height:54px;width:100%}
.recipe-entry #entry-preview{padding-block:var(--brand-space-4);scroll-margin-top:var(--brand-space-5)}
.recipe-entry .photo-entry{margin-bottom:var(--brand-space-5)}
#add-panel{padding-bottom:max(var(--brand-space-6),env(safe-area-inset-bottom))}
@media(max-width:670px){main{padding:var(--brand-space-4) var(--brand-space-4) var(--brand-space-6)}.recipe-entry{padding:var(--brand-space-4);margin-top:var(--brand-space-4)}.recipe-entry form{padding:var(--brand-space-4)}.recipe-entry .photo-entry{gap:var(--brand-space-3)}}

/* Progressive entry: reveal only the chosen path and its next step. */
#add-panel [hidden]{display:none!important}
.entry-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--brand-space-3);margin:var(--brand-space-4) 0 var(--brand-space-4)}
.entry-paths button{min-height:54px;padding:var(--brand-space-3) var(--brand-space-3);border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font:inherit;font-weight:650;cursor:pointer}
.entry-paths button[aria-pressed="true"]{background:var(--accent);color:var(--accent-foreground);border-color:var(--accent)}
#photo-flow,#text-flow{margin:0 0 var(--brand-space-4)}
#recipe-entry-form{scroll-margin-top:var(--brand-space-5)}
@media(max-width:390px){.entry-paths{gap:var(--brand-space-2)}.entry-paths button{font-size:15px;padding:var(--brand-space-2) var(--brand-space-2)}}


/* Recipe controls share one height; Save is the primary action (owner feedback 2026-12-01). */
.edit-draft{min-height:48px}
.recipe-save{background:var(--accent);border-color:var(--accent);color:var(--brand-paper)}

/* Browse, tags, edit in place (work item org.orangepeelit.delivery-work-item.recipe-browse-tags-credits-20261201.v1).
   Every button on the recipe page and list uses one style at Brand's control height; one chip system serves the tag filters, a recipe's tags and the tag editor. */
.recipe-button{display:inline-flex;align-items:center;justify-content:center;gap:var(--brand-space-2);min-height:var(--brand-control-height);margin:0;padding:0 var(--brand-space-4);border:1px solid var(--line);border-radius:.75rem;background:var(--surface);color:var(--ink);font:inherit;font-weight:650;line-height:1.2;cursor:pointer}
.recipe-button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--paper)}
.recipe-button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-foreground)}
.recipe-button:disabled{opacity:.6;cursor:progress}
#detail>.recipe-button:first-child{margin-bottom:var(--brand-space-4)}
.recipe-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--brand-space-2);margin:var(--brand-space-4) 0}
.measurement-switch,.list-order{display:inline-flex;flex-wrap:wrap;gap:var(--brand-space-2)}
#detail select{min-height:var(--brand-control-height);font:inherit;padding:0 var(--brand-space-3);border:1px solid var(--field-line);border-radius:.6rem;background:var(--paper);color:var(--ink)}
.recipe-chip{display:inline-flex;align-items:center;gap:var(--brand-space-2);min-height:var(--brand-control-height);margin:0;padding:0 var(--brand-space-4);border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font:inherit;font-size:.95rem;line-height:1.2;white-space:nowrap}
button.recipe-chip{cursor:pointer}
.recipe-chip[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--paper)}
.chip-count{font-size:.8em;font-weight:650;opacity:.8}
.chip-remove{font-size:1.1em;line-height:1}
.recipe-tags{display:flex;flex-wrap:wrap;gap:var(--brand-space-2);list-style:none;margin:var(--brand-space-2) 0;padding:0}
.recipe-new{display:inline-flex;align-items:center;margin-left:var(--brand-space-2);padding:0 var(--brand-space-2);border-radius:999px;background:var(--accent);color:var(--accent-foreground);font-size:.75rem;font-weight:700;line-height:1.6;vertical-align:middle}
.browse-tools{display:grid;gap:var(--brand-space-3);margin-top:var(--brand-space-4);min-width:0}
.tag-filter-panel{min-width:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:0 var(--brand-space-4)}
.tag-filter-panel summary{display:flex;align-items:center;gap:var(--brand-space-1);min-height:var(--brand-control-height);font-weight:650;cursor:pointer}
.servings-control{display:flex;align-items:center;gap:var(--brand-space-3)}
.tag-filter-panel summary::-webkit-details-marker{display:none}
.tag-filter-panel summary::after{content:"+";margin-left:auto;font-size:1.25rem;line-height:1}
.tag-filter-panel[open] summary::after{content:"−"}
.tag-filter-panel[open]{padding-bottom:var(--brand-space-4)}
.tag-filters{display:grid;gap:var(--brand-space-3);min-width:0;margin-bottom:var(--brand-space-3)}
.chip-group{display:grid;gap:var(--brand-space-1);min-width:0}
.chip-group-label{font-size:14px;font-weight:600;color:var(--muted)}
.chip-row{display:flex;flex-wrap:wrap;gap:var(--brand-space-2);min-width:0}
.recipe-edit{display:grid;gap:var(--brand-space-2);min-width:0}
.recipe-edit label,.recipe-edit legend{display:block;font-weight:600;margin-top:var(--brand-space-3);line-height:1.35}
.recipe-edit input,.recipe-edit textarea,.recipe-edit select{width:100%;max-width:100%;min-width:0;min-height:var(--brand-control-height);font:inherit;padding:var(--brand-space-2) var(--brand-space-3);border:1px solid var(--field-line);border-radius:.6rem;background:var(--paper);color:var(--ink)}
.recipe-edit textarea{min-height:160px;line-height:1.6;resize:vertical}
.tag-editor{min-width:0;margin:var(--brand-space-2) 0 0;padding:var(--brand-space-3) var(--brand-space-4);border:1px solid var(--line);border-radius:14px}
.tag-add{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) auto;gap:var(--brand-space-2);align-items:end}
#edit-title:focus{outline:none}
@media(max-width:670px){.chip-row{flex-wrap:nowrap;overflow-x:auto;padding-bottom:var(--brand-space-1);scrollbar-width:thin}.tag-add{grid-template-columns:minmax(0,1fr)}.recipe-actions .recipe-button{flex:1 1 auto}}

/* Brand and UX tidy-up (work item org.orangepeelit.delivery-work-item.brand-ux-tidy-recipe-decide-20261201.v1).
   Each label sits above its field with Brand spacing and never overlaps it; the draft's Edit and Save have Brand spacing above them.
   On a phone the recipe list scrolls with the page (above), not in a box of its own. */
#paste-fields,#manual-fields,.tag-add>div{display:grid;gap:var(--brand-space-2);min-width:0}
.tag-add label{margin-top:0}
.draft-actions{display:flex;flex-wrap:wrap;gap:var(--brand-space-2);margin-top:var(--brand-space-4)}

/* Cooking mode and timers (work item org.orangepeelit.delivery-work-item.recipe-cooking-mode-and-timers-20261201.v1).
   The 'Keep screen on' switch is a recipe-button with a switch track; ticks and timer buttons keep Brand's control height; the timer strip stays in view at the foot of the screen while the page scrolls. */
.cooking-mode{display:flex;flex-wrap:wrap;align-items:center;gap:var(--brand-space-2) var(--brand-space-3);margin:0 0 var(--brand-space-4)}
.cooking-mode p{flex:1 1 16rem;margin:0}
.switch-track{position:relative;flex:none;width:2.5rem;height:1.5rem;border:1px solid var(--field-line);border-radius:999px;background:var(--paper);transition:background-color 150ms ease}
.switch-track::after{content:"";position:absolute;top:.1875rem;left:.1875rem;width:1rem;height:1rem;border-radius:50%;background:var(--muted);transition:transform 150ms ease}
.cooking-switch[aria-checked="true"]{border-color:var(--accent)}
.cooking-switch[aria-checked="true"] .switch-track{background:var(--accent);border-color:var(--accent)}
.cooking-switch[aria-checked="true"] .switch-track::after{transform:translateX(1rem);background:var(--accent-foreground)}
.cooking-tick{display:flex;align-items:flex-start;gap:var(--brand-space-3);width:100%;min-height:var(--brand-control-height);margin:0;padding:var(--brand-space-2) 0;border:0;background:transparent;color:inherit;font:inherit;line-height:1.5;text-align:left;cursor:pointer}
.cooking-tick::before{content:"";flex:none;display:grid;place-items:center;width:1.25rem;height:1.25rem;border:2px solid var(--field-line);border-radius:.35rem;transform:translateY(.125rem);font-size:.9rem;font-weight:800;line-height:1}
.cooking-tick[aria-pressed="true"]::before{content:"✓";background:var(--accent);border-color:var(--accent);color:var(--accent-foreground)}
.cooking-tick[aria-pressed="true"]>*{text-decoration:line-through;color:var(--muted)}
.ingredients li:has(>.cooking-tick){display:block;padding:0}
.ingredients .cooking-tick strong{flex:1 1 auto}
.ingredients .cooking-tick span{margin-left:auto;text-align:right}
.ingredients .cooking-tick>span:only-child{margin-left:0;text-align:left}
.cooking-steps .cooking-tick{padding-top:0}
.step-timers{display:flex;flex-wrap:wrap;gap:var(--brand-space-2);margin:0 0 var(--brand-space-2)}
.timer-setter{display:flex;flex-wrap:wrap;align-items:center;gap:var(--brand-space-2);width:100%;padding:var(--brand-space-2) var(--brand-space-3);border:1px solid var(--line);border-radius:.75rem;background:var(--surface)}
.timer-set-value{min-width:5rem;font-weight:700;font-variant-numeric:tabular-nums}
.timer-strip{position:sticky;bottom:0;z-index:3;max-height:50vh;overflow-y:auto;margin:var(--brand-space-5) 0 0;padding:var(--brand-space-2) 0 max(var(--brand-space-2),env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--paper);box-shadow:0 -0.5rem 1.5rem color-mix(in srgb,var(--ink) 12%,transparent)}
.timer-alert{margin:0 0 var(--brand-space-2);padding:var(--brand-space-2) var(--brand-space-3);border-radius:.75rem;background:var(--accent);color:var(--accent-foreground);font-weight:700}
.timer-alert:empty{display:none}
.timer-cards{display:flex;gap:var(--brand-space-2);overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:var(--brand-space-1)}
.timer-card{flex:0 0 min(88%,22rem);scroll-snap-align:start;display:grid;align-content:start;gap:var(--brand-space-1);min-width:0;padding:var(--brand-space-2) var(--brand-space-3);border:1px solid var(--line);border-radius:.75rem;background:var(--surface)}
.timer-card.done{border:2px solid var(--accent)}
.timer-label{margin:0;font-weight:650;line-height:1.3;overflow-wrap:anywhere}
.timer-recipe{margin:0;color:var(--muted);font-size:.8rem}
.timer-time{margin:0;font:700 1.4rem/1.2 var(--brand-heading-font);font-variant-numeric:tabular-nums}
.timer-card.done .timer-time{font-size:1.1rem}
.timer-controls{display:flex;gap:var(--brand-space-1)}
.timer-controls .recipe-button{flex:1 1 0;min-width:0;padding:0 var(--brand-space-2);white-space:nowrap}
@media(min-width:671px){.timer-cards{flex-wrap:wrap;overflow-x:visible}.timer-card{flex:0 1 20rem}}
@media(prefers-reduced-motion:reduce){.switch-track,.switch-track::after{transition:none}}

}

@scope (.brand-product-company) {
/* Company content only. Header, footer, Credits page, secure-session lock, colours (light and dark) and transitions come from Brand's app frame. */
:scope{--brand-surface:var(--frame-surface);--brand-border:var(--frame-line);--brand-muted:var(--frame-muted)}
*{box-sizing:border-box}button,input{font:inherit}a{color:inherit}
/* Company layout (owner view): label beside every value, actions on the same line, cards per contact, policy and account. */
.co-main{max-width:720px;margin:0 auto;padding:var(--brand-space-4,16px) 16px 64px}
.co-main h2{font-family:var(--brand-heading-font);font-size:1.15rem;margin:28px 0 10px}
.co-card{border:1px solid var(--brand-border);border-radius:var(--brand-card-radius,14px);background:var(--brand-surface);overflow:hidden;margin:0 0 14px}
.co-card h3{font-family:var(--brand-heading-font);font-size:1rem;margin:0;padding:12px 16px;border-bottom:1px solid var(--brand-border)}
.co-row{display:flex;align-items:center;gap:12px;padding:10px 16px;border-bottom:1px solid var(--brand-border);min-height:56px}
.co-row:last-child{border-bottom:0}
.co-text{flex:1;min-width:0}
.co-label{margin:0;font-size:.8rem;color:var(--brand-muted)}
.co-value{margin:2px 0 0;font-size:1rem;overflow-wrap:anywhere}
.co-value.co-missing{color:var(--brand-muted);font-style:italic}
.co-warn{margin:2px 0 0;font-size:.8rem;color:var(--frame-ink);font-weight:600}
.co-actions{display:flex;gap:6px;flex:none}
.co-actions button{min-height:36px;min-width:56px;padding:4px 10px;border-radius:8px;border:1px solid var(--brand-border);background:transparent;color:inherit;font-size:.85rem;cursor:pointer}
.co-attention{border:1px solid var(--frame-accent);border-radius:var(--brand-card-radius,14px);padding:12px 16px;margin:16px 0}
.co-attention h2{margin:0 0 6px;font-size:1rem}.co-attention p{margin:4px 0}
.co-search{display:block;margin:20px 0 0}
.co-search span{display:block;font-size:.8rem;color:var(--brand-muted);margin-bottom:4px}
.co-search input{width:100%;min-height:44px;padding:8px 12px;border-radius:10px;border:1px solid var(--frame-field-line);background:var(--frame-bg);color:var(--frame-ink)}
.co-tabs{display:flex;gap:8px;overflow-x:auto;padding:14px 0 4px}
.co-tabs button{flex:none;min-height:40px;padding:6px 14px;border-radius:20px;border:1px solid var(--brand-border);background:transparent;color:inherit;cursor:pointer}
.co-tabs button[aria-pressed="true"]{border-color:var(--frame-accent);box-shadow:inset 0 -3px 0 var(--frame-accent);font-weight:600}
.co-status{margin:16px 0}
}

@scope (.brand-product-pulse) {
/* Pulse content only. Header, footer, Credits page, secure-session lock, colours (light and dark) and transitions come from Brand's app frame. */
*{box-sizing:border-box}button{font:inherit}a{color:inherit}
.pulse-main{width:100%;max-width:880px;margin:0 auto;padding:var(--brand-space-4,16px) 16px 64px}
.pulse-main h3{font-family:var(--brand-heading-font);font-size:1.1rem;margin:28px 0 6px}
.pulse-hidden-title{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.pulse-tabs{display:flex;gap:8px;overflow-x:auto;padding:14px 0 4px}
.pulse-tabs button{flex:none;min-height:44px;padding:6px 18px;border-radius:22px;border:1px solid var(--frame-line);background:transparent;color:inherit;cursor:pointer}
.pulse-tabs button[aria-pressed="true"]{border-color:var(--frame-accent);box-shadow:inset 0 -3px 0 var(--frame-accent);font-weight:600}
.pulse-status{margin:12px 0;color:var(--frame-muted);min-height:1.5em}
.pulse-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:8px 0 0}
.pulse-fact{border:1px solid var(--frame-line);border-radius:var(--brand-card-radius,14px);background:var(--frame-surface);padding:12px 16px}
.pulse-fact p,.pulse-text p{margin:0;overflow-wrap:anywhere}
.pulse-label{font-size:.85rem;color:var(--frame-muted)}
.pulse-value{font-size:1rem;font-weight:600;margin-top:2px}
.pulse-main>section>.pulse-label{margin:0 0 8px}
.pulse-list{list-style:none;margin:0;padding:0;border:1px solid var(--frame-line);border-radius:var(--brand-card-radius,14px);background:var(--frame-surface);overflow:hidden}
.pulse-list:empty{display:none}
.pulse-row{display:flex;align-items:flex-start;gap:12px;padding:10px 16px;border-bottom:1px solid var(--frame-line);min-height:56px}
.pulse-row:last-child{border-bottom:0}
.pulse-text{flex:1;min-width:0}
.pulse-state{flex:none;padding:2px 10px;border-radius:999px;border:1px solid var(--frame-line);font-size:.85rem;font-weight:600;white-space:nowrap}
.pulse-state-up,.pulse-state-succeeded,.pulse-state-verified{border-color:var(--frame-accent)}
.pulse-state-down,.pulse-state-failed,.pulse-state-blocked{border-color:var(--frame-danger);color:var(--frame-danger)}
.pulse-cost{flex:none;font-size:.85rem;color:var(--frame-muted);text-align:right;max-width:9rem}
.pulse-elsewhere{margin-top:32px;font-size:.9rem;color:var(--frame-muted)}
@media(max-width:560px){.pulse-row{flex-wrap:wrap}.pulse-cost{flex-basis:100%;text-align:left;max-width:none}}
}

@scope (.brand-product-prompt) {
/* Prompt content only. Header, footer, Credits page, secure-session lock, colours (light and dark) and transitions come from Brand's app frame. */
*{box-sizing:border-box}
.prompt-main{width:100%;max-width:960px;margin:0 auto;padding:var(--brand-space-5) max(var(--brand-space-4),env(safe-area-inset-right)) var(--brand-space-6) max(var(--brand-space-4),env(safe-area-inset-left));line-height:1.5}
h1{margin:0 0 var(--brand-space-2);font-size:clamp(1.75rem,5vw,2.5rem)}
h2{margin:var(--brand-space-6) 0 var(--brand-space-3);font-size:1.35rem}
h3{margin:var(--brand-space-5) 0 var(--brand-space-2);font-size:1.05rem}
p{max-width:75ch}
#status:not(:empty){padding:var(--brand-space-3);border-left:4px solid var(--frame-accent);background:var(--frame-surface)}
form{display:grid;gap:var(--brand-space-2);margin:var(--brand-space-5) 0;padding:var(--brand-space-4);border:1px solid var(--frame-line);border-radius:var(--brand-card-radius);background:var(--frame-surface)}
label{margin-top:var(--brand-space-3);font-weight:600}
.prompt-hint{color:var(--frame-muted);font-weight:400;font-size:.9rem}
textarea,select{width:100%;min-height:var(--brand-control-height);padding:var(--brand-space-3);font:inherit;color:inherit;background:var(--frame-bg);border:1px solid var(--frame-field-line);border-radius:.6rem}
textarea{min-height:10rem;resize:vertical}
textarea.prompt-short{min-height:5rem}
button{justify-self:start;min-height:var(--brand-control-height);margin-top:var(--brand-space-3);padding:var(--brand-space-2) var(--brand-space-5);border:1px solid var(--frame-accent);border-radius:.75rem;background:var(--frame-accent);color:var(--frame-accent-ink);font:inherit;font-weight:700;cursor:pointer}
button:disabled{opacity:.6;cursor:default}
pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;padding:var(--brand-space-4);border:1px solid var(--frame-line);border-radius:var(--brand-card-radius);background:var(--frame-surface);font-size:.95rem;line-height:1.55}
ul,ol{padding-left:1.25rem}li+li{margin-top:var(--brand-space-1)}
.prompt-verdict{padding:var(--brand-space-3) var(--brand-space-4);border:1px solid var(--frame-accent);border-radius:var(--brand-card-radius);font-weight:600}
.prompt-table{max-width:100%;overflow-x:auto;border:1px solid var(--frame-line);border-radius:var(--brand-card-radius)}
table{width:100%;border-collapse:collapse;font-size:.92rem}
th,td{padding:var(--brand-space-2) var(--brand-space-3);border-bottom:1px solid var(--frame-line);text-align:left;vertical-align:top;overflow-wrap:break-word;hyphens:auto}
thead th{background:var(--frame-surface)}
tbody tr:last-child>*{border-bottom:0;font-weight:700}
.prompt-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--brand-space-4);margin-top:var(--brand-space-4)}
@media(max-width:640px){button{width:100%}.prompt-answers{grid-template-columns:minmax(0,1fr)}table{font-size:.85rem}th,td{padding:var(--brand-space-2)}}
}

@scope (.brand-product-tokencount) {
body{font:16px system-ui,sans-serif;margin:0;background:var(--paper,#f5f6f8);color:var(--ink,#142535)}main{max-width:900px;margin:40px auto;padding:20px}section{background:white;border:1px solid #ddd;border-radius:16px;padding:22px;margin:16px 0}form{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}label{display:grid;gap:6px}input,select,button{font:inherit;padding:10px;border:1px solid #b9bec4;border-radius:9px}button{background:var(--accent,#233f56);color:white;cursor:pointer}p{line-height:1.5}.wide{grid-column:1/-1}#result{white-space:pre-wrap}small{color:#555}
}

@scope (.brand-product-kanban-graph) {
:scope{--ink:#142535;--paper:#f5f6f8;--surface:#fff;--line:#d5dce2;--orange:#f47721}body{font:16px system-ui,sans-serif;margin:0;color:var(--ink);background:var(--paper)}main{max-width:1350px;margin:auto;padding:24px}form{display:flex;gap:10px;flex-wrap:wrap;align-items:end}label{display:grid;gap:5px}input,select,button{font:inherit;border:1px solid var(--line);border-radius:10px;padding:10px}button{cursor:pointer}svg{width:100%;height:62vh;background:var(--surface);border:1px solid var(--line);border-radius:16px;touch-action:none}.layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(240px,1fr);gap:16px;margin-top:18px}aside{background:var(--surface);border-radius:16px;padding:18px;overflow-wrap:anywhere}#notice{min-height:1.5em}a{color:inherit}@media(max-width:750px){.layout{grid-template-columns:1fr}}
}

/* Legacy frontend/public layouts consolidated into Brand; shared product scope */

@scope (:is(.brand-legacy-adversarial-review,.brand-legacy-company,.brand-legacy-index,.brand-legacy-ingest,.brand-legacy-opus,.brand-legacy-product-delivery,.brand-legacy-product-workbench,.brand-legacy-scout)) {
:scope{--bg:#101010;--panel:#181818;--panel2:#202020;--border:#333;--text:#f4f1eb;--muted:#aaa49a;--accent:#f28c28;--ok:#92c99b;--warn:#e3b76a;--bad:#e38282}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.45}
button,input{font:inherit}.topbar{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:14px max(16px,env(safe-area-inset-left));background:rgba(16,16,16,.96);border-bottom:1px solid var(--border);backdrop-filter:blur(12px)}
.topbar h1{font-size:1.05rem;margin:1px 0}.eyebrow{margin:0;color:var(--accent);font-size:.73rem;text-transform:uppercase;letter-spacing:.1em;font-weight:700}.back{color:var(--muted);text-decoration:none}.private-badge{border:1px solid var(--border);border-radius:999px;padding:6px 9px;font-size:.75rem;color:var(--muted)}
main{max-width:980px;margin:0 auto;padding:20px 16px 80px}.hero{padding:12px 0 18px}.hero h2{font-size:1.9rem;line-height:1.08;margin:8px 0}.hero p{color:var(--muted);max-width:650px}
.search input{width:100%;margin-top:14px;padding:14px 16px;border-radius:14px;border:1px solid var(--border);background:var(--panel);color:var(--text);font-size:1rem}
.domain-nav{display:flex;gap:8px;overflow-x:auto;padding:4px 0 16px;scrollbar-width:none}.domain-nav button{white-space:nowrap;border:1px solid var(--border);background:var(--panel);color:var(--text);padding:9px 12px;border-radius:999px}
.quick{margin:4px 0 22px}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}.quick button{border:1px solid var(--border);background:var(--panel);color:var(--text);border-radius:14px;padding:14px;text-align:left}
.content{display:grid;gap:16px}.domain-card{border:1px solid var(--border);background:var(--panel);border-radius:18px;overflow:hidden}.domain-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:18px;border-bottom:1px solid var(--border)}.domain-heading h2{margin:2px 0 0;font-size:1.2rem}.count{color:var(--muted);font-size:.8rem}
.item{padding:17px 18px;border-bottom:1px solid var(--border)}.item:last-child{border-bottom:0}.item-main{display:flex;gap:12px;justify-content:space-between;align-items:flex-start}.item-label{margin:0;color:var(--muted);font-size:.8rem}.item-value{margin:4px 0 0;font-size:1.06rem;word-break:break-word}.copy{border:1px solid var(--border);background:var(--panel2);color:var(--text);border-radius:9px;padding:7px 10px}
.item-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.item-meta span{font-size:.7rem;border-radius:999px;padding:4px 7px;border:1px solid var(--border);color:var(--muted)}.status.current{color:var(--ok)}.status.review,.status.legacy{color:var(--warn)}
.qualification{margin-top:10px;padding:10px 12px;border-left:3px solid var(--warn);background:var(--panel2);font-size:.85rem}.evidence{margin-top:10px;color:var(--muted);font-size:.85rem}.evidence-body{padding:8px 0 0}.evidence-body p{margin:5px 0}
.status-panel{border:1px solid #66512d;background:#241f16;color:#e5c183;border-radius:14px;padding:12px 14px;margin-bottom:16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:720px){main{padding-top:32px}.quick-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.hero h2{font-size:2.6rem}}

}

@scope (:is(.brand-legacy-adversarial-review,.brand-legacy-company,.brand-legacy-index,.brand-legacy-ingest,.brand-legacy-opus,.brand-legacy-product-delivery,.brand-legacy-product-workbench,.brand-legacy-scout)) {
:scope {
  --navy-950: #071827;
  --navy-900: #0b1f31;
  --navy-800: #15334a;
  --navy-700: #28506c;
  --orange-600: #e9650d;
  --orange-500: #ff7a18;
  --orange-100: #fff0e4;
  --green-600: #247a52;
  --red-600: #a93636;
  --ink: #17212b;
  --muted: #667583;
  --line: #dce3e8;
  --panel: #ffffff;
  --canvas: #f4f6f7;
  --shadow: 0 18px 50px rgba(7, 24, 39, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--canvas); }

body { margin: 0; min-height: 100vh; background: var(--canvas); }

button, input, select, textarea { font: inherit; }

button, select, label[for], .drop-zone { cursor: pointer; }

.shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }

.site-header { background: var(--navy-950); border-bottom: 3px solid var(--orange-500); }

.header-inner { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }

.brand { display: block; width: min(540px, 58vw); }
.brand img { display: block; width: 100%; height: auto; }

.product-label { color: #fff; text-align: right; border-left: 1px solid rgba(255,255,255,.18); padding-left: 28px; }
.product-label strong { display: block; margin-top: 4px; font-size: 1.12rem; font-weight: 650; letter-spacing: .02em; }

.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 750; color: #aebdca; }
.eyebrow.orange { color: var(--orange-600); }

.main-content { padding: 54px 0 72px; }

.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
h1 { margin: 8px 0 12px; color: var(--navy-950); font-size: clamp(2.2rem, 5vw, 4rem); line-height: .98; letter-spacing: -.045em; }
.intro-copy { margin: 0; max-width: 700px; color: var(--muted); font-size: 1.12rem; line-height: 1.6; }

.engine-status { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; background: #fff; color: var(--muted); font-size: .88rem; font-weight: 650; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa6af; box-shadow: 0 0 0 4px rgba(154,166,175,.14); }
.engine-status.ready { color: var(--green-600); border-color: #bddfce; }
.engine-status.ready .status-dot { background: var(--green-600); box-shadow: 0 0 0 4px rgba(36,122,82,.12); }
.engine-status.warning { color: #9b5f14; border-color: #edd2a7; }
.engine-status.warning .status-dot { background: #d48b2a; box-shadow: 0 0 0 4px rgba(212,139,42,.12); }

.catalogue-card, .workspace { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.catalogue-card { padding: 28px; }

.section-heading > div { display: flex; gap: 16px; align-items: flex-start; }
.section-number { margin: 0; min-width: 38px; color: var(--orange-600); font-weight: 800; font-size: .82rem; letter-spacing: .08em; }
.section-heading h2, .workspace-heading h2 { margin: 0; color: var(--navy-950); font-size: 1.55rem; letter-spacing: -.02em; }
.section-heading p:not(.section-number), .workspace-heading p, .panel-heading p { margin: 5px 0 0; color: var(--muted); line-height: 1.5; }

.app-catalogue { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 22px; }
.app-option { position: relative; display: block; }
.app-option input { position: absolute; opacity: 0; pointer-events: none; }
.app-option-body { display: block; height: 100%; padding: 20px; border: 2px solid var(--line); border-radius: var(--radius-md); background: #fff; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.app-option-body:hover { transform: translateY(-1px); border-color: #b9c7d1; }
.app-option input:focus-visible + .app-option-body { outline: 3px solid rgba(255,122,24,.24); outline-offset: 2px; }
.app-option input:checked + .app-option-body { border-color: var(--orange-500); box-shadow: 0 0 0 4px var(--orange-100); }
.app-option-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.radio-mark { width: 19px; height: 19px; border: 2px solid #96a5b1; border-radius: 50%; display: grid; place-items: center; }
.radio-mark::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange-500); transform: scale(0); transition: transform .16s ease; }
.app-option input:checked + .app-option-body .radio-mark { border-color: var(--orange-500); }
.app-option input:checked + .app-option-body .radio-mark::after { transform: scale(1); }
.status-tag { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #e9f5ef; color: var(--green-600); font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.app-option h3 { margin: 18px 0 7px; color: var(--navy-950); font-size: 1.12rem; }
.app-option p { margin: 0; color: var(--muted); line-height: 1.5; font-size: .94rem; }

.workspace { margin-top: 26px; padding: 30px; }
.workspace-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.workspace-heading h2 { margin-top: 5px; }

.two-panel-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 22px; margin-top: 24px; }
.panel { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fbfcfc; }
.panel-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 20px; }
.panel-number { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--navy-950); color: #fff; font-weight: 750; }
.panel-heading h3 { margin: 1px 0 0; color: var(--navy-950); font-size: 1.13rem; }
.panel-heading p { font-size: .9rem; }

.drop-zone { min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 28px; border: 2px dashed #afbdc7; border-radius: var(--radius-md); text-align: center; color: var(--muted); background: #fff; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.drop-zone:hover, .drop-zone.dragging, .drop-zone:focus-visible { border-color: var(--orange-500); background: var(--orange-100); outline: none; }
.drop-zone.dragging { transform: scale(1.01); }
.drop-zone strong { color: var(--navy-950); font-size: 1.04rem; }
.drop-zone small { margin-top: 8px; max-width: 340px; line-height: 1.45; }
.upload-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--orange-100); color: var(--orange-600); margin-bottom: 6px; }
.upload-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.file-details { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 14px; padding: 14px 16px; border: 1px solid #cbd8df; border-radius: var(--radius-sm); background: #fff; }
.file-details > div { min-width: 0; display: grid; gap: 2px; }
.file-details strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--navy-950); }
.file-details span:last-child { color: var(--muted); font-size: .82rem; }
.file-label { color: var(--orange-600); font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.text-button { border: 0; background: transparent; color: var(--orange-600); font-weight: 700; padding: 7px; }

.field-group { display: grid; gap: 7px; margin-top: 18px; }
.field-group label { color: var(--navy-950); font-weight: 700; font-size: .9rem; }
.field-group small, .export-note { color: var(--muted); font-size: .79rem; line-height: 1.45; }
select { width: 100%; min-height: 44px; padding: 0 38px 0 12px; border: 1px solid #b9c7d1; border-radius: var(--radius-sm); color: var(--ink); background: #fff; }
select:focus, textarea:focus { outline: 3px solid rgba(255,122,24,.2); border-color: var(--orange-500); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 10px 18px; font-weight: 750; transition: transform .16s ease, opacity .16s ease, background .16s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .46; }
.button-primary { margin-top: 20px; background: var(--orange-500); color: var(--navy-950); }
.button-primary:hover:not(:disabled) { background: #ff8b35; }
.button-secondary { background: var(--navy-950); color: #fff; align-self: end; }
.button-secondary:hover:not(:disabled) { background: var(--navy-800); }
.button-quiet { border-color: var(--line); background: #fff; color: var(--navy-800); }
.full-width { width: 100%; }
.spinner { width: 17px; height: 17px; border: 2px solid rgba(7,24,39,.28); border-top-color: var(--navy-950); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.progress-panel { margin-top: 14px; padding: 15px; border-radius: var(--radius-sm); background: var(--navy-950); color: #fff; }
.progress-panel p { margin: 5px 0 13px; color: #c4d0da; font-size: .88rem; line-height: 1.45; }
.progress-panel small { color: #98aabd; }
.progress-track { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.15); margin-bottom: 10px; }
.progress-track span { display: block; width: 35%; height: 100%; background: var(--orange-500); border-radius: inherit; animation: travel 1.8s ease-in-out infinite; }
@keyframes travel { 0% { transform: translateX(-120%); } 100% { transform: translateX(390%); } }

.output-panel { display: flex; flex-direction: column; }
.transcript-placeholder { flex: 1; min-height: 430px; display: grid; place-items: center; border: 1px dashed #c4cfd7; border-radius: var(--radius-md); background: #fff; color: #8b99a4; text-align: center; padding: 30px; }
.transcript-area { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.transcript-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.meta-tag { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #eaf0f4; color: var(--navy-700); font-size: .75rem; font-weight: 700; }
textarea { width: 100%; flex: 1; min-height: 360px; resize: vertical; border: 1px solid #b9c7d1; border-radius: var(--radius-md); padding: 17px; background: #fff; color: var(--ink); line-height: 1.65; }
.export-row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; margin-top: 14px; }
.export-field { margin-top: 0; }
.export-note { margin: 9px 0 0; }

.message { margin-top: 20px; padding: 13px 15px; border-radius: var(--radius-sm); line-height: 1.45; }
.message.error { color: var(--red-600); background: #faeaea; border: 1px solid #ecc2c2; }
.message.success { color: var(--green-600); background: #e9f5ef; border: 1px solid #c7e4d5; }

.muted { color: var(--muted); }
code { padding: 2px 5px; border-radius: 4px; background: #edf1f3; color: var(--navy-800); font-size: .88em; }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .84rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .header-inner { min-height: 84px; }
  .product-label { display: none; }
  .brand { width: min(520px, 84vw); }
  .intro { align-items: flex-start; flex-direction: column; }
  .two-panel-grid { grid-template-columns: 1fr; }
  .transcript-placeholder { min-height: 260px; }
  textarea { min-height: 320px; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 24px, 1240px); }
  .main-content { padding-top: 36px; }
  .catalogue-card, .workspace { padding: 20px; border-radius: 16px; }
  .panel { padding: 18px; }
  .workspace-heading { flex-direction: column; }
  .button-quiet { width: 100%; }
  .export-row { grid-template-columns: 1fr; }
  .button-secondary { width: 100%; }
  .footer-inner { flex-direction: column; justify-content: center; text-align: center; padding: 18px 0; }
}

}

@scope (:is(.brand-legacy-adversarial-review,.brand-legacy-company,.brand-legacy-index,.brand-legacy-ingest,.brand-legacy-opus,.brand-legacy-product-delivery,.brand-legacy-product-workbench,.brand-legacy-scout)) {
.opus-layout{display:grid;grid-template-columns:minmax(260px,34%) 1fr;gap:18px;align-items:start}
.opus-catalogue{display:grid;gap:8px;position:sticky;top:78px;max-height:calc(100vh - 110px);overflow:auto}
.opus-doc-button{width:100%;text-align:left;border:1px solid var(--border);background:var(--panel);color:var(--text);border-radius:13px;padding:12px;cursor:pointer}
.opus-doc-button.active{border-color:var(--accent)}.opus-doc-button strong{display:block;margin:3px 0}.opus-doc-button small{color:var(--muted)}
.opus-viewer{min-height:520px;background:#fff;color:#181818;border-radius:18px;padding:clamp(18px,4vw,42px);box-shadow:0 10px 30px rgba(0,0,0,.22)}
.opus-viewer .eyebrow{color:#a85b12}.doc-head{border-bottom:2px solid #222;padding-bottom:18px;margin-bottom:24px}.doc-head h2{font-size:2rem;line-height:1.1;margin:7px 0}
.doc-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;font-size:.84rem;color:#555}.doc-actions{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
.doc-actions button,.doc-actions a{border:1px solid #ccc;background:#f4f4f4;color:#222;border-radius:9px;padding:9px 11px;text-decoration:none;cursor:pointer}
.governance-note{background:#fff5e8;border-left:4px solid #e58b2a;padding:12px 14px;margin:18px 0;font-size:.9rem}
.doc-section{margin-top:26px}.doc-section h3{font-size:1.25rem}.doc-section p{line-height:1.58}.source-table{overflow:auto}.source-table table{width:100%;border-collapse:collapse;font-size:.8rem}.source-table td{border:1px solid #ddd;padding:6px;vertical-align:top}
.role{display:inline-block;font-size:.65rem;text-transform:uppercase;letter-spacing:.06em;color:#777;margin-left:7px}.empty-state{color:#555;padding:60px 10px}
@media(max-width:820px){.opus-layout{grid-template-columns:1fr}.opus-catalogue{position:static;max-height:260px}.opus-viewer{border-radius:14px;padding:18px}.doc-meta{grid-template-columns:1fr}}
@media print{
  body{background:#fff}.topbar,.hero,.opus-layout aside,.doc-actions{display:none!important}.opus-shell{max-width:none;padding:0}.opus-layout{display:block}.opus-viewer{box-shadow:none;border-radius:0;padding:0}.governance-note{border:1px solid #bbb}
}

}

@scope (:is(.brand-legacy-adversarial-review,.brand-legacy-company,.brand-legacy-index,.brand-legacy-ingest,.brand-legacy-opus,.brand-legacy-product-delivery,.brand-legacy-product-workbench,.brand-legacy-scout)) {
.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:12px 0 20px}.summary-card{background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:14px}.summary-card strong{font-size:1.5rem;display:block}
.delivery-tabs{display:flex;gap:8px;margin-bottom:14px}.delivery-tabs button{background:var(--panel);color:var(--text);border:1px solid var(--border);border-radius:999px;padding:9px 12px}.delivery-tabs button.active{border-color:var(--accent)}
.backlog{display:grid;gap:10px}.backlog-item{background:var(--panel);border:1px solid var(--border);border-radius:15px;padding:15px}.backlog-head{display:flex;justify-content:space-between;gap:12px}.score{font-size:1.5rem;font-weight:800;color:var(--accent)}.band{font-size:.72rem;color:var(--muted)}
.reason-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:6px;margin:12px 0}.reason{background:var(--panel2);border-radius:8px;padding:8px;font-size:.78rem}.reason b{display:block;color:var(--muted)}
.actions{display:flex;gap:7px;flex-wrap:wrap}.actions button,.actions a{background:var(--panel2);color:var(--text);border:1px solid var(--border);border-radius:9px;padding:8px 10px;text-decoration:none}.blocked{color:#e5b979}.ready{color:#9acb9d}
.roadmap{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.lane{background:var(--panel);border:1px solid var(--border);border-radius:15px;padding:12px}.lane h3{margin-top:0}.lane-card{background:var(--panel2);border-radius:9px;padding:9px;margin-bottom:8px}
.token-card{background:var(--panel);border:1px solid var(--border);border-radius:15px;padding:18px;max-width:600px}
@media(max-width:820px){.roadmap{grid-template-columns:1fr 1fr}}@media(max-width:500px){.roadmap{grid-template-columns:1fr}}

}

@scope (:is(.brand-legacy-adversarial-review,.brand-legacy-company,.brand-legacy-index,.brand-legacy-ingest,.brand-legacy-opus,.brand-legacy-product-delivery,.brand-legacy-product-workbench,.brand-legacy-scout)) {
#new-product{display:grid;gap:10px;max-width:760px}#new-product input,#new-product textarea{width:100%;padding:13px;border:1px solid var(--border);border-radius:12px;background:var(--panel);color:var(--text)}
#new-product textarea{min-height:130px;resize:vertical}#new-product button,.review-btn{border:0;border-radius:10px;padding:11px 14px;background:var(--accent);color:#111;font-weight:700;cursor:pointer}
.pw-layout{display:grid;grid-template-columns:240px 1fr;gap:18px}.pw-layout aside{position:sticky;top:80px;align-self:start}.product-link{width:100%;text-align:left;background:var(--panel);color:var(--text);border:1px solid var(--border);border-radius:12px;padding:11px;margin-top:8px}
.pw-workspace{background:var(--panel);border:1px solid var(--border);border-radius:18px;padding:20px}.tree{display:grid;gap:10px}.node{border-left:3px solid var(--border);padding:9px 12px;background:var(--panel2);border-radius:7px}.node .id{color:var(--accent);font-size:.72rem;font-weight:700}.node .state{float:right;font-size:.68rem;color:var(--muted)}
.level-1{margin-left:18px}.level-2{margin-left:36px}.level-3{margin-left:54px}.level-4{margin-left:72px}.level-5{margin-left:90px}.level-6{margin-left:108px}
.metrics{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.metric{padding:10px 12px;background:var(--panel2);border-radius:10px}.findings{margin-top:18px}.finding{border:1px solid var(--border);padding:12px;border-radius:10px;margin-top:8px}.finding.high,.finding.critical{border-color:#a74f4f}
@media(max-width:760px){.pw-layout{grid-template-columns:1fr}.pw-layout aside{position:static}.level-4,.level-5,.level-6{margin-left:24px}}

#review-form{display:grid;gap:10px;max-width:800px}#review-form input,#review-form select,#review-form textarea{padding:12px;background:var(--panel);color:var(--text);border:1px solid var(--border);border-radius:10px}#review-form textarea{min-height:180px}#review-form button{padding:11px;background:var(--accent);border:0;border-radius:10px;font-weight:700}

}

@scope (:is(.brand-legacy-adversarial-review,.brand-legacy-company,.brand-legacy-index,.brand-legacy-ingest,.brand-legacy-opus,.brand-legacy-product-delivery,.brand-legacy-product-workbench,.brand-legacy-scout)) {
.scout-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.panel{background:var(--panel);border:1px solid var(--border);border-radius:16px;padding:18px;margin-bottom:16px}
#profile-form,.run-controls{display:grid;gap:8px}input,textarea,select{width:100%;padding:10px;border:1px solid var(--border);border-radius:9px;background:var(--panel2);color:var(--text)}textarea{min-height:150px}
button{padding:10px 12px;border:0;border-radius:9px;background:var(--accent);font-weight:700}.assessment,.run-card{background:var(--panel2);border-radius:10px;padding:10px;margin-top:8px}.score{font-size:1.4rem;font-weight:800;color:var(--accent)}
@media(max-width:760px){.scout-grid{grid-template-columns:1fr}}

}

@scope (:is(.brand-legacy-adversarial-review,.brand-legacy-company,.brand-legacy-index,.brand-legacy-ingest,.brand-legacy-opus,.brand-legacy-product-delivery,.brand-legacy-product-workbench,.brand-legacy-scout)) {

:scope {
  --op-orange: #ff7412;
  --op-orange-deep: #d95b00;
  --op-orange-soft: #ffb16f;

  --op-navy: #071a2b;
  --op-navy-soft: #0d263d;
  --op-navy-light: #183a55;

  --op-ink: #15202a;
  --op-muted: #596875;
  --op-cream: #f3efe7;
  --op-paper: #fffdf9;
  --op-line: #d9d4cc;
  --op-white: #ffffff;

  --op-max: 1180px;

  --op-font-body: "DM Sans", Arial, sans-serif;
  --op-font-heading: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-family: var(--op-font-body);
  color: var(--op-ink);
}

body {
  margin: 0;
  font-family: var(--op-font-body);
  line-height: 1.6;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--op-font-heading);
  line-height: 1.08;
}

.op-shell {
  width: min(calc(100% - 3rem), var(--op-max));
  margin: 0 auto;
}

/* ---------------------------------------------------------
   Controlled company/product header
   --------------------------------------------------------- */

.op-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  color: var(--op-white);
  background: var(--op-navy);
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.op-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.op-brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.op-brand-mark {
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.op-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}

.op-company-name {
  font-family: var(--op-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--op-white);
  white-space: nowrap;
}

.op-surface-name {
  margin-top: .28rem;
  color: var(--op-orange-soft);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.op-header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.op-header-nav a {
  color: #c6d0d8;
  text-decoration: none;
  font-size: .87rem;
}

.op-header-nav a:hover {
  color: var(--op-white);
}

.op-header-nav .op-header-cta {
  color: var(--op-white);
  border-bottom: 2px solid var(--op-orange);
  padding-bottom: .2rem;
}

.op-eyebrow {
  color: var(--op-orange-deep);
  font-weight: 700;
  letter-spacing: .18em;
  font-size: .73rem;
  text-transform: uppercase;
}

.op-card {
  background: var(--op-paper);
  border: 1px solid var(--op-line);
}

.op-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 1.25rem;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 700;
}

.op-button-primary {
  background: var(--op-orange);
  color: var(--op-navy);
}

.op-button-secondary {
  color: var(--op-navy);
  border: 1px solid #8d9aa4;
  background: transparent;
}

@media (max-width: 780px) {
  .op-shell {
    width: min(calc(100% - 2rem), var(--op-max));
  }

  .op-header-inner {
    min-height: 72px;
  }

  .op-brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .op-company-name {
    font-size: .9rem;
  }
}

@media (max-width: 520px) {
  .op-header-nav {
    display: none;
  }
}

/* Approved Orange Peel company lockup.
   Asset must not be recreated, redrawn or substituted without explicit approval. */
.approved-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.approved-brand img {
  display: block;
  width: 255px;
  height: auto;
}

@media (max-width: 780px) {
  .approved-brand img {
    width: 205px;
  }
}

@media (max-width: 500px) {
  .approved-brand img {
    width: 170px;
  }
}

/* Shared Orange Peel curvature */
:scope {
  --op-radius-sm: 14px;
  --op-radius-md: 20px;
  --op-radius-lg: 26px;
  --op-radius-xl: 32px;
}

/* Approved logo lockup */
.approved-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.approved-brand img {
  display: block;
  width: 255px;
  height: auto;
}

.op-card {
  border-radius: var(--op-radius-lg);
  overflow: hidden;
}

button,
input,
textarea,
select {
  border-radius: var(--op-radius-md);
}

.op-button,
.primary,
.secondary {
  border-radius: 999px;
}

@media (max-width: 780px) {
  .approved-brand img {
    width: 205px;
  }
}

@media (max-width: 500px) {
  .approved-brand img {
    width: 170px;
  }
}

/* ORANGE PEEL CONTROLLED VISUAL RULES START */

:scope {
  --op-header-background: ;

  --op-radius-sm: 10px;
  --op-radius-md: 16px;
  --op-radius-lg: 22px;
  --op-radius-xl: 28px;
}

/*
 * BRAND ASSET RULE
 *
 * The approved company logo is not recoloured, redrawn, regenerated,
 * cropped or otherwise modified to make it fit a surface.
 *
 * The web header derives its background from the approved logo asset.
 */
.op-site-header,
.site-header,
.apps-header {
  background: var(--op-header-background) !important;
}

/*
 * CURVATURE RULE
 *
 * UI objects we draw use curved corners.
 * Straight lines remain straight; containers and controls do not.
 */

button,
input,
textarea,
select,
.op-button,
.button,
.primary,
.secondary {
  border-radius: var(--op-radius-sm);
}

.op-card,
article,
.question-card,
.drift-card,
.illustrative-drift,
.relationship-card,
.relationship-card.product,
.reasoning-journey,
.reasoning-detail,
.iq-grid,
.iq-grid article,
.qualification-band,
.case-option,
.case-preview,
.case-answer,
.actor-grid,
.actor-grid article,
.business-voice,
.northstar-tabs,
.northstar-panel,
.condition-groups div,
.authority-grid span,
.support-list,
.support-list li,
.decision-brief,
.decision-brief > div,
.capability-grid,
.capability,
.case-interview,
.interview-principles span,
.roadmap-list .current,
.concept-groups div,
.research-metrics,
.research-metrics article,
.evolution,
.evolution div,
.apps-card {
  border-radius: var(--op-radius-md);
}

.question-card,
.illustrative-drift,
.case-preview,
.case-answer,
.business-voice,
.reasoning-detail,
.case-interview,
.apps-card {
  border-radius: var(--op-radius-lg);
}

/*
 * Grid children need clipping so their own background cannot recreate
 * square external corners.
 */
.iq-grid,
.actor-grid,
.northstar-proof,
.research-metrics,
.evolution,
.support-list,
.decision-brief,
.capability-grid,
.apps-grid,
.northstar-tabs {
  border-radius: var(--op-radius-lg);
  overflow: hidden;
}

.approved-brand,
.brand {
  background: transparent !important;
  border: 0 !important;
}

.approved-brand img,
.brand img {
  display: block;
  background: transparent;
}

/* ORANGE PEEL CONTROLLED VISUAL RULES END */

}

@scope (:is(.brand-legacy-adversarial-review,.brand-legacy-company,.brand-legacy-index,.brand-legacy-ingest,.brand-legacy-opus,.brand-legacy-product-delivery,.brand-legacy-product-workbench,.brand-legacy-scout)) {

:scope {
  --op-orange: #ff7412;
  --op-orange-deep: #d95b00;
  --op-orange-soft: #ffb16f;

  --op-navy: #071a2b;
  --op-navy-soft: #0d263d;
  --op-navy-light: #183a55;

  --op-ink: #15202a;
  --op-muted: #596875;
  --op-cream: #f3efe7;
  --op-paper: #fffdf9;
  --op-line: #d9d4cc;
  --op-white: #ffffff;

  --op-max: 1180px;

  --op-font-body: "DM Sans", Arial, sans-serif;
  --op-font-heading: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-family: var(--op-font-body);
  color: var(--op-ink);
}

body {
  margin: 0;
  font-family: var(--op-font-body);
  line-height: 1.6;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--op-font-heading);
  line-height: 1.08;
}

.op-shell {
  width: min(calc(100% - 3rem), var(--op-max));
  margin: 0 auto;
}

/* ---------------------------------------------------------
   Controlled company/product header
   --------------------------------------------------------- */

.op-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  color: var(--op-white);
  background: var(--op-navy);
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.op-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.op-brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.op-brand-mark {
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.op-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}

.op-company-name {
  font-family: var(--op-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--op-white);
  white-space: nowrap;
}

.op-surface-name {
  margin-top: .28rem;
  color: var(--op-orange-soft);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.op-header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.op-header-nav a {
  color: #c6d0d8;
  text-decoration: none;
  font-size: .87rem;
}

.op-header-nav a:hover {
  color: var(--op-white);
}

.op-header-nav .op-header-cta {
  color: var(--op-white);
  border-bottom: 2px solid var(--op-orange);
  padding-bottom: .2rem;
}

.op-eyebrow {
  color: var(--op-orange-deep);
  font-weight: 700;
  letter-spacing: .18em;
  font-size: .73rem;
  text-transform: uppercase;
}

.op-card {
  background: var(--op-paper);
  border: 1px solid var(--op-line);
}

.op-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 1.25rem;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 700;
}

.op-button-primary {
  background: var(--op-orange);
  color: var(--op-navy);
}

.op-button-secondary {
  color: var(--op-navy);
  border: 1px solid #8d9aa4;
  background: transparent;
}

@media (max-width: 780px) {
  .op-shell {
    width: min(calc(100% - 2rem), var(--op-max));
  }

  .op-header-inner {
    min-height: 72px;
  }

  .op-brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .op-company-name {
    font-size: .9rem;
  }
}

@media (max-width: 520px) {
  .op-header-nav {
    display: none;
  }
}

/* Approved Orange Peel company lockup.
   Asset must not be recreated, redrawn or substituted without explicit approval. */
.approved-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.approved-brand img {
  display: block;
  width: 255px;
  height: auto;
}

@media (max-width: 780px) {
  .approved-brand img {
    width: 205px;
  }
}

@media (max-width: 500px) {
  .approved-brand img {
    width: 170px;
  }
}

/* Shared Orange Peel curvature */
:scope {
  --op-radius-sm: 14px;
  --op-radius-md: 20px;
  --op-radius-lg: 26px;
  --op-radius-xl: 32px;
}

/* Approved logo lockup */
.approved-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.approved-brand img {
  display: block;
  width: 255px;
  height: auto;
}

.op-card {
  border-radius: var(--op-radius-lg);
  overflow: hidden;
}

button,
input,
textarea,
select {
  border-radius: var(--op-radius-md);
}

.op-button,
.primary,
.secondary {
  border-radius: 999px;
}

@media (max-width: 780px) {
  .approved-brand img {
    width: 205px;
  }
}

@media (max-width: 500px) {
  .approved-brand img {
    width: 170px;
  }
}

/* ORANGE PEEL CONTROLLED VISUAL RULES START */

:scope {
  --op-header-background: ;

  --op-radius-sm: 10px;
  --op-radius-md: 16px;
  --op-radius-lg: 22px;
  --op-radius-xl: 28px;
}

/*
 * BRAND ASSET RULE
 *
 * The approved company logo is not recoloured, redrawn, regenerated,
 * cropped or otherwise modified to make it fit a surface.
 *
 * The web header derives its background from the approved logo asset.
 */
.op-site-header,
.site-header,
.apps-header {
  background: var(--op-header-background) !important;
}

/*
 * CURVATURE RULE
 *
 * UI objects we draw use curved corners.
 * Straight lines remain straight; containers and controls do not.
 */

button,
input,
textarea,
select,
.op-button,
.button,
.primary,
.secondary {
  border-radius: var(--op-radius-sm);
}

.op-card,
article,
.question-card,
.drift-card,
.illustrative-drift,
.relationship-card,
.relationship-card.product,
.reasoning-journey,
.reasoning-detail,
.iq-grid,
.iq-grid article,
.qualification-band,
.case-option,
.case-preview,
.case-answer,
.actor-grid,
.actor-grid article,
.business-voice,
.northstar-tabs,
.northstar-panel,
.condition-groups div,
.authority-grid span,
.support-list,
.support-list li,
.decision-brief,
.decision-brief > div,
.capability-grid,
.capability,
.case-interview,
.interview-principles span,
.roadmap-list .current,
.concept-groups div,
.research-metrics,
.research-metrics article,
.evolution,
.evolution div,
.apps-card {
  border-radius: var(--op-radius-md);
}

.question-card,
.illustrative-drift,
.case-preview,
.case-answer,
.business-voice,
.reasoning-detail,
.case-interview,
.apps-card {
  border-radius: var(--op-radius-lg);
}

/*
 * Grid children need clipping so their own background cannot recreate
 * square external corners.
 */
.iq-grid,
.actor-grid,
.northstar-proof,
.research-metrics,
.evolution,
.support-list,
.decision-brief,
.capability-grid,
.apps-grid,
.northstar-tabs {
  border-radius: var(--op-radius-lg);
  overflow: hidden;
}

.approved-brand,
.brand {
  background: transparent !important;
  border: 0 !important;
}

.approved-brand img,
.brand img {
  display: block;
  background: transparent;
}

/* ORANGE PEEL CONTROLLED VISUAL RULES END */

}

@scope (.brand-legacy-ingest.html) {
body{margin:0;background:#f4f5f6;color:#192b3a;font:16px/1.5 system-ui}main{max-width:800px;margin:48px auto;padding:20px}.panel{background:white;border:1px solid #dce0e2;border-radius:18px;padding:28px}#drop{border:2px dashed #8497a1;border-radius:16px;padding:36px;text-align:center;cursor:pointer}#drop:focus{outline:3px solid #f17b32}button{padding:12px 22px;border:0;border-radius:9px;background:#192b3a;color:white;font:inherit;cursor:pointer}pre{white-space:pre-wrap;overflow-wrap:anywhere}small{color:#5e6e79}
}

/* Catalogue, served live from APEX by Workbench (work item org.orangepeelit.delivery-work-item.catalogue-live-20261128.v1).
   Shared Brand frame (brand-shell, brand-header, brand-page, brand-grid, brand-footer) with Catalogue tiles; light and dark. Brand tokens only. */
@scope (.brand-product-catalogue) {
:scope{color-scheme:light dark;margin:0;--cat-bg:var(--brand-paper);--cat-text:var(--brand-ink);--cat-surface:var(--brand-paper);--cat-border:color-mix(in srgb,var(--brand-navy) 18%,transparent);--cat-muted:color-mix(in srgb,var(--brand-ink) 72%,transparent);--cat-shadow:0 10px 28px color-mix(in srgb,var(--brand-navy) 8%,transparent);background:var(--cat-bg);color:var(--cat-text);font:16px/1.55 var(--brand-body-font)}
*,*::before,*::after{box-sizing:border-box}
@media(prefers-color-scheme:dark){:scope{--cat-bg:var(--brand-navy);--cat-text:var(--brand-paper);--cat-surface:color-mix(in srgb,var(--brand-navy) 86%,var(--brand-paper));--cat-border:color-mix(in srgb,var(--brand-paper) 22%,transparent);--cat-muted:color-mix(in srgb,var(--brand-paper) 76%,transparent);--cat-shadow:none}}
.brand-header{background:var(--brand-navy);color:var(--brand-paper);border-bottom:3px solid var(--brand-orange)}
.cat-identity{display:flex;align-items:center;gap:var(--brand-space-3)}
.cat-mark{width:40px;height:40px;border-radius:10px;display:block}
.cat-eyebrow{margin:0;color:var(--brand-orange);font-size:.75rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.brand-header h1{margin:0;font-size:1.35rem;line-height:1.2;color:inherit}
.cat-intro{margin:0 0 var(--brand-space-4);max-width:46rem;font-size:1.05rem}
.cat-controls{align-items:flex-end;margin:0 0 var(--brand-space-3)}
.cat-controls label{display:grid;gap:var(--brand-space-1);font-size:.85rem;font-weight:600;color:var(--cat-muted)}
.cat-controls select{min-width:9.5rem;padding:0 var(--brand-space-3);border:1px solid var(--cat-border);border-radius:10px;background:var(--cat-surface);color:var(--cat-text)}
.cat-status{margin:0 0 var(--brand-space-4);color:var(--cat-muted);font-size:.9rem}
.cat-card{display:flex;flex-direction:column;gap:var(--brand-space-2);background:var(--cat-surface);color:var(--cat-text);border:1px solid var(--cat-border);box-shadow:var(--cat-shadow)}
.cat-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--brand-space-3);min-height:40px}
.cat-icon{width:40px;height:40px;border-radius:10px;object-fit:contain}
.cat-pill{margin-left:auto;padding:.2rem .65rem;border-radius:999px;border:1px solid var(--cat-border);font-size:.75rem;font-weight:700;white-space:nowrap;color:var(--cat-text)}
.cat-pill-deployed{background:var(--brand-orange);border-color:var(--brand-orange);color:var(--brand-navy)}
.cat-pill-in-build,.cat-pill-in-test{border-color:var(--brand-orange)}
.cat-pill-closed{color:var(--cat-muted)}
.cat-type{margin:var(--brand-space-1) 0 0;color:var(--cat-muted);font-size:.72rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.cat-name{margin:0;font-size:1.3rem;line-height:1.25;color:inherit}
.cat-summary{margin:0;color:var(--cat-muted);font-size:.92rem;line-height:1.5}
.cat-missing{font-style:italic;color:var(--cat-muted)}
.cat-facts{display:grid;grid-template-columns:auto 1fr;gap:var(--brand-space-1) var(--brand-space-3);margin:var(--brand-space-1) 0 0;font-size:.85rem}
.cat-facts dt{font-weight:600}.cat-facts dd{margin:0}
.cat-reqs{margin:0;font-size:.85rem}
.cat-reqs summary{min-height:2.75rem;display:flex;align-items:center;cursor:pointer;font-weight:600}
.cat-reqs ul{margin:0 0 var(--brand-space-2);padding-left:1.1rem;color:var(--cat-muted)}
.cat-reqs li{margin:var(--brand-space-1) 0}
.cat-open{margin-top:auto;padding-top:var(--brand-space-2);font-weight:700;text-decoration:none;color:inherit}
.cat-open:hover{text-decoration:underline}
.brand-footer{background:var(--brand-navy);color:var(--brand-paper);border-top:3px solid var(--brand-orange)}
.brand-footer strong{font-family:var(--brand-heading-font)}
.cat-meta{margin:var(--brand-space-1) 0 0;font-size:.8rem;opacity:.85}
.cat-built{text-align:right}
.cat-built-label{margin:0;font-size:.72rem;font-weight:700;letter-spacing:.14em}
.cat-built-label a{color:var(--brand-orange);text-decoration:none}
@media(max-width:640px){.cat-built{text-align:left}.cat-controls label{flex:1 1 8rem}.cat-controls select{min-width:0;width:100%}}
}
