:root {
  --blue: #005bc8;
  --blue-dark: #063f91;
  --ink: #111827;
  --muted: #667085;
  --line: #d9dee8;
  --soft: #f5f7fb;
  --danger: #e42128;
  --orange: #ff7a00;
  --green: #0a8f59;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Noto Sans KR", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.apply-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: white;
}

.apply-header-inner {
  display: flex;
  width: 100%;
  max-width: 1200px;
  align-items: center;
  justify-content: space-between;
}

.header-actions-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.apply-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.apply-header .brand img {
  width: 42px;
  height: auto;
}

.admin-link,
.online-apply-main button,
.lookup-modal button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--blue);
  background: white;
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.apply-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  max-width: var(--content-max, 1296px);
  margin: 0 auto;
  padding: 54px 24px 100px;
  gap: 58px;
}

.step-panel {
  position: sticky;
  top: 112px;
  align-self: start;
}

.step-visual {
  position: relative;
  min-height: 164px;
  padding: 28px;
  border-radius: 10px 10px 0 0;
  background:
    linear-gradient(rgba(65, 86, 166, 0.84), rgba(65, 86, 166, 0.84)),
    url("../assets/hero-slide-1.jpg") center/cover;
  color: white;
  overflow: hidden;
}

.step-visual::after {
  position: absolute;
  right: -30px;
  bottom: -42px;
  width: 130px;
  height: 130px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.step-visual p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.step-visual h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
  word-break: keep-all;
}

.step-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
}

.step-list button {
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: #344054;
  background: white;
  text-align: left;
}

.step-list button.active,
.step-list button.done {
  background: #f3f5fb;
  color: #4156a6;
}

.step-list button.active {
  box-shadow: inset 4px 0 0 #4156a6;
}

.step-list span {
  flex: 0 0 34px;
  color: var(--blue);
}

.step-list b {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  text-align: left;
  word-break: keep-all;
}

html[lang="en"] .step-list button,
html[lang="vi"] .step-list button,
html[lang="ru"] .step-list button,
html[lang="en"] .side-actions button,
html[lang="vi"] .side-actions button,
html[lang="ru"] .side-actions button {
  font-size: 15px;
}

.site-header .primary-nav > ul > li > a {
  letter-spacing: 0;
  text-transform: none;
}

html:not([lang="ko"]) .site-header .primary-nav > ul > li > a {
  font-size: 14px;
  line-height: 1.35;
}

html[lang="ru"] .step-visual h1,
html[lang="ru"] .step-list b {
  text-align: left;
}

.side-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.apply-content-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 24px;
}

.primary {
  background: var(--blue);
  color: white;
}

.outline {
  border-color: var(--blue);
  background: white;
  color: var(--blue);
}

.small {
  min-height: 36px;
  padding: 0 12px;
}

.apply-content {
  min-width: 0;
}

.step-page {
  display: none;
}

.step-page.active {
  display: block;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 2px solid #20242c;
}

.page-title > span {
  width: 7px;
  height: 24px;
  background: linear-gradient(180deg, #ff6b00 0 35%, #006be6 35% 100%);
}

.page-title p {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.page-title h2 {
  margin: 0;
  font-size: 32px;
}

.page-title em {
  margin-left: auto;
  color: var(--danger);
  font-size: 13px;
  font-style: normal;
}

.notice-box,
.warning-box {
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid #b9d3ff;
  border-radius: 10px;
  background: #f3f8ff;
  color: #344054;
}

.warning-box {
  border-color: #f2b8b8;
  background: #fff2f2;
  color: #b42318;
  font-weight: 800;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.course-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 50px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  cursor: pointer;
}

.course-card::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 1px solid #8a94a6;
  border-radius: 50%;
  transform: translateX(-50%);
  background: white;
}

.course-card.selected::before {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 5px white;
  background: var(--blue);
}

.course-card.selected {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 2px rgba(0, 91, 200, 0.1);
}

.course-card strong {
  font-size: 20px;
}

.course-card span,
.helper-text,
.muted,
.field small {
  color: var(--muted);
  line-height: 1.6;
}

.document-panel {
  padding: 24px;
  border: 1px solid var(--line);
  line-height: 1.75;
}

.document-panel h3 {
  margin: 22px 0 10px;
}

.document-panel h3:first-child {
  margin-top: 0;
}

.document-list {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding-left: 20px;
}

.document-panel ul {
  margin: 0 0 16px;
  padding-left: 22px;
  list-style-position: outside;
}

.document-panel li {
  padding-left: 4px;
  line-height: 1.75;
}

.agreement-card {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fafafa;
}

.agreement-card strong {
  width: 100%;
}

.agree-line,
.final-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #b9d3ff;
  background: #f8fbff;
  font-weight: 700;
}

