@font-face {
  font-family: "Heebo";
  src: url("/cp-static/Heebo-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #f5f7ff;
  --card: #ffffff;
  --text: #080d17;
  --muted: #3d4c66;
  --line: #e2e8f8;
  --primary: #2962ec;
  --accent: #6b95ff;
  --danger: #b42318;
  --ok: #0f7b4c;
  --shadow: 0 10px 30px rgba(23, 43, 92, 0.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Heebo", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a { color: var(--primary); }
.shell { display: flex; min-height: 100vh; }
.side {
  width: 220px;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.brand { display: flex; flex-direction: column; margin-bottom: 18px; }
.brand span, .fine, .eyebrow { color: var(--muted); }
.nav-link, .tab {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
}
.nav-link.active, .tab.active { background: #fff; color: var(--primary); font-weight: 700; }
.side-note { margin-top: auto; }
.main { flex: 1; padding: 32px 28px 96px; max-width: 1100px; }
.mobile-bar, .tabbar { display: none; }
h1 { font-size: 2rem; margin: 0 0 8px; letter-spacing: -0.03em; }
h2 { margin: 0; font-size: 1.15rem; }
p { line-height: 1.55; }
.top, .card-h, .actions { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 18px 0; }
.card {
  background: var(--card);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.card.narrow { max-width: 440px; margin: 8vh auto; }
.stack { display: flex; flex-direction: column; gap: 10px; }
label { font-weight: 600; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: var(--text);
}
textarea { min-height: 120px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.danger { color: var(--danger); border-color: #f3c4c0; }
.btn.ghost { background: transparent; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.chip { background: #eef3ff; color: var(--primary); border-radius: 999px; padding: 4px 10px; font-size: 0.85rem; }
.chip.wait { background: #fff6e8; color: #8a5a00; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0; }
.stat { background: #fff; border-radius: 14px; padding: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.stat span { color: var(--muted); font-size: 0.85rem; }
dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 12px 0; }
dt { color: var(--muted); font-size: 0.8rem; }
dd { margin: 0; }
.notice { background: #e8f8ef; color: var(--ok); border-radius: 12px; padding: 10px 12px; }
.error { background: #fff1f0; color: var(--danger); border-radius: 12px; padding: 10px 12px; }
.feed, .names { padding: 0; list-style: none; }
.feed li, .names li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.check { display: flex; gap: 8px; align-items: center; min-height: 44px; font-weight: 500; }
.check input { width: auto; }
.actions { margin: 12px 0; }
.danger h2 { color: var(--danger); }
.empty { padding: 28px; text-align: center; }
.back { text-decoration: none; }
code { font-family: ui-monospace, monospace; }
@media (max-width: 860px) {
  .side { display: none; }
  .mobile-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg);
    padding: 12px 16px;
    z-index: 2;
  }
  .main { padding: 8px 16px 108px; }
  .tabbar {
    display: flex;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    justify-content: space-around;
    z-index: 3;
  }
  .tab { flex: 1; justify-content: center; font-size: 0.85rem; }
  h1 { font-size: 1.6rem; }
}
