:root {
  color-scheme: light;
  --ink: #101927;
  --muted: #647083;
  --paper: #fffaf2;
  --panel: rgba(255, 255, 255, 0.86);
  --line: rgba(16, 25, 39, 0.12);
  --orange: #ff6b35;
  --orange-dark: #d94b1a;
  --yellow: #ffc857;
  --mint: #38c9a7;
  --blue: #1469ff;
  --danger: #d93b55;
  font-family: Inter, "Hiragino Sans", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 200, 87, 0.32), transparent 26rem),
    radial-gradient(circle at 92% 24%, rgba(56, 201, 167, 0.17), transparent 28rem),
    var(--paper);
}
button, input, textarea { font: inherit; }
button, .button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  color: white;
  background: var(--ink);
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: transform 140ms ease, opacity 140ms ease, box-shadow 140ms ease;
}
button:hover, .button:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(16, 25, 39, 0.16); }
button:disabled { cursor: not-allowed; opacity: 0.38; transform: none; box-shadow: none; }
button.primary, .button.primary { background: var(--orange); }
button.secondary, .button.secondary { color: var(--ink); background: white; border: 1px solid var(--line); }
button.danger { background: var(--danger); }
button.mint { background: #087e67; }
a { color: var(--blue); }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.78rem 0.9rem;
  color: var(--ink);
  background: white;
}
input[type="color"] { min-height: 48px; padding: 0.3rem; }
input:focus, textarea:focus { outline: 3px solid rgba(20, 105, 255, 0.18); border-color: var(--blue); }
label { display: grid; gap: 0.45rem; font-size: 0.86rem; font-weight: 800; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 64px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 50% 48% 52% 46%; background: var(--orange);
  box-shadow: inset -7px -6px 0 rgba(155, 33, 0, 0.12), 0 7px 0 rgba(16, 25, 39, 0.1);
  position: relative;
}
.brand-mark::after { content: ""; position: absolute; width: 12px; height: 10px; background: var(--orange-dark); bottom: -7px; left: 18px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.7rem, 4vw, 3.1rem); letter-spacing: -0.045em; margin-bottom: 0.25rem; }
h2 { font-size: 1.25rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 900; color: var(--orange-dark); }
.muted { color: var(--muted); }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 16px 48px rgba(16, 25, 39, 0.07);
  backdrop-filter: blur(14px);
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.status-pill { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.75rem; border-radius: 999px; background: #e8edf4; font-size: 0.8rem; font-weight: 900; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8893a4; }
.status-pill[data-status="open"] { background: #d9f9ed; color: #087e67; }
.status-pill[data-status="open"]::before { background: #0ca57f; box-shadow: 0 0 0 5px rgba(12, 165, 127, 0.12); }
.status-pill[data-status="burst"] { background: #fff0d1; color: #9a5000; }
.status-pill[data-status="burst"]::before { background: var(--orange); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { border-radius: 18px; background: #f4f6f9; padding: 16px; }
.stat span { color: var(--muted); display: block; font-size: 0.78rem; font-weight: 800; }
.stat strong { display: block; margin-top: 5px; font-size: clamp(1.35rem, 3vw, 2.2rem); letter-spacing: -0.04em; }
.session-card { display: grid; gap: 14px; }
.session-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.session-card h3 { margin-bottom: 0.25rem; }
.progress { height: 12px; overflow: hidden; border-radius: 999px; background: #e8edf4; }
.progress > i { display: block; height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, var(--yellow), var(--orange)); transition: width 240ms ease; }
.hidden { display: none !important; }
.toast { position: fixed; right: 22px; bottom: 22px; max-width: min(380px, calc(100% - 44px)); padding: 14px 18px; color: white; background: var(--ink); border-radius: 16px; box-shadow: 0 14px 50px rgba(0, 0, 0, 0.26); z-index: 100; }
.image-preview { width: 100%; height: 210px; object-fit: contain; border-radius: 18px; background: repeating-conic-gradient(#eef1f4 0 25%, white 0 50%) 50% / 24px 24px; }
.participants-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.88rem; }
.participants-table th, .participants-table td { padding: 0.75rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.participants-table th { color: var(--muted); font-size: 0.75rem; letter-spacing: .04em; }
.participant-online { color: #087e67; font-weight: 900; }
.participant-offline { color: var(--muted); }
.checkbox { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; }
.checkbox input { width: 18px; height: 18px; }
.hero { min-height: 100vh; display: grid; place-items: center; padding: 32px; }
.hero-card { width: min(920px, 100%); padding: clamp(28px, 7vw, 72px); border-radius: 36px; background: rgba(255,255,255,0.82); border: 1px solid var(--line); box-shadow: 0 30px 100px rgba(16,25,39,0.12); }
.hero p { font-size: 1.1rem; line-height: 1.8; max-width: 680px; }

@media (max-width: 760px) {
  .grid.two, .grid.three, .stats { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; }
  .shell { width: min(100% - 22px, 1180px); padding-top: 18px; }
  .panel { border-radius: 20px; padding: 17px; }
}
