body.app {
  background: var(--bg);
  min-height: 100vh;
}

.shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.sidebar {
  background: var(--navy);
  color: #d5e0f2;
  padding: 18px 12px 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  padding: 4px 8px 16px;
  font-family: Sora, Inter, sans-serif;
  font-weight: 700;
}
.side-brand img { width: 28px; height: auto; background: white; border-radius: 8px; padding: 3px; }
.side-brand b { color: #74a0ff; }
.side-group {
  margin: 16px 8px 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8ea0bd;
}
.side-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  color: #d5e0f2;
  font-size: 14px;
  font-weight: 500;
}
.side-link.active, .side-link:hover { background: var(--blue); color: white; }

.workspace { min-width: 0; }
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; }
.club-name { font-family: Sora, Inter, sans-serif; font-weight: 700; }
.surface-select, .topbar select, .page input, .page select, .page textarea {
  min-height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: white;
  padding: 0 10px;
}
.banner {
  margin: 16px 20px 0;
  background: #edf3ff;
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink);
}
.page { padding: 20px; }
.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 16px; }
.page-head h1 { margin: 0; font-size: 32px; letter-spacing: -0.8px; }
.page-head p { margin: 6px 0 0; color: var(--muted); }

.form-grid, .filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}
.form-grid .btn { grid-column: 1 / -1; justify-self: start; min-width: 180px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.field.wide { grid-column: span 2; }
.page textarea { min-height: 88px; padding: 10px; }

.table-wrap { overflow: auto; background: white; border: 1px solid var(--line); border-radius: 16px; }
.table-wrap table { min-width: 640px; }
.empty {
  background: white;
  border: 1px dashed #c9d4e4;
  border-radius: 16px;
  padding: 28px;
  color: var(--muted);
}
.empty h2 { margin: 0 0 6px; color: var(--ink); font-size: 20px; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef3f8;
  font-size: 12px;
  font-weight: 700;
}
.pill.ok { background: #e7f7ef; color: #087a55; }
.pill.warn { background: #fff4e5; color: #9a5b00; }
.pill.bad { background: #fdecec; color: #a32626; }
.linkish { background: none; border: 0; color: var(--blue); font-weight: 700; cursor: pointer; padding: 0; min-height: 44px; }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.stat span { color: var(--muted); font-size: 13px; }
.stat strong { display: block; margin-top: 4px; font-family: Sora, Inter, sans-serif; font-size: 28px; letter-spacing: -0.6px; }

.stage {
  min-height: calc(100vh - 64px);
  background: #06122c;
  color: white;
}
.stage-head, .kiosk-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
}
.board { padding: 8px 24px 32px; display: grid; gap: 12px; }
.board article, .kiosk-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px 20px;
}
.kiosk {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 320px 1fr;
}
.kiosk-list { background: white; border-right: 1px solid var(--line); }
.kiosk-list button {
  width: 100%;
  text-align: left;
  background: white;
  border: 0;
  border-bottom: 1px solid var(--line);
  min-height: 56px;
  padding: 8px 16px;
  cursor: pointer;
}
.kiosk-list button:hover, .kiosk-list button.on { background: #edf3ff; }
.kiosk-main { display: grid; place-items: center; padding: 24px; }
.public-hero {
  background: var(--navy);
  color: white;
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 16px;
}
.public-hero h1 { margin: 0 0 8px; font-size: 40px; }

.danger { color: var(--error); border-color: #f0c9c9; }

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .form-grid, .kpi-row, .kiosk { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .form-grid, .kpi-row, .kiosk, .topbar { grid-template-columns: 1fr; }
  .topbar { height: auto; flex-wrap: wrap; padding: 12px; }
  .page-head { flex-direction: column; align-items: flex-start; }
}
