:root {
  --pink: #fe339f;
  --pink-strong: #d91e83;
  --cyan: #31f0fa;
  --purple: #9aa2ed;
  --ink: #171821;
  --muted: #5f6372;
  --weak: #8c90a0;
  --line: #e6e8ef;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --pink-soft: #fff0f8;
  --cyan-soft: #eafdff;
  --purple-soft: #f2f3ff;
  --success: #12c48b;
  --warning: #ffb020;
  --danger: #f04452;
  --info: #2f80ed;
  --radius: 12px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 6px -1px rgba(23, 24, 33, 0.04), 0 10px 15px -3px rgba(23, 24, 33, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(23, 24, 33, 0.08), 0 10px 10px -5px rgba(23, 24, 33, 0.04);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1180px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 20px 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 12px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #050505;
  box-shadow: 0 10px 28px rgba(5, 5, 5, 0.16);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.7);
}

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

.brand strong {
  font-size: 17px;
  line-height: 1.2;
}

.brand span {
  margin-top: 4px;
  color: var(--weak);
  font-size: 12px;
}

.nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.nav-group {
  margin: 14px 14px 2px;
  color: var(--weak);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nav-group:first-child {
  margin-top: 2px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-item:hover {
  background: rgba(254, 51, 159, 0.04);
  color: var(--pink-strong);
}

.nav-item.active {
  background: var(--pink-soft);
  color: var(--pink-strong);
  font-weight: 700;
  box-shadow: inset 3px 0 0 0 var(--pink-strong);
}

.nav-icon {
  width: 18px;
  height: 18px;
  background-color: currentColor;
  display: inline-block;
  flex-shrink: 0;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.nav-icon.grid {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'%3E%3C/rect%3E%3Crect x='14' y='3' width='7' height='7'%3E%3C/rect%3E%3Crect x='14' y='14' width='7' height='7'%3E%3C/rect%3E%3Crect x='3' y='14' width='7' height='7'%3E%3C/rect%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'%3E%3C/rect%3E%3Crect x='14' y='3' width='7' height='7'%3E%3C/rect%3E%3Crect x='14' y='14' width='7' height='7'%3E%3C/rect%3E%3Crect x='3' y='14' width='7' height='7'%3E%3C/rect%3E%3C/svg%3E");
}

.nav-icon.flag {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z'%3E%3C/path%3E%3Cline x1='4' y1='22' x2='4' y2='15'%3E%3C/line%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z'%3E%3C/path%3E%3Cline x1='4' y1='22' x2='4' y2='15'%3E%3C/line%3E%3C/svg%3E");
}

.nav-icon.receipt {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1-2-1z'%3E%3C/path%3E%3Cpath d='M6 6h12M6 10h12M6 14h8'%3E%3C/path%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1-2-1z'%3E%3C/path%3E%3Cpath d='M6 6h12M6 10h12M6 14h8'%3E%3C/path%3E%3C/svg%3E");
}

.nav-icon.check {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 11 12 14 22 4'%3E%3C/polyline%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'%3E%3C/path%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 11 12 14 22 4'%3E%3C/polyline%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'%3E%3C/path%3E%3C/svg%3E");
}

.nav-icon.refund {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='1' x2='12' y2='23'%3E%3C/line%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'%3E%3C/path%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='1' x2='12' y2='23'%3E%3C/line%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'%3E%3C/path%3E%3C/svg%3E");
}

.nav-icon.scan {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7V5a2 2 0 0 1 2-2h2M17 3h2a2 2 0 0 1 2 2v2M21 17v2a2 2 0 0 1-2 2h-2M7 21H5a2 2 0 0 1-2-2v-2'%3E%3C/path%3E%3Crect x='7' y='7' width='10' height='10' rx='1'%3E%3C/rect%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7V5a2 2 0 0 1 2-2h2M17 3h2a2 2 0 0 1 2 2v2M21 17v2a2 2 0 0 1-2 2h-2M7 21H5a2 2 0 0 1-2-2v-2'%3E%3C/path%3E%3Crect x='7' y='7' width='10' height='10' rx='1'%3E%3C/rect%3E%3C/svg%3E");
}

.nav-icon.org {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'%3E%3C/path%3E%3Cpath d='M5 21V7l8-4v18'%3E%3C/path%3E%3Cpath d='M19 21V11l-6-4'%3E%3C/path%3E%3Cpath d='M9 9v.01M9 12v.01M9 15v.01M9 18v.01'%3E%3C/path%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'%3E%3C/path%3E%3Cpath d='M5 21V7l8-4v18'%3E%3C/path%3E%3Cpath d='M19 21V11l-6-4'%3E%3C/path%3E%3Cpath d='M9 9v.01M9 12v.01M9 15v.01M9 18v.01'%3E%3C/path%3E%3C/svg%3E");
}

.nav-icon.staff {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='9' cy='7' r='4'%3E%3C/circle%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'%3E%3C/path%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'%3E%3C/path%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='9' cy='7' r='4'%3E%3C/circle%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'%3E%3C/path%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'%3E%3C/path%3E%3C/svg%3E");
}

.nav-icon.chart {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'%3E%3C/line%3E%3Cline x1='12' y1='20' x2='12' y2='4'%3E%3C/line%3E%3Cline x1='6' y1='20' x2='6' y2='14'%3E%3C/line%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'%3E%3C/line%3E%3Cline x1='12' y1='20' x2='12' y2='4'%3E%3C/line%3E%3Cline x1='6' y1='20' x2='6' y2='14'%3E%3C/line%3E%3C/svg%3E");
}

.nav-icon.log {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3C/svg%3E");
}

.nav-icon.setting {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'%3E%3C/path%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'%3E%3C/path%3E%3C/svg%3E");
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.icp-link {
  color: var(--weak);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

.icp-link:hover {
  color: var(--pink-strong);
}

.sidebar-icp {
  display: block;
  padding: 0 4px;
}

.sidebar-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, var(--pink-soft) 58%, var(--cyan-soft));
  padding: 14px;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.sidebar-logout:hover {
  border-color: rgba(240, 68, 82, 0.4);
  background: #fff5f6;
  color: var(--danger);
}

.logout-icon {
  display: inline-block;
  width: 17px;
  height: 17px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'%3E%3C/path%3E%3Cpolyline points='16 17 21 12 16 7'%3E%3C/polyline%3E%3Cline x1='21' y1='12' x2='9' y2='12'%3E%3C/line%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'%3E%3C/path%3E%3Cpolyline points='16 17 21 12 16 7'%3E%3C/polyline%3E%3Cline x1='21' y1='12' x2='9' y2='12'%3E%3C/line%3E%3C/svg%3E") center / contain no-repeat;
}

.bell-button {
  position: relative;
}

.bell-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'%3E%3C/path%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'%3E%3C/path%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'%3E%3C/path%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'%3E%3C/path%3E%3C/svg%3E") center / contain no-repeat;
}

.bell-button.has-unread::after {
  position: absolute;
  top: 7px;
  right: 9px;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--surface);
  border-radius: 50%;
  background: var(--pink);
  content: "";
}

.sidebar-card b,
.sidebar-card span {
  display: block;
}

.sidebar-card b {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}

.sidebar-card .status-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(18, 196, 139, 0.16);
}

.sidebar-card .status-dot.warn {
  background: var(--warning);
  box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.18);
}

.sidebar-card span {
  margin-top: 6px;
  color: var(--weak);
  font-size: 12px;
  line-height: 1.6;
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 251, 0.88);
  backdrop-filter: blur(16px);
  padding: 0 28px;
}

.topbar span {
  display: block;
  color: var(--weak);
  font-size: 12px;
}

.topbar strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

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

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

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 12px;
}

.top-actions .icon-button {
  width: 44px;
  height: 44px;
}

.user-chip i {
  width: 30px;
  height: 30px;
}

.user-chip i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  color: white;
  font-style: normal;
  font-weight: 800;
}

.user-chip-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
}

.user-chip strong {
  margin: 0;
  font-size: 13px;
}

.user-chip span {
  margin-top: 2px;
  font-size: 11px;
}

