:root{font-family:Segoe UI,Arial,sans-serif;color:#182b2c;background:#f5f7f5;font-size:15px;--green:#1d6656;--line:#dbe3df;--muted:#62716c}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b88637}button{cursor:pointer}a{color:var(--green)}header{height:96px;background:white;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:20px 40px;gap:24px}.brand{display:flex;gap:14px;align-items:center;color:#142f29;text-decoration:none;font-weight:700;font-size:19px}.logo{background:#163f35;color:#fff;padding:14px 10px;border-radius:12px;font-size:20px}.brand small{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-top:4px;letter-spacing:.03em}.profile-control{display:flex;align-items:center;gap:12px}.profile-control label{color:var(--muted);font-size:12px}.profile-control select{max-width:340px}.shell{display:grid;grid-template-columns:272px 1fr;min-height:calc(100vh - 138px)}aside{padding:36px 22px;border-right:1px solid var(--line);background:#fff}.eyebrow{text-transform:uppercase;color:var(--green);font-size:11px;font-weight:700;letter-spacing:.16em}.identity-name{font-size:18px;font-weight:650;margin:16px 0 5px}.muted,small{color:var(--muted)}nav{margin-top:30px;display:grid;gap:10px}nav button{text-align:left;border:0;background:transparent;padding:13px 12px;border-radius:10px;display:flex;gap:11px;align-items:center;color:#50615b;font-size:13px;line-height:1.4}nav button.active{background:#e8f2ec;color:#164d3e;font-weight:650}nav .number{display:grid;place-items:center;min-width:27px;height:27px;border:1px solid #cddbd3;border-radius:50%;font-size:12px}nav button.active .number{background:var(--green);border-color:var(--green);color:white}nav .chapter{margin-top:12px;border-top:1px solid var(--line);border-radius:0;padding-top:22px}.sidebar-note{border-top:1px solid var(--line);padding:22px 4px;margin-top:40px;font-size:11px;line-height:1.8;color:var(--muted)}main{padding:38px 48px;min-width:0;max-width:1550px;width:100%;margin:0 auto}h1{font-size:clamp(27px,3vw,38px);letter-spacing:-.04em;font-weight:650;margin:8px 0 12px;line-height:1.15}h2{font-size:19px;font-weight:650;margin:0 0 10px}h3{font-size:15px;margin:0 0 10px}p{line-height:1.65}.lead{color:var(--muted);max-width:740px;margin:0 0 25px}.page-head{margin-bottom:28px}.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:25px;margin-bottom:20px}.hero-card{background:#173f35;color:#fff;border:0}.hero-card p{color:#cfdfd5}.hero-card .tag{background:#31574b;color:#e1f3e7}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.grid .card{margin-bottom:0}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:25px}.stat{padding:22px;background:white;border:1px solid var(--line);border-radius:14px}.stat strong{display:block;font-size:31px;font-weight:600;margin:8px 0}.stat span{font-size:12px;color:var(--muted)}.tag{display:inline-block;border-radius:20px;padding:6px 10px;font-size:11px;background:#edf1ef;color:#466355;line-height:1.3}.tag.green{background:#e4f2e8;color:#206042}.tag.amber{background:#faf0da;color:#816018}.button,button.primary{display:inline-flex;align-items:center;justify-content:center;background:var(--green);border:1px solid var(--green);color:white;text-decoration:none;border-radius:9px;padding:11px 17px;font-size:13px;font-weight:600}.button.secondary,button.secondary{background:white;border:1px solid #c9d8cf;color:#215546;border-radius:9px;padding:11px 17px;font-size:13px;font-weight:600}.hero-card .button{background:#e5f0df;color:#173f35;border-color:#e5f0df}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:20px}button:disabled{opacity:.55;cursor:wait}label.field{display:block;font-size:13px;font-weight:600;margin-bottom:18px}input:not([type=radio]),select,textarea{display:block;width:100%;border:1px solid #cbd8cf;border-radius:8px;padding:11px 12px;background:white;color:#182b2c;margin-top:6px}textarea{resize:vertical;min-height:94px}.question{border:0;padding:0;margin:0 0 32px;min-width:0}.question legend{font-size:16px;font-weight:600;margin-bottom:6px}.question .hint{color:var(--muted);font-size:13px;line-height:1.5;margin:5px 0 14px}.option{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--line);border-radius:9px;margin-bottom:8px;font-size:13px;line-height:1.5;cursor:pointer}.option:has(input:checked){background:#eef6ed;border-color:#6f9f81}.option input{margin-top:3px;accent-color:var(--green)}.survey-steps{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}.survey-steps button{border:1px solid var(--line);background:#fff;color:var(--muted);border-radius:8px;padding:11px 16px;font-size:13px}.survey-steps .active{background:#e5efe6;color:#24583d;border-color:#96b99f}.survey-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:22px}.progress{height:7px;background:#e5ece7;border-radius:7px;overflow:hidden;margin-top:12px}.progress span{display:block;height:100%;background:#4d8b67}.axis-row{padding:17px 0;border-top:1px solid var(--line)}.axis-row:first-child{border-top:0}.axis-label{display:flex;justify-content:space-between;gap:20px;font-size:13px}.axis-label strong{font-weight:600}.empty{padding:36px;text-align:center;background:white;border:1px dashed #b9cabe;border-radius:16px}.empty .symbol{font-size:30px;color:#5f8b6d;margin-bottom:10px}.timeline{list-style:none;padding:0;margin:25px 0}.timeline li{border-left:2px solid #d3e1d6;padding:0 0 25px 24px;position:relative}.timeline li:before{content:'';width:10px;height:10px;background:#a7c3ae;border:4px solid #f5f7f5;border-radius:50%;position:absolute;left:-10px;top:-1px;box-sizing:content-box}.timeline li.done:before{background:#22674b}.timeline p{margin:6px 0;color:var(--muted);font-size:13px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;font-weight:500;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);padding:13px 12px;border-bottom:1px solid var(--line)}td{padding:17px 12px;border-bottom:1px solid #edf0ec}td small{display:block;margin-top:4px}.note{font-size:12px;color:var(--muted);line-height:1.7}.notice{padding:14px 18px;background:#edf3e9;border:1px solid #cfdfc9;border-radius:10px;margin-bottom:22px;font-size:13px;line-height:1.6}#feedback:empty{display:none}#feedback{padding:13px 18px;border-radius:9px;background:#e6f2e4;color:#205432;margin-bottom:20px;font-size:13px}#feedback.error{background:#f9e8e4;color:#8b3527}.compact{max-width:760px}.task-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.span-2{grid-column:1/-1}.milestones{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:24px}.milestone{padding:18px;background:#edf2eb;border-radius:10px}.milestone strong{font-size:19px}.milestone p{font-size:12px;margin-bottom:0;color:#526858}footer{padding:14px 40px;text-align:right;border-top:1px solid var(--line);font-size:10px;letter-spacing:.05em;color:var(--muted);background:white}.skip{position:absolute;top:-100px}.skip:focus{top:5px;background:white;padding:10px;z-index:9}.error-page{max-width:700px}.print-only{display:none}@media(max-width:1000px){main{padding:28px}.shell{grid-template-columns:235px 1fr}header{padding:18px 24px}.profile-control label{display:none}.grid{grid-template-columns:1fr}}@media(max-width:700px){header{height:auto;padding:18px;align-items:flex-start;flex-wrap:wrap}.brand{font-size:17px}.profile-control{width:100%}.profile-control select{max-width:none;margin:0}.shell{display:block}aside{padding:20px;border-right:0;border-bottom:1px solid var(--line)}aside .eyebrow,.sidebar-note,#identity .muted{display:none}.identity-name{margin:0 0 12px;font-size:15px}nav{margin:0;grid-template-columns:1fr 1fr;gap:5px}nav button{padding:8px;font-size:11px}nav .chapter{margin:0;padding:8px;border-top:0}.number{min-width:22px!important;height:22px!important}main{padding:26px 18px}.stats{gap:8px}.stat{padding:14px}.stat strong{font-size:25px}.card{padding:20px}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.milestones{grid-template-columns:1fr}.survey-top{align-items:flex-start;flex-direction:column}footer{text-align:center;padding:14px 18px}}@media print{header,aside,footer,#feedback,.actions,.survey-steps,.profile-control,button{display:none!important}.shell{display:block}main{padding:0;max-width:none}.card{break-inside:avoid;border-radius:0}.print-only{display:block}body{background:white}.grid{display:block}}

.progress-native{display:block;width:100%;height:7px;margin:12px 0 4px;accent-color:#4d8b67;border:0;border-radius:8px}.progress-native::-webkit-progress-bar{background:#e5ece7;border-radius:8px}.progress-native::-webkit-progress-value{background:#4d8b67;border-radius:8px}details summary{cursor:pointer;font-size:14px;font-weight:600;margin:12px 0}details .card{margin:20px 0 0;border-radius:10px}

.question-index{display:block;color:var(--green);font-size:12px;font-weight:600;letter-spacing:.02em;margin-bottom:7px}.question-progress{position:sticky;top:12px;z-index:3;background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 20px;margin-bottom:22px;box-shadow:0 4px 14px #183d2910}.question-progress p{font-size:12px;margin:6px 0}.question-progress .progress-native{margin-top:10px}@media print{.question-progress{display:none}}

.plan-header .plan-caption,.plan-caption{font-size:13px;color:var(--muted);margin:0 0 10px;font-weight:600;letter-spacing:0;text-transform:none}.plan-header .lead{max-width:65ch}.plan-nav{display:flex;gap:4px;flex-wrap:wrap;margin:0 0 30px;border-bottom:1px solid var(--line);padding-bottom:2px}.plan-nav a{display:flex;align-items:center;justify-content:center;min-height:46px;padding:10px 15px;color:#52665c;text-decoration:none;border-bottom:3px solid transparent;font-size:13px;font-weight:600}.plan-nav a:hover{background:#eaf1eb;color:#1b5140}.plan-nav a[aria-current=page]{color:#174e3d;border-bottom-color:#1d6656}.plan-page{max-width:1050px}.plan-next{padding:8px 0 28px;border-bottom:1px solid var(--line);margin-bottom:25px;max-width:75ch}.plan-next h2{font-size:26px;line-height:1.3;letter-spacing:-.02em}.plan-next p{max-width:60ch;color:var(--muted)}.plan-next .button{margin-top:8px}.plan-progress{max-width:620px;margin:20px 0 28px}.plan-progress strong{font-size:14px}.plan-directory{display:grid;grid-template-columns:1fr 1fr;gap:0 30px}.plan-directory a{display:block;padding:22px 0;border-bottom:1px solid var(--line);text-decoration:none;min-height:92px}.plan-directory a strong{display:block;font-size:16px;margin-bottom:7px;color:#1b5b47}.plan-directory a span{font-size:13px;line-height:1.6;color:var(--muted);display:block;max-width:46ch}.plan-directory a:hover strong{text-decoration:underline}.plan-section-head{margin-bottom:24px;max-width:75ch}.plan-section-head p{color:var(--muted);font-size:14px}.task-editor,.learning-track{background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:14px;overflow:hidden}.task-editor>summary,.learning-track>summary{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:66px;margin:0;padding:20px;font-weight:600;font-size:14px;cursor:pointer}.task-editor>summary:before,.learning-track>summary:before{content:'+';color:#1d6656;font-size:22px;font-weight:400}.task-editor[open]>summary:before,.learning-track[open]>summary:before{content:'−'}.task-editor>summary>span:first-child,.learning-track>summary>span:first-child{flex:1}.task-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.task-meta small{font-weight:400;font-size:12px}.task-editor .task-form{margin:0;border:0;border-top:1px solid var(--line);border-radius:0}.task-editor.new-task{border-style:dashed}.track-body{padding:0 25px 22px;max-width:78ch}.track-body p{line-height:1.65}.plan-voices{margin-top:32px}.plan-page textarea[readonly]{min-height:180px;max-height:400px;line-height:1.65;font-size:13px}.plan-page #first-independent-step .eyebrow{color:#d0e7d6;text-transform:none;letter-spacing:0}.plan-page .hero-card .note{color:#d0e7d6}@media(max-width:700px){.plan-nav{gap:0;margin-bottom:22px}.plan-nav a{flex:1 1 auto;padding:10px 12px;min-height:46px;font-size:12px}.plan-directory{grid-template-columns:1fr;gap:0}.plan-next h2{font-size:23px}.task-editor>summary,.learning-track>summary{align-items:flex-start;padding:17px;gap:12px}.task-meta{display:grid;gap:6px;text-align:right}.track-body{padding:0 18px 18px}}@media print{.plan-nav{display:none}.task-editor,.learning-track{overflow:visible}.plan-directory{display:none}}

.task-editor>summary:focus-visible,.learning-track>summary:focus-visible{outline:3px solid #b88637;outline-offset:-4px;border-radius:10px}

.field-error { color: #a02222; font-weight: 600; margin: .5rem 0; }
[aria-invalid="true"] { outline: 2px solid #a02222; outline-offset: 2px; }
.question-help { margin: .5rem 0 1rem; color: var(--muted); }

.empty > .actions { justify-content: center; }

header { position: sticky; top: 0; z-index: 100; }
@media print { header { position: static; } }

.screening-label { margin: 0 0 4px; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
#nav > a { text-decoration: none; text-align: left; padding: 13px 12px; border-radius: 10px; display: flex; gap: 11px; align-items: center; color: #50615b; font-size: 13px; line-height: 1.4; }
#nav > a.active { background: #e8f2ec; color: #164d3e; font-weight: 650; }
#nav > a.active .number { background: var(--green); border-color: var(--green); color: white; }
.screening-page .page-head { margin-bottom: 28px; }
.screening-page .page-head h1 { margin: 8px 0 16px; }
@media (max-width: 700px) { #nav > .screening-label { grid-column: 1 / -1; } #nav > a { padding: 8px; font-size: 11px; } }

.screening-page .survey-steps, .screening-page .plan-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; }
.screening-page .survey-steps button, .screening-page .plan-nav a { display: inline-flex; align-items: center; padding: 11px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #50615b; text-decoration: none; font-size: 13px; line-height: 1.4; font-weight: 500; }
.screening-page .survey-steps button.active, .screening-page .plan-nav a[aria-current="page"] { background: #e8f2ec; border-color: #b7cfc3; color: #164d3e; font-weight: 650; }

.diagnosis-wheel-card { padding: 28px; }
.wheel-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.wheel-heading h2 { margin-bottom: 0; }
.wheel-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(220px, 1fr); align-items: center; gap: 30px; }
.wheel-visual { min-width: 0; }
.diagnosis-wheel { display: block; width: 100%; max-width: 700px; margin: auto; overflow: visible; }
.wheel-label { fill: white; font: 600 15px 'Segoe UI', sans-serif; pointer-events: none; }
.wheel-sector { cursor: pointer; outline: none; }
.wheel-sector .wheel-rim { transition: opacity .15s; }
.wheel-sector:hover .wheel-rim { opacity: .78; }
.wheel-sector.is-selected .wheel-rim, .wheel-sector:focus-visible .wheel-rim { stroke: #163f35; stroke-width: 4; }
.wheel-sector:focus-visible .wheel-marker-halo { stroke: #163f35; stroke-width: 3; }
.wheel-center { fill: #fff; font: 700 25px 'Segoe UI', sans-serif; }
.wheel-center-small { fill: #d3e7df; font: 600 9px 'Segoe UI', sans-serif; letter-spacing: .1em; }
.wheel-scale { font: 600 10px 'Segoe UI', sans-serif; fill: #344740; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.wheel-key { text-align: center; margin-top: 0; }
.wheel-detail { background: #f5f8f5; border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.wheel-detail h3 { margin: 8px 0 20px; font-size: 24px; }
.wheel-detail p { line-height: 1.65; }
.wheel-score { font-size: 48px; line-height: 1.1 !important; margin: 12px 0; font-weight: 650; color: #163f35; }
.wheel-score span { font-size: 17px; font-weight: 400; color: var(--muted); }
.wheel-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; }
.wheel-legend button { display: flex; gap: 10px; text-align: left; align-items: center; padding: 14px; }
.wheel-legend button[aria-pressed="true"] { background: #e8f2ec; border-color: #163f35; }
.wheel-legend strong { display: block; margin-top: 4px; font-size: 12px; }
.wheel-legend-color { width: 11px; height: 11px; flex: 0 0 11px; border-radius: 50%; }
.wheel-color-0 { background: #397f9b; }.wheel-color-1 { background: #c46a42; }.wheel-color-2 { background: #bd962c; }.wheel-color-3 { background: #7d9148; }.wheel-color-4 { background: #258678; }.wheel-color-5 { background: #8770a5; }
@media(max-width:1000px) { .wheel-layout { grid-template-columns: 1fr; gap: 12px; }.wheel-detail { padding: 20px; } }
@media(max-width:700px) { .diagnosis-wheel-card { padding: 16px; }.wheel-heading { display: block; }.wheel-legend { grid-template-columns: repeat(2,1fr); }.wheel-legend button { padding: 10px; }.wheel-score { font-size: 38px; } }
@media print { .wheel-layout { grid-template-columns: 1fr; }.wheel-legend button { display: flex !important; }.wheel-sector { print-color-adjust: exact; }.wheel-detail { break-inside: avoid; } }

.competency-groups { display: flex; gap: 8px; margin: 0 0 20px; }
.competency-groups button { min-width: 120px; }
.competency-groups button[aria-pressed="true"] { background: #163f35; color: white; border-color: #163f35; }
.wheel-selection { border-top: 1px solid var(--line); padding: 20px 0 0; margin-top: 16px; }
.wheel-selection h3 { margin: 8px 0; }.wheel-selection .wheel-score { font-size: 30px; }

/* Auth, multi-tenant contexts, BIBD triads, quadrants & Sandbox AI Judge */
.workspace { --panel: #fff; --ink: #182b2c; --soft: #f0f5f2; color: var(--ink); max-width: 1280px; }
.hierarchy-actions, .project-create { margin-bottom: 24px; }
.role-area-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(280px,100%),1fr)); gap: 10px; margin: 18px 0 4px; }
.role-dropdown { margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.role-dropdown summary { cursor: pointer; min-height: 24px; }
.role-dropdown [data-role-options] { display: grid; gap: 8px; padding-top: 12px; }
.role-check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.role-check input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: var(--green); }
.role-check:has(input:checked) { font-weight: 700; }
#access-role-form fieldset { min-width: 0; margin: 8px 0 20px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; }
#access-role-form legend { padding: 0 8px; font-weight: 650; }
#access-role-form fieldset .note { margin: 0; max-width: 72ch; }
.registration-page select:disabled { opacity: .52; cursor: not-allowed; background: color-mix(in srgb, var(--line) 30%, transparent); }
.role-area-options .choice { display: flex; gap: 12px; align-items: center; min-height: 54px; padding: 12px 14px; margin: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--ink); line-height: 1.35; cursor: pointer; }
.role-area-options .choice input[type="checkbox"] { display: block; flex: 0 0 18px; width: 18px; height: 18px; padding: 0; margin: 0; accent-color: var(--green); }
.role-area-options .choice span { min-width: 0; }
.role-area-options .choice:hover { border-color: var(--green); }
.role-area-options .choice:has(input:checked) { border-color: var(--green); background: var(--soft); box-shadow: inset 3px 0 var(--green); font-weight: 600; }
.role-area-options .choice:focus-within { outline: 3px solid #b88637; outline-offset: 2px; }
html[data-theme="dark"] .role-area-options .choice { border-color: #50655a; }
html[data-theme="dark"] .role-area-options .choice:has(input:checked) { border-color: #82c7a9; background: #274737; box-shadow: inset 3px 0 #82c7a9; }
.access-role-layout { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.6fr); gap: 20px; margin-top: 18px; }
.access-role-list { display: grid; align-content: start; gap: 8px; }
.access-role-list button { text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font-weight: 600; }
.access-role-list button small { display: block; margin-top: 4px; font-weight: 400; }
.access-role-list button[aria-pressed="true"] { border-color: var(--green); background: var(--soft); box-shadow: inset 4px 0 var(--green); }
.access-role-detail { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.access-role-detail h3 { font-size: 20px; }
.access-role-detail h4 { margin-bottom: 8px; }
.access-role-detail ul { margin: 0 0 14px; padding-left: 22px; line-height: 1.7; }
.access-role-dialog { width: min(100% - 32px, 460px); padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: #182b2c; box-shadow: 0 24px 80px #0005; }
.access-role-dialog::backdrop { background: #071710b8; }
.access-role-dialog h2 { margin-bottom: 12px; }
.access-role-dialog .actions { justify-content: flex-end; }
.person-edit-dialog { width: min(100% - 32px, 640px); padding: 30px; }
.person-edit-dialog h2 { margin: 0 0 6px; font-size: 24px; }
.person-edit-dialog form > p:first-of-type { margin: 0 0 24px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.person-edit-dialog .field { margin-bottom: 20px; }
.person-edit-dialog .form-grid { gap: 0 18px; }
.person-edit-dialog .actions { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 4px; gap: 12px; }
.person-edit-dialog [data-dialog-error]:empty { display: none; }
.person-edit-dialog select:disabled { opacity: .55; cursor: not-allowed; }
@media(max-width: 540px) { .person-edit-dialog { padding: 22px; }.person-edit-dialog .form-grid { grid-template-columns: 1fr; }.person-edit-dialog .span-2 { grid-column: auto; }.person-edit-dialog .actions { flex-direction: column-reverse; align-items: stretch; } }
.access-role-dialog button:disabled { opacity: .5; cursor: not-allowed; }
html[data-theme="dark"] .access-role-dialog { background: #19251f; color: #edf5ef; border-color: #50655a; }
html[data-theme="dark"] .access-role-dialog input { background: #101b16; color: #edf5ef; border-color: #50655a; }
@media (max-width: 700px) { .access-role-layout { grid-template-columns: 1fr; } }
.project-create > summary { width: fit-content; cursor: pointer; }
.project-create[open] > summary { margin-bottom: 20px; }
.hierarchy-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(280px,100%),1fr)); gap: 20px; }
.project-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 24px; padding:0 0 12px; border-bottom:1px solid var(--line); }
.project-tabs a { padding:12px 16px; border-radius:8px; text-decoration:none; color:var(--ink); }
.project-tabs a[aria-current="page"] { background:var(--green); color:#fff; font-weight:600; }
.hierarchy-card { display:flex; flex-direction:column; align-items:flex-start; margin-bottom:0; }
.hierarchy-card h2 { font-size:22px; overflow-wrap:anywhere; }
.hierarchy-card .button { margin-top:auto; }
.project-context { padding:10px 14px; border-left:3px solid var(--green); background:var(--soft); margin-top:16px !important; }
.workspace-breadcrumb { color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.workspace-breadcrumb span { margin: 0 10px; color: #7d9186; }
.workspace-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.workspace-header h1 { font-size: clamp(26px, 2.6vw, 36px); margin: 0 0 8px; }
.workspace-header p { margin: 0; color: var(--muted); max-width: 68ch; }
.workspace-header > button { flex-shrink: 0; }
.workspace-nav { margin-top: -12px; }
.workspace-subgroup { margin-left: 10px; border-left: 1px solid var(--line); padding-left: 8px; }
.workspace-subgroup > summary { text-transform: none; letter-spacing: normal; }
[data-weight-matrix] th { text-transform: none; letter-spacing: normal; font-size: 14px; }
[data-weight-matrix] td, [data-weight-matrix] th { padding: 12px 16px; vertical-align: middle; }
.weight-value { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.weight-value input[type="number"] { width: 76px; min-width: 0; margin: 0; padding: 8px; text-align: center; }
.weight-value input[readonly] { background: transparent; border: 0; appearance: textfield; pointer-events: none; user-select: none; box-shadow: none; }
.weight-value input[hidden] { display: none !important; }
.weight-readonly-text { display: inline-block; min-width: 36px; text-align: center; user-select: none; }
.weight-readonly-text[hidden] { display: none; }
.weight-value input[readonly]::-webkit-inner-spin-button { appearance: none; }
.weight-pencil { padding: 6px 10px; border: 0; background: transparent; color: inherit; }
[data-weight-matrix] td, [data-weight-matrix] thead th { text-align: center; }
[data-weight-matrix] tbody th, [data-weight-matrix] tfoot th { text-align: left; }
[data-weight-matrix] tfoot { font-weight: 700; }
.glossary-terms dt { margin-top: 24px; font-size: 16px; }
.glossary-terms dd { margin: 8px 0 0; max-width: 75ch; line-height: 1.65; color: var(--muted); }
.workspace-group > summary { min-height: 22px; align-items: center; }
.workspace-group a { min-height: 22px; }
.workspace a:focus-visible, .workspace button:focus-visible, .workspace summary:focus-visible { outline: 3px solid #b88637; outline-offset: 3px; }
.workspace button:disabled { cursor: not-allowed; }
.workspace .table-wrap { max-width: 100%; }
.workspace td { overflow-wrap: anywhere; }
.access-role-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
@media (prefers-reduced-motion: reduce) { .workspace *, .access-role-dialog * { scroll-behavior: auto !important; transition: none !important; } }
.workspace-role { margin: 0 0 20px; font-weight: 700; font-size: 14px; color: var(--green); }
.workspace-group { border: 0; margin: 0 0 6px; padding: 0; }
.workspace-group > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 10px; line-height: 1.4; overflow-wrap: anywhere; }
.workspace-group > summary::after { content: '+'; }
.workspace-group[open] > summary::after { content: '−'; }
.workspace-group > summary::-webkit-details-marker { display: none; }
.workspace-group > div { display: grid; gap: 1.5px; padding-left: 6px; border-left: 1px solid var(--line); margin-left: 10px; }
#nav .workspace-group a { display: flex; align-items: center; justify-content: space-between; min-height: 22px; gap: 10px; padding: 5px 12px; color: #405b50; border-radius: 8px; font-size: 13px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; text-decoration: none; }
#nav .workspace-group a > span:first-child { min-width: 0; }
.workspace-group > summary::after { flex-shrink: 0; }
#nav .workspace-group a:hover { background: #eff5f1; }
#nav .workspace-group a[aria-current="page"] { background: #e3f1e9; color: #153e30; box-shadow: inset 3px 0 #1d6656; font-weight: 700; }
.nav-count { border: 1px solid var(--line); border-radius: 6px; min-width: 24px; text-align: center; padding: 2px 5px; font-size: 11px; font-variant-numeric: tabular-nums; }
.workspace-metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); margin-bottom: 28px; }
.workspace-metrics > a { padding: 22px; text-decoration: none; color: var(--ink); border-right: 1px solid var(--line); }
.workspace-metrics > a:last-child { border-right: 0; }
.workspace-metrics > a:hover { background: var(--soft); }
.workspace-metrics strong { display: block; font-size: 36px; font-weight: 650; line-height: 1.2; margin: 12px 0; font-variant-numeric: tabular-nums; }
.workspace-metrics small { display: block; }
.workspace-metrics small span { float: right; }
.workspace-priority { display: flex; gap: 28px; justify-content: space-between; align-items: center; background: #163f35; color: #fff; border-radius: 12px; padding: 28px; margin-bottom: 30px; }
.workspace-priority h2 { font-size: 23px; margin: 6px 0; }
.workspace-priority p { max-width: 65ch; color: #e0eee6; margin: 8px 0; }
.workspace-priority .workspace-kicker { font-size: 12px; margin: 0; font-weight: 600; }
.workspace-priority .button { background: #e2f3e9; color: #143d2e; border-color: #e2f3e9; white-space: nowrap; }
.workspace-guide { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; }
.workspace-guide section { padding: 12px 0; }
.workspace-guide ol { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: workflow; }
.workspace-guide li { counter-increment: workflow; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.workspace-guide li::before { content: counter(workflow); grid-row: span 2; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 12px; }
.workspace-guide li span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.workspace-table-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.workspace-table-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 22px; border-bottom: 1px solid var(--line); }
.workspace-table-heading h2 { margin: 0; }
.workspace-table-heading p { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
#workspace-search { display: flex; align-items: center; gap: 8px; }
#workspace-search input { width: min(320px, 100%); min-width: 140px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.workspace-people-table { margin: 0; min-width: 760px; }
.workspace-people-table th { background: var(--soft); font-size: 12px; white-space: nowrap; }
.workspace-people-table td { padding: 18px 16px; vertical-align: middle; }
.workspace-people-table tbody tr:hover { background: var(--soft); }
.workspace-people-table td:first-child { min-width: 190px; }
.workspace-people-table small { display: block; max-width: 30ch; overflow-wrap: anywhere; margin-top: 5px; }
.workspace-people-table .actions { flex-wrap: nowrap; margin: 0; gap: 6px; }
.workspace-people-table button { white-space: nowrap; min-height: 40px; padding: 9px 12px; font-size: 12px; }
.workspace-empty { padding: 44px 24px; text-align: center; }
.workspace-empty p { color: var(--muted); }
.workspace .card { border-radius: 12px; }
.workspace .card > h2 { margin-bottom: 20px; }
.workspace .form-grid { max-width: 920px; }
.shell:has(.workspace) aside { position: sticky; top: 96px; align-self: start; max-height: calc(100dvh - 96px); overflow-y: auto; padding-top: 24px; }
html[data-theme="dark"] .workspace { --panel: #19251f; --ink: #edf5ef; --soft: #21342a; }
html[data-theme="dark"] .workspace-role { color: #a7e5c7; }
html[data-theme="dark"] #nav .workspace-group a { color: #d2e0d8; }
html[data-theme="dark"] #nav .workspace-group a:hover { background: #23392e; }
html[data-theme="dark"] #nav .workspace-group a[aria-current="page"] { background: #2c4c3c; color: #edfff4; box-shadow: inset 3px 0 #a7e5c7; }
@media(max-width:1000px) { .workspace-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }.workspace-metrics > a { border-bottom: 1px solid var(--line); }.workspace-guide { grid-template-columns: 1fr; gap: 12px; }.workspace-priority { align-items: flex-start; flex-direction: column; } }
@media(max-width:700px) { .shell:has(.workspace) aside { position: static; max-height: none; }.workspace-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.workspace-role { grid-column: 1/-1; margin-bottom: 0; }.workspace-header { align-items: flex-start; flex-direction: column; gap: 14px; }.workspace-metrics > a { padding: 16px; }.workspace-metrics strong { font-size: 29px; }.workspace-priority { padding: 22px; }#workspace-search { width: 100%; }#workspace-search input { flex: 1; }.workspace-table-heading { padding: 16px; } }
.question-progress { background: #fff; color: #182b2c; }
.question-progress .note { color: #405b53; }
.v2-intro { max-width: 850px; }
.v2-intro li { margin: 0 0 18px; line-height: 1.7; max-width: 70ch; }
.v2-survey { max-width: 1000px; }
.screening-page:has(.v2-survey) .page-head { margin-bottom: 16px; }
.screening-page:has(.v2-survey) .page-head h1 { font-size: clamp(24px, 2.2vw, 30px); margin: 6px 0 8px; }
.screening-page:has(.v2-survey) .page-head .lead { margin-bottom: 12px; }
.screening-page:has(.v2-survey) .question-progress { position: static; padding: 10px 16px; margin-bottom: 14px; }
.screening-page:has(.v2-survey) .survey-steps { margin-bottom: 16px; }
.v2-survey .v2-pagination { margin: 12px 0; gap: 6px; }
.v2-survey h2:focus { outline: none; }
.v2-survey p, .v2-survey legend, .v2-survey .triad-row > span { line-height: 1.65; overflow-wrap: anywhere; }
.v2-survey .choice { display: flex; align-items: flex-start; gap: 12px; padding: 16px; margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; line-height: 1.65; }
.v2-survey .choice input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 4px; }
.v2-survey .choice span { min-width: 0; }
.v2-survey .choice:has(input:checked) { border-color: #1d6656; box-shadow: inset 4px 0 #1d6656; }
.v2-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.v2-pagination button { min-width: 44px; min-height: 44px; }
.v2-pagination button[aria-current="page"] { background: #1d6656; color: #fff; border-color: #1d6656; }
.v2-survey button:focus-visible, .v2-survey .choice:focus-within { outline: 3px solid #398972; outline-offset: 3px; }
html[data-theme="dark"] .question-progress { background: #1a2923; color: #edf5f0; border-color: #52695e; }
html[data-theme="dark"] .question-progress .note { color: #c2d6ca; }
html[data-theme="dark"] .v2-survey .triad-card { background: #1a2923; color: #edf5f0; }
.context-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.context-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: #215546; border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 600; }
.context-pill[aria-pressed="true"], .context-pill.is-active { background: #163f35; color: #fff; border-color: #163f35; }
.badge-b2c { background: #e8eef7; color: #244872; }
.badge-b2b { background: #e4f2e8; color: #206042; }
.auth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.triad-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 18px; background: #fff; }
.triad-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.triad-row:first-of-type { border-top: 0; }
.triad-buttons { display: inline-flex; gap: 8px; }
.triad-btn { border: 1px solid #c9d8cf; background: #fff; color: #215546; border-radius: 8px; padding: 8px 12px; font-size: 12px; font-weight: 600; }
.triad-btn[aria-pressed="true"][data-triad-pick="most"] { background: #1d6656; color: #fff; border-color: #1d6656; }
.triad-btn[aria-pressed="true"][data-triad-pick="least"] { background: #8b3527; color: #fff; border-color: #8b3527; }
.triad-btn { min-height: 44px; min-width: 94px; }
.triad-btn::before { content: ''; display: inline-block; width: 1.2em; }
.triad-btn[aria-pressed="true"] { font-weight: 750; box-shadow: 0 0 0 2px currentColor; }
.triad-btn[aria-pressed="true"]::before { content: '✓'; }
.v2-survey .triad-row:has(.triad-btn[aria-pressed="true"]) > span { font-weight: 600; }
.v2-survey .choice:has(input:checked) { background: #e5f2eb; color: #123d2e; border-color: #1d6656; }
.v2-survey .choice input { accent-color: #1d6656; }
.quadrant-alert { border-left: 5px solid #b86029; background: #fdf4ea; border-color: #edd0b4; }
.ipsative-bar-row { display: grid; grid-template-columns: 170px 1fr 64px; gap: 12px; align-items: center; padding: 8px 0; }
.ipsative-track { height: 10px; background: #edf1ef; border-radius: 999px; position: relative; overflow: hidden; }
.ipsative-fill { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: #397f9b; }
.sandbox-result { border-radius: 12px; padding: 16px; margin-top: 14px; border: 1px solid var(--line); }
.sandbox-result.is-pass { background: #e8f4ec; border-color: #8bc29e; }
.sandbox-result.is-fail { background: #fbeee9; border-color: #e2a498; }
.source-excerpt { background: #f3f6f4; border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; white-space: pre-wrap; margin-bottom: 12px; }
@media(max-width:700px) { .triad-row { grid-template-columns: 1fr; } .ipsative-bar-row { grid-template-columns: 1fr; } }

/* The editable column occupies the same space as the saved percentages. */
[data-weight-matrix] table { width: 100%; min-width: 36rem; table-layout: fixed; }
[data-weight-matrix] th:first-child { width: 42%; }
[data-weight-matrix] td, [data-weight-matrix] th { padding: 8px; }
[data-weight-matrix] tbody tr { height: 3.5rem; }
.weight-value input[type="number"] { width: 4.5rem; }
@media (max-width: 700px) {
    #nav:has(.workspace-nav) { display: block; }
    .workspace-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 480px) {
    .workspace-nav { grid-template-columns: minmax(0, 1fr); }
}