.agree-line b,
.final-agree b,
.required label::before {
  color: var(--danger);
}

.final-agree.needs-attention {
  border-color: var(--danger);
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.required > label::before {
  content: "* ";
}

.form-section {
  margin-bottom: 34px;
}

.form-section h3 {
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #20242c;
  font-size: 25px;
}

.form-section h4 {
  margin: 28px 0 14px;
  font-size: 17px;
}

.form-section small {
  margin-left: 12px;
  color: var(--danger);
  font-size: 14px;
  font-weight: 400;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field label {
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #cfd5df;
  background: white;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(0, 91, 200, 0.12);
}

.readonly input {
  background: #e5e7eb;
}

.passport-reference {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin: -4px 0 22px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.passport-reference img {
  display: block;
  width: min(86%, 640px);
  height: auto;
  border: 1px solid #cfd5df;
}

.passport-reference p {
  justify-self: stretch;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

textarea {
  min-height: 180px;
  padding: 14px;
  resize: vertical;
}

.split-2,
.split-3 {
  display: grid;
  gap: 16px;
}

.split-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.radio-row {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 22px;
}

.industry-gender-visa-row {
  align-items: start;
}

.industry-gender-visa-row .radio-row {
  flex-wrap: nowrap;
  gap: 18px;
}

.radio-row.wrap {
  flex-wrap: wrap;
}

.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}

.radio-row input,
.agree-line input,
.final-agree input,
.agreement-card input {
  width: auto;
  min-height: auto;
}

.course-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}

.address-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 8px;
  align-items: end;
}

.address-results {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  right: 118px;
  display: none;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
}

.address-results.open {
  display: block;
}

.address-results button {
  display: grid;
  width: 100%;
  min-height: auto;
  justify-content: stretch;
  gap: 5px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: white;
  text-align: left;
}

.address-results button:hover,
.address-results button:focus {
  background: #f3f8ff;
  outline: none;
}

.address-results strong {
  font-size: 14px;
}

.address-results span,
.address-empty {
  color: var(--muted);
  font-size: 13px;
}

.address-empty {
  padding: 14px;
}

.repeat-card {
  position: relative;
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.repeat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.repeat-card-head strong {
  font-size: 17px;
}

.repeat-card-head button {
  min-height: 34px;
  border-color: #d92d20;
  color: #d92d20;
}

.placeholder-section {
  padding: 22px;
  border: 1px dashed #aab4c3;
  background: #fbfcff;
}

.upload-table {
  border-top: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.upload-group-title {
  padding: 18px 0 10px;
  border-bottom: 1px solid var(--line);
  color: var(--blue-dark);
  font-size: 17px;
  font-weight: 800;
}

.upload-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 70px minmax(240px, 0.72fr) 90px;
  gap: 18px;
  align-items: center;
  min-height: 74px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.upload-control {
  display: contents;
  width: 100%;
}

.file-pick-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #c9d5e8;
  border-radius: 6px;
  background: #fff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  min-width: 0;
}

.file-pick-button small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-pick-button input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.upload-actions {
  display: grid;
  gap: 6px;
}

.upload-actions button {
  width: 90px;
  min-width: 0;
  min-height: 44px;
  border-color: #d92d20;
  color: #d92d20;
}

.upload-row strong {
  display: block;
}

.upload-row small {
  color: var(--muted);
}

.upload-row em {
  color: var(--danger);
  font-style: normal;
  font-weight: 800;
}

.upload-row em.optional {
  color: var(--muted);
}

.review-grid {
  display: grid;
  gap: 16px;
}

.review-card {
  border: 1px solid var(--line);
}

.review-card h3 {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 14px 16px;
  background: #f5f7fb;
  font-size: 16px;
}

.review-card dl {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 16px;
}

.review-card dt {
  color: var(--muted);
  font-weight: 800;
}

.review-card dd {
  margin: 0;
}

.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
}

.form-nav .primary {
  min-width: 150px;
}

#prevButton {
  visibility: hidden;
}

