:root {
  --app-font-sans: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI Variable", "Segoe UI", sans-serif;
  --md-sys-color-primary: #006a6a;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #6ff7f6;
  --md-sys-color-on-primary-container: #002020;
  --md-sys-color-secondary: #4a6363;
  --md-sys-color-secondary-container: #cce8e7;
  --md-sys-color-tertiary: #4f5f7d;
  --md-sys-color-tertiary-container: #d6e3ff;
  --md-sys-color-surface: #f4fbfa;
  --md-sys-color-surface-container: #e6f3f2;
  --md-sys-color-surface-container-high: #dce9e8;
  --md-sys-color-surface-container-highest: #d2e0df;
  --md-sys-color-on-surface: #161d1d;
  --md-sys-color-on-surface-variant: #3f4948;
  --md-sys-color-outline: #6f7978;
  --md-sys-color-error: #ba1a1a;
  --md-sys-color-success: #146c2e;
  --md-sys-color-warning: #7a5900;
  --md-elevation-1: 0 1px 2px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);
  --md-elevation-2: 0 6px 16px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.08);
  --md-radius-xs: 12px;
  --md-radius-sm: 18px;
  --md-radius-md: 24px;
  --md-radius-lg: 32px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body,
button,
input,
select,
option,
textarea,
label,
.btn,
.form-control,
.custom-select,
.custom-file-label {
  font-family: var(--app-font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.md3-body {
  margin: 0;
  min-height: 100vh;
  color: var(--md-sys-color-on-surface);
  background:
    radial-gradient(circle at top left, rgba(111, 247, 246, 0.55), transparent 28%),
    radial-gradient(circle at top right, rgba(214, 227, 255, 0.7), transparent 35%),
    linear-gradient(180deg, #f7fffe 0%, #eef6ff 100%);
  font-family: var(--app-font-sans);
}

body.theme-smp {
  --md-sys-color-primary: #1f5fbf;
  --md-sys-color-primary-container: #d6e6ff;
  --md-sys-color-on-primary-container: #0d254d;
  --md-sys-color-secondary-container: #deecff;
  --student-form-button-end: #4b8cff;
  --gateway-surface: linear-gradient(155deg, rgba(255, 255, 255, 0.86), rgba(237, 245, 255, 0.56));
  --gateway-surface-strong: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(225, 238, 255, 0.7));
  --gateway-border: rgba(255, 255, 255, 0.48);
  --gateway-shadow: rgba(18, 53, 120, 0.18);
  --gateway-title-gradient: linear-gradient(135deg, #0f3d8e 0%, #2b6af0 48%, #62a0ff 100%);
  --gateway-chip-bg: rgba(225, 238, 255, 0.72);
  --gateway-chip-text: #153c84;
  background:
    radial-gradient(circle at top left, rgba(117, 150, 242, 0.56), transparent 26%),
    radial-gradient(circle at top right, rgba(50, 116, 230, 0.42), transparent 32%),
    linear-gradient(135deg, #7596f2 0%, #3274e6 100%);
}

body.theme-sma {
  --md-sys-color-primary: #b45a00;
  --md-sys-color-primary-container: #ffddb7;
  --md-sys-color-on-primary-container: #3a1c00;
  --md-sys-color-secondary-container: #ffe9d2;
  --student-form-button-end: #e18b2d;
  --gateway-surface: linear-gradient(155deg, rgba(255, 255, 255, 0.86), rgba(255, 244, 230, 0.58));
  --gateway-surface-strong: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 234, 204, 0.72));
  --gateway-border: rgba(255, 255, 255, 0.52);
  --gateway-shadow: rgba(120, 72, 18, 0.16);
  --gateway-title-gradient: linear-gradient(135deg, #7d3f00 0%, #c96b00 50%, #ffb15a 100%);
  --gateway-chip-bg: rgba(255, 241, 226, 0.8);
  --gateway-chip-text: #7c4100;
  background:
    radial-gradient(circle at top left, rgba(112, 225, 245, 0.65), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 209, 148, 0.72), transparent 34%),
    linear-gradient(135deg, #70e1f5 0%, #ffd194 100%);
}

body.theme-smk {
  --md-sys-color-primary: #6b74d6;
  --md-sys-color-primary-container: #e3e6ff;
  --md-sys-color-on-primary-container: #20275d;
  --md-sys-color-secondary-container: #ffe4ec;
  --student-form-button-end: #e7a7ba;
  --md-sys-color-surface: #f7f4f7;
  --md-sys-color-surface-container: rgba(255, 255, 255, 0.18);
  --md-sys-color-surface-container-high: rgba(255, 255, 255, 0.28);
  --md-sys-color-surface-container-highest: rgba(255, 255, 255, 0.36);
  --md-sys-color-on-surface: #1f2338;
  --md-sys-color-on-surface-variant: #4d5168;
  --gateway-surface: linear-gradient(155deg, rgba(255, 255, 255, 0.8), rgba(248, 243, 255, 0.58));
  --gateway-surface-strong: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(239, 233, 255, 0.72));
  --gateway-border: rgba(255, 255, 255, 0.44);
  --gateway-shadow: rgba(68, 66, 113, 0.17);
  --gateway-title-gradient: linear-gradient(135deg, #4f58b8 0%, #8364ff 45%, #f08ab0 100%);
  --gateway-chip-bg: rgba(236, 233, 255, 0.76);
  --gateway-chip-text: #4148a6;
  background:
    radial-gradient(circle at top left, rgba(255, 214, 224, 0.92), transparent 28%),
    radial-gradient(circle at top right, rgba(214, 224, 255, 0.95), transparent 34%),
    linear-gradient(135deg, #ffd6e0 0%, #d6e0ff 52%, #f0f0f0 100%);
  background-attachment: fixed;
}

body.theme-smk .md3-topbar {
  background: rgba(255, 255, 255, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(22px);
}

body.theme-smk .md3-card,
body.theme-smk .md3-stat,
body.theme-smk .md3-table-card {
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 10px 30px rgba(67, 71, 112, 0.14);
  backdrop-filter: blur(20px);
}

body.theme-smk .md3-card.soft {
  background: rgba(255, 255, 255, 0.64);
}

body.theme-smk .md3-brand-badge {
  background: linear-gradient(135deg, #7e87eb, #efadc0);
}

body.theme-smk .md3-chip {
  background: rgba(105, 118, 214, 0.14);
  color: #2b336f;
}

body.theme-smk .md3-banner {
  background: rgba(214, 224, 255, 0.42);
  border: 1px solid rgba(123, 135, 226, 0.22);
}

body.theme-smk .md3-field input,
body.theme-smk .md3-field select,
body.theme-smk .md3-field textarea {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(111, 121, 120, 0.2);
}

body.theme-smk .md3-field input:focus,
body.theme-smk .md3-field select:focus,
body.theme-smk .md3-field textarea:focus {
  border-color: #7e87eb;
  box-shadow: 0 0 0 4px rgba(126, 135, 235, 0.14);
}

body.theme-smk .md3-button {
  background: linear-gradient(135deg, #7b87e2, #e7a7ba);
  color: #1f2338;
}

body.theme-smk .md3-button-tonal {
  background: rgba(255, 255, 255, 0.42);
  color: #283059;
}

body.theme-smk .md3-button-text {
  color: #4d57b0;
}

body.theme-smk .md3-table thead th {
  background: rgba(255, 255, 255, 0.3);
}

body.theme-smk .md3-table tbody tr:hover {
  background: rgba(214, 224, 255, 0.25);
}

body.theme-smk .md3-pill.primary {
  background: rgba(126, 135, 235, 0.14);
  color: #2b336f;
}

.md3-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 120px;
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

.md3-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 251, 250, 0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(111, 121, 120, 0.18);
}

.md3-topbar-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.md3-topbar-inner.compact {
  min-height: 64px;
  justify-content: flex-start;
}

.gateway-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
  position: relative;
  isolation: isolate;
}

.gateway-shell::before,
.gateway-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  filter: blur(48px);
  opacity: 0.68;
}

.gateway-shell::before {
  top: 36px;
  left: 2%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0) 72%);
}

.gateway-shell::after {
  right: 0;
  bottom: 34px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.54) 0%, rgba(255, 255, 255, 0) 72%);
}

.gateway-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.gateway-shell-quote {
  min-height: calc(100vh - 92px);
  display: grid;
  align-items: center;
}

.gateway-grid-quote {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: stretch;
}

.gateway-main {
  display: grid;
  gap: 22px;
  align-content: start;
}

.gateway-main-quote {
  grid-template-rows: minmax(250px, auto) auto;
}

.gateway-intro {
  padding: 38px 40px;
  display: grid;
  gap: 24px;
  height: auto;
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: var(--gateway-surface);
  border: 1px solid var(--gateway-border);
  box-shadow: 0 22px 42px var(--gateway-shadow);
  animation: gateway-rise 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gateway-grid-quote .gateway-intro {
  min-height: 292px;
  align-content: center;
}

.gateway-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04) 58%, rgba(255, 255, 255, 0.18)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.3), transparent 38%);
  pointer-events: none;
}

