@import url('./ui-v4.css?v=20261009-1');

/* V5 — deliberate visual break: light application workspace + dark NG visual stage */
:root{
  --bg:#eef2f6;
  --panel:#ffffff;
  --panel-2:#f7f9fb;
  --panel-3:#e9eef3;
  --line:#dde3ea;
  --line-2:#c8d1dc;
  --text:#0f141b;
  --muted:#5e6a77;
  --muted-2:#8893a0;
  --ruby:#5367ff;
  --ruby-2:#7382ff;
  --discord:#5865f2;
  --green:#31835a;
  --red:#c84753;
  --blue:#3f7dab;
  --gold:#c99b2f;
  --ok:#2f9a60;
  --bad:#c9525c;
  --warn:#a47415;
  --shadow:0 24px 70px rgba(20,30,45,.12);
}

html{background:#eef2f6}
body{background:#eef2f6;color:var(--text)}
::selection{background:#cdd3ff;color:#0a0d13}

.country-line{height:4px;position:relative;z-index:50}
.site-header,.admin-header{background:rgba(255,255,255,.94);border-bottom-color:#dfe5ec;color:#111722;backdrop-filter:blur(16px)}
.brand-logo{border-color:#cdd6e0;background:#fff;box-shadow:0 5px 18px rgba(16,24,40,.08)}
.brand-text small,.status-dot,.header-link{color:#697583}
.header-link:hover{color:#10151c}

.btn{border-radius:10px}
.btn-primary{background:#111722;border-color:#111722;color:#fff}
.btn-primary:hover{background:#202936;border-color:#202936}
.btn-ghost,.btn-outline{background:#fff;border-color:#cbd4de;color:#33404d}
.btn-ghost:hover,.btn-outline:hover{background:#f3f6f9;border-color:#aeb9c6;color:#111722}
.btn-success{background:#eaf7ef;border-color:#b9ddc7;color:#217848}
.btn-danger{background:#fff0f1;border-color:#ecc5c9;color:#b53e49}

/* ---------- public ---------- */
.public-body{background:#eef2f6;color:#111722}
.public-body .site-header{position:sticky;top:0;z-index:40}
.portal-hero{min-height:640px;display:grid;grid-template-columns:minmax(320px,.82fr) minmax(480px,1.18fr);grid-template-areas:'copy visual';gap:56px;align-items:center;padding:52px 0 62px}
.hero-copy{grid-area:copy;order:1;padding:0;color:#111722}
.hero-copy .eyebrow{color:#75818f}
.hero-copy h1{margin:14px 0 18px;font-size:clamp(54px,6vw,90px);line-height:.88;letter-spacing:-.065em;color:#111722}
.hero-copy h1 span{display:block;color:var(--red)}
.hero-copy .lead{max-width:420px;margin:0 0 26px;color:#566270;font-size:17px}
.hero-actions{gap:10px}
.hero-copy .btn{min-height:48px;padding-inline:18px}
.hero-steps{margin-top:32px;gap:10px}
.hero-step{color:#5d6875;font-size:12px;font-weight:600}
.hero-step i{width:32px;height:32px;border-color:#cfd8e2;background:#fff;color:#111722;box-shadow:0 5px 16px rgba(16,24,40,.05)}
.hero-step-line{width:46px;background:#c7d0da}
.hero-footnote{margin-top:14px;color:#8994a1}

.hero-visual{grid-area:visual;order:2;position:relative;min-height:520px;border:0;border-radius:0;background:#0a0f16;box-shadow:0 40px 110px rgba(16,24,40,.22);clip-path:polygon(8% 0,100% 0,100% 92%,92% 100%,0 100%,0 8%);isolation:isolate}
.hero-visual:before{content:'';position:absolute;left:0;top:0;width:8px;height:100%;background:var(--red);z-index:10}
.hero-visual:after{content:'';position:absolute;right:0;bottom:0;width:34%;height:8px;background:var(--blue);z-index:10}
.hero-grid{opacity:.34;background-size:38px 38px;background-image:linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px)}
.hero-scan{height:120px;background:rgba(83,103,255,.055)}
.hero-flag-plane{width:min(67%,520px);border-radius:4px;border:1px solid rgba(255,255,255,.2);box-shadow:0 34px 90px rgba(0,0,0,.52);transform:translate(-50%,-50%) rotate(-8deg)}
.hero-flag-plane:before{content:'ERYTHREA';position:absolute;left:-110px;top:-84px;color:rgba(255,255,255,.06);font-size:72px;font-weight:800;letter-spacing:.08em;white-space:nowrap;z-index:-1}
.ruby-orbit{right:7%;top:10%;width:142px;height:142px;border-color:rgba(115,130,255,.45)}
.ruby-orbit:before{inset:17px;border-color:rgba(115,130,255,.22)}
.ruby-orbit:after{inset:42px;border-color:rgba(115,130,255,.18)}
.ruby-core{width:50px;height:50px;background:#6f7cff;border-color:#b7bdff;box-shadow:0 16px 40px rgba(83,103,255,.34)}
.visual-stamp{left:26px;bottom:24px;border-color:rgba(255,255,255,.16);background:#0b1017;color:#fff;backdrop-filter:none}
.visual-stamp span{color:#8e9aa7}
.visual-status{position:absolute;right:24px;bottom:24px;display:flex;align-items:center;gap:8px;padding:9px 11px;background:#fff;color:#111722;font-size:11px;font-weight:700;z-index:5}
.visual-status i{font-size:8px;color:#31a267}
.visual-wordmark{position:absolute;left:28px;top:24px;color:rgba(255,255,255,.1);font-size:12px;font-weight:800;letter-spacing:.34em;text-transform:uppercase;z-index:3}

#globalNotice,.account{background:#fff;border-color:#dce3ea;color:#36424f;box-shadow:0 8px 24px rgba(17,24,39,.05)}
.account-name small{color:#7a8693}

.application-shell{padding:0 0 84px;background:#eef2f6}
.form-wrap{width:min(1040px,calc(100% - 40px))}
.application-card{background:#fff;border:1px solid #dbe2e9;border-radius:18px;box-shadow:0 24px 70px rgba(18,28,45,.08);color:#111722}
.form-intro{padding:26px 28px 24px;background:#fff;border-bottom-color:#e3e8ed}
.form-intro .eyebrow{color:#7c8794}
.form-intro h2{font-size:30px;color:#111722}
.form-intro p{color:#7a8591}
.form-count{color:#818c98}
#recruitForm{padding:0 28px 28px}
.form-section{grid-template-columns:96px 1fr;border-top-color:#e6ebf0}
.form-section-index{color:var(--red)}
.form-section-copy h3{color:#111722;font-size:20px}
.form-section-copy p{color:#788491}
.field{grid-template-columns:minmax(190px,240px) minmax(0,1fr);border-top-color:#edf0f3}
.field-label{color:#27313d!important}
.field-help{color:#919aa5}
.required{background:#fff1f2;border-color:#efc8cc;color:#bc4550}
.control{background:#fbfcfd;color:#111722;border-color:#cfd7df}
.control:hover{border-color:#aeb9c6}
.control:focus{border-color:#5367ff;box-shadow:0 0 0 3px rgba(83,103,255,.1)}
.control::placeholder{color:#a1abb5}
.control[readonly]{background:#f0f3f6;color:#6f7b87}
.choice{background:#fbfcfd;border-color:#d4dce4;color:#46515e}
.choice:hover{background:#f4f7f9;border-color:#b5c0ca;color:#111722}
.contact-block{background:#f6f8fa;border-color:#dde4eb}
.field-icon{border-color:#cfd7df;background:#fff;color:#5367ff}
.contact-block h3{color:#111722}
.contact-block p,.submit-copy{color:#7d8894}
.submit-row{border-top-color:#e4e9ee}
.form-locked,.success-box{background:#fbfcfd;color:#111722}
.locked-icon,.success-icon,.accept-icon{background:#fff;border-color:#d4dce4}
.form-locked p,.success-box p{color:#7d8792}
.application-status{background:#fff;border-color:#dce3e9;color:#111722}
.application-status p,.application-status small{color:#6f7b87}

.site-footer{border-top-color:#dbe2e9;color:#7c8793;background:transparent}
.accept-shell{background:#eef2f6}
.accept-card{background:#fff;border-color:#d8e0e8;color:#111722;box-shadow:var(--shadow)}
.accept-card p{color:#66717d}

/* ---------- admin ---------- */
.admin-body{background:#edf1f5;color:#121820}
.admin-wrap{width:100%;min-height:100vh}
.admin-header{padding:0 22px;position:sticky;top:0;z-index:60}
.admin-title b{color:#111722}.admin-title span{color:#7b8794}
.admin-title-icon{background:#111722;border-color:#111722;color:#fff}
.admin-login{background:#edf1f5}
.login-shell{width:min(980px,calc(100% - 32px));grid-template-columns:1.1fr .9fr;gap:0;background:#fff;border:1px solid #d9e0e7;box-shadow:0 30px 90px rgba(17,24,39,.1)}
.login-visual{min-height:520px;border:0;border-radius:0;background:#0a0f16;clip-path:polygon(0 0,100% 0,92% 100%,0 100%)}
.login-box{background:#fff;color:#111722;border:0;border-radius:0;padding:46px 42px;box-shadow:none}
.login-copy .eyebrow{color:#7d8793}.login-copy h1{color:#111722}.login-copy p{color:#7c8793}
.login-icon{background:#111722;border-color:#111722;color:#fff}
.admin-body .dark-field label{color:#4d5966}
.admin-body .dark-control{background:#fbfcfd;color:#111722;border-color:#cdd6df}
.admin-body .dark-control:hover{border-color:#aeb9c6}.admin-body .dark-control:focus{border-color:#5367ff}
.input-with-icon i{color:#8a95a1}

.admin-workspace{grid-template-columns:228px minmax(0,1fr);gap:0;min-height:calc(100vh - 66px);padding:0}
.admin-side{position:sticky;top:66px;height:calc(100vh - 66px);padding:24px 14px 18px;background:#0b1017;border-right:0;color:#eef2f6;display:flex;flex-direction:column}
.admin-side:before{content:'';position:absolute;left:0;top:0;width:4px;height:34%;background:var(--green)}
.admin-side:after{content:'';position:absolute;left:0;bottom:0;width:4px;height:34%;background:var(--red)}
.admin-side-label{padding:0 10px 14px;color:#64707d;font-size:9px;letter-spacing:.12em}
.admin-tabs{display:grid;gap:4px}
.admin-tab{width:100%;justify-content:flex-start;border:0;background:transparent;color:#8e9aa7;border-radius:8px;min-height:42px;padding:0 11px;font-size:13px}
.admin-tab:hover{background:#131b25;color:#fff}
.admin-tab.active{background:#fff;color:#111722}
.admin-tab.active i{color:#5367ff}
.admin-side-foot{margin-top:auto;padding-top:16px;border-top:1px solid #1f2832}
.logout-tab{color:#88939f}
.admin-content{padding:28px 30px 42px;background:#edf1f5;min-width:0}
.admin-content-header{margin-bottom:18px;padding:0;border:0}
.admin-content-header h1{margin:0;font-size:28px;color:#111722;letter-spacing:-.03em}
.admin-content-header small{color:#8a95a1}
.admin-grid{grid-template-columns:340px minmax(0,1fr);gap:16px;padding:0}
.candidate-list,.candidate-detail,.editor-shell,.staff-create-card,.staff-list-card{background:#fff;border:1px solid #dce3e9;color:#111722;box-shadow:0 10px 28px rgba(17,24,39,.045)}
.candidate-list{position:sticky;top:94px;max-height:calc(100vh - 116px)}
.candidate-list-head{border-bottom-color:#e4e9ee}.candidate-list-head h2{color:#111722}
.small-pill{background:#f4f6f8;border-color:#dde4eb;color:#65717e}
.filter-row{border-bottom-color:#e5eaef}
.filter-btn{color:#6f7a86;background:transparent;border-color:transparent}
.filter-btn:hover{color:#111722}.filter-btn.active{background:#111722;color:#fff;border-color:#111722}
.candidate-row{background:#fff;border-bottom-color:#edf0f3;color:#111722}
.candidate-row:hover{background:#f7f9fb}.candidate-row.active{background:#eef1ff;border-left-color:#5367ff}
.candidate-row small{color:#8994a0}
.status{border-radius:5px}.status.pending{background:#fff7e6;color:#9d6a0e;border-color:#ead8ad}.status.accepted{background:#ecf8f0;color:#25794b;border-color:#c3e5cf}.status.rejected{background:#fff0f1;color:#b6424c;border-color:#ecc8cc}
.candidate-detail{padding:22px;min-height:520px}
.detail-head{border-bottom-color:#e5eaf0}.detail-head h2{color:#111722}.detail-head p{color:#7a8591}
.answer{border-bottom-color:#edf0f3}.answer label{color:#8a95a1}.answer>div{color:#1f2933}
.admin-note{background:#f7f9fb;border-color:#e0e6ec}.admin-note>label{color:#4f5b67}
.admin-message{color:#7d8894}

.editor-shell{padding:20px}.editor-toolbar{border-bottom-color:#e5eaf0}.editor-toolbar h2{color:#111722}
.editor-block{background:#fff;border-color:#e1e7ed}.editor-block:hover{border-color:#cbd4de}.editor-copy strong{color:#111722}.editor-copy small{color:#8a95a1}
.icon-btn{background:#fff;border-color:#d4dce4;color:#66717d}.icon-btn:hover{background:#f3f6f8;color:#111722}
.settings-shell{max-width:800px}
.staff-permissions-box{background:#f7f9fb;border-color:#e0e6ec}.staff-permission{background:#fff;border-color:#e1e7ed;color:#111722}.staff-permission small{color:#8b96a2}
.staff-account{background:#fff;border-color:#e0e6ec;color:#111722}.staff-account-controls{border-top-color:#e7ebef}.staff-inline-check{color:#4e5a67}
.staff-password-reset .dark-control{background:#fbfcfd}
.ai-review-panel{background:#f8fafc;border-color:#dce3e9;color:#111722}
.ai-review-head{border-bottom-color:#e1e7ed}.ai-review-head h3{color:#111722}.ai-review-head p,.ai-review-footer{color:#7c8793}
.ai-review-kicker{color:#5367ff}.ai-summary{color:#35414d}
.ai-criterion,.ai-two-col section,.ai-oral,.ai-flags{background:#fff;border-color:#e1e7ed}.ai-criterion-top span,.ai-criterion p,.ai-two-col ul,.ai-flags ul,.ai-oral-item small{color:#7a8591}.ai-criterion-top b,.ai-two-col h4,.ai-oral h4{color:#25303b}.ai-oral-item p{color:#1f2933}.ai-oral-item>span{background:#eef1ff;border-color:#d6dbff;color:#5367ff}
.ai-flags{background:#fff5f5;border-color:#eccfd2}.ai-flags h4{color:#b94650}
.modal{background:rgba(8,12,18,.55)}.modal-card{background:#fff;color:#111722;border-color:#dce3e9}
.modal-head{border-bottom-color:#e4e9ee}.modal-head h3{color:#111722}.switch-row{color:#4c5865}
.empty-state{color:#85909c}.empty-state strong{color:#35404b}

/* visual motion hooks */
[data-motion-reveal]{opacity:0;transform:translateY(20px)}

@media(max-width:1100px){
  .portal-hero{grid-template-columns:1fr;grid-template-areas:'visual' 'copy';gap:28px;padding:28px 0 46px}
  .hero-visual{min-height:440px;order:1}.hero-copy{order:2;max-width:720px}
  .admin-workspace{grid-template-columns:190px minmax(0,1fr)}
  .admin-grid{grid-template-columns:300px minmax(0,1fr)}
}

@media(max-width:820px){
  .shell-width{width:calc(100% - 24px)}
  .site-header,.admin-header{height:62px}
  .portal-hero{min-height:auto;padding:18px 0 34px;gap:22px}
  .hero-visual{min-height:330px;clip-path:polygon(6% 0,100% 0,100% 94%,94% 100%,0 100%,0 6%)}
  .hero-flag-plane{width:72%}.ruby-orbit{width:105px;height:105px;right:4%;top:8%}.ruby-orbit:after{inset:30px}.ruby-core{width:42px;height:42px}
  .hero-copy h1{font-size:52px}.hero-copy .lead{font-size:15px}.hero-actions{display:grid;grid-template-columns:1fr}.hero-actions .btn{width:100%}
  .hero-steps{overflow-x:auto;padding-bottom:4px}.hero-step-line{width:20px;flex:0 0 20px}.hero-step{white-space:nowrap}
  .form-wrap{width:calc(100% - 16px)}.application-card{border-radius:14px}.form-intro{padding:20px;flex-direction:column}.form-count{padding:0}#recruitForm{padding:0 20px 20px}
  .form-section{grid-template-columns:1fr;gap:6px}.field{grid-template-columns:1fr;gap:8px}.field-help{grid-column:auto;margin:-3px 0 0}.choice-grid{grid-template-columns:1fr}.control{font-size:16px}.submit-row{flex-direction:column;align-items:stretch}.submit-row .btn{width:100%}
  .login-shell{grid-template-columns:1fr}.login-visual{display:none}.login-box{padding:30px 22px}
  .admin-workspace{display:block}.admin-side{position:sticky;top:62px;z-index:45;height:auto;padding:8px 10px;background:#0b1017;flex-direction:row;align-items:center;overflow-x:auto}.admin-side:before,.admin-side:after,.admin-side-label{display:none}.admin-tabs{display:flex;gap:5px;min-width:max-content}.admin-tab{width:auto;min-height:38px}.admin-side-foot{margin:0 0 0 6px;padding:0 0 0 6px;border:0;border-left:1px solid #202832}.admin-content{padding:16px 8px 28px}.admin-grid{grid-template-columns:1fr}.candidate-list{position:static;max-height:none}.candidate-detail{min-height:420px}
}

@media(max-width:520px){
  .header-nav{gap:9px}.status-dot{display:none}.header-link span{display:none}.hero-copy h1{font-size:45px}.hero-visual{min-height:280px}.visual-stamp{left:14px;bottom:14px}.visual-status{right:14px;bottom:14px}.visual-wordmark{left:16px;top:16px;font-size:10px}.ruby-orbit{display:none}
  .admin-title span{display:none}.candidate-detail{padding:15px}.detail-actions{grid-template-columns:1fr 1fr}.staff-accounts-layout{grid-template-columns:1fr}.modal{padding:8px}.modal-card{width:100%;max-height:calc(100svh - 16px)}
}
