:root {
  color-scheme: light;
  --ink: #10283c;
  --muted: #65798a;
  --subtle: #8c9aa8;
  --accent: #128b84;
  --accent-dark: #08736c;
  --accent-soft: #e7f7f3;
  --navy: #0c2639;
  --line: #e3e9ee;
  --paper: #fff;
  --background: #f5f7fa;
  --warn: #c37624;
  --warn-soft: #fff5e5;
  --danger: #b44c47;
  --danger-soft: #fff0ef;
  --shadow: 0 18px 48px rgba(16,40,60,.07), 0 2px 10px rgba(16,40,60,.025);
  --radius: 20px;
}
* {box-sizing:border-box}
html {font-family: Arial, "Noto Sans Hebrew", "Segoe UI", sans-serif; font-size: 16px; scroll-behavior:smooth}
body {margin:0; color:var(--ink); background:var(--background); min-width:300px; text-rendering:optimizeLegibility; -webkit-font-smoothing:antialiased}
button,input {font:inherit}
button {cursor:pointer}
a {color:inherit;text-decoration:none}
button:focus-visible,input:focus-visible,a:focus-visible {outline:3px solid #65c9d2;outline-offset:3px}
button:disabled {cursor:not-allowed;opacity:.5}
.app-shell {min-height:100vh;display:flex;flex-direction:column}
.topbar {min-height:84px;display:flex;justify-content:space-between;align-items:center;padding:15px clamp(18px,5vw,75px);border-bottom:1px solid #e6edf1;background:#fff;gap:15px}
.brand {display:flex;align-items:center;gap:12px}
.brand-mark {width:46px;height:46px;background:var(--navy);color:#81e7d8;display:grid;place-items:center;border-radius:14px;flex:none}
.brand-mark svg {width:29px;height:29px}
.brand-copy {display:flex;flex-direction:column;gap:3px}
.brand-copy strong {font-size:20px;font-weight:800;letter-spacing:-.8px;line-height:1.1}
.brand-copy small {font-size:11px;font-weight:600;color:var(--muted);letter-spacing:.1px}
.header-side {display:flex;align-items:center;gap:20px}
.training-chip {display:flex;align-items:center;gap:8px;background:#edf8f5;color:#14796e;border:1px solid #d5eee8;font-weight:700;border-radius:999px;padding:10px 13px;font-size:12px;white-space:nowrap}
.live-dot {width:7px;height:7px;background:#1ca88b;border-radius:100%;box-shadow:0 0 0 4px rgba(28,168,139,.12)}
.header-divider {height:23px;width:1px;background:var(--line)}
.header-label {color:var(--muted);font-size:12px;font-weight:600}
.main {width:min(1230px, calc(100% - 64px));margin:0 auto;flex:1}
.loading-state {padding:6rem 0;text-align:center;color:var(--muted)}
.site-footer {width:min(1230px,calc(100% - 64px));margin:auto;display:flex;justify-content:space-between;gap:12px;color:#8b99a7;font-size:11px;padding:25px 0 28px}

/* Landing */
.welcome {display:grid;grid-template-columns:minmax(0,1.14fr) minmax(360px,.86fr);gap:26px;margin-top:42px;align-items:stretch}
.hero {position:relative;min-height:510px;overflow:hidden;background:linear-gradient(147deg,#123b51 0%,#0b2739 57%,#071a2a 100%);color:#fff;padding:clamp(29px,5vw,62px);border-radius:24px;display:flex;flex-direction:column;justify-content:space-between;isolation:isolate}
.hero::before {content:"";position:absolute;width:530px;height:530px;border-radius:50%;border:1px solid rgba(172,238,226,.14);left:-145px;top:12px;box-shadow:0 0 0 90px rgba(172,238,226,.035),0 0 0 180px rgba(172,238,226,.028);z-index:-1}
.hero::after {content:"";position:absolute;width:250px;height:250px;left:-42px;bottom:-125px;border-radius:100%;background:radial-gradient(circle,#1bc6a855,transparent 70%);z-index:-1}
.eyebrow {display:inline-flex;align-items:center;gap:10px;color:#9ce6d7;font-weight:800;font-size:12px;letter-spacing:.1px}
.eyebrow-line {width:27px;height:2px;background:#78dccc;display:inline-block}
.hero h1 {font-size:clamp(40px,4.6vw,65px);line-height:1.13;font-weight:850;letter-spacing:-2.5px;margin:30px 0 18px;max-width:580px}
.hero h1 em {color:#a4f1e5;font-style:normal}
.hero-description {color:#c8d9e1;line-height:1.9;font-size:15px;max-width:460px;margin:0}
.hero-bottom {display:flex;gap:22px;flex-wrap:wrap;padding-top:28px}
.hero-metric {display:flex;flex-direction:column;gap:7px;padding-inline-start:23px;border-inline-start:1px solid rgba(224,255,249,.16);min-width:93px}
.hero-metric:first-child {padding-inline-start:0;border-inline-start:none}
.hero-metric b {font-weight:800;font-size:29px;letter-spacing:-1.1px;direction:ltr;text-align:right}
.hero-metric small {font-size:12px;color:#c8d9e1;font-weight:500}
.start-panel {display:flex;flex-direction:column;justify-content:center;background:var(--paper);border:1px solid var(--line);padding:clamp(27px,4vw,49px);border-radius:24px;box-shadow:var(--shadow);min-width:0}
.panel-icon {width:50px;height:50px;display:grid;place-items:center;background:#e5f5f1;border-radius:15px;color:var(--accent-dark);margin-bottom:22px}
.panel-icon svg{width:25px;height:25px}
.start-panel h2 {font-size:28px;letter-spacing:-.6px;margin:0 0 11px;font-weight:800}
.start-panel>p {font-size:14px;line-height:1.85;color:var(--muted);margin:0 0 24px}
.field {display:flex;flex-direction:column;gap:9px;margin-bottom:17px}
.field label {font-weight:700;font-size:13px}
.field label .optional {font-size:11px;font-weight:400;color:var(--subtle);margin-inline-start:5px}
.field input {padding:0 17px;width:100%;height:54px;border:1px solid #dfe6eb;border-radius:12px;background:#fbfcfd;color:var(--ink);transition:.18s ease;outline:0}
.field input:focus {border-color:#45b5a9;background:#fff;box-shadow:0 0 0 3px #e1f6f1}
.field input::placeholder{color:#a6b2bd}
.form-error {color:var(--danger);font-size:12px;min-height:15px;margin:0 0 10px}
.primary-btn {border:none;display:inline-flex;align-items:center;justify-content:center;gap:11px;background:var(--accent);color:#fff;font-size:14px;font-weight:800;padding:0 26px;min-height:54px;border-radius:12px;transition:transform .16s,background .16s,box-shadow .16s;box-shadow:0 8px 18px rgba(17,132,122,.16)}
.primary-btn:hover:not(:disabled) {background:var(--accent-dark);transform:translateY(-1px);box-shadow:0 9px 22px rgba(17,132,122,.22)}
.primary-btn svg,.secondary-btn svg,.text-btn svg {width:17px;height:17px}
.full-width{width:100%}
.consent-note {display:flex;gap:9px;align-items:flex-start;margin-top:18px;font-size:11px;line-height:1.7;color:var(--subtle)}
.consent-note svg{width:15px;min-width:15px;height:15px;margin-top:1px;color:#8194a2}
.resume-box {border-top:1px solid var(--line);padding-top:18px;margin-top:18px}
.resume-box p{margin:0 0 10px;color:var(--muted);font-size:12px;line-height:1.8}
.secondary-btn {display:inline-flex;align-items:center;justify-content:center;gap:9px;background:#fff;border:1px solid #dbe5ea;padding:0 18px;min-height:48px;border-radius:11px;color:var(--ink);font-size:13px;font-weight:800;transition:.15s}
.secondary-btn:hover:not(:disabled) {border-color:#80b7b3;background:#f6fcfa}
.secondary-btn.alt {border:none;background:#edf4f6}
.features {display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:22px 0 36px}
.feature {display:flex;gap:14px;align-items:center;padding:22px 23px;border:1px solid var(--line);background:#fff;border-radius:15px;min-width:0}
.feature-symbol {flex:none;width:44px;height:44px;background:#f2f6f7;color:#3b8390;border-radius:12px;display:grid;place-items:center}
.feature-symbol svg{width:22px;height:22px}
.feature strong{font-size:13px;display:block;margin-bottom:5px}
.feature span {display:block;font-size:11px;color:var(--muted);line-height:1.5}

/* Exam */
.exam-page {padding:35px 0 36px}
.exam-heading {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}
.exam-heading-copy .mini-label {font-size:12px;letter-spacing:.2px;color:var(--accent-dark);font-weight:800}
.exam-heading h1 {font-size:27px;font-weight:800;letter-spacing:-.8px;margin:7px 0 5px}
.exam-heading p {font-size:12px;margin:0;color:var(--muted)}
.outline-btn {display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #dce5e9;background:transparent;color:#637988;border-radius:10px;padding:11px 17px;font-size:12px;font-weight:700;white-space:nowrap}
.outline-btn:hover {background:#fff;border-color:#bdd5dc}
.exam-grid {display:grid;grid-template-columns:minmax(252px,288px) minmax(0,1fr);gap:23px;align-items:start}
.exam-sidebar {background:#fff;border:1px solid var(--line);border-radius:19px;padding:25px;box-shadow:0 2px 10px rgba(22,48,66,.025)}
.sidebar-label {color:var(--muted);font-size:12px;font-weight:700;margin-bottom:15px}
.sidebar-stats {display:flex;justify-content:space-between;align-items:end;margin:3px 0 13px}
.sidebar-stats b{font-size:27px;line-height:1;letter-spacing:-.8px}
.sidebar-stats b span {color:var(--subtle);font-size:15px}
.sidebar-stats small{color:var(--muted);font-size:11px}
.progress-track {height:8px;background:#e9eff1;border-radius:10px;overflow:hidden}
.progress-fill {height:100%;background:linear-gradient(90deg,#129083,#48c6af);border-radius:10px;transition:width .2s}
.sidebar-rule {height:1px;background:var(--line);margin:26px 0}
.timer-box {border-radius:13px;background:#f1f6f7;padding:17px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:23px}
.timer-box.warn {background:var(--warn-soft)}
.timer-description {display:flex;flex-direction:column;gap:4px}
.timer-description span{font-size:11px;color:var(--muted)}
.timer-description strong{font-size:21px;letter-spacing:.5px;direction:ltr;text-align:right;font-variant-numeric:tabular-nums}
.timer-box.warn strong {color:#a96a25}
.timer-symbol {width:37px;height:37px;background:#e3eff0;border-radius:10px;display:grid;place-items:center;color:#588d94}
.timer-symbol svg{width:19px;height:19px}
.num-grid {display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.num {aspect-ratio:1;border:1px solid #dfe7ea;background:#fff;border-radius:9px;font-size:12px;font-weight:700;color:#687e8e;position:relative;transition:transform .12s,border-color .12s}
.num:hover {border-color:var(--accent);transform:translateY(-1px)}
.num.answered {background:var(--accent-soft);border-color:#c6e9e0;color:#14796d}
.num.current {background:var(--navy);border-color:var(--navy);color:white;box-shadow:0 3px 12px #163d542a}
.num.marked:after {content:"";position:absolute;width:5px;height:5px;left:5px;top:5px;border-radius:50%;background:#f0a344}
.grid-legend {display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:15px}
.grid-legend span {display:flex;align-items:center;gap:5px;font-size:10px;color:var(--muted)}
.leg-dot {width:8px;height:8px;border-radius:3px;background:#e2e9ed}
.leg-dot.filled {background:#80cbbd}
.leg-dot.now {background:var(--navy)}
.sidebar-note {margin-top:25px;border-top:1px solid var(--line);padding-top:18px;color:var(--muted);font-size:11px;line-height:1.85}
.question-card {background:white;border:1px solid var(--line);border-radius:20px;padding:clamp(24px,4vw,47px);min-height:590px;box-shadow:var(--shadow);display:flex;flex-direction:column}
.question-meta {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:26px}
.question-count {display:inline-flex;align-items:center;gap:9px;color:var(--accent-dark);font-size:12px;font-weight:800}
.question-count i {width:8px;height:8px;background:#36ad99;border-radius:50%}
.question-category {font-size:11px;color:#6a7e8b;background:#f4f7f9;border-radius:30px;padding:8px 13px;white-space:nowrap;max-width:55%;overflow:hidden;text-overflow:ellipsis}
.question-card h2 {font-size:clamp(20px,2.2vw,29px);line-height:1.58;letter-spacing:-.6px;font-weight:800;max-width:715px;margin:0 0 27px}
.answers-list {display:flex;flex-direction:column;gap:12px;border:0;margin:0 0 35px;padding:0;min-width:0}
.answers-list legend {font-size:12px;color:var(--muted);margin-bottom:13px}
.answer-option {background:#fff;border:1.5px solid #e2e9ee;border-radius:13px;min-height:72px;text-align:right;display:flex;align-items:center;gap:18px;padding:14px 18px;transition:background .16s,border-color .16s,box-shadow .16s;line-height:1.6;width:100%;font-size:14px;color:#354d60}
.answer-option:hover {border-color:#a7d6ce;background:#fbfffe}
.answer-option.selected {background:#f0faf7;border-color:#18a28f;box-shadow:0 0 0 2px rgba(24,162,143,.06);color:var(--ink);font-weight:700}
.option-label {flex:none;width:35px;height:35px;border:1px solid #dbe5e9;background:#f7f9fa;border-radius:10px;display:grid;place-items:center;font-size:13px;font-weight:800;color:#718693}
.answer-option.selected .option-label {background:#d7f1e9;border-color:#bbebdd;color:#0a8273}
.answer-text {flex:1;min-width:0}
.fake-radio {display:grid;place-items:center;flex:none;width:19px;height:19px;border-radius:50%;border:1.8px solid #bdcbd2;margin-inline-start:auto}
.answer-option.selected .fake-radio {border:5px solid #159b8c}
.question-bottom {margin-top:auto;border-top:1px solid var(--line);padding-top:23px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.question-bottom-left,.question-bottom-right {display:flex;align-items:center;gap:10px}
.text-btn {display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:#718595;font-size:12px;font-weight:700;padding:12px 3px}
.text-btn.is-marked {color:#b66e19}
.text-btn:hover {color:var(--accent-dark)}
.prev-next {display:inline-flex;align-items:center;gap:10px}
.prev-next svg {width:16px;height:16px}
.primary-btn.end-btn {background:var(--navy);box-shadow:none}
.primary-btn.end-btn:hover {background:#1d4356}
.mobile-progress {display:none}

/* Result */
.result-page {padding:42px 0 45px}
.result-card {background:#fff;border-radius:23px;border:1px solid var(--line);overflow:hidden;box-shadow:var(--shadow)}
.result-top {background:linear-gradient(130deg,#0c2639,#184a5b);color:white;padding:48px 50px 42px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:35px}
.result-top h1{font-size:36px;letter-spacing:-1px;margin:8px 0 14px}
.result-top p{color:#c6dbe3;margin:0;line-height:1.85;max-width:510px}
.result-eyebrow{color:#9be7d8;font-size:12px;font-weight:800}
.score-dial {width:170px;height:170px;border-radius:50%;display:grid;place-items:center;position:relative;background:conic-gradient(#80e4d2 var(--percent),#ffffff22 var(--percent));padding:12px}
.score-inner {width:100%;height:100%;background:#153b4d;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column}
.score-inner strong{font-size:44px;line-height:1.1;direction:ltr}
.score-inner small{font-size:12px;color:#b9d0d8;margin-top:4px}
.result-body {padding:37px 50px 43px}
.result-status {display:flex;align-items:center;gap:12px;margin-bottom:28px}
.status-icon {width:43px;height:43px;border-radius:13px;background:var(--accent-soft);color:#128b7c;display:grid;place-items:center;font-size:26px;font-weight:800}
.status-icon.fail {color:var(--warn);background:var(--warn-soft)}
.result-status strong {font-size:18px}
.result-status p {color:var(--muted);margin:5px 0 0;font-size:13px}
.result-details {display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:27px}
.detail {background:#f6f9fa;border:1px solid #edf1f3;padding:17px 19px;border-radius:12px;min-width:0}
.detail small {display:block;color:var(--muted);font-size:11px;margin-bottom:9px}
.detail strong{display:block;overflow-wrap:anywhere;font-size:15px}
.result-actions {display:flex;gap:11px;flex-wrap:wrap}
.result-actions .primary-btn {min-height:49px}
.result-actions .secondary-btn{min-height:49px}
.result-footer-note {color:var(--muted);font-size:12px;margin-top:28px;line-height:1.8;border-top:1px solid var(--line);padding-top:20px}
.detail-table{width:100%;border-collapse:collapse;margin-top:21px;font-size:12px}
.detail-table th,.detail-table td{padding:12px;text-align:right;border-bottom:1px solid var(--line)}
.detail-table th{background:#f7f9fa;color:var(--muted);font-size:11px}
.detail-table td:nth-child(2),.detail-table td:nth-child(3){white-space:nowrap}
.print-only{display:none}

/* Dialog, toast */
.overlay {position:fixed;inset:0;z-index:50;background:#091f30ad;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(4px)}
.dialog {width:min(100%,430px);background:white;box-shadow:0 26px 90px #04162544;border-radius:20px;padding:30px;text-align:right}
.dialog-symbol {width:46px;height:46px;background:#fff4e7;color:#b9782c;border-radius:13px;display:grid;place-items:center;font-size:25px;margin-bottom:19px}
.dialog h2 {font-size:23px;letter-spacing:-.5px;margin:0 0 12px}
.dialog p{font-size:14px;color:var(--muted);line-height:1.85;margin:0 0 24px}
.dialog-actions{display:flex;gap:10px;flex-wrap:wrap}
.dialog-actions>*{flex:1}
.toast {position:fixed;bottom:24px;left:24px;z-index:80;padding:14px 19px;background:var(--navy);color:white;border-radius:12px;font-size:13px;box-shadow:0 10px 30px #04162533;opacity:0;transform:translateY(20px);transition:.2s;pointer-events:none;max-width:320px}
.toast.visible{opacity:1;transform:translateY(0)}

@media(max-width:1020px){
  .main{width:min(100% - 36px,1230px)}
  .welcome{grid-template-columns:1fr 1fr;gap:17px}
  .hero{min-height:485px;padding:35px}
  .hero h1{font-size:43px;letter-spacing:-1.5px}
  .start-panel{padding:28px}
  .exam-grid{grid-template-columns:245px minmax(0,1fr);gap:16px}
  .exam-sidebar{padding:18px}
  .question-card{padding:29px;min-height:640px}
  .site-footer{width:min(100% - 36px,1230px)}
}
@media(max-width:760px){
  .topbar{min-height:70px;padding:11px 17px}
  .brand-mark{width:41px;height:41px;border-radius:12px}
  .brand-mark svg{width:26px;height:26px}
  .brand-copy strong{font-size:18px}
  .brand-copy small{font-size:10px}
  .header-label,.header-divider{display:none}
  .training-chip{font-size:11px;padding:8px 10px}
  .main{width:calc(100% - 30px)}
  .welcome {grid-template-columns:1fr;margin-top:20px;gap:13px}
  .hero{min-height:auto;padding:34px 28px;border-radius:18px;gap:34px}
  .hero::before{width:370px;height:370px;left:-200px;top:-60px;box-shadow:0 0 0 70px rgba(172,238,226,.035)}
  .hero h1{font-size:40px;line-height:1.18;letter-spacing:-1.8px;margin:23px 0 13px}
  .hero-description{font-size:13px;line-height:1.9}
  .hero-bottom{gap:13px;padding-top:0}
  .hero-metric{padding-inline-start:14px;min-width:80px}
  .hero-metric b{font-size:24px}
  .hero-metric small{font-size:10px}
  .start-panel{padding:27px 24px;border-radius:18px}
  .start-panel h2{font-size:24px}
  .features{grid-template-columns:1fr;gap:9px;margin:14px 0 22px}
  .feature{padding:15px 18px}
  .feature-symbol{width:37px;height:37px}
  .feature-symbol svg{width:18px;height:18px}
  .site-footer{width:calc(100% - 30px);font-size:10px;flex-direction:column;gap:4px;padding:21px 0}
  .exam-page {padding:21px 0 24px}
  .exam-heading {margin-bottom:17px}
  .exam-heading h1{font-size:20px;letter-spacing:-.4px}
  .exam-heading .mini-label{font-size:10px}
  .exam-heading p{font-size:11px}
  .exam-heading .outline-btn{padding:10px;font-size:10px}
  .exam-grid{display:flex;flex-direction:column}
  .exam-sidebar{order:1;width:100%;padding:17px;border-radius:15px}
  .question-card{order:2;width:100%;padding:25px 21px;border-radius:15px;min-height:600px}
  .sidebar-rule,.sidebar-note,.grid-legend{display:none}
  .sidebar-top-line{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
  .sidebar-label{margin:0;font-size:11px}
  .sidebar-stats{margin:0}
  .sidebar-stats b{font-size:20px}
  .sidebar-stats small{display:none}
  .progress-track{height:6px;margin-bottom:13px}
  .timer-box{position:static;margin:0 0 12px;padding:9px 12px;gap:8px;border-radius:9px;background:#e9f2f2}
  .timer-description span{display:none}
  .timer-description strong{font-size:13px}
  .timer-symbol{width:20px;height:20px;background:transparent}
  .timer-symbol svg{width:16px;height:16px}
  .num-grid{display:flex;gap:7px;overflow-x:auto;scrollbar-width:thin;padding-bottom:5px;scroll-snap-type:x mandatory}
  .num{min-width:37px;height:37px;aspect-ratio:1;scroll-snap-align:center}
  .question-meta{margin-bottom:17px;gap:5px}
  .question-category{font-size:9px;padding:8px}
  .question-card h2{font-size:20px;line-height:1.65;letter-spacing:-.3px;margin-bottom:18px}
  .answers-list{gap:9px;margin-bottom:27px}
  .answers-list legend{font-size:11px;margin-bottom:8px}
  .answer-option{padding:13px 11px;gap:11px;font-size:12px;min-height:71px;border-radius:11px}
  .option-label{width:29px;height:29px;border-radius:8px;font-size:12px}
  .fake-radio{width:17px;height:17px}
  .question-bottom{gap:14px;padding-top:15px}
  .question-bottom-left,.question-bottom-right{width:100%;justify-content:space-between}
  .question-bottom-left{order:2}
  .question-bottom-right{order:1}
  .question-bottom-right .primary-btn{flex:1}
  .primary-btn{min-height:51px;font-size:13px;padding:0 18px}
  .secondary-btn{min-height:48px;font-size:12px}
  .result-page{padding:23px 0}
  .result-top{padding:30px 23px;grid-template-columns:1fr;justify-items:start;gap:25px}
  .result-top h1{font-size:27px;margin:8px 0 10px}
  .result-top p{font-size:12px}
  .score-dial{width:124px;height:124px;padding:8px}
  .score-inner strong{font-size:34px}
  .result-body{padding:26px 19px}
  .result-details{grid-template-columns:1fr;gap:8px}
  .detail{padding:13px 16px;display:flex;align-items:center;justify-content:space-between;gap:14px}
  .detail small{margin:0}
  .result-actions{flex-direction:column}
  .result-actions>*{width:100%}
}
@media(max-width:360px){.header-side{display:none}.hero h1{font-size:35px}.question-bottom-right{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print {
  html,body{background:#fff;color:#111}
  .topbar,.site-footer,.result-actions,.result-footer-note,.toast,.no-print{display:none!important}
  .main{width:100%;max-width:none;margin:0}
  .result-page{padding:0}
  .result-card{border:none;box-shadow:none;border-radius:0}
  .result-top{color:#111;background:#fff;padding:0 0 25px;border-bottom:2px solid #222}
  .result-top p,.result-eyebrow{color:#444}
  .score-dial {display:none}
  .result-body{padding:20px 0}
  .detail{border:1px solid #ddd;background:#fff}
  .print-only{display:block}
  .print-only.detail-table{display:table}
  @page{size:A4;margin:18mm}
}
/* Secure staff assessment extension */
.secure-main{width:min(1250px,calc(100% - 40px));padding:36px 0 60px}.secure-heading{margin-bottom:24px}.secure-heading h1{font-size:clamp(28px,3.3vw,44px);letter-spacing:-1.3px;margin:8px 0 10px}.secure-heading p{color:#64758a;line-height:1.7;margin:0}.secure-label{font-weight:800;font-size:12px;color:#0a8b76}.secure-card{background:#fff;border:1px solid #e1e8ee;border-radius:17px;padding:28px;box-shadow:0 5px 24px rgba(8,29,45,.045)}.secure-card h2{font-size:21px;margin:0 0 12px}.secure-card p{color:#63758a;line-height:1.6}.secure-card form{display:grid;gap:17px}.secure-field{display:grid;gap:8px;font-weight:750;font-size:13px}.secure-field input,.secure-field textarea,.secure-field select,.secure-section-head input{width:100%;border:1px solid #cdd8e0;border-radius:9px;padding:13px 14px;color:#142f41;background:white;font:inherit;min-height:46px}.secure-field textarea{resize:vertical}.secure-tabs{display:flex;gap:8px;margin:0 0 17px}.secure-tabs button{border:1px solid #dce5e8;color:#245062;border-radius:9px;padding:11px 19px;background:white;cursor:pointer;font-weight:700}.secure-tabs .active{background:#092a39;color:white}.secure-help{font-size:13px!important;margin:20px 0 0}.secure-main>.secure-card{max-width:480px}.secure-grid{display:grid;grid-template-columns:330px minmax(0,1fr);gap:20px;align-items:start}.secure-stats{display:flex;gap:25px;flex-wrap:wrap}.secure-stats>div{display:grid;gap:2px}.secure-stats b{font-size:29px;color:#0b344b}.secure-stats span{font-size:12px;color:#687e8b}.secure-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:12px}.secure-section-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:15px}.secure-section-head input{max-width:220px}.table-wrap{overflow:auto;max-height:630px}.secure-card table{width:100%;border-collapse:collapse;font-size:13px;text-align:right}.secure-card th,.secure-card td{padding:13px 8px;border-bottom:1px solid #e8edf1;white-space:nowrap}.secure-card th{background:#f5f8fa;color:#567086;font-size:12px;position:sticky;top:0}.small-action{border:1px solid #9ac5b8;color:#08765a;background:#f4fffb;padding:7px 10px;border-radius:7px;font-weight:700;cursor:pointer}.invitation{background:#e9f8f3;padding:15px;border-radius:11px;margin-top:20px;overflow-wrap:anywhere}.invitation code{direction:ltr;unicode-bidi:isolate;font-weight:800;display:inline-block;color:#0b614e}.feedback{background:#e8f5ef;padding:12px 15px;border-radius:8px;margin:0 0 20px}.feedback.error{background:#ffebe8;color:#913d35}.exam-secure{max-width:800px!important}.exam-top{display:flex;justify-content:space-between;gap:18px}.secure-progress{height:6px;border-radius:8px;overflow:hidden;background:#e8edf1;margin:23px 0}.secure-progress span{background:#13a583;display:block;height:100%}.exam-secure h2{font-size:clamp(20px,2.5vw,27px);line-height:1.5;margin:25px 0}.answer-grid{display:grid;gap:10px}.answer-grid button{display:flex;align-items:center;gap:15px;border:1px solid #dce5ed;border-radius:11px;background:white;text-align:right;padding:14px 15px;font-size:15px;cursor:pointer;color:#233d51}.answer-grid button span{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:9px;background:#eff3f5;font-weight:800}.answer-grid .selected{background:#eaf9f3;border-color:#15a683}.form-actions{display:flex;justify-content:space-between;gap:14px;margin-top:20px}.secure-confirm{background:#f5faf8;border:1px solid #bbddd0;border-radius:12px;margin-top:24px;padding:18px}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #29b8c6;outline-offset:2px}html{scrollbar-color:#91a8b6 #edf2f6;scrollbar-width:thin}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-thumb{background:#91a8b6;border-radius:6px}@media(max-width:870px){.secure-grid{grid-template-columns:1fr}.secure-toolbar{align-items:start}}@media(max-width:560px){.secure-main{width:calc(100% - 28px);padding-top:25px}.secure-card{padding:20px}.secure-toolbar{display:block}.secure-stats{justify-content:space-between;margin-bottom:20px}.secure-section-head{display:block}.secure-section-head input{max-width:100%}.form-actions{flex-wrap:wrap}.site-footer{display:block;text-align:center}}
/* Afikim server portal login identity — aligns worker and management entry with the established portal */
main.secure-main{width:min(1180px,calc(100% - 56px));padding:38px 0 50px}
main.auth-view{display:flex;align-items:center;justify-content:center}
.auth-layout{width:min(100%,1040px);display:grid;grid-template-columns:minmax(0,1.04fr) minmax(380px,.96fr);border:1px solid #dce6eb;border-radius:23px;background:#fff;overflow:hidden;box-shadow:0 18px 60px rgba(12,38,57,.09)}
.auth-overview{position:relative;display:flex;flex-direction:column;justify-content:center;gap:0;padding:clamp(35px,5vw,64px);color:#fff;background:radial-gradient(circle at 13% 93%,rgba(22,156,143,.26),transparent 46%),linear-gradient(140deg,#123d51 0%,#0c2a3c 55%,#071c2b 100%);min-height:490px}
.auth-overview::before{content:"";position:absolute;bottom:42px;left:44px;width:155px;height:100px;border:1px solid rgba(141,229,217,.15);border-width:0 0 1px 1px;border-bottom-left-radius:65px;pointer-events:none}
.auth-overline{color:#9be3d7;font-size:12px;font-weight:750;letter-spacing:.05px}
.auth-overline span{padding:0 7px;color:rgba(255,255,255,.35)}
.auth-overview h1{font-size:clamp(35px,3.7vw,49px);line-height:1.18;letter-spacing:-1.5px;font-weight:800;margin:21px 0 18px;max-width:470px}
.auth-overview p{font-size:16px;line-height:1.85;max-width:400px;color:#cfdee5;margin:0}
.auth-overview-bottom{font-size:12px;line-height:1.5;color:#adcad4;margin-top:auto;padding-top:60px;display:flex;align-items:center;gap:12px}
.auth-route-line{width:28px;height:2px;background:#68c8ba;flex:none}
.auth-card.secure-card{padding:clamp(25px,3.5vw,46px);border:none;border-radius:0;box-shadow:none;background:white;min-width:0}
.auth-card-title{margin-bottom:23px}
.auth-card-title h2{font-size:23px;line-height:1.3;margin:0 0 6px;color:#123044}
.auth-card-title p{font-size:13px;color:#64788a;margin:0;line-height:1.65}
.auth-card .secure-tabs{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:4px;margin:0 0 24px;border-radius:12px;background:#edf2f4}
.auth-card .secure-tabs button{border:0;border-radius:9px;background:transparent;color:#496273;font-size:14px;font-weight:750;min-height:45px;padding:8px 7px;transition:background-color .14s,color .14s,box-shadow .14s}
.auth-card .secure-tabs button.active{background:white;color:#0b3044;box-shadow:0 2px 9px rgba(9,35,52,.10)}
.auth-card .secure-tabs button:hover:not(.active){color:#0b3044;background:rgba(255,255,255,.55)}
.auth-card #entry{display:grid;gap:17px}
.auth-card .secure-field{gap:7px;font-size:13px;color:#26485a;font-weight:750}
.auth-card .secure-field input{min-height:50px;height:50px;padding:0 15px;background:#fbfcfd;border:1px solid #c9d6de;border-radius:11px;font-size:16px;box-shadow:none;transition:border-color .15s,box-shadow .15s}
.auth-card .secure-field input:hover{border-color:#8da8b7}
.auth-card .secure-field input:focus{outline:none;border-color:#15877e;box-shadow:0 0 0 3px rgba(18,139,132,.16);background:#fff}
.auth-card .secure-field input[dir=ltr]{direction:ltr;text-align:left;letter-spacing:.3px}
.auth-card #entry .primary-btn{width:100%;min-height:52px;margin-top:4px;border-radius:11px;font-size:15px;font-weight:800;background:#0f827b;color:white;box-shadow:0 10px 23px rgba(15,130,123,.16)}
.auth-card #entry .primary-btn:hover{background:#0c726d}
.auth-card #entry .primary-btn:disabled{opacity:.65;cursor:wait}
.auth-card .auth-data-note{color:#6a7d89;line-height:1.55;font-size:12px;margin:22px 0 0;border-top:1px solid #e8edf1;padding-top:17px}
.auth-view>.feedback{width:min(100%,1040px);align-self:center;margin-bottom:14px}
.afikim-brand .afikim-logo{display:block;width:clamp(142px,16vw,176px);height:auto;max-height:42px;object-fit:contain}
.afikim-brand .brand-copy small{font-size:11px;line-height:1.4;color:#6c7d89;font-weight:650}
.site-footer{align-items:center}
@media(max-width:820px){
 main.secure-main{width:calc(100% - 32px);padding:25px 0 35px}
 main.auth-view{display:block}
 .auth-layout{display:flex;flex-direction:column;gap:17px;max-width:550px;margin:0 auto;overflow:visible;background:transparent;border:0;box-shadow:none;border-radius:0}
 .auth-overview{min-height:auto;background:transparent;padding:4px 3px 0;color:var(--ink)}
 .auth-overview::before,.auth-overview-bottom{display:none}
 .auth-overline{font-size:11px;color:#13877c}
 .auth-overline span{color:#9cabb5}
 .auth-overview h1{font-size:clamp(28px,7vw,36px);letter-spacing:-.9px;line-height:1.22;margin:10px 0 10px;max-width:100%}
 .auth-overview p{font-size:14px;color:#657788;line-height:1.6;max-width:44ch}
 .auth-card.secure-card{border:1px solid #dce6eb;border-radius:19px;padding:22px 20px;box-shadow:0 13px 30px rgba(12,38,57,.055)}
 .auth-card-title{margin-bottom:17px}
 .auth-card-title h2{font-size:19px;margin-bottom:3px}
 .auth-card-title p{font-size:12px}
 .auth-card .secure-tabs{margin-bottom:18px}
 .auth-card .secure-tabs button{min-height:42px;font-size:13px}
 .auth-card #entry{gap:14px}
 .auth-card .secure-field input{min-height:47px;height:47px}
 .auth-card #entry .primary-btn{min-height:50px;margin-top:5px}
 .auth-card .auth-data-note{margin:18px 0 0;padding-top:13px;font-size:11px}
 .auth-view>.feedback{width:min(100%,550px)}
 .site-footer{border-top:1px solid #e5ebef;margin-top:2px}
}
@media(max-width:440px){
 .topbar{padding:9px 15px;min-height:67px;gap:8px}
 .afikim-brand .afikim-logo{width:136px;max-height:31px}
 .afikim-brand .brand-copy small{font-size:10px}
 .training-chip{font-size:10px;padding:7px 9px;gap:7px}
 .live-dot{width:6px;height:6px}
 main.secure-main{width:calc(100% - 28px);padding-top:22px}
 .auth-layout{gap:16px}
 .auth-card.secure-card{padding:20px 18px}
 .auth-overview h1{font-size:29px}
 .auth-overview p{font-size:13px}
}
@media(prefers-reduced-motion:reduce){
 .auth-card .secure-tabs button,.auth-card .secure-field input{transition:none}
}

/* Footer remains legible on narrow RTL devices */
.site-footer .footer-credit{direction:ltr;unicode-bidi:isolate;white-space:nowrap}
@media(max-width:820px){
 .site-footer{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:6px;padding:14px 0 22px;line-height:1.5}
 .site-footer span{display:block;width:100%;overflow-wrap:break-word}
 .site-footer .footer-credit{font-size:10px}
}

/* Dedicated worker and manager HTML pages — no shared role switcher */
.worker-portal .auth-overview{
  color:#173747;
  background:radial-gradient(circle at 10% 85%,rgba(18,139,132,.13),transparent 43%),linear-gradient(142deg,#f0f7f7,#eaf3f6 60%,#e4eef2);
}
.worker-portal .auth-overview::before{border-color:rgba(18,139,132,.14)}
.worker-portal .auth-overline{color:#147e77}
.worker-portal .auth-overline span{color:#a3b6bf}
.worker-portal .auth-overview h1{color:#14384b}
.worker-portal .auth-overview p{color:#536e7d}
.worker-portal .auth-overview-bottom{color:#52717e}
.worker-portal .auth-route-line{background:#218f86}
.worker-portal .auth-layout{border-color:#d9e5ea}
.admin-portal .auth-overview{background:radial-gradient(circle at 15% 87%,rgba(37,166,155,.21),transparent 49%),linear-gradient(145deg,#153f53 0%,#0c2b3e 55%,#071b2a 100%)}
.admin-portal .auth-card #entry .primary-btn{background:#133b51;box-shadow:0 10px 22px rgba(12,43,62,.16)}
.admin-portal .auth-card #entry .primary-btn:hover{background:#0b2b3c}
.admin-portal .auth-card .auth-card-title h2{color:#0d2d40}
.admin-portal .training-chip{background:#eef5f8;color:#1b5269;border-color:#dce9ef}
.admin-portal .live-dot{background:#2f90a5;box-shadow:0 0 0 4px rgba(47,144,165,.12)}
@media(max-width:820px){
  .worker-portal .auth-overview{background:transparent;padding:4px 3px 0}
  .worker-portal .auth-overview::before{display:none}
  .worker-portal .auth-overview p{color:#657788}
  .admin-portal .auth-layout{
    gap:0;border:1px solid #dce6eb;border-radius:19px;
    overflow:hidden;background:#fff;box-shadow:0 12px 33px rgba(12,38,57,.075);
  }
  .admin-portal .auth-overview{padding:28px 24px 26px;color:#fff;min-height:auto}
  .admin-portal .auth-overview h1{color:white;margin:13px 0 10px;font-size:clamp(27px,7vw,35px)}
  .admin-portal .auth-overview p{color:#c8dce4;font-size:13px}
  .admin-portal .auth-overline{color:#9de3da}
  .admin-portal .auth-overline span{color:rgba(255,255,255,.42)}
  .admin-portal .auth-card.secure-card{
    padding:24px 21px 26px;border:0;border-radius:0;box-shadow:none;
  }
  .admin-portal .auth-card-title{margin-bottom:20px}
}
@media(max-width:440px){
  .admin-portal .auth-overview{padding:24px 20px}
  .admin-portal .auth-card.secure-card{padding:23px 19px}
}

/* Staff password management — reuse canonical form and button patterns */
.secure-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px}
.password-change-card{max-width:510px}
.password-change-card .form-actions{align-items:center}
.password-change-card .form-actions button{min-height:47px}
.password-change-card .form-actions .primary-btn{flex:1;min-width:168px}
.password-change-card .secure-help{font-size:12px;line-height:1.7;margin-top:17px}
@media(max-width:560px){
  .secure-toolbar-actions{justify-content:stretch;width:100%}
  .secure-toolbar-actions button{flex:1}
  .password-change-card .form-actions{flex-direction:column;align-items:stretch}
  .password-change-card .form-actions button{width:100%}
}

/* Official-grade mobile examination and detailed supervisor review */
.exam-secure{max-width:920px;margin-inline:auto;padding:clamp(21px,4vw,39px)}
.exam-secure .exam-top{display:flex;justify-content:space-between;align-items:center;gap:15px}
.exam-timer{display:inline-flex;align-items:center;justify-content:center;min-width:100px;padding:9px 14px;border-radius:11px;background:#ecf5f6;color:#0a4e5b;font-weight:800;font-size:19px;font-variant-numeric:tabular-nums;direction:ltr}
.exam-answer-count{font-size:13px;color:#607788;margin:9px 0 23px}
.exam-secure .secure-progress{height:8px;border-radius:12px;overflow:hidden;background:#e5edf1;margin-top:18px}
.exam-secure .secure-progress span{height:100%;background:#158a82;border-radius:12px;display:block;transition:width .2s}
.exam-secure h2{font-size:clamp(19px,2.4vw,27px);line-height:1.5;font-weight:790;color:#13394c;margin-bottom:21px}
.exam-secure .choice{display:flex;align-items:center;gap:15px;text-align:right;line-height:1.5;min-height:61px;border-radius:13px;padding:12px 16px}
.exam-secure .choice span{flex:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid #c9dade;border-radius:9px;font-weight:800}
.exam-secure .choice.selected{border-color:#10877f;background:#eaf7f4}
.exam-secure .choice.selected span{background:#0f827b;color:white;border-color:#0f827b}
.exam-live-save{font-size:12px;color:#627989;line-height:1.5;margin:18px 0 12px}
.exam-secure .form-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.review-page,.review-decision{max-width:1090px;margin:0 auto 22px}
.review-summary{display:grid;grid-template-columns:minmax(170px,220px) 1fr;gap:25px;align-items:stretch;margin:20px 0 12px}
.review-score{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;background:#edf7f5;border:1px solid #d3ebe6;padding:22px;border-radius:17px;color:#144a55}
.review-score span{font-size:13px;font-weight:750}
.review-score strong{font-size:clamp(43px,5vw,60px);line-height:1.2;font-weight:850;font-variant-numeric:tabular-nums}
.review-score small{font-size:12px;color:#49717b}
.review-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.review-metrics>div{border:1px solid #e0e9ee;background:#fbfdfd;border-radius:14px;padding:20px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-align:center}
.review-metrics strong{font-size:28px;color:#1b4255;font-variant-numeric:tabular-nums}
.review-metrics span{font-size:12px;color:#657d8e}
.review-help{font-size:12px;color:#64798a;margin:15px 0 22px;line-height:1.65}
.review-list{display:grid;gap:14px}
.review-question{border:1px solid #dce6eb;border-radius:14px;padding:20px;background:#fff}
.review-question.is-correct{border-right:4px solid #168a70}
.review-question.is-wrong{border-right:4px solid #c46b43}
.review-question-head{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px}
.review-number{color:#6d8090;font-weight:700}
.review-verdict{padding:6px 11px;border-radius:999px;font-weight:800;white-space:nowrap}
.is-correct .review-verdict{color:#14785f;background:#e9f7f1}
.is-wrong .review-verdict{color:#ad5633;background:#fdf0eb}
.review-question h3{font-size:17px;font-weight:760;color:#14384b;line-height:1.6;margin:13px 0 19px}
.review-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
.review-answer{border-radius:10px;padding:13px 16px;background:#f0f5f7}
.review-answer.right{background:#edf8f3}
.review-answer.wrong{background:#fff3ec}
.review-answer dt{font-size:11px;font-weight:800;margin:0 0 5px;color:#607888}
.review-answer dd{font-size:14px;line-height:1.55;font-weight:680;margin:0;color:#173d50;overflow-wrap:anywhere}
.review-explanation{background:#f6f8fa;padding:11px 14px;border-radius:9px;font-size:12px;color:#657b8a;line-height:1.55;margin:14px 0 0}
.review-decision{padding:clamp(22px,3vw,35px)}
.review-decision form{display:grid;gap:15px}
@media(max-width:720px){
 .exam-secure{padding:19px 17px}
 .exam-secure .choice{min-height:57px;padding:11px 12px}
 .exam-secure .form-actions{display:grid;grid-template-columns:1fr 1fr}
 .exam-secure .form-actions button{width:100%;min-width:0}
 .review-summary{display:block;margin:16px 0 12px}
 .review-score{padding:16px;margin-bottom:12px}
 .review-metrics{gap:7px}
 .review-metrics>div{padding:14px 6px}
 .review-metrics strong{font-size:24px}
 .review-metrics span{font-size:10px}
 .review-question{padding:15px 14px}
 .review-question h3{font-size:15px}
 .review-answers{grid-template-columns:1fr;gap:8px}
 .review-question-head{align-items:flex-start}
 .review-verdict{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.exam-secure .secure-progress span{transition:none}}
