:root {
  color-scheme: light;
  --navy: #123766;
  --navy-deep: #082443;
  --blue: #1769aa;
  --blue-soft: #eaf3fb;
  --red: #c92b35;
  --green: #16734b;
  --gold: #b3873d;
  --ink: #17212d;
  --muted: #5c6877;
  --line: #d7dee7;
  --line-dark: #b7c3d2;
  --surface: #fff;
  --background: #f4f6f8;
  --shadow: 0 18px 55px rgba(15, 41, 69, .12);
  --radius: 6px;
  font-family: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--background); }
body.exam-active { overflow: hidden; background: #edf1f5; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
.hidden { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 8px;
  left: 8px;
  padding: 12px 18px;
  color: #fff;
  background: var(--navy-deep);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.official-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  color: #405266;
  border-bottom: 1px solid #dce2e9;
  background: #f8fafb;
  font-size: 12px;
}
.official-bar > div { display: flex; align-items: center; gap: 8px; }
.flag-mark {
  width: 20px;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(145deg, #d02f3b 0 48%, #fff 48% 52%, #1c5c9d 52%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
}
.official-code { color: #708092; font-weight: 700; letter-spacing: .08em; }

.site-header { background: #fff; border-bottom: 1px solid #cfd8e3; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  min-height: 108px;
  margin: auto;
  padding: 16px 24px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand span { display: grid; grid-template-columns: auto auto; align-items: end; column-gap: 10px; }
.brand small { grid-column: 1 / -1; color: #59697b; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.brand strong { color: var(--navy-deep); font-family: Georgia, "Batang", serif; font-size: 31px; line-height: 1.15; letter-spacing: -.08em; }
.brand em { align-self: center; color: #697a8b; font-family: Georgia, "Batang", serif; font-size: 12px; font-style: normal; letter-spacing: .16em; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.network-state { display: inline-flex; align-items: center; gap: 7px; color: #657485; font-size: 12px; }
.network-state i { width: 8px; height: 8px; border-radius: 50%; background: #9aa7b5; }
.network-state.online i { background: #19905f; box-shadow: 0 0 0 4px rgba(25, 144, 95, .1); }
.network-state.offline { color: var(--red); }
.network-state.offline i { background: var(--red); }
.text-button { padding: 0; color: #4e5d6d; border: 0; border-bottom: 1px solid #8b97a4; background: none; cursor: pointer; font-size: 12px; }

.global-nav { color: #fff; background: var(--navy); border-top: 1px solid #0c315a; }
.global-nav > div { display: flex; max-width: 1180px; margin: auto; padding: 0 24px; }
.global-nav a {
  position: relative;
  min-width: 155px;
  padding: 18px 24px;
  text-align: center;
  text-decoration: none;
  border-left: 1px solid rgba(255, 255, 255, .1);
  font-size: 15px;
  font-weight: 700;
}
.global-nav a:last-child { border-right: 1px solid rgba(255, 255, 255, .1); }
.global-nav a:hover, .global-nav a:focus-visible { background: rgba(255, 255, 255, .08); }
.global-nav a.active::after { position: absolute; right: 22px; bottom: 0; left: 22px; height: 4px; content: ""; background: #f4ca67; }

main { max-width: 1180px; min-height: 520px; margin: auto; padding: 38px 24px 70px; }
.service-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; border-bottom: 2px solid #253d58; padding-bottom: 20px; }
.breadcrumb { display: block; margin-bottom: 14px; color: #718092; font-size: 12px; }
.service-heading h1 { margin: 0 0 8px; color: #142c47; font-size: 32px; letter-spacing: -.045em; }
.service-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.service-id { color: #8a97a5; font-family: Georgia, serif; font-size: 11px; letter-spacing: .16em; }

.page-notice { margin-bottom: 20px; padding: 14px 16px; color: #7c2830; border: 1px solid #ebbbc0; background: #fff3f4; font-size: 13px; line-height: 1.6; }
.page-notice.info { color: #194f78; border-color: #bcd8ed; background: #eef7fd; }

.login-view {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  min-height: 410px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.login-copy { padding: 64px 68px; }
.eyebrow, .dialog-kicker { display: block; margin-bottom: 10px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.login-copy h2 { max-width: 570px; margin: 0 0 20px; color: var(--navy-deep); font-size: 30px; line-height: 1.35; letter-spacing: -.045em; }
.login-copy > p { max-width: 650px; margin: 0 0 30px; color: #536273; font-size: 14px; line-height: 1.85; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid #aebaca;
  border-radius: 4px;
  background: #fff;
  color: #273849;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: border-color .15s, background .15s, transform .05s;
}
.button:hover { background: #f5f7f9; border-color: #8293a7; }
.button:active { transform: translateY(1px); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [role="button"]:focus-visible {
  outline: 3px solid rgba(23, 105, 170, .25);
  outline-offset: 2px;
}
.button.primary { color: #fff; border-color: var(--navy); background: var(--navy); }
.button.primary:hover { border-color: var(--navy-deep); background: var(--navy-deep); }
.button.danger { color: #fff; border-color: #a51f29; background: #b72832; }
.button.danger:hover { background: #921b24; }
.button.quiet { background: #f8fafc; }
.button.wide { width: 100%; }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.discord-button { gap: 11px; min-width: 250px; }
.discord-symbol { display: grid; width: 25px; height: 25px; place-items: center; border: 2px solid rgba(255, 255, 255, .8); border-radius: 50%; font-family: Arial, sans-serif; font-size: 12px; }
.login-copy .login-footnote { margin: 15px 0 0; color: #7c8998; font-size: 11px; }
.login-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(rgba(6, 34, 62, .78), rgba(10, 48, 82, .92)),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, .035) 14px 15px);
}
.login-visual::before, .login-visual::after { position: absolute; width: 230px; height: 230px; content: ""; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; }
.login-visual::after { width: 300px; height: 300px; }
.login-visual .seal { z-index: 1; display: grid; width: 104px; height: 104px; margin-bottom: 24px; place-items: center; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; background: rgba(255, 255, 255, .08); }
.login-visual img { width: 70px; height: 70px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .3)); }
.login-visual strong { z-index: 1; font-family: Georgia, "Batang", serif; font-size: 23px; line-height: 1.6; }
.login-visual span { z-index: 1; margin-top: 14px; color: #bdcede; font-size: 11px; letter-spacing: .15em; }

.dashboard { display: grid; gap: 24px; }
.candidate-card {
  display: grid;
  grid-template-columns: 54px minmax(170px, 1fr) minmax(310px, 1.4fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 100px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  background: #fff;
}
.candidate-avatar { display: grid; width: 48px; height: 48px; place-items: center; color: #fff; border-radius: 50%; background: var(--navy); font-size: 17px; font-weight: 800; }
.candidate-main { display: flex; flex-direction: column; gap: 3px; }
.candidate-main > span { color: #718092; font-size: 11px; }
.candidate-main strong { color: #172e48; font-size: 18px; }
.candidate-main small { color: #6e7c8c; }
.candidate-details { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-right: 1px solid var(--line); border-left: 1px solid var(--line); }
.candidate-details div { padding: 0 24px; }
.candidate-details div + div { border-left: 1px solid var(--line); }
.candidate-details dt { margin-bottom: 5px; color: #718092; font-size: 11px; }
.candidate-details dd { margin: 0; color: #273a4e; font-size: 13px; font-weight: 750; }
.candidate-status { padding: 7px 12px; color: var(--green); border: 1px solid #acd4c2; background: #f0faf5; font-size: 11px; font-weight: 800; }
.candidate-status.error { color: var(--red); border-color: #ebbbc0; background: #fff3f4; }

.exam-section { border: 1px solid var(--line); background: #fff; }
.section-heading { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 16px; }
.section-heading span { color: var(--blue); font-size: 11px; font-weight: 800; }
.section-heading h2 { margin: 5px 0 0; color: #172e48; font-size: 22px; letter-spacing: -.04em; }
.section-heading .button { min-height: 34px; padding: 0 13px; font-size: 12px; }
.filter-tabs { display: flex; padding: 0 24px; border-bottom: 1px solid var(--line); }
.filter-tabs button { position: relative; padding: 13px 22px; color: #687788; border: 0; background: none; cursor: pointer; font-size: 13px; font-weight: 700; }
.filter-tabs button.active { color: var(--navy); }
.filter-tabs button.active::after { position: absolute; right: 12px; bottom: -1px; left: 12px; height: 3px; content: ""; background: var(--navy); }
.exam-list { min-height: 220px; padding: 0 24px 24px; }
.exam-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px auto;
  align-items: center;
  gap: 24px;
  padding: 24px 4px;
  border-bottom: 1px solid #e1e6ec;
}
.exam-item:last-child { border-bottom: 0; }
.exam-title-wrap { min-width: 0; }
.exam-badges { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.status-badge, .type-badge { display: inline-flex; padding: 4px 8px; font-size: 10px; font-weight: 800; }
.status-badge.available { color: #116543; border: 1px solid #a8d2bf; background: #eef9f4; }
.status-badge.upcoming { color: #31698e; border: 1px solid #b4d2e6; background: #eff7fc; }
.status-badge.ended { color: #66717e; border: 1px solid #ced5dd; background: #f3f5f7; }
.status-badge.submitted { color: #664c14; border: 1px solid #dbc58e; background: #fff9e9; }
.type-badge { color: #5e6e80; border: 1px solid #d4dbe3; background: #fff; }
.exam-title-wrap h3 { overflow: hidden; margin: 0 0 7px; color: #172d47; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.exam-title-wrap p { overflow: hidden; margin: 0; color: #6b7888; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.exam-facts { display: grid; grid-template-columns: 1.7fr .75fr .8fr; margin: 0; }
.exam-facts div { padding: 2px 18px; border-left: 1px solid var(--line); }
.exam-facts dt { margin-bottom: 5px; color: #7a8795; font-size: 10px; }
.exam-facts dd { margin: 0; color: #344659; font-size: 12px; font-weight: 700; }
.exam-item .button { min-width: 94px; min-height: 38px; padding: 0 14px; font-size: 12px; }
.empty-state { padding: 58px 20px; color: #708092; text-align: center; }
.empty-state strong { display: block; margin-bottom: 8px; color: #34485c; font-size: 15px; }
.loading-list { display: grid; gap: 15px; padding-top: 20px; }
.exam-skeleton { height: 95px; border-radius: 4px; background: linear-gradient(90deg, #f1f3f6, #fafbfc, #f1f3f6); background-size: 220% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }

.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.guide-card { display: flex; gap: 20px; min-height: 160px; padding: 24px; border: 1px solid #cbd7e3; background: #f8fbfe; }
.guide-card.warning { border-color: #e1d4b6; background: #fffbf1; }
.guide-number { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; color: #fff; background: var(--navy); font-family: Georgia, serif; font-size: 14px; }
.guide-card.warning .guide-number { background: #8b6c2f; }
.guide-card h2 { margin: 0 0 11px; color: #213a55; font-size: 16px; }
.guide-card ol { margin: 0; padding-left: 18px; color: #59697a; font-size: 12px; line-height: 2; }
.guide-card p { margin: 0; color: #665e4d; font-size: 12px; line-height: 1.85; }

.site-footer { display: flex; align-items: center; justify-content: space-between; min-height: 128px; padding: 28px max(24px, calc((100% - 1132px) / 2)); color: #aab7c4; background: #253848; font-size: 11px; }
.site-footer > div:first-child { display: flex; align-items: center; gap: 13px; }
.site-footer img { width: 42px; height: 42px; object-fit: contain; filter: grayscale(1); opacity: .75; }
.site-footer p { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.site-footer strong { color: #e2e8ee; font-size: 13px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #dbe3ea; }

dialog { color: var(--ink); }
.sheet-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 34px;
  overflow: auto;
  border: 0;
  border-top: 5px solid var(--navy);
  background: #fff;
  box-shadow: 0 28px 90px rgba(1, 18, 35, .32);
}
.sheet-dialog::backdrop { background: rgba(8, 27, 47, .68); backdrop-filter: blur(2px); }
.sheet-dialog h2 { margin: 0 42px 12px 0; color: #122d49; font-size: 25px; letter-spacing: -.04em; }
.dialog-close { position: absolute; top: 20px; right: 22px; width: 34px; height: 34px; padding: 0; color: #607083; border: 0; background: #f2f5f7; cursor: pointer; font-size: 25px; line-height: 1; }
.detail-description { margin: 0 0 22px; color: #627182; font-size: 13px; line-height: 1.75; white-space: pre-wrap; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 20px; border-top: 2px solid #30485f; border-bottom: 1px solid var(--line); }
.detail-grid div { display: grid; grid-template-columns: 88px 1fr; min-height: 48px; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--line); }
.detail-grid div:nth-last-child(-n+2) { border-bottom: 0; }
.detail-grid div:nth-child(odd) { border-right: 1px solid var(--line); }
.detail-grid dt { color: #637284; font-size: 11px; font-weight: 700; }
.detail-grid dd { margin: 0; color: #2c4055; font-size: 12px; font-weight: 750; }
.instruction-box { padding: 17px 18px; border: 1px solid #dce3ea; background: #f7f9fb; }
.instruction-box h3 { margin: 0 0 8px; color: #30475e; font-size: 13px; }
.instruction-box div { max-height: 128px; overflow: auto; color: #5c6977; font-size: 12px; line-height: 1.75; white-space: pre-wrap; }
.consent-row, .pledge-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; color: #4d5b6a; font-size: 12px; line-height: 1.6; }
.consent-row input, .pledge-row input { flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--navy); }
.dialog-message { margin-top: 16px; padding: 11px 13px; color: #872631; border: 1px solid #ebbbc0; background: #fff3f4; font-size: 12px; line-height: 1.55; }
.dialog-message.ok { color: #146342; border-color: #add4c2; background: #eff9f4; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }

.preflight-lead { margin: 0 0 20px; color: #617080; font-size: 13px; line-height: 1.7; }
.check-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid #2f475f; }
.check-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 66px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.check-list li > i { position: relative; width: 22px; height: 22px; border: 2px solid #9aa8b7; border-radius: 50%; }
.check-list li > span { display: flex; flex-direction: column; gap: 4px; }
.check-list li strong { color: #2e4257; font-size: 13px; }
.check-list li small { color: #7a8795; font-size: 11px; }
.check-list li em { color: #748293; font-size: 11px; font-style: normal; font-weight: 750; }
.check-list li.pass > i { border-color: var(--green); background: var(--green); }
.check-list li.pass > i::after { position: absolute; top: 3px; left: 6px; width: 5px; height: 9px; content: ""; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check-list li.pass em { color: var(--green); }
.check-list li.fail > i { border-color: var(--red); background: var(--red); }
.check-list li.fail > i::after { position: absolute; top: 0; left: 5px; content: "×"; color: #fff; font-size: 16px; font-style: normal; }
.check-list li.fail em { color: var(--red); }

.exam-workspace { position: fixed; z-index: 5000; inset: 0; display: flex; flex-direction: column; color: #1d2c3b; background: #edf1f5; user-select: none; }
.exam-workspace input, .exam-workspace textarea, .exam-workspace label { user-select: text; }
.exam-topbar { display: grid; grid-template-columns: minmax(300px, 1fr) auto minmax(240px, 1fr); align-items: center; min-height: 76px; padding: 0 28px; color: #fff; background: var(--navy-deep); box-shadow: 0 3px 14px rgba(8, 30, 51, .22); }
.exam-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.exam-brand img { width: 42px; height: 42px; object-fit: contain; }
.exam-brand span { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.exam-brand small { color: #a9bfd1; font-size: 10px; letter-spacing: .08em; }
.exam-brand strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.secure-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; color: #c6f0db; border: 1px solid rgba(126, 222, 173, .35); background: rgba(35, 145, 89, .15); font-size: 11px; font-weight: 750; }
.secure-status i { width: 8px; height: 8px; border-radius: 50%; background: #56d399; box-shadow: 0 0 0 4px rgba(86, 211, 153, .1); animation: securePulse 1.8s infinite; }
@keyframes securePulse { 50% { opacity: .45; } }
.exam-clock { justify-self: end; display: flex; align-items: baseline; gap: 13px; }
.exam-clock span { color: #a9bdcf; font-size: 11px; }
.exam-clock strong { min-width: 112px; font-variant-numeric: tabular-nums; font-size: 24px; letter-spacing: .04em; }
.exam-clock.warning strong { color: #ffd36a; }
.exam-clock.danger strong { color: #ff858d; animation: timerBlink 1s infinite; }
@keyframes timerBlink { 50% { opacity: .55; } }
.exam-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 0; flex: 1; }
.question-sidebar { overflow: auto; padding: 24px 20px; border-right: 1px solid #cad4df; background: #fff; }
.progress-label { display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.progress-label span { color: #637284; }
.progress-label strong { color: var(--navy); font-size: 12px; }
.progress-track { height: 5px; margin: 10px 0 20px; overflow: hidden; background: #e1e6eb; }
.progress-track i { display: block; width: 0; height: 100%; background: var(--blue); transition: width .2s; }
.question-palette { display: grid; gap: 13px; }
.question-palette:not(.grouped) { grid-template-columns: repeat(5, 1fr); gap: 7px; }
.palette-subject-group { display: grid; gap: 7px; }
.palette-subject-group > strong { overflow: hidden; padding-bottom: 5px; color: #38536c; border-bottom: 1px solid #d7e0e7; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.palette-subject-buttons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.question-palette button { display: grid; aspect-ratio: 1; min-width: 0; place-items: center; color: #59697a; border: 1px solid #cfd7df; background: #fff; cursor: pointer; font-size: 11px; font-weight: 750; }
.question-palette button.answered { color: #fff; border-color: var(--blue); background: var(--blue); }
.question-palette button.current { outline: 3px solid #e8b94f; outline-offset: 1px; }
.question-palette button.flagged::after { position: absolute; margin: -23px 0 0 22px; color: var(--red); content: "●"; font-size: 8px; }
.palette-key { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; color: #748292; font-size: 9px; }
.palette-key span { display: flex; align-items: center; gap: 4px; }
.palette-key i { width: 9px; height: 9px; border: 1px solid #cbd4dd; background: #fff; }
.palette-key i.answered { border-color: var(--blue); background: var(--blue); }
.palette-key i.current { border: 2px solid #d6a328; }
.violation-count { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding: 13px 0; color: #6a7786; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 10px; }
.violation-count strong { color: var(--red); font-size: 12px; }
.violation-count b { font: inherit; }
.question-stage { position: relative; width: min(100%, 970px); min-height: 0; margin: 0 auto; padding: 46px clamp(30px, 6vw, 82px) 90px; overflow: auto; background: #fff; box-shadow: 0 0 35px rgba(27, 51, 74, .06); }
.question-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 25px; }
.question-meta span { padding: 5px 9px; color: var(--blue); border: 1px solid #b9d5e9; background: #eef7fc; font-size: 10px; font-weight: 800; }
.question-meta .question-subject { color: #286044; border-color: #b5d5c5; background: #f0f8f4; }
.question-meta strong { margin-left: auto; color: #637284; font-size: 12px; }
.shared-passage { margin: 0 0 30px; border: 1px solid #bfcbd6; border-top: 3px solid #274f72; background: #fbfcfd; }
.shared-passage-heading { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #d7e0e7; background: #f2f6f9; }
.shared-passage-heading span { flex: 0 0 auto; padding: 3px 6px; color: #fff; background: #274f72; font-size: 9px; font-weight: 850; }
.shared-passage-heading h3 { margin: 0; color: #2a4259; font-size: 13px; }
.shared-passage-instruction { margin: 0; padding: 13px 17px; color: #254d70; border-bottom: 1px dashed #c9d4de; background: #f8fbfd; font-size: 13px; font-weight: 800; line-height: 1.65; white-space: pre-wrap; }
.shared-passage-content { padding: 22px 20px; color: #293e52; font-size: 15px; line-height: 1.95; white-space: pre-wrap; }
.passage-materials { margin: 0; padding: 16px; border-bottom: 1px solid #d7e0e7; background: #f8fafc; }
.question-stage h2 { margin: 0 0 30px; color: #1b3047; font-size: clamp(18px, 2vw, 23px); line-height: 1.65; letter-spacing: -.025em; white-space: pre-wrap; }
.question-materials { display: grid; gap: 14px; margin: -8px 0 30px; }
.question-materials.hidden { display: none; }
.question-material { margin: 0; padding: 12px; border: 1px solid #c9d4de; background: #f7f9fb; }
.question-material button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.question-material img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid #aebbc6; background: #fff; }
.question-material figcaption { margin-top: 8px; color: #657587; text-align: center; font-size: 10px; line-height: 1.5; }
.material-lightbox { position: fixed; z-index: 2500; inset: 0; overflow: auto; padding: 54px 22px 30px; background: rgba(3, 12, 21, .94); }
.material-lightbox.hidden { display: none; }
.material-lightbox > div { width: max-content; min-width: min(100%, 320px); max-width: 1500px; margin: 0 auto; }
.material-lightbox img { display: block; max-width: min(1500px, calc(100vw - 44px)); height: auto; margin: 0 auto; background: #fff; box-shadow: 0 16px 60px rgba(0, 0, 0, .5); }
.material-lightbox p { margin: 12px auto 0; color: #e5edf4; text-align: center; font-size: 12px; line-height: 1.6; }
.material-lightbox-close { position: fixed; z-index: 1; top: 14px; right: 18px; display: grid; width: 36px; height: 36px; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: rgba(15,30,44,.88); font-size: 24px; cursor: pointer; }
.answer-area { display: grid; gap: 11px; }
.choice-row { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; min-height: 54px; padding: 8px 14px; color: #415164; border: 1px solid #cad4df; cursor: pointer; line-height: 1.55; }
.choice-row:hover { border-color: #779ab8; background: #f7fbfe; }
.choice-row.selected { color: #163e66; border: 2px solid var(--blue); background: #eff7fc; padding: 7px 13px; font-weight: 700; }
.choice-row input { position: absolute; opacity: 0; pointer-events: none; }
.choice-number { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid #aebbc8; border-radius: 50%; font-size: 11px; }
.choice-row.selected .choice-number { color: #fff; border-color: var(--blue); background: var(--blue); }
.text-answer-label { display: block; color: #4e5f71; font-size: 12px; font-weight: 700; }
.text-answer {
  width: 100%;
  min-height: 52px;
  margin-top: 9px;
  padding: 14px;
  color: #21354a;
  border: 1px solid #bfcbd7;
  border-radius: 0;
  background: #fff;
  line-height: 1.65;
  resize: vertical;
}
.text-answer.essay { min-height: 230px; }
.char-count { margin-top: 7px; color: #7b8998; text-align: right; font-size: 10px; }
.save-state { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 18px; color: #708092; font-size: 10px; }
.save-state i { width: 7px; height: 7px; border-radius: 50%; background: #9ba8b6; }
.save-state.saving i { background: #d5a72f; animation: securePulse .7s infinite; }
.save-state.saved { color: var(--green); }
.save-state.saved i { background: var(--green); }
.save-state.error { color: var(--red); }
.save-state.error i { background: var(--red); }
.question-actions { position: sticky; bottom: -70px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 9px; margin-top: 48px; padding: 16px 0 0; border-top: 1px solid var(--line); background: linear-gradient(transparent, #fff 16px); }
.question-actions .button:last-child { justify-self: end; }
.question-actions .button:first-child { justify-self: start; }
.question-actions .button { min-width: 110px; }
.question-actions #flagQuestion { min-width: 94px; color: #7c5f1f; }
.question-actions #flagQuestion.active { border-color: #c7a24e; background: #fff9e9; }
.exam-footer { display: flex; align-items: center; justify-content: space-between; min-height: 66px; padding: 10px 28px; border-top: 1px solid #c5d0da; background: #fff; box-shadow: 0 -4px 18px rgba(28, 48, 68, .06); }
.exam-footer p { margin: 0; color: #667586; font-size: 10px; }
.exam-footer .button { min-width: 120px; }

.modal-backdrop, .security-overlay { position: fixed; z-index: 7000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(5, 24, 42, .76); backdrop-filter: blur(3px); }
.confirm-card { width: min(490px, 100%); padding: 36px; text-align: center; border-top: 5px solid var(--navy); background: #fff; box-shadow: 0 25px 80px rgba(0, 0, 0, .3); }
.confirm-icon, .result-mark { display: grid; width: 54px; height: 54px; margin: 0 auto 18px; place-items: center; color: #fff; border-radius: 50%; background: var(--navy); font-size: 24px; font-weight: 800; }
.confirm-card h2 { margin: 0 0 9px; color: #15304c; font-size: 21px; }
.confirm-card > p { margin: 0; color: #627182; font-size: 12px; }
.unanswered-box { margin-top: 18px; padding: 12px; color: #6f5420; border: 1px solid #dfca97; background: #fff9e9; font-size: 11px; line-height: 1.6; }
.confirm-card .dialog-actions { justify-content: center; }
.security-overlay { z-index: 9000; color: #fff; text-align: center; background: rgba(74, 10, 16, .94); }
.security-overlay > div { max-width: 580px; }
.security-icon { display: grid; width: 78px; height: 78px; margin: auto; place-items: center; border: 3px solid #fff; border-radius: 50%; font-size: 43px; font-weight: 300; }
.security-overlay h2 { margin: 24px 0 10px; font-size: 28px; }
.security-overlay p { margin: 0 0 22px; color: #f5cbd0; line-height: 1.7; }
.security-overlay strong { display: block; font-size: 13px; letter-spacing: .04em; }
.result-dialog { text-align: center; }
.result-dialog .dialog-kicker { margin-bottom: 8px; }
.result-dialog h2 { margin-right: 0; }
.result-dialog > p { color: #637284; font-size: 13px; line-height: 1.7; }
.result-details { margin: 22px 0; border-top: 2px solid #2f475f; }
.result-details div { display: flex; justify-content: space-between; padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: 12px; }
.result-details dt { color: #6c7a89; }
.result-details dd { margin: 0; color: #2d4359; font-weight: 750; }

@media (max-width: 920px) {
  .global-nav a { min-width: 0; flex: 1; padding: 16px 10px; }
  .candidate-card { grid-template-columns: 54px 1fr auto; }
  .candidate-details { grid-column: 1 / -1; grid-row: 2; border: 0; border-top: 1px solid var(--line); padding-top: 14px; }
  .candidate-details div:first-child { padding-left: 0; }
  .exam-item { grid-template-columns: 1fr auto; gap: 16px; }
  .exam-facts { grid-column: 1 / -1; grid-row: 2; }
  .exam-facts div:first-child { padding-left: 0; border-left: 0; }
  .exam-topbar { grid-template-columns: minmax(0, 1fr) auto; }
  .secure-status { display: none; }
  .exam-body { grid-template-columns: 200px minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .official-bar { padding: 0 15px; }
  .official-code { display: none; }
  .header-inner { min-height: 82px; padding: 12px 16px; }
  .brand img { width: 44px; height: 44px; }
  .brand strong { font-size: 24px; }
  .brand em, .brand small { font-size: 9px; }
  .network-state { display: none; }
  .global-nav { overflow-x: auto; }
  .global-nav > div { width: max-content; padding: 0; }
  .global-nav a { min-width: 125px; font-size: 12px; }
  main { padding: 24px 14px 50px; }
  .service-heading { align-items: flex-start; }
  .service-heading h1 { font-size: 26px; }
  .service-id { display: none; }
  .login-view { grid-template-columns: 1fr; }
  .login-copy { padding: 36px 25px; }
  .login-copy h2 { font-size: 24px; }
  .login-visual { display: none; }
  .candidate-card { grid-template-columns: 48px 1fr; padding: 16px; }
  .candidate-status { grid-column: 1 / -1; text-align: center; }
  .candidate-details { grid-template-columns: 1fr; }
  .candidate-details div { padding: 8px 0; }
  .candidate-details div + div { border: 0; border-top: 1px solid var(--line); }
  .section-heading, .filter-tabs, .exam-list { padding-right: 15px; padding-left: 15px; }
  .filter-tabs { overflow-x: auto; }
  .filter-tabs button { white-space: nowrap; padding: 12px 15px; }
  .exam-item { grid-template-columns: 1fr; gap: 14px; }
  .exam-title-wrap p { white-space: normal; }
  .exam-facts { grid-column: auto; grid-row: auto; grid-template-columns: 1fr; }
  .exam-facts div, .exam-facts div:first-child { padding: 7px 0; border: 0; border-top: 1px solid #e5e9ee; }
  .exam-item .button { width: 100%; }
  .guide-grid { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 22px; }
  .footer-links { flex-wrap: wrap; gap: 10px 18px; }
  .sheet-dialog { width: calc(100vw - 18px); padding: 28px 20px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid div, .detail-grid div:nth-child(odd), .detail-grid div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .detail-grid div:last-child { border-bottom: 0; }
  .dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .dialog-actions .button { padding: 0 10px; }
  .exam-topbar { min-height: 66px; padding: 0 14px; }
  .exam-brand img { width: 33px; height: 33px; }
  .exam-brand small { display: none; }
  .exam-brand strong { max-width: 150px; font-size: 12px; }
  .exam-clock { gap: 5px; }
  .exam-clock span { display: none; }
  .exam-clock strong { min-width: 88px; font-size: 18px; text-align: right; }
  .exam-body { display: block; }
  .question-sidebar { display: flex; align-items: center; gap: 12px; height: 60px; padding: 9px 12px; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid #cad4df; }
  .progress-label, .progress-track, .palette-key, .violation-count { display: none; }
  .question-palette { display: flex; gap: 6px; }
  .palette-subject-group { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
  .palette-subject-group > strong { max-width: 74px; padding: 0 7px 0 0; border: 0; border-right: 1px solid #d7e0e7; }
  .palette-subject-buttons { display: flex; gap: 6px; }
  .question-palette button { flex: 0 0 35px; width: 35px; height: 35px; aspect-ratio: auto; }
  .question-stage { height: calc(100vh - 192px); padding: 28px 18px 70px; }
  .shared-passage-content { padding: 17px 15px; font-size: 14px; }
  .question-stage h2 { margin-bottom: 22px; }
  .question-actions { grid-template-columns: 1fr 1fr; bottom: -52px; }
  .question-actions #flagQuestion { grid-column: 1 / -1; grid-row: 1; width: 100%; }
  .question-actions .button { min-width: 0; width: 100%; }
  .exam-footer { min-height: 66px; padding: 10px 14px; }
  .exam-footer p { display: none; }
  .exam-footer .button { width: 100%; }
}

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