@font-face{font-family:Jost;src:url('/assets/fonts/Jost-400.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Jost;src:url('/assets/fonts/Jost-500.woff2') format('woff2');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:Jost;src:url('/assets/fonts/Jost-600.woff2') format('woff2');font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:'Cormorant Garamond';src:url('/assets/fonts/CormorantGaramond-500.woff2') format('woff2');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:'Cormorant Garamond';src:url('/assets/fonts/CormorantGaramond-600.woff2') format('woff2');font-style:normal;font-weight:600;font-display:swap}

:root{
 --brand-green:#00422b;--brand-night:#1e2926;--brand-gold:#ba9f67;--brand-gold-text:#7f6839;
 --brand-gold-light:#e2c994;--brand-cream:#fffbf4;--brand-white:#fff;--brand-olive:#6a6e49;
 --brand-terracotta:#8f2d00;--brand-lime:#d4d164;--brand-copper:#d1985c;--brand-leather:#975f44;
 --bg:var(--brand-cream);--card:var(--brand-white);--text:var(--brand-night);--muted:#56635e;
 --line:#ded6c7;--accent:var(--brand-green);--focus:var(--brand-gold);color-scheme:light;
}
body.dark{
 --bg:var(--brand-night);--card:#263531;--text:var(--brand-cream);--muted:#c5cec9;
 --line:#465650;--accent:var(--brand-gold-light);--focus:var(--brand-gold-light);color-scheme:dark;
}
html{background:var(--brand-cream)}
html:has(body.dark){background:var(--brand-night)}
body,button,input,select,textarea{font-family:Jost,Arial,sans-serif;font-variant-numeric:lining-nums tabular-nums}
body{min-height:100vh;font-size:16px;color:var(--text);background:var(--bg)}
h1,h2,.choice h3,.answer-card h3,.birthday-card time{font-family:'Cormorant Garamond',Georgia,serif;font-weight:600;letter-spacing:-.015em}
h1{font-size:39px;line-height:1.08}h2{font-size:31px;line-height:1.12}.page-heading h2{font-size:39px}.choice h3{font-size:31px}
h3{font-family:Jost,Arial,sans-serif;font-size:20px;font-weight:600;line-height:1.3}
p{line-height:1.5}.eyebrow{font-family:Jost,Arial,sans-serif;font-weight:600;letter-spacing:.14em;color:var(--brand-gold-text)}
body.dark .eyebrow,.workspace .eyebrow{color:var(--brand-gold-light)}

header{background:var(--brand-green);color:var(--brand-cream);border-bottom-color:#ffffff24;min-height:88px}
header .app-brand{display:flex;align-items:center;gap:18px;min-width:240px}
header .app-brand-logo{display:block;width:206px;height:58px;object-fit:contain;object-position:left center;background:transparent;border-radius:0}
header .app-version{color:var(--brand-gold-light);font-size:11px;letter-spacing:.12em}
header .profile-trigger{color:var(--brand-cream);border-color:#ffffff3d}
header .profile-trigger:hover{color:var(--brand-cream);background:#ffffff12}
header .profile-trigger .user-avatar.initials{background:var(--brand-cream);color:var(--brand-green)}
body.workspace header{background:var(--brand-green);border-bottom-color:#ffffff24}
.workspace-area-logo{filter:none}

button{background:var(--brand-green);color:var(--brand-cream);font-weight:500;border-color:transparent}
button:hover{background:#07573c;color:var(--brand-cream);box-shadow:0 6px 18px #1e29261c}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.quiet,.button-link{background:transparent;color:var(--text);border-color:var(--line)}
.quiet:hover,.button-link:hover{background:#00422b0b;color:var(--text)}
body.dark .quiet:hover,body.dark .button-link:hover{background:#ffffff0d;color:var(--text)}
input,select,textarea{background:var(--card);color:var(--text);border-color:var(--line)}
section,.card,dialog{background:var(--card);border-color:var(--line)}
.badge{background:var(--bg);color:var(--text)}
.error{color:var(--brand-terracotta)}
#message{background:var(--brand-gold-light);color:var(--brand-green)}

.choice{background:var(--card);border-color:var(--line);box-shadow:0 12px 36px #1e29260b}
.choice:hover{background:var(--card);color:var(--text);border-color:var(--brand-gold);box-shadow:0 18px 42px #1e292612}
.choice-logo-wrap,.choice.crem .choice-logo-wrap{background:var(--brand-green)}
.enter{border-top-color:var(--line)}

.sidebar-controls{background:var(--brand-green)}
.sidebar-edge{background:linear-gradient(90deg,#ba9f6745,transparent)}
.sidebar-toggle{background:var(--brand-gold-light);color:var(--brand-green)}
.nav-item{color:#edf3ef}
.nav-item:hover{background:#ffffff12;color:var(--brand-white)}
.nav-item.active,.dark .nav-item.active{background:var(--brand-gold-light);color:var(--brand-green);box-shadow:0 8px 24px #1e29262b}
.sidebar .quiet{color:#edf3ef;border-color:#ffffff2e}.sidebar .quiet:hover{background:#ffffff12;color:#fff}

.warning{border-color:var(--brand-terracotta);background:#fff1e9;color:#6f2507}
body.dark .warning{background:#422b23;color:#ffd8c7}
.birthday-panel,.attention-panel{border-color:var(--brand-gold);background:var(--brand-cream)}
body.dark .birthday-panel,body.dark .attention-panel{background:#293832}
.birthday-card{border-color:var(--brand-gold);background:var(--card)}
.month-tab.active{background:var(--brand-green);color:var(--brand-cream)}
.rank-number{background:var(--brand-gold-light);color:var(--brand-green)}
.rank-meter i{background:var(--brand-green)}
body.dark .rank-meter i{background:var(--brand-gold-light)}
.reward-pill{background:#f3e7c7;color:#5d481f}
.compliance-bar .received{background:var(--brand-gold)}
.compliance-bar .validated{background:var(--brand-green)}
.document-progress-legend .received-label::before{background:var(--brand-gold)}
.document-progress-legend .validated-label::before{background:var(--brand-green)}
.stage-dot.done{background:var(--brand-green)}.stage-dot.current{background:var(--brand-gold);box-shadow:0 0 0 4px #ba9f6738}
.risk-ALTO{background:#f5d9ce;color:var(--brand-terracotta)}
.answer-card h3{font-size:31px}.answer-card.selected,.answer-card:focus-visible{border-color:var(--brand-gold)}

.institution-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:18px;margin:20px 0}
.institution-card{display:grid;gap:18px}.institution-identity{display:flex;align-items:center;gap:16px;min-width:0}.institution-identity img,.institution-wordmark{width:118px;height:70px;object-fit:contain;border:1px solid var(--line);border-radius:14px;background:#fff;padding:10px;display:grid;place-items:center;color:#111;font-weight:600;letter-spacing:.08em}.institution-identity h3{margin:4px 0}.institution-identity p{margin:0}.institution-branches{display:flex;gap:8px;flex-wrap:wrap}.institution-lot{display:grid;grid-template-columns:1fr auto;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}.institution-lot .check{display:flex;align-items:flex-start;gap:12px;margin:0}.institution-lot small{display:block;margin-top:4px}.institution-logo-upload{display:grid;grid-template-columns:minmax(140px,220px) 1fr auto;align-items:center;gap:14px;margin-top:18px;padding:16px;border:1px solid var(--line);border-radius:14px}.institution-logo-upload>b,.institution-logo-upload p{grid-column:1/-1}.institution-logo-upload img{width:180px;height:80px;object-fit:contain;background:#fff;border-radius:10px;padding:8px}

@media(max-width:800px){
 header .app-brand-logo{width:min(196px,58vw);height:50px}
 .sidebar-controls{background:var(--card)}
 .sidebar .nav-item,.sidebar .quiet{color:var(--text)}
 .sidebar .nav-item.active{background:var(--brand-gold-light);color:var(--brand-green)}
 .institution-grid{grid-template-columns:1fr}.institution-identity{align-items:flex-start}.institution-logo-upload{grid-template-columns:1fr}.institution-logo-upload>b,.institution-logo-upload p{grid-column:auto}.institution-lot{grid-template-columns:1fr}
}
@media(max-width:540px){
 body{font-size:16px}.welcome>h2,.page-heading h2{font-size:31px}
 header{padding:10px 14px}.workspace-area-logo{width:min(180px,58vw)}
}
