:root {
  color-scheme: light;
  --page: #f4f6f1;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: #eef1e9;
  --surface-strong: #182019;
  --text: #162018;
  --text-soft: #526056;
  --text-faint: #78837b;
  --line: #dfe4dc;
  --line-strong: #cbd3c9;
  --accent: #d9ff45;
  --accent-hover: #c9ef35;
  --accent-ink: #172006;
  --green: #1d7b4d;
  --green-soft: #e4f5ea;
  --amber: #a75d07;
  --amber-soft: #fff1d7;
  --red: #b33a31;
  --red-soft: #ffebe8;
  --blue: #356dae;
  --blue-soft: #e9f2ff;
  --shadow: 0 14px 40px rgba(31, 46, 34, 0.08);
  --shadow-small: 0 7px 18px rgba(31, 46, 34, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 13px;
  --radius-sm: 9px;
  --sidebar-width: 248px;
  --topbar-height: 76px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-synthesis: none;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #0f1411;
  --surface: #171d19;
  --surface-raised: #1c241f;
  --surface-soft: #222a24;
  --surface-strong: #e9efe9;
  --text: #edf3ed;
  --text-soft: #acb7ae;
  --text-faint: #7f8a82;
  --line: #2c352f;
  --line-strong: #3b463e;
  --accent: #d4fa48;
  --accent-hover: #e0ff6d;
  --accent-ink: #172006;
  --green: #71d99d;
  --green-soft: #173728;
  --amber: #f3b85c;
  --amber-soft: #3c2a15;
  --red: #ff9186;
  --red-soft: #40201e;
  --blue: #91bdf0;
  --blue-soft: #1c3049;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  --shadow-small: 0 8px 24px rgba(0, 0, 0, 0.22);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    color-scheme: dark;
    --page: #0f1411;
    --surface: #171d19;
    --surface-raised: #1c241f;
    --surface-soft: #222a24;
    --surface-strong: #e9efe9;
    --text: #edf3ed;
    --text-soft: #acb7ae;
    --text-faint: #7f8a82;
    --line: #2c352f;
    --line-strong: #3b463e;
    --accent: #d4fa48;
    --accent-hover: #e0ff6d;
    --accent-ink: #172006;
    --green: #71d99d;
    --green-soft: #173728;
    --amber: #f3b85c;
    --amber-soft: #3c2a15;
    --red: #ff9186;
    --red-soft: #40201e;
    --blue: #91bdf0;
    --blue-soft: #1c3049;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
    --shadow-small: 0 8px 24px rgba(0, 0, 0, 0.22);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
select {
  cursor: pointer;
}

button:disabled,
select:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 74%, #4c7600);
  outline-offset: 2px;
}

button {
  border: 0;
}

a {
  color: inherit;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--page);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.muted {
  color: var(--text-soft);
}

.boot-screen {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  background: var(--page);
  color: var(--text-soft);
  text-align: center;
}

.boot-screen[hidden] {
  display: none;
}

.boot-screen p {
  margin: 0;
  font-weight: 650;
}

.boot-mark,
.brand-mark {
  position: relative;
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: var(--accent);
  box-shadow: inset 0 -10px 24px rgba(112, 146, 0, 0.12);
  color: var(--accent-ink);
  font-size: 19px;
  font-weight: 900;
}

.boot-mark::after,
.brand-mark::after {
  position: absolute;
  right: -8px;
  bottom: -7px;
  width: 25px;
  height: 25px;
  border: 5px solid rgba(23, 32, 6, 0.17);
  border-radius: 50%;
  content: "";
}

.boot-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  animation: boot-pulse 1.5s ease-in-out infinite;
  font-size: 24px;
}

@keyframes boot-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.055); }
}

.login-view {
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.1fr) minmax(400px, 0.9fr);
  background: var(--surface);
}

.login-view:not([hidden]) {
  display: grid;
}

.login-brand {
  position: relative;
  display: flex;
  min-height: 100vh;
  padding: clamp(40px, 7vw, 100px);
  padding-top: max(clamp(40px, 7vw, 100px), calc(var(--safe-top) + 32px));
  padding-bottom: max(clamp(40px, 7vw, 100px), calc(var(--safe-bottom) + 32px));
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: #172018;
  color: #f5f8f2;
}

