:root{font-family:Inter,Arial,sans-serif;color:#183126;background:#f6f8f6}

*{box-sizing:border-box}

body{margin:0}
body:not(.feedback-page){background:#f3f5f3;color:#173126}

header{display:flex;gap:20px;align-items:center;background:#fff;border-bottom:1px solid #dde5df;padding:18px max(24px,calc((100vw - 1180px)/2));flex-wrap:wrap}

header a{color:#245a3b;text-decoration:none}

header span{color:#6a786d}

main{max-width:1180px;margin:32px auto;padding:0 20px}

.feedback{max-width:700px}

.card{background:#fff;border:1px solid #e0e6df;border-radius:16px;padding:24px;margin:0 0 20px;box-shadow:0 5px 20px #1831260a}

h1{margin:0 0 8px;font-size:30px}

h2{margin:0 0 14px;font-size:21px}

h3{font-size:17px;margin:0 0 12px}

p{color:#5a675e}

.heading{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:18px}

.heading p{margin:0}
.header-actions{display:flex;gap:8px;flex-wrap:wrap}

.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}

.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}

label{display:block;font-weight:600;margin:12px 0}

input,select,textarea{display:block;width:100%;border:1px solid #cad6cb;border-radius:9px;padding:11px;font:inherit;margin-top:7px;background:#fff}

textarea{min-height:90px}

button{border:0;background:#e86d21;color:#fff;padding:11px 17px;border-radius:9px;font-weight:700;cursor:pointer}

.secondary{background:#e7eee8;color:#1b5033}

.roster{padding:14px;border-radius:10px;background:#f6faf6;margin-top:16px}

.roster div{padding:4px 0}

.row{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:10px;align-items:end;border-bottom:1px solid #e5eae5;padding:9px 0}

.question-row{grid-template-columns:1.5fr 1fr 1fr 1fr auto}

.row label{margin:0}

.row button{background:#f5e7e4;color:#9c3020}

.result{border:1px solid #e1e7e1;border-radius:12px;margin:10px 0;background:#fff;overflow:hidden}
.result summary{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px;cursor:pointer;list-style:none}
.result summary::-webkit-details-marker{display:none}
.result summary>span{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.result summary>span span{color:#68766c;font-size:13px}
.result-body{padding:0 16px 16px;border-top:1px solid #edf0ed}
.result-team{color:#5a675e;font-size:13px;padding:14px 0}
.result-answer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:10px 0;border-top:1px solid #f0f2f0}
.result-answer span{color:#4f5d53}
.danger{margin-top:16px;background:#a83227}

.result small{color:#66756b}

.ratings{display:flex;gap:10px;flex-wrap:wrap}

.ratings label{margin:0;cursor:pointer}

.ratings input{display:inline;width:auto;margin-right:4px}

#message,#feedbackMessage{font-weight:700;color:#9c3020}

.kpi-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 24px}

.kpi-metric{padding:16px;border:1px solid #dce9df;background:#f5faf6;border-radius:12px}

.kpi-metric span,.kpi-metric small{display:block;color:#5a675e}

.kpi-metric span{font-size:13px;font-weight:700}

.kpi-metric strong{display:block;font-size:27px;margin:5px 0}

.kpi-metric small{font-size:12px}

.view-tabs{display:flex;gap:8px;margin:4px 0 18px;border-bottom:1px solid #e4e9e4}
.view-tab{border-radius:9px 9px 0 0;background:transparent;color:#59675d;padding:11px 16px}
.view-tab.active{background:#183126;color:#fff}
.kpi-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:12px}

.kpi-person{padding:16px;border:1px solid #dfe8e0;border-radius:12px;background:#fff}

.kpi-card-head{display:flex;justify-content:space-between;align-items:start;gap:10px}

.kpi-card-head strong{display:block;font-size:16px}

.kpi-card-head small{display:block;color:#67786b;font-size:12px;margin-top:4px}

.score-badge{white-space:nowrap;border-radius:9px;padding:7px 9px;background:#e8f3e9;color:#18512c}

.kpi-subline{font-size:13px;margin:10px 0}

.kpi-tags{display:flex;gap:6px;flex-wrap:wrap}

.kpi-tags span{padding:5px 8px;background:#f0f3f0;border-radius:20px;font-size:12px;font-weight:700}

.kpi-breakdown{border-top:1px solid #edf0ed;margin-top:12px;padding-top:8px;font-size:13px;line-height:1.7}

.empty-state{padding:18px;border:1px dashed #cbd9ce;border-radius:10px;margin:0}

#results{margin-top:12px}

/* KPI admin dashboard */
body:not(.feedback-page) header{position:sticky;top:0;z-index:20;min-height:64px;padding-top:14px;padding-bottom:14px;box-shadow:0 1px 0 #18312608}
body:not(.feedback-page) header a{font-size:13px;font-weight:800;padding:8px 11px;border-radius:9px;background:#edf3ee}
body:not(.feedback-page) header strong{font-size:15px}
body:not(.feedback-page) header span{margin-left:auto;font-size:13px}
#dashboard{padding-bottom:40px}
.dashboard-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin:8px 0 20px;padding:4px 2px}
.dashboard-hero h1{font-size:clamp(27px,4vw,40px);letter-spacing:-.035em}
.dashboard-hero p{margin:8px 0 0}
.eyebrow,.section-number{display:block;color:#e86d21;font-size:10px;font-weight:900;letter-spacing:.16em;margin-bottom:7px}
.quick-nav{position:sticky;top:64px;z-index:15;display:flex;gap:6px;overflow-x:auto;margin:0 0 18px;padding:8px;background:#ffffffeb;border:1px solid #dde5df;border-radius:13px;box-shadow:0 8px 24px #1831260a;backdrop-filter:blur(12px)}
.quick-nav a{white-space:nowrap;color:#385246;text-decoration:none;font-size:13px;font-weight:800;padding:9px 13px;border-radius:8px}
.quick-nav a:hover{background:#edf3ee;color:#173126}
.section-card{scroll-margin-top:130px;border-radius:18px;padding:26px;box-shadow:0 8px 28px #1731260b}
.section-card .heading h2{margin-bottom:5px}
.section-card .heading p{margin:0}
.filters{padding:16px;background:#f6f8f6;border:1px solid #e6ebe6;border-radius:13px}
.filters label,.survey-controls label{margin:0;color:#415349;font-size:12px}
input,select,textarea{min-height:44px;border-color:#d3ddd5;border-radius:10px;transition:border-color .15s,box-shadow .15s}
input:focus,select:focus,textarea:focus{outline:0;border-color:#4c7b5f;box-shadow:0 0 0 3px #4c7b5f18}
select{appearance:auto;cursor:pointer}
button{min-height:42px;transition:transform .15s,filter .15s,box-shadow .15s}
button:hover{filter:brightness(.98);transform:translateY(-1px);box-shadow:0 5px 14px #18312618}
.survey-controls{display:grid;grid-template-columns:1.2fr 1.2fr .75fr;gap:12px;padding:16px;background:#f6f8f6;border:1px solid #e5ebe6;border-radius:13px}
.roster{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;padding:12px;margin-top:14px;border:1px solid #dfe9e1;background:#f8fbf8}
.roster div{padding:10px 12px;border-radius:8px;background:#fff;border:1px solid #e6ece7;font-size:13px;font-weight:700}
.link-box{margin-top:16px;padding:16px;border-radius:12px;background:#fff8ef;border:1px solid #f2d8ba}
.compact-panel{margin-top:18px;border-top:1px solid #e7ece8;padding-top:14px}
.compact-panel>summary{cursor:pointer;color:#385246;font-weight:800;font-size:13px}
#unmatched{margin-top:14px;padding:14px;background:#f8faf8;border-radius:12px;max-height:420px;overflow:auto}
#unmatched .row{grid-template-columns:minmax(180px,1fr) minmax(220px,1fr) auto}
.collapsible{padding:0;overflow:hidden}
.collapsible>summary{cursor:pointer;list-style:none;padding:24px 26px}
.collapsible>summary::-webkit-details-marker{display:none}
.collapsible>summary>span{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:0 14px}
.collapsible>summary .section-number{grid-row:1/3;margin:0}
.collapsible>summary strong{font-size:21px}
.collapsible>summary small{color:#68766c;margin-top:4px}
.collapsible>summary:after{content:'⌄';float:right;margin-top:-30px;font-size:22px;color:#607268}
.collapsible[open]>summary:after{transform:rotate(180deg)}
.collapsible-body{padding:0 26px 26px;border-top:1px solid #edf1ed}
.toolbar,.save-bar{display:flex;align-items:center;justify-content:space-between;gap:16px}
.toolbar{padding:14px 0}
.toolbar p{margin:0;font-size:13px}
.save-bar{position:sticky;bottom:12px;justify-content:flex-end;margin-top:16px;padding:10px;border-radius:12px;background:#fffffff0;box-shadow:0 8px 28px #1731261c;backdrop-filter:blur(8px)}
.question-row{margin-bottom:8px;padding:12px;border:1px solid #e3e9e4;border-radius:12px;background:#fafbfa}
.question-row:last-child{margin-bottom:0}
.question-row button{align-self:center}
.view-tabs{gap:3px;padding:4px;border:1px solid #e0e7e1;border-radius:11px;background:#f4f7f4;width:max-content}
.view-tab{border-radius:8px;padding:9px 14px}
.view-tab.active{background:#214b35}
.kpi-person{transition:border-color .15s,transform .15s,box-shadow .15s}
.kpi-person:hover{border-color:#bdcec1;transform:translateY(-1px);box-shadow:0 8px 20px #1731260d}
.result summary:after{content:'⌄';color:#607268;font-size:18px}
.result[open] summary:after{transform:rotate(180deg)}

@media(max-width:820px){.survey-controls{grid-template-columns:1fr 1fr}.survey-controls label:first-child{grid-column:1/-1}.quick-nav{top:63px}.section-card{padding:20px}.question-row{grid-template-columns:1fr 1fr}.question-row>input:first-child{grid-column:1/-1}}
@media(max-width:600px){main{margin-top:20px;padding:0 12px}.dashboard-hero{align-items:flex-start;display:grid}.dashboard-hero .header-actions{width:100%}.dashboard-hero .header-actions button{flex:1}.quick-nav{margin-left:-4px;margin-right:-4px}.section-card{padding:17px;border-radius:14px}.filters,.survey-controls{grid-template-columns:1fr 1fr;padding:12px}.kpi-summary{grid-template-columns:1fr 1fr;gap:8px}.kpi-metric{padding:12px}.kpi-metric strong{font-size:22px}.kpi-list{grid-template-columns:1fr}.collapsible>summary{padding:19px}.collapsible-body{padding:0 15px 18px}.toolbar{align-items:flex-start}.question-row{grid-template-columns:1fr}.question-row>input:first-child{grid-column:auto}#unmatched .row{grid-template-columns:1fr}.roster{grid-template-columns:1fr}.result-answer{grid-template-columns:1fr;gap:4px}body:not(.feedback-page) header span{display:none}}
@media(max-width:400px){.filters,.survey-controls,.kpi-summary{grid-template-columns:1fr}.view-tabs{width:100%}.view-tab{flex:1;padding-left:8px;padding-right:8px}.toolbar{display:grid}.toolbar button{width:100%}}

@media(max-width:900px){.kpi-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(max-width:720px){.row,.question-row{grid-template-columns:1fr 1fr}

.heading{display:block}

.heading button{margin-top:10px}

}

@media(max-width:460px){.kpi-summary{grid-template-columns:1fr}

.row,.question-row{grid-template-columns:1fr}

}


/* Branded client feedback experience */
.feedback-page{--orange:#f48814;--orange-dark:#d96900;--ink:#181717;--paper:#fffdf9;min-height:100vh;background:linear-gradient(145deg,#f9d7ae 0%,#fcebd8 48%,#f6c98f 100%);color:var(--ink);font-family:"Manrope",Inter,Arial,sans-serif}

.feedback-page:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.16;background-image:radial-gradient(#181717 .7px,transparent .7px);background-size:8px 8px}

.feedback-header{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:18px;max-width:920px;margin:0 auto;padding:28px 28px 10px;background:transparent;border:0}

.feedback-brand{display:flex;align-items:center;gap:14px}
.feedback-brand img{width:58px;height:42px;object-fit:contain}
.feedback-brand strong,.feedback-brand span{display:block}
.feedback-brand strong{font-size:15px}
.feedback-brand span{margin-top:2px;color:#756d65;font-size:12px}
.feedback-badge{border:1px solid #18171724;border-radius:999px;padding:8px 12px;color:#504a44;font-size:12px;font-weight:700;background:#ffffff8c}

.feedback-shell{position:relative;z-index:1;max-width:820px;margin:18px auto 0;padding:0 24px 56px}
.feedback-hero{position:relative;overflow:hidden;background:var(--ink);color:#fff;border-radius:24px 24px 8px 8px;padding:48px;box-shadow:0 28px 70px #4c2a0a2e}
.feedback-hero:after{content:"MD";position:absolute;right:-25px;bottom:-54px;font-size:180px;line-height:1;font-weight:800;letter-spacing:-.12em;color:#f4881421}
.feedback-eyebrow{position:relative;z-index:1;color:var(--orange);font-size:11px;font-weight:800;letter-spacing:.18em}
.feedback-hero h1{position:relative;z-index:1;margin:14px 0 12px;font-size:clamp(34px,6vw,58px);line-height:1.03;letter-spacing:-.045em}
.feedback-hero>p{position:relative;z-index:1;margin:0;color:#d6d0ca;line-height:1.7}
.feedback-hero .feedback-purpose{max-width:620px;margin-top:10px;color:#fff;font-weight:600}
.feedback-scale-note{position:relative;z-index:1;display:flex;justify-content:space-between;gap:18px;margin-top:28px;padding-top:18px;border-top:1px solid #ffffff21;color:#aaa29b;font-size:11px;text-transform:uppercase}
.feedback-scale-note b{display:inline-grid;place-items:center;width:24px;height:24px;margin-right:6px;border-radius:50%;background:var(--orange);color:#181717}

.feedback-form{background:var(--paper);border-radius:8px 8px 24px 24px;box-shadow:0 28px 70px #4c2a0a29;overflow:hidden}
.feedback-welcome{padding:32px 42px;background:#fff7ed;border-bottom:1px solid #f0dfca}
.feedback-welcome h2{font-size:20px}
.feedback-welcome p{margin:7px 0;color:#625b54;font-size:13px;line-height:1.65}
#fields{padding:0 42px}
.feedback-question{margin:0;padding:32px 0;border:0;border-bottom:1px solid #ece4db}
.question-heading{display:grid;grid-template-columns:auto 1fr auto;gap:13px}
.question-number{color:var(--orange-dark);font-size:11px;font-weight:800}
.question-heading legend{padding:0;color:#211f1d;font-size:16px;font-weight:700;line-height:1.5}
.required-pill{align-self:start;border-left:2px solid var(--orange);border-radius:2px;background:#fff7ed;color:#a75300;padding:5px 7px;font-size:9px;font-weight:800;line-height:1;text-transform:uppercase}

.feedback-page .ratings{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:20px 0 0}
.role-explainer{margin:8px 0 0 32px;color:#746b62;font-size:12px;line-height:1.5}
.feedback-page .ratings label{position:relative;margin:0}
.feedback-page .ratings input{position:absolute;opacity:0}
.feedback-page .ratings span{display:grid;place-items:center;height:52px;border:1px solid #ded5ca;border-radius:12px;background:#fff;color:#4d4741;font-weight:800;transition:.18s}
.feedback-page .ratings label:hover span{border-color:var(--orange);transform:translateY(-2px)}
.feedback-page .ratings input:checked+span{border-color:var(--orange);background:var(--orange);color:#171513}
.feedback-page select,.feedback-page textarea{margin-top:18px;border:1px solid #ded5ca;border-radius:12px;background:#fffdf9;color:#211f1d;padding:14px 15px}
.feedback-page textarea{min-height:118px;resize:vertical}

.feedback-submit{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px 42px 34px}
.feedback-submit p{margin:0;font-size:12px}
.feedback-submit button{display:flex;gap:18px;border-radius:12px;background:var(--orange);color:#181717;padding:14px 18px 14px 22px;font-family:inherit;font-weight:800}
.feedback-submit button:hover{background:#ff9b31}
.feedback-submit button:disabled{opacity:.65}
.feedback-success{padding:72px 32px;text-align:center;background:var(--paper);border-radius:24px}
.feedback-success>span{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 18px;border-radius:50%;background:var(--orange);font-size:28px;font-weight:800}
.feedback-footer{text-align:center;margin-top:22px;color:#756c63;font-size:9px;font-weight:800;letter-spacing:.18em}

@media(max-width:640px){.feedback-header{padding:18px 18px 6px}
.feedback-badge{display:none}
.feedback-shell{padding:0 12px 36px}
.feedback-hero{padding:32px 22px 28px}
.feedback-hero h1{font-size:34px}
.feedback-scale-note{display:grid}
.feedback-welcome,#fields{padding-left:18px;padding-right:18px}
.feedback-submit{display:grid;padding:24px 22px 28px}
.feedback-submit button{justify-content:space-between;width:100%}
.question-heading{grid-template-columns:auto 1fr;gap:9px}
.required-pill{grid-column:2;margin-top:7px;width:max-content}
.feedback-page .ratings{gap:6px}
.feedback-page .ratings span{height:48px}
}

@media(max-width:380px){.feedback-page .ratings{gap:4px}.feedback-page .ratings span{height:44px;border-radius:9px}.feedback-hero h1{font-size:31px}}
