:root {
  color-scheme: light;
  --ink: #1f2a37;
  --muted: #667085;
  --line: #d7dde8;
  --panel: #ffffff;
  --paper: #f4f7fb;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --danger: #b42318;
  --warn: #b54708;
  --ok: #047857;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #dff8f4 0, transparent 32rem), var(--paper);
}
button, input, textarea, select { font: inherit; }
button {
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: white;
  padding: 0.7rem 1rem;
  cursor: pointer;
}
button:hover { background: var(--brand-dark); }
button.danger { background: var(--danger); }
button.ghost { background: #e6eef7; color: var(--ink); }
.shell { width: min(1180px, calc(100% - 32px)); margin: 24px auto 48px; }
.hero, .login-panel, .workspace {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(31,42,55,.08);
}
.hero { display: flex; justify-content: space-between; gap: 24px; padding: 28px; margin-bottom: 18px; }
.eyebrow { color: var(--brand); letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
h1 { margin: .2rem 0; font-size: clamp(2rem, 4vw, 3.5rem); }
.hero-copy { color: var(--muted); max-width: 44rem; }
.session-card { align-self: start; border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; background: #f8fbff; }
.login-panel, .workspace { padding: 24px; }
.login-panel form, .grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; align-items: end; }
label { display: grid; gap: 6px; color: var(--muted); font-size: .92rem; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .72rem .8rem;
  background: white;
  color: var(--ink);
}
textarea { min-height: 78px; resize: vertical; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.tabs button { background: #e6eef7; color: var(--ink); }
.tabs button.active { background: var(--brand); color: #fff; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.metric { padding: 18px; border-radius: 18px; background: #eef8f6; border: 1px solid #c8ebe5; }
.metric strong { display: block; font-size: 2rem; color: var(--brand-dark); }
table { width: 100%; border-collapse: collapse; margin-top: 18px; background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
caption { text-align: left; padding: 12px 0; color: var(--muted); font-weight: 700; }
th, td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
th { background: #f1f5f9; color: #344054; }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; gap: 6px; align-items: center; border-radius: 999px; padding: 4px 9px; background: #eef2ff; }
.badge.enabled, .badge.published { color: var(--ok); background: #ecfdf3; }
.badge.disabled, .badge.withdrawn { color: var(--danger); background: #fff1f0; }
.badge.draft, .badge.paused { color: var(--warn); background: #fffaeb; }
.notice, .status { display: block; margin-top: 12px; color: var(--brand-dark); white-space: pre-wrap; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
[hidden] { display: none !important; }