.login-brand::before {
  position: absolute;
  top: -18vw;
  right: -14vw;
  width: 46vw;
  height: 46vw;
  border: 1px solid rgba(217, 255, 69, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(217, 255, 69, 0.03), 0 0 0 140px rgba(217, 255, 69, 0.02);
  content: "";
}

.login-brand::after {
  position: absolute;
  right: 8%;
  bottom: -7%;
  width: 250px;
  height: 250px;
  border-radius: 48% 52% 67% 33% / 51% 49% 51% 49%;
  background: var(--accent);
  content: "";
  filter: blur(1px);
  opacity: 0.08;
  transform: rotate(-18deg);
}

.brand-mark--large {
  z-index: 1;
  width: 59px;
  height: 59px;
  margin-bottom: 48px;
  border-radius: 18px;
  font-size: 25px;
}

.login-brand .eyebrow {
  position: relative;
  z-index: 1;
  color: var(--accent);
}

.login-brand h1 {
  position: relative;
  z-index: 1;
  max-width: 630px;
  margin: 8px 0 22px;
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.login-intro {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0;
  color: #b9c4ba;
  font-size: 17px;
  line-height: 1.75;
}

.login-principles {
  position: relative;
  z-index: 1;
  display: flex;
  margin-top: 35px;
  flex-wrap: wrap;
  gap: 10px;
}

.login-principles span {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: #dbe2da;
  font-size: 12px;
  font-weight: 650;
}

.support-brand {
  position: absolute;
  z-index: 1;
  bottom: max(34px, calc(var(--safe-bottom) + 24px));
  left: clamp(40px, 7vw, 100px);
  margin: 0;
  color: rgba(255, 255, 255, 0.36);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.login-panel {
  position: relative;
  display: grid;
  min-height: 100vh;
  padding: 56px clamp(36px, 7vw, 104px);
  place-items: center;
  background: var(--surface);
}

.login-panel__inner {
  width: min(100%, 420px);
}

.login-mobile-brand {
  display: none;
  margin-bottom: 40px;
  align-items: center;
  gap: 11px;
}

.login-mobile-brand > div:last-child {
  display: grid;
  line-height: 1.25;
}

.login-mobile-brand strong { font-size: 15px; }
.login-mobile-brand span { color: var(--text-faint); font-size: 10px; }

.login-panel h2 {
  margin: 0 0 8px;
  font-size: 32px;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.login-panel .muted {
  margin: 0 0 31px;
}

.login-theme {
  position: absolute;
  top: max(24px, calc(var(--safe-top) + 16px));
  right: max(24px, calc(var(--safe-right) + 16px));
}

.theme-cycle {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 11px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.theme-cycle svg {
  width: 17px;
  height: 17px;
}

.field {
  display: grid;
  margin: 18px 0;
  gap: 7px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea,
.modal-body input,
.modal-body select,
.modal-body textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: 0;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field textarea,
.modal-body textarea {
  min-height: 92px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--text));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.form-message {
  min-height: 21px;
  margin: 8px 0;
  color: var(--red);
  font-size: 13px;
}

.privacy-note {
  margin: 22px 0 0;
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.65;
}

.button {
  display: inline-flex;
  min-height: 42px;
  padding: 9px 16px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.button:not(:disabled):active {
  transform: translateY(1px);
}

.button--primary {
  background: var(--accent);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent-ink);
}

.button--primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.button--secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.button--secondary:hover:not(:disabled),
.button--quiet:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.button--quiet {
  border-color: var(--line);
  background: transparent;
  color: var(--text-soft);
}

.button--small {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 12px;
}

.button--danger {
  border-color: color-mix(in srgb, var(--red) 25%, var(--line));
  background: var(--red-soft);
  color: var(--red);
}

.button--full {
  width: 100%;
  min-height: 50px;
  margin-top: 7px;
}

.button-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(23, 32, 6, 0.25);
  border-top-color: var(--accent-ink);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.is-busy .button-spinner {
  display: block;
}

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

.app-shell {
  min-height: 100vh;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.app-shell:not([hidden]) {
  display: block;
}

.sidebar {
  position: fixed;
  z-index: 40;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: var(--sidebar-width);
  padding: max(22px, calc(var(--safe-top) + 16px)) 14px max(20px, calc(var(--safe-bottom) + 16px));
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.sidebar-brand {
  display: flex;
  min-height: 54px;
  padding: 2px 9px 20px;
  align-items: center;
  gap: 11px;
}

.sidebar-brand div:last-child {
  display: grid;
  gap: 1px;
  line-height: 1.2;
}

.sidebar-brand strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.sidebar-brand span {
  color: var(--text-faint);
  font-size: 11px;
}

.nav-list {
  display: grid;
  margin-top: 13px;
  align-content: start;
  min-height: 0;
  gap: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.nav-section-label {
  margin: 14px 12px 3px;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: .1em;
}

.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 45px;
  padding: 9px 12px;
  align-items: center;
  gap: 11px;
  border-radius: 11px;
  background: transparent;
  color: var(--text-soft);
  text-align: left;
  font-size: 13px;
  font-weight: 680;
  transition: background 140ms ease, color 140ms ease;
}

.nav-item--link { text-decoration: none; }
.nav-label--mobile { display: none; }
.mobile-more-button { display: none; }

.nav-item svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.nav-item:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.nav-item.is-active {
  background: var(--surface-strong);
  color: var(--page);
}

html[data-theme="dark"] .nav-item.is-active,
html[data-theme="auto"] .nav-item.is-active {
  color: var(--page);
}

.nav-item.is-active::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.nav-badge {
  min-width: 20px;
  margin-left: auto;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  text-align: center;
  font-size: 10px;
  line-height: 16px;
}

.sidebar-foot {
  margin-top: auto;
  padding: 14px 6px 0;
}

.privacy-chip {
  display: flex;
  padding: 12px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.privacy-chip svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: var(--green);
}

.privacy-chip small {
  color: var(--text-faint);
  font-size: 9px;
  font-weight: 550;
}

.sidebar-foot > p {
  margin: 14px 7px 0;
  color: var(--text-faint);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.workspace {
  min-width: 0;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  min-height: var(--topbar-height);
  padding: max(12px, var(--safe-top)) max(26px, calc(var(--safe-right) + 18px)) 12px max(26px, calc(var(--safe-left) + 18px));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.event-control {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.event-control > label {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 750;
}

.select-wrap {
  position: relative;
  max-width: 290px;
}

.select-wrap select {
  width: 100%;
  min-height: 39px;
  padding: 7px 35px 7px 12px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: 0;
  appearance: none;
  background: var(--surface);
  color: var(--text);
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 750;
}

.select-wrap svg {
  position: absolute;
  top: 50%;
  right: 11px;
  width: 16px;
  height: 16px;
  pointer-events: none;
  transform: translateY(-50%);
}

.event-state {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.event-state.is-inactive,
.event-state.is-warning {
  background: var(--amber-soft);
  color: var(--amber);
}

.event-state.is-closed,
.event-state.is-disabled {
  background: var(--surface-soft);
  color: var(--text-faint);
}

.topbar-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-state {
  display: inline-flex;
  margin-right: 4px;
  align-items: center;
  gap: 7px;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
}

.sync-state.is-live .status-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 14%, transparent);
}

.sync-state.is-error .status-dot {
  background: var(--red);
}

.sync-state.is-loading .status-dot {
  background: var(--amber);
  animation: dot-pulse 1s ease-in-out infinite;
}

@keyframes dot-pulse {
  50% { opacity: 0.35; }
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 0;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-soft);
}

.icon-button:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--text);
}

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

.icon-button.is-spinning svg {
  animation: spin 750ms linear infinite;
}

.profile-button {
  display: flex;
  min-height: 44px;
  margin-left: 4px;
  padding: 3px 5px 3px 3px;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.profile-button:hover {
  background: var(--surface-soft);
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--page);
  font-size: 12px;
  font-weight: 850;
}

.profile-copy {
  display: grid;
  min-width: 84px;
  max-width: 150px;
  line-height: 1.3;
}

.profile-copy strong,
.profile-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy strong { font-size: 12px; }
.profile-copy small { color: var(--text-faint); font-size: 9px; }
.profile-button > svg { width: 14px; height: 14px; color: var(--text-faint); }

.profile-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-small);
}

.profile-menu button,
.profile-menu a {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  text-align: left;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.profile-menu button:hover,
.profile-menu a:hover { background: var(--surface-soft); color: var(--text); }

.main-content {
  width: min(100%, 1540px);
  min-height: calc(100vh - var(--topbar-height));
  margin: 0 auto;
  padding: 30px 32px max(55px, calc(var(--safe-bottom) + 40px));
}

.page {
  animation: page-in 220ms ease both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-heading {
  display: flex;
  min-height: 95px;
  margin-bottom: 24px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(26px, 2.5vw, 37px);
  font-weight: 820;
  letter-spacing: -0.043em;
  line-height: 1.15;
}

.page-heading > div:first-child > p:last-child {
  max-width: 750px;
  margin: 9px 0 0;
  color: var(--text-soft);
}

.page-heading--hero {
  min-height: 122px;
  margin-bottom: 26px;
}

.page-heading--hero h1 {
  font-size: clamp(30px, 3.2vw, 46px);
}

.heading-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.live-chip {
  display: inline-flex;
  min-height: 38px;
  padding: 8px 12px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 750;
}

.live-chip > .live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 13%, transparent);
}

.live-chip.is-muted > .live-dot {
  background: var(--text-faint);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--text-faint) 13%, transparent);
}

.notice-banner {
  display: flex;
  margin-bottom: 22px;
  padding: 15px 17px;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.notice-banner > svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex: 0 0 auto;
}

.notice-banner > div {
  min-width: 0;
  flex: 1;
}

.notice-banner strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}

.notice-banner p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.55;
}

