:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;color:#183042;background:#f3f7f8;font-size:16px;line-height:1.65}
*{box-sizing:border-box}body{margin:0}.demo-banner{background:#9c2d30;color:#fff;text-align:center;font-weight:700;padding:9px 16px;position:sticky;top:0;z-index:10}
header{background:#fff;border-bottom:1px solid #d8e3e6;padding:14px max(16px,calc((100% - 1080px)/2));display:flex;justify-content:space-between;gap:20px;align-items:center}.brand{font-weight:800;color:#135b66;text-decoration:none}.account{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
main{max-width:1080px;margin:auto;padding:24px 16px 64px}footer{text-align:center;background:#dce8ea;padding:24px}.card,.result-card{background:#fff;border:1px solid #d7e2e5;border-radius:14px;padding:22px;margin:16px 0;box-shadow:0 2px 8px #1830420d}.narrow{max-width:620px;margin:18px auto}
h1{font-size:clamp(1.65rem,5vw,2.25rem);line-height:1.3}h2{line-height:1.35}.eyebrow,.muted{color:#60757d}.hero{text-align:center;padding:36px 22px}
.login-page{min-height:100vh;background:linear-gradient(145deg,#eef6f7 0%,#f7fafb 48%,#e8f2f4 100%)}
.login-page header{display:none}.login-page main{display:grid;grid-template-columns:minmax(0,1fr);place-items:center;min-height:100vh;min-height:100svh;padding-top:32px}
.login-card{width:min(100%,680px);max-width:100%;min-width:0;text-align:center;padding:0;overflow:hidden;border-radius:20px;box-shadow:0 16px 42px #18304217}
.login-brand-lockup{padding:34px 40px 30px;background:linear-gradient(135deg,#f0faf9,#e5f3f5);border-bottom:1px solid #d3e5e8}
.login-system-name{display:flex;flex-direction:column;align-items:center;gap:.18em;margin:0;color:#103f4a;font-size:clamp(1.5rem,6.7vw,2.1rem);line-height:1.35;text-align:center;letter-spacing:.015em}
.login-system-name span{display:block;font-size:inherit;white-space:nowrap}
.login-form-content{max-width:540px;margin:auto;padding:28px 38px 34px}.login-heading{font-size:1.45rem;margin:0 0 20px}.login-form,.login-form label{text-align:left}.login-form label{margin:14px 0}.login-form input{background:#fbfdfe;transition:border-color .2s,box-shadow .2s,background .2s}.login-form input:focus{outline:0;border-color:#08717d;background:#fff;box-shadow:0 0 0 4px #08717d1f}.login-form .wide{margin-top:10px;min-height:50px}.login-help{margin:18px 0 0;font-size:.95rem}
label{display:block;font-weight:700;margin:16px 0}input,select,textarea{display:block;width:100%;font:inherit;border:1px solid #93a9af;border-radius:8px;padding:12px;margin-top:6px;min-height:46px}textarea{min-height:100px}
button,.button{font:inherit;font-weight:700;border:0;border-radius:9px;padding:12px 18px;min-height:46px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.primary{background:#08717d;color:#fff}.secondary{background:#e1eef0;color:#174d55}.danger{background:#a32d32;color:#fff}.wide{width:100%}.link-button{background:none;color:#08717d;padding:4px;min-height:auto}
.option{border:2px solid #c8d8dc;border-radius:10px;padding:13px;display:flex;gap:12px;align-items:center}.option:has(input:checked){border-color:#08717d;background:#eaf7f7}.option input{width:22px;height:22px;margin:0}.actions,.title-row,.subnav{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap}
progress{width:100%;height:14px}.progress-label{text-align:right;font-weight:700}.number-grid,.menu-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}.number-grid a,.menu-grid a{padding:14px;background:#fff;border:1px solid #b6cbd0;border-radius:9px;text-align:center}
table{border-collapse:collapse;width:100%}th,td{text-align:left;padding:10px;border-bottom:1px solid #dce5e7;vertical-align:top}.table-wrap{overflow-x:auto}.score-grid,.two-col{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:14px}.score-grid .card{display:flex;flex-direction:column}.score-grid strong{font-size:2rem;color:#08717d}
.notice{background:#dcf5e7;border:1px solid #64ad81;padding:14px;border-radius:9px}.error,.warning{background:#fff0dc;border:1px solid #d99138;padding:14px;border-radius:9px}.badge{display:inline-flex;align-items:center;justify-content:center;min-width:5em;min-height:28px;box-sizing:border-box;border-radius:6px;padding:4px 10px;background:#dce8ea;font-size:.85rem;line-height:1.4;white-space:nowrap;word-break:keep-all;flex-shrink:0;vertical-align:middle}.survey-result-page p.badge{white-space:normal;text-align:left;justify-content:flex-start}.badge.warn,.alert-result{background:#fff0dc;border-color:#d99138}.result-main{font-size:1.35rem;font-weight:800}.success-text{color:#187046;font-weight:700}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:640px){header{align-items:flex-start}.account{justify-content:flex-end;font-size:.9rem}.actions>*{flex:1}.question{padding:18px}.two-col{display:block}}
@media print{.demo-banner{position:static}header,.no-print,footer{display:none}body{background:#fff}.card,.result-card{box-shadow:none;break-inside:avoid}main{padding:0}.print-view .demo-banner{display:block}}
.admin-back{margin-bottom:18px}.admin-back .button{gap:10px}.dashboard-back-icon{display:inline-flex;align-items:center;justify-content:center;font-size:24px;line-height:1;width:28px;height:28px;flex:0 0 28px}
.step-list{counter-reset:paper-step;display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;padding:0;list-style:none}.step-list li{background:#edf6f7;border-left:4px solid #08717d;border-radius:8px;padding:14px}.step-list li::before{counter-increment:paper-step;content:counter(paper-step);display:inline-grid;place-items:center;width:28px;height:28px;margin-right:8px;border-radius:50%;background:#08717d;color:#fff;font-weight:800}.compact-select{min-width:145px;margin:0}.confidence-low{background:#fff0dc}.source-links{display:flex;gap:10px;flex-wrap:wrap}.paper-review-table td:first-child{font-weight:800;width:54px}.paper-review-table select{margin:0;min-width:180px}.status-confirmed{background:#dcf5e7;color:#187046}.status-reviewing{background:#fff0dc;color:#7a4d13}
button:disabled,.button:disabled{cursor:not-allowed;opacity:.55}
dialog{border:0;border-radius:16px;padding:0;width:min(680px,calc(100% - 32px));max-height:88vh;color:inherit;background:#fff;box-shadow:0 18px 60px #102c3555}
dialog::backdrop{background:#102c3599;backdrop-filter:blur(2px)}
.dialog-card{padding:24px;max-height:88vh;overflow-y:auto}
.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #dce5e7;padding-bottom:12px}
.dialog-header h2{margin:0}
.dialog-close{background:transparent;color:#425e66;font-size:1.8rem;line-height:1;padding:4px 10px;min-height:auto}
.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
@media(max-width:640px){.dialog-card{padding:18px}.dialog-actions>*{flex:1}}

/* Employee survey: phone-friendly controls and card-style lists. */
.employee-question fieldset{border:0;margin:20px 0;padding:0;display:grid;gap:10px}.employee-question .option{margin:0;min-height:56px}.employee-question h1{overflow-wrap:anywhere}.answer-details summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center}.answer-details li{margin-bottom:10px}.responsive-table-action .button{white-space:nowrap}
.resume-summary{display:grid;gap:3px;max-width:420px;margin:0 auto 16px;padding:12px 16px;border:1px solid #b7d8dc;border-radius:10px;background:#edf8f8}.resume-summary strong{color:#075f69;font-size:1.08rem}.resume-summary span{color:#526d75}.resume-primary-button{min-height:52px;font-size:1.05rem}.survey-resume-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:4px 0 20px;padding:16px 18px;border:1px solid #8fc7cd;border-radius:12px;background:#edf8f8}.survey-resume-panel>div{display:grid;gap:2px}.survey-resume-panel strong{color:#075f69;font-size:1.08rem}.survey-resume-panel span{color:#526d75}.survey-resume-panel .button{flex:0 0 auto}
.survey-mobile-menu{display:none}.survey-question-jump{margin:14px 0;border:1px solid #9fc8cd;border-radius:11px;background:#fff;box-shadow:0 3px 10px #1830420d}.survey-question-jump summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:10px 15px;color:#075f69;font-weight:800;cursor:pointer;list-style:none}.survey-question-jump summary::-webkit-details-marker{display:none}.survey-question-jump summary::after{content:"＋";font-size:1.25rem;line-height:1}.survey-question-jump[open] summary::after{content:"−"}.survey-question-jump[open] summary{border-bottom:1px solid #dce8ea}.survey-question-jump-body{padding:14px}.question-jump-legend{display:flex;gap:18px;flex-wrap:wrap;margin:0 0 12px;color:#526d75;font-size:.9rem}.question-jump-legend span{display:inline-flex;align-items:center;gap:6px}.question-jump-legend i{display:inline-block;width:12px;height:12px;border-radius:4px}.answered-dot{background:#d8eef0;border:1px solid #67aab2}.unanswered-dot{background:#fff0dc;border:1px solid #d99138}.survey-question-grid a{text-decoration:none;font-weight:800}.survey-question-grid a.is-answered{border-color:#88b9bf;background:#e8f5f6;color:#075f69}.survey-question-grid a.is-answered::after{content:"✓";margin-left:4px;font-size:.72rem}.survey-question-grid a.is-unanswered{border-color:#d9a15d;background:#fff7eb;color:#714713}
@media(max-width:640px){
    main{padding:16px 12px 48px}
    header{padding:12px;gap:8px;flex-direction:column}.account{width:100%;justify-content:space-between}
    .card,.result-card{padding:16px;border-radius:11px;margin:12px 0}.hero{padding:26px 16px}
    .employee-page-heading{align-items:stretch}.employee-page-heading>*,.employee-page-heading .button{width:100%}
    .survey-progress{flex-wrap:nowrap}.survey-progress .survey-desktop-answer-list{display:none}.progress-label{text-align:left}
    .survey-mobile-menu{position:sticky;top:8px;z-index:8;display:block;margin:10px 0 12px;border-radius:11px;background:#fff;box-shadow:0 5px 18px #18304224}.survey-mobile-menu summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:10px 15px;border-radius:11px;background:#126f7a;color:#fff;font-weight:800;cursor:pointer;list-style:none}.survey-mobile-menu summary::-webkit-details-marker{display:none}.survey-mobile-menu summary::after{content:"メニューを開く ＋";font-size:.82rem}.survey-mobile-menu[open] summary{border-radius:11px 11px 0 0}.survey-mobile-menu[open] summary::after{content:"閉じる −"}.survey-mobile-menu-actions{display:grid;gap:9px;padding:12px;border:1px solid #9fc8cd;border-top:0;border-radius:0 0 11px 11px}.survey-mobile-menu-actions>*{width:100%;min-height:48px}
    .employee-question{padding:18px 16px}.employee-question h1{font-size:1.35rem;margin:10px 0 18px}.employee-question fieldset{margin-bottom:14px}.employee-question .option{padding:14px;font-size:1.05rem}.employee-question .option input{width:26px;height:26px;flex:0 0 26px}
    .survey-actions.survey-sticky-actions{position:sticky;bottom:0;z-index:7;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:9px;margin:20px -16px -18px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #bdd3d7;background:#fffffff2;box-shadow:0 -8px 20px #1830421a;backdrop-filter:blur(8px)}.survey-actions.survey-actions-first{grid-template-columns:1fr}.survey-actions.survey-sticky-actions>*{width:100%;min-height:52px;padding-left:10px;padding-right:10px}.survey-actions .survey-pause-action{display:none}.survey-next-action{font-size:1.03rem}
    .responsive-table-wrap{padding:0;background:transparent;border:0;box-shadow:none;overflow:visible}
    .responsive-table,.responsive-table tbody,.responsive-table tr,.responsive-table td{display:block;width:100%}
    .responsive-table thead{display:none}.responsive-table tr{background:#fff;border:1px solid #d7e2e5;border-radius:11px;padding:12px;margin:0 0 12px;box-shadow:0 2px 8px #1830420d}
    .responsive-table td{display:grid;grid-template-columns:minmax(64px,82px) 1fr;gap:10px;align-items:start;padding:8px 4px;border-bottom:1px solid #edf2f3;white-space:normal;overflow-wrap:anywhere}
    .responsive-table td[data-label]::before{content:attr(data-label);font-size:.82rem;font-weight:800;color:#60757d}
    .responsive-table td:last-child{border-bottom:0}.responsive-table .responsive-table-action{display:block;padding-top:10px}.responsive-table-action .button{width:100%}
    .responsive-table .responsive-table-empty td{display:block;text-align:center;border:0}.number-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.number-grid a{padding:11px 4px;min-height:46px;display:grid;place-items:center}.survey-question-jump{position:sticky;top:8px;z-index:7;margin:10px 0 14px}.survey-question-jump summary{min-height:52px;background:#edf8f8}.survey-question-jump-body{max-height:55vh;overflow-y:auto;overscroll-behavior:contain}.survey-question-grid a{display:flex;gap:2px}
    .score-grid{grid-template-columns:1fr}.answer-details ol{padding-left:24px}.employee-review .button,.employee-unanswered .button{width:100%}
    .resume-summary{text-align:left}.resume-primary-button{min-height:56px;font-size:1.08rem}.survey-resume-panel{display:grid;gap:12px;padding:15px}.survey-resume-panel .button{width:100%;min-height:50px}

    .login-page main{min-height:100vh;min-height:100svh;padding:16px 12px}
    .login-page .login-card{margin:0;padding:0;border-radius:16px}.login-brand-lockup{padding:24px 16px}
    .login-form-content{padding:24px 20px 28px}.login-heading{font-size:1.3rem;margin-bottom:16px}.login-form label{margin:12px 0}.login-form input{min-height:50px;font-size:16px}.login-form .wide{min-height:52px}.login-help{margin-top:16px}
}

@media(max-width:360px){.login-page main{padding-left:8px;padding-right:8px}.login-brand-lockup{padding-left:12px;padding-right:12px}.login-form-content{padding-left:16px;padding-right:16px}}

/* Keep result actions reachable without scrolling through every score. */
.result-action-menu{position:sticky;top:8px;z-index:9;margin:16px 0;border:1px solid #9fc8cd;border-radius:12px;background:#fff;box-shadow:0 4px 18px #18304220}
.result-action-menu summary{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:48px;padding:10px 16px;background:#126f7a;color:#fff;border-radius:11px;cursor:pointer;font-weight:700;list-style:none}
.result-action-menu summary::-webkit-details-marker{display:none}
.result-action-menu summary span{font-size:.8rem}
.result-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:12px;max-height:65dvh;overflow:auto}
.result-actions .button,.result-actions button{width:100%;min-height:48px;white-space:normal}
.result-actions form{margin:0}

@media(max-width:640px){
    .survey-question-page{min-height:100svh}
    .survey-question-page>header{min-height:48px;padding:6px 12px}
    .survey-question-page>header>.brand{display:none}
    .survey-question-page .account{min-height:36px;gap:4px;font-size:.82rem}
    .survey-question-page main{display:flex;flex-direction:column;min-height:calc(100svh - 48px);padding:8px 12px calc(84px + env(safe-area-inset-bottom))}
    .survey-question-toolbar{position:relative;display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 12px;flex-shrink:0}
    .survey-question-toolbar>progress{grid-column:1/-1;grid-row:2;height:6px}
    .survey-question-toolbar .survey-mobile-menu{position:static;grid-column:2;grid-row:1;margin:0;box-shadow:none}
    .survey-question-toolbar .survey-mobile-menu summary{min-height:40px;padding:6px 12px}
    .survey-question-toolbar .survey-mobile-menu summary::after{content:" ＋";font-size:1rem}
    .survey-question-toolbar .survey-mobile-menu[open] summary::after{content:" −"}
    .survey-question-toolbar .survey-mobile-menu-actions{position:absolute;top:46px;left:0;right:0;z-index:10;background:#fff;box-shadow:0 6px 20px #18304230;max-height:60dvh;overflow:auto}
    .survey-question-page .employee-question{flex:1;display:flex;flex-direction:column;justify-content:center;margin:10px 0 0;padding:14px}
    .survey-question-page .employee-question .eyebrow{font-size:.8rem;line-height:1.4;margin:0 0 6px}
    .survey-question-page .employee-question h1{font-size:1.18rem;line-height:1.4;margin:0 0 12px}
    .survey-question-page .employee-question fieldset{gap:8px;margin:0}
    .survey-question-page .employee-question .option{min-height:48px;padding:9px 12px;font-size:1rem;line-height:1.4;margin:0}
    .survey-question-page .employee-question .option input{width:24px;height:24px;min-height:0;flex:0 0 24px;padding:0;margin:0}
    .survey-question-page .survey-actions.survey-sticky-actions{position:fixed;left:0;right:0;bottom:0;margin:0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));z-index:8}
    .survey-result-page main{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
    .survey-result-page .result-action-menu{position:fixed;top:auto;bottom:calc(10px + env(safe-area-inset-bottom));left:12px;right:12px;margin:0;display:flex;flex-direction:column-reverse}
    .survey-result-page .result-action-menu:not([open])>.result-actions{display:none}
}
@media print{.result-action-menu{display:none!important}}

.employee-management-heading{align-items:flex-end;gap:16px;margin-bottom:24px}
.employee-management-heading h1{margin-bottom:0}
.employee-management-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.employee-management-actions .button,.employee-management-actions button{min-height:48px;text-align:center;line-height:1.5;white-space:normal}
.employee-management-actions .button:hover{background:#cde3e7;color:#103e46}
.employee-management-actions .button:focus-visible{outline:3px solid #08717d;outline-offset:3px}
@media(max-width:900px){.employee-management-heading{align-items:stretch}.employee-management-actions{width:100%}.employee-management-actions>*{flex:1 1 240px}}
@media(max-width:640px){.employee-management-actions{flex-direction:column;align-items:stretch}.employee-management-actions>*{flex:0 0 auto;width:100%}}

.portal-candidate-fieldset{border:0;padding:0;margin:0 0 28px;min-width:0}
.portal-candidate-fieldset legend{font-size:1.2rem;font-weight:700;margin-bottom:8px}
.portal-candidate-help,.portal-candidate-count{color:#526d75;margin:8px 0 12px}
.portal-candidate-list{max-height:440px;overflow:auto;border:1px solid #c8d8dc;border-radius:10px}
.portal-candidate-list:focus-visible{outline:3px solid #08717d;outline-offset:3px}
.portal-candidate-list table{margin:0;min-width:460px;width:100%}
.portal-candidate-list thead th{position:sticky;top:0;background:#edf5f6;z-index:1}
.portal-candidate-row td{vertical-align:middle}
.portal-candidate-row td:nth-child(2),.portal-candidate-row td:nth-child(3){padding:0}
.portal-candidate-row label{display:block;padding:14px 12px;margin:0;cursor:pointer;font-weight:400;min-height:48px}
.portal-candidate-radio{width:64px;text-align:center}
.portal-candidate-radio input{width:21px;height:21px;min-height:0;padding:0;margin:0;accent-color:#08717d;cursor:pointer;vertical-align:middle}
.portal-candidate-row:not(.is-linked):hover{background:#f0f8f9}
.portal-candidate-row:has(input:checked){background:#ddf2f0;box-shadow:inset 4px 0 #08717d}
.portal-candidate-row:has(input:focus-visible){outline:2px solid #08717d;outline-offset:-2px}
.portal-candidate-row.is-linked{background:#f4f6f7;color:#64767e}
.portal-candidate-row.is-linked label,.portal-candidate-row.is-linked input{cursor:default}
.portal-unlinked-badge{background:#e8f4ee;color:#226444}
.portal-candidate-empty{text-align:center;padding:24px;white-space:normal}
.portal-registration-heading{font-size:1.2rem;margin:0 0 18px}
@media(max-width:640px){.portal-candidate-list{max-height:360px}.portal-candidate-list th,.portal-candidate-list td{padding:10px 8px}.portal-candidate-row td:nth-child(2),.portal-candidate-row td:nth-child(3){padding:0}.portal-candidate-row label{padding:12px 8px}.portal-candidate-radio{width:48px}}

.portal-candidate-list table{min-width:720px}
.portal-candidate-row td:nth-child(4),.portal-candidate-row td:nth-child(5){padding:0}

.employee-management-actions .portal-link-button{background:#2456a6;color:#fff;box-shadow:0 2px 5px #183a7026}
.employee-management-actions .portal-link-button:hover{background:#193e7d;color:#fff}
.employee-management-actions .portal-link-button:focus-visible{outline:3px solid #2456a6;outline-offset:3px}

.employee-search-form{align-items:flex-end;flex-wrap:nowrap}
.employee-search-form>label{min-width:0}
.employee-search-form input,.employee-search-form>button{height:52px;min-height:52px}
.employee-search-form>button{flex:0 0 auto;align-self:flex-end;min-width:76px}
@media(max-width:640px){.employee-search-form{flex-direction:column;align-items:stretch}.employee-search-form>label{width:100%}.employee-search-form>button{width:100%;align-self:stretch}}

.csv-dropzone{display:flex;flex-direction:column;align-items:center;gap:8px;padding:26px 18px;margin:8px 0 12px;border:2px dashed #8aa9c6;border-radius:12px;background:#f2f7fc;color:#20456d;text-align:center;cursor:pointer;transition:background .15s,border-color .15s}
.csv-dropzone:hover,.csv-dropzone.is-dragover{background:#e1eefb;border-color:#2456a6}
.csv-dropzone:focus-visible{outline:3px solid #2456a6;outline-offset:3px}
.csv-dropzone strong{font-size:1.08rem}.csv-dropzone span,.csv-dropzone small{font-weight:400}
.csv-file-status{margin:8px 0 16px;color:#526d75;overflow-wrap:anywhere}
.csv-file-status.is-error{color:#9c2d30;font-weight:700}
.employee-csv-guide{margin:22px 0;padding:18px;border:1px solid #c6d9ec;border-radius:10px;background:#f5f9fd}
.employee-csv-guide h3{margin:0 0 12px;font-size:1.1rem;color:#20456d}
.employee-csv-guide ol{padding-left:24px}.employee-csv-guide li{margin:10px 0;line-height:1.7}
.employee-csv-example{overflow-x:auto;padding:14px;border:1px solid #c8d8dc;border-radius:8px;background:#fff;font-size:.88rem;line-height:1.8}
@media(max-width:640px){.csv-dropzone{padding:22px 12px}.employee-csv-guide{padding:14px}}

input.csv-file-input{position:absolute;width:1px;height:1px;min-height:0;padding:0;margin:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
.csv-dropzone:has(+ input.csv-file-input:focus-visible){outline:3px solid #2456a6;outline-offset:3px}

/* Admin dashboard navigation buttons */
.admin-dashboard-menu{gap:12px;margin:24px 0}
.admin-dashboard-menu a,.admin-dashboard-menu a:visited{display:flex;align-items:center;justify-content:center;min-height:80px;padding:16px 18px;background:#087887;color:#fff;border:1px solid #066875;border-bottom:4px solid #055663;border-radius:12px;box-shadow:0 3px 7px #18304220;text-decoration:none;font-weight:700;line-height:1.6;overflow-wrap:anywhere;transition:background .15s,box-shadow .15s,transform .15s}
.admin-dashboard-menu a:hover{background:#066574;color:#fff;box-shadow:0 5px 10px #18304230;transform:translateY(-2px)}
.admin-dashboard-menu a:active{transform:translateY(1px);box-shadow:0 1px 3px #18304220}
.admin-dashboard-menu a:focus-visible{outline:3px solid #2456a6;outline-offset:4px}
@media(prefers-reduced-motion:reduce){.admin-dashboard-menu a{transition:none}.admin-dashboard-menu a:hover,.admin-dashboard-menu a:active{transform:none}}
/* Wider account lists; keep account values readable without forced wrapping. */
.account-management-page main{max-width:1600px}
.account-management-page .account-list-table{width:100%;table-layout:auto}
.account-management-page .account-list-table th,.account-management-page .account-list-table td{white-space:nowrap;padding:12px 14px;vertical-align:middle}
.account-management-page .employee-account-table{min-width:1200px}
.account-management-page .administrator-account-table{min-width:960px}
.account-management-page .table-wrap{max-width:100%;overflow-x:auto}
.account-management-page .account-list-table tbody tr{height:78px}

/* Keep the dashboard return inside the answer menu, preserving the current answer on pause. */
.survey-mobile-menu-actions .survey-pause-note{min-height:0;margin:0;color:#526d75;font-size:.85rem;line-height:1.6}
.survey-mobile-menu-actions .survey-menu-pause{white-space:normal;line-height:1.5}
@media(min-width:641px){
    .survey-question-toolbar{position:relative;display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px 16px;margin-bottom:16px}
    .survey-question-toolbar .survey-progress{margin:0}
    .survey-question-toolbar>progress{grid-column:1/-1;grid-row:2}
    .survey-question-page .survey-mobile-menu{display:block;grid-column:2;grid-row:1;margin:0}
    .survey-question-page .survey-mobile-menu summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 15px;border-radius:10px;background:#126f7a;color:#fff;font-weight:700;cursor:pointer;list-style:none}
    .survey-question-page .survey-mobile-menu summary::-webkit-details-marker{display:none}
    .survey-question-page .survey-mobile-menu summary::after{content:"＋"}
    .survey-question-page .survey-mobile-menu[open] summary::after{content:"−"}
    .survey-question-page .survey-mobile-menu-actions{position:absolute;right:0;top:52px;z-index:10;display:grid;gap:10px;width:min(400px,100%);padding:14px;border:1px solid #9fc8cd;border-radius:12px;background:#fff;box-shadow:0 6px 20px #18304230}
    .survey-question-page .survey-mobile-menu-actions>.button,.survey-question-page .survey-mobile-menu-actions>button{width:100%;min-height:48px}
}

/* Consistent lists and practitioner detail cards. */
main .table-wrap{max-width:100%;overflow-x:auto}
main .compact-data-table{width:100%;table-layout:auto}
main .compact-data-table th,main .compact-data-table td{white-space:nowrap;word-break:normal;overflow-wrap:normal;vertical-align:middle;padding:10px 12px}
main .compact-data-table .badge{white-space:nowrap}
.table-cell-details{display:block;width:auto;max-width:26ch;min-height:36px;padding:4px 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px dashed #91b3bb;border-radius:5px;background:#f0f7f8;color:#174d55;font:inherit;text-align:left;cursor:pointer}
.table-cell-details:hover{background:#dceef1}.table-cell-details:focus-visible{outline:3px solid #08717d;outline-offset:2px}
.table-detail-dialog{width:min(600px,calc(100% - 32px));max-height:80vh;overflow:auto;padding:24px;border:1px solid #b7ced4;border-radius:14px;color:#183042}.table-detail-dialog::backdrop{background:#102c3580}.table-detail-content{white-space:pre-wrap;overflow-wrap:anywhere}
.practitioner-detail-page main{width:100%;max-width:1080px;margin-inline:auto;padding:24px 20px 64px}
.practitioner-detail-page h1{font-size:clamp(1.4rem,3vw,1.9rem);line-height:1.5}.practitioner-detail-page .card{padding:20px}.practitioner-summary{display:grid;grid-template-columns:minmax(160px,auto) minmax(0,1fr);gap:10px 20px;margin:0}.practitioner-summary dt{font-weight:700;color:#526d75}.practitioner-summary dd{margin:0;overflow-wrap:anywhere}.practitioner-detail-page .two-col{align-items:start}.practitioner-detail-page .two-col .card{margin-top:0}
@media(max-width:640px){main .compact-data-table{display:table;min-width:700px}main .compact-data-table thead{display:table-header-group}main .compact-data-table tbody{display:table-row-group}main .compact-data-table tr{display:table-row}main .compact-data-table th,main .compact-data-table td{display:table-cell}main .compact-data-table td::before{display:none}.practitioner-summary{grid-template-columns:1fr;gap:4px}.practitioner-summary dd{margin-bottom:10px}.practitioner-detail-page main{padding:16px 12px 60px}}
@media print{.table-cell-details{max-width:none;white-space:normal;overflow:visible;border:0;background:transparent}.table-detail-dialog{display:none}}
/* Prose and responsive tables wrap; compact lists have their own rules. */
main table th,main table td{white-space:normal;word-break:normal;overflow-wrap:anywhere}
.practitioner-list-page main{width:100%;max-width:1600px;padding-inline:24px}
.practitioner-result-table{min-width:1300px}.practitioner-result-table th,.practitioner-result-table td{padding:12px 14px;vertical-align:middle}
.table-cell-details{max-width:24ch}.table-link-preview{display:inline-block;max-width:24ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}.table-link-fulltext{display:inline-block;min-height:30px;padding:2px 7px;margin-left:6px;border:1px solid #b7ced4;background:#edf6f7;color:#174d55;font-size:.8rem}
.practitioner-detail-page .practitioner-review-panel{border:1px solid #a7c7e8;border-top:5px solid #2868a6;background:#f4f8fe}.practitioner-review-panel h2{color:#204f83}.practitioner-review-panel .primary{background:#2868a6}.practitioner-detail-page .practitioner-interview-panel{border:1px solid #a9d2bf;border-top:5px solid #28764f;background:#f3faf6}.practitioner-interview-panel h2{color:#245e42}.practitioner-interview-panel .primary{background:#28764f}.practitioner-review-panel textarea,.practitioner-review-panel select,.practitioner-interview-panel textarea,.practitioner-interview-panel select{background:#fff}
@media(max-width:640px){.practitioner-list-page main{padding-inline:12px}}
.final-review-menu{text-align:center}.final-review-menu h1{white-space:nowrap;font-size:clamp(1.4rem,4vw,2rem)}.final-review-buttons{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin:24px 0}.final-review-buttons .button{min-width:190px;min-height:52px;white-space:nowrap}.employee-submission{max-width:960px;margin-inline:auto}.employee-submission h1{font-size:clamp(1.25rem,4vw,2rem);white-space:nowrap}.employee-submission h2,.employee-submission legend{font-size:clamp(1.05rem,3.5vw,1.3rem);font-weight:700;white-space:nowrap}.employee-submission fieldset{min-width:0;border:0;padding:0;margin:0}.employee-submission .option span{white-space:nowrap}.employee-submission .score-grid b{font-size:clamp(.85rem,2.8vw,1rem);white-space:nowrap}.submission-send{text-align:center;margin:28px 0}.submission-send button{width:min(100%,360px);min-height:56px;white-space:nowrap}.submission-pause{text-align:center;border-top:2px solid #d7e2e5;margin-top:48px;padding-top:24px}.submission-pause button{min-width:220px;min-height:48px;white-space:nowrap}@media(max-width:480px){.final-review-buttons{flex-direction:column;align-items:center}.final-review-buttons .button{width:min(100%,300px)}}
/* Wide lists scroll inside their container, never outside the page. */
body.admin-fluid-list-page main{width:100%;max-width:none;margin-inline:0;padding-inline:clamp(12px,2vw,36px)}
body.admin-fluid-list-page main .table-wrap{width:100%;min-width:0;max-width:100%;max-height:none;overflow-x:auto}
body.admin-fluid-list-page main .table-wrap table{width:100%;max-width:none;table-layout:auto}
body.admin-fluid-list-page main .table-wrap th,body.admin-fluid-list-page main .table-wrap td{white-space:nowrap;vertical-align:middle}
@media print{body.admin-fluid-list-page main{width:100%;padding:0}body.admin-fluid-list-page main .table-wrap{width:100%;min-width:0}}
/* Expand column spacing and text previews with the available list width. */
body.admin-fluid-list-page main .table-wrap th,body.admin-fluid-list-page main .table-wrap td{padding-inline:clamp(14px,1.2vw,28px)}
body.admin-fluid-list-page .table-cell-details,body.admin-fluid-list-page .table-link-preview{max-width:clamp(24ch,22vw,56ch)}
@media(max-width:640px){body.admin-fluid-list-page main .table-wrap th,body.admin-fluid-list-page main .table-wrap td{padding-inline:12px}}
.table-cell-details:not(.is-truncated){border-color:transparent;background:transparent;cursor:default}.table-cell-details:not(.is-truncated):hover{background:transparent}.table-link-fulltext[hidden]{display:none}

/* Uniform data-row height, independent of action and status presence. */
main .table-wrap table tr:has(>td){height:80px}
main .table-wrap table td{height:80px;vertical-align:middle!important;padding-block:10px!important}
main .table-wrap table td>form,main .table-wrap table td .actions>form{margin-block:0}
main .table-wrap table td .actions{align-items:center;flex-wrap:nowrap}
main .table-wrap table td p{margin-block:0}
@media print{main .table-wrap table tr,main .table-wrap table td{height:auto!important}}
/* Shared containment for cards, narrow screens, long names and form controls. */
main{min-width:0;overflow-wrap:anywhere}
.card,.result-card,.table-wrap,fieldset{min-width:0;max-width:100%}
.two-col>*,.score-grid>*,.actions>*,.title-row>*,.dialog-header>*{min-width:0}
input,select,textarea{min-width:0;max-width:100%}
button,.button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.option input[type=checkbox],.option input[type=radio]{flex-shrink:0}
main img{max-width:100%;height:auto}
main .compact-data-table th{white-space:normal;overflow-wrap:anywhere}
main .table-wrap td[colspan]{white-space:normal;overflow-wrap:anywhere}
.table-scroll-hint{margin:8px 0;color:#526d75;font-size:.88rem}
.table-scroll-hint[hidden]{display:none}
.table-wrap:focus-visible{outline:3px solid #08717d;outline-offset:3px}
.button-group{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:16px 0}
.button-group>form{margin:0;min-width:0;max-width:100%}
.analysis-group-item+.analysis-group-item{border-top:1px solid #dce5e7;margin-top:24px;padding-top:8px}
@media(max-width:640px){
    main .responsive-table{min-width:0;table-layout:auto}
    main .responsive-table th,main .responsive-table td{white-space:normal;overflow-wrap:anywhere}
    main .responsive-table td{grid-template-columns:minmax(64px,82px) minmax(0,1fr)}
    main .responsive-table td>*{min-width:0;max-width:100%}
    main .responsive-table tr,main .responsive-table td{height:auto}
    .employee-submission h1,.employee-submission h2,.employee-submission legend,.employee-submission .option span,.employee-submission .score-grid b,.final-review-menu h1{white-space:normal}
    .dialog-actions{flex-wrap:wrap}
}
@media print{.table-scroll-hint{display:none}}