.route-view {
  padding: 28px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--pink-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.page-head h1,
.error-state h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.page-head span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.search-box input,
.form-panel input:not([type="checkbox"]):not([type="radio"]),
.form-panel select,
.form-panel textarea,
.login-panel input,
.modal-panel input:not([type="checkbox"]):not([type="radio"]),
.modal-panel select,
.modal-panel textarea,
.editor-page input:not([type="checkbox"]):not([type="radio"]),
.editor-page select,
.editor-page textarea,
.drawer-panel input:not([type="checkbox"]):not([type="radio"]),
.drawer-panel select,
.drawer-panel textarea,
.reg-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.reg-page select,
.reg-page textarea {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 0 12px;
  outline: none;
}

.modal-panel textarea,
.editor-page textarea,
.drawer-panel textarea,
.form-panel textarea,
.reg-page textarea {
  height: auto;
  min-height: 80px;
  padding: 10px 12px;
  resize: vertical;
}

.search-box input {
  width: 220px;
}

.search-submit {
  height: 38px;
  padding: 0 16px;
}

.draw-metrics {
  margin-bottom: 18px;
}

.draw-create-panel,
.draw-session-card {
  margin-bottom: 18px;
}

.draw-session-form,
.draw-add-entry {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.draw-session-form label {
  display: grid;
  gap: 6px;
  color: var(--weak);
  font-size: 12px;
  font-weight: 800;
}

.draw-session-form input,
.draw-session-form select,
.draw-registration-toolbar input,
.draw-no-input {
  height: 38px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0 12px;
  outline: none;
}

.draw-session-head,
.draw-session-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.draw-session-head {
  justify-content: space-between;
}

.draw-add-entry {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.draw-registration-picker {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.draw-registration-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.draw-registration-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding: 10px;
}

.draw-registration-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
  border: 1px solid rgba(230, 232, 239, 0.88);
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  color: var(--text);
  cursor: pointer;
}

.draw-registration-option input {
  margin-top: 2px;
}

.draw-registration-option span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.draw-registration-option strong,
.draw-registration-option em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draw-registration-option strong {
  font-size: 13px;
}

.draw-registration-option em,
.draw-registration-empty {
  color: var(--weak);
  font-size: 12px;
  font-style: normal;
}

.draw-registration-option.is-disabled {
  background: #f4f6fa;
  color: var(--muted);
  cursor: not-allowed;
}

.draw-registration-empty {
  grid-column: 1 / -1;
  padding: 12px;
}

.draw-table {
  margin-top: 14px;
}

.draw-no-input {
  width: 82px;
}

.draw-people-lines {
  display: grid;
  gap: 5px;
  color: var(--weak);
  font-size: 12px;
  line-height: 1.45;
}

.draw-people-lines span {
  display: block;
}

.draw-people-lines b {
  display: inline-block;
  min-width: 60px;
  margin-right: 6px;
  color: var(--text);
}

.draw-card-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

@media (max-width: 1100px) {
  .draw-session-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .draw-session-form .primary-button {
    grid-column: 1 / -1;
  }

  .draw-session-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .draw-add-entry,
  .draw-registration-toolbar,
  .draw-registration-list {
    grid-template-columns: 1fr;
  }
}

.search-box input:focus,
.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus,
.login-panel input:focus,
.modal-panel input:focus,
.modal-panel select:focus,
.modal-panel textarea:focus,
.editor-page input:focus,
.editor-page select:focus,
.editor-page textarea:focus,
.drawer-panel input:focus,
.drawer-panel select:focus,
.drawer-panel textarea:focus,
.reg-page input:focus,
.reg-page select:focus,
.reg-page textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(254, 51, 159, 0.12);
}

.primary-button,
.ghost-button,
.icon-button,
.text-button {
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}

.primary-button {
  height: 38px;
  background: var(--pink-strong);
  color: white;
  padding: 0 16px;
}

.ghost-button,
.icon-button {
  height: 38px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 0 14px;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.ghost-button:hover,
.icon-button:hover {
  border-color: rgba(217, 30, 131, 0.4);
  background: var(--pink-soft);
  color: var(--pink-strong);
}

.primary-button:disabled,
.ghost-button:disabled,
.icon-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

[data-export-org-logos] {
  min-width: 124px;
}

[data-export-org-logos][aria-busy="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

[data-export-org-logos][aria-busy="true"]::before {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(95, 99, 114, 0.28);
  border-top-color: var(--pink-strong);
  border-radius: 50%;
  content: "";
  animation: export-spin 0.8s linear infinite;
}

@keyframes export-spin {
  to { transform: rotate(360deg); }
}

.primary-button {
  transition: filter 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.primary-button:hover {
  filter: saturate(1.08) brightness(1.03);
}

.primary-button:active {
  transform: scale(0.98);
}

.icon-button {
  width: 38px;
  padding: 0;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.text-button {
  height: 28px;
  background: transparent;
  color: var(--pink-strong);
  border-radius: 6px;
  padding: 0 8px;
  transition: background 0.18s ease, color 0.18s ease;
}

.text-button:hover {
  background: var(--pink-soft);
}

.text-button.danger-text:hover {
  background: #ffebee;
}

td .text-button + .text-button {
  margin-left: 2px;
}

.danger-text {
  color: var(--danger);
}

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

.metric-card,
.panel,
.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-card {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 106px;
  padding: 20px;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(23, 24, 33, 0.08), 0 8px 8px -6px rgba(23, 24, 33, 0.03);
  border-color: rgba(254, 51, 159, 0.2);
}

.metric-mark {
  width: 38px;
  height: 48px;
  border-radius: 6px;
  transform: skewX(-12deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-mark.pink {
  background: linear-gradient(135deg, var(--pink), #ff7cc6);
  box-shadow: 0 4px 10px rgba(254, 51, 159, 0.2);
}

.metric-mark.cyan {
  background: linear-gradient(135deg, var(--cyan), #75f5ff);
  box-shadow: 0 4px 10px rgba(49, 240, 250, 0.2);
}

.metric-mark.green {
  background: linear-gradient(135deg, var(--success), #87efc3);
  box-shadow: 0 4px 10px rgba(18, 196, 139, 0.2);
}

.metric-mark.purple {
  background: linear-gradient(135deg, #6c5ce7, #a99df4);
  box-shadow: 0 4px 10px rgba(108, 92, 231, 0.2);
}

.metric-mark.yellow {
  background: linear-gradient(135deg, var(--warning), #ffd166);
  box-shadow: 0 4px 10px rgba(255, 176, 32, 0.2);
}

.metric-card small {
  display: block;
  color: var(--weak);
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
}

.metric-card em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  margin-top: 2px;
}

.metric-card strong {
  display: block;
  margin: 4px 0;
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.hero-panel {
  position: relative;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff 0%, var(--pink-soft) 52%, var(--cyan-soft) 100%);
}

.hero-panel::before {
  position: absolute;
  right: 220px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 240, 250, 0.18), transparent 70%);
  pointer-events: none;
  content: "";
}

.hero-panel::after {
  position: absolute;
  right: -50px;
  top: -70px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 51, 159, 0.18), transparent 70%);
  pointer-events: none;
  content: "";
}

.hero-panel > div:first-child {
  position: relative;
  z-index: 1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  border-radius: 14px;
  background: white;
  color: var(--pink-strong);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.hero-panel h2 {
  margin: 12px 0 8px;
  font-size: 24px;
}

.hero-panel p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-stats {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  justify-items: end;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  padding: 16px 22px;
  text-align: right;
  box-shadow: 0 8px 24px rgba(217, 30, 131, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

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

.hero-stats strong {
  font-size: 32px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.hero-stats span {
  color: var(--muted);
  font-size: 13px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: stretch;
  gap: 16px;
}

.two-col > .panel {
  display: flex;
  flex-direction: column;
}

.two-col > .panel .todo-list {
  flex: 1;
  justify-content: space-between;
}

.two-col + .panel {
  margin-top: 16px;
}

.panel-head-stat {
  text-align: right;
}

.panel-head-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--pink-strong);
}

.panel-head-stat span {
  display: block;
  margin-top: 2px;
  color: var(--weak);
  font-size: 12px;
}

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

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

.panel {
  padding: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-head h2 {
  margin: 0 0 5px;
  font-size: 17px;
}

.panel-head p {
  margin: 0;
  color: var(--weak);
}

.table-wrap {
  overflow: auto;
}

.event-sort-panel {
  display: grid;
  gap: 12px;
}

.event-sort-hint {
  color: var(--weak);
  font-size: 12px;
  font-weight: 700;
}

.event-sort-table th:first-child,
.event-sort-table td:first-child {
  width: 132px;
}

.event-sort-table {
  min-width: 1900px;
  table-layout: fixed;
}

.event-sort-table th {
  white-space: nowrap;
}

.event-sort-table th:nth-child(2),
.event-sort-table td:nth-child(2) {
  width: 470px;
}

.event-sort-table th:nth-child(3),
.event-sort-table td:nth-child(3) {
  width: 210px;
}

.event-sort-table th:nth-child(4),
.event-sort-table td:nth-child(4) {
  width: 160px;
}

.event-sort-table th:nth-child(5),
.event-sort-table td:nth-child(5) {
  width: 200px;
}

.event-sort-table th:nth-child(6),
.event-sort-table td:nth-child(6) {
  width: 260px;
}

.event-sort-table th:nth-child(7),
.event-sort-table td:nth-child(7) {
  width: 110px;
}

.event-sort-table th:nth-child(8),
.event-sort-table td:nth-child(8) {
  width: 100px;
}

.event-sort-table th:nth-child(9),
.event-sort-table td:nth-child(9) {
  width: 260px;
}

.event-sort-table td:nth-child(4),
.event-sort-table td:nth-child(5),
.event-sort-table td:nth-child(6),
.event-sort-table td:nth-child(7),
.event-sort-table td:nth-child(8),
.event-sort-table td:nth-child(9) {
  white-space: nowrap;
}

.event-sort-table td:nth-child(5),
.event-sort-table td:nth-child(6) {
  white-space: normal;
}

.event-stat-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  min-width: 0;
  line-height: 1.55;
}

.event-stat-breakdown span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.event-action-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  min-width: 244px;
}

.event-action-group .text-button {
  flex: 0 0 auto;
  margin-left: 0;
  white-space: nowrap;
}

.event-sort-row {
  transition: background 0.16s ease, opacity 0.16s ease, outline-color 0.16s ease;
}

.event-sort-row.is-dragging {
  opacity: 0.42;
}

.event-sort-row.is-drop-target {
  outline: 2px solid rgba(217, 30, 131, 0.28);
  outline-offset: -2px;
  background: #fffafd;
}

.event-sort-cell {
  white-space: nowrap;
  color: var(--weak);
  font-size: 12px;
  font-weight: 900;
}

.event-sort-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 8px;
}

.event-sort-button,
.event-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.event-sort-button {
  cursor: pointer;
}

.event-drag-handle {
  cursor: grab;
  touch-action: none;
}

.event-sort-button:hover,
.event-drag-handle:hover {
  border-color: rgba(217, 30, 131, 0.36);
  background: var(--pink-soft);
  color: var(--pink-strong);
}

.event-drag-handle:active {
  cursor: grabbing;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 0;
  color: var(--weak);
  font-size: 12px;
  font-weight: 700;
}

.pager-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pager-actions select {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.pager-button {
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--muted);
  padding: 0 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.pager-button.active {
  border-color: rgba(217, 30, 131, 0.28);
  background: var(--pink-soft);
  color: var(--pink-strong);
}

.pager-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pager-ellipsis {
  color: var(--weak);
  font-weight: 900;
  padding: 0 2px;
}

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

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
  text-align: left;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  border-bottom: 2px solid var(--line);
}

td strong,
td em {
  display: block;
}

td em {
  margin-top: 5px;
  color: var(--weak);
  font-style: normal;
  font-size: 12px;
}

.empty {
  height: 120px;
  color: var(--weak);
  text-align: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tag.success {
  background: #e6f7f0;
  color: #12c48b;
}

.tag.warning {
  background: #fff5e6;
  color: #ffb020;
}

.tag.danger {
  background: #ffebee;
  color: #f04452;
}

.tag.info {
  background: #eef5ff;
  color: var(--info);
}

.tag.neutral {
  background: #f3f4f7;
  color: var(--muted);
}

.area-chart {
  width: 100%;
}

.area-chart-svg {
  display: block;
  width: 100%;
  height: auto;
}

.area-empty {
  display: grid;
  place-items: center;
  height: 160px;
  color: var(--weak);
}

.bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 12px;
  min-height: 176px;
  padding-top: 22px;
  border-bottom: 1px solid var(--line);
}

.bar-item {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  height: 150px;
}

.bar-track {
  position: relative;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, rgba(154, 162, 237, 0.06), rgba(49, 240, 250, 0.02));
}

.bar-track span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--pink), var(--cyan));
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1), filter 0.2s ease;
}

.bar-track span::after {
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  content: attr(data-value);
  transform: translateX(-50%);
}

.bar-item:hover .bar-track span {
  filter: saturate(1.12) brightness(1.04);
}

.bar-item small {
  color: var(--weak);
  text-align: center;
  font-size: 12px;
}

.todo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.todo-list a,
.channel-list div,
.rule-list div {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcff;
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
}

.todo-list a {
  padding: 14px 16px;
  font-weight: 600;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.todo-list a:hover {
  border-color: rgba(217, 30, 131, 0.4);
  background: var(--pink-soft);
  transform: translateX(3px);
}

.todo-list strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 28px;
  border-radius: 8px;
  background: var(--pink-soft);
  color: var(--pink-strong);
  padding: 0 10px;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.todo-list a:hover strong {
  background: white;
}

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

.channel-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.channel-list i {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
}

.demographics-panel {
  padding-bottom: 4px;
}

.demographic-groups {
  border-top: 1px solid var(--line);
}

.demographic-group {
  padding: 20px 0 24px;
}

.demographic-group.is-overall {
  box-shadow: inset 4px 0 0 #6c5ce7;
  padding-left: 16px;
}

.demographic-group.is-overall .demographic-group-head h3 {
  color: #5145cd;
}

.demographic-group + .demographic-group {
  border-top: 1px solid var(--line);
}

.demographic-group-head,
.demographic-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.demographic-group-head {
  margin-bottom: 18px;
}

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

.demographic-status-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: baseline;
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid #8c90a0;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
}

.demographic-status-item span {
  color: var(--muted);
  font-size: 12px;
}

.demographic-status-item strong {
  color: var(--ink);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.demographic-status-item small {
  grid-column: 1 / -1;
  color: var(--weak);
  font-size: 11px;
}

.demographic-status-item.is-mainland_valid {
  border-left-color: #087b57;
}

.demographic-status-item.is-overseas {
  border-left-color: #6c5ce7;
  background: #faf9ff;
}

.demographic-status-item.is-abnormal {
  border-left-color: #d97706;
  background: #fffaf2;
}

.demographic-status-item.is-missing {
  border-left-color: #c2415d;
  background: #fff7f8;
}

.demographic-status-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}

.demographic-status-details > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.demographic-status-details b {
  color: #5c4bc7;
}

.demographic-status-details .is-issue b {
  color: #a45809;
}

.demographic-inline-trigger,
.demographic-quality-summary button,
.demographic-quality-issues button,
.demographic-region-sources button,
.demographic-geography-summary button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.demographic-inline-trigger {
  border-radius: 5px;
  background: #f4f2ff;
  padding: 3px 6px;
}

.demographic-status-details .is-issue .demographic-inline-trigger {
  background: #fff3df;
  color: #a45809;
}

.demographic-quality-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: -6px 0 18px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f9fc;
}

.demographic-quality-summary > button,
.demographic-quality-issues {
  font-size: 12px;
  line-height: 1.5;
}

.demographic-quality-summary > button {
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  padding: 3px 5px;
}

.demographic-quality-issues {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-left: auto;
  color: #a45809;
}

.demographic-quality-issues button {
  border-radius: 5px;
  background: #fff3df;
  padding: 3px 6px;
}

.demographic-quality-issues.complete {
  color: #087b57;
}

.demographic-group-head h3,
.demographic-section-head h4 {
  margin: 0;
  color: var(--ink);
}

.demographic-group-head h3 {
  font-size: 18px;
}

.demographic-group-head p,
.demographic-section-head p {
  margin: 4px 0 0;
  color: var(--weak);
  font-size: 12px;
}

.demographic-record-note {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.demographic-total {
  min-width: 96px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: right;
}

.demographic-total strong {
  display: block;
  color: var(--pink-strong);
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.demographic-total span {
  color: var(--weak);
  font-size: 12px;
}

.demographic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.demographic-section-head {
  min-height: 42px;
  margin-bottom: 12px;
}

.demographic-section-head h4 {
  font-size: 14px;
}

.demographic-section-head > span {
  flex: 0 0 auto;
  border-radius: 5px;
  background: #f3f5f9;
  color: var(--muted);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
}

.demographic-region-grid {
  gap: 10px 14px;
}

.demographic-region-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -4px 0 12px;
}

.demographic-region-sources button {
  padding: 4px 7px;
  border-radius: 5px;
  background: #f3f5f9;
  color: var(--muted);
  font-size: 11px;
}

.demographic-geography-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 10px;
}

.demographic-geography-summary button {
  padding: 6px 9px;
  border-radius: 7px;
  background: #f1f7f5;
  color: #087b57;
  font-size: 12px;
}

.demographic-geography-summary button.is-overseas {
  background: #f3f0ff;
  color: #5c4bc7;
}

.demographic-geography-summary button.is-issue {
  background: #fff3df;
  color: #a45809;
}

.demographic-region-grid > button {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcff;
  padding: 11px 12px;
  color: inherit;
  font: inherit;
  text-align: left;
}

.demographic-region-grid > button.is-overseas {
  border-color: #ddd7ff;
  background: #faf9ff;
}

.demographic-region-grid > button.is-issue {
  border-color: #f2d29b;
  background: #fffaf2;
}

.demographic-region-grid i,
.demographic-bar i {
  background: linear-gradient(90deg, var(--pink), var(--cyan));
}

.demographic-region-grid .is-overseas i,
.demographic-bar.is-overseas i {
  background: linear-gradient(90deg, #6c5ce7, #7ca7ff);
}

.demographic-region-grid .is-issue i,
.demographic-bar.is-issue i {
  background: linear-gradient(90deg, #d97706, #f2b84b);
}

.demographic-bars {
  display: grid;
  gap: 9px;
}

.demographic-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 10px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 5px 2px;
  text-align: left;
}

.demographic-bar span {
  color: var(--muted);
  font-size: 12px;
}

.demographic-bar strong {
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.demographic-bar i {
  grid-column: 1 / -1;
  display: block;
  height: 5px;
  border-radius: 3px;
}

.demographic-age-head {
  margin-top: 22px;
}

.demographic-detail-trigger,
.demographic-inline-trigger,
.demographic-quality-summary button,
.demographic-quality-issues button,
.demographic-region-sources button,
.demographic-geography-summary button {
  appearance: none;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.demographic-detail-trigger:not(:disabled),
.demographic-inline-trigger:not(:disabled),
.demographic-quality-summary button:not(:disabled),
.demographic-quality-issues button:not(:disabled),
.demographic-region-sources button:not(:disabled),
.demographic-geography-summary button:not(:disabled) {
  cursor: pointer;
}

.demographic-detail-trigger:not(:disabled):hover,
.demographic-inline-trigger:not(:disabled):hover,
.demographic-quality-summary button:not(:disabled):hover,
.demographic-quality-issues button:not(:disabled):hover,
.demographic-region-sources button:not(:disabled):hover,
.demographic-geography-summary button:not(:disabled):hover {
  box-shadow: 0 0 0 2px rgba(217, 30, 131, 0.14);
  transform: translateY(-1px);
}

.demographic-detail-trigger:focus-visible,
.demographic-inline-trigger:focus-visible,
.demographic-quality-summary button:focus-visible,
.demographic-quality-issues button:focus-visible,
.demographic-region-sources button:focus-visible,
.demographic-geography-summary button:focus-visible {
  outline: 2px solid rgba(217, 30, 131, 0.45);
  outline-offset: 2px;
}

.demographic-detail-trigger:disabled,
.demographic-inline-trigger:disabled,
.demographic-quality-summary button:disabled,
.demographic-quality-issues button:disabled,
.demographic-region-sources button:disabled,
.demographic-geography-summary button:disabled {
  cursor: default;
  opacity: 0.72;
}

.demographic-people-modal {
  width: min(1160px, calc(100vw - 56px));
  overflow: hidden;
}

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

.demographic-modal-actions {
  flex: 0 0 auto;
}

.demographic-people-body {
  min-height: 360px;
  max-height: calc(100vh - 160px);
  overflow: auto;
}

.demographic-people-loading,
.demographic-people-error,
.demographic-people-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 300px;
  color: var(--muted);
  text-align: center;
}

.demographic-people-loading strong,
.demographic-people-error strong {
  margin-top: 14px;
  color: var(--ink);
  font-size: 16px;
}

.demographic-people-loading p,
.demographic-people-error p {
  margin: 6px 0 0;
  color: var(--weak);
  font-size: 12px;
}

.demographic-people-error .ghost-button {
  margin-top: 16px;
}

.demographic-people-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #f1d6e5;
  border-top-color: var(--pink-strong);
  border-radius: 50%;
  animation: demographic-people-spin 0.8s linear infinite;
}

@keyframes demographic-people-spin {
  to { transform: rotate(360deg); }
}

.demographic-people-result-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #f8f9fc;
  padding: 10px 12px;
  color: var(--weak);
  font-size: 12px;
}

.demographic-people-result-note strong {
  color: var(--ink);
  font-size: 15px;
}

.demographic-people-table {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.demographic-people-table table {
  min-width: 900px;
}

.demographic-people-table td {
  vertical-align: top;
}

.demographic-people-table td > span,
.demographic-people-table td > small,
.demographic-person-name,
.demographic-person-sources {
  display: block;
}

.demographic-people-table td > small,
.demographic-person-sources {
  margin-top: 4px;
  color: var(--weak);
  font-size: 11px;
}

.demographic-person-name {
  color: var(--ink);
}

.demographic-person-status {
  display: inline-flex !important;
  border-radius: 5px;
  background: #f1f7f5;
  color: #087b57;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 700;
}

.demographic-person-status.is-overseas {
  background: #f3f0ff;
  color: #5c4bc7;
}

.demographic-person-status.is-abnormal,
.demographic-person-status.is-missing {
  background: #fff3df;
  color: #a45809;
}

.demographic-person-issue {
  color: #a45809 !important;
}

.demographic-people-pagination {
  padding-bottom: 2px;
}

@media (max-width: 1180px) {
  .demographic-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .demographic-profiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }

  .demographic-age-head {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .demographic-panel-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .demographic-modal-actions .ghost-button {
    padding-inline: 12px;
  }

  .demographic-status-grid {
    grid-template-columns: 1fr;
  }

  .demographic-region-grid,
  .demographic-profiles {
    grid-template-columns: 1fr;
  }

  .demographic-quality-issues {
    width: 100%;
    margin-left: 0;
  }

  .demographic-age-head {
    margin-top: 18px;
  }
}

.rule-list {
  display: grid;
  gap: 10px;
}

.rule-list span {
  color: var(--muted);
}

.form-panel {
  display: grid;
  gap: 14px;
}

.form-panel label,
.login-panel label,
.modal-panel label,
.editor-page label,
.drawer-panel [data-org-edit-form] label,
.drawer-panel [data-staff-edit-form] label,
.field-block {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.login-page {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 480px;
  align-items: center;
  gap: 7vw;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6, 8, 20, 0.9) 0%, rgba(8, 11, 26, 0.68) 45%, rgba(8, 11, 26, 0.36) 100%),
    url("./assets/login-stage-hiphop.jpg?v=20260625") center / cover no-repeat;
  background-size: auto, 106% auto;
  padding: 72px 8vw;
  animation: loginBackdropDrift 16s ease-in-out infinite alternate;
}

.login-icp {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

.login-icp:hover {
  color: #ffffff;
}

.login-page::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(217, 30, 131, 0.42), transparent 30%),
    radial-gradient(circle at 84% 70%, rgba(49, 240, 250, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(7, 9, 24, 0.2), rgba(7, 9, 24, 0.78));
  content: "";
  animation: loginLightWash 7.5s ease-in-out infinite alternate;
}

.login-page::after {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(3, 5, 12, 0.82), transparent);
  content: "";
  animation: loginFloorGlow 5.8s ease-in-out infinite alternate;
}

