/* Art direction: navy/orange academic workspace with restrained translucent liquid-glass overlays. */
:root,[data-theme="light"]{--bg:#f7f6f2;--panel:#fff;--ink:#192642;--muted:#576278;--line:#dcdfe5;--accent:#ce5100;--glass:rgba(255,255,255,.64);--glass-edge:rgba(255,255,255,.88);--hover:#fff0e3;--input:rgba(255,255,255,.72)}[data-theme="dark"]{--bg:#111827;--panel:#1b263b;--ink:#edf2fc;--muted:#bcc8da;--line:#39465c;--accent:#ff9a50;--glass:rgba(27,38,59,.73);--glass-edge:rgba(207,223,246,.28);--hover:#453526;--input:rgba(24,34,53,.8)}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6 system-ui,-apple-system,'Segoe UI',sans-serif}header{display:flex;align-items:center;flex-wrap:wrap;gap:1rem;background:#1c2949;color:#fff;padding:.75rem 2rem;position:sticky;top:0;z-index:20;box-shadow:0 2px 14px #14223d1a}.brand{display:flex;align-items:center;gap:.5rem;order:0}.brand strong{color:white;font-size:1.125rem}.brand small{color:#c6d1e6;font-size:.75rem}.brand svg{flex-shrink:0}header>.head{order:2;margin-left:auto;font-size:.75rem}header select{font-size:.8125rem;background:#263654;color:white;border-color:#536079}header nav{order:1;display:flex;flex-wrap:wrap;gap:.125rem;margin:0}header nav button{background:transparent;color:#e4e8f1;border:0;border-bottom:3px solid transparent;border-radius:0;min-height:52px;padding:.5rem .75rem;font-size:.875rem}header nav button.active{color:#ff9a50;background:none;border-bottom-color:#ff9a50}header nav button:hover{background:#ffffff0d}main{max-width:1520px;margin:auto;padding:1.5rem 2rem}main>h1{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}main>p:first-of-type{font-size:.875rem;color:var(--muted);margin:0 0 1rem}#view>h2{font-size:clamp(1.5rem,2vw,2rem);line-height:1.2;margin:1.5rem 0 1rem}#legend.legend{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.5rem;margin:0}#legend button{position:relative;display:flex;align-items:center;justify-content:space-between;gap:.5rem;overflow:hidden;background:var(--panel);border:1px solid var(--line);border-radius:.5rem;min-height:52px;padding:.5rem .75rem .5rem 1rem;font-size:.8125rem;text-align:left;line-height:1.4}#legend button::before{content:'';position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--domain)}#legend button span{padding:0;border:0;background:none;color:var(--muted)}#legend button:hover{background:var(--hover);border-color:var(--accent)}.toolbar{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0;padding:.5rem 0}.toolbar button,.toolbar .button{font-size:.875rem}#identity{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:.75rem 0}#identity h2{font-size:1.125rem}#identity p{margin:.25rem 0;font-size:.875rem}.v6-matrix thead th{border-radius:.75rem .75rem 0 0;text-align:center;background:var(--panel);min-width:180px}.v6-matrix .module-link{background:none;border:0;font-weight:700}.v6-matrix td{vertical-align:middle;padding:.5rem}.v6-matrix .outcome strong{font-weight:500}.v6-matrix .group th{background:color-mix(in srgb,var(--domain) 55%,var(--panel));padding:.25rem .75rem}.v6-matrix .group button{font-weight:650;min-height:40px}.mapping-cell{background:transparent;border:0;min-height:58px;border-radius:.5rem}.mapping-cell:hover,.mapping-cell.column-focus{background:var(--hover)}.tag{font-size:.8125rem;line-height:1.4;padding:.25rem .5rem}.matrix-scroll{border-radius:.75rem;box-shadow:0 2px 14px #14213a08}
#dialog{width:min(620px,calc(100vw - 2rem));max-height:92dvh;margin:auto;padding:1.5rem;border-radius:1.2rem;border:1px solid var(--glass-edge);background:var(--glass);color:var(--ink);backdrop-filter:blur(28px) saturate(150%);-webkit-backdrop-filter:blur(28px) saturate(150%);box-shadow:0 24px 70px rgba(12,22,40,.28),inset 0 1px 0 rgba(255,255,255,.55);overflow:auto;animation:glass-in 180ms ease-out}#dialog::backdrop{background:rgba(26,40,63,.22);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}#dialog .head{position:static;background:transparent;padding:0;margin:0 0 1rem;gap:1rem;align-items:flex-start}#dialog h2{font-size:clamp(1.25rem,2vw,1.65rem);line-height:1.25;margin:0}#close{border:0;background:transparent;min-width:44px;min-height:44px;font-size:1.75rem;line-height:1;padding:.25rem}#dialog .breadcrumb{font-size:.875rem;line-height:1.5}#dialog input,#dialog select,#dialog textarea{background:var(--input);border:1px solid var(--line);border-radius:.5rem;line-height:1.5}#dialog .field{font-size:.875rem;font-weight:600}#dialog textarea{font-weight:400;min-height:78px}#dialog .alignment-steps{counter-reset:step}#dialog .alignment-steps section{counter-increment:step;position:relative;padding-left:42px;border:0;margin:1.25rem 0}#dialog .alignment-steps section::before{content:counter(step);position:absolute;left:0;top:0;width:30px;height:30px;border-radius:50%;background:var(--accent);color:var(--panel);display:grid;place-items:center;font-weight:700}#dialog .alignment-steps section:not(:last-child)::after{content:'';position:absolute;top:36px;bottom:-12px;left:14px;border-left:1px solid var(--line)}#dialog .alignment-steps h3{font-size:1rem;margin:0 0 .5rem}#dialog .alignment-steps .field{margin:.5rem 0}#dialog #form>button.primary{position:sticky;bottom:0;width:100%;min-height:48px;margin-top:1rem;border-radius:.5rem;background:var(--accent);border-color:var(--accent);box-shadow:0 3px 16px #18264118}#dialog.domain-dialog{width:min(460px,calc(100vw - 2rem))}.domain-intro{font-size:1rem}.domain-level{padding:.75rem 0;border-bottom:1px solid var(--line)}.domain-level summary{font-weight:650}.domain-level p{font-size:.875rem}.skip{position:absolute;top:-100px;left:1rem;z-index:100;background:var(--panel);padding:.75rem}.skip:focus{top:1rem}:focus-visible{outline:3px solid var(--accent);outline-offset:3px}button:active{transform:translateY(1px)}@keyframes glass-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@supports not (backdrop-filter:blur(1px)){#dialog{background:var(--panel)}}@media(max-width:1100px){header nav{order:3;width:100%}header>.head{order:1}}@media(max-width:800px){main{padding:1rem}header{padding:.75rem 1rem}#legend.legend{grid-template-columns:repeat(2,minmax(0,1fr))}header nav button{font-size:.8125rem;padding:.5rem}}@media(max-width:450px){#legend.legend{grid-template-columns:1fr}#dialog{width:calc(100vw - 1rem);padding:1rem}#dialog .alignment-steps section{padding-left:36px}.v6-matrix .outcome,.v6-matrix thead th:first-child{min-width:160px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
