:root {
  color-scheme: light;
  --bg: #f8f5f4;
  --bg-soft: #fcfbfb;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-tint: #fff5f6;
  --surface-deep: #fff0f2;
  --line: rgba(201, 16, 51, 0.14);
  --line-strong: rgba(182, 14, 43, 0.22);
  --text: #171717;
  --muted: #6e6a6a;
  --muted-strong: #5c5757;
  --brand: #d21235;
  --brand-dark: #b60f2c;
  --brand-deep: #9d0b23;
  --brand-soft: #ffe5ea;
  --brand-soft-2: #ffd4dd;
  --shadow: 0 28px 70px rgba(164, 20, 45, 0.14);
  --shadow-soft: 0 12px 28px rgba(164, 20, 45, 0.08);
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 34px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at top, #fff 0%, var(--bg) 52%, #f5f0ef 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  position: relative;
  overflow-x: clip;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.page-bg--form::before,
.page-bg--admin::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(210, 18, 53, 0.09), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(210, 18, 53, 0.05), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 243, 246, 0.2));
}

.bg-wave,
.bg-ribbon,
.bg-admin-glow {
  position: absolute;
  display: block;
}

.bg-wave--one {
  left: -8%;
  top: 15%;
  width: 122%;
  height: 160px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(210, 18, 53, 0.94) 0%, rgba(210, 18, 53, 0.48) 55%, rgba(210, 18, 53, 0.1) 100%);
  filter: blur(0.2px);
  transform: rotate(-3deg);
}

.bg-wave--two {
  left: -10%;
  top: 26%;
  width: 124%;
  height: 118px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 120, 145, 0.34) 0%, rgba(255, 120, 145, 0.18) 55%, rgba(255, 120, 145, 0.04) 100%);
  transform: rotate(6deg);
}

.bg-ribbon--one {
  left: 0;
  top: 3%;
  width: 26vw;
  height: 15vh;
  border-top: 1px solid rgba(210, 18, 53, 0.24);
  border-left: 1px solid rgba(210, 18, 53, 0.24);
  opacity: 0.7;
  transform: skewY(-22deg);
}

.bg-ribbon--two {
  right: 0;
  top: 18%;
  width: 25vw;
  height: 18vh;
  border-top: 1px solid rgba(210, 18, 53, 0.2);
  border-right: 1px solid rgba(210, 18, 53, 0.2);
  opacity: 0.65;
  transform: skewY(18deg);
}

.bg-admin-glow {
  inset: auto -12% 65% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 18, 53, 0.14) 0%, rgba(210, 18, 53, 0.08) 28%, rgba(210, 18, 53, 0.02) 52%, transparent 72%);
  filter: blur(12px);
}

.form-page,
.admin-app {
  position: relative;
  z-index: 1;
}

.form-page {
  min-height: 100vh;
  padding: max(16px, env(safe-area-inset-top)) 0 max(24px, env(safe-area-inset-bottom));
}

.form-shell {
  width: min(100%, 455px);
  margin: 0 auto;
  padding: 0 16px 28px;
}

.hero-card {
  position: relative;
  padding: 18px 18px 28px;
  min-height: 168px;
  border-radius: 30px 30px 34px 34px;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 40%, rgba(255, 255, 255, 0.46) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 248, 249, 0.95));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -8% -22% -8%;
  height: 120px;
  border-radius: 48% 52% 0 0 / 100% 100% 0 0;
  background: linear-gradient(90deg, rgba(210, 18, 53, 0.98), rgba(210, 18, 53, 0.76) 55%, rgba(210, 18, 53, 0.04) 100%);
  transform: rotate(-2deg);
}

.hero-brand {
  position: relative;
  z-index: 1;
}

.brand-logo {
  width: 88px;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: 0.03em;
  color: var(--brand);
  font-weight: 800;
}

.hero-copy p {
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: #2f2a2a;
}

.form-card {
  position: relative;
  margin-top: 18px;
  padding: 18px 18px 22px;
  border-radius: 30px;
  background: var(--surface-strong);
  border: 1px solid rgba(210, 18, 53, 0.06);
  box-shadow: 0 24px 68px rgba(155, 17, 41, 0.1);
}

.application-form {
  display: grid;
  gap: 20px;
}

.field-group {
  display: grid;
  gap: 12px;
}

.field-label {
  display: block;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: #151515;
}

.field-label span {
  color: var(--brand);
  margin-left: 2px;
}

.field-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(104, 89, 90, 0.14);
  background: linear-gradient(180deg, #fff, #fffdfd);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.field-control:focus-within {
  border-color: rgba(210, 18, 53, 0.5);
  box-shadow: 0 0 0 4px rgba(210, 18, 53, 0.08);
}

.field-icon {
  width: 24px;
  height: 24px;
  color: rgba(71, 68, 69, 0.55);
  flex: 0 0 auto;
}

.field-icon svg,
.privacy-note svg,
.dropzone-icon svg,
.resume-card__icon svg,
.user-pill__avatar svg {
  width: 100%;
  height: 100%;
}