.login-brand {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  max-width: 720px;
  min-height: 560px;
  border-left: 0;
  padding: 0;
  animation: loginMarkFloat 5.6s ease-in-out infinite;
}

.login-brand img {
  position: relative;
  z-index: 2;
  display: block;
  width: min(42vw, 660px);
  min-width: 420px;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  filter:
    drop-shadow(0 28px 64px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 34px rgba(217, 30, 131, 0.28))
    drop-shadow(0 0 30px rgba(49, 240, 250, 0.18));
  transform-origin: center;
  animation:
    loginMarkReveal 820ms cubic-bezier(0.2, 0.9, 0.2, 1) both,
    loginMarkGlow 3.8s ease-in-out 900ms infinite alternate;
}

.login-brand h1,
.login-brand p,
.login-brand::before,
.login-brand::after {
  display: none;
}

.login-panel {
  position: relative;
  z-index: 1;
}

/* Legacy login-brand text layout disabled.
.login-brand {
  display: grid;
  align-content: center;
  max-width: 640px;
  min-height: 520px;
  padding: 48px 0 54px 42px;
  border-left: 4px solid rgba(217, 30, 131, 0.78);
}

.login-brand img {
  display: none;
}

.login-brand h1 {
  max-width: 520px;
  margin: 28px 0 14px;
  color: #ffffff;
  font-size: 0;
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 18px 58px rgba(0, 0, 0, 0.5);
}

.login-brand h1::before {
  display: block;
  font-size: clamp(52px, 5vw, 76px);
  font-weight: 900;
  content: "赛事运营中枢";
}

.login-brand h1::after {
  display: block;
  width: 168px;
  height: 6px;
  border-radius: 999px;
  margin-top: 26px;
  background: linear-gradient(90deg, var(--pink-strong), #7d5fff, var(--cyan));
  content: "";
}

.login-brand p {
  max-width: 500px;
  margin: 0;
  font-size: 0;
}

.login-brand p::before {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  line-height: 1.7;
  content: "从赛事创建、机构报名、票务订单到现场核销，一屏进入完整运营后台。";
}

.login-brand p::after {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  padding: 0 18px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  content: "赛事管理  /  机构报名  /  票务订单  /  现场核销";
}

.login-brand::before {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 11, 26, 0.42);
  color: rgba(255, 255, 255, 0.82);
  padding: 0 16px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  content: "DANCE EVENT OPERATING SYSTEM";
}

.login-brand::after {
  display: block;
  width: min(100%, 500px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  margin-top: 34px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(8, 11, 26, 0.28);
  color: rgba(255, 255, 255, 0.88);
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  content: "今日重点：报名审核、票务订单、现场入场核销状态实时同步";
}

*/

.login-brand::after {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: block;
  width: min(35vw, 520px);
  min-width: 320px;
  aspect-ratio: 1;
  pointer-events: none;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(217, 30, 131, 0.2), transparent 58%),
    radial-gradient(circle at 68% 62%, rgba(49, 240, 250, 0.16), transparent 54%);
  content: "";
  filter: blur(16px);
  opacity: 0.72;
  transform: translate(-50%, -50%);
  animation: loginLogoAura 4.8s ease-in-out infinite alternate;
}

.login-panel {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  padding: 36px;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  animation: loginPanelIn 760ms cubic-bezier(0.2, 0.9, 0.2, 1) 120ms both;
}