.notice-banner > button {
  padding: 3px 0;
  background: transparent;
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.notice-banner--info {
  border-color: color-mix(in srgb, var(--blue) 20%, var(--line));
  background: color-mix(in srgb, var(--blue-soft) 72%, var(--surface));
}

.notice-banner--info > svg { color: var(--blue); }
.notice-banner--neutral > svg { color: var(--green); }

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

.metric-card {
  position: relative;
  min-width: 0;
  min-height: 171px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.metric-card::after {
  position: absolute;
  top: -18px;
  right: -22px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--surface-soft);
  content: "";
  opacity: 0.7;
}

.metric-card--accent {
  border-color: transparent;
  background: var(--surface-strong);
  color: var(--page);
}

.metric-card--accent::after { background: var(--accent); opacity: 0.12; }
.metric-card--accent .metric-label,
.metric-card--accent .metric-foot { color: color-mix(in srgb, var(--page) 66%, transparent); }
.metric-card--accent .metric-icon { background: var(--accent); color: var(--accent-ink); }
.metric-card--accent .help-dot { border-color: color-mix(in srgb, var(--page) 24%, transparent); color: var(--page); }
.metric-card--verified { border-color: color-mix(in srgb, var(--green) 28%, var(--line)); }
.metric-card--verified .metric-icon { background: var(--green-soft); color: var(--green); }
.metric-card--warning { border-color: color-mix(in srgb, var(--amber) 28%, var(--line)); }
.metric-card--warning .metric-icon { background: var(--amber-soft); color: var(--amber); }
.metric-card--recent .metric-icon { background: var(--blue-soft); color: var(--blue); }

.metric-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text-soft);
}