.field-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 18px;
  color: var(--text);
}

.field-control select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 18px;
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
}

.field-control input::placeholder {
  color: rgba(100, 95, 95, 0.58);
}

.field-control input[type="number"] {
  appearance: textfield;
}

.field-control input[type="number"]::-webkit-outer-spin-button,
.field-control input[type="number"]::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
}

.dropzone {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 182px;
  padding: 20px 20px 18px;
  border-radius: 20px;
  border: 1.5px dashed rgba(210, 18, 53, 0.24);
  background: linear-gradient(180deg, rgba(255, 244, 246, 0.62), rgba(255, 251, 252, 0.96));
  text-align: center;
  color: #413b3b;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: rgba(210, 18, 53, 0.6);
  box-shadow: 0 14px 30px rgba(210, 18, 53, 0.08);
  transform: translateY(-1px);
}

.dropzone strong {
  font-size: 18px;
  font-weight: 700;
  color: #262222;
}

.dropzone span {
  font-size: 16px;
  line-height: 1.45;
  color: rgba(72, 66, 66, 0.76);
}

.dropzone em {
  font-style: normal;
  font-size: 15px;
  color: var(--brand);
  font-weight: 600;
}

.dropzone-icon {
  width: 40px;
  height: 40px;
  color: var(--brand);
}

.submit-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 66px;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(90deg, #df1239 0%, #c61031 55%, #a90d29 100%);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 18px 36px rgba(202, 16, 49, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(202, 16, 49, 0.28);
}

.submit-button:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.submit-button--small {
  min-height: 52px;
  font-size: 18px;
  border-radius: 18px;
}

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

.submit-button.is-loading {
  pointer-events: none;
}

.submit-button.is-loading .submit-button__spinner {
  opacity: 1;
  transform: scale(1);
}

.submit-button__spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.36);
  border-top-color: #fff;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 160ms ease, transform 160ms ease;
  animation: spin 0.9s linear infinite;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0 4px;
  color: rgba(87, 80, 80, 0.86);
  font-size: 15px;
  line-height: 1.6;
}

.privacy-note svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
  margin-top: 2px;
  flex: 0 0 auto;
}

.form-message {
  min-height: 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--brand-dark);
}

.form-message.is-success {
  color: #14804a;
}

.form-message.is-error {
  color: #d31131;
}

.success-toast {
  position: fixed;
  top: calc(18px + env(safe-area-inset-top));
  left: 50%;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: min(420px, calc(100vw - 32px));
  max-width: min(560px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(18, 108, 64, 0.97);
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  box-shadow: 0 20px 44px rgba(16, 82, 49, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -16px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.success-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.success-toast::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 15px;
  flex: 0 0 auto;
}

.page-admin {
  min-height: 100vh;
}

.admin-app {
  min-height: 100vh;
}

.admin-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 26px;
  padding: 18px 14px 20px;
  background: linear-gradient(180deg, #d01031 0%, #b80d2b 100%);
  color: #fff;
  box-shadow: 16px 0 40px rgba(124, 12, 32, 0.12);
}

.sidebar-brand {
  display: grid;
  gap: 14px;
  align-content: start;
  justify-items: center;
  padding: 6px 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-logo--sidebar {
  width: 84px;
  border-radius: 6px;
}

.sidebar-brand strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.sidebar-brand span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-align: center;
}

.sidebar-nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.sidebar-nav__item {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 17px;
  font-weight: 600;
  transition: background-color 160ms ease, transform 160ms ease, color 160ms ease;
}

.sidebar-nav__item:hover,
.sidebar-nav__item--active {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.sidebar-nav__item--active {
  box-shadow: inset 3px 0 0 #fff;
}

.sidebar-logout {
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.workspace {
  min-width: 0;
  padding: 0 0 0 0;
  background:
    radial-gradient(circle at top left, rgba(210, 18, 53, 0.04), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 244, 243, 0.96));
}

.topbar {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(164, 20, 45, 0.08);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(10px);
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-title h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}

.menu-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  padding: 0 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 99px;
  background: #131313;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 46px 0 16px;
  border-radius: 13px;
  border: 1px solid rgba(157, 16, 35, 0.14);
  background: #fff;
  font-size: 15px;
  color: var(--text);
  outline: none;
}

.search-box input:focus {
  border-color: rgba(210, 18, 53, 0.5);
  box-shadow: 0 0 0 4px rgba(210, 18, 53, 0.08);
}

.search-box svg {
  position: absolute;
  right: 14px;
  width: 18px;
  height: 18px;
  color: rgba(41, 36, 36, 0.65);
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(210, 18, 53, 0.06);
  color: #171717;
  font-size: 16px;
  font-weight: 700;
}

.user-pill__avatar {
  width: 34px;
  height: 34px;
  padding: 6px;
  border-radius: 50%;
  background: rgba(210, 18, 53, 0.15);
  color: var(--brand);
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  min-height: calc(100vh - 82px);
  padding: 18px 18px 18px 18px;
}

.table-panel,
.detail-panel,
.login-card {
  border: 1px solid rgba(157, 16, 35, 0.08);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.table-panel {
  min-width: 0;
  padding: 16px 16px 12px;
  border-radius: 26px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
}

.panel-head p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

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

.ghost-button,
.pager-button,
.icon-button {
  border: 1px solid rgba(157, 16, 35, 0.12);
  background: #fff;
  color: var(--text);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.ghost-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
}

.ghost-button--primary {
  border-color: rgba(210, 18, 53, 0.14);
  background: linear-gradient(90deg, #df1239 0%, #be0f2d 100%);
  color: #fff;
}

.ghost-button:hover,
.pager-button:hover,
.icon-button:hover {
  border-color: rgba(210, 18, 53, 0.36);
  box-shadow: 0 8px 18px rgba(210, 18, 53, 0.08);
}

.table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(157, 16, 35, 0.08);
  background: #fff;
}

.submissions-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.submissions-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 15px 14px;
  background: linear-gradient(180deg, #fff, #fff7f8);
  color: #1a1a1a;
  font-size: 15px;
  text-align: left;
  font-weight: 800;
  border-bottom: 1px solid rgba(157, 16, 35, 0.08);
  white-space: nowrap;
}

.submissions-table tbody td {
  padding: 15px 14px;
  border-bottom: 1px solid rgba(157, 16, 35, 0.07);
  font-size: 15px;
  color: #232020;
  vertical-align: middle;
  white-space: nowrap;
}

.submissions-table tbody tr {
  transition: background-color 140ms ease, transform 140ms ease;
}

.submissions-table tbody tr:hover,
.submissions-table tbody tr.is-selected {
  background: rgba(210, 18, 53, 0.05);
}

.file-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.file-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(210, 18, 53, 0.1);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(157, 16, 35, 0.12);
  background: #fff;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.action-button--primary {
  border-color: rgba(210, 18, 53, 0.1);
  background: linear-gradient(90deg, #de1238, #be0f2d);
  color: #fff;
}

.action-button--disabled,
.submit-button.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.ghost-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

.pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pager-button {
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 18px;
}

.pager-button--active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.page-size {
  min-width: 72px;
  text-align: right;
}

.detail-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 16px;
  border-radius: 26px;
}

.detail-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.detail-panel__head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f1f1f;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.detail-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.detail-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fffefe);
  border: 1px solid rgba(157, 16, 35, 0.08);
}

