/* Four bounded native visual pilots. Load after the existing edition styles.
   Reader type continues to inherit; source geometry and controllers are unchanged. */
:is(#p005-03,#p065-v01,#p065-v02,#lhv-p099-3){
  --ld6-ink:#242528;
  --ld6-muted:#68696d;
  --ld6-line:#deded9;
  --ld6-stage:#f6f6f2;
  --ld6-yellow:#f4ef3b;
}
:is(#p005-03,#p065-v01,#p065-v02) .lu4-productbar{padding:16px 20px;gap:12px}
:is(#p005-03,#p065-v01,#p065-v02) .lu4-facts{padding:12px 20px;margin:0;background:var(--ld6-stage);border-bottom:1px solid var(--ld6-line)}
:is(#p005-03,#p065-v01,#p065-v02) .lu4-facts>div{display:flex;flex-wrap:wrap;gap:4px 16px;padding:0}
:is(#p005-03,#p065-v01,#p065-v02) .lu4-facts dt{color:var(--ld6-muted)}
:is(#p005-03,#p065-v01,#p065-v02) .lu4-facts dd{flex:1 1 18em}
:is(#p005-03,#p065-v01,#p065-v02) .lu4-action{border-radius:8px;padding:12px 16px;min-height:48px}
:is(#p005-03,#p065-v01,#p065-v02) .lu4-action--secondary{border-color:var(--ld6-line);background:#fff}

/* Perception board: the same SVG is uniformly fitted, with its original-unit
   disclosure retained. Center the 12-shape group within the original viewBox;
   the stage crops only blank SVG margins, never a shape or reading alternative. */
#p005-03 .lu4-product{max-width:40em;margin-inline:auto}
#p005-03 .lu4-productbar{border-bottom:0}
#p005-03 .lu4-workspace{padding:0}
#p005-03 .lu4-stage{gap:0}
#p005-03 .p005-array{display:grid;place-items:center;width:100%;max-width:none;height:288px;margin:0;overflow:hidden;background:var(--ld6-stage)}
#p005-03 .p005-array svg{display:block;width:100%;max-width:480px;height:auto;transform:translateX(5%)}
#p005-03 .lu4-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:12px 20px 16px;margin:0;background:var(--ld6-stage)}
#p005-03 .lu4-action{border:1px solid #b9bab4;border-radius:0;margin-left:-1px;background:#fff;color:var(--ld6-ink)}
#p005-03 .lu4-action:first-child{border-radius:10px 0 0 10px;margin-left:0}
#p005-03 .lu4-action:last-child{border-radius:0 10px 10px 0;background:#eeeee8}
#p005-03 [data-lu4-action][aria-pressed="true"]{position:relative;border-color:var(--ld6-ink);background:var(--ld6-ink);color:#fff;z-index:1}
#p005-03 .p005-description{padding:16px 20px 0;margin:0;border-top:1px solid var(--ld6-line)}
#p005-03 .p005-matrix{padding:0 20px 8px;margin:0}
#p005-03 .p005-static{padding:16px 20px;border-top:1px solid var(--ld6-line)}
#p005-03 .p005-static>div{gap:20px}
#p005-03 .p005-static>div>section{min-width:0;background:var(--ld6-stage);padding:12px;border-radius:10px}
#p005-03 .p005-static svg{max-width:360px;display:block;margin-inline:auto}

/* File workbench: navigator, paper document, then a compact O/C inspector.
   S gets one route arrow; C alone gets a second-document silhouette. */
:is(#p065-v01,#p065-v02) .lu4-workspace{padding:20px}
:is(#p065-v01,#p065-v02) .lu4-stage{gap:16px}
:is(#p065-v01,#p065-v02) .p065-workspace{grid-template-columns:minmax(220px,.6fr) minmax(0,1.4fr);border-color:var(--ld6-line);border-radius:12px;background:var(--ld6-stage)}
:is(#p065-v01,#p065-v02) .p065-files{padding:16px 12px;background:#fff}
:is(#p065-v01,#p065-v02) .p065-files h4{font-size:1em;margin:0 8px 12px;font-weight:650}
:is(#p065-v01,#p065-v02) .p065-files ul{gap:4px}
:is(#p065-v01,#p065-v02) .p065-files button{position:relative;display:grid;grid-template-columns:32px minmax(0,1fr);gap:2px 12px;padding:12px 8px;min-height:72px;border:1px solid transparent;border-radius:8px;background:transparent;line-height:1.5;color:var(--ld6-ink)}
:is(#p065-v01,#p065-v02) .p065-files button[aria-pressed="true"]{border-color:#d1d0b8;background:#f5f4d9;box-shadow:inset 3px 0 var(--ld6-yellow)}
:is(#p065-v01,#p065-v02) .p065-files button:disabled{color:var(--ld6-ink)}
:is(#p065-v01,#p065-v02) .p065-files strong{grid-column:2;grid-row:1;font-weight:650}
:is(#p065-v01,#p065-v02) .p065-files button>span{grid-column:2;grid-row:2;font-size:1em;line-height:1.5;color:var(--ld6-muted)}
:is(#p065-v01,#p065-v02) .p065-files small{grid-column:2;grid-row:3;font-size:1em;line-height:1.5;color:var(--ld6-muted)}
:is(#p065-v01,#p065-v02) .p065-file-icon{grid-column:1;grid-row:1/4;align-self:start;position:relative;display:block;width:26px;height:32px;margin-top:3px;border:1px solid #989995;border-radius:3px;background:linear-gradient(#b7b8b2,#b7b8b2) 6px 10px/12px 1px no-repeat,linear-gradient(#c9cac4,#c9cac4) 6px 15px/12px 1px no-repeat,#fff}
:is(#p065-v01,#p065-v02) .p065-file-icon--original{border-top:3px solid var(--ld6-ink)}
:is(#p065-v01,#p065-v02) .p065-file-icon--shortcut{border-color:#b9bab4;background:#f6f6f2}
:is(#p065-v01,#p065-v02) .p065-file-icon--shortcut::after{content:"↗";position:absolute;left:-5px;bottom:-4px;display:grid;place-items:center;width:21px;height:21px;border:1px solid #a4a59f;border-radius:4px;background:#fff;color:var(--ld6-ink);font-family:Outfit,sans-serif;font-size:18px;font-style:normal;line-height:1}
:is(#p065-v01,#p065-v02) .p065-file-icon--copy{isolation:isolate}
:is(#p065-v01,#p065-v02) .p065-file-icon--copy::before{content:"";position:absolute;inset:-5px 4px 4px -5px;border:1px solid #b9bab4;border-radius:3px;background:#eeeee8;z-index:-1}
:is(#p065-v01,#p065-v02) .p065-document{padding:16px;background:var(--ld6-stage);border-left-color:var(--ld6-line)}
:is(#p065-v01,#p065-v02) .p065-documentbar{align-items:baseline;padding:0 0 12px;margin:0;border:0;gap:4px 12px}
:is(#p065-v01,#p065-v02) .p065-documentbar>span{font-size:1em}
:is(#p065-v01,#p065-v02) .p065-documentbar strong{font-weight:650}
:is(#p065-v01,#p065-v02) .p065-paper{position:relative;min-width:0;padding:20px;border:1px solid #d7d8d1;background:#fff;box-shadow:0 3px 0 #e5e6df}
:is(#p065-v01,#p065-v02) .p065-paper h4{font-size:1.125em;font-weight:650;margin:0 0 16px}
:is(#p065-v01,#p065-v02) .p065-paper caption{font-size:1em;line-height:1.6;margin:0 0 12px;color:var(--ld6-muted)}
:is(#p065-v01,#p065-v02) .p065-paper th,:is(#p065-v01,#p065-v02) .p065-paper td{padding:8px 0;vertical-align:middle}
:is(#p065-v01,#p065-v02) .p065-paper th:first-child{width:28%}
:is(#p065-v01,#p065-v02) .p065-paper thead th:last-child,:is(#p065-v01,#p065-v02) .p065-paper td{width:72%;text-align:right}
:is(#p065-v01,#p065-v02) .p065-paper [data-p065-amount]{font-family:Outfit,Pretendard,sans-serif;font-size:1.65em;line-height:1.5;letter-spacing:-.02em;font-weight:500}
:is(#p065-v01,#p065-v02) .p065-current-record{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 0;padding:0 0 12px;border-color:var(--ld6-line);background:transparent}
:is(#p065-v01,#p065-v02) .p065-current-record>span{display:grid;gap:2px;align-content:start}
:is(#p065-v01,#p065-v02) .p065-current-record strong{display:block;font-family:Outfit,Pretendard,sans-serif;font-size:1.125em;font-weight:500}
:is(#p065-v01,#p065-v02) [data-p065-relationship]{font-size:1em;line-height:1.6;margin:12px 0 0}
:is(#p065-v01,#p065-v02) .p065-shortcut-removed{font-size:1em;padding:8px;margin:4px 0 0}
:is(#p065-v01,#p065-v02) .lu4-actions{margin:0;gap:8px;align-items:stretch}
:is(#p065-v01,#p065-v02) .lu4-action--primary{flex:1 1 18em;max-width:30em}
:is(#p065-v01,#p065-v02) .lu4-action--secondary{flex:0 1 auto}
:is(#p065-v01,#p065-v02) .p065-observation-record{margin:0;padding:12px 16px;border:0;border-radius:8px;background:var(--ld6-stage)}
:is(#p065-v01,#p065-v02) .p065-observation-record p{margin:0}
:is(#p065-v01,#p065-v02) .p065-source-sequence,:is(#p065-v01,#p065-v02) .p065-original-observation{margin:0;border-top:1px solid var(--ld6-line)}
:is(#p065-v01,#p065-v02) .p065-copy-documents>section>span{font-size:1em}

/* Evidence inspector: answer across the top, one readable source below it.
   The unsearched current notice remains an explicit, subdued unknown state. */
#lhv-p099-3{padding:0;border:0;background:transparent}
#lhv-p099-3>figcaption{margin-bottom:16px}
#lhv-p099-3 .lhv-citation{display:block;border:1px solid var(--ld6-line);border-radius:16px;overflow:hidden;background:#fff}
#lhv-p099-3 .lhv-answer{padding:20px 24px;border:0;border-bottom:1px solid var(--ld6-line);background:var(--ld6-stage)}
#lhv-p099-3 .lhv-answer>strong{display:block;font-size:1.125em;line-height:1.55}
#lhv-p099-3 .lhv-answer>p{margin:8px 0;line-height:1.6}
#lhv-p099-3 .lhv-answer>p:first-of-type{font-size:1.35em;font-weight:500}
#lhv-p099-3 .lhv-answer>p:nth-of-type(2){color:var(--ld6-muted)}
#lhv-p099-3 .lhv-citation-links{display:flex;flex-wrap:wrap;gap:4px 24px;margin-top:12px}
#lhv-p099-3 .lhv-citation a{min-height:44px;color:var(--ld6-ink);text-underline-offset:4px}
#lhv-p099-3 .lhv-citation-source{padding:24px;min-width:0}
#lhv-p099-3 .lhv-passage{padding:0;border:0}
#lhv-p099-3 .lhv-document-line{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;padding-bottom:12px;border-bottom:1px solid var(--ld6-line);color:var(--ld6-muted)}
#lhv-p099-3 .lhv-passage h5{font-size:1.125em;line-height:1.55;margin:16px 0 12px}
#lhv-p099-3 .lhv-excerpt-lines{margin:0;padding-left:1.6em}
#lhv-p099-3 .lhv-excerpt-lines li{padding:12px 8px;border-color:var(--ld6-line)}
#lhv-p099-3 .lhv-excerpt-lines p{line-height:1.7}
#lhv-p099-3 .lhv-excerpt-scope{margin:16px 0 8px;padding:0;line-height:1.7;color:var(--ld6-muted)}
#lhv-p099-3 .lhv-unsearched{padding:16px 20px;margin-top:20px;border:1px dashed #b9bab4;border-radius:10px;background:var(--ld6-stage)}
#lhv-p099-3 .lhv-unsearched>strong{display:block;line-height:1.6}
#lhv-p099-3 .lhv-unsearched p{margin:8px 0 0;line-height:1.7}
#lhv-p099-3 .lhv-unsearched p:first-of-type{color:var(--ld6-muted)}
#lhv-p099-3>.lhv-source{margin-top:16px;padding-top:12px}

@media(max-width:760px){
  :is(#p005-03,#p065-v01,#p065-v02) .lu4-productbar{padding:16px}
  :is(#p005-03,#p065-v01,#p065-v02) .lu4-facts{padding:12px 16px}
  #p005-03 .p005-array{height:216px}
  #p005-03 .p005-array svg{max-width:400px}
  #p005-03 .lu4-actions{padding:8px 16px 16px;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 0}
  #p005-03 .lu4-action:nth-child(2){border-radius:0 10px 10px 0}
  #p005-03 .lu4-action:last-child{grid-column:1/-1;justify-self:center;margin:0;padding:8px 16px;border-radius:8px;border-color:transparent;background:transparent}
  #p005-03 .p005-description{padding:16px 16px 0}
  #p005-03 .p005-matrix{padding-inline:16px}
  #p005-03 .p005-static{padding:16px}
  #p005-03 .p005-static>div>section{max-width:none}
  :is(#p065-v01,#p065-v02) .lu4-workspace{padding:16px}
  :is(#p065-v01,#p065-v02) .p065-workspace{grid-template-columns:minmax(0,1fr)}
  :is(#p065-v01,#p065-v02) .p065-files{padding:12px}
  :is(#p065-v01,#p065-v02) .p065-files button{grid-template-columns:28px minmax(0,1fr) auto;gap:2px 8px;padding:10px 8px}
  :is(#p065-v01,#p065-v02) .p065-files button>span{grid-column:3;grid-row:1}
  :is(#p065-v01,#p065-v02) .p065-files small{grid-column:2/-1;grid-row:2}
  :is(#p065-v01,#p065-v02) .p065-file-icon{grid-row:1/3;width:24px;height:29px}
  :is(#p065-v01,#p065-v02) .p065-document{padding:16px;border-left:0;border-top:1px solid var(--ld6-line)}
  :is(#p065-v01,#p065-v02) .p065-paper{padding:16px}
  :is(#p065-v01,#p065-v02) .lu4-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  :is(#p065-v01,#p065-v02) .lu4-action--primary{grid-column:1/-1;width:100%;max-width:none}
  #p065-v01 [data-lu4-action="reset"]{grid-column:1/-1;justify-self:start;border-color:transparent}
  #lhv-p099-3 .lhv-answer{padding:20px 16px}
  #lhv-p099-3 .lhv-citation-source{padding:20px 16px}
  #lhv-p099-3 .lhv-citation-links{gap:4px 16px}
  #lhv-p099-3 .lhv-excerpt-lines li{padding:12px 4px}
  #lhv-p099-3 .lhv-unsearched{padding:16px}
}
@media(max-width:360px){
  #p005-03 .p005-array{height:184px}
  :is(#p065-v01,#p065-v02) .p065-files button{grid-template-columns:28px minmax(0,1fr)}
  :is(#p065-v01,#p065-v02) .p065-files button>span{grid-column:2;grid-row:2}
  :is(#p065-v01,#p065-v02) .p065-files small{grid-column:2;grid-row:3}
  :is(#p065-v01,#p065-v02) .p065-file-icon{grid-row:1/4}
  :is(#p065-v01,#p065-v02) .p065-document{padding:12px}
  :is(#p065-v01,#p065-v02) .p065-paper{padding:12px}
  :is(#p065-v01,#p065-v02) .p065-current-record{grid-template-columns:minmax(0,1fr);gap:8px}
  :is(#p065-v01,#p065-v02) .p065-current-record>span{display:flex;flex-wrap:wrap;gap:4px 8px}
  :is(#p065-v01,#p065-v02) .lu4-actions{grid-template-columns:minmax(0,1fr)}
  :is(#p065-v01,#p065-v02) .lu4-action{grid-column:1;width:100%;justify-self:stretch}
}
@media print{
  #p005-03 .p005-array{display:none}
  #p005-03 .lu4-actions{display:none}
  :is(#p065-v01,#p065-v02) .lu4-actions{display:none}
  :is(#p065-v01,#p065-v02) .p065-workspace{grid-template-columns:minmax(0,1fr)}
  :is(#p065-v01,#p065-v02) .p065-paper{box-shadow:none}
  #lhv-p099-3 .lhv-citation{overflow:visible}
  #lhv-p099-3 .lhv-answer,#lhv-p099-3 .lhv-passage,#lhv-p099-3 .lhv-unsearched{break-inside:avoid}
}