.gateway-intro::after {
  content: "";
  position: absolute;
  right: -74px;
  top: -74px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0.08) 48%, rgba(255, 255, 255, 0) 74%);
  pointer-events: none;
}

.gateway-story,
.gateway-live-strip,
.gateway-major-switch {
  position: relative;
  z-index: 1;
}

.gateway-story {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.gateway-glance {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gateway-glance-item {
  padding: 18px;
  border-radius: 22px;
  display: grid;
  gap: 6px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 10px 22px rgba(55, 66, 104, 0.08);
}

.gateway-glance-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--md-sys-color-primary);
}

.gateway-glance-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--md-sys-color-on-surface);
}

.gateway-live-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gateway-live-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.5);
  min-height: 168px;
  box-shadow: 0 14px 26px rgba(61, 73, 116, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  animation: gateway-rise 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gateway-live-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 34px rgba(61, 73, 116, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.54));
}

.gateway-live-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gateway-live-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 24px rgba(72, 75, 124, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 246, 255, 0.84));
  border: 1px solid rgba(126, 135, 235, 0.16);
  overflow: hidden;
}

.gateway-live-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.04) 56%);
  pointer-events: none;
}

.gateway-live-icon i {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: saturate(1.1) drop-shadow(0 4px 10px rgba(92, 97, 162, 0.16));
}

.gateway-live-icon.clock i {
  background-image: linear-gradient(135deg, #ff7cab 0%, #ffb86f 100%);
}

.gateway-live-icon.date i {
  background-image: linear-gradient(135deg, #56d8ff 0%, #5b7cff 100%);
}

.gateway-live-icon.quote i {
  background-image: linear-gradient(135deg, #29c28a 0%, #5b86e5 100%);
}

.gateway-live-icon.major i {
  background-image: linear-gradient(135deg, #7d6bff 0%, #d76dff 55%, #ff8f70 100%);
}

.gateway-live-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--md-sys-color-primary);
}

.gateway-live-value {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--md-sys-color-on-surface);
  text-wrap: balance;
}

.gateway-live-value.quote {
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.gateway-live-note {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--md-sys-color-on-surface-variant);
}

.gateway-major-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gateway-major-button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.5);
  color: var(--md-sys-color-on-surface);
  border-radius: 999px;
  padding: 10px 15px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.gateway-major-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(63, 73, 117, 0.12);
}

.gateway-major-button.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--md-sys-color-primary), #7c7cff);
  color: var(--md-sys-color-on-primary);
  box-shadow: 0 14px 26px rgba(91, 124, 255, 0.22);
}

.gateway-greeting {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--md-sys-color-primary);
}

.gateway-title {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  background-image: var(--gateway-title-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-wrap: balance;
}

.gateway-title span {
  display: block;
}

.gateway-copy {
  margin: 0;
  max-width: 760px;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--md-sys-color-on-surface-variant);
}

.gateway-major-marquee {
  --major-badge-surface: linear-gradient(135deg, #7a68ff 0%, #b69cff 52%, #f2dfbf 100%);
  --major-text-gradient: linear-gradient(90deg, #6b5cff 0%, #8c76ff 24%, #b699ff 48%, #dcc6ff 72%, #f4e4c8 100%);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 28px rgba(65, 74, 118, 0.1);
}

.gateway-major-marquee::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at left center, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.gateway-major-marquee[data-major-theme="RPL"] {
  --major-badge-surface: linear-gradient(135deg, #635dff 0%, #4f86ff 44%, #f2e3c8 100%);
  --major-text-gradient: linear-gradient(90deg, #6056ff 0%, #5874ff 24%, #7c95ff 48%, #c7b7ff 72%, #f3e5cf 100%);
}

.gateway-major-marquee[data-major-theme="TKJ"] {
  --major-badge-surface: linear-gradient(135deg, #2f8cff 0%, #4bd2ff 52%, #eef2d8 100%);
  --major-text-gradient: linear-gradient(90deg, #2e7fff 0%, #3c9dff 26%, #55c9ff 52%, #a8dbec 76%, #eef0d4 100%);
}

.gateway-major-marquee[data-major-theme="BD"] {
  --major-badge-surface: linear-gradient(135deg, #ff7b38 0%, #ffb14f 52%, #f7ebcd 100%);
  --major-text-gradient: linear-gradient(90deg, #ff7a36 0%, #ff9442 24%, #ffb24d 48%, #ffd18c 74%, #f8ebd4 100%);
}

.gateway-major-marquee[data-major-theme="AK"] {
  --major-badge-surface: linear-gradient(135deg, #1fae7a 0%, #73d48e 52%, #edf2cf 100%);
  --major-text-gradient: linear-gradient(90deg, #189f71 0%, #27bb82 24%, #58d29c 48%, #b9e0a9 74%, #edf1d1 100%);
}

.gateway-major-marquee[data-major-theme="MP"] {
  --major-badge-surface: linear-gradient(135deg, #8a6dff 0%, #e793b9 52%, #f7e3cb 100%);
  --major-text-gradient: linear-gradient(90deg, #7e64ff 0%, #9d71ff 24%, #c58ed9 48%, #efb0af 74%, #f7e4ce 100%);
}

.gateway-major-marquee[data-major-theme="QUOTE_A"] {
  --major-badge-surface: linear-gradient(135deg, #5f6fff 0%, #8ea7ff 50%, #f4e6d0 100%);
  --major-text-gradient: linear-gradient(90deg, #5867ff 0%, #6e82ff 24%, #96adff 50%, #cabfff 74%, #f4e6d2 100%);
}

.gateway-major-marquee[data-major-theme="QUOTE_B"] {
  --major-badge-surface: linear-gradient(135deg, #ff7f86 0%, #ffc06a 52%, #f7e8c9 100%);
  --major-text-gradient: linear-gradient(90deg, #ff7682 0%, #ff9580 24%, #ffb96f 50%, #ffd4a2 74%, #f7e9ce 100%);
}

.gateway-major-marquee[data-major-theme="QUOTE_C"] {
  --major-badge-surface: linear-gradient(135deg, #735fff 0%, #b28cff 48%, #f5dfc8 100%);
  --major-text-gradient: linear-gradient(90deg, #6a58ff 0%, #866cff 24%, #b38cff 50%, #ddbcff 74%, #f3dfcb 100%);
}

.gateway-major-marquee-kicker {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  padding: 11px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--major-badge-surface);
  box-shadow: 0 12px 22px rgba(86, 96, 170, 0.18);
}

.gateway-major-marquee-window {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}

.gateway-major-marquee-track {
  display: flex;
  align-items: center;
  gap: 42px;
  width: max-content;
  will-change: transform;
  animation: gateway-major-marquee 16s linear infinite;
}

.gateway-major-marquee-text {
  white-space: nowrap;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  background-image: var(--major-text-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.16);
}

.gateway-aside {
  padding: 26px;
  height: auto;
  min-height: 0;
  position: sticky;
  top: 92px;
  align-self: start;
  overflow: hidden;
  border-radius: 32px;
  background: var(--gateway-surface-strong);
  border: 1px solid var(--gateway-border);
  box-shadow: 0 20px 38px var(--gateway-shadow);
  animation: gateway-rise 840ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gateway-grid-quote .gateway-aside {
  position: relative;
  top: auto;
  min-height: 100%;
  display: grid;
  align-content: start;
}

.gateway-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.3), transparent 36%);
  pointer-events: none;
}

.gateway-aside h3 {
  margin: 0;
  font-size: 1.36rem;
  line-height: 1.2;
}

.gateway-aside > * {
  position: relative;
  z-index: 1;
}

.gateway-aside-kicker,
.gateway-form-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--md-sys-color-primary);
}

.gateway-aside-copy,
.gateway-form-copy {
  margin: 10px 0 0;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.65;
}

.gateway-contact-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.gateway-contact-item {
  padding: 17px 18px;
  border-radius: 22px;
  display: grid;
  gap: 6px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.4);
  line-height: 1.55;
  box-shadow: 0 10px 22px rgba(60, 70, 106, 0.07);
}

.gateway-contact-label {
  display: block;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--md-sys-color-on-surface-variant);
}

.gateway-contact-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
}

.gateway-form-card {
  padding: 28px 30px 30px;
  height: auto;
  position: relative;
  align-self: start;
  overflow: hidden;
  border-radius: 32px;
  background: var(--gateway-surface-strong);
  border: 1px solid var(--gateway-border);
  box-shadow: 0 20px 36px var(--gateway-shadow);
  animation: gateway-rise 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gateway-grid-quote .gateway-form-card {
  min-height: 332px;
  display: grid;
  align-content: start;
}

.gateway-form-card::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--md-sys-color-primary), rgba(255, 255, 255, 0.92));
}

.gateway-form-card > * {
  position: relative;
  z-index: 1;
}

.gateway-form-head {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.gateway-form-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.gateway-form-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.44);
  color: var(--md-sys-color-on-surface);
  font-size: 0.9rem;
  font-weight: 700;
}

.gateway-form-badge i {
  color: var(--md-sys-color-primary);
}

.gateway-form-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

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

.gateway-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-start;
}

.gateway-actions .md3-button {
  min-width: 100%;
  min-height: 58px;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(58, 74, 123, 0.18);
}

.gateway-form-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.gateway-form-note i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--md-sys-color-primary);
  box-shadow: 0 10px 18px rgba(53, 65, 101, 0.08);
}

.gateway-form-note p {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.65;
}

.gateway-aside-panel {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 12px 26px rgba(61, 73, 112, 0.08);
}

.gateway-aside-panel h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.gateway-aside-panel p {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.65;
}

.gateway-aside-cta {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.gateway-aside-cta .md3-button,
.gateway-aside-cta .md3-button-tonal {
  width: 100%;
  justify-content: center;
}

body.theme-smp .gateway-intro,
body.theme-smp .gateway-form-card,
body.theme-smp .gateway-aside {
  box-shadow: 0 24px 52px rgba(18, 53, 120, 0.18);
}

body.theme-sma .gateway-intro,
body.theme-sma .gateway-form-card,
body.theme-sma .gateway-aside {
  box-shadow: 0 24px 52px rgba(120, 72, 18, 0.16);
}

body.theme-smk .gateway-intro,
body.theme-smk .gateway-form-card,
body.theme-smk .gateway-aside {
  box-shadow: 0 24px 52px rgba(68, 66, 113, 0.17);
}

.student-form-shell .md3-topbar {
  background: rgba(255, 255, 255, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(22px);
}

.student-form-shell .md3-topbar-inner {
  align-items: flex-start;
}

.student-form-shell .md3-brand {
  align-items: flex-start;
  gap: 18px;
}

.student-form-shell .md3-shell {
  display: grid;
  gap: 18px;
}

.student-form-hero {
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.83fr);
  gap: 18px;
  align-items: stretch;
}

.student-form-hero > .md3-card,
.student-form-hero > .md3-card + .md3-card {
  margin-top: 0;
  align-self: stretch;
}

.student-form-hero-copy {
  display: grid;
  gap: 18px;
  min-height: 100%;
  padding: 34px 36px;
}

.student-form-live-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.student-form-live-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(225, 231, 255, 0.46);
  border: 1px solid rgba(121, 137, 211, 0.18);
  min-height: 176px;
}

.student-form-live-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.student-form-live-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 24px rgba(72, 75, 124, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 246, 255, 0.84));
  border: 1px solid rgba(126, 135, 235, 0.16);
  overflow: hidden;
}

.student-form-live-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.04) 56%);
  pointer-events: none;
}

