:root {
  --ink: #16312d;
  --muted: #697b77;
  --line: #dfe8e5;
  --canvas: #f4f7f6;
  --surface: #ffffff;
  --primary: #155d52;
  --primary-dark: #0d453d;
  --primary-soft: #e9f4f1;
  --gold: #c79a52;
  --danger: #b6463d;
  --warning: #a86a16;
  --shadow: 0 18px 50px rgba(20, 61, 54, 0.08);
  --radius: 18px;
  --font: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

button,
select,
input[type="date"],
input[type="radio"],
input[type="checkbox"] {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(199, 154, 82, 0.42);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 8px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: relative;
  z-index: 10;
  color: #fff;
  background: var(--primary-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header__inner,
.admin-header__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--primary-dark);
  background: #fff;
  border-radius: 12px 12px 12px 4px;
  font-size: 18px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.25;
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0.04em;
}

.brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-help {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.header-help__dot {
  width: 7px;
  height: 7px;
  background: #8bd1b7;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(139, 209, 183, 0.12);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(8, 59, 51, 0.98), rgba(20, 94, 82, 0.92)),
    repeating-linear-gradient(135deg, transparent 0, transparent 32px, rgba(255, 255, 255, 0.03) 33px, transparent 34px);
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -190px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.025), 0 0 0 110px rgba(255, 255, 255, 0.018);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 76px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero h1,
.success-card h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.hero__lead {
  max-width: 720px;
  margin: 18px 0 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__meta span {
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.hero__meta b {
  margin-right: 4px;
  color: #fff;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.hero__glow--one {
  top: -100px;
  left: 16%;
  width: 240px;
  height: 240px;
  background: rgba(93, 175, 150, 0.12);
}

.hero__glow--two {
  right: 20%;
  bottom: -100px;
  width: 210px;
  height: 210px;
  background: rgba(199, 154, 82, 0.09);
}

.form-shell {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 40px));
  margin: -30px auto 70px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.progress-panel,
.admission-form,
.data-panel,
.detail-card,
.review-panel {
  background: var(--surface);
  border: 1px solid rgba(207, 220, 216, 0.75);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.progress-panel {
  position: sticky;
  top: 24px;
  padding: 24px;
}

.progress-panel__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.progress-panel__title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.progress-panel__title strong {
  color: var(--primary);
  font-size: 13px;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  background: #e7eeec;
  border-radius: 10px;
}

.progress-track span {
  display: block;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #51a08e);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.step-list {
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  position: relative;
  display: flex;
  gap: 13px;
  min-height: 72px;
  color: #879590;
}

.step-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 14px;
  width: 1px;
  height: 38px;
  background: #dae4e1;
}

.step-list li > span {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  background: #edf2f1;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.step-list li strong,
.step-list li small {
  display: block;
  line-height: 1.35;
}

.step-list li strong {
  margin-top: 1px;
  font-size: 13px;
}

.step-list li small {
  margin-top: 4px;
  color: #a0aca8;
  font-size: 11px;
}

.step-list li.is-active,
.step-list li.is-complete {
  color: var(--ink);
}

.step-list li.is-active > span {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 5px 12px rgba(21, 93, 82, 0.24);
}

.step-list li.is-complete > span {
  color: var(--primary);
  background: var(--primary-soft);
}

.privacy-note {
  display: flex;
  gap: 10px;
  padding: 14px;
  color: #5c746f;
  background: #f3f8f6;
  border-radius: 12px;
}

.privacy-note > span {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  color: #fff;
  background: var(--primary);
  border-radius: 8px;
  font-size: 9px;
}

.privacy-note p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.privacy-note strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
}

.admission-form {
  overflow: hidden;
}

.form-step {
  padding: 38px 42px 20px;
}

.section-heading {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.section-heading p {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-heading h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
}

.section-heading span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
  padding: 28px 0 12px;
}

.field-grid--spaced {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.field--wide {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 8px;
  color: #29433f;
  font-size: 13px;
  font-weight: 700;
}

.field em,
.upload-card em {
  color: var(--danger);
  font-style: normal;
}

.field input,
.field select,
.field textarea,
.suffix-input,
.locked-input {
  width: 100%;
  color: var(--ink);
  background: #fbfcfc;
  border: 1px solid #cfdbd8;
  border-radius: 10px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.field input,
.field select {
  height: 48px;
  padding: 0 13px;
}

.field textarea {
  min-height: 94px;
  padding: 12px 13px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #a7bcb6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 93, 82, 0.09);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a5b1ae;
}

.field > small {
  display: block;
  margin-top: 6px;
  color: #8a9995;
  font-size: 11px;
}

.field fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.suffix-input,
.locked-input {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.suffix-input input,
.locked-input input {
  flex: 1;
  width: auto;
  border: 0;
  background: transparent;
  box-shadow: none !important;
}

.suffix-input span {
  padding: 0 13px;
  color: var(--muted);
  font-size: 12px;
}

.locked-input {
  background: #f0f4f3;
}

.locked-input input {
  color: #51635f;
  cursor: not-allowed;
}

.locked-input span {
  margin-right: 9px;
  padding: 3px 7px;
  color: var(--primary);
  background: #deece8;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-card {
  position: relative;
  display: flex !important;
  align-items: center;
  min-height: 72px;
  margin: 0 !important;
  padding: 12px 14px;
  background: #fbfcfc;
  border: 1px solid #cfdbd8;
  border-radius: 10px;
  cursor: pointer;
}

.choice-card:has(input:checked) {
  background: var(--primary-soft);
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(21, 93, 82, 0.07);
}

.choice-card input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0 12px 0 0;
  accent-color: var(--primary);
}

.choice-card strong,
.choice-card small {
  display: block;
}

.choice-card strong {
  color: var(--ink);
  font-size: 13px;
}

.choice-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.choice-card--compact {
  min-height: 50px;
}

.upload-grid {
  display: grid;
  gap: 12px;
  padding: 28px 0 12px;
}

.upload-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 16px;
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.upload-card:has(.file-input:valid) {
  background: #f7fbfa;
  border-color: #b8d7ce;
}

.upload-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
}

.upload-card__copy label {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.upload-card__copy p,
.upload-card__copy small {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.upload-card__copy small {
  color: #95a29f;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.file-button {
  padding: 7px 12px;
  color: var(--primary);
  background: #fff;
  border: 1px solid #b7cbc6;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.file-button:hover {
  background: var(--primary-soft);
}

.file-input:focus-visible + .file-selection {
  outline: 3px solid rgba(199, 154, 82, 0.42);
}

.file-selection {
  grid-column: 2 / -1;
  margin-top: -6px;
  color: #8a9995;
  font-size: 11px;
}

.file-selection.has-file {
  color: var(--primary);
  font-weight: 600;
}

.file-selection__summary {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 11px;
}

.file-selection ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-selection li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 8px;
  background: #edf6f3;
  border-radius: 7px;
}

.file-selection li span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.file-selection li button,
.clear-draft {
  flex: 0 0 auto;
  padding: 2px 5px;
  color: #7a5149;
  background: transparent;
  border: 0;
  font-size: 10px;
  text-decoration: underline;
  cursor: pointer;
}

.review-box {
  margin-top: 28px;
  padding: 22px;
  background: #f5f9f8;
  border: 1px solid #dce9e5;
  border-radius: 14px;
}

.review-box h3 {
  margin: 0;
  font-size: 16px;
}

.review-box ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 14px 0 20px;
  padding: 0;
  color: #5f736e;
  list-style: none;
  font-size: 12px;
}

.review-box li {
  position: relative;
  padding-left: 17px;
}

.review-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

.confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 !important;
  padding-top: 16px;
  border-top: 1px solid #d9e5e2;
  cursor: pointer;
}

.confirm-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.confirm-check span {
  color: #405954;
  font-size: 12px;
  font-weight: 600;
}

.confirm-check a,
.site-footer a {
  color: var(--primary);
  text-underline-offset: 2px;
}

.policy-page {
  width: min(860px, calc(100% - 40px));
  margin: 42px auto 70px;
}

.policy-card {
  padding: 38px 42px;
}

.policy-card h1 {
  margin: 0 0 12px;
  font-size: 34px;
}

.policy-card h2 {
  margin: 28px 0 6px;
  font-size: 17px;
}

.policy-card p {
  margin: 0;
  color: var(--muted);
}

.policy-actions {
  margin-top: 30px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 16px 42px;
  background: #fbfcfc;
  border-top: 1px solid var(--line);
}

.upload-summary {
  margin: 10px 42px 0;
  padding: 10px 13px;
  color: #6b7e79;
  background: #f6f8f8;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 11px;
  text-align: center;
}

.upload-summary.is-complete {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: #b8d7ce;
  font-weight: 700;
}

.draft-status {
  flex: 1;
  color: #8a9995;
  font-size: 11px;
  text-align: right;
}

.clear-draft {
  color: #758682;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 8px 16px rgba(21, 93, 82, 0.17);
}

.button--primary:hover {
  background: var(--primary-dark);
}

.button--secondary {
  color: var(--primary);
  background: #fff;
  border-color: #bfd0cc;
}

.button--secondary:hover {
  background: var(--primary-soft);
}

.button--danger {
  color: #fff;
  background: #b6463d;
  border-color: #b6463d;
  box-shadow: 0 8px 16px rgba(182, 70, 61, 0.16);
}

.button--danger:hover {
  background: #96382f;
}

.button--danger:disabled {
  color: #fff;
  background: #cfa7a3;
  border-color: #cfa7a3;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.button--full {
  width: 100%;
}

.button--small {
  min-height: 40px;
  padding: 0 15px;
}

.button[hidden],
[hidden] {
  display: none !important;
}

.flash-stack {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 50%;
  width: min(460px, calc(100% - 30px));
  transform: translateX(-50%);
}

.flash {
  margin-bottom: 8px;
  padding: 12px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 9px;
  box-shadow: 0 12px 30px rgba(25, 55, 49, 0.16);
  font-size: 13px;
}

.flash--error {
  border-left-color: var(--danger);
}

.flash--success {
  border-left-color: #3b8d63;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 36px;
  color: #879590;
  font-size: 11px;
  text-align: center;
}

/* Success */
.success-page {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 48px 20px;
  background:
    radial-gradient(circle at 20% 20%, rgba(80, 158, 139, 0.1), transparent 28%),
    radial-gradient(circle at 85% 75%, rgba(199, 154, 82, 0.08), transparent 25%);
}

.success-card {
  width: min(680px, 100%);
  padding: 44px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.success-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  font-size: 30px;
  box-shadow: 0 0 0 9px var(--primary-soft);
}

.success-mark--warning {
  background: #fff3da;
  color: #9a6818;
}

.success-card > p:not(.eyebrow, .success-tip) {
  max-width: 500px;
  margin: 16px auto 0;
  color: var(--muted);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 32px 0 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 16.66%;
  left: 16.66%;
  height: 1px;
  background: #dce6e3;
}

.timeline__item {
  position: relative;
  z-index: 2;
}

.timeline__item > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
  color: #8d9c98;
  background: #edf2f1;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.timeline__item.is-done > span {
  color: #fff;
  background: var(--primary);
}

.timeline__item strong,
.timeline__item small {
  display: block;
}

.timeline__item strong {
  font-size: 12px;
}

.timeline__item small {
  color: var(--muted);
  font-size: 10px;
}

.success-tip {
  color: #81908c;
  font-size: 11px;
}

/* Admin shared */
.admin-page {
  background: #f3f6f5;
}

.admin-header {
  color: #fff;
  background: #123f38;
}

.brand--compact .brand__mark {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.admin-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-header__actions a,
.admin-header__actions button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  font-size: 11px;
  text-decoration: none;
}

.admin-header__actions form {
  margin: 0;
}

.admin-shell {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 70px;
}

.admin-title-row,
.detail-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.admin-title-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.duplicate-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  padding: 2px 7px;
  color: #8b5d15;
  background: #fff3d9;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.duplicate-warning {
  padding: 13px 16px;
  color: #76511b;
  background: #fff5df;
  border: 1px solid #efd7a8;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 650;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  font-size: 12px;
}

.pagination a {
  padding: 7px 12px;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.permanent-delete-form {
  display: flex;
  align-items: center;
  gap: 7px;
}

.permanent-delete-form input {
  width: 130px;
  min-height: 40px;
  padding: 0 9px;
  border: 1px solid #d9c4c1;
  border-radius: 7px;
  font-size: 11px;
}

.admin-title-row h1,
.detail-heading h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.admin-title-row > div > p:last-child,
.detail-heading > div > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 18px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 124px;
  padding: 17px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.stat-card:hover,
.stat-card.is-active {
  border-color: #9cbcb4;
  box-shadow: 0 10px 24px rgba(20, 61, 54, 0.07);
  transform: translateY(-2px);
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -25px;
  width: 70px;
  height: 70px;
  background: rgba(21, 93, 82, 0.06);
  border-radius: 50%;
}

.stat-card span,
.stat-card strong,
.stat-card small {
  display: block;
}

.stat-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.stat-card strong {
  margin: 5px 0;
  font-size: 28px;
  line-height: 1.2;
}

.stat-card small {
  color: #9aa7a4;
  font-size: 10px;
}

.stat-card--pending::after { background: rgba(199, 154, 82, 0.1); }
.stat-card--reviewing::after { background: rgba(74, 124, 178, 0.1); }
.stat-card--approved::after { background: rgba(57, 144, 101, 0.1); }
.stat-card--rejected::after { background: rgba(182, 70, 61, 0.08); }

.data-panel {
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(20, 61, 54, 0.05);
}

.data-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.data-toolbar h2 {
  display: inline;
  margin: 0;
  font-size: 17px;
}

.data-toolbar > div > span {
  margin-left: 8px;
  color: var(--muted);
  font-size: 11px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box {
  display: flex;
  align-items: center;
  width: 310px;
  height: 40px;
  padding: 0 12px;
  background: #f7f9f8;
  border: 1px solid #d7e1de;
  border-radius: 8px;
}

.search-box span {
  color: #8b9a96;
  font-size: 10px;
}

.search-box input {
  width: 100%;
  height: 100%;
  padding: 0 8px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
  font-size: 12px;
}

.clear-link {
  color: var(--muted);
  font-size: 11px;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th {
  padding: 12px 18px;
  color: #778782;
  background: #f8faf9;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 16px 18px;
  color: #3e534f;
  border-bottom: 1px solid #edf1f0;
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fafcfb;
}

.data-table td strong,
.data-table td small {
  display: block;
}

.data-table td strong {
  color: var(--ink);
  font-size: 12px;
}

.data-table td small {
  margin-top: 3px;
  color: #8e9c98;
  font-size: 10px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}

.status--pending {
  color: #946117;
  background: #fff5df;
}

.status--reviewing {
  color: #326b9d;
  background: #eaf3fb;
}

.status--approved {
  color: #26774e;
  background: #e8f6ee;
}

.status--rejected {
  color: #a5423a;
  background: #fbeceb;
}

.row-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.row-link:hover {
  text-decoration: underline;
}

.empty-state {
  padding: 70px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-state > span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto;
  color: #78928b;
  background: var(--primary-soft);
  border-radius: 15px;
  font-size: 12px;
}

.empty-state h3 {
  margin: 14px 0 3px;
  color: var(--ink);
}

.empty-state p {
  margin: 0;
  font-size: 12px;
}

/* Login */
.admin-login-page {
  min-height: 100vh;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(69, 143, 125, 0.23), transparent 25%),
    radial-gradient(circle at 80% 85%, rgba(199, 154, 82, 0.12), transparent 22%),
    #0c3f37;
}

.site-header--admin {
  background: transparent;
}

.login-shell {
  width: min(1060px, calc(100% - 40px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 420px;
  gap: 80px;
  align-items: center;
  padding: 50px 0 80px;
}

.login-intro h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.17;
  letter-spacing: -0.045em;
}

.login-intro > p:last-of-type {
  max-width: 550px;
  margin: 22px 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
}

.login-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-features span {
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  font-size: 11px;
}

.login-card {
  padding: 34px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(0, 25, 21, 0.25);
}

.login-card h2 {
  margin: 0;
  font-size: 27px;
}

.login-card > p:not(.eyebrow) {
  margin: 4px 0 24px;
  color: var(--muted);
  font-size: 12px;
}

.login-card .field {
  margin-bottom: 16px;
}

.login-security {
  display: block;
  margin-top: 16px;
  color: #98a5a2;
  font-size: 10px;
  text-align: center;
}

/* Detail */
.admin-shell--detail {
  width: min(1120px, calc(100% - 40px));
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.back-link:hover {
  color: var(--primary);
}

.detail-heading {
  align-items: center;
  margin-bottom: 26px;
}

.detail-heading__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 16px;
}

.detail-card {
  padding: 25px;
  box-shadow: 0 10px 30px rgba(20, 61, 54, 0.045);
}

.detail-card__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.detail-card__heading span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
}

.detail-card__heading h2 {
  margin: 0;
  font-size: 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.info-grid > div {
  padding: 16px 0;
  border-bottom: 1px solid #edf1f0;
}

.info-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.info-grid__wide {
  grid-column: 1 / -1;
}

.info-grid dt {
  color: #84938f;
  font-size: 10px;
}

.info-grid dd {
  margin: 3px 0 0;
  color: #243d38;
  font-size: 13px;
  font-weight: 650;
}

.info-grid dd a {
  color: var(--primary);
}

.attachment-list {
  display: grid;
}

.attachment-group {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid #edf1f0;
}

.attachment-group:last-child {
  border-bottom: 0;
}

.attachment-group > div:first-child strong,
.attachment-group > div:first-child small {
  display: block;
}

.attachment-group > div:first-child strong {
  font-size: 12px;
}

.attachment-group > div:first-child small {
  margin-top: 3px;
  color: #8a9995;
  font-size: 10px;
}

.attachment-files {
  display: grid;
  gap: 6px;
}

.attachment-file {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 10px;
  background: #f7f9f8;
  border: 1px solid #e2eae8;
  border-radius: 8px;
}

.attachment-file:hover {
  border-color: #b8ccc7;
}

.attachment-file__icon {
  display: grid;
  place-items: center;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
}

.attachment-file__info {
  min-width: 0;
  flex: 1;
}

.attachment-files strong,
.attachment-files small {
  display: block;
}

.attachment-files strong {
  overflow: hidden;
  color: #314a45;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-files small {
  color: #8e9d99;
  font-size: 9px;
}

.attachment-file__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
}

.attachment-action {
  padding: 5px 7px;
  color: var(--primary);
  border: 1px solid #cbdad6;
  border-radius: 6px;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.attachment-action:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.attachment-action--preview {
  color: #3157a4;
  border-color: #cdd8ef;
  background: #f6f8fd;
}

.missing-file {
  color: var(--danger);
  font-size: 11px;
}

.review-panel {
  position: sticky;
  top: 20px;
  overflow: hidden;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(20, 61, 54, 0.045);
}

.review-panel h2 {
  margin: 0 0 20px;
  font-size: 20px;
}

.review-panel .field {
  margin-bottom: 16px;
}

.review-panel__tip {
  margin: 22px -24px -24px;
  padding: 18px 24px;
  color: #657a75;
  background: #f2f7f5;
  border-top: 1px solid var(--line);
}

.review-panel__tip strong {
  color: var(--ink);
  font-size: 11px;
}

.review-panel__tip p {
  margin: 3px 0 0;
  font-size: 10px;
}

.delete-zone {
  margin: 24px -24px -24px;
  padding: 20px 24px 24px;
  background: #fff8f7;
  border-top: 1px solid #efd8d5;
}

.delete-zone > strong {
  color: #983c34;
  font-size: 12px;
}

.delete-zone > p {
  margin: 4px 0 14px;
  color: #8c625e;
  font-size: 10px;
}

.delete-dialog {
  width: min(460px, calc(100% - 28px));
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(43, 16, 13, 0.28);
}

.delete-dialog::backdrop {
  background: rgba(12, 30, 27, 0.64);
  backdrop-filter: blur(3px);
}

.delete-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 16px;
  border-bottom: 1px solid #efe5e3;
}

.delete-dialog__header h2 {
  margin: 0;
  font-size: 21px;
}

.delete-dialog__header > button {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #7a8985;
  background: #f3f6f5;
  border: 0;
  border-radius: 8px;
  font-size: 20px;
}

.delete-dialog__warning {
  margin: 0;
  padding: 20px 26px 4px;
  color: #6e5552;
  font-size: 12px;
}

.delete-dialog__warning strong {
  color: #9c3f37;
}

.delete-dialog form {
  padding: 16px 26px 26px;
}

.delete-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 980px) {
  .form-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .progress-panel {
    padding: 19px;
  }

  .form-step {
    padding: 32px 30px 18px;
  }

  .form-actions {
    padding-right: 30px;
    padding-left: 30px;
  }

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

  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .review-panel {
    position: static;
  }

  .login-shell {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
  }
}

@media (max-width: 760px) {
  .site-header__inner,
  .admin-header__inner,
  .hero__inner,
  .form-shell,
  .admin-shell,
  .admin-shell--detail {
    width: min(100% - 28px, 100%);
  }

  .site-header__inner,
  .admin-header__inner {
    min-height: 64px;
  }

  .header-help {
    display: none;
  }

  .hero__inner {
    padding: 38px 0 64px;
  }

  .hero__lead {
    font-size: 14px;
  }

  .hero__meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero__meta span {
    width: fit-content;
  }

  .form-shell {
    margin-top: -26px;
    margin-bottom: 120px;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .progress-panel {
    position: static;
    padding: 16px;
  }

  .step-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 16px 0 0;
  }

  .step-list li {
    display: block;
    min-height: 0;
    text-align: center;
  }

  .step-list li:not(:last-child)::after {
    top: 14px;
    left: calc(50% + 15px);
    width: calc(100% - 30px);
    height: 1px;
  }

  .step-list li > span {
    margin: 0 auto 6px;
  }

  .step-list li strong {
    font-size: 10px;
  }

  .step-list li small,
  .privacy-note {
    display: none;
  }

  .form-step {
    padding: 26px 18px 10px;
  }

  .section-heading {
    padding-bottom: 20px;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .field-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 22px;
  }

  .field--wide {
    grid-column: auto;
  }

  .choice-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .upload-grid {
    padding-top: 22px;
  }

  .upload-card {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 13px;
  }

  .upload-card__icon {
    width: 36px;
    height: 36px;
  }

  .file-button {
    grid-column: 1 / -1;
    padding: 9px 12px;
    text-align: center;
  }

  .file-selection {
    grid-column: 1 / -1;
    margin: 0;
    text-align: center;
  }

  .file-selection li {
    text-align: left;
  }

  .upload-summary {
    margin: 10px 18px 0;
  }

  .review-box ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-actions {
    position: fixed;
    z-index: 50;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-height: 74px;
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
    background: rgba(251, 252, 252, 0.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(20, 61, 54, 0.1);
    backdrop-filter: blur(12px);
  }

  .draft-status {
    grid-column: 1;
    grid-row: 1;
    order: -1;
    line-height: 1.2;
    text-align: left;
  }

  .clear-draft {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  #previous-button {
    grid-column: 1;
    grid-row: 2;
  }

  #next-button,
  #submit-button {
    grid-column: 2;
    grid-row: 2;
  }

  #previous-button[hidden] ~ #next-button:not([hidden]) {
    grid-column: 1 / -1;
    width: min(240px, 100%);
    justify-self: center;
  }

  .site-footer {
    width: calc(100% - 28px);
  }

  .success-card {
    padding: 32px 20px;
  }

  .policy-page {
    width: min(100% - 28px, 100%);
    margin-top: 24px;
  }

  .policy-card {
    padding: 26px 20px;
  }

  .timeline__item small {
    padding: 0 3px;
  }

  .admin-shell {
    padding: 28px 0 50px;
  }

  .admin-title-row,
  .detail-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-title-row .button,
  .detail-heading .button {
    width: 100%;
  }

  .admin-title-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

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

  .stat-card:first-child {
    grid-column: 1 / -1;
  }

  .data-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-form {
    flex-wrap: wrap;
  }

  .search-box {
    flex: 1 1 230px;
    width: auto;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
  }

  .data-table thead {
    display: none;
  }

  .data-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .data-table td {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    padding: 7px 0;
    border: 0;
  }

  .data-table td::before {
    content: attr(data-label);
    color: #8a9995;
    font-size: 10px;
  }

  .data-table td:last-child {
    display: block;
    padding-top: 10px;
  }

  .row-link {
    display: flex;
    justify-content: center;
    padding: 9px;
    background: var(--primary-soft);
    border-radius: 7px;
  }

  .permanent-delete-form {
    align-items: stretch;
    flex-direction: column;
  }

  .permanent-delete-form input,
  .permanent-delete-form .button {
    width: 100%;
  }

  .login-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 26px;
  }

  .login-intro h1 {
    font-size: 34px;
  }

  .login-intro > p:last-of-type {
    font-size: 13px;
  }

  .login-card {
    padding: 26px 20px;
  }

  .admin-header__actions > a {
    display: none;
  }

  .attachment-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

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

  .info-grid__wide {
    grid-column: auto;
  }

  .info-grid > div:nth-last-child(-n + 2) {
    border-bottom: 1px solid #edf1f0;
  }

  .info-grid > div:last-child {
    border-bottom: 0;
  }

  .detail-card {
    padding: 20px 16px;
  }
}

@media (max-width: 420px) {
  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 9px;
  }

  .hero h1,
  .success-card h1 {
    font-size: 32px;
  }

  .step-list li strong {
    transform: scale(0.92);
  }

  .stat-card {
    min-height: 112px;
  }
}

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