:root {
  color-scheme: light;
  --primary: #1E6BD6;
  --primary-strong: #0F4EA2;
  --primary-soft: #EAF3FF;
  --bg: #F5F7FA;
  --panel: #FFFFFF;
  --text: #333333;
  --muted: #667085;
  --line: #D0D7E2;
  --success: #52C41A;
  --danger: #FF4D4F;
  --danger-soft: #FFF1F0;
  --shadow: 0 12px 34px rgba(15, 78, 162, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(30, 107, 214, 0.10), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

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

.page-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 14px 30px;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-bottom: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(30, 107, 214, 0.16);
  overflow: hidden;
}

.brand-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  color: var(--primary-strong);
  font-size: 1rem;
  line-height: 1.1;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 16px;
}

.page-header h1 {
  margin: 0;
  color: #182230;
  font-size: 1.35rem;
  font-weight: 750;
}

.hero-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 18px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-card h1,
.hero-card p {
  margin: 0;
}

.hero-card h1 {
  font-size: 1.35rem;
  font-weight: 800;
}

.hero-card p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
}

.hero-icon,
.login-emblem {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 800;
}

.quick-link-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.stack {
  display: grid;
  gap: 16px;
}

.form-card,
.detail-card,
.list-card,
.success-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.form-card,
.detail-card,
.success-card {
  padding: 16px;
}

.form-section {
  display: grid;
  gap: 12px;
}

.form-section + .form-section {
  padding-top: 4px;
}

.form-section h2 {
  margin: 0;
  color: var(--primary-strong);
  font-size: 1rem;
  font-weight: 800;
}

.field {
  display: grid;
  gap: 7px;
  font-size: 0.92rem;
  font-weight: 700;
}

.required-star {
  margin-left: 3px;
  color: var(--danger);
}

input,
select,
textarea,
button,
.button {
  min-height: 46px;
  border-radius: 9px;
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(30, 107, 214, 0.15);
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}

.form-card > .button,
.login-card .button {
  width: 100%;
}

.compact {
  min-height: 36px;
  padding: 7px 13px;
  font-size: 0.9rem;
}

.primary {
  background: var(--primary);
  color: #fff;
}

.primary:active {
  background: var(--primary-strong);
}

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

.link-button {
  color: var(--primary-strong);
  font-weight: 800;
}

.danger {
  background: var(--danger);
  color: #fff;
}

.danger.outline {
  border-color: var(--danger);
  background: #fff;
  color: var(--danger);
}

.list {
  display: grid;
  gap: 12px;
}

.list-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.list-card h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.list-card p {
  margin: 0;
  overflow-wrap: anywhere;
}

.card-main {
  display: grid;
  gap: 4px;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pending {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.status-approved {
  background: rgba(82, 196, 26, 0.12);
  color: #237804;
}

.status-rejected {
  background: var(--danger-soft);
  color: var(--danger);
}

.muted,
.empty,
.form-tip,
.login-footnote {
  color: var(--muted);
}

.empty {
  margin: 24px 0;
  text-align: center;
}

.form-tip,
.login-footnote {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.88rem;
}

.detail-card {
  display: grid;
  gap: 14px;
}

.detail-status {
  display: flex;
  justify-content: flex-end;
}

.detail-card dl {
  display: grid;
  grid-template-columns: minmax(90px, 34%) 1fr;
  gap: 10px 12px;
  margin: 0;
}

.detail-card dt {
  color: var(--muted);
}

.detail-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.decision-bar {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.login-card {
  margin-top: 28px;
  text-align: center;
}

.login-card h1 {
  margin: 12px 0 4px;
  font-size: 1.35rem;
}

.login-card form {
  margin-top: 20px;
  text-align: left;
}

.login-emblem {
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
}

.success-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 52px;
  text-align: center;
  animation: success-pop 260ms ease-out both;
}

.success-card h1 {
  margin: 0;
  font-size: 1.28rem;
}

.success-card p {
  margin: 0;
}

.success-check {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-size: 2.7rem;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(30, 107, 214, 0.24);
  animation: check-in 480ms ease-out both;
}

@keyframes success-pop {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes check-in {
  0% {
    transform: scale(0.72);
  }
  70% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@media (min-width: 640px) {
  .page-shell {
    padding: 28px 18px 44px;
  }

  .form-card,
  .detail-card,
  .success-card {
    padding: 20px;
  }

  .decision-bar {
    grid-template-columns: 1fr auto auto;
    align-items: start;
  }
}