.student-form-live-icon i {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: saturate(1.1) drop-shadow(0 4px 10px rgba(92, 97, 162, 0.16));
}

.student-form-live-icon.clock i {
  background-image: linear-gradient(135deg, #ff7cab 0%, #ffb86f 100%);
}

.student-form-live-icon.date i {
  background-image: linear-gradient(135deg, #56d8ff 0%, #5b7cff 100%);
}

.student-form-live-icon.quote i {
  background-image: linear-gradient(135deg, #29c28a 0%, #5b86e5 100%);
}

.student-form-live-icon.major i {
  background-image: linear-gradient(135deg, #7d6bff 0%, #d76dff 55%, #ff8f70 100%);
}

.student-form-live-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--md-sys-color-primary);
}

.student-form-live-value {
  margin: 0;
  font-size: clamp(1.18rem, 2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--md-sys-color-on-surface);
  text-wrap: balance;
}

.student-form-live-value.quote {
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 1.56;
  letter-spacing: -0.01em;
}

.student-form-live-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--md-sys-color-on-surface-variant);
}

.student-form-greeting {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--md-sys-color-primary);
}

.student-form-title {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  background-image: var(--gateway-title-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.18),
    0 0 28px rgba(124, 232, 255, 0.12);
}

.student-form-sidecard {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 30px;
}

.student-form-sidecard .md3-grid {
  gap: 14px;
}

.student-form-sidecard .md3-banner {
  min-height: 0;
  line-height: 1.62;
}

.student-form-stack {
  display: grid;
  gap: 18px;
}

.student-form-notice-card {
  padding: 24px 26px;
  margin: 14px 0 22px;
}

.student-form-notice-card .md3-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  margin: 0;
}

.student-form-notice-card .md3-status strong {
  font-weight: 800;
}

.student-form-card {
  padding: 30px;
}

.student-form-card-head {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.student-form-card-head .md3-title {
  font-size: clamp(1.5rem, 2vw, 1.9rem);
}

.student-form-form {
  display: block;
}

.student-form-shell .form-floating {
  margin-bottom: 16px !important;
}

.student-form-shell .form-floating label,
.student-form-shell .form-group label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
}

.student-form-shell .form-control,
.student-form-shell select,
.student-form-shell .custom-select {
  width: 100%;
  min-height: 54px;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(111, 121, 120, 0.2);
  background: rgba(255, 255, 255, 0.92);
  color: var(--md-sys-color-on-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.student-form-shell textarea.form-control {
  min-height: 120px;
}

.student-form-shell .form-control:focus,
.student-form-shell select:focus,
.student-form-shell .custom-select:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
  background: rgba(255, 255, 255, 0.98);
}

body.theme-smp.student-form-shell .form-control:focus,
body.theme-smp.student-form-shell select:focus,
body.theme-smp.student-form-shell .custom-select:focus {
  box-shadow: 0 0 0 4px rgba(31, 95, 191, 0.14);
}

body.theme-sma.student-form-shell .form-control:focus,
body.theme-sma.student-form-shell select:focus,
body.theme-sma.student-form-shell .custom-select:focus {
  box-shadow: 0 0 0 4px rgba(180, 90, 0, 0.14);
}

body.theme-smk.student-form-shell .form-control:focus,
body.theme-smk.student-form-shell select:focus,
body.theme-smk.student-form-shell .custom-select:focus {
  box-shadow: 0 0 0 4px rgba(126, 135, 235, 0.14);
}

.student-form-shell .input-group {
  align-items: stretch;
}

.student-form-shell .input-group-text {
  border-radius: 18px 0 0 18px;
  border: 1px solid rgba(111, 121, 120, 0.2);
  border-right: 0;
  background: rgba(255, 255, 255, 0.86);
  color: var(--md-sys-color-primary);
}

.student-form-shell .input-group > .form-control {
  border-radius: 0 18px 18px 0;
}

.student-form-shell .btn-primary {
  width: 100%;
  min-height: 58px;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none !important;
  background: linear-gradient(135deg, var(--md-sys-color-primary), var(--student-form-button-end));
  box-shadow: 0 16px 30px rgba(61, 73, 116, 0.16);
}

.student-form-shell .btn-primary:hover,
.student-form-shell .btn-primary:focus {
  box-shadow: 0 20px 32px rgba(61, 73, 116, 0.2);
}

.student-form-shell .btn-primary:focus {
  outline: none;
}

.student-form-download {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(111, 121, 120, 0.14);
}

.student-form-download p {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
}

.student-form-download .md3-button-tonal {
  width: fit-content;
  text-decoration: none;
}

body.theme-smp .student-form-card,
body.theme-smp .student-form-sidecard {
  box-shadow: 0 24px 52px rgba(18, 53, 120, 0.18);
}

body.theme-sma .student-form-card,
body.theme-sma .student-form-sidecard {
  box-shadow: 0 24px 52px rgba(120, 72, 18, 0.16);
}

body.theme-smk .student-form-card,
body.theme-smk .student-form-sidecard {
  box-shadow: 0 24px 52px rgba(68, 66, 113, 0.17);
}

@keyframes gateway-rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes gateway-major-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 21px));
  }
}

@media (max-width: 960px) {
  .gateway-shell-quote {
    min-height: 0;
    display: block;
  }

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

  .gateway-aside {
    position: static;
    top: auto;
  }

  .gateway-intro,
  .gateway-form-card,
  .gateway-aside {
    padding: 24px;
  }

  .gateway-grid-quote .gateway-intro,
  .gateway-grid-quote .gateway-form-card,
  .gateway-grid-quote .gateway-aside {
    min-height: 0;
  }

  .gateway-live-strip {
    grid-template-columns: 1fr;
  }

  .gateway-glance {
    grid-template-columns: 1fr;
  }

  .gateway-title {
    font-size: clamp(2.2rem, 8vw, 3.1rem);
  }

  .gateway-major-marquee {
    grid-template-columns: 1fr;
    align-items: start;
    border-radius: 26px;
  }

  .gateway-major-marquee-kicker {
    width: fit-content;
  }

  .student-form-hero {
    grid-template-columns: 1fr;
  }

  .student-form-hero-copy,
  .student-form-sidecard,
  .student-form-notice-card,
  .student-form-card {
    padding: 24px;
  }

  .student-form-live-strip {
    grid-template-columns: 1fr;
  }

  .student-form-title {
    font-size: clamp(2rem, 8vw, 2.7rem);
  }

  .student-form-download .md3-button-tonal {
    width: 100%;
    justify-content: center;
  }
}

.md3-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.md3-brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--md-sys-color-primary), #00a3a3);
  color: var(--md-sys-color-on-primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: var(--md-elevation-1);
}

.md3-title {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.1;
}