.login-panel::before {
  width: 58px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink-strong), #6c5ce7, var(--cyan));
  content: "";
}

.login-panel .eyebrow {
  color: var(--pink-strong);
  letter-spacing: 0.16em;
}

.login-panel h2 {
  margin: 2px 0 8px;
  color: #090b16;
  font-size: 34px;
  line-height: 1.1;
}

.login-panel label {
  gap: 10px;
  color: #424656;
}

.login-panel input {
  height: 50px;
  border-radius: 12px;
  background: #f8f9fc;
  font-size: 15px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-panel input:focus {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(217, 30, 131, 0.1);
}

.login-panel .password-field {
  position: relative;
  width: 100%;
}

.login-panel .password-field input {
  width: 100%;
  padding-right: 60px;
}

.login-panel .password-toggle {
  position: absolute;
  top: 0;
  right: 8px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: none;
  background: none;
  color: var(--muted, #9aa0ad);
  cursor: pointer;
  transition: color 0.16s ease;
}

.login-panel .password-toggle:hover {
  color: var(--pink-strong, #d91e83);
}

.login-panel .password-toggle svg {
  display: block;
}

.login-panel .primary-button {
  height: 52px;
  margin-top: 4px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--pink-strong), #7d5fff);
  font-size: 15px;
  box-shadow: 0 18px 34px rgba(217, 30, 131, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.login-panel .primary-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 22px 44px rgba(217, 30, 131, 0.34);
}

.login-panel .primary-button:active {
  transform: translateY(0) scale(0.98);
}

.login-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #f0f1f6;
}

.login-tab {
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  padding: 8px 18px;
  font-weight: 800;
  transition: background 0.18s ease, color 0.18s ease;
}

.login-tab.active {
  background: white;
  color: var(--pink-strong);
  box-shadow: var(--shadow);
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
}

.form-message.is-hint {
  color: var(--weak);
}

.error-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  padding: 36px;
}

.error-state p {
  color: var(--muted);
}

.skeleton {
  height: 420px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #f2f4f8, #ffffff, #f2f4f8);
  background-size: 220% 100%;
  animation: loading 1.2s infinite linear;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  border-radius: 6px;
  background: #171821;
  color: white;
  box-shadow: var(--shadow);
  padding: 12px 16px;
  font-weight: 800;
}

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

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 28px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-lg);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(760px, 100vw);
  height: 100vh;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow-lg);
}

.modal-panel.wide {
  width: min(1080px, calc(100vw - 56px));
}

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

.image-preview-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 32px;
}

.image-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
}

.image-preview-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(860px, calc(100vw - 64px));
  max-height: calc(100vh - 64px);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.image-preview-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.image-preview-stage {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 18px;
  background: #f6f7fb;
}

.image-preview-stage img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

/* —— 详情/编辑：右侧抽屉改为「内容区整页」呈现（替代右侧弹窗），保留左侧导航 —— */
.modal-root.is-page {
  left: 240px;
  place-items: stretch;
  padding: 0;
}
.modal-root.is-page .modal-backdrop {
  display: none;
}
.modal-root.is-page .drawer-panel {
  position: relative;
  width: 100%;
  height: 100vh;
  border-left: none;
  border-radius: 0;
  box-shadow: none;
}
.modal-root.is-page .modal-head {
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
}
.modal-root.is-page .modal-head .icon-button[data-close-modal] {
  order: -1;
  width: auto;
  height: auto;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0;
}
.modal-root.is-page .modal-head .icon-button[data-close-modal]::before {
  content: "← 返回";
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 720px) {
  .modal-root.is-page { left: 0; }
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: white;
  padding: 18px;
}

.modal-head h2,
.modal-head p {
  margin: 0;
}

.modal-head h2 {
  font-size: 20px;
}

.modal-head p {
  margin-top: 5px;
  color: var(--weak);
}

.modal-body,
.ticket-editor {
  padding: 18px;
}

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

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

.assignment-form-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  align-items: end;
}

.assignment-form-grid label,
.assignment-form-grid select {
  width: 100%;
}

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

.modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.ticket-editor {
  border-top: 1px solid var(--line);
  background: #fbfcff;
}

.ticket-editor h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.ticket-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.ticket-editor-head h3,
.ticket-editor-head p {
  margin: 0;
}

.ticket-editor-head p {
  margin-top: 6px;
  color: var(--weak);
  font-size: 13px;
  line-height: 1.5;
}

.ticket-list {
  display: grid;
  gap: 10px;
}

.cover-picker {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.cover-preview {
  display: grid;
  place-items: center;
  min-height: 116px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--weak);
  font-weight: 800;
}

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

.share-image-preview {
  aspect-ratio: 5 / 4;
  min-height: 144px;
}

.cover-fields {
  display: grid;
  align-content: center;
  gap: 10px;
}

.org-logo-editor {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.org-logo-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  min-height: 112px;
  overflow: hidden;
  border: 1px dashed rgba(217, 30, 131, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(217, 30, 131, 0.06), rgba(108, 92, 231, 0.05)),
    #fbfcff;
  color: var(--pink-strong);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.org-logo-preview:hover {
  border-color: rgba(217, 30, 131, 0.62);
  box-shadow: 0 10px 24px rgba(217, 30, 131, 0.10);
  transform: translateY(-1px);
}

.org-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.org-logo-initial {
  font-size: 22px;
  color: var(--pink-strong);
  font-weight: 900;
}

.org-logo-overlay {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(23, 24, 33, 0.70);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.org-logo-preview:hover .org-logo-overlay,
.org-logo-preview:focus-within .org-logo-overlay {
  opacity: 1;
}

.org-logo-fields {
  display: grid;
  gap: 6px;
  align-content: center;
}

.org-logo-tip {
  max-width: 360px;
  color: var(--weak);
  font-size: 12px;
  line-height: 1.7;
}

.inline-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--weak);
  font-size: 12px;
}

.inline-actions > span {
  min-width: 0;
}

.upload-button {
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 88px;
  border: 1px solid rgba(217, 30, 131, 0.26);
  border-radius: 6px;
  background: var(--pink-soft);
  color: var(--pink-strong) !important;
  padding: 0 12px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.rte {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.rte-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  padding: 8px;
}

.rte-btn {
  height: 30px;
  min-width: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.rte-btn:hover {
  border-color: rgba(217, 30, 131, 0.4);
  color: var(--pink-strong);
  background: var(--pink-soft);
}

.rte-editor {
  min-height: 160px;
  max-height: 360px;
  overflow: auto;
  padding: 14px 16px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.7;
  outline: none;
}

.rte-editor:focus {
  box-shadow: inset 0 0 0 2px rgba(254, 51, 159, 0.12);
}

.rte-editor h2 {
  margin: 12px 0 6px;
  font-size: 18px;
}

.rte-editor h3 {
  margin: 10px 0 6px;
  font-size: 15px;
}

.rte-editor p {
  margin: 0 0 8px;
}

.rte-editor ul,
.rte-editor ol {
  margin: 0 0 8px;
  padding-left: 22px;
}

.rte-editor img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 6px 0;
}

.rte-editor video {
  display: block;
  width: 100%;
  max-height: 360px;
  border-radius: 8px;
  margin: 8px 0;
  background: #11121a;
}

.rte-editor a {
  color: var(--pink-strong);
  text-decoration: underline;
}

.rte-editor blockquote {
  margin: 8px 0;
  border-left: 3px solid var(--pink);
  background: var(--pink-soft);
  padding: 8px 14px;
  color: var(--muted);
  border-radius: 0 8px 8px 0;
}

.editor-page {
  display: grid;
  gap: 16px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.phone-wrap {
  position: relative;
  z-index: 1;
}

.phone-close {
  position: absolute;
  top: -6px;
  right: -52px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 20px;
  box-shadow: var(--shadow);
}

.phone-frame {
  display: flex;
  flex-direction: column;
  width: 348px;
  height: min(720px, 86vh);
  overflow: hidden;
  border: 10px solid #14151d;
  border-radius: 40px;
  background: #14151d;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  background: #fff;
  padding: 0 20px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.phone-signal {
  width: 42px;
  height: 8px;
  border-radius: 4px;
  background: var(--ink);
  opacity: 0.65;
}

.phone-screen {
  flex: 1;
  overflow-y: auto;
  background: var(--bg);
  padding: 16px 16px 24px;
  scrollbar-width: none;
}

.phone-screen::-webkit-scrollbar {
  width: 0;
  display: none;
}

.phone-survey-head {
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pink-strong), #7d5fff);
  padding: 18px 16px;
  color: #fff;
}

.phone-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.22);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
}

.phone-survey-head h3 {
  margin: 10px 0 6px;
  font-size: 18px;
}

.phone-survey-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  line-height: 1.6;
}

.phone-survey-body {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.pq {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 14px;
}

.pq-title {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.pq-req {
  color: var(--danger);
  font-style: normal;
}

.pq-stars {
  color: #ffc53d;
  font-size: 26px;
  letter-spacing: 6px;
}

.pq-options {
  display: grid;
  gap: 10px;
}

.pq-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
  padding: 11px 12px;
  font-size: 13px;
  color: var(--muted);
}

.pq-radio,
.pq-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 2px solid var(--weak);
}

.pq-radio {
  border-radius: 50%;
}

.pq-check {
  border-radius: 4px;
}

.pq-textarea {
  min-height: 64px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #fbfcff;
  padding: 12px;
  color: var(--weak);
  font-size: 13px;
}

.pq-empty {
  color: var(--weak);
  font-size: 12px;
}

.phone-submit {
  width: 100%;
  height: 44px;
  margin-top: 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink-strong), #7d5fff);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.phone-hint {
  margin: 10px 0 0;
  color: var(--weak);
  font-size: 11px;
  text-align: center;
}

/* 赛事手机预览 —— 1:1 还原小程序 event-detail 页 */
.pe-screen {
  padding: 0 0 20px;
  background: #f6f7fb;
}

.pe-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fff0f8 0%, #f2f3ff 54%, #eafdff 100%);
  border-bottom: 1px solid rgba(230, 232, 239, 0.72);
  color: #171821;
  font-size: 15px;
  font-weight: 800;
}

.pe-back {
  width: 9px;
  height: 9px;
  border-left: 2px solid #171821;
  border-bottom: 2px solid #171821;
  transform: rotate(45deg);
}

.pe-cover {
  position: relative;
  height: 168px;
  margin: 14px 16px 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #d91e83, #7d5fff);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(17, 18, 26, 0.16);
}

.pe-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(23, 24, 33, 0.1) 0%, rgba(23, 24, 33, 0.6) 100%);
}

.pe-cover-title {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  padding: 0 18px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.pe-status {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}

.pe-status.sale {
  background: rgba(217, 30, 131, 0.82);
}

.pe-status.pending {
  background: rgba(255, 247, 230, 0.92);
  color: #b76b00;
  border-color: rgba(255, 214, 138, 0.72);
}

.pe-date-chip {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 56px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #171821;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.pe-title-card {
  position: relative;
  z-index: 3;
  margin: -22px 16px 0;
  border: 1px solid rgba(230, 232, 239, 0.6);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 18, 26, 0.06);
  padding: 16px;
}

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

.pe-title {
  color: #171821;
  font-size: 19px;
  line-height: 1.28;
  font-weight: 900;
}

.pe-subtitle {
  margin-top: 6px;
  color: #8c90a0;
  font-size: 12px;
}