.submit {
  display: none;
}

.admin-page {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
  background: #f3f5f9;
}

.admin-page .admin-sidebar {
  padding: 32px 24px;
  background: #2c3138;
  color: white;
}

.admin-page .admin-sidebar .brand {
  align-items: flex-start;
  margin-bottom: 42px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.admin-page .admin-sidebar .brand img {
  width: 164px;
}

.admin-page .admin-sidebar nav {
  display: grid;
  gap: 10px;
}

.admin-page .admin-sidebar nav a {
  padding: 14px 15px;
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.admin-page .admin-sidebar nav a.active,
.admin-page .admin-sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.admin-page .admin-main {
  padding: 34px;
}

.admin-page .admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.admin-page .admin-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-actions button[data-status="합격"] {
  border-color: var(--green);
  color: var(--green);
}

.section-actions button[data-status="불합격"],
.section-actions button[data-status="보완요청"] {
  border-color: #d92d20;
  color: #d92d20;
}

.admin-topbar p,
.section-head p {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.admin-topbar h1,
.section-head h2 {
  margin: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.metric-grid article,
.admin-card {
  padding: 22px;
  border: 1px solid #e5e7eb;
  background: white;
  box-shadow: var(--shadow);
}

.metric-grid span {
  color: var(--muted);
  font-weight: 800;
}

.metric-grid strong {
  display: block;
  margin: 10px 0;
  font-size: 36px;
}

.metric-grid small {
  color: var(--muted);
}

.admin-card {
  margin-bottom: 22px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.settings-table,
.application-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.settings-table > div,
.application-list > div {
  display: grid;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.settings-table > div {
  grid-template-columns: 0.78fr 0.9fr 170px 170px 82px 92px;
}

#windowSettingsTable > div {
  gap: 16px;
}

#windowSettingsTable input[type="date"] {
  min-width: 160px;
}

#windowSettingsTable label,
#windowSettingsTable em {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  margin: 0;
  white-space: nowrap;
}

#windowSettingsTable input[type="checkbox"] {
  margin: 0;
}

.application-list > div {
  grid-template-columns: 1fr 1fr 1fr 0.8fr 90px 100px 70px;
}

.admin-application-list > div {
  grid-template-columns: 72px minmax(150px, 1.1fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(130px, 0.9fr) minmax(80px, 0.7fr) 144px;
  column-gap: 16px;
}

.application-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.application-check input {
  width: 16px;
  min-height: 16px;
  margin: 0;
}

.application-row-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.application-row-actions button {
  min-width: 62px;
  white-space: nowrap;
  word-break: keep-all;
}

.application-row-actions button[data-delete-receipt],
#deleteSelectedApplicationsButton {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff7f7;
}

.application-list > div.selected {
  background: #f3f8ff;
}

.application-list .empty-row {
  display: block;
  padding: 24px 0;
  color: var(--muted);
  text-align: center;
}

.table-head {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

em.open {
  color: var(--green);
}

.settings-table em,
.application-list em {
  font-style: normal;
  font-weight: 800;
}

.document-rule-grid,
.config-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.document-rule-grid label,
.config-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  background: #fbfcff;
}

.document-rule-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.document-rule-grid input,
.config-grid input {
  width: auto;
  min-height: auto;
}

.document-rule-grid b {
  margin-left: auto;
  color: var(--danger);
}

.document-rule-grid span {
  margin-left: auto;
  color: var(--muted);
  font-weight: 800;
}

.config-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
}

.config-grid h3 {
  margin: 0 0 6px;
}

.application-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.review-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
}