.md3-subtitle,
.md3-muted {
  margin: 0;
  color: color-mix(in srgb, var(--md-sys-color-on-surface-variant) 90%, #24303f 10%);
}

.md3-card,
.md3-stat,
.md3-table-card {
  background: rgba(249, 252, 255, 0.92);
  border: 1px solid rgba(111, 121, 120, 0.16);
  border-radius: var(--md-radius-md);
  box-shadow: var(--md-elevation-1);
}

.md3-card {
  padding: 24px;
  height: 100%;
}

.md3-card.soft {
  background: rgba(255, 255, 255, 0.84);
}

.md3-card + .md3-card {
  margin-top: 20px;
}

.md3-hero {
  display: grid;
  gap: 16px;
  grid-template-columns: 2fr 1fr;
  margin-bottom: 24px;
  align-items: stretch;
}

.md3-hero-copy {
  padding: 28px;
  display: grid;
  align-content: start;
}

.md3-chip-row,
.md3-actions,
.md3-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.md3-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  font-size: 0.92rem;
  font-weight: 600;
}

.md3-kicker {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--md-sys-color-primary);
}

.md3-grid,
.md3-form-grid,
.md3-stats-grid {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

.md3-stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

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

.md3-form-grid .md3-full {
  grid-column: 1 / -1;
}

.md3-section-title {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.md3-stat {
  padding: 18px;
  height: 100%;
  display: grid;
  align-content: start;
}

.md3-stat-label {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.9rem;
}

.md3-stat-value {
  margin-top: 10px;
  font-size: 2rem;
  font-weight: 700;
}

.md3-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.md3-field label {
  font-weight: 600;
  color: color-mix(in srgb, var(--md-sys-color-on-surface) 82%, #24303f 18%);
}

.md3-field input,
.md3-field select,
.md3-field textarea {
  width: 100%;
  border: 1px solid rgba(111, 121, 120, 0.24);
  background: rgba(255, 255, 255, 0.94);
  color: var(--md-sys-color-on-surface);
  min-height: 54px;
  padding: 14px 16px;
  border-radius: var(--md-radius-sm);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.md3-field textarea {
  min-height: 120px;
  resize: vertical;
}

.md3-field input:focus,
.md3-field select:focus,
.md3-field textarea:focus {
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 4px rgba(0, 106, 106, 0.12);
}

.md3-field small {
  color: var(--md-sys-color-on-surface-variant);
}

.md3-button,
.md3-button-tonal,
.md3-button-text {
  appearance: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
}

.md3-button {
  color: var(--md-sys-color-on-primary);
  background: linear-gradient(135deg, var(--md-sys-color-primary), #008585);
  box-shadow: var(--md-elevation-1);
}

.md3-button-tonal {
  background: var(--md-sys-color-secondary-container);
  color: #123131;
}

.md3-button-text {
  background: transparent;
  color: var(--md-sys-color-primary);
}

.md3-button-danger {
  appearance: none;
  border: none;
  cursor: pointer;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  background: rgba(186, 26, 26, 0.12);
  color: #8c1010;
}

.md3-banner,
.md3-status {
  padding: 16px 18px;
  border-radius: var(--md-radius-sm);
}

.md3-banner {
  background: rgba(111, 247, 246, 0.18);
  border: 1px solid rgba(0, 106, 106, 0.18);
}

.md3-status.success {
  color: #0d5724;
  background: rgba(20, 108, 46, 0.12);
}

.md3-status.warning {
  color: #704f00;
  background: rgba(122, 89, 0, 0.12);
}

.md3-status.error {
  color: #8c1010;
  background: rgba(186, 26, 26, 0.12);
}

.md3-status.info {
  color: #0d4a60;
  background: rgba(79, 95, 125, 0.12);
}

.md3-table-card {
  overflow: hidden;
}

.md3-table {
  width: 100%;
  border-collapse: collapse;
}

.md3-table th,
.md3-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(111, 121, 120, 0.14);
  text-align: left;
  vertical-align: top;
}

.md3-table thead th {
  font-size: 0.88rem;
  color: var(--md-sys-color-on-surface-variant);
  background: rgba(230, 243, 242, 0.76);
}

.md3-table tbody tr:hover {
  background: rgba(204, 232, 231, 0.2);
}

.md3-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.md3-pill.primary {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.md3-pill.success {
  background: rgba(20, 108, 46, 0.12);
  color: #0d5724;
}

.md3-pill.warning {
  background: rgba(122, 89, 0, 0.14);
  color: #704f00;
}

.md3-file-preview {
  width: 100%;
  min-height: 140px;
  border: 1px dashed rgba(111, 121, 120, 0.35);
  border-radius: var(--md-radius-sm);
  background: rgba(251, 255, 254, 0.9);
  display: grid;
  place-items: center;
  color: var(--md-sys-color-on-surface-variant);
}

.md3-kv {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 12px 18px;
}

.md3-kv dt {
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 600;
}

.md3-kv dd {
  margin: 0;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 20px;
  align-items: stretch;
}

.portal-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 28px;
  border-radius: var(--md-radius-lg);
  color: #fff;
  box-shadow: var(--md-elevation-2);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  align-content: stretch;
  height: 100%;
}

.portal-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.portal-card.smp {
  background: linear-gradient(135deg, #244fcb 0%, #4b8cff 100%);
}

.portal-card.sma {
  background: linear-gradient(135deg, #dd8d22 0%, #ffbb5c 100%);
  color: #432300;
}

.portal-card.smk {
  background: linear-gradient(135deg, #0b7f86 0%, #28b4b6 100%);
}

.portal-card .md3-button,
.portal-card .md3-button-tonal {
  align-self: flex-start;
}

.portal-card.sma .md3-button-tonal {
  background: rgba(255, 255, 255, 0.65);
}

.portal-icon {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  font-size: 1.45rem;
}

.md3-page-stack,
.admin-dashboard-stack,
.detail-section-stack {
  display: grid;
  gap: 22px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.admin-toolbar-group,
.detail-actions,
.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.admin-search-form .md3-button {
  min-width: 160px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.detail-layout.single {
  grid-template-columns: 1fr;
}

.detail-summary-grid,
.payment-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.detail-summary-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.34);
  height: 100%;
  display: grid;
  align-content: start;
}

.detail-summary-label {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.83rem;
  font-weight: 700;
}

.detail-summary-value {
  margin-top: 8px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.doc-card {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.34);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  height: 100%;
}

.doc-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(111, 121, 120, 0.28);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 700;
}

.doc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doc-title {
  font-size: 1rem;
  font-weight: 700;
}

.doc-name {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.92rem;
  line-height: 1.5;
  word-break: break-word;
}

.doc-empty {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.94rem;
}

.docvis-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.docvis-head-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--md-radius-sm);
  display: grid;
  place-items: center;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.docvis-head-text h2 {
  margin: 0;
  font-size: 1.15rem;
}

.docvis-head-text p {
  margin: 4px 0 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.9rem;
}

.docvis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.docvis-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--md-radius-md);
  border: 1px solid var(--md-sys-color-outline);
  background: var(--md-sys-color-surface-container);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.docvis-card.is-visible {
  border-color: var(--md-sys-color-primary);
  background: var(--md-sys-color-primary-container);
}

.docvis-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.docvis-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface-variant);
  font-size: 1rem;
  flex-shrink: 0;
}

.docvis-card.is-visible .docvis-icon {
  background: var(--md-sys-color-on-primary-container);
  color: var(--md-sys-color-primary-container);
}

.docvis-label {
  font-weight: 700;
  font-size: 0.96rem;
}

.docvis-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--md-radius-xs);
  border: 1px solid var(--md-sys-color-outline);
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.docvis-card.is-visible .docvis-select {
  border-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary-container);
}

.detail-heading,
.section-heading {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

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

.detail-kv {
  margin: 0;
}

.detail-kv dt {
  font-size: 0.9rem;
}

.detail-kv dd {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(111, 121, 120, 0.12);
}

.detail-kv dd:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.admin-table-card .md3-table td:last-child,
.admin-table-card .md3-table th:last-child {
  white-space: nowrap;
}

.admin-muted {
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.7;
}

.admin-dashboard-stack .md3-hero {
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.72fr);
  align-items: stretch;
}

.admin-dashboard-stack .md3-hero > .md3-card,
.admin-dashboard-stack .md3-hero > .md3-card + .md3-card {
  margin-top: 0;
}

.admin-dashboard-stack .md3-hero > .md3-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 100%;
  min-height: 560px;
}

.admin-dashboard-stack .md3-hero > .md3-card:last-child {
  padding: 0;
}

.admin-visual-card {
  display: grid;
  grid-template-rows: 1fr;
  gap: 0;
  overflow: hidden;
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
}

.admin-visual-showcase {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 100%;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 28px minmax(300px, 1fr) auto;
  gap: 14px;
  align-content: stretch;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(12, 16, 42, 0.18) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.admin-visual-card .admin-visual {
  position: relative;
  inset: auto;
  display: grid;
  place-items: center;
  z-index: 1;
  min-height: 0;
  height: 100%;
  align-self: start;
  padding: 20px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(230, 239, 255, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.admin-visual-card .admin-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.85), transparent 28%),
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.42), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(173, 199, 255, 0.16) 100%);
}

.admin-visual-card .admin-visual > img {
  width: 100%;
  max-width: 248px;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transform: translate(8px, -2px) rotate(8deg);
  filter: drop-shadow(0 26px 36px rgba(27, 39, 88, 0.24));
}

.admin-visual-ranking-board {
  align-content: start;
  grid-template-rows: auto 1fr;
  gap: 14px;
  place-items: stretch;
}

.admin-ranking-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-ranking-kicker {
  margin: 0 0 6px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5b62c3;
}

.admin-ranking-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.15;
  color: #2b2f53;
}

.admin-ranking-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(111, 121, 120, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
  color: #2f427f;
}

.admin-ranking-live span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #3bd57f;
  box-shadow: 0 0 0 5px rgba(59, 213, 127, 0.14);
}

.admin-ranking-list {
  position: relative;
  overflow: hidden;
  min-height: 0;
  height: 100%;
}

.admin-ranking-list::before,
.admin-ranking-list::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 22px;
  z-index: 2;
  pointer-events: none;
}

.admin-ranking-list::before {
  top: 0;
  background: linear-gradient(180deg, rgba(232, 235, 255, 0.92) 0%, rgba(232, 235, 255, 0) 100%);
}

.admin-ranking-list::after {
  bottom: 0;
  background: linear-gradient(180deg, rgba(232, 235, 255, 0) 0%, rgba(232, 235, 255, 0.92) 100%);
}

.admin-ranking-track {
  display: flex;
  flex-direction: column;
  animation: admin-ranking-up 18s linear infinite;
  will-change: transform;
  min-height: 100%;
}

.admin-ranking-track-list {
  animation: none;
  gap: 10px;
  min-height: auto;
}

.admin-ranking-list-view {
  overflow: hidden;
  padding-right: 4px;
}

.admin-ranking-list-view::before,
.admin-ranking-list-view::after {
  display: block;
}

.admin-ranking-track-list-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-content: start;
  animation: admin-ranking-up 20s linear infinite;
  will-change: transform;
}

.admin-ranking-cycle {
  display: grid;
  gap: 8px;
}

.admin-ranking-list:hover .admin-ranking-track {
  animation-play-state: paused;
}

.admin-ranking-group {
  display: grid;
  gap: 10px;
  align-content: start;
}

.admin-ranking-item {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(111, 121, 120, 0.12);
  box-shadow: 0 6px 14px rgba(96, 103, 164, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.admin-ranking-item-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: none;
}

.admin-ranking-item-badge {
  min-width: 48px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(91, 98, 195, 0.10);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  color: #4a54b6;
}

.admin-ranking-item-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-ranking-item-side {
  display: grid;
  gap: 4px;
  justify-items: end;
  align-content: center;
}

.admin-ranking-item-name {
  font-size: 0.86rem;
  line-height: 1.25;
  color: #2a2f57;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-ranking-item-caption {
  font-size: 0.76rem;
  font-weight: 700;
  color: #71779f;
}

.admin-ranking-item-rank,
.admin-ranking-item-score {
  font-size: 0.76rem;
  font-weight: 700;
  color: #5c628e;
  white-space: nowrap;
}

.admin-ranking-item-top,
.admin-ranking-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-ranking-item-top strong {
  font-size: 0.9rem;
  color: #2a2f57;
}

.admin-ranking-item-top span,
.admin-ranking-item-meta span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6a6f93;
}

.admin-ranking-item p {
  margin: 4px 0 0;
  font-size: 0.84rem;
  line-height: 1.35;
  color: #454b6a;
  min-height: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes admin-ranking-up {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

.admin-visual-card .admin-visual-meta {
  position: relative;
  z-index: 2;
  margin-top: auto;
  max-width: 100%;
  display: grid;
  gap: 8px;
  padding: 2px 2px 0;
}

.admin-visual-meta-minimal {
  gap: 0;
}

.admin-visual-card .admin-visual-chip {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  backdrop-filter: blur(8px);
}

.admin-visual-card .admin-visual-title {
  color: #fff;
  text-shadow: 0 8px 24px rgba(7, 11, 32, 0.24);
}

.admin-visual-card .admin-visual-copy {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 6px 18px rgba(7, 11, 32, 0.22);
}

.admin-visual-card .admin-visual {
  position: relative;
}

.admin-visual-topline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.96);
  font-weight: 700;
}

.admin-visual-topline span {
  font-size: 1rem;
  line-height: 1;
}

.admin-visual-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
  position: relative;
  z-index: 2;
}

.admin-visual-meta {
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 2;
  color: #fff;
}

.admin-visual-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-visual-title,
.admin-dashboard-stack .md3-section-title {
  margin: 0;
}

.admin-visual-title {
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.admin-visual-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.admin-visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

body.theme-smp .admin-visual-card::before {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(145deg, #ef4a96 0%, #fb7a6d 46%, #6f6dff 100%);
}

body.theme-sma .admin-visual-card::before {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(145deg, #ff8a4c 0%, #ffbb57 44%, #f172c0 100%);
}

body.theme-smk .admin-visual-card::before {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(145deg, #5077ff 0%, #8b74ff 48%, #ff7eb1 100%);
}

body.theme-smp .admin-visual-card .admin-visual {
  background: linear-gradient(180deg, rgba(232, 242, 255, 0.96) 0%, rgba(189, 214, 255, 0.84) 100%);
}

body.theme-sma .admin-visual-card .admin-visual {
  background: linear-gradient(180deg, rgba(255, 245, 225, 0.96) 0%, rgba(255, 220, 181, 0.84) 100%);
}

body.theme-smk .admin-visual-card .admin-visual {
  background: linear-gradient(180deg, rgba(240, 238, 255, 0.96) 0%, rgba(222, 222, 255, 0.86) 100%);
}

.admin-dashboard-stack .md3-hero-copy {
  grid-template-rows: 1fr auto;
  gap: 18px;
  padding: 30px 32px;
}

.admin-dashboard-stack .md3-hero-copy .md3-actions {
  margin-top: auto !important;
}

.admin-hero-intro {
  display: grid;
  align-content: start;
  gap: 0;
}

.admin-dashboard-stack .md3-hero-copy .md3-title,
.admin-dashboard-stack .md3-hero-copy .admin-muted {
  max-width: 760px;
}

.admin-notes-panel {
  margin-top: 24px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(111, 121, 120, 0.12);
  display: grid;
  gap: 16px;
}

.admin-notes-stage {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  min-height: 260px;
}

.admin-notes-editor {
  min-width: 0;
  min-height: 100%;
}

.admin-notes-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.admin-notes-kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--md-sys-color-primary);
}

.admin-notes-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
}

.admin-notes-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(111, 121, 120, 0.14);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--md-sys-color-on-surface-variant);
}

.admin-notes-form {
  display: grid;
  gap: 14px;
  height: 100%;
  min-height: 100%;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(111, 121, 120, 0.12);
  grid-template-rows: auto 1fr auto;
}

.admin-notes-form .md3-field {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
}

.admin-notes-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-notes-form textarea {
  min-height: 154px;
  height: 100%;
  resize: none;
  background:
    linear-gradient(180deg, rgba(255, 250, 207, 0.95) 0%, rgba(255, 239, 165, 0.92) 100%);
  border-color: rgba(189, 149, 0, 0.14);
}

.admin-notes-list {
  min-width: 0;
  min-height: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 230px);
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: stretch;
  padding: 2px 4px 8px 2px;
  scroll-snap-type: x proximity;
}

.admin-notes-list.is-empty {
  grid-auto-columns: minmax(0, 1fr);
  overflow: hidden;
}

.admin-notes-list::-webkit-scrollbar {
  height: 10px;
}

.admin-notes-list::-webkit-scrollbar-thumb {
  background: rgba(111, 121, 120, 0.24);
  border-radius: 999px;
}

.admin-notes-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.42);
  border-radius: 999px;
}

.admin-note-item,
.admin-note-empty {
  position: relative;
  min-height: 244px;
  height: 100%;
  padding: 18px 16px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff8b8 0%, #ffe98d 100%);
  border: 1px solid rgba(191, 151, 7, 0.18);
  box-shadow: 0 12px 22px rgba(170, 132, 18, 0.12);
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 0;
  scroll-snap-align: start;
}

.admin-note-item.is-editing {
  background: linear-gradient(180deg, #fff3be 0%, #ffd879 100%);
}

.admin-note-pin {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 32% 28%, #fff4c9 0%, #f08181 38%, #d04c57 100%);
  box-shadow: 0 2px 8px rgba(123, 34, 45, 0.24);
}

.admin-note-item p,
.admin-note-empty {
  margin: 0;
  line-height: 1.7;
  color: #5b4b1f;
  word-break: break-word;
}

.admin-note-inline-form {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 0;
  min-height: 100%;
}

.admin-note-inline-form textarea {
  width: 100%;
  min-height: 112px;
  resize: none;
  border: 1px solid rgba(191, 151, 7, 0.22);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.45);
  color: #5b4b1f;
  outline: none;
}

.admin-note-item span {
  display: block;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #8b6a17;
}

.admin-note-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-note-actions form {
  margin: 0;
}

.admin-note-actions .md3-button-text {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  color: #6b5210;
}

.admin-note-actions .md3-button-text.danger {
  color: #9f2c3f;
}

.admin-note-empty {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(111, 121, 120, 0.12);
  color: var(--md-sys-color-on-surface-variant);
  align-content: center;
  text-align: center;
}

@media (max-width: 960px) {
  .admin-notes-stage {
    grid-template-columns: 1fr;
  }

  .admin-notes-list {
    grid-auto-columns: minmax(220px, 78%);
  }
}

body.theme-smk .admin-dashboard-stack .md3-hero {
  grid-template-columns: minmax(0, 1.58fr) minmax(300px, 0.62fr) !important;
  gap: 14px !important;
}

body.theme-smk .admin-dashboard-stack .md3-hero > .md3-card {
  min-height: 320px !important;
}

body.theme-smk .admin-dashboard-stack .md3-hero-copy {
  padding: 22px 24px !important;
}

body.theme-smk .admin-notes-panel {
  margin-top: 16px !important;
  padding: 14px !important;
  gap: 10px !important;
}

body.theme-smk .admin-notes-stage {
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr) !important;
  min-height: 120px !important;
}

body.theme-smk .admin-notes-list {
  grid-auto-columns: minmax(220px, 238px);
  gap: 14px;
}

body.theme-smk .admin-notes-form {
  padding: 12px !important;
  gap: 10px !important;
}

body.theme-smk .admin-notes-form textarea {
  min-height: 48px !important;
}

body.theme-smk .admin-note-empty {
  min-height: 120px !important;
}

body.theme-smk .admin-note-item,
body.theme-smk .admin-note-empty {
  min-height: 248px;
  padding: 18px 17px 17px;
}

body.theme-smk .admin-visual-showcase {
  grid-template-rows: 24px minmax(150px, 1fr) auto !important;
  gap: 10px !important;
  padding: 14px !important;
}

body.theme-smk .admin-visual-card .admin-visual {
  min-height: 150px !important;
  padding: 14px !important;
}

body.theme-smk .admin-ranking-board-head {
  gap: 8px;
}

body.theme-smk .admin-ranking-kicker {
  margin-bottom: 4px;
  font-size: 0.68rem;
}

body.theme-smk .admin-ranking-title {
  font-size: 0.92rem;
}

body.theme-smk .admin-ranking-live {
  min-height: 30px;
  padding: 0 10px;
  gap: 6px;
  font-size: 0.74rem;
}

body.theme-smk .admin-ranking-live span {
  width: 8px;
  height: 8px;
}

body.theme-smk .admin-ranking-track-list-view,
body.theme-smk .admin-ranking-cycle {
  gap: 6px;
}

body.theme-smk .admin-ranking-item-row {
  gap: 8px;
  padding: 9px 10px;
  border-radius: 12px;
}

body.theme-smk .admin-ranking-item-badge {
  min-width: 40px;
  padding: 7px 8px;
  border-radius: 10px;
  font-size: 0.74rem;
}

body.theme-smk .admin-ranking-item-name {
  font-size: 0.78rem;
}

body.theme-smk .admin-ranking-item-caption,
body.theme-smk .admin-ranking-item-rank,
body.theme-smk .admin-ranking-item-score {
  font-size: 0.7rem;
}

.admin-dashboard-stack .md3-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.admin-dashboard-stack .md3-stat {
  min-height: 136px;
}

.admin-dashboard-stack .admin-table-card {
  display: grid;
  gap: 20px;
  align-content: start;
}

.admin-dashboard-stack .admin-toolbar {
  gap: 18px;
}

.admin-dashboard-stack .admin-toolbar > div:first-child {
  max-width: 720px;
}

.admin-dashboard-stack .admin-toolbar-group {
  justify-content: flex-end;
}

.admin-dashboard-stack .admin-search-form {
  margin-top: 0;
}

.admin-dashboard-stack .admin-table-card > .md3-table-card {
  margin-top: 0 !important;
}

.payment-dashboard-stack .md3-hero {
  grid-template-columns: 1fr;
  gap: 18px;
}

.payment-topbar-brand {
  gap: 12px;
}

.payment-dashboard-stack .md3-hero > .md3-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  height: auto;
}

.payment-dashboard-stack .md3-hero > .md3-card:last-child {
  padding: 28px;
}

.payment-spotlight-card {
  align-content: start;
  gap: 18px;
}

.payment-spotlight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.payment-dashboard-stack .md3-hero-copy {
  padding: 34px 34px 32px;
  gap: 18px;
}

.payment-dashboard-heading {
  display: grid;
  gap: 10px;
}

.payment-dashboard-heading .md3-kicker {
  margin-bottom: 0;
}

.payment-dashboard-heading .md3-title {
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.payment-dashboard-summary {
  max-width: 760px;
  font-size: 0.98rem;
  line-height: 1.7;
}

.payment-dashboard-stack .md3-hero-copy .md3-chip-row,
.payment-dashboard-stack .md3-hero-copy .md3-actions {
  margin-top: 0 !important;
}

.payment-dashboard-stack .md3-hero-copy .md3-title {
  max-width: 900px;
}

.payment-dashboard-stack .md3-actions {
  align-items: center;
}

.payment-dashboard-stack .md3-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-login-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 64px);
  display: grid;
  align-items: center;
  padding: 34px 0 48px;
}

.admin-login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 28px;
  align-items: stretch;
}

.admin-login-visual,
.admin-login-card {
  padding: 34px;
}

.admin-login-visual {
  display: grid;
  gap: 22px;
  align-content: space-between;
}

.admin-login-image {
  min-height: 320px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--md-elevation-2);
}

.admin-login-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-login-copy {
  max-width: 620px;
}

.admin-login-panel {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.32);
  display: grid;
  gap: 14px;
}

.admin-login-list {
  display: grid;
  gap: 12px;
}

.admin-login-list-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}

.admin-login-list-item span {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.5);
  color: var(--md-sys-color-primary);
  font-size: 0.95rem;
}

.admin-login-list-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.admin-login-list-item p {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
}

.admin-login-card {
  display: grid;
  gap: 22px;
}

.admin-login-card .md3-brand-badge {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  font-size: 1rem;
}

.admin-login-form-head {
  display: grid;
  gap: 10px;
}

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

.admin-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-login-actions .md3-button {
  min-width: 50px;
}

.admin-login-note {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.65;
}

.auth-showcase-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 44px 0;
}

.auth-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  min-height: 630px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 28px 65px rgba(70, 71, 104, 0.18);
}

.auth-showcase-visual {
  position: relative;
  overflow: hidden;
  padding: 26px 28px 22px;
  color: #fff;
  display: grid;
  grid-template-rows: auto 1fr;
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
}

.auth-showcase-visual::before,
.auth-showcase-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.auth-showcase-visual::before {
  inset: 0;
  background:
    radial-gradient(circle at 58% 58%, rgba(255, 226, 79, 0.92) 0, rgba(255, 226, 79, 0.92) 14%, transparent 27%),
    linear-gradient(140deg, rgba(244, 51, 146, 0.92) 0%, rgba(255, 112, 91, 0.92) 50%, rgba(136, 63, 252, 0.88) 100%);
}

.auth-showcase-visual::after {
  inset: auto auto 14% -10%;
  width: 54%;
  height: 48%;
  background: linear-gradient(180deg, rgba(36, 91, 255, 0.98), rgba(114, 66, 255, 0.68));
  clip-path: polygon(0 0, 100% 30%, 100% 100%, 0 100%);
}

.auth-showcase-top,
.auth-showcase-poster {
  position: relative;
  z-index: 1;
}

.auth-showcase-top {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 700;
  font-size: 0.95rem;
}

.auth-showcase-backline {
  width: 72px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
}

.auth-showcase-top strong {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.auth-showcase-top span {
  font-size: 1.3rem;
  line-height: 1;
}

.auth-showcase-poster {
  display: grid;
  place-items: center;
  align-content: center;
  padding: 34px 22px 22px;
}

.auth-poster-frame {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 0.84;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    linear-gradient(145deg, rgba(246, 89, 149, 0.9), rgba(129, 82, 255, 0.86));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 24px 48px rgba(79, 31, 131, 0.24);
  overflow: hidden;
}

.auth-poster-frame.school-photo {
  background: #1b214a;
}

.auth-poster-frame::before,
.auth-poster-frame::after {
  content: "";
  position: absolute;
}

.auth-poster-frame::before {
  left: -8%;
  top: 22%;
  width: 46%;
  height: 48%;
  background: linear-gradient(180deg, rgba(62, 88, 255, 1), rgba(50, 179, 255, 0.72));
  clip-path: polygon(0 0, 100% 16%, 100% 84%, 0 58%);
}

.auth-poster-frame::after {
  right: -8%;
  bottom: 0;
  width: 50%;
  height: 34%;
  background: linear-gradient(145deg, rgba(255, 121, 179, 0.88), rgba(121, 77, 255, 0.82));
  clip-path: polygon(28% 0, 100% 10%, 100% 100%, 0 100%);
}

.auth-poster-frame.school-photo::before {
  inset: 0;
  width: auto;
  height: auto;
  left: 0;
  top: 0;
  clip-path: none;
  background: linear-gradient(180deg, rgba(13, 19, 48, 0.08) 0%, rgba(13, 19, 48, 0.5) 62%, rgba(13, 19, 48, 0.86) 100%);
  z-index: 1;
}

.auth-poster-frame.school-photo::after {
  right: -12%;
  bottom: -8%;
  width: 48%;
  height: 26%;
  clip-path: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02) 72%, transparent 74%);
  z-index: 1;
}

.auth-school-photo {
  position: absolute;
  inset: 0;
}

.auth-school-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.04);
}

.auth-school-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  gap: 12px;
}

.auth-school-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-school-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.auth-school-copy p {
  margin: 0;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  line-height: 1.7;
}

body.theme-smk .smk-login-visual::before {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.48), transparent 20%),
    radial-gradient(circle at 82% 18%, rgba(226, 219, 255, 0.34), transparent 22%),
    linear-gradient(135deg, #ffcdda 0%, #f8c6db 34%, #dcd2fe 72%, #f7efe8 100%);
}

body.theme-smk .smk-login-visual::after {
  inset: auto 0 0 0;
  width: 100%;
  height: 42%;
  background: linear-gradient(180deg, rgba(255, 244, 232, 0) 0%, rgba(255, 244, 232, 0.7) 48%, rgba(255, 244, 232, 0.96) 100%);
  clip-path: polygon(0 40%, 100% 14%, 100% 100%, 0 100%);
}

body.theme-smk .smk-login-visual {
  min-height: 630px;
}

body.theme-smk .smk-login-visual .auth-showcase-top {
  z-index: 3;
}

body.theme-smk .smk-login-visual .auth-showcase-poster {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
}

body.theme-smk .smk-stair-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  border: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 60px rgba(125, 100, 160, 0.12);
  overflow: hidden;
}

body.theme-smk .smk-stair-poster::before {
  inset: 0;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  clip-path: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(76, 50, 127, 0.05) 58%, rgba(60, 39, 104, 0.18) 100%);
  z-index: 1;
}

body.theme-smk .smk-stair-poster::after {
  right: -10%;
  bottom: -12%;
  width: 52%;
  height: 26%;
  clip-path: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.03) 72%, transparent 74%);
  z-index: 1;
}

body.theme-smk .smk-stair-poster .auth-school-photo img {
  object-position: center center;
  filter: saturate(1.02) contrast(1.02) brightness(1.02);
}

body.theme-smk .smk-stair-poster .auth-school-copy {
  left: 24px;
  right: 24px;
  bottom: 24px;
  gap: 10px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(110, 93, 160, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  backdrop-filter: blur(14px);
}

body.theme-smk .smk-stair-poster .auth-school-tag {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.46);
  color: #443d78;
}

body.theme-smk .smk-stair-poster .auth-school-copy h2 {
  text-shadow: 0 10px 24px rgba(52, 36, 92, 0.18);
}

body.theme-smk .smk-stair-poster .auth-school-copy p {
  max-width: 340px;
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 900px) {
  body.theme-smk .smk-login-visual {
    min-height: 360px;
  }

  body.theme-smk .smk-stair-poster .auth-school-copy {
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 16px 16px 18px;
  }
}

body.theme-sma .sma-login-visual::before {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.28), transparent 20%),
    radial-gradient(circle at 82% 18%, rgba(155, 239, 255, 0.22), transparent 24%),
    linear-gradient(135deg, #8fefff 0%, #66def4 38%, #b8f7ff 72%, #fff5e8 100%);
}

body.theme-sma .sma-login-visual::after {
  inset: auto 0 0 0;
  width: 100%;
  height: 42%;
  background: linear-gradient(180deg, rgba(255, 245, 232, 0) 0%, rgba(255, 245, 232, 0.68) 48%, rgba(255, 245, 232, 0.94) 100%);
  clip-path: polygon(0 38%, 100% 14%, 100% 100%, 0 100%);
}

body.theme-sma .sma-login-visual {
  min-height: 630px;
}

body.theme-sma .sma-login-visual .auth-showcase-top {
  z-index: 3;
}

body.theme-sma .sma-login-visual .auth-showcase-poster {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
}

body.theme-sma .sma-stair-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 60px rgba(22, 117, 148, 0.14);
  overflow: hidden;
}

body.theme-sma .sma-stair-poster::before {
  inset: 0;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  clip-path: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 101, 133, 0.04) 56%, rgba(0, 60, 84, 0.2) 100%);
  z-index: 1;
}

body.theme-sma .sma-stair-poster::after {
  right: -10%;
  bottom: -12%;
  width: 52%;
  height: 26%;
  clip-path: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.03) 72%, transparent 74%);
  z-index: 1;
}

body.theme-sma .sma-stair-poster .auth-school-photo img {
  object-position: center center;
  filter: saturate(1.04) contrast(1.02) brightness(1.01);
}

body.theme-sma .sma-stair-poster .auth-school-copy {
  left: 24px;
  right: 24px;
  bottom: 24px;
  gap: 10px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(18, 124, 156, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  backdrop-filter: blur(14px);
}

body.theme-sma .sma-stair-poster .auth-school-tag {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.44);
  color: #0c5e73;
}

body.theme-sma .sma-stair-poster .auth-school-copy h2 {
  text-shadow: 0 10px 24px rgba(6, 68, 92, 0.18);
}

body.theme-sma .sma-stair-poster .auth-school-copy p {
  max-width: 340px;
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 900px) {
  body.theme-sma .sma-login-visual {
    min-height: 360px;
  }

  body.theme-sma .sma-stair-poster .auth-school-copy {
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 16px 16px 18px;
  }
}

body.theme-smp .smp-login-visual::before {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.18), transparent 18%),
    radial-gradient(circle at 82% 16%, rgba(96, 182, 255, 0.18), transparent 22%),
    linear-gradient(135deg, #1f70ff 0%, #1559ea 38%, #1f63ff 68%, #f8f7ff 100%);
}

body.theme-smp .smp-login-visual::after {
  inset: auto 0 0 0;
  width: 100%;
  height: 42%;
  background: linear-gradient(180deg, rgba(248, 247, 255, 0) 0%, rgba(248, 247, 255, 0.68) 48%, rgba(248, 247, 255, 0.94) 100%);
  clip-path: polygon(0 38%, 100% 14%, 100% 100%, 0 100%);
}

body.theme-smp .smp-login-visual {
  min-height: 630px;
}

body.theme-smp .smp-login-visual .auth-showcase-top {
  z-index: 3;
}

body.theme-smp .smp-login-visual .auth-showcase-poster {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
}

body.theme-smp .smp-stair-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 60px rgba(18, 54, 150, 0.16);
  overflow: hidden;
}

body.theme-smp .smp-stair-poster::before {
  inset: 0;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  clip-path: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, rgba(10, 39, 145, 0.05) 56%, rgba(8, 22, 105, 0.24) 100%);
  z-index: 1;
}

body.theme-smp .smp-stair-poster::after {
  right: -10%;
  bottom: -12%;
  width: 52%;
  height: 26%;
  clip-path: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.03) 72%, transparent 74%);
  z-index: 1;
}

body.theme-smp .smp-stair-poster .auth-school-photo img {
  object-position: center center;
  filter: saturate(1.04) contrast(1.02) brightness(1.01);
}

body.theme-smp .smp-stair-poster .auth-school-copy {
  left: 24px;
  right: 24px;
  bottom: 24px;
  gap: 10px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(28, 74, 189, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  backdrop-filter: blur(14px);
}

body.theme-smp .smp-stair-poster .auth-school-tag {
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #dfe9ff;
}

body.theme-smp .smp-stair-poster .auth-school-copy h2 {
  text-shadow: 0 10px 24px rgba(3, 18, 92, 0.26);
}

body.theme-smp .smp-stair-poster .auth-school-copy p {
  max-width: 340px;
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 900px) {
  body.theme-smp .smp-login-visual {
    min-height: 360px;
  }

  body.theme-smp .smp-stair-poster .auth-school-copy {
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 16px 16px 18px;
  }
}

.auth-poster-brand {
  position: absolute;
  left: 50%;
  bottom: 7%;
  transform: translateX(-50%);
  font-size: clamp(4.8rem, 10vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #fff;
  font-family: var(--app-font-sans);
  opacity: 0.98;
}

.auth-poster-badge {
  position: absolute;
  width: 28px;
  height: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.auth-poster-badge::before,
.auth-poster-badge::after {
  content: "";
}

.auth-poster-badge span {
  background: rgba(255, 255, 255, 0.92);
}

.auth-poster-badge.top {
  top: 18px;
  right: 18px;
}

.auth-poster-badge.bottom {
  left: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}

.auth-planet {
  position: absolute;
  left: 50%;
  top: 49%;
  width: 62%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.auth-planet-glow {
  position: absolute;
  inset: 18% 16% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18), rgba(255,255,255,0.02) 60%, transparent 70%);
  filter: blur(6px);
}

.auth-planet-core {
  position: absolute;
  inset: 10%;
  border-radius: 48% 48% 50% 50%;
  background:
    radial-gradient(circle at 28% 28%, rgba(255,255,255,0.9), rgba(218,235,255,0.9) 35%, rgba(180,183,255,0.66) 54%, rgba(142,68,255,0.68) 72%, rgba(255, 76, 202, 0.76) 100%);
  box-shadow: 0 24px 42px rgba(115, 50, 255, 0.32);
}

.auth-planet-top {
  position: absolute;
  left: 15%;
  top: 0;
  width: 70%;
  height: 28%;
  border-radius: 48% 48% 38% 38%;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,245,244,0.96));
  transform: rotate(6deg);
}

.auth-planet-ring {
  position: absolute;
  left: 6%;
  top: 51%;
  width: 88%;
  height: 18%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.92), rgba(254,203,255,0.92), rgba(181,124,255,0.94));
  transform: rotate(16deg);
  box-shadow: 0 0 0 10px rgba(255,255,255,0.06), 0 16px 26px rgba(94, 24, 132, 0.28);
}

.auth-planet-ball {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(226, 250, 255, 0.98), rgba(154, 211, 255, 0.9) 55%, rgba(102, 115, 255, 0.94) 100%);
  box-shadow: 0 10px 16px rgba(65, 38, 140, 0.18);
}

.auth-planet-ball.b1 { width: 28%; height: 28%; left: 18%; top: 24%; }
.auth-planet-ball.b2 { width: 18%; height: 18%; left: 8%; top: 42%; }
.auth-planet-ball.b3 { width: 22%; height: 22%; left: 42%; top: 28%; }
.auth-planet-ball.b4 { width: 16%; height: 16%; left: 58%; top: 45%; }
.auth-planet-ball.b5 { width: 20%; height: 20%; left: 26%; top: 56%; background: radial-gradient(circle at 30% 30%, rgba(255, 234, 255, 0.95), rgba(208, 117, 255, 0.94) 55%, rgba(140, 40, 255, 0.98) 100%); }
.auth-planet-ball.b6 { width: 14%; height: 14%; left: 54%; top: 63%; background: radial-gradient(circle at 30% 30%, rgba(255, 210, 255, 0.95), rgba(255, 105, 242, 0.92) 55%, rgba(161, 46, 214, 0.98) 100%); }

.auth-showcase-form {
  background: rgba(255, 255, 255, 0.96);
  padding: 52px 64px 44px;
  display: grid;
  align-content: center;
  border-top-right-radius: 40px;
  border-bottom-right-radius: 40px;
}

.auth-form-wrap {
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.auth-form-wave {
  font-size: 1.75rem;
  line-height: 1;
  color: #ff6791;
}

.auth-form-heading {
  display: grid;
  gap: 6px;
}

.auth-form-heading h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.auth-form-heading p {
  margin: 0;
  color: #8e8e97;
  font-size: 0.9rem;
}

.auth-form-accent {
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5a7a, #ff7b67);
}

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

.auth-form-field {
  display: grid;
  gap: 8px;
}

.auth-form-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #24262d;
}

.auth-form-field .auth-input-wrap {
  position: relative;
}

.auth-form-field input {
  width: 100%;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 22px;
  border: 1px solid #ececf1;
  background: #fff;
  color: #1f2338;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form-field input:focus {
  border-color: #ff6482;
  box-shadow: 0 0 0 4px rgba(255, 100, 130, 0.12);
}

.auth-input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff90a3;
  font-size: 0.85rem;
}

.auth-form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.77rem;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a0a2ac;
}

.auth-checkbox input {
  width: 14px;
  height: 14px;
}

.auth-link {
  color: #ff7091;
  text-decoration: none;
  font-weight: 700;
}

.auth-login-btn {
  min-height: 36px;
  border: none;
  border-radius: 22px;
  background: linear-gradient(90deg, #ff5e72, #f84ea1);
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  box-shadow: 0 18px 28px rgba(248, 78, 161, 0.2);
}

.auth-login-btn:hover {
  filter: brightness(1.02);
}

.auth-form-foot {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #24262d;
}

.auth-separator {
  position: relative;
  text-align: center;
  color: #cbccd2;
  font-size: 0.74rem;
}

.auth-separator::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #ededf1;
}

.auth-separator span {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  padding: 0 12px;
}

.auth-google-btn {
  min-height: 36px;
  border-radius: 22px;
  border: 1px solid #ececf1;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #1d1f26;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-google-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: conic-gradient(from 45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0 100%);
  position: relative;
}

.auth-google-badge::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
}

@media (max-width: 900px) {
  .md3-hero,
  .md3-form-grid {
    grid-template-columns: 1fr;
  }

  .md3-topbar-inner {
    min-height: 64px;
  }

  .md3-kv {
    grid-template-columns: 1fr;
  }

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

  .admin-dashboard-stack .md3-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-search-form,
  .detail-layout,
  .admin-login-grid {
    grid-template-columns: 1fr;
  }

  .auth-showcase {
    grid-template-columns: 1fr;
  }

  .auth-showcase-visual {
    border-radius: 40px 40px 0 0;
  }

  .auth-showcase-form {
    padding: 30px 22px;
    border-radius: 0 0 40px 40px;
  }

  .auth-showcase-shell {
    width: min(100%, calc(100% - 24px));
    padding: 18px 0 24px;
  }

  .payment-dashboard-stack .md3-hero-copy {
    padding: 28px 24px;
  }

  .payment-dashboard-heading .md3-title {
    font-size: clamp(1.65rem, 6vw, 2.3rem);
  }

  .payment-dashboard-stack .md3-actions {
    width: 100%;
  }

  .payment-spotlight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-dashboard-stack .md3-stats-grid {
    grid-template-columns: 1fr;
  }

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

body {
  font-family: var(--app-font-sans);
  color: var(--md-sys-color-on-surface);
}

.container,
.container-fluid {
  width: min(1180px, calc(100% - 32px));
}

.row {
  margin-left: 0;
  margin-right: 0;
}

.card,
.box-part,
.md3-auto-card {
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(56, 62, 106, 0.14) !important;
  overflow: hidden;
}

.navbar,
.md3-auto-navbar {
  min-height: 72px;
  background: rgba(255, 255, 255, 0.76) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 10px 18px;
}

.navbar-nav,
.navbar .form-inline,
.md3-auto-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn,
.md3-auto-btn-primary,
.md3-auto-btn-tonal,
.md3-auto-btn-danger {
  min-height: 46px;
  padding: 12px 20px !important;
  border-radius: 999px !important;
  border: none !important;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(56, 62, 106, 0.12);
}

.btn-primary,
.btn-success,
.btn-info,
.md3-auto-btn-primary {
  background: linear-gradient(135deg, var(--md-sys-color-primary), color-mix(in srgb, var(--md-sys-color-primary) 55%, #f1a9bc 45%)) !important;
  color: #1f2338 !important;
}

.btn-secondary,
.btn-dark,
.btn-warning,
.md3-auto-btn-tonal {
  background: rgba(255, 255, 255, 0.45) !important;
  color: var(--md-sys-color-on-surface) !important;
}

.btn-danger,
.md3-auto-btn-danger {
  background: rgba(186, 26, 26, 0.14) !important;
  color: #8c1010 !important;
}

.form-control,
.form-control-file,
select,
textarea,
.input-group-text,
.md3-auto-field {
  min-height: 52px;
  border-radius: 18px !important;
  border: 1px solid rgba(111, 121, 120, 0.24) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: var(--md-sys-color-on-surface) !important;
  box-shadow: none !important;
}

.form-control:focus,
select:focus,
textarea:focus {
  border-color: var(--md-sys-color-primary) !important;
  box-shadow: 0 0 0 4px rgba(107, 116, 214, 0.12) !important;
}

.input-group {
  gap: 10px;
  align-items: stretch;
}

.input-group > .form-control,
.input-group > .custom-select,
.input-group > .input-group-prepend > .input-group-text,
.input-group > .input-group-append > .btn {
  border-radius: 18px !important;
}

.table-responsive {
  border-radius: 26px;
  overflow: auto;
}

.table,
.md3-auto-table {
  background: rgba(255, 255, 255, 0.68);
  border-radius: 26px;
  overflow: hidden;
}

.table thead th,
.md3-auto-table thead th {
  background: rgba(255, 255, 255, 0.88) !important;
  color: var(--md-sys-color-on-surface-variant) !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.table td,
.table th {
  vertical-align: top;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.4) !important;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.58) !important;
}

.box {
  padding: 32px 0;
}

.col-sm-9.col-md-7.col-lg-5.mx-auto,
.col-sm-9.col-md-7.col-lg-5,
.col-sm-12.col-md-12.col-lg-5.mx-auto {
  max-width: min(920px, 100%);
  flex: 0 0 100%;
}

.grid-margin.stretch-card,
.grid-margin,
.stretch-card {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto;
}

.dropdown-menu {
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(16px);
}

.vh-100 {
  min-height: 100vh !important;
  height: auto !important;
}

img.img-fluid {
  object-fit: cover;
}

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

/* Mobile Optimization for SPMB App */
@media (max-width: 640px) {
  .table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .md3-button-filled, .btn {
    min-height: 48px;
    padding: 12px 24px;
    font-size: 16px;
    width: 100%;
    margin-bottom: 8px;
  }
  .md3-field input, .md3-field select, .form-control {
    font-size: 16px;
    min-height: 48px;
  }
  table th, table td {
    white-space: nowrap;
  }
}

