:root{--orange:#f47c20;--orange-soft:#fff0e4;--ink:#1d1b19;--muted:#756e68;--line:#e8dfd7;--paper:#fffdfa}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif}.app-shell{display:flex;min-height:100vh}.sidebar{width:248px;background:#1d1b19;color:#fff;padding:30px 24px;display:flex;flex-direction:column}.brand{display:flex;gap:10px;align-items:center;font:700 18px/1 'Space Grotesk';letter-spacing:.04em}.brand small{font:500 9px/2 'DM Sans';color:#a69d96;letter-spacing:.15em}.brand-mark{display:grid;place-items:center;width:34px;height:34px;background:var(--orange);font-size:22px;border-radius:8px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.14em;color:var(--orange);text-transform:uppercase}.sidebar .eyebrow{margin:80px 0 14px;color:#a69d96}.sidebar nav{display:grid;gap:6px}.sidebar nav a{color:#aaa39d;text-decoration:none;padding:12px 14px;border-radius:8px;font-weight:600}.sidebar nav a span{display:inline-block;width:27px;color:var(--orange)}.sidebar nav a.active,.sidebar nav a:hover{color:#fff;background:#312e2b}.sidebar-foot{margin-top:auto;color:#77716d;font-size:12px;line-height:1.7}.sidebar-foot strong{color:#fff}.main-content{flex:1;padding:38px 5vw 70px;max-width:1500px}.topbar,.report-head,.toolbar,.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.topbar h1{font:700 clamp(28px,3vw,46px)/1.1 'Space Grotesk';margin:8px 0 0}.status-dot{color:var(--muted);font-size:13px}.status-dot i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#33b36b;margin-right:6px}.hero-strip{margin-top:42px;background:var(--orange);color:#fff;padding:44px 50px;border-radius:14px;display:flex;justify-content:space-between;align-items:center;overflow:hidden}.hero-strip h2{font:700 clamp(30px,4vw,58px)/.98 'Space Grotesk';margin:14px 0}.hero-strip em{font-style:normal;color:#302822}.hero-strip p{max-width:500px;margin:18px 0 0;color:#fff4ed}.hero-orbit{width:140px;height:140px;border:1px solid rgba(255,255,255,.65);border-radius:50%;display:grid;place-content:center;text-align:center;transform:rotate(-8deg);flex-shrink:0}.hero-orbit span{font:700 70px/.8 'Space Grotesk'}.hero-orbit small{font-size:11px;margin-top:9px}.toolbar{align-items:end;margin:52px 0 18px}.toolbar h2{font:700 24px 'Space Grotesk';margin:0}.toolbar p{color:var(--muted);margin:6px 0 0}.btn-orange{background:var(--orange);border-color:var(--orange);color:#fff;font-weight:700}.btn-orange:hover{background:#d9650f;color:#fff}.batch-list{border-top:1px solid var(--line)}.batch-row{display:flex;align-items:center;gap:24px;padding:22px 0;border-bottom:1px solid var(--line)}.batch-index{font:700 22px 'Space Grotesk';color:#c9bdb3;width:36px}.batch-main{flex:1}.batch-main h3{font:700 19px 'Space Grotesk';margin:0}.batch-main p{font-size:13px;color:var(--muted);margin:5px 0 0}.badge-status,.pill{display:inline-block;border-radius:30px;padding:5px 10px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.badge-status.current{background:#e6f8ed;color:#168c4d}.badge-status.completed{background:#eeeae6;color:#756e68}.report-head{margin:40px 0 26px;align-items:center}.report-head h2{font:700 clamp(30px,4vw,54px) 'Space Grotesk';margin:8px 0}.report-head p{color:var(--muted)}.pill{background:var(--orange-soft);color:#b94d0b;margin-left:8px}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:24px}.stat-card{background:#f5f0eb;border-radius:10px;padding:20px}.stat-card.accent{background:var(--orange);color:#fff}.stat-card span,.stat-card small{display:block;font-size:12px;color:var(--muted)}.stat-card.accent span,.stat-card.accent small{color:#fff0e4}.stat-card strong{display:block;font:700 32px 'Space Grotesk';margin:9px 0}.stat-card strong.text-value{font-size:20px}.panel{background:#fff;border:1px solid var(--line);border-radius:10px;padding:24px}.report-section{margin-top:18px}.section-heading{align-items:center}.section-heading h3{font:700 28px 'Space Grotesk';margin:5px 0 0}.section-score{font:700 30px 'Space Grotesk';color:var(--orange)}.section-score small{font:400 12px;color:var(--muted)}.chart-wrap{height:260px;margin-top:24px}.qual-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:20px}.qual-grid article{background:var(--orange-soft);padding:16px;border-radius:8px}.qual-grid span{font-weight:700;font-size:13px}.qual-grid p{font-size:12px;color:#665850;line-height:1.5;margin:10px 0 0}.insight{margin-top:20px;padding:28px;border-left:5px solid var(--orange);background:#1d1b19;color:#fff;border-radius:8px}.insight h3{font:700 24px 'Space Grotesk';margin:8px 0}.insight p{color:#ded7d1;margin:0;max-width:850px;line-height:1.6}.import-panel{background:#fff}.form-label{font-size:12px;font-weight:700}.date-note{margin-top:18px;background:var(--orange-soft);padding:12px;border-radius:7px;color:#9d4816;font-size:12px}.empty-state{text-align:center;padding:60px;color:var(--muted);border-bottom:1px solid var(--line)}.empty-state strong{color:var(--ink);font:700 20px 'Space Grotesk'}.modal-title{font:700 24px 'Space Grotesk'}
@media(max-width:900px){.sidebar{width:78px;padding:24px 12px}.brand>span:last-child,.sidebar .eyebrow,.sidebar-foot{display:none}.sidebar nav a{font-size:0;text-align:center}.sidebar nav a span{font-size:20px;width:auto}.main-content{padding:26px 20px 50px}.hero-strip{padding:30px;}.hero-orbit{width:100px;height:100px}.hero-orbit span{font-size:50px}.stat-grid{grid-template-columns:1fr}.qual-grid{grid-template-columns:repeat(2,1fr)}.batch-row{flex-wrap:wrap}.batch-main{min-width:60%}}
@media(max-width:560px){.topbar,.report-head,.toolbar{display:block}.status-dot{margin-top:14px}.hero-strip{display:block}.hero-orbit{margin-top:24px}.qual-grid{grid-template-columns:1fr}.batch-row .btn{width:100%}.chart-wrap{height:360px}}
.brand-logo{display:block;width:30px;height:30px;max-width:30px;max-height:30px;flex:0 0 30px;object-fit:cover;border-radius:7px}
.hero-strip h2{font-size:32px;line-height:1.1;margin-bottom:12px}.hero-meta{margin-top:20px;color:#fff4ed;font-size:12px;letter-spacing:.04em}.response-table-wrap{overflow-x:auto}.response-table-wrap table{min-width:720px}.report-chart{height:420px}.form-actions form{display:inline-flex}
.form-builder{display:grid;gap:14px}.builder-section{border:1px solid var(--line);border-radius:8px;padding:18px;background:#fffaf5}.section-title{font-weight:700;margin-bottom:14px}.builder-blocks{display:grid;gap:10px}.builder-subsection{border:1px solid #f0c9a3;border-left:3px solid #e8a03a;border-radius:8px;padding:14px;background:#fffbf7}.subsection-head{display:flex;align-items:center;gap:8px;margin-bottom:10px}.subsection-tag{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#c05c1e;font-weight:700}.subsection-head .remove-subsection{margin-left:auto}.builder-subsection .question-list{display:grid;gap:10px}.builder-subsection .add-question-sub{margin-top:4px}.builder-question{background:#fff;border:1px solid var(--line);padding:14px;border-radius:8px}.question-top{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center}.question-top .question-label{font-size:15px;padding:11px 12px}.question-top .question-type{min-width:185px}.question-options{display:grid;gap:8px;margin-top:10px}.scale-inputs{display:none;gap:8px}.options-input{display:none}.required-toggle{display:block;margin-top:10px;font-size:13px;color:var(--muted)}.remove-section{margin-left:8px}.form-section-title{font:700 20px 'Space Grotesk';margin:26px 0 0;color:#9a4b13}.form-subsection-title{font:700 15px 'Space Grotesk';margin:18px 0 6px;color:#c05c1e;border-left:3px solid #e8a03a;padding-left:8px}.data-subgroup{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#8a4b1f}.report-section-head td{background:#fff2e6;font-weight:700}.report-subsection-head td{background:#fffaf5;color:#9a4b13;font-size:13px}.scale-field{margin:6px 0 12px}.scale-options{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.scale-options label{display:flex;align-items:center;justify-content:center;flex-direction:column;cursor:pointer}.scale-options input{position:absolute;opacity:0}.scale-options span{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border:1.5px solid var(--line);border-radius:50%;font-weight:700;background:#fff;transition:all .15s}.scale-options input:checked+span{border-color:#e2813a;background:#e2813a;color:#fff}.scale-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:13px}.scale-min{color:#9a4b13}.scale-max{font-weight:600;color:#e2813a}.choice-options{display:grid;gap:9px}.choice-options label{font-weight:400}.choice-options input{margin-right:5px}
.options-list .options-input{display:block!important}
.section-description{margin:8px 0 14px}.form-section-description{color:var(--muted);margin:-8px 0 16px;line-height:1.6;white-space:pre-line}
.option-row{display:flex;gap:8px;align-items:center}.option-row .options-input{flex:1}.option-row .remove-option{flex:0 0 auto}
.rank-answer{display:grid;gap:8px}.rank-row{display:grid;grid-template-columns:30px 1fr auto auto;gap:8px;align-items:center;padding:9px;border:1px solid var(--line);border-radius:6px;background:#fff}.rank-number{font-weight:700;color:var(--orange)}.rank-label{min-width:0}.rank-row button{width:34px}
.editor-toolbar{display:flex;gap:6px;align-items:center;margin:6px 0}.editor-toolbar button,.editor-toolbar select{border:1px solid var(--line);background:#fff;padding:5px 9px;border-radius:5px}.rich-editor{min-height:44px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:10px;margin-bottom:10px}.description-editor{min-height:90px}.range-inputs{display:none;gap:8px}.rank-max,.upload-limit{display:none}.option-row{margin-bottom:6px}.portal-card .rich-editor:focus{outline:2px solid var(--orange-soft);border-color:var(--orange)}
.add-option{position:relative;z-index:2;pointer-events:auto;justify-self:start}.options-list{display:grid;gap:8px}
.portal-shell{min-height:100vh;background:linear-gradient(135deg,#fffaf5 0%,#f7eee5 100%);color:var(--ink)}.portal-header{display:flex;justify-content:space-between;align-items:center;padding:22px 6vw;border-bottom:1px solid var(--line);background:#fffdfa}.portal-brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;font:700 20px/1 'Space Grotesk'}.portal-brand img{width:34px;height:34px;object-fit:cover;border-radius:7px}.portal-brand small{display:block;margin-top:5px;color:var(--muted);font:500 11px 'DM Sans'}.portal-user{display:flex;align-items:center;gap:12px;font-size:13px}.portal-user span,.role-chip{padding:5px 9px;border-radius:999px;background:var(--orange-soft);color:#9a4b13;font-size:11px}.portal-user form{display:inline}.portal-main{max-width:1120px;margin:0 auto;padding:56px 24px 90px}.auth-grid{display:grid;grid-template-columns:1fr minmax(320px,460px);gap:70px;align-items:start;padding-top:40px}.auth-grid h1,.portal-heading h1{font:700 48px/1.05 'Space Grotesk';margin:12px 0}.auth-grid>div:first-child p{max-width:520px;color:var(--muted);font-size:17px;line-height:1.7}.portal-card{background:#fffdfa;border:1px solid var(--line);border-radius:10px;padding:28px;box-shadow:0 16px 40px rgba(55,37,23,.06)}.portal-card h2{font:700 22px 'Space Grotesk';margin:0 0 18px}.portal-heading{display:flex;justify-content:space-between;align-items:start;margin-bottom:34px}.portal-heading p{color:var(--muted)}.form-list{display:grid;gap:14px}.form-item{display:flex;justify-content:space-between;align-items:center;gap:20px}.form-item h3{font:700 20px 'Space Grotesk';margin:0 0 7px}.form-item p{color:var(--muted);margin:0 0 8px}.form-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.public-form{max-width:780px;margin:0 auto}.public-form h1{font:700 40px 'Space Grotesk';margin:12px 0}.public-form>p{color:var(--muted);line-height:1.6}.anonymous-note{margin:22px 0;padding:12px 15px;border-left:3px solid var(--orange);background:var(--orange-soft);font-size:13px}.question-block{padding:22px 0;border-top:1px solid var(--line)}.question-block>label{display:block;font-weight:700;margin-bottom:14px}.question-block b{color:var(--orange)}.scale-options{display:flex;gap:10px}.scale-options label input{position:absolute;opacity:0}.scale-options label span{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;cursor:pointer}.scale-options label input:checked+span{background:var(--orange);border-color:var(--orange);color:white}.form-actions form{margin:0}@media(max-width:700px){.auth-grid{grid-template-columns:1fr;gap:28px}.auth-grid h1,.portal-heading h1{font-size:36px}.portal-header{padding:18px 20px}.portal-user>span{display:none}.form-item{display:block}.form-actions{justify-content:flex-start;margin-top:18px}}
.exec-shell{font-family:'DM Sans',sans-serif;max-width:1180px;margin:0 auto;padding:34px 24px 84px}.exec-shell .portal-header{padding:0 0 22px;border-bottom:none;max-width:none}.exec-shell .portal-heading h1{font-size:34px}.wiz-head{display:flex;gap:14px;align-items:center;margin-bottom:16px}.wiz-index{flex:0 0 34px;height:34px;border-radius:50%;background:var(--orange);color:#fff;font-weight:700;display:grid;place-items:center}.wiz-head h2{margin:0;font:700 20px 'Space Grotesk'}.wiz-head p{margin:2px 0 0;color:var(--muted)}.exec-nav{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;flex-wrap:wrap}.exec-toolbar{justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.exec-table-wrap table{min-width:560px}.exec-check{display:block}.exec-company-tag{display:inline-block;padding:3px 9px;border-radius:999px;background:var(--orange-soft);color:#9a4b13;font-size:12px;font-weight:600}.exec-note{color:var(--muted);font-size:13px}.exec-company-break{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:6px 0 18px;font-size:13px}.exec-overall-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:8px 0 22px}.exec-ov-card{border:1px solid var(--line);border-radius:8px;padding:14px;background:#fff;display:grid;gap:4px}.exec-ov-card strong{font:700 26px 'Space Grotesk'}.exec-ov-card small{color:var(--muted)}.exec-band{display:inline-block;padding:2px 8px;border-radius:999px;color:#fff;font-size:11px;font-weight:700}.exec-band.unfavourable{background:#d64541}.exec-band.indifference{background:#d8830f}.exec-band.favourable{background:#27ae60}.exec-ov-mean strong{color:var(--orange)}.exec-preview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}.exec-chart-card{border:1px solid var(--line);border-radius:10px;padding:16px;background:#fff}.exec-chart-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.exec-chart-head h3{margin:0;font:700 17px 'Space Grotesk'}.exec-section-meta{color:var(--muted);font-size:12px;margin:2px 0 10px}.chart-wrap{position:relative;height:230px}.chart-wrap.sub{height:150px}.exec-chart-card .chart-wrap{position:relative}.exec-subs{display:grid;gap:12px;margin-top:14px;border-top:1px dashed var(--line);padding-top:14px}.exec-subs h4{font:700 14px 'Space Grotesk';color:#9a4b13;margin:0}.exec-sub{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center}.exec-sub-title{font-weight:600}.exec-sub-mean{color:var(--muted);font-size:12px}.subsection-toggle{margin:10px 0 0;display:block;font-size:13px;color:var(--muted)}.company-required-toggle{font-size:13px;color:var(--muted)}.company-field{margin-bottom:18px}
@media print{.no-print,.exec-nav,.exec-toolbar{display:none!important}.wiz-step[data-wiz-step="2"]{display:block!important}body{background:#fff}.exec-shell{max-width:100%;padding:18px}.exec-chart-card,.exec-ov-card{box-shadow:none}.exec-preview-grid,.exec-overall-grid{break-inside:avoid}.response-table-wrap table{min-width:0}.portal-card{break-inside:avoid;box-shadow:none}}
@media(max-width:900px){.exec-shell{padding:18px}.portal-header{flex-wrap:wrap}}
@media(max-width:700px){.exec-sub{grid-template-columns:1fr auto}.exec-sub .chart-wrap{grid-column:1/-1}.exec-preview-grid{grid-template-columns:1fr}.portal-heading{display:block}.role-chip{margin-top:12px;display:inline-block}.exec-nav .btn{flex:1 1 auto}}
@media(max-width:560px){.exec-shell{padding:22px 15px 60px}.exec-toolbar{display:block}.exec-nav{display:grid}.exec-nav .btn{width:100%}.exec-ov-card{text-align:left}.question-top{grid-template-columns:1fr}.exec-chart-head{display:block}.exec-chart-head .btn{margin-top:8px}}

/* ===== RESPONSIVE LAYER (applies last, overrides legacy minified rules) ===== */
html,body{max-width:100%;overflow-x:hidden}
body{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%}
h1,h2,h3,h4,p,label{overflow-wrap:break-word}
.portal-shell{width:100%;min-width:0}
.portal-main{width:100%;min-width:0;max-width:1120px;padding:clamp(22px,4vw,56px) clamp(12px,3vw,24px) clamp(56px,8vw,90px)}
.portal-header{padding:clamp(14px,2.5vw,22px) clamp(12px,4vw,6vw);gap:12px;flex-wrap:wrap;align-items:center}
.portal-brand{min-width:0;align-items:center}
.portal-brand>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portal-user{flex-wrap:wrap;justify-content:flex-end}
.portal-card{min-width:0;width:100%;padding:clamp(16px,4vw,28px)}
.portal-heading{flex-wrap:wrap;gap:14px 20px;margin-bottom:clamp(22px,4vw,34px)}
.portal-heading h1,.auth-grid h1{font-size:clamp(28px,5vw,48px);line-height:1.08}
.portal-heading>div{min-width:0}
.auth-grid{grid-template-columns:minmax(0,1fr) minmax(280px,460px);gap:clamp(28px,5vw,70px)}
.auth-grid>div{min-width:0}
.public-form{width:100%;min-width:0;max-width:780px}
.public-form h1{font-size:clamp(26px,6vw,40px);overflow-wrap:anywhere}
.public-form .form-description,.public-form .anonymous-note{overflow-wrap:anywhere}
.form-section-title{font-size:clamp(18px,4vw,20px)}
.form-subsection-title{font-size:clamp(14px,3vw,15px);overflow-wrap:anywhere}
.anonymous-note{margin:clamp(16px,3vw,22px) 0}
.question-block{padding:clamp(16px,3.5vw,22px) 0}
.question-block>label{font-size:clamp(15px,2.6vw,17px);line-height:1.5;overflow-wrap:anywhere}
.company-field .form-control{max-width:100%}

/* --- Skala 1-5 (public form) --- */
.scale-field{display:grid;gap:10px;margin:16px 0 4px}
.scale-field .scale-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(6px,2.5vw,18px)}
.scale-field .scale-options label{position:relative;display:grid;place-items:center;min-height:56px;margin:0;cursor:pointer}
.scale-field .scale-options input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.scale-field .scale-options span{display:grid;place-items:center;width:clamp(38px,9vw,52px);height:clamp(38px,9vw,52px);border:1.5px solid var(--line);border-radius:50%;background:#fff;color:var(--ink);font-weight:700;font-size:clamp(14px,3vw,18px);transition:all .15s}
.scale-field .scale-options label:hover span{border-color:var(--orange)}
.scale-field .scale-options input:checked+span{background:var(--orange);border-color:var(--orange);color:#fff;box-shadow:0 0 0 3px var(--orange-soft)}
.scale-field .scale-options input:focus-visible+span{outline:2px solid var(--orange);outline-offset:2px}
.scale-field .scale-labels{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:0 1px;font-size:clamp(12px,2.6vw,14px);line-height:1.4}
.scale-field .scale-min{color:#9a4b13;font-weight:600;text-align:left}
.scale-field .scale-max{color:#e2813a;font-weight:700;text-align:right}

/* --- Choice (radio/checkbox) touch targets --- */
.choice-options{gap:10px}
.choice-options label{display:flex;align-items:flex-start;gap:12px;padding:11px 14px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:15px;line-height:1.5;cursor:pointer;min-height:44px}
.choice-options label:hover{border-color:var(--orange)}
.choice-options input{margin:3px 0 0;flex:0 0 auto;width:20px;height:20px;accent-color:var(--orange)}

/* --- Inputs --- */
.form-control,.form-select,.input-group{max-width:100%;min-width:0}

/* --- Rank --- */
.rank-answer{min-width:0}
.rank-row{min-width:0;grid-template-columns:auto minmax(0,1fr) auto auto}
.rank-label{min-width:0;overflow-wrap:anywhere}

/* --- Buttons / touch --- */
.btn{border-radius:8px;touch-action:manipulation}
.btn-orange,.btn-orange.btn-sm{background:var(--orange);border-color:var(--orange);color:#fff}
.btn-orange:hover,.btn-orange:focus{background:#e06f10;border-color:#e06f10;color:#fff}
.form-actions{min-width:0}
.form-actions .btn,.form-actions form{min-width:0;margin:0}

/* --- Tables (scroll inside container only) --- */
.response-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.response-table-wrap table{margin-bottom:0}
.table th,.table td{overflow-wrap:anywhere}
.exec-table-wrap{overflow-x:auto}

/* --- Charts / stat card --- */
.chart-wrap{min-width:0}
.chart-wrap canvas{max-width:100%}
.report-chart{height:clamp(260px,48vw,420px)}
.stat-card{border:1px solid var(--line);background:#fffdfa;border-radius:10px;padding:16px 20px;min-width:170px;display:grid;gap:2px}
.stat-card span{color:var(--muted);font-size:12px}
.stat-card strong{font:700 clamp(26px,4vw,34px)/1 'Space Grotesk';color:var(--orange)}
.stat-card small{color:var(--muted);font-size:11px}
.exec-shell .portal-heading h1{font-size:clamp(22px,6vw,34px);overflow-wrap:anywhere}
.exec-chart-card,.exec-ov-card,.exec-subs,.exec-sub{min-width:0}
.exec-shell .exec-overall-grid{grid-template-columns:repeat(auto-fit,minmax(138px,1fr))}
.exec-shell .exec-preview-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}

@media (max-width:1023px){
  .auth-grid{grid-template-columns:minmax(0,1fr);gap:28px;max-width:560px;margin:0 auto}
  .auth-grid>div:first-child{text-align:center}
  .auth-grid>div:first-child p{margin-left:auto;margin-right:auto}
  .chart-wrap{height:clamp(200px,30vw,230px)}
  .chart-wrap.sub{height:clamp(140px,22vw,150px)}
}

@media (max-width:767px){
  .portal-brand small{display:none}
  .portal-main{padding-top:clamp(18px,3vw,26px)}
  .exec-shell{padding:clamp(16px,3vw,22px) clamp(12px,3vw,20px) clamp(48px,7vw,60px)}
  .exec-toolbar{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start}
  .exec-toolbar .btn{flex:1 1 auto}
  .wiz-head{flex-wrap:wrap}
  .exec-chart-card .chart-wrap{min-width:640px}
}

@media (max-width:560px){
  .portal-main{padding-left:clamp(10px,3vw,14px);padding-right:clamp(10px,3vw,14px)}
  .portal-header{padding:12px clamp(10px,3vw,14px)}
  .portal-card{padding:16px}
  .public-form h1{font-size:clamp(24px,7vw,30px)}
  .question-block>label{font-size:16px}
  .scale-field .scale-options{gap:clamp(4px,2vw,8px)}
  .scale-field .scale-options label{min-height:46px}
  .scale-field .scale-options span{width:clamp(34px,11vw,44px);height:clamp(34px,11vw,44px)}
  .choice-options label{font-size:15px;padding:11px 12px}
  .public-form .btn-orange{width:100%;padding:.75rem 1.25rem;font-size:16px;margin-top:6px}
  .form-actions{width:100%;justify-content:flex-start}
  .form-item .form-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));align-items:stretch}
  .form-item .form-actions .btn,.form-item .form-actions form{width:100%}
  .editor-toolbar{flex-wrap:wrap}
  .question-top{grid-template-columns:1fr}
  .question-top .question-type,.question-top .question-label{min-width:0;width:100%}
  .builder-section{padding:14px}
  .subsection-head{flex-wrap:wrap}
}

@media (max-width:400px){
  .portal-card{padding:14px}
  .portal-brand{font-size:17px}
  .portal-user .btn{padding:.35rem .6rem}
  .scale-field .scale-labels{font-size:12px}
}

/* --- Stat card accent (orange, teks putih) --- */
.stat-card.accent{background:var(--orange);border-color:var(--orange);color:#fff}
.stat-card.accent span,.stat-card.accent strong,.stat-card.accent small{color:#fff}
.stat-card.accent span{opacity:.9}

/* --- Ringkasan per Bagian (halaman Respons) --- */
.respons-summary{border-left:4px solid var(--orange)}
.respons-summary h2{font-size:17px;margin:0 0 10px}
.respons-summary .table{margin-bottom:0}
.respons-summary .table th{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.05em}
.respons-summary-section td{font-weight:700;background:var(--orange-soft)}
.respons-summary-section td:first-child{text-transform:uppercase;letter-spacing:.04em;font-size:12px;color:#8a4a0f}
.respons-summary-sub td{padding-left:2.25rem!important;color:var(--muted)}
.respons-summary-total td{font-weight:700;border-top-width:2px;border-top-color:var(--orange)}
.respons-summary-total td:first-child{color:var(--muted);text-transform:uppercase;letter-spacing:.06em;font-size:12px}

/* --- Tabel respons lebar: kolom Waktu + Company selalu tampak --- */
.respons-lg{width:max-content;min-width:100%}
.respons-lg th,.respons-lg td{white-space:nowrap;overflow-wrap:normal}
.respons-lg thead tr:first-child th:first-child{width:160px;min-width:160px;position:sticky;left:0;background:var(--paper);z-index:3;box-shadow:1px 0 0 var(--line)}
.respons-lg thead tr:first-child th:nth-child(2){position:sticky;left:160px;background:var(--paper);z-index:3;box-shadow:1px 0 0 var(--line)}
.respons-lg tbody td:first-child{position:sticky;left:0;background:#fffdfa;z-index:2;box-shadow:1px 0 0 var(--line)}
.respons-lg tbody td:nth-child(2){position:sticky;left:160px;background:#fffdfa;z-index:2;box-shadow:1px 0 0 var(--line)}
.respons-lg tfoot th:first-child{position:sticky;left:0;background:var(--paper);z-index:2;box-shadow:1px 0 0 var(--line)}
.respons-lg tbody tr:hover td:first-child,.respons-lg tbody tr:hover td:nth-child(2){background:#fdf3e8}
.respons-lg tfoot th{font-weight:700}

/* --- Executive: chip klasifikasi berdasar mean --- */
.exec-mean-chip{border-radius:10px;padding:10px 16px;color:#fff;min-width:150px;display:grid;gap:2px}
.exec-mean-chip span{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;opacity:.9}
.exec-mean-chip strong{font:700 26px/1 'Space Grotesk'}
.exec-mean-chip small{font-size:12px;opacity:.9}
.exec-mean-chip.unfavourable,.exec-badge.unfavourable{background:#d64541}
.exec-mean-chip.indifference,.exec-badge.indifference{background:#d8830f}
.exec-mean-chip.favourable,.exec-badge.favourable{background:#27ae60}
.exec-badge{display:inline-block;padding:3px 10px;border-radius:999px;color:#fff;font-size:12px;font-weight:700;white-space:nowrap}
.exec-dot{display:inline-block;padding:2px 8px;border-radius:999px;color:#fff;font-size:11px;font-weight:700;margin-right:6px}
.exec-dot.unfavourable{background:#d64541}
.exec-dot.indifference{background:#d8830f}
.exec-dot.favourable{background:#27ae60}

/* --- Executive: kartu bagian & tabel kuantitatif --- */
.exec-section-card,.exec-overview{border-top:3px solid var(--orange)}
.exec-overview-head,.exec-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.exec-overview-head h3{margin:4px 0 0;font:700 24px 'Space Grotesk'}
.exec-overview-head p{margin:4px 0 0;color:var(--muted);font-size:13px}
.exec-section-head h3{margin:0;font:700 20px 'Space Grotesk'}
.exec-subs-head{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 4px}
.exec-group-block{border:1px solid var(--line);border-radius:10px;padding:16px 16px 4px;margin:0 0 18px;background:#fff}
.exec-group-block .exec-subhead{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 10px}
.exec-group-block .exec-subhead h4{margin:0;font:700 18px 'Space Grotesk'}
.exec-group-block>h5{font:700 13px 'DM Sans';color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin:16px 0 8px}
.exec-table-actions{display:flex;gap:8px;margin-top:10px}
.exec-section-card>h4{font:700 15px 'DM Sans';color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin:14px 0 8px}
.exec-qtable{min-width:640px;table-layout:fixed;width:100%}
.exec-qtable thead th{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.05em}
.exec-qtable thead th:nth-child(1){width:48%}
.exec-qtable thead th:nth-child(2){width:16%}
.exec-qtable thead th:nth-child(3){width:10%}
.exec-qtable thead th:nth-child(4){width:26%}
.exec-qtable thead th:nth-child(2),.exec-qtable thead th:nth-child(3),.exec-qtable thead th:nth-child(4){text-align:center}
.exec-qtable tbody td:nth-child(2),.exec-qtable tbody td:nth-child(3),.exec-qtable tbody td:nth-child(4){white-space:nowrap;text-align:center}
.exec-qtotal td{border-top-width:2px;border-top-color:var(--orange);background:var(--orange-soft)}
.exec-chart-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.exec-chart-head span{color:var(--muted);font-size:12px}
.exec-chart-card{overflow-x:auto;overflow-y:hidden}

/* --- Executive: cetak HD --- */
@media print{
  .exec-overview,.exec-group-block{break-inside:avoid;page-break-inside:avoid}
  .exec-section-card{break-before:page;margin:0;padding:6px 10px;border-top:none}
  .exec-section-card:has(.exec-group-block){break-before:auto}
  .exec-section-card:has(.exec-group-block)>:first-child{break-after:avoid}
  .exec-group-block{break-before:page;break-inside:avoid;margin:0;padding:10px 12px;display:flex;flex-direction:column;height:6.5in;border:none}
  .exec-group-block:first-child{break-before:auto}
  .exec-group-block .exec-subhead{margin:0 0 8px}
  .exec-section-card:not(:has(.exec-group-block)){display:flex;flex-direction:column;height:6.8in}
  .exec-chart-card{overflow:visible;flex:1;display:flex;flex-direction:column;margin-top:2px}
  .exec-chart-card .chart-wrap{flex:1;min-height:0;height:auto}
  .exec-chart-card .chart-wrap canvas{width:100%!important;height:100%!important;min-width:0!important}
  .exec-group-block>h5{margin:8px 0 4px}
  .exec-qtable{table-layout:fixed}
  .exec-qtable{min-width:0}
  .exec-section-card>h4{margin:8px 0 4px;break-after:avoid}
}

/* ===== User Management (Super Admin) ===== */
.um-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin-bottom:22px}
.um-create,.um-list{margin-bottom:22px}
.um-block-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.um-block-head h2{margin:0 0 4px}
.um-block-head p{margin:0;color:var(--muted);font-size:13px}
.um-form-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1.6fr) minmax(0,1fr) minmax(0,.9fr) auto;gap:12px;align-items:end}
.um-field{display:grid;gap:6px;font-size:12px;font-weight:700;color:var(--muted)}
.um-field input,.um-field select{font-weight:400;color:var(--ink)}
.um-submit{display:grid;align-items:center}
.um-submit .btn{padding:.55rem 1.3rem;white-space:nowrap}
.um-search{max-width:280px;width:100%;margin-bottom:2px}
.um-table{margin-bottom:0}
.um-table tbody tr{transition:background .15s}
.um-table tbody tr:hover{background:#fff8f0}
.um-user{display:flex;align-items:center;gap:12px}
.um-avatar{flex:0 0 40px;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font:700 16px 'Space Grotesk'}
.um-user strong{display:block;font-size:15px}
.um-user small{display:block;color:var(--muted);font-size:12.5px}
.um-role{display:inline-block;padding:4px 11px;border-radius:999px;font-size:12px;font-weight:700;background:#fff1e0;color:#9a4b13;white-space:nowrap}
.um-role-super{background:#1d1b19;color:#fff}
.um-date{color:var(--muted);font-size:13px;white-space:nowrap}
.um-right{text-align:right;white-space:nowrap}
.um-self{font-size:12px;color:var(--muted);font-weight:600}
.um-self-badge{display:inline-block;margin-left:4px;padding:2px 8px;border-radius:999px;background:var(--orange-soft);color:#9a4b13;font-size:11px;font-weight:700;vertical-align:2px}
.um-empty{padding:22px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:10px;margin-top:6px}
@media(max-width:860px){.um-form-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.um-form-grid{grid-template-columns:1fr}.um-search{max-width:100%}}
.form-page-indicator{display:flex;justify-content:center;align-items:center;gap:6px;margin:4px 0 18px;color:var(--muted);font-size:14px;font-weight:600;letter-spacing:.5px}
.form-page-nav{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin-top:20px}
.form-page-nav .btn{min-width:120px}
.public-form .form-page-nav .btn-orange{width:auto;margin-top:0}
.form-page-nav .form-nav-next,.form-page-nav .form-nav-submit{margin-left:auto}