.status-pill,
.check-ok,
.check-warn {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill,
.check-ok {
  background: #e9f8f0;
  color: var(--green);
}

.check-warn {
  background: #fff7e8;
  color: #b54708;
}

.admin-review-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-review-sections section {
  padding: 16px;
  border: 1px solid var(--line);
  background: #fbfcff;
}

.admin-review-sections h3 {
  margin: 0 0 12px;
}

.admin-review-sections dl {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
}

.admin-review-sections dt {
  color: var(--muted);
  font-weight: 800;
}

.admin-review-sections dd {
  margin: 0;
}

.document-check-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.document-check-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-memo-box {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.admin-memo-box textarea {
  min-height: 96px;
}

.admin-body .metric-grid article,
.admin-body .admin-card {
  border-color: #d8dee9;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(31, 41, 55, 0.08);
}

.admin-body .section-head {
  align-items: center;
}

.admin-body .section-head p,
.admin-body .admin-topbar p {
  color: #4156a6;
  letter-spacing: 0.08em;
}

.admin-body .section-actions button,
.admin-body .admin-application-list button,
.admin-body #saveWindowSettingsButton,
.admin-body #printApplicationButton,
.admin-body #printApplicationButtonTop,
.admin-body #exportCsvButton,
.admin-body #saveMemoButton {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #d8dee9;
  border-radius: 6px;
  background: white;
  color: #4156a6;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.admin-body #printApplicationButton,
.admin-body #exportCsvButton,
.admin-body #saveWindowSettingsButton {
  border-color: #4156a6;
  background: #4156a6;
  color: white;
}

.admin-body .section-actions button:hover,
.admin-body .admin-application-list button:hover,
.admin-body #saveWindowSettingsButton:hover,
.admin-body #printApplicationButton:hover,
.admin-body #printApplicationButtonTop:hover,
.admin-body #exportCsvButton:hover,
.admin-body #saveMemoButton:hover {
  border-color: #2f4594;
  background: #eef3ff;
  color: #2f4594;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(65, 86, 166, 0.14);
}

.admin-body #printApplicationButton:hover,
.admin-body #exportCsvButton:hover,
.admin-body #saveWindowSettingsButton:hover,
.admin-body .section-actions button.is-active {
  border-color: #2f4594;
  background: #2f4594;
  color: #fff;
}

.admin-body .section-actions button.is-active {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28), 0 10px 22px rgba(65, 86, 166, 0.2);
}

.admin-body .admin-application-list > div {
  padding: 14px 18px;
}

.admin-body .application-toolbar input,
.admin-body .application-toolbar select,
.admin-body .settings-table input {
  border-radius: 6px;
}

.application-pdf-print-source {
  position: absolute;
  left: -10000px;
  top: 0;
  width: 210mm;
}

.download-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.download-list a {
  color: var(--blue);
  font-weight: 800;
}

.status-lookup {
  margin-bottom: 28px;
  padding: 30px;
  border: 1px solid #d8e2f0;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.status-lookup h2 {
  margin: 0 0 18px;
  color: #071c3a;
  font-size: 24px;
}

.status-lookup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 112px;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #fff;
}

.status-result {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.status-result-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid #d8e2f0;
  border-radius: 8px;
  background: #fff;
}

.status-result-card span {
  display: block;
  margin-bottom: 5px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.status-result-card strong {
  color: #071c3a;
  font-size: 16px;
}

.status-result-card p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding-top: 12px;
  border-top: 1px solid #edf1f7;
}

.status-result-card button {
  grid-column: 1 / -1;
  justify-self: start;
  min-width: 190px;
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.lookup-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.lookup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
}

