/* DNA Protocol Transparency: ruled workbench layer. Loaded last. Index route only. */
:root{--zt-bg:#0a1120;--zt-surface:#101b31;--zt-well:#070d19;--zt-ink:#eef3fb;--zt-muted:#b9c8dc;--zt-rule:rgba(155,231,255,.16);--zt-rule-strong:rgba(155,231,255,.38);--zt-accent:#9be7ff;--zt-accent-ink:#06121f;--zt-accent-soft:rgba(155,231,255,.1);--zt-caution:#e3bd6a;--zt-r-surface:4px;--zt-r-control:6px}

/* 1. Shell: flat ruled header, compact intro band */
.site-header{border-bottom:1px solid var(--zt-rule);box-shadow:none}
.site-header nav a.nav-active{color:var(--zt-ink);box-shadow:inset 0 -2px 0 var(--zt-accent)}
.site-header .network-pill{border:1px solid var(--zt-rule-strong);border-radius:var(--zt-r-surface);background:transparent}
.site-header .icon-button,.input-wrap .icon-button,#guide-dialog .icon-button{border-radius:var(--zt-r-control)}
.page-shell .intro{display:grid;grid-template-columns:minmax(0,1fr);align-items:end;gap:12px;padding-block:16px 14px;min-height:0}
.page-shell .intro h1{margin:8px 0 0;font-size:clamp(1.875rem,8.6vw,2.375rem);line-height:1.06}
.page-shell .intro-aside{min-width:0}
.page-shell .intro-aside p{margin:6px 0 10px;font-size:15px;line-height:1.55;color:var(--zt-muted)}
.page-shell .intro-aside p strong{color:var(--zt-ink)}
.page-shell .intro-rule{padding-top:10px;border-top:1px solid var(--zt-rule);font-size:13px;color:var(--zt-muted)}

/* 2. Workbench frame: squared, ruled, one raised task surface */
.page-shell .lab{border:1px solid var(--zt-rule-strong);border-radius:var(--zt-r-surface);background:var(--zt-bg);box-shadow:none}
.page-shell .lab-topline,.page-shell .lab-bottomline{padding-block:10px;background:transparent;color:var(--zt-muted)}
.page-shell .lab-topline{border-bottom:1px solid var(--zt-rule)}
.page-shell .lab-bottomline{border-top:1px solid var(--zt-rule);align-items:center}
.page-shell .lab-bottomline a{color:var(--zt-accent)}
.page-shell .input-panel{padding:20px 16px 22px;background:var(--zt-surface)}
.page-shell .layer-viewer{padding:18px 16px 20px;background:var(--zt-bg)}
.page-shell .input-kicker{margin-bottom:12px;color:var(--zt-muted)}
.page-shell .input-panel h2{margin:0;padding-bottom:14px;border-bottom:2px solid var(--zt-ink);font-size:clamp(1.375rem,1rem + 1.6vw,2rem);line-height:1.15;color:var(--zt-ink)}
.page-shell .input-intro{margin:12px 0 20px;max-width:46ch;font-size:15px;line-height:1.55;color:var(--zt-muted)}

/* 3. Inspection form */
#inspect-form .field-label{margin-bottom:8px}
#inspect-form .field-label label{color:var(--zt-ink)}
#inspect-form .input-wrap{border:1px solid var(--zt-rule-strong);border-radius:var(--zt-r-control);background:var(--zt-well);box-shadow:none}
#inspect-form .input-wrap input{color:var(--zt-ink)}
#inspect-form .input-hint{margin:8px 0 0;color:var(--zt-muted)}
#inspect-form .primary-button{width:100%;margin-top:16px;border:1px solid var(--zt-accent);border-radius:var(--zt-r-control);background:var(--zt-accent);color:var(--zt-accent-ink);box-shadow:none}
.input-panel .progress-panel,.input-panel .request-error{border-radius:var(--zt-r-surface)}
.page-shell .example-row{margin-top:20px;padding-top:16px;border-top:1px solid var(--zt-rule);border-bottom:0}
.page-shell .example-row>span{display:block;margin-bottom:8px;color:var(--zt-muted)}
#example-button{display:flex;align-items:center;gap:12px;width:100%;padding:10px 14px;border:1px solid var(--zt-rule-strong);border-radius:var(--zt-r-control);background:transparent;text-align:left;transition:border-color .15s ease,background-color .15s ease}
#example-button:hover{border-color:var(--zt-accent);background:var(--zt-accent-soft)}
#example-button>span:first-of-type{flex:1;min-width:0}
#example-button small{display:block;color:var(--zt-muted)}
.page-shell .input-boundary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin-top:16px;padding:0;border-block:1px solid var(--zt-rule);color:var(--zt-ink)}
.page-shell .input-boundary>div{display:flex;align-items:center;gap:8px;min-width:0;padding:10px 0}
.page-shell .input-boundary>div+div{padding-left:14px;border-left:1px solid var(--zt-rule)}
.page-shell .input-privacy{margin:14px 0 0;padding:9px 12px;border-left:2px solid var(--zt-accent);background:var(--zt-accent-soft);font-size:13px;line-height:1.5;color:var(--zt-ink)}