.detail-card h3 {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
}

.detail-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.detail-list div {
  display: grid;
  gap: 6px;
}

.detail-list dt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.detail-list dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
}

.resume-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 245, 246, 0.9), rgba(255, 255, 255, 0.86));
  border: 1px solid rgba(210, 18, 53, 0.08);
}

.resume-card__icon {
  width: 48px;
  height: 48px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(210, 18, 53, 0.12);
  color: var(--brand);
}

.resume-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 800;
}

.resume-card p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.detail-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.login-card {
  width: min(100%, 420px);
  margin: min(8vh, 80px) auto;
  padding: 24px;
  border-radius: 30px;
}

.login-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-bottom: 20px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(157, 16, 35, 0.08);
  text-align: center;
}

.login-brand h1 {
  margin: 6px 0 0;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--brand);
}

.login-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form .field-group {
  gap: 10px;
}

.login-form .field-label {
  font-size: 16px;
}

.login-form .field-control {
  min-height: 52px;
}

.login-form .field-control input {
  font-size: 16px;
}

.global-message {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  min-width: min(420px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(23, 23, 23, 0.94);
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.global-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.global-message.is-success {
  background: rgba(18, 108, 64, 0.96);
}

.global-message.is-error {
  background: rgba(186, 15, 43, 0.96);
}

@keyframes spin {
  to {
    transform: scale(1) rotate(360deg);
  }
}

@media (max-width: 1200px) {
  .detail-panel {
    grid-column: 1 / -1;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-rows: auto;
    gap: 16px;
  }

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

  .dashboard {
    padding: 14px;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar-title {
    justify-content: space-between;
  }

  .user-pill {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .form-shell {
    width: 100%;
    padding-inline: 14px;
  }

  .hero-card {
    min-height: 150px;
    padding: 16px 16px 24px;
  }

  .brand-logo {
    width: 78px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .form-card {
    padding: 16px 14px 18px;
  }

  .field-label {
    font-size: 18px;
  }

  .field-control {
    min-height: 58px;
  }

  .field-control input {
    font-size: 16px;
  }

  .dropzone {
    min-height: 168px;
    padding-inline: 16px;
  }

  .submit-button {
    min-height: 60px;
    font-size: 20px;
  }

  .admin-login {
    padding: 14px;
  }

  .login-card {
    margin: 14px auto 0;
    padding: 18px;
  }

  .global-message {
    right: 12px;
    left: 12px;
    min-width: unset;
  }

  .success-toast {
    min-width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    font-size: 15px;
  }
}

.admin-login[hidden],
.admin-layout[hidden] {
  display: none !important;
}