.pe-share {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 28px;
  border-radius: 7px;
  background: rgba(254, 51, 159, 0.08);
  color: #fe339f;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

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

.pe-info-grid > div {
  border-radius: 8px;
  background: #f6f7fb;
  padding: 10px;
}

.pe-info-grid span {
  display: block;
}

.pe-info-grid span:first-child {
  color: #8c90a0;
  font-size: 11px;
}

.pe-info-grid span:last-child {
  margin-top: 4px;
  color: #171821;
  font-size: 12.5px;
  font-weight: 800;
}

.pe-section {
  margin: 18px 16px 0;
}

.pe-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.pe-sec-title {
  color: #171821;
  font-size: 17px;
  font-weight: 900;
}

.pe-sec-desc {
  margin-top: 5px;
  color: #8c90a0;
  font-size: 12px;
}

.pe-sec-link {
  flex: 0 0 auto;
  color: #d91e83;
  font-size: 12px;
  font-weight: 800;
}

.pe-detail-card {
  border: 1px solid #e6e8ef;
  border-radius: 12px;
  background: #fff;
  color: #5f6372;
  font-size: 13.5px;
  line-height: 1.7;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(17, 18, 26, 0.04);
  word-break: break-word;
}

.pe-detail-card p {
  margin: 0 0 8px;
}

.pe-detail-card p:last-child {
  margin-bottom: 0;
}

.pe-detail-card img {
  max-width: 100%;
  border-radius: 8px;
}

.pe-ticket {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(230, 232, 239, 0.6);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(17, 18, 26, 0.03);
  padding: 16px;
}

.pe-ticket + .pe-ticket {
  margin-top: 10px;
}

.pe-ticket.active {
  border-color: #d91e83;
  background: linear-gradient(135deg, #fff 0%, #fff0f8 100%);
  box-shadow: 0 8px 20px rgba(217, 30, 131, 0.08);
}

.pe-ticket.disabled {
  background: #f8f9fc;
  border-color: rgba(230, 232, 239, 0.72);
  box-shadow: none;
}

.pe-ticket-main {
  flex: 1 1 auto;
  min-width: 0;
}

.pe-ticket-name {
  color: #171821;
  font-size: 15px;
  font-weight: 900;
}

.pe-ticket-desc {
  margin-top: 5px;
  color: #5f6372;
  font-size: 12px;
}

.pe-ticket-time {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.pe-ticket-time span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 5px;
  background: #f6f7fb;
  color: #5f6372;
  padding: 0 6px;
  font-size: 10.5px;
  font-weight: 900;
}

.pe-ticket.active .pe-ticket-time span {
  background: #fff0f8;
  color: #d91e83;
}

.pe-ticket-stock {
  margin-top: 6px;
  color: #8c90a0;
  font-size: 11px;
}

.pe-ticket-price {
  flex: 0 0 auto;
  text-align: right;
}

.pe-ticket-price > span {
  display: block;
  color: #d91e83;
  font-size: 20px;
  font-weight: 900;
}

.pe-ticket.disabled .pe-ticket-price > span {
  color: #8c90a0;
}

.pe-ticket-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 22px;
  margin-top: 7px;
  border-radius: 5px;
  background: #f6f7fb;
  color: #8c90a0;
  font-size: 11px;
  font-weight: 900;
}

.pe-ticket.active .pe-ticket-state {
  background: #fff0f8;
  color: #d91e83;
}

.pe-empty {
  color: #8c90a0;
  font-size: 12px;
  margin: 0;
}

.pe-schedule {
  border: 1px solid #e6e8ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 18, 26, 0.06);
  padding: 4px 14px;
}

.pe-sch-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
}

.pe-sch-item + .pe-sch-item {
  border-top: 1px solid #e6e8ef;
}

.pe-sch-item > span {
  color: #d91e83;
  font-size: 13px;
  font-weight: 900;
}

.pe-sch-item div > div {
  color: #171821;
  font-size: 14px;
  font-weight: 800;
}

.pe-sch-item div > span {
  display: block;
  margin-top: 4px;
  color: #8c90a0;
  font-size: 12px;
}

.pe-notice-list {
  display: grid;
  gap: 8px;
}

.pe-notice-list > div {
  position: relative;
  border: 1px solid #e6e8ef;
  border-radius: 12px;
  background: #fff;
  color: #5f6372;
  font-size: 13px;
  line-height: 1.55;
  padding: 12px 12px 12px 28px;
}

.pe-notice-list > div::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #31f0fa;
}

.pe-organizer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e6e8ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 18, 26, 0.06);
  padding: 14px;
}

.pe-organizer button {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: #fff0f8;
  color: #d91e83;
  font-size: 13px;
  font-weight: 800;
}

.pe-bottom-bar {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  margin: 18px 16px 0;
  padding: 12px;
  border: 1px solid rgba(230, 232, 239, 0.6);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.pe-heart {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 1px solid rgba(230, 232, 239, 0.8);
  border-radius: 12px;
  background: rgba(246, 247, 251, 0.6);
}

.pe-heart span {
  width: 20px;
  height: 20px;
  background-color: #5f6372;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.pe-primary {
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #d91e83;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(217, 30, 131, 0.3);
}

.pe-primary.disabled {
  background: #edf0f6;
  color: #8c90a0;
  box-shadow: none;
}

.page-head:has(+ .editor-page) {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.editor-page input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
  border-radius: 4px;
}

.question-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.question-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 14px;
}

.question-row.dragging {
  opacity: 0.5;
  border-color: var(--pink);
  box-shadow: var(--shadow);
}

.drag-handle {
  align-self: center;
  flex-shrink: 0;
  color: var(--weak);
  font-size: 16px;
  letter-spacing: -3px;
  cursor: grab;
  padding-bottom: 9px;
  user-select: none;
}

.drag-handle:active {
  cursor: grabbing;
}

.question-row-head {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.question-row-head > label:first-child {
  width: 140px;
  flex-shrink: 0;
}

.question-title {
  flex: 1;
}

.question-required {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding-bottom: 9px;
}

.question-row-head .text-button {
  padding-bottom: 9px;
}

.q-options {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.q-options[hidden] {
  display: none;
}

.stat-rating {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.stat-rating strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--pink-strong);
}

.stat-rating span {
  color: var(--weak);
  font-size: 12px;
}

.stat-samples {
  display: grid;
  gap: 8px;
}

.stat-samples p {
  margin: 0;
  border-left: 3px solid var(--line);
  border-radius: 0 8px 8px 0;
  background: #fbfcff;
  padding: 8px 12px;
  color: var(--muted);
  line-height: 1.6;
}

.project-editor {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
  padding: 18px;
}

.project-editor-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

.project-editor-head p {
  margin: 6px 0 0;
  color: var(--weak);
  font-size: 13px;
}

.project-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.project-row {
  display: grid;
  grid-template-columns: 140px 120px minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 12px;
}

.ticket-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 12px;
}

.ticket-row-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

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

.chip {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  color: var(--muted);
  padding: 0 14px;
  font-weight: 600;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.chip:hover {
  border-color: rgba(217, 30, 131, 0.4);
  color: var(--pink-strong);
}

.chip.active {
  border-color: var(--pink-strong);
  background: var(--pink-soft);
  color: var(--pink-strong);
}

.chip-divider {
  align-self: center;
  width: 1px;
  height: 20px;
  margin: 0 6px;
  background: var(--line);
}

.filter-count {
  align-self: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.filter-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.filter-fields label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--weak);
  font-size: 12px;
  font-weight: 700;
}

.filter-fields select,
.filter-fields input {
  height: 36px;
  min-width: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 32px 0 12px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235f6372' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.filter-fields input {
  background-image: none;
  padding: 0 12px;
}

.audience-field > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 700;
}

.ticket-row.new-ticket {
  border-color: rgba(217, 30, 131, 0.22);
  background: #fffafd;
}

.event-table-cell {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 360px;
}

.event-thumb {
  display: grid;
  place-items: center;
  width: 72px;
  height: 48px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--pink-soft);
  color: var(--pink-strong);
  font-weight: 900;
}

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

.event-thumb.empty {
  border: 1px dashed rgba(217, 30, 131, 0.28);
}

.drawer-body {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.drawer-body h3 {
  margin: 0;
  font-size: 16px;
}

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

.detail-list div,
.mini-list div {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcff;
  padding: 12px;
}

.detail-list dt {
  color: var(--weak);
  font-size: 12px;
  font-weight: 800;
}

.detail-list dd {
  margin: 6px 0 0;
  color: var(--ink);
  line-height: 1.6;
}

.compact-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
}

.compact-detail-list div {
  min-width: 0;
  border-bottom: 1px solid #eef0f5;
  padding-bottom: 10px;
}

.compact-detail-list dt {
  color: var(--weak);
  font-size: 12px;
  font-weight: 800;
}

.compact-detail-list dd {
  margin: 5px 0 0;
  min-width: 0;
  color: var(--ink);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.mini-list {
  display: grid;
  gap: 8px;
}

.mini-list strong,
.mini-list span {
  display: block;
}

.mini-list span {
  margin-top: 4px;
  color: var(--weak);
  font-size: 12px;
}

.checkin-detail-body {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.checkin-summary-card,
.checkin-info-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 10px 24px rgba(23, 24, 33, 0.04);
}

.checkin-summary-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
}

.checkin-summary-card h3,
.checkin-summary-card p {
  margin: 0;
}

.checkin-summary-card h3 {
  margin-top: 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.35;
}

.checkin-summary-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.checkin-summary-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
  min-width: 300px;
}

.checkin-summary-metrics div {
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid #eef0f5;
  border-radius: 8px;
  background: #fbfcff;
  padding: 14px;
}

.checkin-summary-metrics span,
.checkin-info-item span,
.checkin-person-row span {
  color: var(--weak);
  font-size: 12px;
  font-weight: 800;
}

.checkin-summary-metrics strong {
  color: var(--ink);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.checkin-layout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkin-info-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

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

.checkin-info-item {
  min-width: 0;
  border: 1px solid #eef0f5;
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.checkin-info-item.wide {
  grid-column: 1 / -1;
}

.checkin-info-item strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.checkin-person-list {
  display: grid;
  gap: 8px;
}

.checkin-person-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.8fr);
  gap: 14px;
  align-items: center;
  border: 1px solid #eef0f5;
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.checkin-person-row strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.checkin-person-row span {
  display: block;
  margin-top: 5px;
  line-height: 1.4;
}

.checkin-person-row > div:last-child {
  text-align: right;
}

@media (max-width: 960px) {
  .checkin-summary-card,
  .checkin-layout-grid,
  .checkin-person-row {
    grid-template-columns: 1fr;
  }

  .checkin-summary-card {
    display: grid;
  }

  .checkin-summary-metrics {
    min-width: 0;
  }

  .checkin-person-row > div:last-child {
    text-align: left;
  }
}

.order-participant-list {
  display: grid;
  gap: 10px;
}

.order-participant-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.participant-review-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.order-participant-main strong,
.order-participant-main span {
  display: block;
}

.order-participant-main span {
  margin-top: 4px;
  color: var(--weak);
  font-size: 12px;
}

.side-cert-thumb {
  display: grid;
  place-items: center;
  width: 168px;
  min-width: 168px;
  aspect-ratio: 77 / 49;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.side-cert-thumb.ready {
  border-color: rgba(18, 196, 139, 0.24);
  background: #f2fffb;
}

.side-cert-thumb.empty {
  background: #f6f7fb;
  color: var(--weak);
  font-size: 12px;
  font-weight: 800;
}

.side-cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f8fafc;
}

.side-cert-thumb span {
  padding: 0 10px;
  text-align: center;
}

.order-cert-thumb {
  width: 100%;
  min-width: 0;
}

@media (max-width: 720px) {
  .order-participant-card {
    grid-template-columns: minmax(0, 1fr) 140px;
  }

  .side-cert-thumb {
    width: 140px;
    min-width: 140px;
  }
}

.review-block {
  display: grid;
  gap: 12px;
}

.review-block + .review-block {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.review-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-block-head h3 {
  margin: 0;
}

.review-block-head span {
  color: var(--weak);
  font-size: 12px;
  font-weight: 800;
}

.registration-edit-modal {
  width: min(1240px, calc(100vw - 56px));
}

.registration-edit-body {
  gap: 16px;
}

.registration-edit-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.registration-edit-summary > div {
  display: grid;
  align-content: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfcff 0%, #f7f8fc 100%);
  padding: 10px 12px;
  min-height: 68px;
}

.registration-edit-summary span {
  display: block;
  color: var(--weak);
  font-size: 12px;
  font-weight: 800;
}

.registration-edit-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.registration-edit-summary strong .tag {
  font-style: normal;
}

.registration-edit-info-block {
  border: 1px solid #eef0f5;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.registration-edit-section-head {
  border-bottom: 1px solid #eef0f5;
  padding-bottom: 10px;
}

.registration-edit-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

.registration-edit-person {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8fb;
  padding: 12px;
  min-height: 330px;
  box-shadow: 0 8px 18px rgba(23, 24, 33, 0.04);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.registration-edit-person:hover {
  border-color: rgba(217, 30, 131, 0.32);
  box-shadow: 0 10px 24px rgba(23, 24, 33, 0.08);
}

.registration-edit-person-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  border-bottom: 1px solid #eef0f5;
  padding-bottom: 9px;
}

.registration-edit-person-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.registration-edit-person-title > div:last-child {
  min-width: 0;
}

.registration-edit-photo-preview {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid #f2cfe3;
  border-radius: 50%;
  background: #fff2f9;
}

.registration-edit-photo-preview.has-photo {
  border-color: #cfd8ea;
  background: #f2f5fb;
}

.registration-edit-photo-preview span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  color: var(--pink-strong);
  font-size: 16px;
  font-weight: 900;
}

.registration-edit-photo-preview.has-photo span {
  color: #4f5f7c;
}

.registration-edit-person-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.small-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  margin: 0;
  cursor: pointer;
}