/* 4. Viewer: secondary column, segmented controls, ruled notice */
.page-shell .viewer-heading{padding-bottom:10px;border-bottom:1px solid var(--zt-rule);color:var(--zt-muted)}
.page-shell .showcase-toggle{border-radius:var(--zt-r-control)}
.page-shell .viewer-tools,.page-shell .layer-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:0;border:1px solid var(--zt-rule-strong);border-radius:var(--zt-r-control);background:transparent;overflow:hidden}
.page-shell .viewer-tools button,.page-shell .layer-controls button{border:0;border-radius:0;background:transparent;color:var(--zt-ink);box-shadow:none}
.page-shell .viewer-tools button+button,.page-shell .layer-controls button+button{border-left:1px solid var(--zt-rule)}
.page-shell .viewer-tools button:hover,.page-shell .layer-controls button:hover{background:var(--zt-accent-soft)}
.page-shell .viewer-tools button[aria-pressed='true']{background:var(--zt-accent-soft);color:var(--zt-accent)}
.page-shell .layer-controls button[aria-pressed='true']{background:var(--zt-accent);color:var(--zt-accent-ink)}
.page-shell .layer-controls button[aria-pressed='true'] span{color:inherit}
.page-shell .viewer-tools button:focus-visible,.page-shell .layer-controls button:focus-visible{outline-offset:-3px}
.page-shell .viewer-caption{display:flex;justify-content:space-between;margin:14px 0;padding:8px 0;border-block:1px solid var(--zt-rule);color:var(--zt-muted)}
.page-shell .layer-explanation{margin-top:16px}
.page-shell .layer-explanation h2{margin:0 0 6px;font-size:18px;line-height:1.3}
.page-shell .layer-explanation p{margin:0;max-width:62ch;font-size:14px;line-height:1.6}

/* 5. Results, method, boundary, session: flat ruled sections */
.page-shell #results{margin-top:28px;padding-top:20px;border-top:2px solid var(--zt-ink)}
.page-shell #results :where(pre,code){font-size:13px;line-height:1.55}
.page-shell .method-section{display:block;margin-top:40px;padding-block:0}
.page-shell .method-heading{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding-bottom:14px;border-bottom:2px solid var(--zt-ink)}
.page-shell .method-heading h2{margin:0;font-size:clamp(1.5rem,1.1rem + 1.6vw,2.125rem);line-height:1.15}
.page-shell .method-heading .quiet-link{justify-self:start}
.page-shell .method-list{display:grid;grid-template-columns:minmax(0,1fr);border:0}
.page-shell .method-list article{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:start;padding:18px 0;border:0;border-bottom:1px solid var(--zt-rule)}
.page-shell .method-list h3{margin:0 0 6px;font-size:17px;line-height:1.3}
.page-shell .method-list p{margin:0;color:var(--zt-muted)}
.page-shell .boundary-note{margin-top:32px;border:1px solid var(--zt-rule);border-left:3px solid var(--zt-caution);border-radius:var(--zt-r-surface);background:rgba(227,189,106,.06);box-shadow:none}
.page-shell .boundary-note .boundary-asterisk{color:var(--zt-caution)}
.page-shell .boundary-note p{color:var(--zt-ink)}
.page-shell .recent-section{margin-top:32px;padding-top:18px;border-top:1px solid var(--zt-rule-strong)}
.page-shell .recent-section>p{font-size:13px;color:var(--zt-muted)}
.site-footer{border-top:1px solid var(--zt-rule)}

/* Guide dialog: squared document, ruled items (open/closed display untouched) */
#guide-dialog{border:1px solid var(--zt-rule-strong);border-radius:var(--zt-r-surface);background:var(--zt-surface);box-shadow:none}
#guide-dialog .dialog-heading{padding-bottom:10px;border-bottom:1px solid var(--zt-rule)}
#guide-dialog .guide-item{padding-block:14px;border:0;border-top:1px solid var(--zt-rule)}
#guide-dialog .guide-note{padding:10px 14px;border:0;border-left:3px solid var(--zt-caution);border-radius:0;background:rgba(227,189,106,.06);color:var(--zt-ink)}

/* Desktop: use the width */
@media (min-width:901px){
  .page-shell .intro{grid-template-columns:minmax(0,1fr) minmax(260px,360px);gap:32px;padding-block:28px 22px}
  .page-shell .intro h1{font-size:clamp(2.5rem,4vw,3.5rem)}
  .page-shell .input-panel{padding:28px 32px 30px}
  .page-shell .layer-viewer{padding:24px 28px 26px}
  .page-shell .lab-topline,.page-shell .lab-bottomline{padding-inline:32px}
  .page-shell .method-heading{grid-template-columns:minmax(0,1fr) auto;align-items:end}
  .page-shell .method-heading .eyebrow{grid-column:1 / -1}
  .page-shell .method-heading .quiet-link{justify-self:end}
}
@media (min-width:1000px){
  .page-shell .method-list{grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--zt-rule)}
  .page-shell .method-list article{padding:22px 24px 24px 0;border-bottom:0}
  .page-shell .method-list article+article{padding-left:24px;border-left:1px solid var(--zt-rule)}
}
@media (min-width:1280px){
  .page-shell .lab-body{grid-template-columns:minmax(440px,520px) minmax(0,1fr)}
}
@media (max-width:350px){
  .page-shell .input-boundary>div+div{padding-left:10px}
  .page-shell .viewer-caption{display:block}
  .page-shell .viewer-caption span{display:block}
}
@media (prefers-reduced-motion:reduce){
  #example-button{transition:none}
}
