:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --primary: #059669;
  --primary-hover: #047857;
  --primary-light: #ecfdf5;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 16px rgba(15, 23, 42, 0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.hidden { display: none !important; }

.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--primary-hover); }
.logo-icon { font-size: 1.4rem; }

.main { max-width: 900px; margin: 0 auto; padding: 20px 16px 40px; }

.hero { text-align: center; margin-bottom: 28px; }
.hero-compact h1 { font-size: 1.5rem; color: var(--primary-hover); margin-bottom: 8px; }
.hero p { color: var(--text-muted); font-size: 14px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.card h2 { font-size: 15px; margin-bottom: 12px; }
.card label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.card input[type="text"], .card input[type="password"], .card input[type="date"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; margin-bottom: 12px;
}

.join-card { max-width: 420px; margin: 0 auto 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; color: var(--text); font-size: 14px; cursor: pointer; text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(5, 150, 105, 0.15);
}
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; width: 100%; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn-sm { padding: 6px 12px; font-size: 13px; width: auto; }
.btn-danger { color: #dc2626; border-color: #fecaca; }

.hint { font-size: 13px; color: var(--text-muted); }
.home-admin-entry { text-align: center; margin-top: 16px; }

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

.session-list { display: flex; flex-direction: column; gap: 10px; }
.session-item {
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--primary-light);
}
.session-item-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.badge { font-size: 12px; color: var(--primary); background: #d1fae5; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }

.modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(15, 23, 42, 0.45);
}
.modal-card {
  background: #fff; border-radius: 12px; padding: 24px; width: 100%; max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.modal-card input { width: 100%; padding: 10px 12px; margin: 12px 0; border: 1px solid var(--border); border-radius: 8px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 12px; }
.pin-display { font-size: 1.25rem; letter-spacing: 2px; color: var(--primary); }

.site-footer { text-align: center; padding: 12px 16px; font-size: 11px; color: #94a3b8; border-top: 1px solid var(--border); background: #f8fafc; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #1e293b; color: #fff; padding: 10px 20px; border-radius: 8px; z-index: 400; font-size: 14px;
  max-width: 90vw;
}