.metric-icon svg { width: 17px; height: 17px; }

.metric-label {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 30px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.35;
}

.help-dot {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 850;
}

.metric-value {
  position: relative;
  z-index: 1;
  display: block;
  margin: 4px 0 5px;
  font-variant-numeric: tabular-nums;
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1;
}

.metric-foot {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  color: var(--text-faint);
  text-overflow: ellipsis;
  font-size: 9px;
  line-height: 1.4;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 14px;
}

.panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
}

.panel-header {
  display: flex;
  min-height: 38px;
  margin-bottom: 17px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.panel-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 790;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.panel-meta {
  color: var(--text-faint);
  font-size: 9px;
  white-space: nowrap;
}

.count-chip {
  min-width: 27px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  text-align: center;
  font-size: 11px;
  font-weight: 850;
}

.text-button {
  padding: 3px 0;
  background: transparent;
  color: var(--green);
  font-size: 10px;
  font-weight: 780;
}

.flow-chart {
  position: relative;
  display: flex;
  height: 190px;
  padding: 12px 4px 24px;
  align-items: flex-end;
  gap: clamp(4px, 1.1vw, 12px);
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(to bottom, transparent calc(25% - 1px), var(--line) 25%, transparent calc(25% + 1px), transparent calc(50% - 1px), var(--line) 50%, transparent calc(50% + 1px), transparent calc(75% - 1px), var(--line) 75%, transparent calc(75% + 1px));
}

.flow-column {
  position: relative;
  display: flex;
  height: 100%;
  min-width: 8px;
  flex: 1;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}

.flow-bar {
  width: min(42%, 14px);
  min-height: 2px;
  border-radius: 4px 4px 2px 2px;
  background: var(--surface-strong);
  transition: height 300ms ease;
}

.flow-bar--verified { background: var(--accent); }

.flow-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  color: var(--text-faint);
  font-size: 8px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.chart-legend {
  display: flex;
  margin-top: 13px;
  justify-content: flex-end;
  gap: 14px;
  color: var(--text-faint);
  font-size: 9px;
}

.chart-legend span { display: flex; align-items: center; gap: 5px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; }
.legend-total { background: var(--surface-strong); }
.legend-verified { background: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 70%, #668000); }

.stack-list,
.rank-list,
.entity-list,
.feedback-list {
  display: grid;
  gap: 8px;
}

.anomaly-item {
  display: flex;
  padding: 11px;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.anomaly-symbol {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
}

.anomaly-item.is-critical .anomaly-symbol { background: var(--red-soft); color: var(--red); }
.anomaly-copy { min-width: 0; flex: 1; }
.anomaly-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 11px; white-space: nowrap; }
.anomaly-copy span { display: block; margin-top: 2px; color: var(--text-faint); font-size: 9px; line-height: 1.4; }

.rank-row {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(70px, 1.6fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 10px;
}

.rank-copy { min-width: 0; }
.rank-copy strong,
.rank-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-copy strong { font-size: 11px; }
.rank-copy span { color: var(--text-faint); font-size: 9px; }
.rank-track { height: 6px; overflow: hidden; border-radius: 99px; background: var(--surface-soft); }
.rank-fill { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.rank-value { color: var(--text-soft); font-variant-numeric: tabular-nums; font-weight: 750; }

.empty-state {
  margin: 0;
  padding: 22px 12px;
  color: var(--text-faint);
  text-align: center;
  font-size: 11px;
}

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

.ops-summary > div {
  display: flex;
  min-height: 74px;
  padding: 14px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.ops-summary span { color: var(--text-soft); font-size: 11px; font-weight: 650; }
.ops-summary strong { font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }

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

.search-box {
  position: relative;
  display: flex;
  margin-bottom: 13px;
  align-items: center;
}

.search-box > svg {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 16px;
  color: var(--text-faint);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 39px;
  padding: 8px 11px 8px 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 11px;
}

.search-box input:focus { border-color: var(--line-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent); }

.entity-list {
  max-height: 384px;
  padding-right: 2px;
  overflow: auto;
}

.entity-row {
  display: flex;
  min-height: 57px;
  padding: 10px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.entity-avatar {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 850;
}

.entity-avatar--point { background: var(--green-soft); color: var(--green); }
.entity-copy { min-width: 0; flex: 1; }
.entity-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 11px; white-space: nowrap; }
.entity-copy span { display: block; margin-top: 2px; overflow: hidden; color: var(--text-faint); text-overflow: ellipsis; font-size: 9px; white-space: nowrap; }
.entity-side { flex: 0 0 auto; text-align: right; }
.entity-side strong { display: block; font-size: 11px; }
.entity-side span { color: var(--text-faint); font-size: 9px; }

.status-pill,
.type-pill,
.source-pill {
  display: inline-flex;
  min-height: 23px;
  padding: 3px 7px;
  align-items: center;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.is-active,
.status-pill.is-resolved { background: var(--green-soft); color: var(--green); }
.status-pill.is-warning,
.status-pill.is-in-progress { background: var(--amber-soft); color: var(--amber); }
.status-pill.is-disabled,
.status-pill.is-critical,
.status-pill.is-new { background: var(--red-soft); color: var(--red); }
.type-pill.is-staff { background: var(--blue-soft); color: var(--blue); }
.type-pill.is-service { background: var(--amber-soft); color: var(--amber); }
.type-pill.is-event { background: var(--green-soft); color: var(--green); }
.type-pill.is-complaint,
.source-pill.is-complaint { background: var(--red-soft); color: var(--red); }
.source-pill.is-regular { background: var(--surface-soft); color: var(--text-soft); }

.table-panel {
  padding-right: 0;
  padding-left: 0;
  overflow: hidden;
}

.table-panel > .panel-header { padding: 0 20px; }

.table-wrap {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}

th:first-child,
td:first-child { padding-left: 20px; }
th:last-child,
td:last-child { padding-right: 20px; }
th { background: var(--surface-soft); color: var(--text-faint); font-size: 9px; font-weight: 800; letter-spacing: 0.04em; white-space: nowrap; }
td { color: var(--text-soft); font-size: 10px; }
td strong { color: var(--text); font-size: 11px; }

.table-primary { display: grid; gap: 1px; }
.table-primary > span { color: var(--text-faint); font-size: 9px; }
.table-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 5px; }

.inline-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-faint);
  font-size: 10px;
}

.inline-filter select,
.panel-header > select {
  min-height: 33px;
  padding: 6px 29px 6px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 10px;
}

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

.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.segmented button {
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 8px;
  background: transparent;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 750;
}

.segmented button.is-active {
  background: var(--surface-strong);
  color: var(--page);
}

.search-box--toolbar { width: min(280px, 32vw); margin: 0; }

.qr-thumb {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #111;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.qr-path {
  display: inline-block;
  max-width: 230px;
  color: var(--blue);
  overflow-wrap: anywhere;
}

#page-qrs table { min-width: 1040px; }

.qr-destination {
  display: grid;
  min-width: 130px;
  max-width: 210px;
  gap: 2px;
}

.qr-destination strong { font-size: 10px; }
.qr-destination span {
  color: var(--text-faint);
  font-size: 9px;
  overflow-wrap: anywhere;
}

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

.feedback-limit-note {
  margin: -3px 2px 14px;
  color: var(--text-faint);
  font-size: 9px;
  line-height: 1.55;
}

.feedback-stat {
  display: flex;
  min-height: 70px;
  padding: 13px 15px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-soft);
  text-align: left;
}

.feedback-stat span { font-size: 11px; font-weight: 700; }
.feedback-stat strong { color: var(--text); font-size: 23px; letter-spacing: -0.04em; }
.feedback-stat.is-active { border-color: var(--surface-strong); box-shadow: inset 0 0 0 1px var(--surface-strong); }
.feedback-stat--praise strong { color: var(--green); }
.feedback-stat--rating strong { color: var(--blue); }
.feedback-stat--complaint strong { color: var(--red); }

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
  gap: 14px;
}

.feedback-list { max-height: 610px; overflow: auto; }

.feedback-item {
  display: grid;
  width: 100%;
  padding: 12px;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.feedback-item:hover,
.feedback-item.is-selected { border-color: var(--line-strong); background: var(--surface-soft); }
.feedback-item.is-selected { box-shadow: inset 3px 0 0 var(--accent); }
.feedback-item__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.feedback-item__labels { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 5px; }
.feedback-item__topic { color: var(--red); font-size: 10px; font-weight: 750; }
.feedback-item__copy { display: -webkit-box; overflow: hidden; color: var(--text-soft); font-size: 10px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.feedback-item__meta { display: flex; justify-content: space-between; gap: 10px; color: var(--text-faint); font-size: 9px; }

.feedback-detail { min-height: 360px; }
.detail-placeholder { display: grid; min-height: 300px; place-content: center; justify-items: center; color: var(--text-faint); text-align: center; }
.detail-placeholder svg { width: 35px; height: 35px; margin-bottom: 12px; opacity: 0.5; }
.detail-placeholder h2 { margin: 0; color: var(--text-soft); font-size: 15px; }
.detail-placeholder p { margin: 6px 0 0; font-size: 10px; }

.detail-content { display: grid; gap: 18px; }
.detail-content__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.detail-content h2 { margin: 5px 0 0; font-size: 21px; letter-spacing: -0.025em; }
.detail-message { margin: 0; padding: 17px; border-radius: 12px; background: var(--surface-soft); color: var(--text); font-size: 13px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.detail-grid > div { padding: 11px; border: 1px solid var(--line); border-radius: 10px; }
.detail-grid span { display: block; margin-bottom: 3px; color: var(--text-faint); font-size: 9px; }
.detail-grid strong { display: block; overflow-wrap: anywhere; font-size: 11px; }
.detail-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }

.no-event-state {
  min-height: calc(100vh - var(--topbar-height) - 80px);
  place-content: center;
  justify-items: center;
  text-align: center;
}

.no-event-state:not([hidden]) { display: grid; }
.empty-illustration { display: grid; width: 70px; height: 70px; margin-bottom: 18px; place-items: center; border: 1px dashed var(--line-strong); border-radius: 21px; background: var(--surface); color: var(--text-faint); font-size: 27px; }
.no-event-state h1 { margin: 0; font-size: 25px; }
.no-event-state p { max-width: 480px; margin: 9px 0 19px; color: var(--text-soft); }

.toast-region {
  position: fixed;
  z-index: 1500;
  right: max(18px, calc(var(--safe-right) + 12px));
  bottom: max(18px, calc(var(--safe-bottom) + 12px));
  display: grid;
  width: min(360px, calc(100vw - 36px));
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  padding: 12px 14px;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
  box-shadow: var(--shadow);
  color: var(--text);
  pointer-events: auto;
  animation: toast-in 180ms ease both;
}

.toast::before { width: 8px; height: 8px; margin-top: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--green); content: ""; }
.toast.is-error::before { background: var(--red); }
.toast.is-warning::before { background: var(--amber); }
.toast div { min-width: 0; flex: 1; }
.toast strong { display: block; font-size: 11px; }
.toast p { margin: 2px 0 0; color: var(--text-soft); font-size: 10px; overflow-wrap: anywhere; }
.toast button { padding: 0; background: transparent; color: var(--text-faint); font-size: 15px; }

@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.modal {
  width: min(560px, calc(100vw - 28px));
  max-height: min(86vh, 760px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-raised);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
  color: var(--text);
}

.modal::backdrop { background: rgba(5, 10, 6, 0.62); backdrop-filter: blur(5px); }
.modal--compact { width: min(510px, calc(100vw - 28px)); }
.modal-card { display: flex; max-height: inherit; flex-direction: column; }
.modal-header { display: flex; padding: 20px 21px 14px; align-items: flex-start; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 21px; letter-spacing: -0.025em; }
.modal-header .icon-button { width: 34px; height: 34px; }
.modal-body { display: grid; padding: 20px 21px; overflow-y: auto; gap: 14px; }
.modal-body .field { margin: 0; }
.form-context { display: flex; padding: 12px 13px; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.form-context strong { overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.form-context span { flex: 0 0 auto; color: var(--text-faint); font-size: 10px; }
.modal-footer { display: flex; padding: 14px 21px 20px; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); }
.modal .form-message { padding: 0 21px; }
.prose h3 { margin: 4px 0 2px; font-size: 13px; }
.prose p { margin: 0 0 8px; color: var(--text-soft); font-size: 11px; line-height: 1.65; }
.prose .definition-callout { padding: 12px; border-radius: 10px; background: var(--amber-soft); color: var(--amber); font-weight: 700; }

.modal-card--qr { min-height: 440px; }
.qr-preview { display: grid; padding: 26px; flex: 1; place-content: center; justify-items: center; text-align: center; }
.qr-preview img { width: min(230px, 62vw); height: min(230px, 62vw); padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; object-fit: contain; }
.qr-preview .qr-placeholder { display: grid; width: 220px; height: 220px; max-width: 62vw; max-height: 62vw; place-items: center; border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--surface-soft); color: var(--text-faint); }
.qr-preview strong { margin-top: 15px; font-size: 14px; }
.qr-preview span { max-width: 400px; margin-top: 4px; color: var(--text-faint); font-size: 10px; overflow-wrap: anywhere; }
.qr-preview .qr-preview__destination { max-width: 430px; margin-top: 11px; padding: 8px 10px; border-radius: 8px; background: var(--surface-soft); color: var(--text-soft); }
.qr-secret-link { display: grid; width: min(430px, 100%); margin-top: 11px; padding: 11px 12px; gap: 5px; border: 1px solid var(--amber); border-radius: 10px; background: var(--amber-soft); text-align: left; }
.qr-secret-link strong { margin: 0; color: var(--amber); font-size: 10px; }
.qr-secret-link code { color: var(--text); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; user-select: text; }
.clipboard-fallback { position: fixed; top: -10000px; left: -10000px; width: 1px; height: 1px; opacity: 0; }

.permission-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-faint);
  font-size: 9px;
}

