/* Private edition: one fitted frame, a work surface, a material shelf and an action footer. */
body[data-enl-enhanced]{--enl-enhanced-gap:clamp(14px,1.8vw,24px)}
body[data-enl-enhanced] .painting{cursor:default}
body[data-enl-enhanced] .hotspot{cursor:pointer;outline:none!important;box-shadow:none!important}
body[data-enl-enhanced] .hotspot:hover,body[data-enl-enhanced] .hotspot:focus-visible{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
body[data-enl-enhanced] #explore,body[data-enl-enhanced] #bag-toggle{display:none!important}
body[data-enl-enhanced] .escape-explore-controls:empty,body[data-enl-enhanced] .escape-bag-controls:empty{display:none}
body[data-enl-enhanced] .observation .row button,body[data-enl-enhanced] .observation button.primary{min-height:48px;padding:12px 22px;font-size:1rem}

/* The availability colours are the same as Clair-obscur, with explicit labels. */
body[data-enl-enhanced] :is(#dialog,.escape-message-surface):is([data-enl-readiness="waiting"],:has(#observation[data-enl-readiness="waiting"]:not([hidden]))){--enl-state-surface:#3b2b17f7;--enl-state-line:#d0aa62;--enl-state-ink:#fff0d3;--enl-state-copy:#f6e3bd}
body[data-enl-enhanced] :is(#dialog,.escape-message-surface):is([data-enl-readiness="ready"],:has(#observation[data-enl-readiness="ready"]:not([hidden]))){--enl-state-surface:#203a30f7;--enl-state-line:#8fb99d;--enl-state-ink:#edf5e9;--enl-state-copy:#e1eee1}
body[data-enl-enhanced] :is(#dialog,.escape-message-surface):is([data-enl-readiness="solved"],:has(#observation[data-enl-readiness="solved"]:not([hidden]))){--enl-state-surface:#243139f7;--enl-state-line:#96adb7;--enl-state-ink:#e8eff0;--enl-state-copy:#dce8ec}
body[data-enl-enhanced] .escape-message-surface:has(#observation[data-enl-readiness]:not([hidden])){background:var(--enl-state-surface)!important;border-color:var(--enl-state-line)!important;color:var(--enl-state-ink)!important}
/* An observation can grow beyond a short notice. Only its text scrolls, so the
   requested action remains visible at the bottom of the same panel. */
body[data-enl-enhanced] .escape-message-surface:has(>#observation:not([hidden])){display:flex;flex-direction:column;height:auto;max-height:min(70dvh,calc(100% - 20px));overflow:hidden}
body[data-enl-enhanced] .escape-message-surface>#observation.escape-observation{flex:0 1 auto;grid-template-rows:minmax(0,1fr) auto}
body[data-enl-enhanced] .escape-message-surface>#observation>.escape-observation-copy{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
body[data-enl-enhanced] .escape-message-surface>#observation>.escape-observation-actions{max-height:none;overflow:visible}
body[data-enl-enhanced] #observation[data-enl-readiness]{color:var(--enl-state-ink)!important}
body[data-enl-enhanced] #observation[data-enl-readiness] :is(h2,h3){color:var(--enl-state-ink)!important}
body[data-enl-enhanced] #observation[data-enl-readiness] p{color:var(--enl-state-copy)!important}
body[data-enl-enhanced] #dialog.enl-enhanced-dialog[data-enl-readiness]{--escape-surface:var(--enl-state-surface);--escape-line:var(--enl-state-line);background:var(--enl-state-surface)!important;border-color:var(--enl-state-line)!important;color:var(--enl-state-ink)!important}
body[data-enl-enhanced] #dialog.enl-enhanced-dialog[data-enl-readiness]>.modal-head{background:var(--enl-state-surface)!important;border-color:var(--enl-state-line)!important}
body[data-enl-enhanced] #dialog.enl-enhanced-dialog[data-enl-readiness]>.modal-body{background:var(--enl-state-surface)!important;color:var(--enl-state-ink)!important}
body[data-enl-enhanced] #dialog.enl-enhanced-dialog[data-enl-readiness]>.modal-head h2{color:var(--enl-state-ink)!important}
body[data-enl-enhanced] .enl-readiness-label{display:block;font:700 .7rem/1.4 system-ui,sans-serif;letter-spacing:.035em;margin:5px 0 0;color:var(--enl-state-copy,inherit)!important}
body[data-enl-enhanced] #observation .enl-readiness-label{margin:0 0 10px}
body[data-enl-enhanced] #observation button.enl-observation-action{display:flex;align-items:center;justify-content:center;width:100%;min-height:56px!important;padding:14px 20px!important;background:linear-gradient(160deg,#f2d89d,#dfb868)!important;border:2px solid #f4d494!important;color:#24190c!important;font-weight:700;font-size:1rem;line-height:1.35;box-shadow:0 3px 12px #0003}
@media(max-width:680px){
 /* The enclosing surface scrolls; its action row must fit the full buttons. */
 body[data-enl-enhanced] .escape-message-rail #observation>.escape-observation-actions{height:auto;max-height:none;flex-wrap:wrap;overflow:visible}
 body[data-enl-enhanced] #observation>.escape-observation-actions>.enl-observation-action{flex:1 1 100%;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 body[data-enl-enhanced] #observation .enl-observation-action .escape-control-label{min-width:0;white-space:normal;overflow-wrap:anywhere}
}

/* The parent owns available height; children no longer estimate header pixels. */
body[data-enl-enhanced] #dialog.enluminure-dialog.enl-enhanced-dialog[open]{display:flex!important;flex-direction:column;width:min(1540px,calc(100vw - 24px))!important;max-width:none!important;height:calc(100dvh - 20px)!important;max-height:none!important;margin:auto!important;padding:0!important;border:1px solid var(--escape-line,#aa9366);border-radius:10px;overflow:hidden!important}
body[data-enl-enhanced] #dialog.enl-enhanced-dialog>.modal-head{flex:0 0 auto;min-height:60px;padding:12px 18px!important}
body[data-enl-enhanced] #dialog.enl-enhanced-dialog>.modal-head h2{font:500 clamp(1.2rem,1.8vw,1.65rem)/1.2 Georgia,serif!important;margin:0!important;letter-spacing:0}
body[data-enl-enhanced] #dialog.enl-enhanced-dialog>.modal-body{display:flex!important;flex-direction:column;flex:1 1 auto;min-height:0;padding:12px 18px 0!important;overflow:hidden!important;gap:8px;scrollbar-gutter:auto}
body[data-enl-enhanced] #dialog.enl-enhanced-dialog>.modal-body>.enl-workshop{flex:1 1 auto;min-height:0}
body[data-enl-enhanced] #dialog.enl-enhanced-dialog>.modal-body>.puzzle-feedback,body[data-enl-enhanced] #dialog.enl-enhanced-dialog>.modal-body>.enl-review-feedback{flex:0 1 auto;max-height:90px;overflow:auto;margin:0!important;padding:7px 12px!important}
body[data-enl-enhanced] #dialog.enl-enhanced-dialog>.modal-body>.puzzle-feedback:empty{display:none}
.enl-enhanced-workshop{display:flex!important;flex-direction:column;gap:10px;min-width:0;min-height:0;overflow:hidden}
/* The completed board stays locked; only its explicit reading and exit controls
   accept pointer input, including their inherited label and artwork children. */
body[data-enl-enhanced] .suite-readonly.enl-enhanced-workshop [data-enl-readonly-safe]{pointer-events:auto}
.enl-enhanced-workshop>.enl-enhanced-quire-workspace{display:flex;flex:1 1 auto;min-height:0;min-width:0;padding:0;margin:0;border:0;background:none}
.enl-enhanced-workshop .enl-enhanced-columns{display:grid!important;grid-template-columns:minmax(0,1fr) clamp(260px,26vw,330px)!important;gap:var(--enl-enhanced-gap);align-items:stretch;flex:1 1 auto;min-height:0;min-width:0;width:100%;max-width:none;margin:0}
.enl-enhanced-workshop .enl-enhanced-canvas{display:flex!important;flex-direction:column;align-self:stretch;position:relative;min-width:0;min-height:0;overflow:auto;scrollbar-width:thin}
.enl-enhanced-workshop .enl-enhanced-tools{display:flex!important;flex-direction:column;align-self:stretch;position:static!important;min-width:0;min-height:0;max-height:100%;height:auto;gap:12px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;border-left:1px solid var(--escape-line,#a78e60);padding:0 5px 8px 18px}
.enl-enhanced-workshop .enl-enhanced-tools>*{flex:0 0 auto}
.enl-enhanced-workshop .enl-enhanced-tools-title{font:600 .8rem/1.4 system-ui,sans-serif!important;letter-spacing:.06em;text-transform:uppercase;color:var(--escape-muted,#d5c7b0)!important;margin:0!important}
.enl-enhanced-workshop .enl-enhanced-caption{font-size:.88rem!important;line-height:1.5;margin:0!important;color:var(--escape-muted,#d5c7b0)}
.enl-enhanced-workshop .enl-enhanced-guidance{border-top:1px solid var(--escape-line,#887653);padding-top:8px;margin-top:auto;font-size:.9rem;line-height:1.5}
.enl-enhanced-workshop .enl-enhanced-guidance>summary{cursor:pointer;min-height:40px;padding:8px 0;font-weight:600}
.enl-enhanced-workshop .enl-enhanced-guidance>p{font-size:.9rem!important;line-height:1.5!important;margin:7px 0!important}

/* Essential commands are outside the work surface and shelf scroll. */
body[data-enl-enhanced] #dialog.enl-enhanced-dialog .enl-enhanced-workshop>.enl-actions{display:grid!important;grid-template-columns:minmax(150px,1fr) auto minmax(180px,1fr);align-items:center;flex:0 0 auto;position:relative!important;inset:auto;gap:10px;margin:0!important;padding:10px 0!important;background:var(--escape-surface,#211f1b);border-top:1px solid var(--escape-line,#aa9366);box-shadow:none}
body[data-enl-enhanced] #dialog.enl-enhanced-dialog .enl-enhanced-workshop>.enl-actions>.enl-primary{grid-column:3;grid-row:1;justify-self:end;width:auto;min-width:180px}
body[data-enl-enhanced] #dialog.enl-enhanced-dialog .enl-enhanced-workshop>.enl-actions>.enl-actions-secondary{grid-column:2;grid-row:1;display:flex;flex-wrap:nowrap;gap:7px;min-width:0}
body[data-enl-enhanced] #dialog.enl-enhanced-dialog .enl-enhanced-workshop>.enl-actions>.enl-enhanced-return{grid-column:1;grid-row:1;justify-self:start;background:transparent!important;border-color:transparent!important}
body.material-ui[data-enl-enhanced] #dialog.enluminure-dialog.enl-enhanced-dialog .enl-enhanced-workshop>.enl-actions button.enl-action{height:auto!important;min-height:44px!important;min-width:0;padding:9px 14px!important;margin:0!important;font-size:.88rem!important;line-height:1.3;white-space:normal}
.enl-enhanced-workshop .enl-actions [data-command=check] .escape-control-label::after{content:none}
body[data-enl-enhanced] #dialog.enl-enhanced-dialog .enl-actions .escape-control-label{min-width:0;max-width:100%;white-space:normal!important;overflow-wrap:anywhere;word-break:normal}
.enl-enhanced-workshop .enl-enhanced-complete{padding:12px;margin:0!important;border-left:3px solid var(--escape-accent,#dcc086);background:var(--escape-control-surface,#332c21);font-size:.94rem;line-height:1.5}
.enl-enhanced-workshop[data-enhanced-complete="true"] .enl-enhanced-tools button[disabled]{display:none}

/* EN1 keeps the order above one reading or repair surface. */
.enl-enhanced-workshop .enl-enhanced-quire-canvas{overflow:hidden;gap:8px}
.enl-enhanced-order-heading{display:flex;justify-content:space-between;gap:12px;font-size:.86rem;color:var(--escape-muted,#d5c7b0)}
.enl-enhanced-order-heading small{font-size:.78rem}
.enl-enhanced-workshop .enl-quire-order,.enl-enhanced-workshop .qd-order{display:grid;grid-template-columns:repeat(var(--quire-slots,4),minmax(0,1fr));gap:8px;flex:0 0 auto;margin:0;min-width:0}
.enl-enhanced-workshop .enl-quire-slot,.enl-enhanced-workshop .qd-slot{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:72px;margin:0;padding:7px;font-size:.82rem;line-height:1.35;touch-action:none}
.enl-enhanced-workshop .enl-quire-slot-label{font-size:.84rem;line-height:1.3}
.enl-enhanced-workshop .enl-quire-slot-start{font-size:.76rem}
.enl-enhanced-workshop .enl-quire-number,.enl-enhanced-workshop .qd-num{flex:0 0 22px;width:22px;height:22px;font-size:.78rem}
.enl-enhanced-slot-art{width:33px;height:48px;flex:0 0 33px;overflow:hidden}
.enl-enhanced-slot-art .qd-art,.enl-enhanced-slot-art .enl-quire-picture{display:block!important;width:33px!important;height:48px!important;max-height:48px!important;padding:0;margin:0}
.enl-enhanced-slot-art .enl-art{width:100%!important;height:100%!important}
.enl-enhanced-surface-tabs{display:flex;flex:0 0 auto;gap:8px}
.enl-enhanced-surface-tabs>.enl-action{min-height:40px;padding:8px 14px;font-size:.88rem}
.enl-enhanced-quire-surfaces{display:flex;flex:1 1 auto;min-height:0;min-width:0}
.enl-enhanced-reading{display:flex;flex-direction:column;gap:10px;flex:1 1 auto;min-height:0;min-width:0;margin:0;padding:14px;background:#18130e;border:1px solid #8b70484d;border-radius:6px;overflow:hidden}
.enl-enhanced-reading-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto;min-width:0}
.enl-enhanced-page-title{font:500 1.05rem/1.3 Georgia,serif;color:#f5e5c5!important}
.enl-enhanced-reading-modes{display:flex;gap:5px;flex:0 0 auto}
.enl-enhanced-reading-modes>.enl-action{min-height:38px;padding:7px 10px;font-size:.78rem}
.enl-enhanced-page{display:grid;place-items:center;container-type:size;flex:1 1 auto;min-height:0;min-width:0;overflow:hidden}
.enl-enhanced-workshop .enl-enhanced-page>.enl-art,.enl-enhanced-workshop .enl-enhanced-page>.qd-stations{display:block;width:min(100cqw,calc(100cqh * var(--enl-page-ratio,.6)))!important;max-width:none;height:auto!important;max-height:none;min-width:0;margin:0;aspect-ratio:var(--enl-page-ratio,.6);filter:drop-shadow(0 6px 9px #0006)}
.enl-enhanced-transcription{flex:1 1 auto;min-height:0;overflow:auto;max-width:62ch;width:100%;margin:0 auto;padding:clamp(18px,3vw,40px);border:1px solid #ad946a;border-radius:2px;background:#f3e7cb;color:#32251a!important;font:1.1rem/1.75 Georgia,serif;white-space:pre-line}
.enl-enhanced-workshop .qd-comparison{flex:1 1 auto;min-height:0;margin:0;padding:14px;overflow:auto;font-size:.94rem;line-height:1.5}
.enl-enhanced-workshop .qd-comparison p{font-size:.91rem;line-height:1.5;margin:0 0 12px}
.enl-enhanced-workshop .qd-comparison .qd-join-board{max-width:780px;width:100%;margin:12px auto}
.enl-enhanced-workshop .qd-joins{gap:8px}
.enl-enhanced-workshop .qd-joins button{min-height:44px;font-size:.86rem}

/* All cahiers are visible; their selected item has one group of gestures. */
.enl-enhanced-workshop .enl-enhanced-quire-rack{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px;overflow:visible!important;max-width:none;width:100%;padding:3px;margin:0;scroll-snap-type:none}
.enl-enhanced-workshop .enl-enhanced-quire-rack>.enl-quire-card,.enl-enhanced-workshop .enl-enhanced-quire-rack>.qd-leaf{display:block;min-width:0;width:auto;max-width:none;padding:5px;margin:0;background:#f3e8cf;border:1px solid #9f8660;border-radius:4px;overflow:hidden;box-shadow:none}
.enl-enhanced-workshop .enl-enhanced-quire-rack>[data-examined=true]{outline:2px solid var(--escape-accent,#e0be7a);outline-offset:1px}
body[data-enl-enhanced] #dialog.enl-enhanced-dialog .enl-enhanced-quire-rack :is(.qd-choose,.enl-quire-face){display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-width:0;min-height:78px;padding:0!important;outline:0;border:0!important;background:transparent!important;text-align:left;touch-action:none}
.enl-enhanced-workshop .enl-enhanced-quire-rack .qd-art,.enl-enhanced-workshop .enl-enhanced-quire-rack .enl-quire-picture{display:grid!important;place-items:center;flex:0 0 45px;width:45px!important;height:74px!important;max-height:none!important;margin:0;padding:0}
.enl-enhanced-workshop .enl-enhanced-quire-rack .enl-art{width:auto!important;height:74px;max-width:45px;min-width:0}
.enl-enhanced-workshop .enl-enhanced-quire-rack .qd-stations{height:74px;width:42px;margin:0}
.enl-enhanced-workshop .enl-enhanced-quire-rack .qd-choose strong,.enl-enhanced-workshop .enl-enhanced-quire-rack .enl-quire-title{font:600 .84rem/1.3 Georgia,serif;color:#352719!important;overflow-wrap:anywhere}
.enl-enhanced-workshop .enl-enhanced-quire-rack .qd-location{display:none}
.enl-enhanced-selected-tools{display:flex;flex-direction:column;gap:8px;padding-top:10px;border-top:1px solid var(--escape-line,#8b7048)}
.enl-enhanced-selected-name{font:500 1.05rem/1.4 Georgia,serif}
.enl-enhanced-selected-actions{display:flex;gap:8px;flex-wrap:wrap}
.enl-enhanced-selected-actions>.enl-action{flex:1 1 100px;min-height:44px;padding:9px 10px;font-size:.86rem}
.enl-enhanced-selection-status{margin:0!important;font-size:.84rem!important;line-height:1.45;color:var(--escape-muted,#d5c7b0)}
.enl-enhanced-workshop .enl-quire-notes,.enl-enhanced-workshop .qd-help{margin:0;padding:7px 10px;font-size:.88rem;line-height:1.5}
.enl-enhanced-workshop .enl-quire-notes summary,.enl-enhanced-workshop .qd-help summary{min-height:38px;padding:7px 0;font-size:.9rem}

/* Other workshops keep their painted surfaces and original gestures. */
.enl-enhanced-workshop .enl-stage:not(.enl-initial-stage):not(.ms-binding-stage){max-height:100%;width:100%;height:auto}
.enl-enhanced-workshop .enl-initial-viewer{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.enl-enhanced-workshop .enl-initial-frame{width:100%;max-width:100%;min-height:0;margin:auto}
.enl-enhanced-workshop .enl-initial-viewbar{flex:0 0 auto;width:100%;gap:8px;margin-bottom:10px}
.enl-enhanced-workshop .enl-initial-controls{display:flex;flex-wrap:wrap;gap:8px;border:0;padding:0;margin:0}
.enl-enhanced-workshop .enl-initial-controls>.enl-field{width:100%;flex:1 1 100%}
.enl-enhanced-workshop .enl-compact-context{display:grid;gap:8px}
.enl-enhanced-figures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.enl-enhanced-figure{display:flex;flex-direction:column;align-items:center;gap:5px;padding:8px 5px;text-align:center;touch-action:none;cursor:grab}
.enl-enhanced-figure>.enl-art{width:58px;height:77px;max-width:100%}
.enl-enhanced-figure strong{font-size:.79rem;font-weight:600;line-height:1.2}
.enl-enhanced-figure small{font-size:.7rem;line-height:1.3;color:var(--escape-muted,#cabeaa)}
.enl-enhanced-workshop .gold-heading,.enl-enhanced-workshop .gold-steps{flex:0 0 auto}
.enl-enhanced-workshop .gold-steps{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0}
.enl-enhanced-workshop .gold-steps li{min-height:35px;padding:2px 4px}
.enl-enhanced-workshop .gold-visual{display:flex!important;flex-direction:column}
.enl-enhanced-workshop .gold-workpiece{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;margin:0}
.enl-enhanced-workshop .gold-surface{height:100%;min-height:180px;max-height:100%;flex:1 1 auto;cursor:default}
.enl-enhanced-workshop .gold-surface[data-working=true]{cursor:none}
.enl-enhanced-workshop .gold-purpose{max-width:50ch}
.enl-enhanced-workshop .gold-visual .gold-writing-reserve{max-width:520px;margin-top:9px}
.enl-enhanced-workshop .gold-instructions{font-size:.91rem;line-height:1.5}
.enl-enhanced-workshop .gold-tool-card{min-height:76px}
.enl-enhanced-workshop .gold-gesture-zones{gap:6px}
.enl-enhanced-workshop .gold-feedback{min-height:0;padding:9px 10px}
.enl-enhanced-workshop .enl-enhanced-paper-tray{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;overflow:visible;padding:0}
.enl-enhanced-paper-tray>.ms-fragment,.enl-enhanced-paper-tray>.enl-document{width:auto;min-width:0;max-width:100%;margin:0}
.enl-enhanced-paper-tray .ms-fragment-art>.ms-bell-art,.enl-enhanced-paper-tray .enl-art{width:100%!important;max-height:150px;flex:none}
.enl-enhanced-paper-tray .ms-fragment-art>.ms-bell-art{aspect-ratio:3/2}
.enl-enhanced-paper-tray .enl-choice{display:block}
.enl-enhanced-workshop .ms-comparison{min-height:0;border:0;gap:18px;padding:6px 0 16px}
.enl-enhanced-workshop .ms-examined>.enl-art{width:100%;max-width:none;max-height:none}
.enl-enhanced-workshop .ms-order{gap:10px}
.enl-enhanced-workshop .ms-order-slot{flex:1 1 0;min-width:0}
.enl-enhanced-workshop .ms-tools{display:block!important}
.enl-enhanced-workshop .ms-tools>*{margin-bottom:12px}
.enl-enhanced-workshop .ms-binding-stage{max-height:100%;min-height:200px;width:auto;max-width:100%;overflow:hidden}
.enl-enhanced-workshop .enl-enhanced-canvas>.ms-sewing-desk{align-self:stretch;width:100%}
.enl-enhanced-workshop .ms-binding-comparison{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:15px}
.enl-enhanced-workshop .ms-binding-comparison .ms-witness-faces{grid-template-columns:repeat(2,minmax(0,1fr))}
.enl-enhanced-workshop .enl-selected-document{grid-template-columns:minmax(140px,35%) minmax(0,1fr);gap:20px;align-items:center}
.enl-enhanced-workshop .enl-selected-document .enl-document-art{max-height:480px}
.enl-enhanced-ghost{position:fixed!important;left:0!important;top:0!important;width:150px!important;height:auto!important;max-height:240px!important;pointer-events:none!important;z-index:2147483000;opacity:.93;filter:drop-shadow(3px 8px 7px #0007);margin:0!important}
body[data-enl-enhanced] .enl-review-link{font-size:.85rem;min-height:42px;padding:9px 13px;border:1px solid var(--escape-line,#a38c61);border-radius:6px;background:var(--escape-control-surface,#30291f);color:var(--escape-ink,#f8f0dc);cursor:pointer}
body[data-enl-enhanced] .enl-review-label{font-size:.72rem;text-transform:uppercase;letter-spacing:.11em;color:var(--escape-muted,#d6c7ad);margin:0 0 10px}
body[data-enl-enhanced] .enl-review-levels{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
body[data-enl-enhanced] .enl-review-levels button[aria-pressed="true"]{outline:2px solid var(--escape-accent,#d9b567);outline-offset:1px}
body[data-enl-enhanced] .enl-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body[data-enl-enhanced] .enl-review-card{display:flex;gap:14px;align-items:center;text-align:left;padding:16px;border:1px solid var(--escape-line,#a38c61);border-radius:8px;background:var(--escape-control-surface,#30291f);color:var(--escape-ink,#f8f0dc);font:inherit;cursor:pointer;min-height:95px}
body[data-enl-enhanced] .enl-review-card>.enl-art{width:75px;height:70px;flex:0 0 75px}
body[data-enl-enhanced] .enl-review-card strong{display:block;font:500 1.1rem/1.3 Georgia,serif;margin-bottom:4px}
body[data-enl-enhanced] .enl-review-card small{display:block;font-size:.8rem;line-height:1.4;color:var(--escape-muted,#d6c7ad)}
body[data-enl-enhanced] .enl-review-card:disabled{opacity:.45;cursor:default}
body[data-enl-enhanced] .enl-review-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin:0 0 12px}
body[data-enl-enhanced] .enl-review-feedback{font-size:.92rem;line-height:1.5;padding:10px 14px;border-left:3px solid var(--escape-accent,#d9b567);margin:10px 0 0;background:var(--escape-control-surface,#30291f)}

.enl-review-toolbar{flex:0 0 auto;margin:0}
.enl-review-toolbar .enl-review-label{margin:0}
.enl-keyboard-target{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);max-width:90%;padding:9px 16px;background:#241d17ed;border:1px solid #c6ac72;border-radius:6px;color:#fff4dc;z-index:30;pointer-events:none;font:16px/1.4 system-ui,sans-serif;text-align:center}
.enl-keyboard-target[hidden]{display:none}
@media(max-width:1000px){
 .enl-enhanced-workshop .enl-enhanced-columns{grid-template-columns:minmax(0,1fr) 260px!important;gap:14px}
 .enl-enhanced-workshop .enl-enhanced-tools{padding-left:12px}
 .enl-enhanced-reading-head{flex-wrap:wrap;gap:6px}
 body[data-enl-enhanced] #dialog.enl-enhanced-dialog .enl-enhanced-workshop>.enl-actions{grid-template-columns:1fr auto 1fr;gap:7px}
 body.material-ui[data-enl-enhanced] #dialog.enluminure-dialog.enl-enhanced-dialog .enl-enhanced-workshop>.enl-actions button.enl-action{font-size:.8rem!important;padding:8px!important}
}
@media(max-width:699px) and (orientation:portrait){
 body[data-enl-enhanced] #dialog.enluminure-dialog.enl-enhanced-dialog[open]{width:100vw!important;height:100dvh!important;margin:0!important;border:0;border-radius:0}
 body[data-enl-enhanced] #dialog.enl-enhanced-dialog>.modal-head{min-height:54px;padding:10px 12px!important}
 body[data-enl-enhanced] #dialog.enl-enhanced-dialog>.modal-body{padding:8px 12px 0!important}
 .enl-enhanced-workshop{gap:8px}
 .enl-enhanced-workshop .enl-enhanced-columns{display:flex!important;flex-direction:column;gap:16px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
 .enl-enhanced-workshop .enl-enhanced-canvas{flex:0 0 auto;overflow:visible;min-height:0}
 .enl-enhanced-workshop .enl-enhanced-tools{flex:0 0 auto;max-height:none;overflow:visible;border-left:0;border-top:1px solid var(--escape-line,#a78e60);padding:12px 0 10px}
 .enl-enhanced-workshop .enl-enhanced-quire-canvas{overflow:visible}
 .enl-enhanced-workshop .enl-quire-slot,.enl-enhanced-workshop .qd-slot{flex-direction:column;min-height:62px;gap:3px;padding:6px 4px;font-size:.74rem}
 .enl-enhanced-slot-art{display:none}
 .enl-enhanced-workshop .enl-quire-slot-label{font-size:.76rem}
 .enl-enhanced-workshop .enl-enhanced-quire-surfaces{height:clamp(230px,32dvh,340px);flex:0 0 auto}
 .enl-enhanced-reading{padding:10px;gap:8px}
 .enl-enhanced-reading-head{flex-wrap:nowrap}
 .enl-enhanced-page-title{font-size:.94rem}
 .enl-enhanced-reading-modes>.enl-action{min-height:36px;font-size:.72rem;padding:7px}
 .enl-enhanced-transcription{font-size:1rem;padding:18px;line-height:1.65}
 .enl-enhanced-workshop .enl-enhanced-quire-rack{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body[data-enl-enhanced] #dialog.enl-enhanced-dialog .enl-enhanced-quire-rack :is(.qd-choose,.enl-quire-face){flex-direction:column;min-height:94px;gap:4px;text-align:center}
 .enl-enhanced-workshop .enl-enhanced-quire-rack .qd-art,.enl-enhanced-workshop .enl-enhanced-quire-rack .enl-quire-picture{flex:0 0 60px;height:60px!important}
 .enl-enhanced-workshop .enl-enhanced-quire-rack .enl-art{height:60px;max-width:40px}
 body[data-enl-enhanced] #dialog.enl-enhanced-dialog .enl-enhanced-workshop>.enl-actions{grid-template-columns:1fr 1fr;gap:6px;padding:8px 0 max(8px,env(safe-area-inset-bottom))!important}
 body[data-enl-enhanced] #dialog.enl-enhanced-dialog .enl-enhanced-workshop>.enl-actions>.enl-primary{grid-column:2;grid-row:1;width:100%;min-width:0}
 body[data-enl-enhanced] #dialog.enl-enhanced-dialog .enl-enhanced-workshop>.enl-actions>.enl-enhanced-return{grid-column:1;grid-row:1;width:100%}
 body[data-enl-enhanced] #dialog.enl-enhanced-dialog .enl-enhanced-workshop>.enl-actions>.enl-actions-secondary{grid-column:1/-1;grid-row:2;display:flex;justify-content:center;gap:6px}
 .enl-enhanced-workshop .enl-actions-secondary>.enl-action{flex:1 1 0}
 .enl-enhanced-workshop .gold-surface{height:40dvh;min-height:220px}
 .enl-enhanced-workshop .gold-purpose{display:none}
 .enl-enhanced-workshop .gold-steps li{font-size:.68rem;gap:4px}
 .enl-enhanced-workshop .ms-binding-stage{height:48dvh!important;min-height:240px}
 .enl-enhanced-workshop .ms-binding-comparison{grid-template-columns:minmax(0,1fr)}
 .enl-review-grid{grid-template-columns:minmax(0,1fr)}
 .enl-review-toolbar .enl-review-label{font-size:.65rem}
}
@media(orientation:landscape) and (max-height:520px){
 body[data-enl-enhanced] #dialog.enl-enhanced-dialog>.modal-head{min-height:45px;padding:6px 12px!important}
 body[data-enl-enhanced] #dialog.enl-enhanced-dialog>.modal-body{padding:5px 12px 0!important;gap:5px}
 .enl-enhanced-workshop .enl-quire-slot,.enl-enhanced-workshop .qd-slot{min-height:42px;padding:4px}
 .enl-enhanced-workshop .enl-enhanced-quire-canvas{overflow:auto;overscroll-behavior:contain}
 .enl-enhanced-workshop .enl-enhanced-quire-surfaces{height:max(300px,76dvh);flex:0 0 auto}
 .enl-enhanced-slot-art{display:none}
 .enl-enhanced-reading{padding:8px;gap:5px}
 .enl-enhanced-reading-head{flex-wrap:nowrap}
 .enl-enhanced-reading-modes>.enl-action{min-height:32px;padding:5px 7px}
 .enl-enhanced-page-title{font-size:.9rem}
 .enl-enhanced-workshop .gold-heading,.enl-enhanced-order-heading{display:none}
 body[data-enl-enhanced] #dialog.enl-enhanced-dialog .enl-enhanced-workshop>.enl-actions{padding:6px 0!important}
}
@media(prefers-reduced-motion:reduce){.enl-enhanced-workshop *, .enl-review-grid *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(any-pointer:coarse){
 body[data-enl-enhanced] #dialog.enl-enhanced-dialog .enl-enhanced-workshop :is(button.enl-action,summary,input,select){min-height:44px!important}
 body[data-enl-enhanced] #dialog.enl-enhanced-dialog .enl-enhanced-workshop button.enl-action{min-width:44px}
 body[data-enl-enhanced] .enl-review-link{min-height:44px}
}
