:root{font-family:Inter,system-ui,sans-serif;color:#20223a;background:#f6f6fb;font-synthesis:none;--ink:#20223a;--muted:#575b73;--mid:#6262a0;--edge:#dedfeb;--brand:#5144b9;--deep:#191a3b;--lavender:#edebfc;--white:#fff}
*{box-sizing:border-box}
html{scroll-padding-top:82px}
[hidden]{display:none!important}
body{margin:0;font-size:1rem;line-height:1.55}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select,summary{-webkit-tap-highlight-color:transparent}
a{color:#4636ab;text-underline-offset:.2em}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.68}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,.graph-node:focus-visible{outline:3px solid #8877f2;outline-offset:3px}
.shell{width:min(1180px,calc(100% - 64px));margin:auto}
.site-header{background:var(--deep);color:#fff}
.review-header{position:sticky;top:0;z-index:2}
.header-row{height:68px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.header-row nav{display:flex;gap:18px;align-items:center}
.brand{display:flex;gap:12px;align-items:center;color:#fbfbff;font-weight:740;text-decoration:none;letter-spacing:-.02em}
.brand-mark{display:grid;grid-template-columns:repeat(2,8px);gap:3px;transform:rotate(-12deg);padding:4px}
.brand-mark i{width:8px;height:8px;border-radius:2px;background:#9e93ff}
.brand-mark i:last-child{background:#c9c2ff}
.nav-button{color:#e8e5ff;background:none;border:0;font-size:.875rem;font-weight:660;padding:7px 0}
.nav-button:hover{text-decoration:underline;text-underline-offset:.24em}
main{padding:48px 0 76px}
.heading{margin:0 0 30px}
h1,h2,h3,p{margin-top:0}
h1{margin-bottom:9px;letter-spacing:-.06em;font-size:clamp(2.25rem,5vw,3.8rem);line-height:1.02;font-weight:770}
h2{font-size:1.22rem;line-height:1.3;letter-spacing:-.025em;margin-bottom:10px}
h3{font-size:1.14rem;line-height:1.35;letter-spacing:-.02em;margin-bottom:8px}
.heading p{max-width:670px;margin:14px 0 0;font-size:1.12rem;color:var(--muted)}
.intake{display:grid;grid-template-columns:minmax(0,1.82fr) minmax(0,1fr);align-items:start;gap:24px}
.panel{background:var(--white);border:1px solid var(--edge);border-radius:17px;min-width:0}
.panel-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:21px 23px 17px;border-bottom:1px solid #ececf3;flex-wrap:wrap}
.panel-head h2{margin:0}
.panel-head span,.optional,.subtle,.structured summary,.report-meta{font-size:.875rem;color:var(--muted)}
.fields{padding:20px 23px 22px;display:flex;flex-direction:column;gap:16px}
label{display:block;font-size:.938rem;font-weight:700}
.optional{font-weight:450;margin-left:5px}
input:not([type=file]),textarea,select{display:block;width:100%;border:1px solid #d8d8e8;background:#fcfcff;color:var(--ink);border-radius:9px;margin-top:6px;padding:10px 12px;font-weight:450}
textarea{resize:vertical;min-height:84px}
input::placeholder,textarea::placeholder{color:#696a86}
.upload{display:flex;align-items:center;gap:12px;padding:13px 14px;position:relative;border:1px dashed #aea7dc;border-radius:11px;color:#342787;background:#faf9ff;cursor:pointer}
.upload:hover,.upload.dragging{background:#eeebff;border-color:#7867d3}
.upload:focus-within{outline:3px solid #8877f2;outline-offset:2px}
.upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.upload small{display:block;font-weight:450;color:var(--muted);font-size:.875rem}
.upload-symbol{background:var(--lavender);color:#5849c2;border-radius:8px;display:grid;place-items:center;width:35px;height:35px;font-size:1.24rem;flex:none}
.file-list{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:-7px 0 0}
.file-list:empty{display:none}
.file-list li{display:flex;align-items:center;gap:8px;padding:4px 8px;background:var(--lavender);border-radius:6px;font-size:.82rem;overflow-wrap:anywhere}
.file-list button{border:0;background:transparent;color:#49417f;font-size:1.02rem}
.structured{padding:10px 0 1px;border-top:1px solid #eeeef5}
.structured summary{color:#453995;font-weight:700;cursor:pointer}
.structured-fields{display:grid;gap:12px;margin-top:11px}
.form-footer{display:flex;align-items:center;gap:13px;flex-wrap:wrap}
.button{border-radius:9px;border:1px solid transparent;padding:9px 15px;font-weight:740;line-height:1.5;font-size:.925rem;text-decoration:none;display:inline-block}
.primary{background:var(--brand);color:#fff;box-shadow:0 2px 4px #32257f33}
.primary:hover{background:#4134a0}
.secondary{color:#41368e;background:#fcfbff;border-color:#ccc6ef}
.secondary:hover,.pale:hover{background:#eae7ff}
.subtle{margin:0;line-height:1.45}
.side{display:grid;gap:16px}
.example-card{position:relative;overflow:hidden;padding:24px;background:linear-gradient(135deg,#272459,#39317a);border-radius:17px;color:#fff}
.example-card h2{font-size:1.46rem;margin:15px 0 7px}
.example-card p{color:#e1ddf9;margin-bottom:18px;max-width:32ch}
.pale{background:#f8f6ff;color:#392c90}
.sample-graphic{height:60px;width:147px;display:grid;grid-template-columns:39px 31px 49px;grid-template-rows:repeat(3,1fr);align-items:center}
.sample-graphic span{display:block;height:10px;grid-column:1;position:relative;border-radius:3px;border:1px solid #b2a6ff;background:#7668cf}
.sample-graphic span:after{content:"";width:30px;height:1px;position:absolute;left:100%;top:4px;background:#9c91e9;transform-origin:left}
.sample-graphic span:first-child:after{transform:rotate(31deg);width:36px}
.sample-graphic span:nth-child(3):after{transform:rotate(-31deg);width:36px}
.sample-graphic b{grid-column:3;grid-row:1/4;height:30px;border-radius:5px;border:1px solid #c8bfff;background:#8e80ee}
.reference-card{padding:19px 22px}
.reference-card ul{padding-left:17px;margin:8px 0 10px}
.reference-card li{padding:2px 0;font-size:.94rem}
.reference-card a{font-weight:640}
.reference-card p{color:var(--muted);font-size:.875rem;margin:0}
.error{background:#fce9ee;color:#7e2441;border:1px solid #eebaca;padding:9px 12px;border-radius:8px;margin:0}
.result-heading{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:23px}
.mode{color:#61539f;font-size:.875rem;font-weight:740;margin:0 0 7px}
.result-heading h1{margin:0;font-size:clamp(2rem,4.6vw,3.3rem)}
.overview{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);padding:22px 24px;gap:22px}
.overview-text p{margin:0;color:var(--muted)}
.overview-text .comparison{margin-top:10px;color:#483987;font-size:.875rem}
.metrics{display:grid;grid-template-columns:repeat(3,1fr);align-items:center;gap:8px;padding:5px 0;border-left:1px solid var(--edge)}
.metrics div{text-align:center}
.metrics strong{display:block;color:#3f32a3;font-size:1.85rem;line-height:1.17;letter-spacing:-.04em}
.metrics span{font-size:.84rem;color:var(--muted)}
.result-nav{display:flex;gap:22px;border-bottom:1px solid #d8d8e9;margin:20px 0 16px;overflow:auto}
.result-nav button{white-space:nowrap;border:0;border-bottom:3px solid transparent;background:none;color:var(--muted);padding:8px 0 10px;font-weight:680}
.result-nav button[aria-pressed=true]{color:#4331a4;border-bottom-color:#6650cf}
.view{display:grid;gap:14px}
.card{padding:19px 21px}
.card-title{display:flex;align-items:start;justify-content:space-between;gap:12px}
.card p:last-child{margin-bottom:0}
.affected{color:var(--muted);font-size:.9rem;margin:0 0 9px}
.tags{display:flex;flex-wrap:wrap;gap:7px;margin:9px 0 13px}
.tag{background:#eeebfd;color:#372889;border-radius:6px;padding:4px 8px;font-size:.84rem;text-decoration:none}
.tag:hover{text-decoration:underline}
.mapping summary{cursor:pointer;color:#453995;font-size:.875rem;font-weight:700}
.evidence{margin:10px 0 0;padding:10px 12px;border-left:3px solid #a398ea;background:#f8f7ff;border-radius:0 8px 8px 0;font-size:.9rem;overflow-wrap:anywhere}
.card>.button{margin-top:12px;margin-right:7px}
.evidence cite{display:block;margin-top:4px;color:#575077;font-weight:660;font-style:normal;font-size:.81rem}
.case-picker{display:flex;flex-wrap:wrap;gap:8px}
.case-picker button{border:1px solid #d5d1ea;background:white;border-radius:8px;padding:8px 12px;color:var(--ink);font-weight:650;font-size:.9rem}
.case-picker button[aria-pressed=true]{border-color:#7361da;background:#efebff;color:#3f2b9e}
.badge{display:inline-block;color:#483982;background:#eeebfb;border-radius:6px;font-size:.78rem;padding:3px 7px;font-weight:730;white-space:nowrap}
.graph-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.38fr);gap:15px;margin-top:14px}
.graph-scroll{overflow:auto;border-radius:10px;background:#f9f9ff;border:1px solid #e5e2f3}
.graph{width:100%;min-width:530px;display:block}
.graph-node{cursor:pointer}
.graph-node rect{fill:#fff;stroke:#d6d1ef;stroke-width:1.2}
.graph-node text{fill:#252045;font-weight:650;pointer-events:none}
.graph-node .node-sub{font-size:12px;fill:#675a92;font-weight:600}
.graph-node[data-status=documented] rect{fill:#ecf8f2;stroke:#8abea4}
.graph-node[data-status=partial] rect{fill:#fff6e2;stroke:#d6ae61}
.graph-node[data-status=challenged] rect{fill:#fff1f3;stroke:#dd9caf}
.graph-node[data-status=planned] rect{fill:#f1ebfe;stroke:#b9a4e6}
.graph-node[aria-pressed=true] rect,.graph-node:hover rect{stroke:#6751c9;stroke-width:2.5}
.graph-edge{fill:none;stroke:#a89bcf;stroke-width:1.8}
.graph-edge.challenges{stroke:#b56d82;stroke-dasharray:5 4}
.graph-edge.context,.graph-edge.question{stroke-dasharray:4 4}
.graph-edge.documented{stroke:#49816b}
.graph-edge.partial{stroke:#a17726}
.inspector{padding:13px;background:#fbfaff;border-radius:10px;border:1px solid #e4e0f4;overflow-wrap:anywhere}
.inspector h3{font-size:1rem}
.inspector p{font-size:.9rem;margin-bottom:8px}
.action-list{padding-left:19px;margin:6px 0 13px}
.action-list li{margin:7px 0}
.acceptance{margin-top:13px;padding-top:12px;border-top:1px solid var(--edge)}
.report-meta{margin:14px 0 0;overflow-wrap:anywhere}
dialog{color:var(--ink);border:1px solid var(--edge);border-radius:15px;width:min(560px,calc(100% - 30px));padding:24px;box-shadow:0 12px 55px #24204644}
dialog::backdrop{background:#17163380}
dialog dl{margin:0}
dialog dt{font-weight:750;margin-top:12px}
dialog dd{margin:3px 0;color:var(--muted)}
.close{float:right;color:var(--muted);background:none;border:0;font-size:1.5rem;line-height:1}
@media(max-width:850px){.shell{width:calc(100% - 38px)}.intake{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:14px}.graph-grid{grid-template-columns:1fr}.overview{grid-template-columns:1fr}.metrics{border-left:0;border-top:1px solid var(--edge);padding-top:13px}}
@media(max-width:660px){main{padding-top:28px}.intake{grid-template-columns:1fr}.header-row{height:57px}.header-row nav{gap:10px}.brand{gap:5px;font-size:.9rem}.nav-button{font-size:.8rem}.panel-head,.fields,.card,.overview,.example-card,.reference-card{padding-left:16px;padding-right:16px}.result-heading{align-items:start;flex-direction:column}.result-nav{gap:14px;font-size:.875rem}}

.workspace-nav{margin-left:auto}
.language-picker{display:flex;flex:none;gap:2px;background:#292750;border:1px solid #4c4777;border-radius:9px;padding:3px}
.language-picker button{border:0;border-radius:5px;background:transparent;color:#e1dcfa;font-size:.8rem;padding:5px 8px;font-weight:680}
.language-picker button[aria-pressed=true]{background:#eeeaff;color:#382986}
.language-picker button:disabled{cursor:wait}
.graph-node[data-status=risk-pathway] rect{fill:#f0ebff;stroke:#a994e4}
.graph-edge.effect{stroke:#7252b1}
.graph-edge.mapping-link{stroke:#a99bc7;stroke-dasharray:4 4}
.risk-graph{min-width:680px}
.inspector>.button{margin-top:10px}
:lang(ja) h1,:lang(ja) h2,:lang(ja) h3{letter-spacing:0}
:lang(ja) .result-nav{gap:14px}
@media(max-width:420px){
  .header-row{flex-wrap:wrap;min-height:58px;height:auto;padding:8px 0}
  .header-row nav{gap:8px}
  .language-picker button{padding:5px 6px}
}

.reference-card p + p{margin-top:8px}
.resource-alert{background:#fff4dd;border-color:#deb56a;color:#604016;padding:12px 14px}
.resource-alert strong{display:block;margin-bottom:3px}

.assurance-picker{display:flex;flex-wrap:wrap;gap:8px}
.assurance-case{display:flex;align-items:center;gap:10px;min-width:0;background:white;border:1px solid var(--edge);border-radius:8px;padding:8px 11px;color:var(--ink);text-align:left;font-size:.875rem}
.assurance-case strong{color:var(--brand);white-space:nowrap}
.assurance-case[aria-pressed=true]{background:var(--lavender);border-color:#8374ce}
.assurance-claim{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 23px;background:#29254e;color:#fff;border-radius:13px}
.assurance-claim h2{margin:0;font-size:clamp(1rem,2vw,1.35rem)}
.assurance-kicker{color:#d5cdf6;font-size:.83rem;font-weight:650;margin-bottom:7px}
.assurance-actions{display:flex;flex:none;flex-wrap:wrap;gap:7px}
.assurance-metrics{display:grid;grid-template-columns:minmax(155px,.85fr) repeat(2,minmax(0,1fr));gap:10px}
.assurance-readout,.assurance-stat{border:1px solid var(--edge);border-radius:11px;background:white;padding:13px 15px}
.assurance-readout{display:grid;justify-items:center;color:var(--muted);font-size:.875rem}
.assurance-gauge-readout{display:grid;place-items:end center}
.assurance-gauge-readout>*{grid-area:1/1}
.assurance-gauge-readout strong{font-size:1.65rem;line-height:1.3;color:var(--brand);font-variant-numeric:tabular-nums}
.assurance-gauge{width:94px;display:block;fill:none;stroke-width:8;stroke-linecap:round}
.gauge-track{stroke:#edeaf9}
.gauge-value{stroke:#7160c9}
.assurance-stat{color:var(--ink);text-decoration:none;display:flex;flex-direction:column;justify-content:center;align-items:start;gap:8px}
.assurance-stat:hover strong{text-decoration:underline;text-underline-offset:.2em}
.assurance-status-list{display:flex;flex-wrap:wrap;gap:5px}
.status-pill{display:inline-flex;align-items:center;border-radius:5px;color:#43415e;background:#edecf4;padding:3px 7px;font-size:.76rem;font-weight:680;white-space:nowrap}
.status-pill.documented{color:#1a624b;background:#e6f4ed}
.status-pill.partial{color:#704610;background:#fff2d8}
.status-pill.planned{color:#523488;background:#eee6fb}
.status-pill.challenged{color:#892e48;background:#fbe5ec}
.assurance-detail{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:12px;align-items:start}
.assurance-group{scroll-margin:16px}
.assurance-group h3{font-size:.9rem;margin:14px 0 4px;color:var(--muted)}
.assurance-check{border-top:1px solid var(--edge)}
.assurance-check summary{display:flex;align-items:center;gap:8px;cursor:pointer;padding:9px 3px;font-size:.89rem;font-weight:650}
.assurance-check summary::before{content:"+";color:var(--brand);font-weight:760;flex:none;width:1em;text-align:center}
.assurance-check[open] summary::before{content:"−"}
.assurance-check summary .status-pill{margin-left:auto}
.assurance-check-detail{padding:4px 8px 12px 19px;color:var(--muted);font-size:.9rem}
.assurance-check-detail .acceptance{margin-top:9px;padding-top:9px}
.assurance-gap{display:block;text-align:left;width:100%;padding:10px 0;border:0;border-top:1px solid var(--edge);background:white;color:var(--ink);font-size:.87rem}
.assurance-gap strong{display:block;margin-bottom:3px;color:#453995}
.assurance-gap:hover strong{text-decoration:underline;text-underline-offset:.2em}
.assurance-gap span{color:var(--muted)}

.taxonomy-view{max-width:860px}
.taxonomy-view h1{overflow-wrap:anywhere}
.taxonomy-back{display:inline-block;margin-bottom:16px}
.taxonomy-facts{margin:0 0 16px}
.taxonomy-facts div{display:grid;grid-template-columns:minmax(125px,.45fr) minmax(0,1fr);gap:10px;border-top:1px solid var(--edge);padding:7px 0}
.taxonomy-facts dt{font-weight:650}
.taxonomy-facts dd{margin:0;overflow-wrap:anywhere;color:var(--muted)}
.taxonomy-list{list-style:none;padding:0;margin:10px 0 0}
.taxonomy-list li + li{border-top:1px solid var(--edge)}
.taxonomy-list a{display:flex;align-items:baseline;gap:8px;padding:7px 0}
.language-picker a{padding:5px 8px;border-radius:5px;color:#e1dcfa;font-size:.8rem;font-weight:680;text-decoration:none}
.language-picker a[aria-current=page]{background:#eeeaff;color:#382986}
@media(max-width:720px){
  .assurance-claim{align-items:start;flex-direction:column;padding:16px}
  .assurance-detail{grid-template-columns:1fr}
}
@media(max-width:490px){
  .assurance-metrics{grid-template-columns:1fr 1fr}
  .assurance-readout{grid-column:1/-1}
  .assurance-actions{flex:auto}
}
