/* The Operator atelier: live lettering, intact official artwork, quiet reading surfaces.
   Presentation only. Never style Scripture, editable text or controls as image text. */
body{--op-plaque-deep:#111b2c;--op-plaque-light:#293d5c;--op-metal:#c7a66b;--op-metal-bright:#fff0c5;--op-metal-ink:#f5d992;--op-plaque-rule:#d4b47580;--op-panel-depth:0 12px 28px #00000024;}
body[data-lane=workspace]{--op-plaque-deep:#17162a;--op-plaque-light:#40315a;}
body[data-lane=yah]{--op-plaque-deep:#25131a;--op-plaque-light:#57313b;}
body[data-lane=decision]{--op-plaque-deep:#101c30;--op-plaque-light:#304d70;}
body[data-lane=trading]{--op-plaque-deep:#0c2523;--op-plaque-light:#24534a;}
body[data-lane=publishing]{--op-plaque-deep:#171930;--op-plaque-light:#393f6b;}
body[data-lane=poker]{--op-plaque-deep:#28131e;--op-plaque-light:#603347;}
/* Section plaques share a restrained brushed finish. No new text or replacement icons. */
body #app :is(.notes-panel-heading,.notes-editor-heading,.notes-scratch-heading),
body #app :is(.section-heading,.ot-library-heading,.ot-preflight-heading,.decision-comparison-heading)>:is(h2,h3),
body #app .publishing-desk .pp-card>h2{
 position:relative;isolation:isolate;box-sizing:border-box;border:1px solid var(--op-metal)!important;border-radius:16px 4px!important;
 background:linear-gradient(135deg,#ffffff0d,transparent 42%),repeating-linear-gradient(115deg,#ffffff03 0 1px,transparent 1px 7px),linear-gradient(115deg,var(--op-plaque-light),var(--op-plaque-deep) 82%)!important;
 box-shadow:inset 0 0 0 4px #05081080,inset 0 0 0 5px #dfbe7540,inset 0 1px 0 #fff0c580,0 4px 0 #060a1260,var(--op-panel-depth)!important;
 padding:20px 24px!important;color:var(--op-metal-bright)!important;-webkit-text-fill-color:var(--op-metal-bright)!important;
}
/* Engraving is live high-contrast typography, not baked into a picture. */
body #app :is(.notes-panel-heading,.notes-editor-heading,.notes-scratch-heading) :is(h2,h3),
body #app :is(.section-heading,.ot-library-heading,.ot-preflight-heading,.decision-comparison-heading)>:is(h2,h3),
body #app .publishing-desk .pp-card>h2{
 font-family:Georgia,'Times New Roman',serif!important;font-weight:700!important;font-size:clamp(28px,3.2vw,36px)!important;line-height:1.18!important;letter-spacing:.015em!important;
 color:var(--op-metal-bright)!important;-webkit-text-fill-color:var(--op-metal-bright)!important;text-shadow:0 1px 0 #9b6a30,0 2px 1px #040609,0 -1px 0 #fff5db70!important;
 overflow-wrap:anywhere;hyphens:none;
}
body #app :is(.notes-panel-heading,.notes-editor-heading,.notes-scratch-heading) :is(small,.notes-kicker){font:700 11px/1.5 Manrope,system-ui,sans-serif!important;letter-spacing:.14em!important;color:#edcf98!important;-webkit-text-fill-color:#edcf98!important;text-shadow:none!important;margin:0 0 6px!important;}
body #app :is(.notes-panel-heading,.notes-editor-heading,.notes-scratch-heading) :is(h2,h3){margin:0!important;}
body #app :is(.section-heading,.ot-library-heading,.ot-preflight-heading,.decision-comparison-heading)>:is(h2,h3){margin-block:0!important;min-width:0;flex:1 1 auto;}
/* Workspace search console, writing desk and note library form one family. */
body #app .notes-workspace :is(.notes-filters,.notes-scratch,.notes-editor){border:1px solid #b59460!important;border-top:3px solid #dbbb7b!important;border-radius:22px 6px!important;padding:24px!important;box-shadow:inset 0 0 0 4px #b89a5c13,inset 0 1px 0 #fff5ce55,var(--op-panel-depth)!important;}
body #app .notes-workspace :is(.notes-panel-heading,.notes-editor-heading,.notes-scratch-heading){display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;align-items:center!important;gap:20px!important;margin:0 0 26px!important;min-height:122px;}
body #app .notes-workspace :is(.notes-panel-heading,.notes-editor-heading)>.notes-seal,
body #app .notes-workspace .notes-scratch-heading>.notes-desk-emblem{width:72px!important;height:64px!important;min-width:0;display:grid!important;place-items:center;filter:drop-shadow(0 3px 2px #0008);}
body #app .notes-workspace :is(.notes-panel-heading,.notes-editor-heading,.notes-scratch-heading) .notes-custom-relief{width:72px!important;height:64px!important;max-width:100%!important;max-height:none!important;object-fit:contain!important;}
body #app .notes-workspace .notes-search{display:block;padding:18px!important;margin:0!important;border:1px solid var(--ns-edge);border-radius:14px 4px;background:var(--ns-soft);box-shadow:inset 0 2px 6px #00000012;}
body #app .notes-workspace .notes-search>span{display:block!important;text-align:left!important;font-size:14px!important;line-height:1.5!important;font-weight:700;gap:12px!important;margin-bottom:12px!important;}
body #app .notes-workspace .notes-filters>.notes-filter-row{gap:14px!important;margin-top:18px!important;padding:16px;border:1px solid var(--ns-edge);border-radius:14px 4px;background:var(--ns-soft);box-shadow:inset 0 2px 6px #00000012;}
body #app .notes-workspace .notes-filters>.notes-filter-row>label{padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;}
body #app .notes-workspace .notes-filters>.notes-small{margin-top:20px!important;box-shadow:inset 0 0 0 2px #080c1640,0 2px 0 #0003!important;background:linear-gradient(120deg,var(--op-plaque-light),var(--op-plaque-deep))!important;}
body #app .notes-workspace .notes-section-title{border-bottom:1px solid var(--ns-edge);padding-bottom:18px;gap:18px;}
body #app .notes-workspace .notes-section-title h2{font:700 clamp(30px,3.4vw,40px)/1.18 Georgia,serif!important;letter-spacing:.01em;min-width:0;overflow-wrap:anywhere;}
body #app .notes-workspace .notes-card{border-color:#b89b65!important;border-radius:20px 5px!important;box-shadow:inset 4px 0 0 #b89958, inset 6px 0 0 #fff1c23d,var(--op-panel-depth)!important;}
body #app .notes-workspace .notes-card h3{padding:0 0 14px!important;margin:14px 0 20px!important;border:0;border-bottom:1px solid var(--ns-edge);border-radius:0;background:none;box-shadow:none;font:700 clamp(27px,2.5vw,33px)/1.2 Georgia,serif!important;color:var(--ns-ink)!important;-webkit-text-fill-color:var(--ns-ink)!important;text-shadow:0 1px 0 #ffffff25;overflow-wrap:anywhere;}
body[data-theme=dark] #app .notes-workspace .notes-card h3{color:var(--op-metal-bright)!important;-webkit-text-fill-color:var(--op-metal-bright)!important;text-shadow:0 1px 0 #8d602c,0 2px 1px #05060a!important;}
body #app .op-section-heading>:is(h2,h3){font-family:Georgia,serif!important;font-weight:700;color:var(--text);padding-bottom:12px;border-bottom:1px solid var(--op-plaque-rule);text-shadow:0 1px 0 #0003;overflow-wrap:anywhere;}
body #app .notes-workspace .notes-empty{border-style:solid!important;border-color:var(--ns-edge)!important;box-shadow:inset 0 0 0 5px #b8995812;}
/* Subtle depth on established tool panels; fields, table values and body copy stay native. */
body #app :is(.pp-card,.ot-panel,.decision-comparison,.decision-record,.op-lesson-page){border-top-color:var(--op-metal)!important;box-shadow:inset 0 1px 0 #fff0c52b,var(--op-panel-depth)!important;}
@media(max-width:600px){
 body #app .notes-workspace :is(.notes-filters,.notes-scratch,.notes-editor){padding:16px!important;}
 body #app .notes-workspace :is(.notes-panel-heading,.notes-editor-heading,.notes-scratch-heading){grid-template-columns:60px minmax(0,1fr)!important;gap:12px!important;padding:18px 16px!important;min-height:108px;margin-bottom:20px!important;}
 body #app .notes-workspace :is(.notes-panel-heading,.notes-editor-heading)>.notes-seal,body #app .notes-workspace .notes-scratch-heading>.notes-desk-emblem,body #app .notes-workspace :is(.notes-panel-heading,.notes-editor-heading,.notes-scratch-heading) .notes-custom-relief{width:60px!important;height:54px!important;}
 body #app :is(.section-heading,.ot-library-heading,.ot-preflight-heading,.decision-comparison-heading)>:is(h2,h3),body #app .publishing-desk .pp-card>h2{padding:16px!important;font-size:28px!important;}
 body #app .notes-workspace .notes-search{padding:14px!important;}
}
@media(prefers-reduced-motion:reduce){body #app :is(.notes-panel-heading,.notes-editor-heading,.notes-scratch-heading,.notes-filters,.notes-card){animation:none!important;transition:none!important;}}
@media(forced-colors:active){
 body #app :is(.notes-panel-heading,.notes-editor-heading,.notes-scratch-heading),body #app :is(.section-heading,.ot-library-heading,.ot-preflight-heading,.decision-comparison-heading)>:is(h2,h3),body #app .publishing-desk .pp-card>h2,body #app .notes-workspace .notes-card h3,body[data-theme] #app .notes-workspace .notes-card h3{background:Canvas!important;color:CanvasText!important;-webkit-text-fill-color:CanvasText!important;text-shadow:none!important;box-shadow:none!important;border:1px solid CanvasText!important;}
 body #app :is(.notes-panel-heading,.notes-editor-heading,.notes-scratch-heading) :is(h2,h3,small,.notes-kicker){color:CanvasText!important;-webkit-text-fill-color:CanvasText!important;text-shadow:none!important;}
}
/* Second pass: semantic primary titles missed by the original direct-child rules.
   Deliberately exclude Scripture/chapter headings, result values, lesson h4s,
   field labels, toolbar summaries and the existing Files & downloads lockup. */
body[data-lane=yah] #app .pagehead>div>h1,
body #app .decision-orientation>div>h2,
body #app .decision-quick-header>div>h2,
body #app .decision-comparison-heading>div>h3,
body #app .op-lesson-page>h3,
body #app .op-learning-intro>h3,
body #app .op-practice-head>h3,
body #app .op-section-heading>div>h3,
body #app .ot-library-heading>div>h2,
body #app .ot-panel>h1{
 box-sizing:border-box;max-width:100%;min-width:0;
 padding:14px 18px 17px!important;margin-block:10px 18px!important;
 border:0!important;border-left:3px solid var(--op-metal)!important;border-bottom:1px solid var(--op-metal)!important;border-radius:0 12px 0 0!important;
 background:linear-gradient(115deg,var(--op-plaque-light),var(--op-plaque-deep))!important;
 box-shadow:inset 0 1px 0 #fff0c536,0 3px 0 #04060945!important;
 font:700 clamp(29px,3.2vw,38px)/1.2 Georgia,'Times New Roman',serif!important;
 letter-spacing:.012em!important;color:var(--op-metal-bright)!important;-webkit-text-fill-color:var(--op-metal-bright)!important;
 text-shadow:0 1px 0 #9b6a30,0 2px 1px #040609,0 -1px 0 #fff5db70!important;
 overflow-wrap:anywhere;hyphens:none;
}
/* Preserve lesson-title hierarchy and let nested flex/grid title wrappers shrink. */
body #app :is(.decision-orientation,.decision-quick-header,.decision-comparison-heading,.ot-library-heading)>div{min-width:0;max-width:100%;}
body #app :is(.op-lesson-page,.op-learning-intro)>h3{font-size:clamp(32px,3.8vw,44px)!important;}
/* Quieter titles on already-composed Workspace surfaces: no nested plaque. */
body #app .notes-workspace .notes-section-title>h2,
body #app .notes-workspace .notes-sync>div>strong{
 color:var(--ns-ink)!important;-webkit-text-fill-color:var(--ns-ink)!important;
 font-family:Georgia,'Times New Roman',serif!important;font-weight:700!important;
 text-shadow:0 1px 0 #ffffff70,0 -1px 0 #76532630!important;
 letter-spacing:.012em!important;overflow-wrap:anywhere;
}
body #app .notes-workspace .notes-sync>div>strong{display:block;font-size:25px!important;line-height:1.25!important;border-bottom:1px solid var(--ns-edge);padding-bottom:10px;}
body[data-theme=dark] #app .notes-workspace .notes-section-title>h2,
body[data-theme=dark] #app .notes-workspace .notes-sync>div>strong{
 color:var(--op-metal-bright)!important;-webkit-text-fill-color:var(--op-metal-bright)!important;text-shadow:0 1px 0 #9b6a30,0 2px 1px #040609,0 -1px 0 #fff5db70!important;
}
@media(max-width:600px){
 body[data-lane=yah] #app .pagehead{flex-wrap:wrap;gap:12px;}
 body[data-lane=yah] #app .pagehead>div{min-width:0;max-width:100%;}
 body[data-lane=yah] #app .pagehead>div>h1,
 body #app :is(.decision-orientation,.decision-quick-header,.decision-comparison-heading,.ot-library-heading)>div>:is(h2,h3),
 body #app :is(.op-lesson-page,.op-learning-intro,.op-practice-head)>h3,
 body #app .op-section-heading>div>h3,body #app .ot-panel>h1{font-size:28px!important;padding:12px 14px 15px!important;}
}
@media(forced-colors:active){
 body[data-lane=yah] #app .pagehead>div>h1,
 body #app :is(.decision-orientation,.decision-quick-header,.decision-comparison-heading,.ot-library-heading)>div>:is(h2,h3),
 body #app :is(.op-lesson-page,.op-learning-intro,.op-practice-head)>h3,
 body #app .op-section-heading>div>h3,body #app .ot-panel>h1,
 body[data-theme] #app .notes-workspace .notes-section-title>h2,
 body[data-theme] #app .notes-workspace .notes-sync>div>strong{
 background:Canvas!important;color:CanvasText!important;-webkit-text-fill-color:CanvasText!important;text-shadow:none!important;box-shadow:none!important;border-color:CanvasText!important;
 }
}
/* User-directed search signature: readable eyebrow, larger intact art,
   and a content-proportioned plaque instead of a full-width empty rail. */
body #app .notes-workspace .notes-filters>.notes-panel-heading{
 width:fit-content;max-width:100%;min-height:0!important;
 grid-template-columns:96px minmax(0,1fr)!important;gap:16px!important;
 padding:16px 20px!important;margin-bottom:20px!important;
}
body #app .notes-workspace .notes-filters>.notes-panel-heading>.notes-seal,
body #app .notes-workspace .notes-filters>.notes-panel-heading .notes-custom-relief{
 width:96px!important;height:84px!important;object-fit:contain!important;
}
body #app .notes-workspace .notes-filters>.notes-panel-heading>div{min-width:0;}
body #app .notes-workspace .notes-filters>.notes-panel-heading small{
 display:block;font:700 18px/1.35 Manrope,system-ui,sans-serif!important;
 letter-spacing:0!important;margin:0 0 8px!important;overflow-wrap:normal;
}
@media(max-width:600px){
 body #app .notes-workspace .notes-filters>.notes-panel-heading{grid-template-columns:84px minmax(0,1fr)!important;gap:12px!important;padding:14px 16px!important;}
 body #app .notes-workspace .notes-filters>.notes-panel-heading>.notes-seal,
 body #app .notes-workspace .notes-filters>.notes-panel-heading .notes-custom-relief{width:84px!important;height:74px!important;}
}
@media(max-width:480px){
 body #app .notes-workspace .notes-filters>.notes-panel-heading{grid-template-columns:minmax(0,1fr)!important;width:100%;justify-items:center;text-align:center;gap:8px!important;}
 body #app .notes-workspace .notes-filters>.notes-panel-heading>.notes-seal,
 body #app .notes-workspace .notes-filters>.notes-panel-heading .notes-custom-relief{width:84px!important;height:74px!important;}
}
/* Workspace cards retain a dark enamel surface in EVERY theme. Bind their
   local foreground tokens to that surface, not to the surrounding light page.
   These tokens never escape the card into the editor/search/sync panels. */
body #app .notes-workspace .notes-card{
 --ns-ink:#fff0c5;--ns-muted:#d6ccdf;--ns-edge:#c8ab7280;
 color:var(--ns-ink);
}
body #app .notes-workspace .notes-card h3{text-shadow:0 1px 0 #8d602c,0 2px 1px #05060a!important;}
@media(forced-colors:active){
 body #app .notes-workspace .notes-card{--ns-ink:CanvasText;--ns-muted:CanvasText;--ns-edge:CanvasText;background:Canvas!important;color:CanvasText;}
 body[data-theme] #app .notes-workspace .notes-card h3{text-shadow:none!important;}
}
