@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Cairo:wght@400;500;600;700;800;900&family=Noto+Kufi+Arabic:wght@600;700;800&display=swap');
@layer theme, legacy;
@layer theme {

/* Shared palette. Legacy aliases keep every subsystem on the same theme. */
:root, body, body.blue-theme {
  --sef-background:#0B0B0C;
  --sef-card:#1C1C1F;
  --sef-secondary:#141416;
  --sef-navy:#303034;
  --sef-primary:#C99728;
  --sef-light:#E8C86A;
  --sef-button:#8F681A;
  --sef-text:#F7F5EF;
  --sef-muted:#C8C5BC;
  --sef-border:rgba(232,200,106,.25);
  --sef-gradient:linear-gradient(180deg,#141414 0,#171717 420px,#101011 1100px,#0B0B0C 100%);
  --bg:var(--sef-background);--bg-color:var(--sef-background);
  --bg-gradient:var(--sef-gradient);--card-bg:var(--sef-card);
  --panel:var(--sef-card);--panel2:var(--sef-secondary);
  --field-bg:var(--sef-secondary);--field-bg-soft:var(--sef-secondary);
  --line:var(--sef-border);--border-color:var(--sef-border);--border-strong:var(--sef-primary);
  --blue:var(--sef-primary);--blue-dark:var(--sef-button);--gold:var(--sef-light);
  --accent-color:var(--sef-button);--accent-hover:var(--sef-primary);--accent-soft:rgba(201,151,40,.14);
  --text:var(--sef-text);--text-color:var(--sef-text);--muted:var(--sef-muted);--subtext-color:var(--sef-muted);
  --table-header-bg:var(--sef-navy);--green-btn:var(--sef-button);--green-hover:var(--sef-primary);
  --shadow:0 16px 40px rgba(0,0,0,.2);--radius:18px;
}
html { background:var(--sef-background);scroll-behavior:smooth;scroll-padding-top:90px; }
html body { background:var(--sef-gradient)!important;color:var(--sef-text)!important;font-family:'Cairo',Tahoma,sans-serif!important;line-height:1.7; }
html body :is(button,input,textarea,select) { font-family:'Cairo',Tahoma,sans-serif!important; }
html body :is(h1,h2,h3,.sef-arabic-heading,.sector-title) { font-family:'Noto Kufi Arabic','Cairo',sans-serif!important;letter-spacing:0!important;line-height:1.6; }
html body :is(button,a,input,textarea,select):focus-visible { outline:2px solid var(--sef-light);outline-offset:4px; }
html body :is(input,textarea,select) { accent-color:var(--sef-primary); }
html body :is(button,a) { -webkit-tap-highlight-color:transparent; }
html body :is(button,.btn,.card,.upload-card,.sef-select-trigger) { transition:background-color .22s,border-color .22s,box-shadow .22s,translate .25s; }
@media(hover:hover) { html body button:not(:disabled):hover { border-color:var(--sef-light); } }
html body button:not(:disabled):active { translate:0 1px; }
html body ::selection { background:var(--sef-primary);color:white; }
html body :is(.bg,.entry-sef-ghost,.sef-page-watermark) { display:none!important; }
html body::after { display:none!important; }
html body::before { background:none!important; }
html body :is(.card,.access-card,.join-card,.modal-card,.upload-card,.review-block,.file-section,.rank-card,.output-panel,.bg-custom-dark) { background:var(--sef-card)!important;border-color:var(--sef-border)!important;box-shadow:var(--shadow);border-radius:18px; }
html body :is(.btn-submit,.access-submit,.btn-primary,.btn.primary,.entry-start) { background:var(--sef-button)!important;border:1px solid var(--sef-primary)!important;color:var(--sef-text)!important;box-shadow:none!important; }
html body :is(.btn-submit,.access-submit,.btn-primary,.btn.primary,.entry-start):hover { background:var(--sef-primary)!important; }
html body :is(.btn-submit,.access-submit) { min-height:50px;border-radius:12px; }
html body :is(input:not([type=checkbox]):not([type=radio]),textarea) { background-color:var(--sef-secondary)!important;border-color:var(--sef-border)!important;color:var(--sef-text)!important;border-radius:12px; }
html body input::placeholder,html body textarea::placeholder { color:var(--sef-muted);opacity:.65; }
html body :is(.sef-select-trigger,.custom-dropdown-select) { background:var(--sef-secondary)!important;border-color:var(--sef-border)!important;color:var(--sef-text)!important;border-radius:12px!important;min-height:52px;padding:12px 16px!important;font-size:14px; }
html body .sef-select-menu { background:var(--sef-card);border-color:var(--sef-border);border-radius:12px; }
html body .sef-select-option:hover,html body .sef-select-option[aria-selected=true] { background:var(--sef-navy);color:var(--sef-text); }
html body .sef-credit { color:var(--sef-muted);font-family:'Cairo',sans-serif; }
html body .sef-credit strong,html body .sef-credit a:hover { color:var(--sef-light); }
html body .sef-credit a { border-color:var(--sef-primary);color:var(--sef-muted); }

/* Landing: clear title, compact system cards, and an ordinary bottom credit. */
html body:has(#modeSelector.entry-screen:not(.hidden)) { overflow-y:auto!important;height:auto!important;min-height:100vh!important;padding:0!important; }
html body #modeSelector.entry-screen { display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto auto auto!important;gap:34px!important;width:min(1180px,calc(100% - 64px))!important;min-height:0!important;height:auto!important;margin:0 auto!important;padding:32px 0 12px!important;position:relative!important;inset:auto!important;background:transparent!important;overflow:visible!important; }
html body #modeSelector.entry-screen.hidden { display:none!important; }
html body #modeSelector.entry-screen::before,html body #modeSelector.entry-screen::after { display:none!important; }
html body #modeSelector.entry-screen .entry-brand { position:static!important;inset:auto!important;display:flex!important;align-items:center!important;gap:16px!important;padding:0 0 24px!important;max-width:none!important;min-height:0!important;width:100%!important;border-bottom:1px solid var(--sef-border); }
html body #modeSelector.entry-screen .entry-brand img { width:58px!important;height:58px!important;object-fit:contain!important; }
html body #modeSelector.entry-screen .entry-brand-text { display:flex!important;flex-direction:column!important;gap:3px!important;text-align:right!important; }
html body #modeSelector.entry-screen .entry-brand span { font-size:12px!important;letter-spacing:2px!important;color:var(--sef-muted)!important; }
html body #modeSelector.entry-screen .entry-brand small { font-family:'Noto Kufi Arabic',sans-serif!important;font-size:19px!important;font-weight:800!important;color:var(--sef-text)!important; }
html body #modeSelector.entry-screen .entry-body { position:static!important;inset:auto!important;display:block!important;width:100%!important;max-width:760px!important;padding:8px 0!important;align-self:auto!important;justify-self:auto!important;transform:none!important;text-align:right!important; }
html body #modeSelector.entry-screen .entry-body h1 { font-family:'Noto Kufi Arabic',sans-serif!important;font-size:clamp(28px,3.4vw,46px)!important;line-height:1.6!important;max-width:760px!important;margin:0!important;color:var(--sef-text)!important;white-space:normal!important; }
html body #modeSelector.entry-screen .entry-body p { font-size:13px!important;line-height:1.8!important;margin:16px 0 0!important;color:var(--sef-muted)!important;letter-spacing:1px; }
html body #modeSelector.entry-screen .entry-stage-dock.entry-system-dock { position:static!important;inset:auto!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;transform:none!important;width:100%!important;max-width:none!important;padding:0!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;margin:0!important; }
html body #modeSelector.entry-screen .entry-system-choice { position:relative!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:20px!important;width:100%!important;min-height:118px!important;height:auto!important;padding:24px!important;border:1px solid var(--sef-border)!important;border-radius:18px!important;background:var(--sef-card)!important;box-shadow:0 12px 32px #0002!important;color:var(--sef-text)!important;text-align:right!important;overflow:hidden; }
html body #modeSelector.entry-screen .entry-system-choice::after { content:'↗';position:absolute;left:22px;top:20px;font-size:18px;color:var(--sef-light);opacity:.65; }
html body #modeSelector.entry-screen .entry-system-choice b { display:grid!important;place-items:center!important;flex:0 0 44px;width:44px!important;height:44px!important;border-radius:12px;background:var(--sef-navy);color:var(--sef-light)!important;font-size:16px!important;font-weight:800!important; }
html body #modeSelector.entry-screen .entry-system-choice>span { color:inherit!important;font-size:17px!important;font-weight:800!important;line-height:1.6!important;transform:none!important;opacity:1!important; }
html body #modeSelector.entry-screen .entry-system-choice:hover:not(:disabled) { background:#363022!important;border-color:var(--sef-primary)!important;translate:0 -4px;box-shadow:0 18px 40px #0004!important; }
html body #modeSelector.entry-screen .entry-system-choice.is-coming-soon { opacity:.55!important; }
html body #modeSelector.entry-screen .entry-system-choice .entry-coming-soon { position:absolute!important;left:22px!important;bottom:12px!important;font-size:11px!important;color:var(--sef-muted)!important; }
html body #modeSelector.entry-screen .entry-action-zone { display:none!important; }
html body:has(#modeSelector.entry-screen:not(.hidden))>.sef-credit { position:static!important;inset:auto!important;margin:12px auto 0!important;padding:22px 16px!important;background:transparent!important;font-size:12px!important;color:var(--sef-muted)!important; }
html body:has(#modeSelector.entry-screen:not(.hidden))>.sef-credit strong { color:var(--sef-light)!important; }

/* Recruitment and commissioning: retain the existing step controls and grid. */
html body:has(#appShell:not(.hidden)) { height:auto!important;min-height:100vh!important;overflow-y:auto!important;padding:0!important; }
html body #appShell.console-shell { max-width:1440px!important;min-height:0!important;height:auto!important;padding:92px 24px 32px!important;margin:0 auto!important; }
html body #appShell .app-main-header { min-height:72px!important;height:72px!important;padding:10px 24px!important;background:var(--sef-secondary)!important;border-bottom:1px solid var(--sef-border)!important; }
html body #appShell .app-main-header img { height:44px!important;width:44px!important; }
html body #appShell .workflow-layout { gap:20px!important;align-items:start!important;min-height:0!important; }
html body #appShell :is(#step1Content,#step2Content,#step3Content,#step4Content,#step5Content) { min-height:0!important;height:auto!important;padding:0 0 24px!important; }
html body #appShell #recruitment_room_picker { margin:0!important;padding:0!important;min-height:0!important; }
html body #appShell .sef-room-picker-head { margin-bottom:20px!important;gap:16px!important;align-items:center!important; }
html body #appShell .sef-room-picker-head h2 { font-size:clamp(23px,2.2vw,32px)!important;line-height:1.6!important; }
html body #appShell #refresh_room_members { width:auto!important;min-width:150px!important;min-height:46px!important;height:auto!important;padding:10px 20px!important;background:var(--sef-button)!important;color:var(--sef-text)!important;border:1px solid var(--sef-border)!important;border-radius:12px!important; }
html body #appShell #recruitment_room_picker .sef-room-grid { gap:16px!important;margin:0!important;padding:0!important;align-items:start!important; }
html body #appShell #step1Content #recruitment_room_picker .sef-room-grid>div:has(>select) { height:auto!important;min-height:0!important;gap:8px!important;padding:0!important; }
html body #appShell #step1Content #recruitment_room_picker .sef-room-grid label { color:var(--sef-muted)!important;font-size:13px!important;margin:0!important; }
html body #appShell #step1Content .grid:has(#current_unit) { margin-top:20px!important;padding-top:0!important;gap:16px!important; }
html body #appShell .workflow-side { background:var(--sef-card)!important;border:1px solid var(--sef-border)!important;border-radius:18px!important;padding:18px!important;min-height:0!important; }
html body #appShell .sef-context-card,html body #appShell .sef-flow-step { border-color:var(--sef-border)!important;background:var(--sef-secondary)!important; }
html body #appShell .sef-flow-step.is-current,html body #appShell #processRail .is-active { background:var(--sef-navy)!important;border-color:var(--sef-primary)!important;color:var(--sef-text)!important; }
html body #appShell .process-rail button { border-color:var(--sef-border)!important;background:var(--sef-card)!important;border-radius:12px!important; }
html body #appShell .sef-progress-track,html body #appShell progress { accent-color:var(--sef-primary); }
html body #appShell :is(.text-gray-400,.text-gray-500,.text-zinc-400,.text-zinc-500) { color:var(--sef-muted)!important; }
html body #appShell .sef-main-panel { min-height:0!important; }

/* Other subsystems retain their own layout mechanics, sharing density and palette. */
html body .main-layout { margin-top:18px;gap:20px; }
html body .main-layout .container { width:min(700px,100%); }
html body .card { padding:28px; }
html body .card h1 { font-size:26px; }
html body .sub-section-box { background:var(--sef-secondary);border-color:var(--sef-border);border-radius:14px;min-height:74px; }
html body .sub-section-box:hover { background:var(--sef-navy); }
html body .btn-back { background:var(--sef-secondary);border-color:var(--sef-border);color:var(--sef-muted);border-radius:12px; }
html body .affairs-actions { margin-top:20px; }
html body .access-card { border:1px solid var(--sef-border); }
html body .access-shell { padding-block:24px; }
html body .app-header { background:var(--sef-secondary);border-color:var(--sef-border);height:64px; }
html body .brand b { color:var(--sef-text); }
html body .stepper { background:var(--sef-card);border-color:var(--sef-border); }
html body .stepper button.active i,html body .stepper button.is-active { background:var(--sef-button);border-color:var(--sef-primary);color:var(--sef-text); }
html body .site-header { background:var(--sef-secondary);border-color:var(--sef-border); }
html body .landing-view { padding-top:32px; }
html body .how-grid { margin-top:24px;gap:14px; }
html body .room-group>header { background:var(--sef-navy); }
html body .room-group>header span { border-color:var(--sef-border); }

/* Reveal is progressive enhancement: content remains visible without JS. */
.sef-motion-target { transition:opacity .55s ease,translate .55s ease,border-color .22s,background-color .22s,box-shadow .22s!important; }
.sef-motion-target.sef-motion-pending { opacity:0;translate:0 18px; }
@media(max-width:1050px) {
 html body #modeSelector.entry-screen .entry-stage-dock.entry-system-dock { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
 html body #appShell.console-shell { padding-inline:16px!important; }
}
@media(max-width:700px) {
 html body #modeSelector.entry-screen { width:calc(100% - 32px)!important;padding-top:20px!important;gap:24px!important; }
 html body #modeSelector.entry-screen .entry-stage-dock.entry-system-dock { grid-template-columns:1fr!important;gap:12px!important; }
 html body #modeSelector.entry-screen .entry-system-choice { min-height:86px!important;padding:18px!important; }
 html body #modeSelector.entry-screen .entry-body h1 { font-size:28px!important; }
 html body #modeSelector.entry-screen .entry-brand small { font-size:15px!important; }
 html body #modeSelector.entry-screen .entry-brand span { font-size:9px!important;letter-spacing:1px!important; }
 html body #appShell .sef-room-picker-head { flex-direction:column!important;align-items:stretch!important; }
 html body #appShell .sef-room-grid { grid-template-columns:1fr!important; }
 html body .card { padding:20px; }
 html body .main-layout { width:100%; }
 html body .brand b { font-size:11px; }
}
@media(prefers-reduced-motion:reduce) {
 html { scroll-behavior:auto; }
 html body *,html body *::before,html body *::after { animation:none!important;transition:none!important; }
 .sef-motion-target.sef-motion-pending { opacity:1;translate:none; }
}

/* Final layout ownership replaces the old JS viewport pinning. */
html body #modeSelector.entry-screen .entry-brand {direction:rtl!important;}
html body #modeSelector.entry-screen .entry-stage-dock.entry-system-dock {direction:rtl!important;}
html body #modeSelector.entry-screen .entry-system-choice b {background:var(--sef-navy)!important;color:var(--sef-light)!important;}
html body #modeSelector.entry-screen .entry-system-choice.is-coming-soon::before {display:none!important;}
html body #modeSelector.entry-screen .entry-system-choice .entry-coming-soon {display:block!important;}
html body #appShell #stepPanel::before,html body #appShell #stepPanel::after {display:none!important;content:none!important;}
html body #appShell #workflowGrid {position:relative!important;inset:auto!important;transform:none!important;translate:none!important;width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;padding:0 290px 0 0!important;margin:22px 0 0!important;gap:20px!important;overflow:visible!important;}
html body #appShell #stepPanel {width:100%!important;max-width:none!important;min-width:0!important;background:var(--sef-card)!important;border:1px solid var(--sef-border)!important;padding:24px!important;border-radius:18px!important;overflow:visible!important;}
html body #appShell #processRail {position:relative!important;inset:auto!important;transform:none!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;width:100%!important;height:auto!important;min-height:0!important;padding:0!important;gap:10px!important;background:transparent!important;border:0!important;box-shadow:none!important;}
html body #appShell #processRail button {height:auto!important;min-height:62px!important;width:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;}
html body #appShell #processRail button b {display:inline!important;font-size:12px!important;}
html body #appShell #processRail button span {font-size:14px!important;}
html body #sef_context_heading_fixed {position:fixed!important;inset:185px max(24px,calc((100vw - 1392px)/2)) auto auto!important;width:264px!important;max-height:calc(100vh - 210px)!important;overflow:auto!important;background:var(--sef-card)!important;border-color:var(--sef-border)!important;border-radius:18px!important;padding:16px!important;}
html body #appShell #recruitment_room_picker {display:flex!important;flex-direction:column!important;gap:16px!important;}
html body #appShell .sef-refresh-top-left-holder {position:static!important;inset:auto!important;order:1!important;width:auto!important;margin:0!important;display:flex!important;justify-content:flex-start!important;}
html body #appShell .sef-room-picker-head {order:0!important;width:100%!important;margin:0!important;}
html body #appShell .sef-room-picker-head h3 {font-size:25px!important;line-height:1.6!important;margin:0!important;}
html body #appShell .sef-room-grid {order:2!important;width:100%!important;}
html body #appShell #recruitment_room_picker .sef-room-grid {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;}
html body #appShell .question-card {background:var(--sef-secondary)!important;border:1px solid var(--sef-border)!important;border-radius:16px!important;padding:24px!important;min-height:0!important;}
html body #appShell .option-label {background:var(--sef-card)!important;border-color:var(--sef-border)!important;color:var(--sef-text)!important;border-radius:12px!important;}
html body #appShell .option-label.sef-choice-selected,html body #appShell .option-label.sef-force-selected,html body #appShell input:checked+.option-label {background:var(--sef-navy)!important;border-color:var(--sef-primary)!important;}
@media(max-width:1000px){html body #appShell #workflowGrid {padding:0!important;}html body #sef_context_heading_fixed {position:relative!important;inset:auto!important;width:calc(100% - 32px)!important;max-height:none!important;margin:0 16px 24px!important;}}
@media(max-width:700px){html body #appShell #stepPanel{padding:18px!important;}html body #appShell #processRail button b{display:none!important;}html body #appShell #processRail{gap:6px!important;}html body #appShell #processRail button{min-height:46px!important;}html body #appShell #recruitment_room_picker .sef-room-grid{grid-template-columns:1fr!important;}}

html body #appShell #processRail{min-width:0!important;max-width:none!important;grid-auto-columns:auto!important;}
html body #appShell #processRail button{min-width:0!important;max-width:none!important;flex-basis:auto!important;}
html body #appShell #recruitment_room_picker select.sef-native-select{position:absolute!important;inset:auto!important;width:1px!important;height:1px!important;min-height:0!important;max-height:1px!important;min-width:0!important;padding:0!important;margin:0!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important;}
html body #appShell #recruitment_room_picker .sef-select-trigger{min-height:52px!important;height:auto!important;}
html body #appShell #recruitment_room_picker .sef-room-grid>div{min-height:0!important;height:auto!important;}

html:has(#appShell:not(.hidden)){overflow-y:auto!important;height:auto!important;min-height:100%!important;}
html body #appShell #processRail button{flex-direction:row!important;}
html body #appShell #processRail button b{max-width:none!important;white-space:nowrap!important;}
html body #appShell #processRail button:not(.is-active) b{display:inline!important;}
html body #sef_context_progress_fixed .sef-progress-stage.is-complete{border-color:var(--sef-primary)!important;background:var(--sef-navy)!important;color:var(--sef-light)!important;}
html body #sef_context_progress_fixed .sef-progress-stage::after,html body #sef_context_progress_fixed .sef-progress-stage.is-complete::after{background:var(--sef-primary)!important;}
html body #quiz-container .question-card{padding:20px!important;}
html body #quiz-container .option-label{min-height:48px!important;padding:12px 16px!important;}
html body #quiz-container .question-card h3{font-size:18px!important;line-height:1.7!important;}
html body #quiz-container .question-progress-fill{background:var(--sef-primary)!important;}
@media(max-width:700px){html body #appShell #processRail button:not(.is-active) b{display:none!important;}html body #appShell #processRail button b{display:none!important;}}

html body .canvas-shell::before,html body .canvas-shell::after,html body .stage::before,html body .stage::after{display:none!important;content:none!important;}
html body :is(.rooms-rail,.stage,.legacy-upload-card,.wizard-card){background:var(--sef-card)!important;border-color:var(--sef-border)!important;border-radius:18px!important;}
html body :is(.stage-branding,.rooms-rail-head){background:var(--sef-secondary)!important;border-color:var(--sef-border)!important;}
html body .legacy-drop{background:var(--sef-secondary)!important;border-color:var(--sef-primary)!important;border-radius:14px!important;}
html body .workspace:has(#missionCanvas){gap:18px!important;padding:24px 20px 44px!important;}
html body .canvas-upload.upload-v2{background:transparent!important;}
html body .legacy-upload-card{padding:24px!important;}
@media(max-width:900px){html body .workspace:has(#missionCanvas){padding:16px 12px 44px!important;}}

html body #appShell.console-shell{position:relative!important;inset:auto!important;transform:none!important;translate:none!important;width:100%!important;max-width:1440px!important;height:auto!important;min-height:0!important;overflow:visible!important;}
html body #appShell.console-shell.hidden{display:none!important;}
html body :is(#sef_console_top_brand,#sef_fixed_header_brand,#sef_static_page_brand){display:none!important;}
html body:has(#appShell:not(.hidden))>.sef-credit{position:static!important;margin:8px 0!important;}
html body #sef_context_heading_fixed{color:var(--sef-text)!important;}

html body #appShell.console-shell,html body #appShell #workflowGrid,html body #appShell #stepPanel {max-height:none!important;}
html body #appShell #workflowGrid {grid-template-rows:auto!important;}
html body #appShell #recruitment_room_picker .sef-room-grid {grid-template-areas:none!important;grid-auto-columns:auto!important;}
html body #appShell #recruitment_room_picker .sef-room-grid>div {grid-area:auto!important;grid-column:auto!important;grid-row:auto!important;min-width:0!important;width:auto!important;}
@media(max-width:700px){html body #appShell #recruitment_room_picker .sef-room-grid{grid-template-columns:minmax(0,1fr)!important;}html body #appShell #step1Content .grid:has(#current_unit){grid-template-columns:1fr!important;}}

html body:has(#appShell:not(.hidden)){height:auto!important;max-height:none!important;min-height:100vh!important;overflow-y:auto!important;}
html body #appShell.console-shell{flex:none!important;}
html body #sef_context_heading_fixed{flex:none!important;}
html{scrollbar-width:thin;scrollbar-color:var(--sef-navy) var(--sef-background);}

html body #sef_context_progress_fixed .sef-progress-fill,html body #sef_context_progress_fixed .sef-progress-stage.is-complete .sef-progress-fill{background:var(--sef-primary)!important;}

/* Room feedback participates in the form flow instead of overlaying the units. */
html body #appShell #recruitment_room_picker #sef_room_status {
  position:static!important;inset:auto!important;order:3!important;
  display:block!important;width:100%!important;min-height:0!important;height:auto!important;
  margin:0!important;padding:10px 14px!important;line-height:1.8!important;
  border:1px solid var(--sef-border)!important;border-radius:10px!important;
  background:var(--sef-secondary)!important;color:var(--sef-muted)!important;
  font-size:12px!important;font-weight:600!important;text-align:right!important;
  white-space:normal!important;overflow-wrap:anywhere!important;box-shadow:none!important;
}
html body #appShell #recruitment_room_picker #sef_room_status.hidden,
html body #appShell #recruitment_room_picker #sef_room_status:empty {display:none!important;}

/* Stacked portal cards and larger review fields. */
html body #modeSelector.entry-screen .entry-stage-dock.entry-system-dock{grid-template-columns:minmax(0,1fr)!important;gap:16px!important;}
html body #modeSelector.entry-screen .entry-system-choice{min-height:120px!important;padding:28px!important;background:linear-gradient(120deg,#151515,#1E1E1E)!important;}
html body #modeSelector.entry-screen .entry-system-choice span{font-size:20px!important;}
html body #modeSelector.entry-screen .entry-system-choice b{width:52px!important;height:52px!important;flex-basis:52px!important;font-size:18px!important;}
html body #modeSelector.entry-screen .entry-system-choice:hover:not(:disabled){background:linear-gradient(120deg,#1E1E1E,#8F681A)!important;}
html body #appShell #step4Content #sef_confirm_grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px!important;width:100%!important;}
html body #appShell #step4Content .sef-confirm-panel{background:transparent!important;padding:0!important;}
html body #appShell #step4Content .sef-confirm-head{margin-bottom:24px!important;}
html body #appShell #step4Content .sef-confirm-head h3{font-size:22px!important;line-height:1.8!important;}
html body #appShell #step4Content .sef-confirm-item{display:flex!important;flex-direction:column!important;gap:10px!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;min-width:0!important;}
html body #appShell #step4Content .sef-confirm-item small{font-size:14px!important;font-weight:700!important;color:var(--sef-muted)!important;}
html body #appShell #step4Content .sef-confirm-item input{width:100%!important;min-height:64px!important;padding:16px 20px!important;font-size:17px!important;border-radius:14px!important;background:linear-gradient(125deg,#121212,#1B1B1B)!important;}
html body #appShell #step4Content .sef-confirm-item:has([data-source="discord_id"]){order:0;grid-column:1/-1;}
html body #appShell #step4Content .sef-confirm-item:has([data-source="applicant_name"]){order:1;}
html body #appShell #step4Content .sef-confirm-item:has([data-source="game_id"]){order:2;}
html body #appShell #step4Content .sef-confirm-item:has([data-source="soldier_code"]){order:3;}
html body #appShell #step4Content .sef-confirm-item:has([data-source="officer_admission"]){order:4;}
html body #appShell #sef_confirm_data_action,html body #appShell #step4Content button[onclick="generateOutputs()"],html body #appShell button[onclick*="nextQuestion"],html body .btn-submit{background:linear-gradient(110deg,#8F681A,#8F681A)!important;border:1px solid #E8D9AC66!important;min-height:52px!important;border-radius:12px!important;color:#eef5ff!important;}
html body #appShell #sef_confirm_data_action:hover,html body .btn-submit:hover{background:linear-gradient(110deg,#8F681A,#8F681A)!important;}
html body #appShell #stepPanel{background:linear-gradient(140deg,#151515,#171717)!important;}

/* Shared footer lives in document flow, beneath every system. */
html:has(.sef-site-footer),html body:has(.sef-site-footer){height:auto!important;max-height:none!important;min-height:100vh!important;overflow-y:auto!important;}
html body:has(.sef-site-footer){display:flex!important;flex-direction:column!important;align-items:stretch!important;}
html body .sef-site-footer{position:relative!important;inset:auto!important;transform:none!important;flex:none!important;order:100!important;width:100%!important;margin:48px 0 0!important;padding:44px max(24px,calc((100% - 1180px)/2)) 22px!important;border-top:1px solid var(--sef-border)!important;background:linear-gradient(145deg,#121212,#151515)!important;color:var(--sef-muted)!important;box-sizing:border-box!important;direction:rtl;}
.sef-footer-content{display:grid;grid-template-columns:1.5fr .75fr 1fr;gap:40px;}
.sef-footer-brand{display:flex;align-items:center;gap:16px;}
.sef-footer-brand img{width:66px;height:66px;object-fit:contain;flex:none;}
.sef-footer-brand>div{display:grid;gap:4px;}
html body .sef-footer-brand h2{margin:0;font-size:20px;color:var(--sef-text);}
.sef-footer-brand span{font-size:9px;letter-spacing:1.5px;color:var(--sef-light);}
.sef-footer-brand small{font-size:12px;color:var(--sef-muted);}
html body .sef-site-footer h3{font-size:14px;margin:4px 0 18px;color:var(--sef-light);}
html body .sef-site-footer p{font-size:13px;line-height:2.1;margin:16px 0 0;color:var(--sef-muted);}
.sef-footer-links{display:flex;flex-direction:column;align-items:flex-start;gap:10px;}
.sef-footer-links a{color:var(--sef-muted);text-decoration:none;font-size:13px;transition:color .2s,translate .2s;}
.sef-footer-links a:hover{color:var(--sef-light);translate:-3px 0;}
.sef-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:32px;padding-top:22px;border-top:1px solid var(--sef-border);}
.sef-footer-bottom>div:first-child{display:grid;gap:5px;}
.sef-footer-bottom b{font-size:12px;font-weight:600;}
.sef-footer-bottom>div:first-child>span{font-size:11px;opacity:.75;}
html body .sef-site-footer .sef-credit{position:static!important;inset:auto!important;width:auto!important;margin:0!important;padding:13px 18px!important;border:1px solid var(--sef-border);border-radius:12px;background:linear-gradient(110deg,#151515,#1E1E1E);font-size:12px!important;flex:none!important;}
html body .sef-site-footer .sef-credit strong{font-size:14px;color:var(--sef-light)!important;}
html body .sef-site-footer .sef-credit a{border-color:var(--sef-primary);}
html body .workspace:has(#missionCanvas){flex:none!important;height:calc(100dvh - 64px)!important;min-height:0!important;grid-template-rows:minmax(0,1fr)!important;}
html body .workspace:has(#missionCanvas) .canvas-upload{justify-content:center!important;padding:0 16px!important;}
@media(max-width:900px){html body .workspace:has(#missionCanvas){height:auto!important;min-height:0!important;}}
@media(max-width:850px){.sef-footer-content{grid-template-columns:1fr 1fr;gap:26px;}.sef-footer-about{grid-column:1/-1;}.sef-footer-bottom{align-items:flex-start;flex-direction:column;}}
@media(max-width:600px){html body #appShell #step4Content #sef_confirm_grid{grid-template-columns:1fr!important;gap:18px!important;}html body #appShell #step4Content .sef-confirm-item{grid-column:auto!important;}html body #modeSelector.entry-screen .entry-system-choice{min-height:100px!important;padding:20px!important;}html body #modeSelector.entry-screen .entry-system-choice span{font-size:17px!important;}.sef-footer-content{grid-template-columns:1fr;}.sef-footer-about{grid-column:auto;}html body .sef-site-footer{padding:32px 20px 20px!important;margin-top:30px!important;}html body .sef-site-footer .sef-credit{width:100%!important;}}

html body .sef-site-footer .sef-footer-brand h2{font-size:20px!important;font-weight:800!important;line-height:1.7!important;margin:0!important;}
html body .sef-site-footer h3{font-size:14px!important;font-weight:700!important;line-height:1.8!important;margin:4px 0 18px!important;}
html body .sef-site-footer p{font-size:13px!important;font-weight:400!important;line-height:2.1!important;margin:16px 0 0!important;}
html body .sef-site-footer .sef-footer-brand span{font-size:9px!important;line-height:1.8!important;}
html body .sef-site-footer .sef-footer-brand small{font-size:12px!important;line-height:1.8!important;}
html body .sef-site-footer .sef-footer-links a{font-size:13px!important;line-height:1.8!important;}
html body .sef-site-footer .sef-footer-bottom b{font-size:12px!important;line-height:1.8!important;}

html body #modeSelector.entry-screen{flex:none!important;max-height:none!important;}
html body .main-layout,html body .access-shell,html body .view{flex-shrink:0!important;}

/* Use one document scrollbar; the old nested body scroller trapped wheel events. */
html:has(.sef-site-footer){overflow-x:clip!important;overflow-y:auto!important;overscroll-behavior:auto!important;height:auto!important;max-height:none!important;}
html body:has(.sef-site-footer){overflow-x:clip!important;overflow-y:visible!important;overscroll-behavior:auto!important;height:auto!important;max-height:none!important;}
html body #modeSelector.entry-screen{width:min(1080px,calc(100% - 48px))!important;gap:24px!important;}
html body #modeSelector.entry-screen .entry-stage-dock.entry-system-dock{gap:12px!important;}
html body #modeSelector.entry-screen .entry-system-choice{min-height:96px!important;padding:20px 24px!important;border-radius:16px!important;}
html body #modeSelector.entry-screen .entry-system-choice span{font-size:18px!important;}
html body #modeSelector.entry-screen .entry-system-choice b{width:44px!important;height:44px!important;flex-basis:44px!important;font-size:16px!important;}
html body .sef-site-footer{margin-top:72px!important;padding:28px max(24px,calc((100% - 1080px)/2)) 18px!important;}
.sef-footer-content{gap:28px;}
html body .sef-site-footer .sef-footer-brand h2{font-size:18px!important;}
html body .sef-site-footer .sef-footer-brand img{width:52px!important;height:52px!important;}
html body .sef-site-footer h3{font-size:13px!important;margin-bottom:12px!important;}
html body .sef-site-footer p{font-size:12px!important;line-height:1.9!important;margin-top:12px!important;}
html body .sef-site-footer .sef-footer-links a{font-size:12px!important;}
.sef-footer-bottom{margin-top:22px;padding-top:16px;}
html body .sef-site-footer .sef-credit{padding:10px 14px!important;font-size:11px!important;}
html body .sef-site-footer .sef-credit strong{font-size:13px!important;}
@media(min-width:1001px){html body #appShell.console-shell:not(.hidden){min-height:calc(100vh - 80px)!important;}}
@media(max-width:600px){html body #modeSelector.entry-screen{width:calc(100% - 32px)!important;}html body #modeSelector.entry-screen .entry-system-choice{min-height:84px!important;padding:18px!important;}html body .sef-site-footer{margin-top:44px!important;padding:24px 20px 18px!important;}}

html body:has(#modeSelector.entry-screen:not(.hidden)),
html body:has(#appShell:not(.hidden)){overflow:visible!important;overscroll-behavior:auto!important;}
html:has(#modeSelector.entry-screen:not(.hidden)),
html:has(#appShell:not(.hidden)){overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:auto!important;}

/* Full-width dark brand bar, fixed while scrolling the landing page. */
html body #modeSelector.entry-screen {padding-top:112px!important;}
html body #modeSelector.entry-screen .entry-brand {
  position:fixed!important;inset:0 0 auto 0!important;z-index:1000!important;
  width:100%!important;max-width:none!important;height:80px!important;min-height:80px!important;
  box-sizing:border-box!important;padding:12px max(24px,calc((100vw - 1080px)/2))!important;
  margin:0!important;border:0!important;border-bottom:1px solid rgba(232,217,172,.15)!important;
  border-radius:0!important;background:linear-gradient(110deg,#0F0F0F,#121212)!important;
  box-shadow:0 8px 22px rgba(0,0,0,.16)!important;
  display:flex!important;justify-content:flex-start!important;align-items:center!important;
  transform:none!important;translate:none!important;
}
html body #modeSelector.entry-screen .entry-brand img {width:48px!important;height:48px!important;}
html body #modeSelector.entry-screen .entry-brand small {font-size:17px!important;}
html body #modeSelector.entry-screen .entry-brand span {font-size:10px!important;letter-spacing:1.5px!important;}
html body #recruitmentSystemTopbar,html body .site-header {background:#121212!important;border-radius:0!important;}
@media(max-width:700px){
 html body #modeSelector.entry-screen {padding-top:100px!important;}
 html body #modeSelector.entry-screen .entry-brand {height:72px!important;min-height:72px!important;padding:10px 16px!important;gap:12px!important;}
 html body #modeSelector.entry-screen .entry-brand img {width:42px!important;height:42px!important;}
 html body #modeSelector.entry-screen .entry-brand small {font-size:14px!important;}
 html body #modeSelector.entry-screen .entry-brand span {font-size:8px!important;letter-spacing:1px!important;}
}

/* Internal affairs keeps a centered workspace and only essential footer information. */
html body.sef-affairs-page{padding:0!important;min-height:100vh!important;}
html body.sef-affairs-page .main-layout{width:100%!important;max-width:none!important;margin:0!important;min-height:calc(100vh - 96px)!important;display:flex!important;justify-content:center!important;align-items:center!important;padding:56px 20px 32px!important;box-sizing:border-box!important;}
html body.sef-affairs-page .main-layout>.container{width:min(620px,100%)!important;max-width:620px!important;margin:0 auto!important;flex:none!important;}
html body.sef-affairs-page .access-shell{margin:40px auto!important;flex:1!important;display:grid;place-items:center;}
html body .sef-site-footer.sef-footer-compact{margin:0!important;padding:14px max(20px,calc((100% - 1080px)/2))!important;background:#121212!important;}
html body .sef-footer-compact .sef-footer-bottom{margin:0!important;padding:0!important;border:0!important;gap:16px;}
html body .sef-footer-compact .sef-footer-bottom b{font-size:11px!important;font-weight:500!important;}
html body .sef-footer-compact .sef-credit{padding:7px 10px!important;font-size:10px!important;background:transparent!important;border:0!important;gap:7px!important;}
html body .sef-footer-compact .sef-credit strong{font-size:12px!important;}
@media(max-width:600px){html body.sef-affairs-page .main-layout{padding:66px 16px 26px!important;}.sef-footer-compact .sef-footer-bottom{align-items:center!important;gap:8px!important;}html body .sef-footer-compact .sef-credit{width:auto!important;}}

/* The acceptance summary belongs to the workflow, so it cannot drift over the footer. */
html body #appShell.console-shell:not(.hidden){min-height:0!important;}
html body #appShell #workflowGrid{grid-template-columns:264px minmax(0,1fr)!important;direction:rtl!important;padding:0!important;align-items:start!important;gap:22px!important;}
html body #appShell #stepPanel{grid-column:2!important;grid-row:1!important;isolation:isolate!important;}
html body #appShell #sef_context_heading_fixed{grid-column:1!important;grid-row:1!important;position:sticky!important;inset:auto!important;top:100px!important;width:100%!important;max-height:calc(100vh - 124px)!important;align-self:start!important;margin:0!important;}
html body #appShell #stepPanel::before{
 content:'PS'!important;display:block!important;visibility:visible!important;
 position:absolute!important;inset:0!important;transform:none!important;
 width:100%!important;height:100%!important;display:grid!important;place-items:center!important;
 font-family:Arial,sans-serif!important;font-size:clamp(140px,24vw,360px)!important;
 font-weight:900!important;letter-spacing:-.045em!important;line-height:1!important;
 color:rgba(238,245,255,.028)!important;pointer-events:none!important;z-index:-1!important;
}
html body:has(#appShell:not(.hidden)) .sef-site-footer{margin-top:28px!important;padding-bottom:26px!important;}
html body:has(#appShell:not(.hidden)) .sef-footer-bottom{margin-top:14px!important;padding-top:12px!important;}
@media(max-width:1000px){
 html body #appShell #workflowGrid{grid-template-columns:minmax(0,1fr)!important;}
 html body #appShell #stepPanel{grid-column:1!important;grid-row:1!important;}
 html body #appShell #sef_context_heading_fixed{grid-column:1!important;grid-row:2!important;position:static!important;inset:auto!important;max-height:none!important;width:100%!important;}
 html body #appShell #stepPanel::before{font-size:clamp(110px,35vw,260px)!important;}
}

html body #appShell #sef_inline_watermark_slot{display:none!important;}
.sef-new-recruitment{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:22px;padding:18px 22px;border:1px solid var(--sef-border);border-radius:14px;background:var(--sef-secondary);}
body:not(.sef-mode-recruitment) .sef-new-recruitment{display:none!important;}
.sef-new-recruitment strong{font-size:15px;color:var(--sef-text);}
.sef-new-recruitment p,.sef-restart-dialog p{font-size:13px;color:var(--sef-muted);line-height:1.9;margin:6px 0 0;}
.sef-new-recruitment button,.sef-restart-dialog button{padding:12px 20px;border:1px solid var(--sef-border);border-radius:10px;background:var(--sef-button);color:var(--sef-text);font:700 13px Cairo,sans-serif;cursor:pointer;white-space:nowrap;}
.sef-restart-dialog{width:min(520px,calc(100% - 32px));padding:28px;background:var(--sef-card);color:var(--sef-text);border:1px solid var(--sef-border);border-radius:18px;}
.sef-restart-dialog::backdrop{background:rgba(32,31,29,.8);}
.sef-restart-dialog h2{font-size:22px;margin:0 0 12px;}
.sef-restart-dialog>div{display:flex;gap:12px;margin-top:24px;}
.sef-restart-dialog [data-cancel]{background:var(--sef-secondary);}
html body dialog.sef-restart-dialog{width:min(520px,calc(100% - 32px))!important;max-height:90vh!important;height:auto!important;margin:auto!important;padding:28px!important;overflow:auto!important;background:var(--sef-card)!important;border:1px solid var(--sef-border)!important;border-radius:18px!important;}
html body dialog.sef-restart-dialog{min-height:0!important;height:max-content!important;position:fixed!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;margin:0!important;}
html body dialog.sef-restart-dialog h2{font-size:22px!important;line-height:1.7!important;margin:0 0 12px!important;}
html body dialog.sef-restart-dialog p{font-size:13px!important;color:var(--sef-muted)!important;line-height:1.9!important;}
html body dialog.sef-restart-dialog>div{display:flex!important;gap:12px!important;margin-top:24px!important;}
html body :is(.sef-new-recruitment,.sef-restart-dialog) button{padding:12px 20px!important;min-height:44px!important;width:auto!important;border:1px solid var(--sef-border)!important;border-radius:10px!important;background:var(--sef-button)!important;color:var(--sef-text)!important;font:700 13px Cairo,sans-serif!important;}
html body .sef-new-recruitment{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;margin-top:22px!important;padding:18px 22px!important;border:1px solid var(--sef-border)!important;border-radius:14px!important;background:var(--sef-secondary)!important;}
html body:not(.sef-mode-recruitment) .sef-new-recruitment{display:none!important;}
@media(max-width:600px){.sef-new-recruitment{flex-direction:column;align-items:stretch;}.sef-restart-dialog>div{flex-direction:column;}}

/* Reserve the same space across questions and keep the footer last. */
html body:has(#appShell:not(.hidden)){display:flex!important;flex-direction:column!important;min-height:100vh!important;}
html body #appShell.console-shell:not(.hidden){min-height:calc(100vh - 150px)!important;}
html body #appShell #stepPanel{min-height:700px!important;}
html body #appShell #quiz-container{display:flex!important;flex-direction:column!important;gap:16px!important;min-height:490px!important;}
html body #appShell #quiz-container .question-card.is-question-active{min-height:350px!important;flex:1!important;margin:0!important;}
html body #appShell #quiz-container .question-card h3{min-height:66px!important;margin:0 0 20px!important;}
html body #appShell #quiz-container .question-console-controls{margin-top:auto!important;flex-shrink:0!important;}
html body:has(#appShell:not(.hidden)) .sef-site-footer{margin-top:auto!important;flex-shrink:0!important;}
@media(max-width:700px){html body #appShell #stepPanel{min-height:620px!important;}html body #appShell #quiz-container{min-height:480px!important;}html body #appShell #quiz-container .question-card h3{min-height:96px!important;}}

/* Compact identity and credits leave the working area in focus. */
html body:has(#appShell:not(.hidden)) .sef-site-footer:not(.sef-footer-compact){padding:18px max(24px,calc((100% - 1360px)/2))!important;}
html body:has(#appShell:not(.hidden)) .sef-site-footer .sef-footer-content{display:block!important;}
html body:has(#appShell:not(.hidden)) .sef-site-footer .sef-footer-about{display:flex;align-items:center;justify-content:space-between;gap:24px;}
html body:has(#appShell:not(.hidden)) .sef-site-footer .sef-footer-brand img{width:36px!important;height:36px!important;}
html body:has(#appShell:not(.hidden)) .sef-site-footer .sef-footer-brand h2{font-size:14px!important;}
html body:has(#appShell:not(.hidden)) .sef-site-footer .sef-footer-brand span{display:none!important;}
html body:has(#appShell:not(.hidden)) .sef-site-footer .sef-footer-brand small{font-size:10px!important;}
html body:has(#appShell:not(.hidden)) .sef-site-footer p{margin:0!important;font-size:11px!important;}
html body:has(#appShell:not(.hidden)) .sef-site-footer:not(.sef-footer-compact) .sef-footer-bottom{margin-top:12px!important;padding-top:10px!important;}
html body:has(#appShell:not(.hidden)) .sef-site-footer .sef-credit{padding:6px 10px!important;font-size:10px!important;}
html body:has(#appShell:not(.hidden)) .sef-site-footer .sef-credit strong{font-size:12px!important;}
html body:has(#appShell:not(.hidden)) .sef-site-footer{margin-top:auto!important;padding-bottom:18px!important;}
@media(min-width:1001px){html body #appShell.console-shell{max-width:1520px!important;}html body #appShell #stepPanel{min-height:700px!important;}}
html body:has(#appShell:not(.hidden)) .sef-footer-links,html body:has(#appShell:not(.hidden)) .sef-footer-guide{display:none!important;}
.sef-affairs-header{position:fixed;inset:0 0 auto;z-index:90;height:80px;display:flex;align-items:center;padding:0 4%;background:#121212;border-bottom:1px solid var(--sef-border);}
.sef-affairs-brand{display:flex;align-items:center;gap:14px;}
.sef-affairs-brand img{width:48px;height:48px;object-fit:contain;}
.sef-affairs-brand div{display:grid;gap:4px;}
.sef-affairs-brand strong{font-size:18px;color:var(--sef-text);}
.sef-affairs-brand small{font-size:9px;letter-spacing:1.5px;color:var(--sef-light);}
html body.sef-affairs-page .main-layout{padding-top:104px!important;min-height:calc(100vh - 60px)!important;}
@media(max-width:600px){html body:has(#appShell:not(.hidden)) .sef-site-footer .sef-footer-about{align-items:flex-start;flex-direction:column;gap:10px;}html body:has(#appShell:not(.hidden)) .sef-site-footer:not(.sef-footer-compact){padding:16px 20px!important;}.sef-affairs-header{height:72px;}.sef-affairs-brand strong{font-size:16px;}}

/* Clear sector identity and readable credits inside the systems. */
html body:has(#appShell:not(.hidden)) .sef-site-footer{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important;min-height:112px!important;padding:24px max(28px,calc((100% - 1440px)/2))!important;}
html body:has(#appShell:not(.hidden)) .sef-site-footer .sef-footer-brand img{width:58px!important;height:58px!important;}
html body:has(#appShell:not(.hidden)) .sef-site-footer .sef-footer-brand h2{font-size:21px!important;}
html body:has(#appShell:not(.hidden)) .sef-site-footer .sef-footer-brand small{font-size:12px!important;}
html body:has(#appShell:not(.hidden)) .sef-site-footer .sef-footer-about>p,html body:has(#appShell:not(.hidden)) .sef-site-footer .sef-footer-bottom>div:first-child{display:none!important;}
html body:has(#appShell:not(.hidden)) .sef-site-footer .sef-footer-bottom{margin:0!important;padding:0!important;border:0!important;}
html body:has(#appShell:not(.hidden)) .sef-site-footer .sef-credit{font-size:13px!important;padding:12px 18px!important;border-radius:12px!important;}
html body:has(#appShell:not(.hidden)) .sef-site-footer .sef-credit strong{font-size:16px!important;}
@media(max-width:650px){html body:has(#appShell:not(.hidden)) .sef-site-footer{flex-direction:column!important;gap:16px!important;}html body:has(#appShell:not(.hidden)) .sef-site-footer .sef-footer-brand h2{font-size:18px!important;}html body:has(#appShell:not(.hidden)) .sef-site-footer .sef-credit{font-size:12px!important;}}
/* Compact step navigation with an explicit label for every stage. */
html body #appShell #processRail{gap:8px!important;padding:10px!important;border:1px solid var(--sef-border)!important;border-radius:18px!important;background:rgba(32,31,29,.78)!important;overflow:visible!important;}
html body #appShell #processRail button{min-height:66px!important;height:66px!important;padding:10px 16px!important;justify-content:flex-start!important;gap:12px!important;border:1px solid transparent!important;border-radius:12px!important;background:transparent!important;box-shadow:none!important;transition:background .2s,border-color .2s!important;}
html body #appShell #processRail button>span{display:grid!important;place-items:center!important;width:36px!important;height:36px!important;flex:0 0 36px!important;border-radius:50%!important;background:#1E1E1E!important;color:#E8D9AC!important;font-size:13px!important;font-weight:800!important;}
html body #appShell #processRail button>b{display:block!important;opacity:1!important;visibility:visible!important;width:auto!important;max-width:none!important;height:auto!important;color:#E8D9AC!important;font-size:13px!important;line-height:1.5!important;white-space:normal!important;}
html body #appShell #processRail button.is-active{background:linear-gradient(125deg,#141414,#242424)!important;border-color:rgba(232,217,172,.5)!important;}
html body #appShell #processRail button.is-active>span{background:#8F681A!important;color:#eef5ff!important;box-shadow:0 0 0 4px rgba(201,151,40,.14)!important;}
html body #appShell #processRail button.is-active>b{color:#eef5ff!important;}
html body #appShell #processRail button:hover{background:#151515!important;border-color:var(--sef-border)!important;}
@media(max-width:700px){html body #appShell #processRail{padding:6px!important;gap:4px!important;}html body #appShell #processRail button{flex-direction:column!important;justify-content:center!important;padding:8px 3px!important;min-height:86px!important;height:auto!important;gap:8px!important;}html body #appShell #processRail button>b{font-size:10px!important;}html body #appShell #processRail button>span{width:28px!important;height:28px!important;flex-basis:28px!important;font-size:11px!important;}}
.sef-affairs-brand{text-decoration:none!important;border-radius:8px;}.sef-affairs-brand:focus-visible{outline:2px solid var(--sef-light);outline-offset:8px;}
html body #modeSelector .sef-ministry-guide{display:flex!important;align-items:center!important;gap:12px!important;margin-inline-start:auto!important;padding:8px 12px!important;width:auto!important;height:auto!important;background:transparent!important;border:0!important;opacity:1!important;text-align:right!important;cursor:default!important;}
html body #modeSelector .sef-ministry-guide>span{font-size:15px!important;font-weight:800!important;letter-spacing:0!important;color:#eef5ff!important;}
html body #modeSelector .sef-ministry-guide small{display:block!important;font-size:10px!important;font-weight:500!important;color:#E8D9AC!important;margin-top:4px!important;}
html body #modeSelector .sef-ministry-guide img{width:44px!important;height:44px!important;object-fit:contain!important;}
html body #modeSelector .sef-achievements{position:relative!important;inset:auto!important;grid-column:1/-1!important;display:block!important;width:100%!important;margin:64px 0 0!important;padding:0!important;}
html body #modeSelector .sef-achievements-heading{margin-bottom:26px!important;}
html body #modeSelector .sef-achievements-heading>span{color:#c8aa65!important;font-size:12px!important;font-weight:700!important;}
html body #modeSelector .sef-achievements-heading h2{font-size:clamp(22px,2.5vw,30px)!important;line-height:1.8!important;color:#eef5ff!important;margin:8px 0!important;}
html body #modeSelector .sef-achievements-heading p{font-size:13px!important;color:#E8D9AC!important;margin:0!important;}
html body #modeSelector .sef-achievements-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;}
html body #modeSelector .sef-achievement-card{position:relative!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;min-height:300px!important;padding:28px!important;border:1px solid rgba(232,200,106,.25)!important;border-radius:20px!important;background:linear-gradient(135deg,#151515,#171717)!important;overflow:hidden!important;transition:transform .25s,border-color .25s!important;}
html body #modeSelector .sef-achievement-card:hover{transform:translateY(-4px)!important;border-color:rgba(200,170,101,.5)!important;}
html body #modeSelector .sef-achievement-category{font-size:12px!important;color:#c8aa65!important;font-weight:800!important;}
html body #modeSelector .sef-achievement-number{font-size:52px!important;line-height:1.3!important;color:#c8aa65!important;font-weight:900!important;margin:22px 0 12px!important;}
html body #modeSelector .sef-achievement-symbol{font-size:44px!important;line-height:1.3!important;color:#c8aa65!important;margin:22px 0 12px!important;}
html body #modeSelector .sef-achievement-card h3{font-size:18px!important;line-height:1.8!important;color:#eef5ff!important;margin:0 0 10px!important;}
html body #modeSelector .sef-achievement-card p{font-size:13px!important;line-height:1.9!important;color:#E8D9AC!important;margin:0 0 20px!important;}
html body #modeSelector .sef-achievement-index{margin-top:auto!important;align-self:flex-end!important;color:#8F681A!important;font-size:11px!important;}
@media(max-width:900px){html body #modeSelector .sef-achievements-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:600px){html body #modeSelector .sef-achievements-grid{grid-template-columns:1fr!important;}html body #modeSelector .sef-achievement-card{min-height:270px!important;padding:24px!important;}html body #modeSelector .sef-ministry-guide{gap:6px!important;padding:0!important;}html body #modeSelector .sef-ministry-guide>span{font-size:12px!important;}html body #modeSelector .sef-ministry-guide img{width:32px!important;height:32px!important;}html body #modeSelector .sef-ministry-guide small{font-size:8px!important;}}
html body #modeSelector.entry-screen .entry-brand .sef-ministry-guide{position:absolute!important;left:max(24px,calc((100vw - 1080px)/2))!important;right:auto!important;direction:rtl!important;margin:0!important;}
html body #modeSelector.entry-screen .entry-brand .sef-ministry-guide>span{font-size:15px!important;letter-spacing:0!important;font-weight:800!important;}
html body #modeSelector.entry-screen .entry-brand .sef-ministry-guide small{font-size:10px!important;font-weight:500!important;}
html body #modeSelector .sef-achievements-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;}
html body #modeSelector .sef-achievement-card{grid-column:span 2!important;}
html body #modeSelector .sef-achievement-card:nth-child(n+4){grid-column:span 3!important;}
@media(max-width:900px){html body #modeSelector .sef-achievements-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}html body #modeSelector .sef-achievement-card,html body #modeSelector .sef-achievement-card:nth-child(n+4){grid-column:auto!important;}}
@media(max-width:600px){html body #modeSelector .sef-achievements-grid{grid-template-columns:1fr!important;}html body #modeSelector.entry-screen .entry-brand .sef-ministry-guide{left:16px!important;}html body #modeSelector.entry-screen .entry-brand .sef-ministry-guide>span{font-size:11px!important;}html body #modeSelector.entry-screen .entry-brand .sef-ministry-guide small{font-size:8px!important;}}
html body #modeSelector.entry-screen .entry-brand a.sef-ministry-guide{cursor:pointer!important;text-decoration:none!important;border-radius:10px!important;}html body #modeSelector.entry-screen .entry-brand a.sef-ministry-guide:hover{background:rgba(201,151,40,.1)!important;}html body #modeSelector.entry-screen .entry-brand a.sef-ministry-guide:focus-visible{outline:2px solid #E8D9AC!important;outline-offset:4px!important;}
html body #modeSelector.entry-screen .entry-brand a.sef-ministry-guide{gap:14px!important;background:transparent!important;padding:8px 10px!important;transition:filter .2s!important;}
html body #modeSelector.entry-screen .entry-brand .sef-ministry-brand-text{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:3px!important;}
html body #modeSelector.entry-screen .entry-brand .sef-ministry-brand-text span{font-family:Cairo,sans-serif!important;font-size:10px!important;letter-spacing:1.5px!important;font-weight:800!important;color:#E8D9AC!important;line-height:1.5!important;}
html body #modeSelector.entry-screen .entry-brand .sef-ministry-brand-text small{font-family:'Noto Kufi Arabic',Cairo,sans-serif!important;font-size:17px!important;font-weight:900!important;color:#eef5ff!important;line-height:1.7!important;margin:0!important;}
html body #modeSelector.entry-screen .entry-brand a.sef-ministry-guide:hover{background:transparent!important;filter:brightness(1.18)!important;}
html body #modeSelector.entry-screen .entry-brand a.sef-ministry-guide:hover img{filter:drop-shadow(0 0 7px rgba(201,151,40,.3))!important;}
html body #modeSelector.entry-screen .entry-brand a.sef-ministry-guide:focus-visible{outline:2px solid #8F681A!important;outline-offset:4px!important;}
@media(max-width:600px){html body #modeSelector.entry-screen .entry-brand a.sef-ministry-guide{gap:7px!important;padding:3px 0!important;}html body #modeSelector.entry-screen .entry-brand .sef-ministry-brand-text span{font-size:7px!important;letter-spacing:.5px!important;}html body #modeSelector.entry-screen .entry-brand .sef-ministry-brand-text small{font-size:12px!important;}}
/* Align the room form without stretching the first step to quiz height. */
html body #appShell #stepPanel:has(#step1Content:not(.hidden)){min-height:420px!important;padding:28px!important;}
html body #appShell #step1Content{padding:0!important;}
html body #appShell #recruitment_room_picker{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:24px 20px!important;align-items:center!important;}
html body #appShell #recruitment_room_picker .sef-room-picker-head{grid-column:1!important;grid-row:1!important;display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:66px!important;}
html body #appShell #recruitment_room_picker .sef-room-picker-head h3{font-size:24px!important;line-height:1.6!important;}
html body #appShell #recruitment_room_picker .sef-room-picker-head p{display:block!important;color:#E8D9AC!important;font-size:12px!important;line-height:1.8!important;margin:6px 0 0!important;}
html body #appShell #recruitment_room_picker .sef-refresh-top-left-holder{grid-column:2!important;grid-row:1!important;align-self:center!important;}
html body #appShell #refresh_room_members{min-width:140px!important;min-height:42px!important;padding:9px 16px!important;font-size:12px!important;}
html body #appShell #recruitment_room_picker .sef-room-grid{grid-column:1/-1!important;grid-row:2!important;gap:18px!important;}
html body #appShell #recruitment_room_picker .sef-room-grid>div{display:flex!important;flex-direction:column!important;gap:9px!important;min-width:0!important;}
html body #appShell #recruitment_room_picker .sef-room-grid label{font-size:13px!important;margin:0!important;}
html body #appShell #recruitment_room_picker .sef-select-trigger{min-height:56px!important;height:56px!important;padding:12px 16px!important;font-size:14px!important;border-radius:12px!important;}
html body #appShell #sef_room_status{grid-column:1/-1!important;grid-row:3!important;}
html body #appShell #step1Content .grid:has(#current_unit){margin-top:26px!important;padding-top:22px!important;border-top:1px solid rgba(232,217,172,.15)!important;gap:18px!important;}
html body #appShell #step1Content :is(#current_unit,#next_unit){height:68px!important;min-height:68px!important;font-size:18px!important;border-radius:12px!important;}
html body #appShell #stepPanel:has(#step1Content:not(.hidden))::before{font-size:clamp(130px,20vw,280px)!important;color:rgba(238,245,255,.018)!important;}
@media(max-width:700px){html body #appShell #stepPanel:has(#step1Content:not(.hidden)){min-height:0!important;padding:20px!important;}html body #appShell #recruitment_room_picker{grid-template-columns:1fr!important;gap:18px!important;}html body #appShell #recruitment_room_picker .sef-refresh-top-left-holder{grid-column:1!important;grid-row:2!important;}html body #appShell #recruitment_room_picker .sef-room-grid{grid-row:3!important;grid-template-columns:1fr!important;}html body #appShell #sef_room_status{grid-row:4!important;}html body #appShell #recruitment_room_picker .sef-room-picker-head h3{font-size:21px!important;}}
html body #appShell #recruitment_room_picker{direction:rtl!important;}
html body #appShell #recruitment_room_picker #refresh_room_members{position:static!important;inset:auto!important;transform:none!important;translate:none!important;float:none!important;margin:0!important;}html body #appShell #recruitment_room_picker>.sef-refresh-top-left-holder:empty{display:none!important;}
}

/* Shared logo entrance. Dialog keeps keyboard focus inside the short intro. */
#sef-intro{position:fixed;inset:0;margin:0;padding:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;overflow:hidden;border:0;background:#121212;color:#edf5fa;z-index:2147483647;font-family:Cairo,Tahoma,sans-serif;opacity:1;transition:opacity .2s ease;box-sizing:border-box}
#sef-intro[open]{display:grid;place-items:center}
#sef-intro::backdrop{background:#121212}
#sef-intro.sef-intro-leaving{opacity:0;pointer-events:none}
#sef-intro .sef-intro-glow{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 43%,rgba(201,151,40,.18),transparent 48%),linear-gradient(135deg,#121212,#171717 50%,#121212)}
#sef-intro .sef-intro-content{position:relative;display:flex;align-items:center;flex-direction:column;text-align:center;padding:32px;max-width:100%}
#sef-intro .sef-intro-emblem{position:relative;width:210px;height:210px;display:grid;place-items:center;margin-bottom:26px;animation:sef-emblem-in .45s cubic-bezier(.16,1,.3,1) both}
#sef-intro .sef-intro-emblem img{width:138px;height:138px;object-fit:contain;filter:drop-shadow(0 8px 24px rgba(0,0,0,.35))}
#sef-intro .sef-intro-ring,#sef-intro .sef-intro-orbit{position:absolute;inset:0;border:1px solid rgba(232,217,172,.2);border-radius:50%;pointer-events:none}
#sef-intro .sef-intro-ring:after{content:'';position:absolute;inset:10px;border:1px solid rgba(232,217,172,.09);border-radius:50%}
#sef-intro .sef-intro-orbit{inset:-10px;border-color:transparent;border-top-color:#E8D9AC;border-bottom-color:rgba(232,217,172,.24);animation:sef-orbit-in .8s cubic-bezier(.2,.65,.3,1) both}
#sef-intro .sef-intro-kicker{font-size:10px;font-weight:700;letter-spacing:4px;color:#8F681A;animation:sef-word-in .35s .08s both}
#sef-intro h1{font-family:'Noto Kufi Arabic',Cairo,sans-serif!important;font-size:clamp(22px,4vw,34px)!important;color:#e4edf4!important;font-weight:800;line-height:1.9!important;letter-spacing:0!important;margin:12px 0 3px;animation:sef-word-in .4s .12s both}
#sef-intro p{font-size:13px;line-height:1.8;color:#8F681A;margin:16px 0 0;animation:sef-word-in .35s .2s both}
#sef-intro .sef-intro-line{display:block;width:56px;height:2px;background:#E8D9AC;margin-top:28px;transform-origin:center;animation:sef-line-in .4s .25s both}
.sef-enter{animation:sef-interface-in .65s cubic-bezier(.16,1,.3,1) var(--sef-enter-delay,0ms) backwards}
.sef-intro-active .sef-enter{animation-play-state:paused}
@keyframes sef-emblem-in{from{opacity:0;transform:scale(.76) translateY(16px)}to{opacity:1;transform:scale(1) translateY(0)}}
@keyframes sef-orbit-in{from{opacity:0;transform:rotate(-100deg) scale(.92)}to{opacity:1;transform:rotate(35deg) scale(1)}}
@keyframes sef-word-in{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}
@keyframes sef-line-in{from{opacity:0;transform:scaleX(0)}to{opacity:1;transform:scaleX(1)}}
@keyframes sef-interface-in{from{opacity:0;translate:0 14px}to{opacity:1;translate:0 0}}
@media(max-height:580px){#sef-intro .sef-intro-emblem{width:140px;height:140px;margin-bottom:14px}#sef-intro .sef-intro-emblem img{width:94px;height:94px}#sef-intro .sef-intro-line{margin-top:14px}#sef-intro h1{font-size:22px!important}}
@media(prefers-reduced-motion:reduce){#sef-intro{display:none!important}.sef-enter{animation:none!important}}

/* Portal hero: separate system cards on the left of the statement. */
@layer theme {
html body #modeSelector.entry-screen{width:min(1180px,calc(100% - 64px))!important;grid-template-columns:1.05fr 1fr!important;gap:64px 80px!important;padding-top:155px!important}
html body #modeSelector.entry-screen .entry-body{grid-column:1!important;grid-row:1!important;align-self:center!important;max-width:540px!important;padding:32px 0!important}
html body #modeSelector.entry-screen .entry-body:before{content:'بوابة الأنظمة الإلكترونية';display:block;color:#8F681A;font-size:12px;font-weight:700;margin-bottom:24px;letter-spacing:.5px}
html body #modeSelector.entry-screen .entry-body h1{font-size:clamp(29px,3.2vw,43px)!important;max-width:540px!important;line-height:1.85!important}
html body #modeSelector.entry-screen .entry-body p{color:#8F681A!important;font-size:11px!important;letter-spacing:1.5px!important;margin-top:26px!important}
html body #modeSelector.entry-screen .entry-stage-dock.entry-system-dock{grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column!important;gap:14px!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
html body #modeSelector.entry-screen .entry-system-choice{display:grid!important;grid-template-columns:46px minmax(0,1fr) 26px!important;grid-template-rows:auto auto!important;align-content:center!important;align-items:center!important;gap:5px 18px!important;min-height:112px!important;width:100%!important;padding:22px 24px!important;border:1px solid rgba(201,151,40,.25)!important;border-radius:17px!important;background:linear-gradient(115deg,#161616,#1C1C1C)!important;box-shadow:0 8px 24px rgba(0,0,0,.12)!important;text-align:right!important;overflow:visible!important;transition:background .25s,border-color .25s,box-shadow .25s!important}
html body #modeSelector.entry-screen .entry-system-choice:before{display:none!important}
html body #modeSelector.entry-screen .entry-system-choice b{display:none!important}
html body #modeSelector.entry-screen .entry-system-choice .entry-system-icon{display:block!important;grid-column:1!important;grid-row:1/3!important;width:30px!important;height:30px!important;margin:0!important;color:#E8D9AC!important;align-self:center!important}
html body #modeSelector.entry-screen .entry-system-choice>span{grid-column:2!important;grid-row:1!important;font-size:20px!important;line-height:1.7!important;color:#e8f1fa!important;font-weight:700!important;transition:color .25s}
html body #modeSelector.entry-screen .entry-system-choice .entry-system-description{display:block!important;grid-column:2!important;grid-row:2!important;font:400 11px/1.8 Cairo,sans-serif!important;color:#8F681A!important;margin:0!important;max-width:none!important;min-height:0!important}
html body #modeSelector.entry-screen .entry-system-choice .entry-system-open{display:none!important}
html body #modeSelector.entry-screen .entry-system-choice::after{content:'↖'!important;position:static!important;grid-column:3!important;grid-row:1/3!important;align-self:center!important;font-size:22px!important;color:#8F681A!important;opacity:.7!important;transition:translate .25s,color .25s}
html body #modeSelector.entry-screen .entry-system-choice:hover:not(:disabled){background:linear-gradient(115deg,#1A1A1A,#212121)!important;border-color:rgba(232,217,172,.6)!important;box-shadow:0 10px 28px rgba(0,0,0,.18)!important;translate:none!important}
html body #modeSelector.entry-screen .entry-system-choice:hover>span{color:#E8D9AC!important}
html body #modeSelector.entry-screen .entry-system-choice:hover::after{translate:-3px -3px;color:#E8D9AC!important}
html body #modeSelector.entry-screen .entry-system-choice:focus-visible{outline:2px solid #E8D9AC!important;outline-offset:4px!important}
html body #modeSelector.entry-screen #preparationEntryButton{display:none!important}
html body #modeSelector .sef-achievements{grid-column:1/-1!important;grid-row:2!important;margin:30px 0 0!important;padding-top:40px!important;border-top:1px solid rgba(232,217,172,.14)!important}
@media(max-width:900px){
 html body #modeSelector.entry-screen{width:calc(100% - 48px)!important;gap:36px 40px!important;grid-template-columns:1fr 1fr!important;padding-top:125px!important}
 html body #modeSelector.entry-screen .entry-body h1{font-size:30px!important}
 html body #modeSelector.entry-screen .entry-system-choice{gap:5px 10px!important;grid-template-columns:34px minmax(0,1fr) 20px!important;min-height:108px!important}
 html body #modeSelector.entry-screen .entry-system-choice>span{font-size:17px!important}
}
@media(max-width:650px){
 html body #modeSelector.entry-screen{width:calc(100% - 40px)!important;grid-template-columns:1fr!important;gap:24px!important;padding-top:110px!important}
 html body #modeSelector.entry-screen .entry-body{grid-column:1!important;grid-row:1!important;padding:20px 0 8px!important;max-width:none!important}
 html body #modeSelector.entry-screen .entry-body:before{font-size:10px;margin-bottom:16px}
 html body #modeSelector.entry-screen .entry-body h1{font-size:29px!important;line-height:1.7!important}
 html body #modeSelector.entry-screen .entry-body p{margin-top:16px!important}
 html body #modeSelector.entry-screen .entry-stage-dock.entry-system-dock{grid-column:1!important;grid-row:2!important}
 html body #modeSelector.entry-screen .entry-system-choice{min-height:104px!important;padding:20px 18px!important;gap:5px 12px!important}
 html body #modeSelector.entry-screen .entry-system-choice>span{font-size:18px!important}
 html body #modeSelector .sef-achievements{grid-row:3!important;margin-top:20px!important;padding-top:30px!important}
}
}

/* Floating navigation and a branded hero above the statement. */
@layer theme {
html{scroll-behavior:smooth;scroll-padding-top:130px}
html body #modeSelector.entry-screen{padding-top:150px!important;gap:54px 80px!important;direction:rtl!important}
html body #modeSelector.entry-screen .entry-brand.portal-nav{inset:18px auto auto 50%!important;transform:translateX(-50%)!important;translate:none!important;width:min(1240px,calc(100% - 48px))!important;height:82px!important;min-height:82px!important;padding:12px 22px!important;border:1px solid rgba(201,151,40,.24)!important;border-radius:20px!important;background:rgba(32,31,29,.95)!important;box-shadow:0 12px 40px rgba(0,0,0,.18)!important;backdrop-filter:blur(16px);justify-content:space-between!important;gap:20px!important;direction:rtl!important}
html body #modeSelector.entry-screen .portal-nav-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#e9f2fa;flex-shrink:0;border-radius:8px}
html body #modeSelector.entry-screen .portal-nav-brand img{width:46px!important;height:46px!important;object-fit:contain}
html body #modeSelector.entry-screen .portal-nav-brand div{display:flex;flex-direction:column;gap:4px}
html body #modeSelector.entry-screen .portal-nav-brand strong{font-family:'Noto Kufi Arabic',Cairo,sans-serif;font-size:14px;line-height:1.6;font-weight:800}
html body #modeSelector.entry-screen .portal-nav-brand small{font-family:Cairo,sans-serif!important;font-size:8px!important;line-height:1.5!important;color:#8F681A!important;font-weight:600!important;letter-spacing:1.2px!important}
html body #modeSelector.entry-screen .portal-nav-links{display:flex;align-items:center;gap:6px;padding:5px;border:1px solid rgba(201,151,40,.13);border-radius:12px;background:#191919}
html body #modeSelector.entry-screen .portal-nav-links a{display:block;padding:9px 15px;border-radius:8px;text-decoration:none;font:600 12px/1.5 Cairo,sans-serif;color:#E8D9AC;transition:background .2s,color .2s;white-space:nowrap}
html body #modeSelector.entry-screen .portal-nav-links a:hover{background:#212121;color:#eef6fc}
html body #modeSelector.entry-screen .portal-ministry-link{display:flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid #252525;border-radius:10px;text-decoration:none;font:600 11px/1.5 Cairo,sans-serif;color:#E8D9AC;white-space:nowrap}
html body #modeSelector.entry-screen .portal-ministry-link span{font-size:16px!important;color:#E8D9AC!important;letter-spacing:0!important}
html body #modeSelector.entry-screen .entry-body{padding:0!important;align-self:center!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:0!important}
html body #modeSelector.entry-screen .entry-body:before{display:none!important}
html body #modeSelector.entry-screen .portal-hero-kicker{display:flex;align-items:center;gap:9px;font:700 11px/1.8 Cairo,sans-serif;color:#E8D9AC;letter-spacing:.3px}
html body #modeSelector.entry-screen .portal-hero-kicker i{width:6px;height:6px;border-radius:50%;background:#E8D9AC;box-shadow:0 0 0 5px rgba(232,217,172,.07)}
html body #modeSelector.entry-screen .portal-hero-emblem{position:relative;display:grid;place-items:center;width:172px;height:172px;margin:22px 0 24px;isolation:isolate}
html body #modeSelector.entry-screen .portal-hero-emblem:before{content:'';position:absolute;inset:-26px;border-radius:50%;background:radial-gradient(circle,rgba(201,151,40,.14),transparent 68%);z-index:-1}
html body #modeSelector.entry-screen .portal-hero-emblem img{width:130px;height:130px;object-fit:contain;filter:drop-shadow(0 12px 20px rgba(0,0,0,.25));animation:portal-emblem-float 6s ease-in-out infinite}
html body #modeSelector.entry-screen .portal-emblem-orbit{position:absolute;inset:0;border:1px solid rgba(232,217,172,.17);border-radius:50%;animation:portal-orbit 24s linear infinite}
html body #modeSelector.entry-screen .portal-emblem-orbit:before{content:'';position:absolute;top:12px;left:24px;width:5px;height:5px;background:#E8D9AC;border-radius:50%;box-shadow:0 0 12px rgba(232,217,172,.35)}
html body #modeSelector.entry-screen .portal-emblem-orbit:after{content:'';position:absolute;inset:10px;border:1px dashed rgba(232,217,172,.09);border-radius:50%}
html body #modeSelector.entry-screen .entry-body h1{font-size:clamp(27px,2.7vw,37px)!important;line-height:1.8!important;font-weight:800!important;letter-spacing:0!important}
html body #modeSelector.entry-screen .entry-body p{margin-top:18px!important;font-size:10px!important;letter-spacing:1.6px!important}
html body #modeSelector.entry-screen #portalSystems{align-self:center!important;scroll-margin-top:145px}
html body #modeSelector.entry-screen #portalAchievements{scroll-margin-top:120px}
html body #modeSelector.entry-screen .portal-nav a:focus-visible{outline:2px solid #E8D9AC;outline-offset:4px}
@media(max-width:1000px){
 html body #modeSelector.entry-screen .entry-brand.portal-nav{padding:12px 16px!important;gap:12px!important}
 html body #modeSelector.entry-screen .portal-nav-brand strong{font-size:12px}
 html body #modeSelector.entry-screen .portal-nav-links a{padding:9px 10px;font-size:11px}
 html body #modeSelector.entry-screen .portal-ministry-link{font-size:10px;padding:9px 10px}
}
@media(max-width:760px){
 html body #modeSelector.entry-screen .entry-brand.portal-nav{inset:10px auto auto 50%!important;width:calc(100% - 24px)!important;min-height:106px!important;height:auto!important;display:grid!important;grid-template-columns:1fr auto!important;gap:10px!important;padding:12px 14px!important;border-radius:16px!important}
 html body #modeSelector.entry-screen .portal-nav-brand img{width:34px!important;height:34px!important}
 html body #modeSelector.entry-screen .portal-nav-brand strong{font-size:11px}
 html body #modeSelector.entry-screen .portal-nav-brand small{font-size:6px!important}
 html body #modeSelector.entry-screen .portal-nav-links{grid-column:1/-1;grid-row:2;justify-content:center;padding:2px;gap:12px}
 html body #modeSelector.entry-screen .portal-nav-links a{font-size:11px;padding:7px 10px}
 html body #modeSelector.entry-screen .portal-ministry-link{font-size:9px;padding:8px;border:0}
 html body #modeSelector.entry-screen{padding-top:152px!important;gap:40px!important}
 html body #modeSelector.entry-screen .portal-hero-emblem{width:146px;height:146px;margin:18px 0 22px}
 html body #modeSelector.entry-screen .portal-hero-emblem img{width:112px;height:112px}
}
@media(max-width:650px){
 html body #modeSelector.entry-screen .entry-body{align-items:center!important;text-align:center!important}
 html body #modeSelector.entry-screen .entry-body h1{font-size:28px!important;text-align:center!important}
 html body #modeSelector.entry-screen .portal-hero-kicker{font-size:10px}
 html body #modeSelector.entry-screen #portalAchievements{scroll-margin-top:140px}
}
@keyframes portal-emblem-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes portal-orbit{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.portal-hero-emblem img,.portal-emblem-orbit{animation:none!important}}
}

/* Hidden application panels must stay hidden even before utility CSS loads. */
@layer theme {
html body #appShell.hidden,
html body #modeSelector.entry-screen.hidden,
html body .hidden,
html body [hidden]:not([hidden="until-found"]){display:none!important}
}

@layer theme {
html body #modeSelector.entry-screen .entry-body p.entry-main-tagline{
 font-family:'Cinzel',Georgia,serif!important;
 font-size:clamp(16px,1.35vw,20px)!important;
 font-weight:500!important;
 line-height:1.7!important;
 letter-spacing:1.3px!important;
 color:#E8D9AC!important;
 margin-top:22px!important;
 direction:ltr;
}
}

@layer theme {
@media(min-width:901px){
 html body .workspace:has(#missionCanvas){padding:12px 18px 18px!important;gap:16px!important}
}
}

/* Elements below the viewport wait for the scroll reveal. */
.sef-reveal-pending{opacity:0!important}
@media(prefers-reduced-motion:reduce){.sef-reveal-pending{opacity:1!important}}
@media print{.sef-reveal-pending{opacity:1!important}.sef-enter{animation:none!important}}

/* Approved recruitment card. Authorization retains its existing layout. */
@layer theme {
html body #military_card_canvas.sef-recruitment-card{width:min(100%,900px)!important;max-width:900px!important;padding:0!important;margin:0 auto!important;border:1px solid #232323!important;border-radius:16px!important;background:#151515!important;box-shadow:none!important;overflow:hidden!important;direction:rtl!important}
html body #military_card_canvas.sef-recruitment-card .sef-new-card{display:block!important;min-height:0!important;height:auto!important;color:#e8f1f7!important;background:#151515!important;direction:rtl!important}
html body #military_card_canvas.sef-recruitment-card .sef-new-card-head{position:static!important;display:grid!important;grid-template-columns:61px minmax(0,1fr) auto!important;align-items:center!important;gap:16px!important;padding:22px 26px!important;border-top:3px solid #E8D9AC!important;border-bottom:1px solid #1F1F1F!important;background:#171717!important;direction:rtl!important;height:auto!important}
html body #military_card_canvas.sef-recruitment-card .sef-new-card-logo{width:61px!important;height:61px!important;filter:none!important;object-fit:contain!important}
html body #military_card_canvas.sef-recruitment-card .sef-new-card-title{text-align:right!important;line-height:1.7!important}
html body #military_card_canvas.sef-recruitment-card .sef-new-card-title span{display:block!important;font:800 23px/1.7 Cairo,sans-serif!important;color:#eef5fb!important;margin:0!important;letter-spacing:0!important}
html body #military_card_canvas.sef-recruitment-card .sef-new-card-title strong{display:block!important;font:500 11px/1.8 Cinzel,Georgia,serif!important;letter-spacing:1px!important;white-space:normal!important;color:#E8D9AC!important;direction:ltr!important;text-align:right!important;margin-top:3px!important}
html body #military_card_canvas.sef-recruitment-card .sef-recruitment-department{padding:12px 14px!important;border:1px solid #282828!important;border-radius:10px!important;background:#1B1B1B!important;font:700 13px/1.8 Cairo,sans-serif!important;color:#dcebf5!important;white-space:nowrap!important}
html body #military_card_canvas.sef-recruitment-card .sef-recruitment-body{display:grid!important;grid-template-columns:180px minmax(0,1fr)!important;gap:24px!important;padding:24px!important;align-items:center!important;direction:rtl!important}
html body #military_card_canvas.sef-recruitment-card .sef-new-info{position:static!important;inset:auto!important;display:flex!important;flex-direction:column!important;gap:14px!important;padding:0!important;margin:0!important;width:auto!important;height:auto!important;transform:none!important}
html body #military_card_canvas.sef-recruitment-card .sef-new-info-cell{position:static!important;display:block!important;min-height:0!important;padding:0 0 12px!important;border:0!important;border-bottom:1px solid #202020!important;border-radius:0!important;background:none!important;box-shadow:none!important;text-align:right!important}
html body #military_card_canvas.sef-recruitment-card .sef-new-info-cell:last-child{border-bottom:0!important;padding-bottom:0!important}
html body #military_card_canvas.sef-recruitment-card .sef-new-info-cell small{display:block!important;font:400 11px/1.8 Cairo,sans-serif!important;color:#8F681A!important;margin-bottom:5px!important}
html body #military_card_canvas.sef-recruitment-card .sef-new-info-cell b{display:block!important;font:700 19px/1.7 Cairo,sans-serif!important;color:#edf5fa!important;text-align:right!important;direction:rtl!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important}
html body #military_card_canvas.sef-recruitment-card .sef-new-info-cell b[dir=ltr]{font:500 22px/1.6 Cinzel,Georgia,serif!important;direction:ltr!important;text-align:right!important}
html body #military_card_canvas.sef-recruitment-card .sef-new-image-frame{position:static!important;inset:auto!important;display:block!important;width:100%!important;min-height:0!important;height:auto!important;aspect-ratio:auto!important;margin:0!important;padding:0!important;border:1px solid #252525!important;border-radius:0!important;background:#121212!important;box-shadow:none!important;overflow:visible!important;transform:none!important;align-self:center!important}
html body #military_card_canvas.sef-recruitment-card #sef_final_game_img{display:block!important;width:100%!important;height:auto!important;max-width:100%!important;max-height:none!important;object-fit:contain!important;border-radius:0!important;filter:none!important}
html body #military_card_canvas.sef-recruitment-card .sef-recruitment-footer{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;border-top:1px solid #1F1F1F!important;padding:13px 24px!important;color:#8F681A!important;font:400 11px/1.7 Cairo,sans-serif!important;direction:rtl!important}
html body #military_card_canvas.sef-recruitment-card .sef-recruitment-brand,html body #military_card_canvas.sef-recruitment-card time{font-family:Cinzel,Georgia,serif!important;direction:ltr!important}
@media(max-width:650px){
 html body #military_card_canvas.sef-recruitment-card .sef-new-card-head{grid-template-columns:46px minmax(0,1fr)!important;padding:18px!important;gap:10px!important}
 html body #military_card_canvas.sef-recruitment-card .sef-new-card-logo{width:46px!important;height:46px!important}
 html body #military_card_canvas.sef-recruitment-card .sef-new-card-title span{font-size:18px!important}
 html body #military_card_canvas.sef-recruitment-card .sef-new-card-title strong{font-size:9px!important}
 html body #military_card_canvas.sef-recruitment-card .sef-recruitment-department{grid-column:1/-1!important;padding:7px 12px!important;text-align:right!important}
 html body #military_card_canvas.sef-recruitment-card .sef-recruitment-body{display:flex!important;flex-direction:column-reverse!important;padding:18px!important;gap:20px!important;align-items:stretch!important}
 html body #military_card_canvas.sef-recruitment-card .sef-new-info{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
 html body #military_card_canvas.sef-recruitment-card .sef-new-info-cell{padding:0!important;border:0!important}
 html body #military_card_canvas.sef-recruitment-card .sef-new-info-cell:first-child{grid-column:1/-1!important}
}
}

@layer theme {
/* Uploaded evidence stays fully visible while the official PNG uses source pixels. */
html body .image-upload-box img{object-fit:contain!important;object-position:center!important}
}

/* Keep the sector notice inside the dark footer with its other details. */
html body .sef-site-footer .sef-footer-org{margin:22px 0 0;padding:15px 0 0;border-top:1px solid rgba(201,151,40,.2);color:#d7cbb3;text-align:center;font-size:12px;font-weight:700;line-height:1.8;}
html body:has(#appShell:not(.hidden)) .sef-site-footer .sef-footer-org{flex:1 1 320px;max-width:440px;margin:0!important;padding:0 14px!important;border:0!important;font-size:12px!important;line-height:1.8!important;}
@media(max-width:650px){html body:has(#appShell:not(.hidden)) .sef-site-footer .sef-footer-org{order:2;max-width:none;text-align:center;padding:10px 0!important;border-top:1px solid rgba(201,151,40,.2)!important;}html body:has(#appShell:not(.hidden)) .sef-site-footer .sef-footer-bottom{order:3;}}

/* PS confirmation and complete results layout, 2026-11-20. */
html body #appShell #step4Content #sef_confirm_grid .sef-confirm-item:has([data-source="applicant_name"]) {
  grid-column: 1 / -1 !important;
}
html body #appShell #step4Content #sef_confirm_data_action_wrap {
  display: flex !important;
  width: 100% !important;
  justify-content: stretch !important;
  margin-top: 28px !important;
  padding-top: 20px !important;
  border-top: 1px solid rgba(201, 151, 40, .38) !important;
}
html body #appShell #step4Content #sef_confirm_data_action {
  width: 100% !important;
  min-height: 66px !important;
  padding: 14px 24px !important;
  border: 1px solid #E8C86A !important;
  border-radius: 14px !important;
  background: linear-gradient(110deg, #9B7019, #B88B29) !important;
  color: #fff !important;
  font-family: Cairo, sans-serif !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  box-shadow: 0 14px 30px rgba(143, 104, 26, .22) !important;
}
html body #appShell #step4Content #sef_confirm_data_action:hover:not(:disabled),
html body #appShell #step4Content #sef_confirm_data_action:focus-visible {
  background: linear-gradient(110deg, #B88B29, #C99728) !important;
  outline: 3px solid rgba(232, 200, 106, .45) !important;
  outline-offset: 3px !important;
}
html body:has(#step5Content:not(.hidden)) #appShell #stepPanel,
html body #appShell #step5Content:not(.hidden) {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}
html body #appShell #step5Content .step4-layout,
html body #appShell #step5Content .step4-outputs-panel,
html body #appShell #step5Content .step4-outputs-panel > div,
html body #appShell #step5Content .output-text-stack {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}
html body #appShell #step5Content .step4-outputs-panel textarea {
  field-sizing: content !important;
  width: 100% !important;
  min-height: 140px !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  resize: vertical !important;
}