.registration-edit-person-head strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.registration-edit-person-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.registration-edit-card-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  min-width: 0;
}

.registration-edit-card-fields label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.registration-edit-card-fields input,
.registration-edit-card-fields select,
.registration-edit-card-fields textarea {
  width: 100%;
  min-width: 0;
  background: #fff;
}

.registration-edit-more {
  min-width: 0;
  border-top: 1px solid #eef0f5;
  padding-top: 6px;
}

.registration-edit-more summary {
  cursor: pointer;
  border-radius: 7px;
  background: #fff;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  list-style-position: inside;
}

.registration-edit-more[open] summary {
  color: var(--pink-strong);
}

.registration-edit-more .registration-edit-card-fields {
  margin-top: 9px;
}

@media (max-width: 1180px) {
  .registration-edit-people {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1040px) {
  .registration-edit-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.fee-summary-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.fee-summary-grid small,
.fee-summary-grid strong {
  display: block;
}

.fee-summary-grid small {
  color: var(--weak);
  font-weight: 800;
}

.fee-summary-grid strong {
  margin-top: 5px;
  color: var(--pink-strong);
  font-size: 20px;
}

.fee-line-list {
  display: grid;
  gap: 8px;
}

.fee-line-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eef0f5;
  padding: 10px 0;
}

.fee-line-list span,
.fee-line-list em,
.fee-line-list strong {
  display: block;
}

.fee-line-list em {
  margin-top: 4px;
  color: var(--weak);
  font-size: 12px;
  font-style: normal;
}

.attachment-list,
.attachment-files,
.review-person-list {
  display: grid;
  gap: 10px;
}

.attachment-group {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.attachment-group > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.attachment-group span,
.attachment-group em {
  color: var(--weak);
  font-size: 12px;
  font-style: normal;
}

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

.attachment-files a,
.attachment-files button,
.doc-preview-row a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 10px;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  width: 100%;
}

.attachment-files a.image-file,
.attachment-files button.image-file {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  text-align: left;
}

.attachment-files a.image-file img,
.attachment-files button.image-file img {
  width: 72px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
}

.attachment-files a[href],
.attachment-files button[data-image-preview],
.doc-preview-row a.ready {
  border-color: rgba(18, 196, 139, 0.24);
  background: #f2fffb;
}

.empty-inline,
.muted-copy {
  color: var(--weak);
}

.review-person-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
  padding: 12px;
}

.review-person-info {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.review-person-main {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
}

.review-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink-strong);
  font-weight: 900;
  font-size: 16px;
}

.review-person-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.review-person-title strong {
  font-size: 16px;
}

.review-person-title span {
  border-radius: 6px;
  background: var(--pink-soft);
  color: var(--pink-strong);
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 800;
}

.review-person-main p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.review-cert-column {
  display: grid;
  gap: 8px;
  justify-items: stretch;
  align-items: center;
}

.review-cert-column.has-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-cert-thumb {
  width: 100%;
  min-width: 0;
}

/* 详情页证件照：固定身份证比例的中等尺寸（不铺满整行） */
.side-cert-thumb.detail-cert-thumb {
  width: 240px;
  min-width: 0;
  max-width: 100%;
}

.review-cert-column.has-two .review-cert-thumb {
  font-size: 11px;
}

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

.doc-preview-row a {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
}

.doc-preview-row img {
  grid-row: 1 / span 2;
  width: 96px;
  aspect-ratio: 77 / 49;
  border-radius: 6px;
  object-fit: contain;
  background: #f8fafc;
}

.doc-preview-row span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.doc-preview-row em {
  color: var(--weak);
  font-size: 12px;
  font-style: normal;
}

.record-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.record-pills span {
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--muted);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.credential-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.credential-card div {
  border: 1px solid rgba(217, 30, 131, 0.2);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pink-soft), var(--cyan-soft));
  padding: 14px;
}

.credential-card small {
  display: block;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.credential-card strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.credential-teams {
  display: grid;
  gap: 8px;
}

.credential-teams div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 10px 12px;
}

.credential-teams span {
  color: var(--weak);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* 二维码（观众核销码 / 机构报到检录码） */
.qr-code {
  display: grid;
  grid-auto-rows: 1fr;
  width: 176px;
  height: 176px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-sizing: border-box;
}

.qr-code i {
  background: transparent;
}

.qr-code i.on {
  background: #111827;
}

.credential-qr-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0;
}

.manual-purchase-code {
  align-items: stretch;
}

.manual-purchase-code .ghost-button {
  width: 100%;
}

.credential-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.credential-qr-item strong {
  font-size: 13px;
}

.credential-qr-item span {
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
  max-width: 192px;
}

.assignment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.assignment-row strong {
  display: block;
}

.assignment-row span {
  display: block;
  margin-top: 3px;
  color: var(--weak);
  font-size: 12px;
}

.assignment-row .record-pills {
  margin-top: 8px;
}

.participant-profile-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 190px;
  align-items: center;
}

.participant-cert-thumb {
  width: 100%;
  min-width: 0;
}

.participant-cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f8fafc;
  display: block;
}

.participant-cert-thumb.empty {
  border-style: dashed;
  color: var(--weak);
  font-size: 12px;
  text-align: center;
  padding: 0 8px;
}

.staff-credential-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.staff-credential-cell > div {
  min-width: 0;
}

.staff-credential-cell strong {
  display: block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-cert-thumb {
  box-sizing: border-box;
  width: 96px;
  min-width: 96px;
  height: 61px;
  min-height: 61px;
  max-height: 61px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--weak);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1.35;
  cursor: pointer;
  font-family: inherit;
  padding: 0 6px;
  white-space: normal;
  appearance: none;
}

.staff-cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f8fafc;
}

.staff-cert-editor {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fbfcff;
}

.staff-cert-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.staff-cert-editor-head span {
  font-weight: 700;
  color: var(--ink);
}

.staff-cert-editor-head em {
  font-style: normal;
  color: var(--weak);
  font-size: 12px;
}

.staff-cert-drop {
  display: flex;
  align-items: center;
  gap: 14px;
}

.staff-cert-preview {
  box-sizing: border-box;
  width: 150px;
  height: 96px;
  min-height: 96px;
  max-height: 96px;
  border: 1px dashed #ccd2df;
  border-radius: 8px;
  background: #ffffff;
  color: var(--weak);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  appearance: none;
}

.staff-cert-preview.has-photo {
  border-style: solid;
}

.staff-cert-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f8fafc;
}

.staff-cert-preview b {
  padding: 0 10px;
  font-size: 12px;
}

.staff-cert-drop strong {
  color: var(--pink-strong);
  font-size: 14px;
}

.staff-cert-upload-action {
  cursor: pointer;
}

.participant-profile-main {
  flex: 1;
  min-width: 0;
  align-self: center;
}

@media (max-width: 720px) {
  .review-person-card,
  .participant-profile-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .review-cert-column .side-cert-thumb,
  .participant-profile-row .side-cert-thumb {
    width: 100%;
    min-width: 0;
  }
}

.perm-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 12px;
}

.gate-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.gate-add {
  display: flex;
  gap: 8px;
  align-items: center;
}

.gate-add input {
  flex: 1;
}

.port-key-values {
  display: grid;
  gap: 8px;
  margin: 4px 0 12px;
}

.kv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kv-row span {
  color: var(--muted);
  font-size: 13px;
}

.kv-row strong {
  font-weight: 600;
  text-align: right;
}

.record-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* —— 详情页（整页呈现）统一为居中内容列，避免大屏拉伸 —— */
.modal-root.is-page .drawer-body {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
}

.modal-root.is-page .order-detail-panel .drawer-body {
  max-width: 1320px;
}

.order-detail-body {
  gap: 16px;
}

.order-detail-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.order-detail-summary-main {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.order-detail-tags,
.order-detail-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.order-detail-summary h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.35;
}

.order-detail-summary p,
.order-detail-inline span,
.order-detail-amount span {
  margin: 0;
  color: var(--weak);
  font-size: 13px;
}

.order-detail-inline span {
  border-right: 1px solid var(--line);
  padding-right: 10px;
}

.order-detail-inline span:last-child {
  border-right: 0;
  padding-right: 0;
}

.order-detail-amount {
  display: grid;
  align-content: center;
  justify-items: end;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.order-detail-amount small {
  color: var(--weak);
  font-weight: 800;
}

.order-detail-amount strong {
  margin-top: 4px;
  color: var(--pink-strong);
  font-size: 28px;
  line-height: 1.1;
}

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

.order-detail-panel .review-block {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.order-detail-panel .review-block + .review-block {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.order-detail-panel .fee-summary-grid.compact strong {
  font-size: 17px;
}

@media (max-width: 980px) {
  .order-detail-summary,
  .order-detail-grid {
    grid-template-columns: 1fr;
  }

  .order-detail-amount {
    justify-items: start;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 14px 0 0;
  }

  .compact-detail-list {
    grid-template-columns: 1fr;
  }
}

/* 对象详情顶部资料头 */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(217, 30, 131, 0.06), rgba(125, 95, 255, 0.06)), #fff;
}
.profile-hero-avatar {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-strong), #7d5fff);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}
.profile-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-hero-info {
  flex: 1 1 auto;
  min-width: 0;
}
.profile-hero-info h3 {
  margin: 0 0 4px;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-hero-info p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.profile-hero-stats {
  display: flex;
  gap: 30px;
}
.profile-hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-hero-stats strong {
  font-size: 15px;
}
.profile-hero-stats small {
  color: var(--muted);
  font-size: 12px;
}
.profile-hero-actions {
  flex: none;
}

/* 资料字段网格（替代被拉宽的左右两端布局） */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 6px;
}
.info-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbfd;
}
.info-cell small {
  color: var(--muted);
  font-size: 12px;
}
.info-cell strong {
  font-weight: 600;
  font-size: 14px;
  word-break: break-word;
}
.info-cell.wide {
  grid-column: 1 / -1;
}
.info-cell .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
}
.count-pill {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.detail-list-rows {
  display: flex;
  flex-direction: column;
}

.record-amount span {
  color: var(--weak);
  font-size: 12px;
}

.role-perm-list {
  display: grid;
  gap: 10px;
}

.role-perm-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.role-perm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.role-perm-head span {
  color: var(--weak);
  font-size: 12px;
}

.refund-rule-list {
  display: grid;
  gap: 8px;
}

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

.refund-rule-row input {
  flex: 1;
  min-width: 0;
}

.review-rule-list {
  display: grid;
  gap: 8px;
}

.review-rule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 10px 12px;
}

.review-rule-item span {
  display: block;
  margin-top: 3px;
  color: var(--weak);
  font-size: 12px;
}