.lookup-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(760px, calc(100vw - 40px));
  margin: 0;
  transform: translate(-50%, -50%);
  border: 1px solid #d8e2f0;
  border-radius: 10px;
  background: white;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.lookup-dialog h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lookup-dialog h2::before {
  content: "";
  width: 7px;
  height: 22px;
  background: linear-gradient(180deg, #ff6b00 0 35%, #006be6 35% 100%);
}

.lookup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-color: var(--line);
  color: var(--muted);
}

.pdf-flow {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.pdf-flow div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fbfcff;
}

.pdf-flow strong {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: white;
}

.pdf-options {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.pdf-options input {
  width: auto;
  min-height: auto;
}

.application-sheet {
  width: 210mm;
  margin: 0 auto;
  background: #eef2f7;
  color: #071c3a;
}

#application-pdf .application-sheet {
  position: absolute;
  left: -10000px;
  top: 0;
  margin: 0;
}

.sheet-page {
  position: relative;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto 16px;
  padding: 19mm 19mm 24mm;
  border: 1px solid #d8e0ea;
  background: white;
  box-shadow: var(--shadow);
}

.sheet-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 55mm;
  gap: 14mm;
  align-items: start;
  margin-bottom: 9mm;
  padding-bottom: 6mm;
  border-bottom: 1px solid #cdd7e4;
}

