/* SAMBAT_UI_REBORN_33 · SAMBAT EL Eco Modern, 60/30/10 as visual guidance */
:root{--eco-oat:#F3F0E6;--eco-forest:#194A36;--eco-red:#C64B3C;--eco-ink:#233D30;--eco-surface:#fffefa;--eco-line:#DEDCD0;--eco-soft:#E7EDE4}
html{scroll-behavior:auto}
body.public-report{background:var(--eco-oat);color:var(--eco-ink)}
body.public-report .inner-main{max-width:1100px}
body.public-report .page-intro h1{color:var(--eco-forest)}
body.public-report .public-page-accent{display:none!important}
body.public-report .eco-before-notice{display:flex;gap:16px;margin:16px auto 24px;padding:19px 23px;border-radius:18px;border:1px solid #E8C9BC;border-left:5px solid var(--eco-red);background:#FFF9F4;box-shadow:0 8px 28px #51291a0a;color:var(--eco-ink)}
body.public-report .eco-notice-symbol{display:grid;place-items:center;border-radius:12px;width:35px;height:35px;flex:none;color:white;background:var(--eco-red);font-weight:900;font-size:20px}
body.public-report .eco-before-notice h2{font-size:16px;line-height:1.35;color:var(--eco-forest);margin:0 0 9px}
body.public-report .eco-before-notice p{font-size:12.5px;line-height:1.7;margin:5px 0;color:#45554A}
body.public-report .portal-card{background:var(--eco-surface);border:1px solid var(--eco-line);border-radius:22px;box-shadow:0 12px 30px #193c2310;scroll-margin-top:14px}
body.public-report #report-workflow{scroll-margin-top:18px}
body.public-report .progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}
body.public-report .progress li{min-width:0;text-align:center;overflow-wrap:anywhere}
body.public-report .progress li.current span,body.public-report .progress li.done span{background:var(--eco-forest)}
body.public-report .step-panel{scroll-margin-top:14px}
body.public-report .review-item,body.public-report .field{min-width:0}
body.public-report .sv-footer{background:var(--eco-oat)}
@media(max-width:650px){body.public-report .eco-before-notice{padding:15px;gap:11px}body.public-report .eco-before-notice h2{font-size:14px}body.public-report .eco-before-notice p{font-size:11.5px}body.public-report .progress{gap:4px}body.public-report .progress li b{font-size:10px}}
/* Internal workspace: reading-first, wide single column, no competing right sidebar. */
body.sambat-template:not(.auth-gate){--cream:var(--eco-oat);--brand-900:var(--eco-forest);--brand-700:var(--eco-forest);--brand-500:#367958;--surface:var(--eco-surface);--border:var(--eco-line);background:var(--eco-oat);color:var(--eco-ink)}
body.sambat-template:not(.auth-gate) .side{background:linear-gradient(165deg,#194A36,#113B2B)}
body.sambat-template:not(.auth-gate) .stage,body.sambat-template:not(.auth-gate) .topbar{background:var(--eco-oat)}
body.sambat-template:not(.auth-gate) .content{width:100%;max-width:1260px;margin-inline:auto;padding:24px clamp(16px,3vw,42px) 40px}
body.sambat-template:not(.auth-gate) .case-hero{padding:23px 27px;background:var(--eco-forest)!important;border-radius:20px;margin-bottom:20px}
body.sambat-template:not(.auth-gate) .case-hero h2{font-size:clamp(22px,2.3vw,31px);line-height:1.25;margin:11px 0;max-width:100%}
body.sambat-template:not(.auth-gate) .case-hero::after{opacity:.45;right:-225px}
body.sambat-template:not(.auth-gate) .tmpl-case-steps{margin-top:18px;max-width:none}
body.sambat-template:not(.auth-gate) .case-workspace{display:flex;flex-direction:column;gap:20px;width:100%;align-items:stretch}
body.sambat-template:not(.auth-gate) .case-primary{display:grid;gap:20px;width:100%;min-width:0}
body.sambat-template:not(.auth-gate) .case-sidebar{width:100%;min-width:0}
body.sambat-template:not(.auth-gate) .case-review{position:static!important;top:auto;box-shadow:0 11px 28px #194a3609}
body.sambat-template:not(.auth-gate) .case-section,body.sambat-template:not(.auth-gate) .case-review{background:var(--eco-surface);padding:24px 28px!important;border-radius:18px;border-color:var(--eco-line)}
body.sambat-template:not(.auth-gate) .case-story{min-height:0;background:#F6F4ED;border:1px solid var(--eco-line);padding:20px 23px;line-height:1.9;font-size:14px;color:#294B36}
body.sambat-template:not(.auth-gate) .case-section-heading h2{color:var(--eco-forest)}
body.sambat-template:not(.auth-gate) .case-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
body.sambat-template:not(.auth-gate) .case-check{margin:0;min-height:72px}
body.sambat-template:not(.auth-gate) .case-note-label{margin-top:20px!important}
body.sambat-template:not(.auth-gate) .case-decision{margin-top:18px;padding-top:18px}
body.sambat-template:not(.auth-gate) .admin-decision-actions{display:flex;flex-wrap:wrap;gap:12px}
body.sambat-template:not(.auth-gate) .admin-decision-actions>*{flex:1;min-width:180px}
.eco-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:14px;margin-top:6px}
.eco-media-tile{display:flex;min-width:0;flex-direction:column;text-align:left;border:1px solid #DBE4D7;background:white;border-radius:14px;padding:0;overflow:hidden;cursor:zoom-in;box-shadow:0 7px 21px #143c2710;transition:transform .16s,border-color .16s}
.eco-media-tile:hover{transform:translateY(-3px);border-color:#699A74}
.eco-media-tile:focus-visible{outline:3px solid var(--eco-red);outline-offset:2px}
.eco-media-thumb{display:grid;place-items:center;aspect-ratio:4/3;background:#E3EAE0;overflow:hidden;width:100%}
.eco-media-thumb img{display:block;width:100%;height:100%;object-fit:cover;min-height:0}
.eco-play-icon{display:grid;place-items:center;width:51px;height:51px;border-radius:50%;color:white;background:var(--eco-forest);font-size:22px}
.eco-media-meta{display:flex;flex-direction:column;gap:2px;padding:11px 12px;color:var(--eco-forest)}
.eco-media-meta strong{font-size:12px}.eco-media-meta small{color:#677C6C;font-size:10px}
.eco-ktp-card{display:flex;align-items:center;gap:16px;background:#F6F7F0;border:1px solid #DCE5D7;padding:17px 18px;border-radius:14px;flex-wrap:wrap}
.eco-ktp-icon{display:grid;place-items:center;flex:none;background:#E0EAE0;color:var(--eco-forest);border-radius:12px;width:50px;height:50px;font-size:26px}
.eco-ktp-copy{display:flex;flex-direction:column;flex:1;min-width:185px;gap:4px}
.eco-ktp-copy strong{font-size:13px;color:var(--eco-forest)}.eco-ktp-copy small{font-size:11px;color:#677C6C}
.eco-ktp-dialog{border:0;border-radius:20px;background:#fffefa;color:var(--eco-forest);width:min(980px,calc(100vw - 30px));max-height:92dvh;padding:0;box-shadow:0 28px 90px #0008}
.eco-ktp-dialog::backdrop{background:#091a13d9}
.eco-ktp-shell{display:flex;flex-direction:column;min-height:0;max-height:92dvh}
.eco-ktp-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 20px;border-bottom:1px solid #dfe7dc;background:white}
.eco-ktp-header h2{font-size:18px;margin:0}.eco-ktp-header p{margin:4px 0 0;font-size:11px;color:#718274}
.eco-ktp-stage{display:grid;place-items:center;min-height:260px;overflow:auto;padding:16px;font-size:12px}
.eco-ktp-stage img{display:block;object-fit:contain;max-width:100%;max-height:72dvh;width:auto;height:auto}
.eco-ktp-stage iframe{width:100%;min-height:70dvh;border:0;background:white}
@media(max-width:900px){body.sambat-template:not(.auth-gate) .content{padding:16px 18px 26px}body.sambat-template:not(.auth-gate) .case-checklist{grid-template-columns:1fr}}
@media(max-width:680px){body.sambat-template:not(.auth-gate) .case-section,body.sambat-template:not(.auth-gate) .case-review{padding:17px!important}body.sambat-template:not(.auth-gate) .case-hero{padding:19px}body.sambat-template:not(.auth-gate) .case-story{padding:14px;font-size:12px}body.sambat-template:not(.auth-gate) .case-information-grid{grid-template-columns:1fr}.eco-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.eco-ktp-dialog{width:calc(100vw - 14px)}.eco-ktp-header{padding:11px}.eco-ktp-header h2{font-size:14px}}

/* SAMBAT_ECO34_CSP_SAFE | visual strengthening without any unsafe-inline */
.eco-symbol-defs{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
/* Modern OS font stacks keep the admin usable offline and under self-only CSP. */
body.sambat-template:not(.auth-gate){
  --cream:#F3F0E6;--paper:#FFFEFA;--forest:#194A36;--green:#194A36;
  --ink:#203A2D;--muted:#647A6B;--border:#DEDCD0;
  --brand-900:#194A36;--brand-700:#246447;--brand-500:#39795A;
  background:var(--eco-oat);color:var(--eco-ink);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
}
body.sambat-template:not(.auth-gate) .app{background:var(--eco-oat)}
body.sambat-template:not(.auth-gate) .stage{background:var(--eco-oat)}
body.sambat-template:not(.auth-gate) .side{background:linear-gradient(160deg,#194A36,#103729)}
body.sambat-template:not(.auth-gate) .topbar{
  background:#F6F2E9;border-bottom:3px solid #C64B3C45;
}
body.sambat-template:not(.auth-gate) .header h1,
body.sambat-template:not(.auth-gate) .case-section-heading h2{color:var(--eco-forest)}
body.sambat-template:not(.auth-gate) .eyebrow,
body.sambat-template:not(.auth-gate) .tmpl-eyebrow,
body.sambat-template:not(.auth-gate) .cream-label{color:#B04437}
body.sambat-template:not(.auth-gate) .case-hero{
  background:#194A36!important;
  box-shadow:inset 6px 0 0 #C64B3C,0 12px 30px #183c2718;
}
body.sambat-template:not(.auth-gate) .case-section,
body.sambat-template:not(.auth-gate) .case-review{
  border-color:#DEDCD0;background:#FFFEFA;
  box-shadow:0 12px 28px #1C46300B;
}
body.sambat-template:not(.auth-gate) .tmpl-hero{
  background:#194A36;border-top:4px solid #C64B3C;
}
body.sambat-template:not(.auth-gate) .tmpl-hero h1 span{color:#F18B76}
body.sambat-template:not(.auth-gate) .user-chip{background:#E6ECE2;color:#194A36}
body.sambat-template:not(.auth-gate) .nav-item.active{box-shadow:inset 4px 0 0 #C64B3C}
body.sambat-template:not(.auth-gate) .case-hero .ticket{color:#F1E9D5}
body.sambat-template:not(.auth-gate) .button:focus-visible,
body.sambat-template:not(.auth-gate) a:focus-visible{
  outline:3px solid #C64B3C;outline-offset:3px;
}
/* Eliminate CSP-blocked inline widths with styled, semantic native progress bars. */
.pc-bar-track progress.eco-pc-progress{
  display:block;appearance:none;-webkit-appearance:none;
  width:100%;height:8px;border:0;border-radius:5px;overflow:hidden;background:var(--brand-100);
}
.pc-bar-track progress.eco-pc-progress::-webkit-progress-bar{background:var(--brand-100)}
.pc-bar-track progress.eco-pc-progress::-webkit-progress-value{
  background:linear-gradient(90deg,#194A36,#39805C);border-radius:5px;
}
.pc-bar-track progress.eco-pc-progress::-moz-progress-bar{
  background:linear-gradient(90deg,#194A36,#39805C);border-radius:5px;
}
.pc-stage progress.eco-stage-progress{
  display:block;appearance:none;-webkit-appearance:none;
  width:100%;height:4px;margin-top:10px;border:0;border-radius:5px;overflow:hidden;background:var(--b);
}
.pc-stage progress.eco-stage-progress::-webkit-progress-bar{background:var(--b)}
.pc-stage progress.eco-stage-progress::-webkit-progress-value{background:var(--c);border-radius:5px}
.pc-stage progress.eco-stage-progress::-moz-progress-bar{background:var(--c);border-radius:5px}
.tmpl-progress:has(.eco-stacked-progress){display:block;gap:0}
.tmpl-progress .eco-stacked-progress{width:100%;height:12px;display:block;overflow:hidden}
.eco-seg-0,.tmpl-legend .eco-swatch-0{fill:#E8B84A;background:#E8B84A}
.eco-seg-1,.tmpl-legend .eco-swatch-1{fill:#8FB8DE;background:#8FB8DE}
.eco-seg-2,.tmpl-legend .eco-swatch-2{fill:#E58A63;background:#E58A63}
.eco-seg-3,.tmpl-legend .eco-swatch-3{fill:#C9E265;background:#C9E265}
@media(max-width:760px){
  body.sambat-template:not(.auth-gate) .topbar{border-bottom-width:2px}
  body.sambat-template:not(.auth-gate) .content{padding-inline:16px}
}