.permission-note::before { content: "锁"; font-size: 9px; }

.loading-sheen {
  position: relative;
  overflow: hidden;
  color: transparent !important;
  pointer-events: none;
}

.loading-sheen::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--surface-soft) 86%, transparent) 48%, transparent 75%);
  content: "";
  animation: sheen 1.2s linear infinite;
  transform: translateX(-100%);
}

@keyframes sheen { to { transform: translateX(100%); } }

.mobile-nav-dialog {
  width: min(520px, calc(100% - 24px));
  max-height: min(78vh, 720px);
  margin: auto 12px 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  background: var(--surface-raised);
  color: var(--text);
}

.mobile-nav-dialog::backdrop { background: rgba(6, 12, 8, .58); backdrop-filter: blur(3px); }
.mobile-nav-sheet { max-height: inherit; overflow-y: auto; padding: 0 16px calc(18px + var(--safe-bottom)); }
.mobile-nav-sheet > header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 0 12px; border-bottom: 1px solid var(--line); background: var(--surface-raised); }
.mobile-nav-sheet h2 { margin: 0; font-size: 20px; }
.mobile-nav-sheet nav { display: grid; gap: 4px; padding-top: 9px; }
.mobile-nav-group { margin: 12px 10px 4px; color: var(--text-faint); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.mobile-nav-sheet .nav-item { display: flex; min-height: 46px; }

@media (max-width: 1280px) {
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-card { min-height: 158px; }
}

@media (max-width: 1050px) {
  :root { --sidebar-width: 72px; }
  .sidebar { padding-right: 10px; padding-left: 10px; }
  .sidebar-brand { justify-content: center; padding-right: 0; padding-left: 0; }
  .sidebar-brand > div:last-child,
  .nav-label,
  .nav-section-label,
  .sidebar-foot { display: none; }
  .nav-item { justify-content: center; padding: 9px; }
  .nav-item.is-active::before { top: 10px; bottom: 10px; }
  .nav-badge { position: absolute; top: 4px; right: 5px; }
  .unified-nav .nav-item::after { position: absolute; z-index: 300; top: 50%; left: calc(100% + 10px); display: none; width: max-content; max-width: 210px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); box-shadow: var(--shadow-small); color: var(--text); content: attr(data-tooltip); font-size: 11px; transform: translateY(-50%); }
  .unified-nav .nav-item:hover::after, .unified-nav .nav-item:focus-visible::after { display: block; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .panel--wide { grid-column: 1 / -1; }
  .login-view { grid-template-columns: 1fr 440px; }
  .login-brand { padding-right: 6vw; padding-left: 6vw; }
  .support-brand { left: 6vw; }
}

@media (max-width: 840px) {
  .profile-copy,
  .profile-button > svg,
  .sync-state { display: none; }
  .event-control { flex: 1; }
  .select-wrap { min-width: 0; flex: 1; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading--hero { min-height: auto; }
  .split-grid,
  .feedback-layout { grid-template-columns: 1fr; }
  .feedback-detail { min-height: 300px; }
  .login-view { grid-template-columns: minmax(0, 1fr); }
  .login-brand { display: none; }
  .login-mobile-brand { display: flex; }
}

@media (max-width: 720px) {
  :root { --sidebar-width: 0px; --topbar-height: 128px; }
  .app-shell { display: block; padding-bottom: calc(66px + var(--safe-bottom)); }
  .sidebar {
    top: auto;
    right: 0;
    width: auto;
    height: calc(62px + var(--safe-bottom));
    padding: 5px max(6px, var(--safe-right)) max(5px, var(--safe-bottom)) max(6px, var(--safe-left));
    border-top: 1px solid var(--line);
    border-right: 0;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(18px);
  }
  .sidebar-brand { display: none; }
  .nav-list { display: flex; height: 100%; margin: 0; gap: 2px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-list .nav-section-label, .nav-list .nav-item:not(.is-mobile-primary) { display: none; }
  .nav-item { min-height: 50px; padding: 5px 2px; flex-direction: column; justify-content: center; gap: 2px; border-radius: 9px; font-size: 9px; line-height: 1.1; }
  .unified-nav .nav-item::after { display: none !important; }
  .nav-list .nav-item.is-mobile-primary { display: flex; min-width: 58px; flex: 1 0 58px; }
  .nav-list .nav-label--full { display: none; }
  .nav-list .nav-label--mobile { display: block; overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-more-button { display: flex; }
  .nav-item svg { width: 18px; height: 18px; }
  .nav-item.is-active { background: var(--surface-soft); color: var(--text); }
  .nav-item.is-active::before { top: auto; right: 30%; bottom: 0; left: 30%; width: auto; height: 3px; }
  .nav-badge { top: 0; right: calc(50% - 22px); }
  .workspace { margin-left: 0; }
  .workspace,
  .main-content,
  .page { max-width: 100%; min-width: 0; overflow-x: clip; }
  .table-wrap { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
  .table-wrap::before { position: sticky; left: 0; display: block; width: max-content; padding: 7px 14px 5px; color: var(--text-faint); content: "表格可左右滑动"; font-size: 10px; }
  .topbar { min-height: var(--topbar-height); padding: max(10px, calc(var(--safe-top) + 6px)) max(14px, calc(var(--safe-right) + 10px)) 10px max(14px, calc(var(--safe-left) + 10px)); align-items: stretch; flex-direction: column-reverse; gap: 6px; }
  .topbar-actions { min-height: 42px; justify-content: flex-end; }
  .topbar-actions::before { margin-right: auto; color: var(--text); content: "跑步维生素 · 现场运营"; font-size: 12px; font-weight: 820; }
  .profile-button { min-width: 40px; margin-left: 0; padding: 2px; }
  .avatar { width: 34px; height: 34px; }
  .event-control { width: 100%; }
  .event-control > label { display: none; }
  .event-state { flex: 0 0 auto; }
  .main-content { padding: 22px max(15px, calc(var(--safe-right) + 10px)) 32px max(15px, calc(var(--safe-left) + 10px)); }
  .page-heading { min-height: auto; margin-bottom: 20px; gap: 14px; }
  .page-heading h1 { font-size: 27px; }
  .heading-actions { width: 100%; flex-wrap: wrap; }
  .heading-actions .button { flex: 1; }
  .page-heading--hero .heading-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-heading--hero .heading-actions .button { width: 100%; justify-content: center; }
  .live-chip { display: none; }
  .notice-banner { padding: 13px; }
  .notice-banner > button { display: none; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .metric-card { min-height: 157px; padding: 14px; border-radius: 15px; }
  .metric-label { min-height: 31px; }
  .metric-value { font-size: 28px; }
  .overview-grid { grid-template-columns: 1fr; }
  .panel--wide { grid-column: auto; }
  .panel { padding: 17px; border-radius: 15px; }
  .flow-chart { height: 165px; }
  .ops-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-summary > div { min-height: 65px; padding: 12px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .segmented { width: 100%; overflow-x: auto; }
  .segmented button { min-width: max-content; min-height: 44px; flex: 1; }
  .search-box--toolbar { width: 100%; }
  .search-box input { height: 46px; }
  .inline-filter select,
  .panel-header > select { min-height: 44px; }
  .feedback-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-panel { padding-right: 0; padding-left: 0; }
  .modal { border-radius: 19px; }
  input,
  select,
  textarea,
  .field input,
  .field select,
  .field textarea,
  .modal-body input,
  .modal-body select,
  .modal-body textarea,
  .search-box input { font-size: 16px; }
  .help-dot { width: 44px; height: 44px; margin: -8px; }
}

@media (max-width: 440px) {
  .page-heading--hero h1 { font-size: 29px; }
  .page-heading--hero > div:first-child > p:last-child { font-size: 12px; }
  .metric-card { min-height: 151px; }
  .metric-icon { width: 31px; height: 31px; margin-bottom: 11px; }
  .metric-label { font-size: 10px; }
  .metric-foot { font-size: 8px; }
  .panel-header { gap: 8px; }
  .panel-meta { display: none; }
  .rank-row { grid-template-columns: minmax(80px, 1fr) minmax(60px, 1fr) auto; gap: 7px; }
  .login-panel { padding: 72px 22px 34px; }
  .login-panel h2 { font-size: 29px; }
  .login-theme { top: max(17px, calc(var(--safe-top) + 10px)); right: max(17px, calc(var(--safe-right) + 10px)); }
  .detail-grid { grid-template-columns: 1fr; }
  .modal-footer .button { flex: 1; }
}

@media (max-width: 360px) {
  .main-content { padding-right: 11px; padding-left: 11px; }
  .metric-grid { gap: 7px; }
  .metric-card { min-height: 146px; padding: 12px; }
  .metric-value { font-size: 25px; }
  .feedback-stat { padding: 11px; }
}

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

@media print {
  .sidebar,
  .topbar,
  .heading-actions,
  .button,
  .toast-region { display: none !important; }
  .workspace { margin: 0; }
  .main-content { width: 100%; padding: 0; }
  .panel,
  .metric-card { break-inside: avoid; box-shadow: none; }
}