.sheet-hero-title p,
.sheet-subhead span,
.sheet-page-footer,
.sheet-info-item span {
  color: #27527e;
  font-size: 6.5pt;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sheet-hero-title p {
  margin: 0 0 2mm;
}

.sheet-hero-title h1 {
  margin: 0;
  color: #003a78;
  font-size: 20pt;
  line-height: 1.05;
}

.sheet-hero-title h1 span {
  color: #002c63;
}

.sheet-hero-title em {
  display: block;
  margin-top: 2mm;
  color: #8293aa;
  font-size: 8pt;
  font-style: normal;
  font-weight: 700;
}

.sheet-hero-meta {
  display: grid;
  grid-template-columns: 20mm 34mm;
  gap: 4mm;
}

.sheet-hero-meta dl {
  margin: 0;
  text-align: right;
}

.sheet-hero-meta dt {
  margin-top: 1mm;
  color: #27527e;
  font-size: 5.7pt;
  font-weight: 900;
}

.sheet-hero-meta dd {
  margin: 0 0 2mm;
  color: #001d44;
  font-size: 7.5pt;
  font-weight: 900;
}

.sheet-hero-meta mark {
  display: inline-block;
  padding: 1.5mm 2.8mm;
  border-radius: 1mm;
  background: #0b4f93;
  color: white;
  font-size: 6.5pt;
}

.sheet-photo {
  display: flex;
  height: 45mm;
  align-items: center;
  justify-content: center;
  border: 1px solid #d2dce8;
  border-radius: 1.5mm;
  background: #dde6ef;
  color: #6c83a0;
  text-align: center;
  overflow: hidden;
}

.sheet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet-photo-placeholder {
  display: grid;
  justify-items: center;
  gap: 2mm;
  font-size: 6pt;
  font-weight: 800;
}

.sheet-photo-placeholder i {
  width: 4mm;
  height: 4mm;
  border: 1.2mm solid #7b9ab8;
  border-radius: 50%;
}

.sheet-photo-placeholder span {
  font-size: 5.5pt;
}

.sheet-subhead {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9mm;
  padding-bottom: 4mm;
  border-bottom: 1px solid #d7e0eb;
}

.sheet-subhead em {
  color: #27527e;
  font-size: 6.5pt;
  font-style: normal;
}

.sheet-section-title {
  margin: 0 0 4mm;
  padding-left: 2.3mm;
  border-left: 1mm solid #005bc8;
  color: #001d44;
  font-size: 9.5pt;
  line-height: 1.1;
}

.sheet-section-title b {
  font-weight: 900;
  letter-spacing: 0.06em;
}

.sheet-section-title span {
  color: #6d7f98;
  font-size: 7.5pt;
  letter-spacing: 0;
}

.sheet-card {
  margin-bottom: 11mm;
  padding: 6mm;
  border: 1px solid #d9e2ee;
  border-radius: 2mm;
  background: #fff;
  box-shadow: 0 2mm 8mm rgba(15, 43, 77, 0.04);
}

.sheet-grid-2,
.sheet-grid-3,
.sheet-grid-4 {
  display: grid;
  gap: 5mm 8mm;
}

.sheet-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sheet-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sheet-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sheet-info-item.wide {
  grid-column: span 2;
}

.sheet-info-item.full {
  grid-column: 1 / -1;
  padding-top: 4mm;
  border-top: 1px solid #e3e9f1;
}

.sheet-language-2 .sheet-info-item.align-right {
  justify-self: end;
  width: min(100%, 72mm);
}

.sheet-info-item span {
  display: block;
  margin-bottom: 1.4mm;
}

.sheet-info-item strong {
  display: block;
  color: #001d44;
  font-size: 8.5pt;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sheet-final-education {
  gap: 5mm 9mm;
}

.sheet-text-card {
  margin-bottom: 10mm;
  background: #f7faff;
}

.sheet-text-card p {
  min-height: 34mm;
  margin: 0;
  color: #263f5f;
  font-size: 9pt;
  line-height: 1.8;
}

.sheet-sign-card {
  margin-top: 11mm;
  padding: 8mm 6mm 20mm;
  border: 1px solid #d9e2ee;
  border-radius: 2mm;
  background: #fff;
}

.sheet-sign-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12mm;
  color: #59718f;
  font-size: 7.5pt;
}

.sheet-sign-row b {
  display: inline-block;
  min-width: 25mm;
  margin-left: 2mm;
  padding-bottom: 1mm;
  border-bottom: 1px solid #8fa4bd;
  color: #001d44;
  text-align: center;
}

.sheet-page-footer {
  position: absolute;
  right: 19mm;
  bottom: 12mm;
  left: 19mm;
  display: flex;
  justify-content: space-between;
  padding-top: 4mm;
  border-top: 1px solid #d7e0eb;
  font-size: 6.2pt;
}

.sheet-page-footer strong {
  color: #003a78;
}

@media print {
  body {
    background: white;
  }

  .admin-body {
    display: block;
    background: white;
  }

  .admin-sidebar,
  .admin-topbar,
  .metric-grid,
  #applications,
  .admin-detail-grid,
  #windows,
  #application-pdf > .section-head {
    display: none !important;
  }

  .admin-main,
  #application-pdf {
    position: static !important;
    left: auto !important;
    top: auto !important;
    display: block !important;
    width: 210mm !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: white !important;
    box-shadow: none !important;
  }

  #application-pdf #applicationSheet {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 210mm;
    margin: 0 !important;
    border: 0;
    box-shadow: none;
    background: white;
  }

  .sheet-page {
    width: 210mm;
    height: 297mm;
    min-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 19mm 19mm 24mm;
    border: 0;
    box-shadow: none;
    break-after: page;
    page-break-after: always;
  }

  .sheet-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  @page {
    size: A4;
    margin: 0;
  }
}

@media (max-width: 900px) {
  .apply-header {
    padding: 14px 18px;
  }

  .apply-header-inner,
  .header-actions-inline {
    flex-wrap: wrap;
    gap: 10px;
  }

  .apply-shell,
  .admin-page {
    grid-template-columns: 1fr;
  }

  .step-panel {
    position: static;
  }

  .course-grid,
  .split-2,
  .split-3,
  .metric-grid,
  .document-rule-grid,
  .config-grid,
  .admin-detail-grid,
  .admin-review-sections,
  .application-toolbar {
    grid-template-columns: 1fr;
  }

  .upload-row,
  .settings-table > div,
  .application-list > div {
    grid-template-columns: 1fr;
    padding: 16px 0;
  }

  .admin-sidebar {
    position: static;
  }
}
