:root {
  color-scheme: light;
  --navy: #123a67;
  --navy-deep: #082844;
  --saffron: #ef8c1b;
  --green: #16734b;
  --red: #b4232d;
  --ink: #202b36;
  --muted: #5f6d78;
  --line: #c8d0d7;
  --paper: #ffffff;
  --wash: #eef3f6;
  --focus: #ffbf47;
  --shadow: 0 8px 22px rgba(13, 42, 66, .12);
  font-family: "Noto Sans Devanagari", "Nirmala UI", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #e5eaee; font-size: 14px; }
body[data-theme="vault"] { --navy: #3d2463; --navy-deep: #27143f; --saffron: #d39b2e; --green: #177264; --wash: #f1eef5; }
body[data-theme="track"] { --navy: #15576a; --navy-deep: #0a3845; --saffron: #d67b26; --green: #2e6c39; --wash: #edf4f2; }
a { color: #0c559b; }
button, input, select, textarea { font: inherit; }
button, .button { min-height: 40px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.simulation-strip {
  min-height: 30px; padding: 6px 16px; color: #fff; background: #8b1d28; font-size: 11px; font-weight: 800;
  letter-spacing: .08em; text-align: center; text-transform: uppercase;
}
.utility-bar { padding: 5px max(16px, calc((100vw - 1180px) / 2)); display: flex; justify-content: flex-end; gap: 18px; color: #34495a; background: #f5f7f8; border-bottom: 1px solid #d5dde2; font-size: 11px; }
.masthead { color: #fff; background: linear-gradient(100deg, var(--navy-deep), var(--navy)); border-bottom: 5px solid var(--saffron); }
.masthead-inner { width: min(1180px, calc(100% - 28px)); min-height: 88px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.emblem { display: flex; align-items: center; gap: 14px; }
.emblem-mark { width: 58px; height: 58px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.75); border-radius: 50%; font-family: Georgia, serif; font-size: 23px; font-weight: 800; }
.emblem h1 { margin: 0; font-family: Georgia, "Noto Serif Devanagari", serif; font-size: clamp(23px, 3vw, 34px); font-weight: 600; }
.emblem p { margin: 3px 0 0; color: rgba(255,255,255,.78); font-size: 11px; letter-spacing: .04em; }
.masthead-code { max-width: 260px; color: rgba(255,255,255,.78); font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; line-height: 1.5; text-align: right; }
.primary-nav { background: #fff; border-bottom: 1px solid #bdc8d0; box-shadow: 0 2px 4px rgba(15,36,55,.08); }
.primary-nav-inner { width: min(1180px, calc(100% - 28px)); margin: auto; display: flex; align-items: stretch; overflow-x: auto; }
.primary-nav a, .primary-nav button { min-width: max-content; padding: 12px 16px; border: 0; border-right: 1px solid #dae0e5; color: #24384a; background: #fff; text-decoration: none; font-size: 12px; font-weight: 700; cursor: pointer; }
.primary-nav a:hover, .primary-nav a[aria-current="page"], .primary-nav button:hover { color: #fff; background: var(--navy); }

.ticker { background: #fff8df; border-bottom: 1px solid #e3cf8a; }
.ticker-inner { width: min(1180px, calc(100% - 28px)); min-height: 36px; margin: auto; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.ticker strong { padding: 4px 9px; color: #fff; background: var(--red); font-size: 10px; text-transform: uppercase; }
.ticker span { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.portal-shell { width: min(1180px, calc(100% - 28px)); margin: 18px auto 34px; }
.breadcrumb { margin-bottom: 10px; color: var(--muted); font-size: 11px; }
.breadcrumb a { color: inherit; }
.grid-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.side-panel, .panel { border: 1px solid var(--line); background: var(--paper); box-shadow: 0 2px 5px rgba(19,48,72,.06); }
.side-title, .panel-title { margin: 0; padding: 11px 14px; color: #fff; background: var(--navy); font-size: 13px; font-weight: 800; }
.side-list { margin: 0; padding: 0; list-style: none; }
.side-list a, .side-list button { width: 100%; min-height: 41px; padding: 9px 12px; display: flex; align-items: center; border: 0; border-bottom: 1px solid #dbe2e7; color: #263b4d; background: #fff; text-align: left; text-decoration: none; font-size: 11px; cursor: pointer; }
.side-list a::before, .side-list button::before { content: "›"; margin-right: 8px; color: var(--saffron); font-size: 18px; }
.side-list a:hover, .side-list button:hover, .side-list [aria-current="page"] { background: #eaf1f7; color: var(--navy); font-weight: 800; }
.side-note { padding: 12px; color: #52616e; background: #f7f9fa; font-size: 10px; line-height: 1.55; }

.content-stack { display: grid; gap: 14px; }
.content-pad { padding: clamp(14px, 2vw, 22px); }
.page-heading { margin: 0 0 5px; color: var(--navy-deep); font-family: Georgia, "Noto Serif Devanagari", serif; font-size: clamp(23px, 3vw, 34px); font-weight: 600; }
.page-subtitle { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.reference-line { margin-top: 13px; padding: 8px 10px; border-left: 4px solid var(--saffron); color: #465867; background: #f6f8f9; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; }
.notice { padding: 11px 13px; border: 1px solid #dfc571; border-left-width: 5px; color: #5f4c16; background: #fff8df; font-size: 11px; line-height: 1.5; }
.notice.info { border-color: #7ba6ca; color: #244b69; background: #edf6fd; }
.notice.success { border-color: #6fa98c; color: #20543d; background: #edf8f2; }
.notice.danger { border-color: #d27a80; color: #721f27; background: #fff0f1; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: #fff; }
.stat { padding: 16px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--navy); font-family: Georgia, serif; font-size: 26px; }
.stat span { color: var(--muted); font-size: 10px; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.service-card { padding: 15px; border: 1px solid #cbd4db; border-top: 4px solid var(--navy); background: #fff; box-shadow: 0 3px 7px rgba(20,43,62,.07); }
.service-card .dept { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.service-card h3 { margin: 8px 0 5px; color: #183a59; font-size: 15px; }
.service-card p { min-height: 34px; margin: 0 0 12px; color: #566674; font-size: 10px; line-height: 1.5; }
.service-meta { margin: 10px 0; padding: 8px 0; display: flex; flex-wrap: wrap; gap: 6px 13px; border-top: 1px dashed #ccd4da; border-bottom: 1px dashed #ccd4da; color: #4d5e6b; font-size: 9px; }

.button, button.primary, button.secondary, button.danger, a.primary, a.secondary {
  padding: 9px 16px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 2px;
  text-decoration: none; font-size: 11px; font-weight: 800; cursor: pointer;
}
.primary { color: #fff !important; border-color: var(--navy) !important; background: var(--navy) !important; }
.secondary { color: var(--navy) !important; border-color: var(--navy) !important; background: #fff !important; }
.danger { color: #fff !important; border-color: var(--red) !important; background: var(--red) !important; }
.button-row { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
button:disabled { opacity: .48; cursor: not-allowed; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 15px; }
.field { display: grid; gap: 5px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label, fieldset legend { color: #273c4e; font-size: 11px; font-weight: 800; }
.required::after { content: " *"; color: var(--red); }
.field small { color: var(--muted); font-size: 9px; line-height: 1.4; }
input, select, textarea { width: 100%; min-height: 41px; padding: 8px 9px; border: 1px solid #9eacb7; border-radius: 2px; color: #1d2c38; background: #fff; }
textarea { min-height: 82px; resize: vertical; }
input[readonly] { color: #4e5f6d; background: #edf1f3; }
fieldset { margin: 0; padding: 13px; border: 1px solid #c7d0d7; }
.check-row { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; line-height: 1.45; }
.check-row input { width: 18px; min-height: 18px; flex: 0 0 auto; margin-top: 1px; }
.captcha { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: end; }
.captcha-code { min-height: 42px; display: grid; place-items: center; border: 1px solid #8597a5; color: #1c3b55; background: repeating-linear-gradient(155deg,#e7edf1 0 2px,#fff 2px 7px); font-family: Georgia, serif; font-size: 21px; font-style: italic; font-weight: 800; letter-spacing: .16em; text-decoration: line-through; }
.form-error { min-height: 17px; margin: 7px 0 0; color: var(--red); font-size: 10px; font-weight: 700; }

.stepper { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); list-style: none; border: 1px solid var(--line); background: #fff; }
.stepper li { min-height: 54px; padding: 9px 8px; display: flex; align-items: center; gap: 7px; border-right: 1px solid var(--line); color: #697782; font-size: 9px; line-height: 1.2; }
.stepper li:last-child { border-right: 0; }
.stepper i { width: 23px; height: 23px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #9aa8b3; border-radius: 50%; font-style: normal; }
.stepper .active { color: #fff; background: var(--navy); font-weight: 800; }
.stepper .active i { color: var(--navy); border-color: #fff; background: #fff; }
.stepper .done { color: #245f45; background: #edf8f2; }
.stepper .done i { color: #fff; border-color: var(--green); background: var(--green); }

.data-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 10px; }
.data-table th, .data-table td { padding: 9px; border: 1px solid #cbd4da; text-align: left; vertical-align: top; }
.data-table th { color: #fff; background: var(--navy); font-weight: 800; }
.data-table tr:nth-child(even) td { background: #f5f8fa; }
.status-pill { padding: 4px 7px; display: inline-block; border-radius: 999px; color: #1f6043; background: #dff2e8; font-size: 9px; font-weight: 800; }
.status-pill.pending { color: #725112; background: #fff0bd; }
.status-pill.objected { color: #85252c; background: #fde4e6; }

.ledger { max-height: 240px; overflow: auto; }
.ledger-entry { padding: 9px 11px; display: grid; grid-template-columns: 104px 1fr; gap: 10px; border-bottom: 1px solid #dce3e7; font-size: 10px; }
.ledger-entry time { color: #6b7983; font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; }
.empty { padding: 30px 18px; color: #657480; background: #f7f9fa; text-align: center; font-size: 11px; }
.credential-box { padding: 13px; border: 1px dashed #7994aa; background: #edf4f9; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; line-height: 1.7; }
.portal-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.portal-card { min-height: 260px; padding: 18px; display: flex; flex-direction: column; border: 1px solid #bfcbd3; border-top: 7px solid var(--card-color, var(--navy)); background: #fff; box-shadow: var(--shadow); }
.portal-card .code { color: #6a7883; font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; letter-spacing: .08em; }
.portal-card h2 { margin: 17px 0 8px; color: #173b5c; font-family: Georgia, serif; font-size: 24px; font-weight: 600; }
.portal-card p { margin: 0 0 14px; color: #566775; font-size: 11px; line-height: 1.6; }
.portal-card .button { margin-top: auto; }

.receipt { padding: 24px; border: 2px solid #293c4b; background: #fff; position: relative; }
.receipt::after { content: "TRAINING COPY"; color: rgba(180,35,45,.08); position: absolute; right: 6%; bottom: 20%; font: 800 46px Georgia,serif; transform: rotate(-26deg); }
.receipt h2 { margin: 0; text-align: center; font-family: Georgia,serif; }
.receipt-code { margin: 16px 0; padding: 12px; border: 1px dashed #667987; background: #f6f8f9; font: 700 16px "SFMono-Regular",Consolas,monospace; text-align: center; }
.toast { max-width: min(390px, calc(100% - 24px)); padding: 12px 15px; border-left: 5px solid var(--green); color: #fff; background: #17384f; box-shadow: var(--shadow); position: fixed; right: 16px; bottom: 16px; z-index: 100; font-size: 11px; transform: translateY(120px); opacity: 0; transition: .25s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.site-footer { padding: 24px 16px; color: #d8e0e6; background: #102b40; border-top: 4px solid var(--saffron); font-size: 10px; }
.site-footer-inner { width: min(1180px, 100%); margin: auto; display: flex; justify-content: space-between; gap: 20px; line-height: 1.6; }
.site-footer strong { color: #fff; }

@media (max-width: 820px) {
  .masthead-inner { min-height: 78px; }
  .masthead-code { display: none; }
  .grid-layout { grid-template-columns: 1fr; }
  .side-panel { order: 2; }
  .stats, .portal-card-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .service-grid { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: repeat(3, 1fr); }
  .stepper li:nth-child(3) { border-right: 0; }
  .stepper li:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  body { font-size: 13px; }
  .simulation-strip { padding-inline: 9px; font-size: 9px; }
  .utility-bar { justify-content: center; }
  .masthead-inner, .primary-nav-inner, .ticker-inner, .portal-shell { width: calc(100% - 16px); }
  .emblem-mark { width: 46px; height: 46px; font-size: 18px; }
  .emblem h1 { font-size: 21px; }
  .emblem p { font-size: 9px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .captcha { grid-template-columns: 104px 1fr; }
  .stepper { display: flex; overflow-x: auto; }
  .stepper li { min-width: 118px; border-bottom: 0 !important; }
  .button-row { justify-content: stretch; }
  .button-row button, .button-row a { flex: 1; }
  .data-table { min-width: 650px; }
  .table-scroll { overflow-x: auto; }
  .ledger-entry { grid-template-columns: 1fr; gap: 3px; }
  .site-footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }

