:root {
  --page: #f3f8fb;
  --paper: #ffffff;
  --paper-soft: #f8fcfd;
  --ink: #112f3a;
  --muted: #6b838c;
  --soft: #8da4ad;
  --line: #dcebf0;
  --line-strong: #c7dde4;
  --deep: #062536;
  --deep-2: #0c4054;
  --blue: #0a8da3;
  --cyan: #35c4ce;
  --mint: #8be2c6;
  --lime: #d3f36a;
  --gold: #f0bc57;
  --red: #d96454;
  --green: #1f9d6a;
  --shadow: 0 16px 40px rgba(20, 67, 81, .10);
  --shadow-deep: 0 28px 70px rgba(3, 38, 56, .24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

body:not([data-page="login"]):not(.auth-ready) > :not(.toast):not(.result-modal) {
  visibility: hidden;
}

button,
input,
select,
.form-grid textarea {
  font: inherit;
}

.form-grid textarea {
  min-height: 94px;
  padding: 10px 11px;
  resize: vertical;
  font: inherit;
  line-height: 1.55;
}

button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f5fbfc);
  color: #0a5f70;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

button:hover,
button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(10, 141, 163, .55);
  background: #eefbfc;
  box-shadow: 0 8px 18px rgba(10, 141, 163, .14);
  outline: none;
}

.ocean-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 55, 77, .10), transparent 240px),
    linear-gradient(135deg, #f8fdfe 0%, #edf7fa 46%, #f8fbfb 100%);
}

.ocean-backdrop::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 290px;
  background:
    radial-gradient(circle at 12% 22%, rgba(53, 196, 206, .28), transparent 24%),
    radial-gradient(circle at 62% 6%, rgba(139, 226, 198, .24), transparent 28%),
    linear-gradient(135deg, rgba(6, 37, 54, .92), rgba(10, 141, 163, .76));
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 86%, 38% 72%, 0 88%);
  animation: tideShift 16s ease-in-out infinite alternate;
}

.ocean-backdrop::after {
  content: "";
  position: absolute;
  top: 154px;
  left: -8%;
  width: 116%;
  height: 150px;
  background:
    repeating-radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, .38) 0 1px, transparent 1px 22px);
  opacity: .48;
  animation: waveDrift 18s linear infinite;
}

@keyframes tideShift {
  from { transform: translateY(-8px) scale(1); filter: saturate(1); }
  to { transform: translateY(8px) scale(1.018); filter: saturate(1.12); }
}

@keyframes waveDrift {
  from { transform: translateX(-72px) skewY(-2deg); }
  to { transform: translateX(72px) skewY(-2deg); }
}

.sidebar {
  position: fixed;
  inset: 16px auto 16px 16px;
  width: 260px;
  padding: 16px;
  border: 1px solid rgba(183, 229, 235, .22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02)),
    linear-gradient(165deg, #041f2e 0%, #083145 46%, #0b4c5c 100%);
  color: #eafcff;
  box-shadow: var(--shadow-deep);
  display: flex;
  flex-direction: column;
}

.brand {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    url("./assets/zhengxing-logo.png?v=20260703-logo1"),
    linear-gradient(135deg, rgba(4, 113, 217, .95), rgba(255, 105, 18, .94));
  background-size: cover;
  background-position: center;
  color: transparent;
  font-size: 0;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(53, 196, 206, .28);
  overflow: hidden;
}

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

.brand strong {
  font-size: 16px;
  letter-spacing: 0;
}

.brand small {
  margin-top: 4px;
  color: rgba(234, 252, 255, .62);
  font-size: 12px;
}

.nav {
  margin-top: 16px;
  display: grid;
  gap: 5px;
}

.nav a {
  position: relative;
  min-height: 40px;
  padding: 11px 12px 11px 28px;
  border-radius: 8px;
  color: rgba(234, 252, 255, .74);
  text-decoration: none;
  font-size: 14px;
  font-weight: 760;
}

.nav a::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(234, 252, 255, .30);
  transform: translateY(-50%);
}

.nav a.active,
.nav a:hover {
  background: rgba(255, 255, 255, .11);
  color: #ffffff;
}

.nav a.active::before,
.nav a:hover::before {
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(211, 243, 106, .12);
}

.side-status {
  margin-top: auto;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
}

.side-status span,
.side-status strong {
  display: block;
}

.side-status span {
  color: rgba(234, 252, 255, .58);
  font-size: 12px;
}

.side-status strong {
  margin-top: 6px;
  color: var(--lime);
  font-size: 13px;
}

.main {
  margin-left: 292px;
  padding: 18px 24px 36px;
}

.hero {
  min-height: 118px;
  margin-bottom: 14px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .16), transparent 46%),
    linear-gradient(135deg, rgba(5, 37, 55, .96), rgba(7, 126, 145, .92));
  box-shadow: var(--shadow-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  color: var(--lime);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 8px;
  font-size: 30px;
  letter-spacing: 0;
}

h2 {
  color: #173641;
  font-size: 16px;
}

p {
  margin-top: 8px;
  max-width: 840px;
  color: rgba(255, 255, 255, .74);
  font-size: 14px;
  line-height: 1.65;
}

.top-actions,
.quick-actions,
.danger-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-actions button {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

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

.command-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.command-bar a,
.command-bar button {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #0a5f70;
  text-decoration: none;
  font-size: 13px;
  font-weight: 820;
}

.metric-tile,
.panel,
.surface-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.metric-tile {
  position: relative;
  min-height: 112px;
  padding: 16px;
  overflow: hidden;
}

.metric-tile::after {
  content: "";
  position: absolute;
  inset: auto 14px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
}

.metric-tile span,
.metric-tile small {
  color: var(--muted);
  font-size: 13px;
}

.metric-tile strong {
  display: block;
  margin: 8px 0 5px;
  color: #092f3d;
  font-size: 28px;
  letter-spacing: 0;
}

.grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

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

.form-layout {
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: start;
}

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

.shop-management-grid {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  align-items: start;
}

.panel {
  overflow: hidden;
}

.panel:has(table) {
  overflow-x: auto;
}

.panel-head {
  min-height: 58px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f7fbfc);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: normal;
  gap: 10px 14px;
}

.panel-head > * {
  min-width: 0;
}

.panel-head h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-head > :is(span, a, button) {
  justify-self: end;
  max-width: min(440px, 52vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-head > button {
  display: inline-grid;
  place-items: center;
}

.panel-head > .status-strip {
  justify-self: end;
  max-width: 100%;
  overflow: visible;
  white-space: normal;
}

.panel-head a,
.panel-head span {
  color: #0a7f93;
  font-size: 13px;
  font-weight: 820;
  text-decoration: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid #edf4f6;
  text-align: left;
  white-space: nowrap;
}

th {
  color: #647d86;
  background: #f8fbfc;
  font-size: 12px;
  font-weight: 900;
}

th:last-child {
  position: sticky;
  right: 0;
  z-index: 3;
  background: #f8fbfc;
}

tbody tr:hover td {
  background: #f8fdfe;
}

.empty-cell {
  padding: 34px 16px;
  color: #7f949b;
  text-align: center;
}

.form-panel {
  background: rgba(255, 255, 255, .98);
}

.form-panel.narrow {
  max-width: 760px;
}

.category-panel {
  position: relative;
}

.category-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 0, rgba(var(--accent-rgb), .12), transparent 32%),
    linear-gradient(180deg, #f7fcfd, #ffffff);
}

.category-form label {
  display: grid;
  gap: 6px;
  color: #466973;
  font-size: 12px;
  font-weight: 900;
}

.category-form input,
.category-form select {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #cce2e8;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: #143540;
  font: inherit;
}

.category-form button {
  min-height: 36px;
}

.category-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.category-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(var(--accent-rgb), .14);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(238, 250, 252, .88));
}

.category-item strong {
  display: block;
  color: #153944;
  font-size: 13px;
}

.category-item small {
  display: block;
  margin-top: 3px;
  color: #6a8790;
  font-size: 12px;
}

.category-item-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  flex-wrap: wrap;
  gap: 6px;
}

.category-item-actions button {
  min-height: 30px;
  padding: 0 9px;
}

.module-actionbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: -2px 0 16px;
  padding: 12px;
  border: 1px solid rgba(var(--accent-rgb), .18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(233, 251, 253, .70)),
    repeating-linear-gradient(115deg, rgba(var(--accent-rgb), .08) 0 1px, transparent 1px 13px);
  box-shadow: 0 18px 42px rgba(4, 65, 82, .10);
}

.module-actionbar span {
  margin: 0 4px;
  color: #365b66;
  font-size: 12px;
  font-weight: 900;
}

.module-action-button {
  min-height: 38px;
  border: 1px solid rgba(var(--accent-rgb), .30);
  border-radius: 8px;
  padding: 0 16px;
  background: linear-gradient(135deg, #08798a, #12b6c1);
  color: #fff;
  box-shadow: 0 12px 24px rgba(10, 141, 163, .20);
}

.module-action-button.is-soft {
  background: rgba(255, 255, 255, .82);
  color: #096576;
}

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

.form-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background:
    radial-gradient(circle at 18% 18%, rgba(58, 210, 219, .20), transparent 30%),
    rgba(5, 24, 35, .48);
  opacity: 0;
  backdrop-filter: blur(7px);
  transition: opacity 180ms ease;
}

.form-modal-backdrop[hidden] {
  display: none;
}

.form-modal-backdrop.is-open {
  opacity: 1;
}

body.form-modal-open {
  overflow: hidden;
}

body.course-batch-open {
  overflow: hidden;
}

.course-batch-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 14%, rgba(38, 201, 214, .20), transparent 30%),
    rgba(3, 25, 36, .58);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.course-batch-modal[hidden] {
  display: none;
}

.course-batch-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.course-batch-dialog {
  width: min(920px, calc(100vw - 48px));
  max-height: min(90vh, 920px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .70);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(239, 251, 252, .97)),
    repeating-linear-gradient(90deg, rgba(var(--accent-rgb), .05) 0 1px, transparent 1px 22px);
  box-shadow: 0 38px 110px rgba(1, 24, 35, .38);
  transform: translateY(14px) scale(.98);
  transition: transform 180ms ease;
}

.course-batch-modal.is-open .course-batch-dialog {
  transform: translateY(0) scale(1);
}

.course-batch-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(var(--accent-rgb), .12);
  background: rgba(248, 254, 254, .96);
  backdrop-filter: blur(14px);
}

.course-batch-head span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.course-batch-head h2 {
  margin: 5px 0 0;
  color: #0b3440;
  font-size: 25px;
}

.course-batch-head p {
  margin: 6px 0 0;
  color: #69828a;
  font-size: 13px;
}

.course-batch-close {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e7f3f4;
  color: #174d59;
  font-size: 25px;
  line-height: 1;
  flex: 0 0 36px;
}

.course-batch-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px 28px;
}

.course-batch-form > label,
.course-weekdays {
  margin: 0;
}

.course-batch-form .wide {
  grid-column: 1 / -1;
}

.course-weekdays {
  min-width: 0;
  padding: 13px 16px 15px;
  border: 1px solid rgba(var(--accent-rgb), .16);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.course-weekdays legend {
  padding: 0 7px;
  color: #4d6a73;
  font-size: 12px;
  font-weight: 800;
}

.course-weekdays label {
  min-height: 38px;
  margin: 0;
  border: 1px solid rgba(var(--accent-rgb), .12);
  border-radius: 6px;
  background: rgba(255, 255, 255, .84);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #305b66;
  font-size: 12px;
  cursor: pointer;
}

.course-weekdays input {
  width: 15px;
  height: 15px;
  margin: 0;
}

.course-batch-preview {
  margin: 0 28px;
  border: 1px solid rgba(var(--accent-rgb), .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  overflow: hidden;
}

.course-batch-empty {
  padding: 28px;
  color: #779097;
  text-align: center;
  font-size: 13px;
}

.course-batch-summary {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(var(--accent-rgb), .10);
  background: rgba(var(--accent-rgb), .055);
}

.course-batch-summary strong {
  color: #123d48;
  font-size: 15px;
}

.course-batch-summary span {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.course-batch-summary span.is-clear {
  background: #dff5e9;
  color: #24724d;
}

.course-batch-summary span.has-conflict {
  background: #fff0dc;
  color: #a45b1f;
}

.course-batch-summary small {
  justify-self: end;
  color: #69838a;
}

.course-batch-session-list {
  max-height: 250px;
  overflow: auto;
}

.course-batch-session {
  min-height: 54px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(var(--accent-rgb), .08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.course-batch-session:last-child {
  border-bottom: 0;
}

.course-batch-session > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.course-batch-session strong {
  color: #143d48;
  font-size: 13px;
}

.course-batch-session span,
.course-batch-session small {
  color: #789097;
  font-size: 12px;
}

.course-batch-session.is-conflict {
  background: rgba(248, 167, 70, .08);
}

.course-batch-session.is-conflict small {
  color: #a65c21;
  font-weight: 800;
}

.course-batch-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding: 20px 28px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(247, 253, 253, .97);
  backdrop-filter: blur(12px);
}

.course-batch-actions button {
  min-width: 118px;
}

.course-batch-actions button:disabled {
  opacity: .46;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 760px) {
  .course-batch-modal {
    padding: 12px;
  }

  .course-batch-dialog {
    width: calc(100vw - 24px);
  }

  .course-batch-form {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .course-batch-form .wide {
    grid-column: auto;
  }

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

  .course-batch-preview {
    margin: 0 20px;
  }

  .course-batch-summary {
    grid-template-columns: auto auto;
  }

  .course-batch-summary small {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .course-batch-actions {
    padding: 16px 20px 20px;
    flex-wrap: wrap;
  }
}

.form-panel[data-modal-panel] {
  display: none;
}

.form-panel[data-modal-panel].is-open {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1001;
  width: min(780px, calc(100vw - 40px));
  max-height: min(88vh, 860px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .64);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(242, 253, 254, .96)),
    radial-gradient(circle at 8% 0, rgba(var(--accent-rgb), .18), transparent 34%);
  box-shadow: 0 34px 92px rgba(2, 36, 49, .34);
  transform: translate(-50%, -50%);
}

.form-panel[data-modal-panel].is-open .panel-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) 38px;
  align-items: center;
  justify-content: normal;
  column-gap: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(232, 250, 252, .94)),
    repeating-linear-gradient(90deg, rgba(var(--accent-rgb), .08) 0 1px, transparent 1px 18px);
}

.form-panel[data-modal-panel].is-open .panel-head h2 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-panel[data-modal-panel].is-open .panel-head span {
  justify-self: start;
  min-width: 0;
  padding: 4px 8px;
  border: 1px solid rgba(var(--accent-rgb), .16);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), .08);
  line-height: 1.2;
  white-space: nowrap;
}

.form-panel[data-modal-panel].is-open .form-grid.inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-modal-close {
  position: relative;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(var(--accent-rgb), .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  color: #0b6574;
  display: grid;
  place-items: center;
  font-size: 0;
  line-height: 1;
}

.form-modal-close::before,
.form-modal-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.form-modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.form-modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.form-panel[data-modal-panel].is-open .form-modal-close {
  justify-self: end;
}

.form-modal-close:hover {
  background: rgba(var(--accent-rgb), .10);
}

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

.form-grid.inline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

label {
  display: grid;
  gap: 6px;
  color: #3f5962;
  font-size: 13px;
  font-weight: 820;
}

input,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 11px;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus,
.form-grid textarea:focus {
  border-color: rgba(10, 141, 163, .70);
  outline: 3px solid rgba(53, 196, 206, .16);
}

.member-admin-note {
  display: block;
  max-width: 210px;
  margin-top: 6px;
  overflow: hidden;
  color: #667e85;
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-grid button[type="submit"] {
  min-height: 42px;
  border: 0;
  background: linear-gradient(135deg, #08798a, #0aa6b7);
  color: #fff;
  box-shadow: 0 12px 24px rgba(10, 141, 163, .22);
}

.form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.form-actions button {
  display: grid;
  place-items: center;
}

.form-actions button[type="button"] {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #0a5f70;
}

.service-config-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(var(--accent-rgb), .18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(236, 250, 251, .92), rgba(255, 255, 255, .96)),
    radial-gradient(circle at 100% 0, rgba(10, 166, 183, .14), transparent 34%);
}

.service-config-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.service-config-head strong {
  min-width: 0;
  color: #0d4856;
  font-size: 15px;
}

.service-config-head span {
  min-width: 0;
  max-width: min(320px, 100%);
  color: #5f7b84;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.service-preview-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(241, 252, 253, .92)),
    radial-gradient(circle at 92% 12%, rgba(65, 199, 187, .18), transparent 30%),
    radial-gradient(circle at 8% 100%, rgba(10, 127, 147, .12), transparent 36%);
}

.service-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.service-preview-item {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(var(--accent-rgb), .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88);
}

.service-preview-item.is-wide {
  grid-column: 1 / -1;
}

.service-preview-item span {
  display: block;
  margin-bottom: 7px;
  color: #5f7b84;
  font-size: 12px;
  font-weight: 820;
}

.service-preview-item strong {
  display: block;
  min-height: 22px;
  color: #0d4856;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.service-preview-actions {
  padding: 0 16px 16px;
}

.service-preview-actions button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #08798a, #12b6c1);
  color: #fff;
  box-shadow: 0 14px 30px rgba(10, 141, 163, .20);
}

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

.content-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.content-image-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), .16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 253, 254, .92)),
    radial-gradient(circle at 12% 0, rgba(var(--accent-rgb), .16), transparent 38%);
  box-shadow: 0 12px 28px rgba(10, 71, 91, .08);
}

.content-image-preview {
  position: relative;
  min-height: 118px;
  aspect-ratio: 1.72;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(var(--accent-rgb), .08) 0 9px, transparent 9px 18px),
    linear-gradient(135deg, #eef9fb, #ffffff);
}

.content-image-preview::after {
  content: "待上传";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #73919b;
  font-size: 13px;
  font-weight: 850;
}

.content-image-card.has-image .content-image-preview::after {
  display: none;
}

.content-image-card.image-missing .content-image-preview::after {
  content: "图片未加载";
  display: grid;
}

.content-image-preview img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-image-preview img[hidden] {
  display: none;
}

.content-image-meta {
  padding: 11px 12px 0;
}

.content-image-meta strong,
.content-image-meta span {
  display: block;
}

.content-image-meta strong {
  color: #123946;
  font-size: 14px;
}

.content-image-meta span {
  margin-top: 4px;
  color: #6b838c;
  font-size: 12px;
  font-weight: 700;
}

.upload-button {
  margin: 12px;
  min-height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), .22);
  border-radius: 8px;
  background: #ffffff;
  color: var(--hero-mid);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.upload-button:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), .46);
  box-shadow: 0 10px 22px rgba(var(--accent-rgb), .14);
}

.upload-button input {
  display: none;
}

.quick-actions,
.danger-actions {
  padding: 0 16px 16px;
}

.quick-actions button {
  background: #f7fbfc;
}

.danger-actions button:first-child {
  border-color: transparent;
  background: linear-gradient(135deg, #bd4b3d, var(--red));
  color: #fff;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-strip span {
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e9f8fa;
  color: #0a5f70;
  font-size: 12px;
  font-weight: 820;
}

.dot {
  display: inline-flex;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--soft);
}

.dot.available { background: var(--green); }
.dot.occupied { background: var(--blue); }
.dot.reserved { background: var(--gold); }
.dot.fault { background: var(--red); }

.status-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #e9f8fa;
  color: #0a5f70;
  font-size: 12px;
  font-weight: 820;
}

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

td.row-actions {
  position: sticky;
  right: 0;
  z-index: 2;
  min-width: max-content;
  justify-content: flex-end;
  background: linear-gradient(90deg, rgba(255, 255, 255, .86), #ffffff 18%);
  box-shadow: -10px 0 18px rgba(20, 67, 81, .06);
}

tbody tr:hover td.row-actions {
  background: linear-gradient(90deg, rgba(248, 253, 254, .88), #f8fdfe 18%);
}

.row-actions button {
  min-height: 30px;
  padding: 0 10px;
}

.row-actions button,
.category-item-actions button,
.pagination button {
  display: inline-grid;
  place-items: center;
  white-space: nowrap;
}

.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 16px;
  padding: 14px;
  border: 1px solid rgba(31, 137, 160, 0.16);
  border-radius: 8px;
  background: rgba(240, 251, 253, 0.72);
}

.search-field {
  display: grid;
  gap: 6px;
  min-width: min(360px, 100%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.search-field input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(31, 137, 160, 0.22);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  outline: none;
}

.search-field input:focus {
  border-color: rgba(14, 118, 146, 0.55);
  box-shadow: 0 0 0 3px rgba(86, 190, 203, 0.16);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  text-align: center;
}

.pagination > span {
  flex: 1 1 100%;
}

.pagination > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.pagination button {
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(31, 137, 160, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.pagination button.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #0d7f9a, #39b6c6);
  color: #fff;
}

.wrap-cell {
  max-width: 280px;
  white-space: normal;
  line-height: 1.55;
}

.person-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.person-cell img,
.person-cell span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex: none;
}

.person-cell .person-photo {
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(var(--accent-rgb), .12);
}

.person-cell .person-photo[hidden],
.person-cell .person-fallback[hidden] {
  display: none;
}

.person-cell .person-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .16), #ffffff);
  color: var(--hero-mid);
  font-size: 13px;
  font-weight: 900;
}

.person-cell strong {
  font-size: 13px;
  color: #173641;
}

.level-pill {
  font-weight: 900;
}

.action-panel {
  padding-bottom: 16px;
}

.action-panel p {
  padding: 16px;
  color: #496a73;
}

.check-list {
  margin: 0;
  padding: 16px 26px 22px;
  color: #31535d;
  line-height: 2;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  min-width: 280px;
  padding: 13px 15px;
  border-radius: 8px;
  background: #063445;
  color: #fff;
  box-shadow: var(--shadow-deep);
  opacity: 0;
  transform: translateY(10px);
  transition: 180ms ease;
  pointer-events: none;
}

.toast[data-tone="error"] {
  background: #9d3d31;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.result-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(var(--accent-rgb), .18), transparent 34%),
    rgba(4, 26, 38, .52);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.result-modal[hidden] {
  display: none;
}

.result-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.result-dialog {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid rgba(var(--accent-rgb), .18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(245, 252, 253, .94)),
    radial-gradient(circle at 16% 0, rgba(var(--accent-rgb), .20), transparent 30%);
  box-shadow: 0 30px 80px rgba(3, 26, 38, .34);
  text-align: center;
  transform: translateY(14px) scale(.97);
  transition: transform 180ms ease;
}

.result-modal.is-open .result-dialog {
  transform: translateY(0) scale(1);
}

.result-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .88), transparent 18%),
    linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 30px rgba(var(--accent-rgb), .28);
  display: grid;
  place-items: center;
}

.result-icon::after {
  content: "";
  width: 24px;
  height: 12px;
  border-left: 4px solid #ffffff;
  border-bottom: 4px solid #ffffff;
  transform: translateY(-2px) rotate(-45deg);
}

.result-modal[data-tone="error"] .result-icon {
  background: linear-gradient(135deg, #bd4b3d, var(--red));
  box-shadow: 0 14px 30px rgba(217, 100, 84, .26);
}

.result-modal[data-tone="error"] .result-icon::after {
  width: 24px;
  height: 24px;
  border: 0;
  background:
    linear-gradient(45deg, transparent 45%, #fff 46% 54%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #fff 46% 54%, transparent 55%);
  transform: none;
}

.result-dialog strong {
  display: block;
  color: #103542;
  font-size: 22px;
  font-weight: 950;
}

.result-dialog p {
  margin: 10px auto 0;
  max-width: 320px;
  color: #58727b;
  font-size: 14px;
  line-height: 1.7;
}

.result-dialog button {
  min-width: 130px;
  min-height: 42px;
  margin-top: 22px;
  border: 0;
  background: linear-gradient(135deg, var(--hero-mid), var(--accent));
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(var(--accent-rgb), .24);
}

.attendance-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.panel.attendance-workspace {
  overflow: hidden;
}

.attendance-filterbar {
  display: grid;
  grid-template-columns: 140px 140px 160px 180px minmax(190px, 1fr) 164px;
  gap: 12px;
  align-items: end;
  margin-bottom: 0;
  padding: 16px;
  border-bottom: 1px solid rgba(20, 100, 119, .12);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), .06), rgba(255, 255, 255, .94) 28%),
    #f8fcfd;
}

.attendance-filter-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-self: end;
}

.attendance-filter-actions button {
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.attendance-filterbar label {
  display: grid;
  gap: 7px;
  color: #58727b;
  font-size: 12px;
  font-weight: 800;
}

.attendance-filterbar input,
.attendance-filterbar select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(20, 100, 119, .16);
  border-radius: 8px;
  background: #f7fbfc;
  color: #103542;
  padding: 0 12px;
  box-sizing: border-box;
}

.attendance-table-scroll {
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.attendance-table {
  min-width: 1240px;
}

.attendance-table th,
.attendance-table td {
  padding: 11px 14px;
  vertical-align: middle;
}

.attendance-table th:last-child {
  min-width: 190px;
  text-align: right;
}

.attendance-table td.row-actions {
  display: table-cell;
  min-width: 190px;
  text-align: right;
  white-space: nowrap;
}

.attendance-table td.row-actions button + button {
  margin-left: 7px;
}

.attendance-workspace > .pagination {
  margin-top: 0;
  padding: 14px 16px;
  border-top: 1px solid rgba(20, 100, 119, .10);
  background: #fbfefe;
}

.attendance-table td small {
  display: block;
  max-width: 220px;
  margin-top: 4px;
  color: #789099;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.attendance-normal {
  color: #08735f;
  background: rgba(25, 156, 125, .1);
}

.attendance-late {
  color: #b54708;
  background: rgba(245, 158, 11, .13);
}

.attendance-absent {
  color: #b42318;
  background: rgba(217, 45, 32, .11);
}

.attendance-photo-dialog {
  width: min(720px, 92vw);
}

.attendance-photo-dialog img {
  display: block;
  width: 100%;
  max-height: 68vh;
  margin-top: 18px;
  object-fit: contain;
  border-radius: 8px;
  background: #eef6f7;
}

@media (max-width: 1600px) {
  .attendance-filterbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .attendance-filter-actions {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .attendance-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attendance-filterbar {
    grid-template-columns: 1fr 1fr;
  }
}

.refund-reason-modal {
  position: fixed;
  inset: 0;
  z-index: 1120;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 44% 32%, rgba(var(--accent-rgb), .20), transparent 32%),
    rgba(4, 26, 38, .56);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.refund-reason-modal[hidden] {
  display: none;
}

.refund-reason-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.refund-reason-dialog {
  width: min(520px, 100%);
  padding: 24px;
  border: 1px solid rgba(var(--accent-rgb), .20);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(244, 252, 253, .96)),
    repeating-linear-gradient(115deg, rgba(var(--accent-rgb), .07) 0 1px, transparent 1px 14px);
  box-shadow: 0 32px 88px rgba(3, 26, 38, .36);
  transform: translateY(14px) scale(.98);
  transition: transform 180ms ease;
}

.refund-reason-modal.is-open .refund-reason-dialog {
  transform: translateY(0) scale(1);
}

.refund-reason-head {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.refund-reason-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.refund-reason-head strong {
  color: #103542;
  font-size: 22px;
  font-weight: 950;
}

.refund-reason-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.refund-reason-meta span {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(232, 250, 252, .72);
  color: #5b7680;
  font-size: 12px;
}

.refund-reason-meta strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #143946;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.refund-reason-field textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 11px;
  background: #fff;
  color: var(--ink);
  line-height: 1.6;
}

.refund-reason-field textarea:focus {
  border-color: rgba(10, 141, 163, .70);
  outline: 3px solid rgba(53, 196, 206, .16);
}

.refund-reason-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.refund-reason-actions button {
  min-height: 40px;
  padding: 0 18px;
}

.refund-reason-actions [data-refund-submit] {
  border: 0;
  background: linear-gradient(135deg, #bd4b3d, var(--red));
  color: #fff;
  box-shadow: 0 12px 26px rgba(217, 100, 84, .22);
}

body {
  --accent: #12a8b5;
  --accent-2: #7be0c9;
  --accent-rgb: 18, 168, 181;
  --hero-dark: #063247;
  --hero-mid: #087b93;
  --hero-light: #18b9c4;
  --page-glow: rgba(18, 168, 181, .20);
  --cursor-x: 50vw;
  --cursor-y: 32vh;
}

body[data-page="members"] {
  --accent: #2d9cdb;
  --accent-2: #9be7ff;
  --accent-rgb: 45, 156, 219;
  --hero-dark: #082b58;
  --hero-mid: #116ba7;
  --hero-light: #42c5ef;
  --page-glow: rgba(45, 156, 219, .22);
}

body[data-page="courses"] {
  --accent: #14b889;
  --accent-2: #d2f36b;
  --accent-rgb: 20, 184, 137;
  --hero-dark: #063f45;
  --hero-mid: #0c8a81;
  --hero-light: #75d9aa;
  --page-glow: rgba(20, 184, 137, .22);
}

body[data-page="lockers"] {
  --accent: #f0a946;
  --accent-2: #60d8cc;
  --accent-rgb: 240, 169, 70;
  --hero-dark: #3b2b10;
  --hero-mid: #a06919;
  --hero-light: #1aa7af;
  --page-glow: rgba(240, 169, 70, .22);
}

body[data-page="shop"] {
  --accent: #f06f5c;
  --accent-2: #79dac8;
  --accent-rgb: 240, 111, 92;
  --hero-dark: #4b1e25;
  --hero-mid: #b94d43;
  --hero-light: #24b9b0;
  --page-glow: rgba(240, 111, 92, .20);
}

body[data-page="shop-orders"] {
  --accent: #0a8da3;
  --accent-2: #f0bc57;
  --accent-rgb: 10, 141, 163;
  --hero-dark: #063240;
  --hero-mid: #08798a;
  --hero-light: #f0bc57;
  --page-glow: rgba(10, 141, 163, .20);
}

body[data-page="orders"] {
  --accent: #5867d8;
  --accent-2: #5bd6c9;
  --accent-rgb: 88, 103, 216;
  --hero-dark: #172352;
  --hero-mid: #4052b6;
  --hero-light: #20a9b5;
  --page-glow: rgba(88, 103, 216, .20);
}

body[data-page="reports"] {
  --accent: #0ba6a6;
  --accent-2: #f0c85a;
  --accent-rgb: 11, 166, 166;
  --hero-dark: #083942;
  --hero-mid: #087f8d;
  --hero-light: #e5bc4d;
  --page-glow: rgba(11, 166, 166, .22);
}

body[data-page="settings"] {
  --accent: #74808c;
  --accent-2: #41c7bb;
  --accent-rgb: 116, 128, 140;
  --hero-dark: #202b34;
  --hero-mid: #536475;
  --hero-light: #2cb9ae;
  --page-glow: rgba(116, 128, 140, .20);
}

body[data-page="payroll"] {
  --accent: #1b8f78;
  --accent-2: #f0c85a;
  --accent-rgb: 27, 143, 120;
  --hero-dark: #083c42;
  --hero-mid: #147d73;
  --hero-light: #d8ad43;
  --page-glow: rgba(27, 143, 120, .21);
}

.ocean-backdrop {
  z-index: -5;
  background:
    radial-gradient(circle at 78% 18%, var(--page-glow), transparent 26%),
    linear-gradient(180deg, rgba(7, 55, 77, .10), transparent 240px),
    linear-gradient(135deg, #f7fdff 0%, #eef8fb 46%, #fbfcfb 100%);
}

.ocean-backdrop::before {
  background:
    radial-gradient(circle at 12% 22%, rgba(var(--accent-rgb), .34), transparent 24%),
    radial-gradient(circle at 62% 6%, rgba(139, 226, 198, .24), transparent 28%),
    linear-gradient(135deg, var(--hero-dark), var(--hero-mid));
}

.ocean-backdrop::after {
  opacity: .58;
}

.swim-lanes,
.bubble-field,
.cursor-glow {
  position: fixed;
  pointer-events: none;
}

.swim-lanes {
  inset: 0 -12%;
  z-index: -4;
  opacity: .42;
  background:
    repeating-linear-gradient(
      100deg,
      transparent 0 82px,
      rgba(8, 98, 122, .12) 82px 84px,
      transparent 84px 168px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 52px,
      rgba(255, 255, 255, .42) 52px 53px,
      transparent 53px 104px
    );
  mask-image: linear-gradient(180deg, transparent 0, #000 120px, #000 78%, transparent 100%);
  animation: laneFlow 24s linear infinite;
}

.bubble-field {
  inset: auto 0 0 0;
  z-index: -3;
  height: 100vh;
  overflow: hidden;
}

.bubble-field span {
  position: absolute;
  bottom: -70px;
  left: var(--bubble-left);
  width: var(--bubble-size);
  height: var(--bubble-size);
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, rgba(255, 255, 255, .76), rgba(var(--accent-rgb), .12) 42%, transparent 72%);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, .32);
  opacity: .0;
  animation: bubbleRise var(--bubble-speed) ease-in infinite;
  animation-delay: var(--bubble-delay);
}

.bubble-field span:nth-child(1) { --bubble-left: 6%; --bubble-size: 16px; --bubble-speed: 13s; --bubble-delay: 0s; }
.bubble-field span:nth-child(2) { --bubble-left: 14%; --bubble-size: 9px; --bubble-speed: 10s; --bubble-delay: 2s; }
.bubble-field span:nth-child(3) { --bubble-left: 25%; --bubble-size: 22px; --bubble-speed: 17s; --bubble-delay: 5s; }
.bubble-field span:nth-child(4) { --bubble-left: 38%; --bubble-size: 12px; --bubble-speed: 12s; --bubble-delay: 1s; }
.bubble-field span:nth-child(5) { --bubble-left: 48%; --bubble-size: 18px; --bubble-speed: 15s; --bubble-delay: 6s; }
.bubble-field span:nth-child(6) { --bubble-left: 59%; --bubble-size: 10px; --bubble-speed: 11s; --bubble-delay: 3s; }
.bubble-field span:nth-child(7) { --bubble-left: 69%; --bubble-size: 24px; --bubble-speed: 18s; --bubble-delay: 4s; }
.bubble-field span:nth-child(8) { --bubble-left: 76%; --bubble-size: 13px; --bubble-speed: 13s; --bubble-delay: 7s; }
.bubble-field span:nth-child(9) { --bubble-left: 88%; --bubble-size: 18px; --bubble-speed: 16s; --bubble-delay: 2s; }
.bubble-field span:nth-child(10) { --bubble-left: 94%; --bubble-size: 11px; --bubble-speed: 12s; --bubble-delay: 8s; }

.cursor-glow {
  left: var(--cursor-x);
  top: var(--cursor-y);
  z-index: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .22), rgba(255, 255, 255, .12) 36%, transparent 68%);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 220ms ease, background 240ms ease;
  mix-blend-mode: multiply;
}

body.has-pointer .cursor-glow {
  opacity: .78;
}

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

.sidebar {
  position: fixed;
  z-index: 2;
  overflow: hidden;
  border-color: rgba(255, 255, 255, .18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02)),
    radial-gradient(circle at 18% 8%, rgba(var(--accent-rgb), .30), transparent 26%),
    linear-gradient(165deg, #041f2e 0%, #083145 46%, #0b4c5c 100%);
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: auto -18% 0 -18%;
  height: 150px;
  background:
    repeating-radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, .20) 0 1px, transparent 1px 16px);
  opacity: .32;
  animation: waveDrift 15s linear infinite reverse;
}

.brand,
.nav,
.side-status {
  position: relative;
  z-index: 1;
}

.brand-mark {
  background:
    url("./assets/zhengxing-logo.png?v=20260703-logo1"),
    linear-gradient(135deg, rgba(var(--accent-rgb), .9), rgba(255, 105, 18, .86));
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 28px rgba(var(--accent-rgb), .32);
}

.nav a {
  overflow: hidden;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
  transform: translateX(-110%);
  transition: transform 380ms ease;
}

.nav a.active,
.nav a:hover {
  transform: translateX(3px);
}

.nav a.active {
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), .30), rgba(255, 255, 255, .08));
}

.nav a.active::before,
.nav a:hover::before {
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18);
}

.nav a:hover::after,
.nav a.active::after {
  transform: translateX(110%);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 150px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, .24);
  background:
    radial-gradient(circle at 76% 24%, rgba(255, 255, 255, .20), transparent 16%),
    radial-gradient(circle at 90% 72%, rgba(var(--accent-rgb), .34), transparent 22%),
    linear-gradient(116deg, var(--hero-dark), var(--hero-mid) 58%, var(--hero-light));
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -44px -10%;
  z-index: -1;
  height: 118px;
  background:
    radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, .40), transparent 58%),
    repeating-radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, .30) 0 1px, transparent 1px 18px);
  opacity: .62;
  transform: rotate(-1.5deg);
  animation: surfaceSweep 10s ease-in-out infinite alternate;
}

.hero::after {
  content: "DASHBOARD";
  position: absolute;
  right: 24px;
  bottom: -13px;
  z-index: -1;
  color: rgba(255, 255, 255, .105);
  font-size: 76px;
  font-weight: 950;
  line-height: .8;
  letter-spacing: 0;
  white-space: nowrap;
}

body[data-page="members"] .hero::after { content: "MEMBERS"; }
body[data-page="courses"] .hero::after { content: "COURSES"; }
body[data-page="lockers"] .hero::after { content: "LOCKERS"; }
body[data-page="shop"] .hero::after { content: "SHOP"; }
body[data-page="shop-orders"] .hero::after { content: "SHOP ORDER"; }
body[data-page="orders"] .hero::after { content: "ORDERS"; }
body[data-page="reports"] .hero::after { content: "REPORTS"; }
body[data-page="settings"] .hero::after { content: "SETTINGS"; }
body[data-page="payroll"] .hero::after { content: "PAYROLL"; }

.payroll-workspace {
  overflow: hidden;
}

.payroll-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(180px, 240px) minmax(280px, 1fr);
  align-items: end;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(var(--accent-rgb), .12);
  background: linear-gradient(110deg, rgba(var(--accent-rgb), .075), rgba(255, 255, 255, .42));
}

.payroll-toolbar label {
  margin: 0;
  color: #42636a;
  font-size: 12px;
  font-weight: 800;
}

.payroll-toolbar input {
  margin-top: 7px;
  background: rgba(255, 255, 255, .92);
}

.payroll-toolbar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.payroll-toolbar-actions button {
  min-width: 96px;
}

.payroll-table td:first-child strong,
.table-subtext {
  display: block;
}

.table-subtext {
  margin-top: 4px;
  color: #82969b;
  font-size: 11px;
  font-weight: 600;
}

.payroll-total {
  color: #13715f;
  font-size: 16px;
}

@media (max-width: 980px) {
  .payroll-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payroll-toolbar-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .payroll-toolbar {
    grid-template-columns: 1fr;
  }

  .payroll-toolbar-actions {
    grid-column: auto;
    flex-wrap: wrap;
  }
}

.eyebrow {
  color: var(--accent-2);
  letter-spacing: 0;
}

.top-actions button,
.command-bar a,
.command-bar button,
.row-actions button,
.quick-actions button,
.danger-actions button,
.nav a {
  position: relative;
  overflow: hidden;
}

.top-actions button {
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.command-bar {
  position: relative;
  overflow: hidden;
  border-color: rgba(var(--accent-rgb), .18);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), .08), rgba(255, 255, 255, .86) 28%, rgba(255, 255, 255, .78)),
    rgba(255, 255, 255, .86);
}

.command-bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.command-bar a,
.command-bar button {
  border-color: rgba(var(--accent-rgb), .18);
  color: var(--hero-mid);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease, color 170ms ease;
}

.command-bar a:hover,
.command-bar button:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), .42);
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), .14);
}

.metric-tile,
.panel,
.surface-card {
  position: relative;
  border-color: rgba(var(--accent-rgb), .14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .90)),
    radial-gradient(circle at 0 0, rgba(var(--accent-rgb), .12), transparent 34%);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.panel::before,
.surface-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
}

.metric-tile:hover,
.panel:hover,
.surface-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), .32);
  box-shadow: 0 24px 54px rgba(10, 71, 91, .14);
}

.metric-tile::before {
  content: "";
  position: absolute;
  right: -18px;
  top: -30px;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), .18);
  background: radial-gradient(circle, rgba(var(--accent-rgb), .12), transparent 62%);
}

.metric-tile::after {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.metric-tile strong {
  color: var(--hero-dark);
}

.panel-head {
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), .08), #ffffff 34%, #f7fbfc);
}

.panel-head a,
.panel-head span {
  color: var(--hero-mid);
}

th {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .075), #f8fbfc);
}

tbody tr {
  transition: transform 150ms ease, background 150ms ease;
}

tbody tr:hover td {
  background: rgba(var(--accent-rgb), .055);
}

input:focus,
select:focus {
  border-color: rgba(var(--accent-rgb), .70);
  outline-color: rgba(var(--accent-rgb), .16);
}

.form-grid button[type="submit"] {
  background: linear-gradient(135deg, var(--hero-mid), var(--accent));
  box-shadow: 0 12px 24px rgba(var(--accent-rgb), .22);
}

.status-strip span,
.status-pill {
  background: rgba(var(--accent-rgb), .10);
  color: var(--hero-mid);
}

.toast {
  border: 1px solid rgba(255, 255, 255, .14);
  background:
    radial-gradient(circle at 14% 18%, rgba(var(--accent-rgb), .24), transparent 28%),
    #063445;
}

.module-visual {
  flex: 0 0 272px;
  align-self: stretch;
  min-height: 116px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, .28), transparent 24%),
    linear-gradient(150deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .055));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 16px 36px rgba(0, 0, 0, .13);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  overflow: hidden;
  position: relative;
}

.module-visual::before {
  content: "";
  position: absolute;
  inset: -36% auto auto -18%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 62%);
  animation: moduleFloat 7s ease-in-out infinite alternate;
}

.module-visual-head,
.module-art,
.module-visual-chips {
  position: relative;
  z-index: 1;
}

.module-visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.module-visual-head span {
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 950;
}

.module-visual-head strong {
  color: rgba(255, 255, 255, .90);
  font-size: 13px;
}

.module-art {
  min-height: 48px;
  display: grid;
  gap: 7px;
}

.module-art i {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .82);
  font-style: normal;
  font-size: 11px;
  font-weight: 850;
  display: grid;
  place-items: center;
}

.module-visual-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.module-visual-chips em {
  min-height: 22px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .82);
  font-style: normal;
  font-size: 11px;
  font-weight: 820;
}

.module-visual-dashboard .module-art {
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
}

.module-visual-dashboard .module-art i {
  height: calc(18px + var(--bar, 1) * 10px);
}

.module-visual-dashboard .module-art i:nth-child(1) { --bar: 2; }
.module-visual-dashboard .module-art i:nth-child(2) { --bar: 4; }
.module-visual-dashboard .module-art i:nth-child(3) { --bar: 3; }
.module-visual-dashboard .module-art i:nth-child(4) { --bar: 5; }
.module-visual-dashboard .module-art i:nth-child(5) { --bar: 2.5; }

.module-visual-members .module-art {
  grid-template-columns: 1.1fr .8fr 1fr;
}

.module-visual-members .module-art i:nth-child(1) {
  grid-row: span 2;
  background: linear-gradient(150deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .09));
}

.module-visual-courses .module-art {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.module-visual-courses .module-art i {
  width: calc(52% + var(--lane-size, 1) * 8%);
  min-height: 8px;
  justify-content: start;
  padding-left: 10px;
  animation: lanePulse 2.8s ease-in-out infinite;
}

.module-visual-courses .module-art i:nth-child(1) { --lane-size: 1; }
.module-visual-courses .module-art i:nth-child(2) { --lane-size: 4; animation-delay: .14s; }
.module-visual-courses .module-art i:nth-child(3) { --lane-size: 2; animation-delay: .28s; }
.module-visual-courses .module-art i:nth-child(4) { --lane-size: 5; animation-delay: .42s; }
.module-visual-courses .module-art i:nth-child(5) { --lane-size: 3; animation-delay: .56s; }

.module-visual-lockers .module-art {
  grid-template-columns: repeat(3, 1fr);
}

.module-visual-lockers .module-art i {
  min-height: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .07));
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .08);
}

.module-visual-lockers .module-art i:nth-child(2),
.module-visual-lockers .module-art i:nth-child(5) {
  border-color: rgba(211, 243, 106, .42);
  color: #f7ffd8;
  animation: signalBlink 2.4s ease-in-out infinite;
}

.module-visual-shop .module-art {
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
}

.module-visual-shop .module-art i {
  min-height: calc(28px + var(--shelf, 0) * 7px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .08));
}

.module-visual-shop .module-art i:nth-child(1) { --shelf: 1; }
.module-visual-shop .module-art i:nth-child(2) { --shelf: 2; }
.module-visual-shop .module-art i:nth-child(3) { --shelf: 4; }
.module-visual-shop .module-art i:nth-child(4) { --shelf: 3; }
.module-visual-shop .module-art i:nth-child(5) { --shelf: 1.5; }

.module-visual-shop-orders .module-art {
  grid-template-columns: 1.2fr .8fr;
}

.module-visual-shop-orders .module-art i {
  min-height: 34px;
  justify-content: start;
  padding-left: 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, .08));
}

.module-visual-shop-orders .module-art i:nth-child(3) {
  grid-column: span 2;
}

.module-visual-orders .module-art {
  grid-template-columns: 1fr;
}

.module-visual-orders .module-art i {
  min-height: 8px;
  justify-content: start;
  padding-left: 12px;
  border-style: dashed;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, .08));
}

.module-visual-reports .module-art {
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
}

.module-visual-reports .module-art i {
  height: 42px;
  border-radius: 999px 999px 8px 8px;
  transform: scaleY(var(--wave, .7));
  transform-origin: bottom;
  animation: lanePulse 2.2s ease-in-out infinite alternate;
}

.module-visual-reports .module-art i:nth-child(1) { --wave: .46; }
.module-visual-reports .module-art i:nth-child(2) { --wave: .82; animation-delay: .12s; }
.module-visual-reports .module-art i:nth-child(3) { --wave: .62; animation-delay: .24s; }
.module-visual-reports .module-art i:nth-child(4) { --wave: 1; animation-delay: .36s; }
.module-visual-reports .module-art i:nth-child(5) { --wave: .72; animation-delay: .48s; }

.module-visual-settings .module-art {
  grid-template-columns: 1fr 1fr;
}

.module-visual-settings .module-art i {
  justify-content: space-between;
  padding: 0 8px;
}

.module-visual-settings .module-art i::after {
  content: "";
  width: 22px;
  height: 12px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 72% 50%, #fff 0 3px, transparent 4px),
    linear-gradient(90deg, rgba(var(--accent-rgb), .28), var(--accent-2));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), .26);
}

.ripple-ink {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .52);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: rippleBurst 620ms ease-out forwards;
}

.command-bar .ripple-ink,
.row-actions .ripple-ink,
.quick-actions .ripple-ink {
  background: rgba(var(--accent-rgb), .20);
}

body:not(.is-loaded) .hero,
body:not(.is-loaded) .command-bar,
body:not(.is-loaded) .metric-tile,
body:not(.is-loaded) .panel,
body:not(.is-loaded) .surface-card {
  opacity: 0;
  transform: translateY(14px);
}

body.is-loaded .hero,
body.is-loaded .command-bar,
body.is-loaded .metric-tile,
body.is-loaded .panel,
body.is-loaded .surface-card {
  animation: cardLiftIn 620ms cubic-bezier(.16, 1, .3, 1) both;
}

body.is-loaded .form-panel[data-modal-panel].is-open {
  animation: none;
  opacity: 1;
  transform: translate(-50%, -50%) !important;
}

body.is-loaded .metric-tile:nth-child(2),
body.is-loaded .grid:nth-of-type(2) .panel:nth-child(1) { animation-delay: 70ms; }
body.is-loaded .metric-tile:nth-child(3),
body.is-loaded .grid:nth-of-type(2) .panel:nth-child(2) { animation-delay: 120ms; }
body.is-loaded .metric-tile:nth-child(4),
body.is-loaded .grid:nth-of-type(3) .panel:nth-child(1) { animation-delay: 170ms; }
body.is-loaded .grid:nth-of-type(3) .panel:nth-child(2) { animation-delay: 220ms; }

@media (max-width: 720px) {
  .panel-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .panel-head > :is(span, a, button) {
    justify-self: start;
    max-width: 100%;
  }

  .form-panel[data-modal-panel].is-open .panel-head {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) 38px;
    align-items: center;
  }

  .form-panel[data-modal-panel].is-open .panel-head span {
    justify-self: start;
  }

  .form-panel[data-modal-panel].is-open .form-modal-close {
    justify-self: end;
  }

  .table-toolbar,
  .notice-panel {
    justify-content: center;
    text-align: center;
  }

  .refund-reason-actions {
    justify-content: center;
  }
}

@keyframes laneFlow {
  from { transform: translate3d(-42px, -20px, 0) rotate(-2deg); }
  to { transform: translate3d(42px, 20px, 0) rotate(-2deg); }
}

@keyframes moduleFloat {
  from { transform: translate3d(-8px, 0, 0) scale(1); opacity: .72; }
  to { transform: translate3d(10px, 8px, 0) scale(1.06); opacity: .92; }
}

@keyframes lanePulse {
  0%, 100% { filter: brightness(1); opacity: .82; }
  50% { filter: brightness(1.18); opacity: 1; }
}

@keyframes signalBlink {
  0%, 100% { box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .08); }
  50% { box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .08), 0 0 18px rgba(211, 243, 106, .35); }
}

@keyframes bubbleRise {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.72); }
  16% { opacity: .54; }
  78% { opacity: .38; }
  100% { opacity: 0; transform: translate3d(34px, -96vh, 0) scale(1.22); }
}

@keyframes surfaceSweep {
  from { transform: translateX(-38px) rotate(-1.5deg); }
  to { transform: translateX(38px) rotate(-1.5deg); }
}

@keyframes cardLiftIn {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rippleBurst {
  from { opacity: .72; transform: translate(-50%, -50%) scale(0); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(15); }
}

@media (max-width: 1180px) {
  body {
    min-width: 0;
  }

  .sidebar {
    position: relative;
    inset: auto;
    width: auto;
    margin: 12px;
  }

  .nav {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  }

  .side-status {
    margin-top: 14px;
  }

  .main {
    width: auto;
    max-width: none;
    margin-left: 0;
    padding: 0 12px 28px;
  }

  .hero {
    flex-wrap: wrap;
  }

  .module-visual {
    flex: 1 1 260px;
  }

  .form-layout,
  .shop-management-grid,
  .grid.two,
  .metric-grid,
  .form-grid.inline {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 720px;
  }

  .panel {
    overflow-x: auto;
  }
}

body.has-admin-hero-image .hero {
  background:
    linear-gradient(116deg, rgba(4, 28, 43, .88), rgba(var(--accent-rgb), .72)),
    var(--admin-hero-image);
  background-size: cover;
  background-position: center;
}

.content-preview {
  padding: 16px;
}

.preview-hero {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 8px;
  background: #063445;
  color: #ffffff;
  display: flex;
  align-items: end;
  padding: 18px;
}

.preview-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .68;
}

.image-fallback {
  display: grid;
  place-items: center;
  min-height: 82px;
  color: #6c8b95;
  font-size: 12px;
  font-weight: 850;
  background:
    repeating-linear-gradient(135deg, rgba(var(--accent-rgb), .08) 0 9px, transparent 9px 18px),
    linear-gradient(135deg, #eef9fb, #ffffff);
}

.preview-hero > .image-fallback {
  position: absolute;
  inset: 0;
  min-height: auto;
  color: rgba(255, 255, 255, .74);
  background:
    radial-gradient(circle at 20% 18%, rgba(96, 206, 220, .32), transparent 34%),
    linear-gradient(145deg, #053140, #0a5968);
}

.preview-hero.image-missing::before,
.preview-grid span.image-missing::before {
  content: "图片未加载";
  display: grid;
  place-items: center;
  color: #6c8b95;
  font-size: 12px;
  font-weight: 850;
  background:
    repeating-linear-gradient(135deg, rgba(var(--accent-rgb), .08) 0 9px, transparent 9px 18px),
    linear-gradient(135deg, #eef9fb, #ffffff);
}

.preview-hero.image-missing::before {
  position: absolute;
  inset: 0;
  color: rgba(255, 255, 255, .74);
  background:
    radial-gradient(circle at 20% 18%, rgba(96, 206, 220, .32), transparent 34%),
    linear-gradient(145deg, #053140, #0a5968);
}

.preview-grid span.image-missing::before {
  aspect-ratio: 1.25;
  margin-bottom: 8px;
}

.preview-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(4, 30, 42, .74));
}

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

.preview-hero strong,
.preview-hero span {
  display: block;
}

.preview-hero strong {
  font-size: 26px;
  font-weight: 950;
}

.preview-hero span {
  margin-top: 6px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}

.preview-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.preview-grid span {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), .16);
  border-radius: 8px;
  background: #ffffff;
  color: var(--hero-mid);
  font-size: 12px;
  font-weight: 860;
}

.preview-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  margin-bottom: 8px;
}

body[data-page="login"] {
  min-width: 0;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(123, 224, 201, .26), transparent 28%),
    linear-gradient(135deg, #041b2a, #0b5468 58%, #0ca5af);
  color: #ffffff;
}

.login-video,
.login-water {
  position: fixed;
  inset: 0;
}

.login-video {
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  filter: saturate(1.08) contrast(1.04);
}

.login-water {
  z-index: -3;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4, 20, 31, .70), rgba(4, 57, 72, .38) 48%, rgba(3, 20, 31, .78)),
    radial-gradient(circle at 70% 18%, rgba(139, 226, 198, .25), transparent 24%);
}

.login-water::before,
.login-water::after {
  content: "";
  position: absolute;
  left: -12%;
  width: 124%;
  pointer-events: none;
}

.login-water::before {
  top: 0;
  height: 100%;
  background:
    repeating-radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, .32) 0 1px, transparent 1px 28px);
  opacity: .24;
  animation: loginWaveDrift 18s linear infinite;
}

.login-water::after {
  bottom: -14%;
  height: 38%;
  background:
    radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, .42), transparent 58%),
    repeating-radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, .30) 0 1px, transparent 1px 20px);
  opacity: .58;
  animation: loginSurface 8s ease-in-out infinite alternate;
}

.admin-login-shell {
  min-height: 100vh;
  padding: 42px clamp(24px, 6vw, 88px);
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(340px, 430px);
  align-items: center;
  gap: clamp(28px, 6vw, 92px);
}

.login-copy {
  max-width: 660px;
  text-shadow: 0 14px 38px rgba(0, 0, 0, .24);
}

.login-copy h1 {
  margin-top: 12px;
  font-size: clamp(42px, 5.5vw, 74px);
  line-height: 1.02;
  color: #ffffff;
}

.login-copy p {
  margin-top: 18px;
  max-width: 520px;
  color: rgba(235, 253, 255, .82);
  font-size: 17px;
}

.admin-login-panel {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .30);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(240, 252, 253, .84)),
    radial-gradient(circle at 14% 0, rgba(53, 196, 206, .26), transparent 28%);
  color: var(--ink);
  box-shadow: 0 32px 90px rgba(2, 20, 32, .42);
  backdrop-filter: blur(22px);
}

.admin-login-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--mint), var(--lime));
}

.login-panel-head span {
  color: #0a8799;
  font-size: 12px;
  font-weight: 950;
}

.login-panel-head h2 {
  margin-top: 8px;
  color: #092f3d;
  font-size: 28px;
}

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

.login-form input {
  min-height: 48px;
  border-color: rgba(10, 141, 163, .24);
  background: rgba(255, 255, 255, .88);
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 10px;
  align-items: center;
}

.login-form .captcha-chip {
  min-height: 48px;
  margin: 0;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(8, 121, 138, .12);
  color: #075263;
  box-shadow: none;
  font-weight: 900;
  white-space: nowrap;
}

.login-form button {
  min-height: 50px;
  margin-top: 4px;
  border: 0;
  background: linear-gradient(135deg, #06798d, #11b4bd);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(10, 141, 163, .25);
}

.login-status {
  min-height: 24px;
  margin-top: 16px;
  color: #52727b;
  font-size: 13px;
}

.login-status[data-tone="ok"] {
  color: #117a5f;
}

.login-status[data-tone="error"] {
  color: #b6493b;
}

.level-admin {
  color: #0b7285;
  background: rgba(12, 164, 181, .12);
  border-color: rgba(12, 164, 181, .34);
}

.notice-panel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(var(--accent-rgb), .20);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(235, 252, 253, .72));
  box-shadow: 0 18px 42px rgba(4, 65, 82, .10);
}

.notice-panel[data-tone="warn"] {
  border-color: rgba(221, 151, 39, .36);
  background: linear-gradient(135deg, rgba(255, 249, 232, .92), rgba(232, 252, 253, .76));
}

.notice-panel strong {
  color: #083847;
}

.notice-panel span {
  flex: 1;
  min-width: min(320px, 100%);
  color: #4d7078;
  font-size: 13px;
}

.notice-panel a {
  color: #08798a;
  font-weight: 900;
  white-space: nowrap;
}

.sub-head {
  margin-top: 22px;
}

td code {
  display: inline-block;
  max-width: 180px;
  padding: 4px 7px;
  border-radius: 8px;
  background: rgba(8, 121, 138, .08);
  color: #075263;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  white-space: normal;
  word-break: break-all;
}

body[data-page="coupons"] {
  --accent: #0c9c96;
  --accent-rgb: 12, 156, 150;
}

body[data-page="activities"] {
  --accent: #13a487;
  --accent-2: #d3f36a;
  --accent-rgb: 19, 164, 135;
  --hero-dark: #063d3c;
  --hero-mid: #087d73;
  --hero-light: #7de2ad;
  --page-glow: rgba(19, 164, 135, .22);
}

body[data-page="feedback"] {
  --accent: #2d9cdb;
  --accent-2: #8be2c6;
  --accent-rgb: 45, 156, 219;
  --hero-dark: #082b58;
  --hero-mid: #126a9c;
  --hero-light: #44c4ed;
  --page-glow: rgba(45, 156, 219, .20);
}

body[data-page="coupons"] .hero::after { content: "COUPON"; }
body[data-page="activities"] .hero::after { content: "EVENT"; }
body[data-page="feedback"] .hero::after { content: "TICKET"; }

.module-visual-coupons .module-art {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(108, 221, 203, .18)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .52) 0 10px, rgba(255, 255, 255, .08) 10px 18px);
}

.module-visual-coupons .module-art i {
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, .72);
  background: rgba(13, 126, 141, .34);
}

.module-visual-activities .module-art,
.module-visual-feedback .module-art {
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
}

.module-visual-activities .module-art i {
  min-height: calc(22px + var(--event-size, 1) * 9px);
  background: linear-gradient(180deg, rgba(211, 243, 106, .28), rgba(255, 255, 255, .08));
}

.module-visual-activities .module-art i:nth-child(1) { --event-size: 3; }
.module-visual-activities .module-art i:nth-child(2) { --event-size: 2; }
.module-visual-activities .module-art i:nth-child(3) { --event-size: 4; }
.module-visual-activities .module-art i:nth-child(4) { --event-size: 1.5; }
.module-visual-activities .module-art i:nth-child(5) { --event-size: 5; }

.module-visual-feedback .module-art i {
  min-height: calc(18px + var(--ticket-size, 1) * 8px);
  border-style: dashed;
  background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(139, 226, 198, .10));
  animation: signalBlink 2.8s ease-in-out infinite;
}

.module-visual-feedback .module-art i:nth-child(1) { --ticket-size: 1; }
.module-visual-feedback .module-art i:nth-child(2) { --ticket-size: 2; animation-delay: .16s; }
.module-visual-feedback .module-art i:nth-child(3) { --ticket-size: 4; animation-delay: .32s; }
.module-visual-feedback .module-art i:nth-child(4) { --ticket-size: 3; animation-delay: .48s; }
.module-visual-feedback .module-art i:nth-child(5) { --ticket-size: 1.8; animation-delay: .64s; }

@keyframes loginWaveDrift {
  from { transform: translateX(-74px) skewY(-2deg); }
  to { transform: translateX(74px) skewY(-2deg); }
}

@keyframes loginSurface {
  from { transform: translateX(-42px) rotate(-1.6deg); }
  to { transform: translateX(42px) rotate(-1.6deg); }
}

@media (max-width: 860px) {
  body[data-page="login"] {
    overflow: auto;
  }

  .admin-login-shell {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 28px 18px;
  }

  .login-copy h1 {
    font-size: 40px;
  }

  .admin-login-panel {
    padding: 22px;
  }
}

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

  .cursor-glow {
    display: none;
  }
}

.trend-panel {
  margin: 14px 0 18px;
  overflow: hidden;
}

.trend-chart {
  min-height: 430px;
  padding: 0;
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 12%, rgba(52, 211, 235, 0.18), transparent 32%),
    radial-gradient(circle at 88% 0, rgba(255, 211, 111, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(244, 253, 254, 0.98), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(134, 211, 222, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 22px 54px rgba(6, 48, 61, 0.08);
}

.trend-chart-shell {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 18px 20px 14px;
  border-radius: 8px;
}

.trend-chart-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(9, 101, 119, 0.055) 0 1px, transparent 1px 88px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 56%);
  mask-image: linear-gradient(180deg, #000, transparent 88%);
}

.trend-chart-shell::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: 18px;
  height: 64px;
  pointer-events: none;
  opacity: 0.18;
  background:
    radial-gradient(70% 90% at 50% 0, transparent 53%, rgba(17, 163, 180, 0.34) 54%, transparent 58%) 0 0 / 150px 52px repeat-x;
  animation: waveDrift 12s linear infinite;
}

.trend-chart-top,
.trend-summary-grid,
.trend-plot,
.trend-note {
  position: relative;
  z-index: 1;
}

.trend-chart-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.trend-chart-top strong {
  display: block;
  color: #052f3d;
  font-size: 22px;
  letter-spacing: 0;
}

.trend-chart-top span {
  display: block;
  margin-top: 4px;
  color: rgba(7, 52, 68, 0.62);
  font-size: 13px;
  font-weight: 700;
}

.trend-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 12px;
}

.trend-summary-card {
  position: relative;
  min-height: 62px;
  padding: 11px 14px 11px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(175, 224, 231, 0.72);
  box-shadow: 0 14px 30px rgba(7, 82, 99, 0.06);
  backdrop-filter: blur(12px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.trend-summary-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: #13a89d;
}

.trend-summary-card[data-trend-series="courses"]::before {
  background: #2f6df6;
}

.trend-summary-card[data-trend-series="orders"]::before {
  background: #f0b429;
}

.trend-summary-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 159, 143, 0.5);
  box-shadow: 0 18px 40px rgba(7, 82, 99, 0.12);
}

.trend-summary-card span,
.trend-summary-card small {
  display: block;
  color: rgba(7, 52, 68, 0.64);
  font-size: 12px;
  font-weight: 800;
}

.trend-summary-card strong {
  display: block;
  margin: 4px 0;
  color: #052f3d;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0;
}

.trend-plot {
  position: relative;
  min-height: 244px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 215, 124, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(230, 249, 251, 0.62));
  border: 1px solid rgba(194, 231, 236, 0.78);
  overflow: hidden;
}

.trend-plot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 82, 99, 0.045) 1px, transparent 1px) 0 0 / 104px 100%,
    linear-gradient(180deg, rgba(7, 82, 99, 0.05) 1px, transparent 1px) 0 0 / 100% 72px;
}

.trend-chart svg {
  width: 100%;
  height: 244px;
  display: block;
  position: relative;
  z-index: 1;
}

.trend-grid-line {
  stroke: rgba(7, 82, 99, 0.12);
  stroke-width: 1;
}

.trend-area {
  fill: var(--line-color);
  opacity: 0.105;
}

.trend-stroke {
  fill: none;
  stroke: var(--line-color);
  stroke-width: 4.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 14px rgba(7, 82, 99, 0.2));
}

.trend-line circle {
  fill: #fff;
  stroke: var(--line-color);
  stroke-width: 3.4;
  transition: r .18s ease, filter .18s ease, fill .18s ease;
}

.trend-line circle.is-active {
  r: 9;
  fill: var(--line-color);
  filter: url(#trendGlow);
}

.trend-hover-line {
  opacity: 0;
  stroke: rgba(5, 47, 61, 0.2);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  transition: opacity .16s ease;
}

.trend-hover-line.is-active {
  opacity: 1;
}

.trend-hit-zone {
  fill: transparent;
  cursor: crosshair;
  outline: none;
}

.trend-hit-zone:focus-visible {
  fill: rgba(15, 159, 143, 0.08);
}

.trend-labels text {
  fill: rgba(7, 52, 68, 0.62);
  font-size: 13px;
  text-anchor: middle;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  color: #073444;
  font-weight: 800;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(205, 233, 237, 0.8);
}

.trend-legend i {
  width: 20px;
  height: 8px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(7, 82, 99, 0.16);
}

.trend-tooltip {
  position: absolute;
  top: 28px;
  min-width: 178px;
  padding: 12px 13px;
  border-radius: 12px;
  background: rgba(5, 47, 61, 0.92);
  color: #fff;
  box-shadow: 0 18px 44px rgba(5, 47, 61, 0.24);
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  backdrop-filter: blur(14px);
  z-index: 5;
}

.trend-tooltip.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.trend-tooltip strong,
.trend-tooltip span {
  display: block;
}

.trend-tooltip strong {
  margin-bottom: 8px;
  font-size: 14px;
}

.trend-tooltip span {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 800;
}

.trend-tooltip i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
}

.trend-note {
  color: rgba(7, 52, 68, 0.58);
  font-size: 12px;
  margin-top: 10px;
  font-weight: 700;
}

@keyframes waveDrift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(150px);
  }
}

@media (max-width: 980px) {
  .trend-chart-top {
    flex-direction: column;
  }

  .trend-summary-grid {
    grid-template-columns: 1fr;
  }
}

body[data-page="dashboard"] table:has(#orderRows) {
  table-layout: fixed;
}

body[data-page="dashboard"] table:has(#orderRows) th,
body[data-page="dashboard"] table:has(#orderRows) td {
  padding: 10px 12px;
}

body[data-page="dashboard"] table:has(#orderRows) th:last-child {
  position: static;
}

body[data-page="dashboard"] #orderRows td {
  height: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

body[data-page="dashboard"] #orderRows td:nth-child(1) {
  width: 26%;
  max-width: 150px;
  font-variant-numeric: tabular-nums;
}

body[data-page="dashboard"] #orderRows td:nth-child(2) {
  width: 15%;
}

body[data-page="dashboard"] #orderRows td:nth-child(3) {
  width: 23%;
}

body[data-page="dashboard"] #orderRows td:nth-child(4) {
  width: 14%;
}

body[data-page="dashboard"] #orderRows td:nth-child(5) {
  width: 12%;
}

body[data-page="dashboard"] #orderRows td.row-actions {
  position: static;
  min-width: 116px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  justify-content: flex-start;
}

body[data-page="dashboard"] #orderRows .row-actions {
  flex-wrap: nowrap;
  gap: 6px;
}

body[data-page="dashboard"] #orderRows .row-actions button {
  min-height: 28px;
  padding: 0 9px;
}