.review-rule-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.perm-check {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.perm-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.role-checks {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin: 4px 0 12px;
}

.perm-master {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 8px;
}

.perm-master input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.integration-grid {
  display: grid;
  gap: 10px;
}

.integration-grid div {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.integration-grid div.ready {
  border-color: rgba(18, 196, 139, 0.24);
  background: #f2fffb;
}

.integration-grid div.warn {
  border-color: rgba(255, 176, 32, 0.28);
  background: #fffaf0;
}

.integration-grid span,
.integration-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

@keyframes loginBackdropDrift {
  from {
    background-position: center, 50% 50%;
  }
  to {
    background-position: center, 54% 48%;
  }
}

@keyframes loginLightWash {
  from {
    opacity: 0.74;
    transform: translate3d(-1.2%, 0, 0) scale(1);
  }
  to {
    opacity: 1;
    transform: translate3d(1.4%, -0.8%, 0) scale(1.03);
  }
}

@keyframes loginFloorGlow {
  from {
    opacity: 0.82;
  }
  to {
    opacity: 1;
  }
}

@keyframes loginMarkReveal {
  from {
    opacity: 0;
    transform: translate3d(-28px, 18px, 0) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes loginMarkFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotateZ(0deg);
  }
  50% {
    transform: translate3d(0, -10px, 0) rotateZ(-0.45deg);
  }
}

@keyframes loginMarkGlow {
  from {
    filter:
      drop-shadow(0 28px 64px rgba(0, 0, 0, 0.42))
      drop-shadow(0 0 28px rgba(217, 30, 131, 0.2))
      drop-shadow(0 0 24px rgba(49, 240, 250, 0.13));
  }
  to {
    filter:
      drop-shadow(0 32px 72px rgba(0, 0, 0, 0.48))
      drop-shadow(0 0 46px rgba(217, 30, 131, 0.4))
      drop-shadow(0 0 38px rgba(49, 240, 250, 0.28));
  }
}

@keyframes loginLogoAura {
  from {
    opacity: 0.48;
    transform: translate(-50%, -50%) scale(0.96);
  }
  to {
    opacity: 0.82;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes loginPanelIn {
  from {
    opacity: 0;
    transform: translate3d(30px, 18px, 0) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-page,
  .login-page::before,
  .login-page::after,
  .login-brand,
  .login-brand::before,
  .login-brand::after,
  .login-brand img,
  .login-panel {
    animation: none !important;
  }

  .login-panel .primary-button {
    transition: none;
  }
}

@keyframes loading {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -220% 0;
  }
}

@keyframes event-data-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== 机构工作台 ===== */
.org-progress {
  height: 6px;
  border-radius: 3px;
  background: #eef0f6;
  overflow: hidden;
  margin: 6px 0;
}
.org-progress-fill { display: block; height: 100%; border-radius: 3px; background: var(--pink-strong); }
.org-progress-fill.green { background: #12c48b; }
.org-progress-fill.yellow { background: #e0a01e; }
.org-progress-fill.pink { background: var(--pink-strong); }

.org-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.org-quick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcff;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.org-quick:hover { border-color: var(--pink-strong); transform: translateY(-1px); }
.org-quick .nav-icon { width: 22px; height: 22px; margin-bottom: 4px; }
.org-quick strong { font-size: 14px; color: var(--ink); }
.org-quick span { font-size: 12px; color: var(--weak); }

.org-overview-row { display: flex; align-items: center; justify-content: space-between; }
.org-overview-row strong { font-size: 18px; color: var(--ink); }
.org-overview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.org-overview-stats > div {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
  padding: 10px;
  text-align: center;
}
.org-overview-stats strong { display: block; font-size: 16px; color: var(--ink); }
.org-overview-stats span { font-size: 11px; color: var(--weak); }

.org-event-preview-cover {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: #f6f7fb center / cover no-repeat;
  overflow: hidden;
}

.org-event-preview-cover > span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #fff;
  color: var(--pink-strong);
  font-size: 30px;
  font-weight: 900;
}

.org-event-preview-cover .tag {
  position: absolute;
  left: 16px;
  top: 16px;
}

.event-preview-rich {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.event-preview-rich img {
  max-width: 100%;
  border-radius: 10px;
}

.muted-inline {
  color: var(--weak);
  font-size: 13px;
  font-weight: 800;
}

.org-todo-list { display: grid; gap: 8px; }
.org-todo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
}
.org-todo:hover { border-color: var(--pink-strong); }
.org-todo strong { display: block; font-size: 14px; color: var(--ink); }
.org-todo span { font-size: 12px; color: var(--weak); }

.org-event-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.org-event-card {
  display: flex;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 14px;
  box-shadow: var(--shadow-soft, 0 6px 18px rgba(17,18,26,.04));
}
.org-event-cover {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink-strong), #7d5fff);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}
.org-event-body { flex: 1 1 auto; min-width: 0; }
.org-event-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.org-event-top strong { display: block; font-size: 15px; color: var(--ink); }
.org-event-top span { font-size: 12px; color: var(--weak); }
.org-event-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.org-event-projects { margin-top: 8px; color: var(--pink-strong); font-size: 12px; font-weight: 600; }
.org-event-actions { display: flex; gap: 8px; margin-top: 12px; }
.org-event-actions .ghost-button, .org-event-actions .primary-button { height: 34px; padding: 0 16px; font-size: 13px; }

.org-student-list { display: grid; gap: 10px; }
.org-student {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.org-student-head { display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; }
.org-student-avatar {
  flex: 0 0 42px;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff0f8; color: var(--pink-strong);
  font-size: 18px; font-weight: 800;
}
.org-student-main { flex: 1 1 auto; min-width: 0; }
.org-student-name { display: flex; align-items: center; gap: 8px; }
.org-student-name strong { font-size: 15px; color: var(--ink); }
.org-student-sub { margin-top: 2px; font-size: 12px; color: var(--weak); }
.org-student-prog { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.org-student-prog .org-progress { flex: 1 1 auto; margin: 0; max-width: 160px; }
.org-student-prog span { font-size: 11px; color: var(--weak); }
.org-student-actions { flex: 0 0 auto; display: flex; gap: 4px; }
.org-student-detail { border-top: 1px solid var(--line); padding: 14px; background: #fbfcff; }
.org-student-records { margin-top: 10px; }
.org-records-title { font-size: 12px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.org-record { display: flex; flex-direction: column; padding: 6px 0; border-top: 1px solid var(--line); }
.org-record:first-of-type { border-top: 0; }
.org-record strong { font-size: 13px; color: var(--ink); }
.org-record span { font-size: 11px; color: var(--weak); }

.org-menu { display: grid; gap: 8px; }
.org-menu button {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 10px; background: #fbfcff;
  padding: 12px 14px; cursor: pointer; text-align: left;
}
.org-menu button:hover { border-color: var(--pink-strong); }
.org-menu strong { font-size: 14px; color: var(--ink); }
.org-menu span { font-size: 12px; color: var(--weak); }

.form-subhead { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 800; color: var(--ink); margin: 6px 0 8px; }
.student-files-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcff;
  padding: 14px;
}
.student-files-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.student-files-head strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}
.student-files-head span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}
.student-files-head em {
  flex: 0 0 auto;
  border: 1px solid rgba(217, 30, 131, 0.18);
  border-radius: 999px;
  background: #fff0f8;
  color: var(--pink-strong);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  padding: 5px 10px;
}
.student-file-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.student-file {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 310px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 14px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.student-file.is-uploaded {
  border-color: rgba(18, 196, 139, 0.42);
  background: linear-gradient(180deg, #ffffff, #f4fffb);
}
.student-file-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: flex-start;
}
.student-file-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--purple-soft);
  color: #6c5ce7;
  font-size: 12px;
  font-weight: 900;
}
.student-file.is-uploaded .student-file-mark {
  background: #e9fff7;
  color: #087b57;
}
.student-file-head strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}
.student-file-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.student-file-head b {
  border-radius: 999px;
  background: #f2f3f7;
  color: var(--weak);
  font-size: 12px;
  line-height: 1;
  padding: 6px 9px;
  white-space: nowrap;
}
.student-file.is-uploaded .student-file-head b {
  background: #e9fff7;
  color: #087b57;
}
.student-file-upload {
  display: grid;
  gap: 10px;
  justify-items: center;
  cursor: pointer;
}
.student-file-preview {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #d6dae6;
  border-radius: 10px;
  background:
    linear-gradient(45deg, rgba(230, 232, 239, .34) 25%, transparent 25%, transparent 75%, rgba(230, 232, 239, .34) 75%),
    linear-gradient(45deg, rgba(230, 232, 239, .34) 25%, transparent 25%, transparent 75%, rgba(230, 232, 239, .34) 75%),
    #fbfcff;
  background-position: 0 0, 8px 8px, 0 0;
  background-size: 16px 16px, 16px 16px, auto;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.student-file-preview.portrait {
  height: 206px;
  width: 147px;
  max-width: 62%;
  aspect-ratio: 35 / 49;
}
.student-file-preview.id-card {
  height: 206px;
  width: 326px;
  max-width: 100%;
  aspect-ratio: 856 / 540;
}
.student-file-preview img {
  width: 100%;
  height: 100%;
  display: block;
}
.student-file-preview.portrait img {
  object-fit: cover;
}
.student-file-preview.id-card img {
  object-fit: contain;
  background: #f8fafc;
}
.student-file-upload:hover .student-file-preview {
  border-color: rgba(217, 30, 131, .5);
  box-shadow: 0 0 0 4px rgba(217, 30, 131, .08);
  transform: translateY(-1px);
}
.student-file-empty {
  display: grid;
  place-items: center;
  gap: 5px;
  color: var(--weak);
  text-align: center;
  padding: 14px;
}
.student-file-empty em {
  color: var(--pink-strong);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.student-file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  color: var(--weak);
  font-size: 12px;
}
.student-file-info span {
  min-width: 0;
  line-height: 1.45;
}
.student-file-info em,
.student-file-info a {
  flex: 0 0 auto;
  max-width: 180px;
  color: var(--muted);
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.student-file-info a {
  color: var(--pink-strong);
  font-weight: 800;
  text-decoration: none;
}
.student-file-pick {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(217, 30, 131, 0.22);
  border-radius: 8px;
  background: #fff0f8;
  color: var(--pink-strong);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}
.student-file-pick:hover {
  border-color: var(--pink-strong);
  background: #ffe6f4;
}
.student-file-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.student-file-tips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  padding: 7px 10px;
}
.student-detail-file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.student-detail-file {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}
.student-detail-file .student-file-preview {
  justify-self: center;
}
.student-detail-file-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.student-detail-file-head strong {
  color: var(--ink);
  font-size: 13px;
}
.student-detail-file-head span {
  border-radius: 999px;
  background: #f2f3f7;
  color: var(--weak);
  font-size: 12px;
  line-height: 1;
  padding: 6px 9px;
}
.student-detail-file:has(img) .student-detail-file-head span {
  background: #e9fff7;
  color: #087b57;
}

.student-record-list { display: grid; gap: 8px; }
.student-record-row { display: grid; grid-template-columns: 1.4fr 1fr .9fr 1fr auto; gap: 8px; align-items: center; }

.reg-student-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  align-items: start;
}
.reg-student { border: 1px solid var(--line); border-radius: 10px; background: #fbfcff; padding: 10px 12px; }
.reg-student:has([data-reg-pick]:checked) { border-color: var(--pink-strong); background: #fff; }
.reg-student-head { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.reg-student-head input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.reg-student-info { flex: 1 1 auto; min-width: 0; }
.reg-student-name { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.reg-student-name .tag { font-size: 11px; }
.reg-student-sub { display: block; margin-top: 3px; font-size: 12px; color: var(--weak); }
.reg-student-config { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.reg-student-config[hidden] { display: none; }
.reg-projects { display: flex; flex-wrap: wrap; gap: 6px; }
.reg-proj { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; background: #fff; cursor: pointer; }
.reg-proj input[type="checkbox"] { width: 14px; height: 14px; }
.reg-team { width: 100%; }
.reg-count { font-size: 12px; color: var(--pink-strong); font-weight: 700; }

.reg-file-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.reg-file { border: 1px solid var(--line); border-radius: 10px; background: #fbfcff; padding: 10px; }
.reg-file-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.reg-file-head strong { font-size: 13px; color: var(--ink); }
.reg-file-head span { font-size: 11px; color: var(--weak); }
.reg-file-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.reg-file-item { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 3px 6px 3px 8px; font-size: 11px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reg-file-item button { border: 0; background: transparent; color: var(--weak); font-size: 14px; line-height: 1; cursor: pointer; padding: 0; }
.reg-file-pick { display: inline-flex; align-items: center; cursor: pointer; }
.reg-file-pick span { font-size: 12px; color: var(--pink-strong); font-weight: 700; }

/* ===== 机构报名整页（单页两栏） ===== */
.reg-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: stretch;
}
.reg-main { min-width: 0; display: grid; gap: 16px; align-content: start; }
.reg-aside { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.reg-detail-card { flex: 1 1 auto; min-height: 160px; display: flex; flex-direction: column; }
.reg-detail-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  word-break: break-word;
}
.reg-detail-body p { margin: 0 0 8px; }
.reg-detail-body p:last-child { margin-bottom: 0; }
.reg-detail-body img { max-width: 100%; border-radius: 8px; }
.reg-submit { width: 100%; height: 44px; margin-top: 12px; }
.reg-submit + .reg-submit { margin-top: 8px; }
.reg-aside-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 16px;
}
.reg-aside-card h4 { margin: 0 0 12px; font-size: 14px; color: var(--ink); }
.reg-aside-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.reg-aside-row:first-of-type { border-top: 0; padding-top: 0; }
.reg-aside-row span { color: var(--weak); flex: 0 0 auto; }
.reg-aside-row strong { color: var(--ink); text-align: right; font-weight: 700; }
.reg-aside-tip {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  line-height: 1.6;
  color: var(--weak);
}
@media (max-width: 1080px) {
  .reg-page { grid-template-columns: 1fr; }
  .reg-aside { position: static; }
  .student-file-grid { grid-template-columns: 1fr; }
  .student-detail-file-grid { grid-template-columns: 1fr; }
  .student-files-head { flex-direction: column; }
  .student-files-head em { align-self: flex-start; }
}
.reg-steps {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.reg-step-tab {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px 14px;
  cursor: pointer;
  color: var(--weak);
  transition: border-color .15s, color .15s;
}
.reg-step-tab b {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #eef0f6;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.reg-step-tab span { font-size: 14px; font-weight: 700; }
.reg-step-tab.active { border-color: var(--pink-strong); color: var(--ink); }
.reg-step-tab.active b { background: var(--pink-strong); color: #fff; }
.reg-step-tab.done b { background: #12c48b; color: #fff; }
.reg-step-tab.done { color: var(--muted); }

.reg-step { display: block; }
.reg-step[hidden] { display: none; }
.reg-step-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.reg-step-head h3 { margin: 0; font-size: 16px; color: var(--ink); }
.reg-step-head p { margin: 4px 0 0; font-size: 12px; color: var(--weak); }

.reg-event-summary {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff5fb 0%, #f3f4ff 100%);
  padding: 16px;
  margin-bottom: 14px;
}
.reg-event-badge {
  flex: 0 0 56px;
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--pink-strong), #7d5fff);
  color: #fff; font-size: 24px; font-weight: 900;
}
.reg-event-summary strong { display: block; font-size: 16px; color: var(--ink); }
.reg-event-summary span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.reg-event-summary em { display: block; margin-top: 4px; font-size: 12px; color: var(--pink-strong); font-style: normal; font-weight: 700; }
.reg-form-panel { margin: 0; }

.reg-remark { display: block; margin-top: 14px; font-size: 13px; color: var(--muted); }
.reg-remark textarea { display: block; width: 100%; margin-top: 6px; }
.reg-confirm {
  margin-top: 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fbfcff;
  padding: 14px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.reg-empty {
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #fbfcff;
  padding: 32px;
  text-align: center;
}
.reg-empty p { margin: 0 0 12px; color: var(--muted); }

.reg-actionbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.reg-actionbar-spacer { flex: 1 1 auto; }
.reg-actionbar .ghost-button, .reg-actionbar .primary-button { height: 42px; padding: 0 28px; }

.org-evt-cell { display: flex; align-items: center; gap: 12px; }
.org-evt-thumb {
  flex: 0 0 48px;
  width: 48px; height: 48px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--pink-strong), #7d5fff);
  background-size: cover;
  background-position: center;
  color: #fff; font-size: 20px; font-weight: 900;
}
.org-evt-info { min-width: 0; }

.org-list-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.org-list-logo {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f7f4ff;
  color: #6c5ce7;
  font-size: 18px;
  font-weight: 900;
}

.org-list-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 通知面板 ===== */
.notif-pop {
  position: fixed;
  top: 64px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 48px);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(17, 18, 26, 0.28);
  overflow: hidden;
  z-index: 1;
}
.notif-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.notif-pop-head strong { font-size: 14px; color: var(--ink); }
.notif-list { overflow-y: auto; padding: 6px; }
.notif-item {
  display: flex;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 10px 10px;
  cursor: pointer;
}
.notif-item:hover { background: #f6f7fb; }
.notif-item.unread { background: rgba(217, 30, 131, 0.04); }
.notif-dot {
  flex: 0 0 8px;
  width: 8px; height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--weak);
}
.notif-dot.success { background: #12c48b; }
.notif-dot.warning { background: #e0a01e; }
.notif-dot.danger { background: #d14343; }
.notif-dot.info { background: #3b82f6; }
.notif-item:not(.unread) .notif-dot { opacity: .35; }
.notif-body { min-width: 0; display: block; }
.notif-body strong { display: block; font-size: 13px; color: var(--ink); }
.notif-body span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.notif-body em { display: block; margin-top: 3px; font-size: 11px; color: var(--weak); font-style: normal; }
.notif-empty { margin: 0; padding: 28px; text-align: center; color: var(--weak); font-size: 13px; }

.org-stu-ava {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff0f8; color: var(--pink-strong);
  font-size: 16px; font-weight: 800;
}

.org-stu-photo {
  flex: 0 0 42px;
  display: block;
  width: 42px;
  aspect-ratio: 35 / 49;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcff;
  overflow: hidden;
}

.org-stu-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.org-stu-photo.empty {
  display: grid;
  place-items: center;
}

.promo-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.promo-code-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.promo-code-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.promo-code-head h2 {
  margin: 10px 0 6px;
  font-size: 18px;
  color: var(--ink);
}

.promo-code-head p {
  margin: 0;
  max-width: 460px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.promo-code-body {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-top: 18px;
}

.promo-qr {
  display: grid;
  width: 188px;
  height: 188px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px;
  box-sizing: border-box;
}

.promo-qr i {
  display: block;
  background: #fff;
}

.promo-qr i.on {
  background: #171821;
}

.promo-qr.official {
  display: grid;
  place-items: center;
  padding: 0;
}

.promo-qr.official img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.promo-code-meta {
  display: grid;
  gap: 10px;
}

.promo-code-meta div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.promo-code-meta span {
  color: var(--weak);
  font-size: 12px;
}

.promo-code-meta strong {
  color: var(--ink);
  font-size: 13px;
  word-break: break-all;
}

.event-data-panel .drawer-body {
  gap: 18px;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.event-data-loading {
  align-content: start;
  min-height: calc(100vh - 86px);
}

.event-data-loading-status,
.event-data-load-error {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  padding: 4px 0 20px;
}

.event-data-loading-status h3,
.event-data-loading-status p,
.event-data-load-error h3,
.event-data-load-error p {
  margin: 0;
}

.event-data-loading-status p,
.event-data-load-error p {
  margin-top: 6px;
  color: var(--weak);
}

.event-data-spinner {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 3px solid #e6e8ef;
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: event-data-spin 0.8s linear infinite;
}

.event-data-loading-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.event-data-skeleton {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f2f6 20%, #fafbfc 45%, #f0f2f6 70%);
  background-size: 240% 100%;
  animation: loading 1.2s infinite linear;
}

.event-data-skeleton.metric {
  height: 118px;
}

.event-data-skeleton.table {
  height: 380px;
}

.event-data-load-error {
  display: grid;
  justify-items: start;
}

.event-data-load-error .primary-button {
  margin-top: 8px;
}

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

.modal-root.is-page .event-data-panel .modal-head {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  padding-left: 28px;
  padding-right: 28px;
}

.modal-root.is-page .event-data-panel .drawer-body {
  max-width: none;
  margin: 0;
  padding: 28px;
}

.event-data-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 0;
  width: 100%;
}

.event-data-metrics .metric-card {
  min-width: 0;
}

.event-data-metrics .metric-card strong,
.event-data-metrics .metric-card em {
  overflow-wrap: anywhere;
}

.event-data-list {
  min-width: 0;
  width: 100%;
  overflow: hidden;
  padding: 18px;
}

.event-data-head {
  align-items: flex-start;
}

.event-data-head .filter-fields {
  justify-content: flex-end;
}

.event-data-search {
  width: 440px;
  max-width: 100%;
}

.event-data-search input {
  width: 100%;
  min-width: 0;
}

.event-data-count {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.event-data-table {
  max-height: calc(100vh - 390px);
  overflow-y: auto;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

.event-data-table table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.event-data-table th,
.event-data-table td {
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.event-data-table th:nth-child(1),
.event-data-table td:nth-child(1) {
  width: 13%;
}

.event-data-table th:nth-child(2),
.event-data-table td:nth-child(2) {
  width: 13%;
}

.event-data-table th:nth-child(3),
.event-data-table td:nth-child(3) {
  width: 9%;
}

.event-data-table th:nth-child(4),
.event-data-table td:nth-child(4) {
  width: 11%;
}

.event-data-table th:nth-child(5),
.event-data-table td:nth-child(5) {
  width: 11%;
}

.event-data-table th:nth-child(6),
.event-data-table td:nth-child(6) {
  width: 14%;
}

.event-data-table th:nth-child(7),
.event-data-table td:nth-child(7) {
  width: 7%;
}

.event-data-table th:nth-child(8),
.event-data-table td:nth-child(8) {
  width: 13%;
}

.event-data-table th:nth-child(9),
.event-data-table td:nth-child(9) {
  width: 9%;
}

.event-data-table td em {
  max-width: 100%;
}

.order-supplement-form {
  overflow-x: hidden;
}

.order-supplement-form input.is-invalid,
.order-supplement-form select.is-invalid,
.order-supplement-form label.is-invalid input,
.order-supplement-form label.is-invalid select {
  border-color: rgba(220, 38, 38, 0.75);
  background: #fff7f7;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.manual-ticket-list,
.manual-participant-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.manual-ticket-group {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

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

.manual-participant-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 244px;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  min-width: 0;
}

.manual-participant-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.manual-cert-upload {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.manual-id-card-upload {
  display: block;
  cursor: pointer;
}

.manual-id-card-upload input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.manual-id-card-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 856 / 540;
  width: 100%;
  border: 1px dashed #b9c0d0;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.manual-id-card-frame.is-invalid {
  border-color: rgba(220, 38, 38, 0.85);
  background: #fff7f7;
  color: #b42318;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.manual-id-card-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manual-id-card-frame span {
  position: absolute;
  inset: auto 8px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 8px;
  text-align: center;
}

.registration-participant-form {
  overflow-x: hidden;
}

.registration-cert-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

@media (max-width: 1100px) {
  .promo-code-grid { grid-template-columns: 1fr; }
  .event-data-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-data-head .filter-fields { justify-content: flex-start; }
  .manual-ticket-head { grid-template-columns: 1fr; }
  .manual-participant-row { grid-template-columns: 1fr; }
  .manual-participant-fields { grid-template-columns: 1fr; }
  .registration-cert-upload { grid-template-columns: 1fr; }
}
