:root {
  --bg: #eef2f7;
  --panel: #fff;
  --border: #dbe3ef;
  --text: #1e293b;
  --muted: #64748b;
  --accent: #2563eb;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 48px 20px 32px;
  display: flex;
  justify-content: center;
}

.demo-badge {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 5px 10px;
  border-radius: 8px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 600;
}

.demo-back {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 200;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  box-shadow: var(--shadow);
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  padding: 10px 16px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 300;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hub-frame {
  width: min(100%, 680px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hub-frame-head {
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}

.hub-frame-crumb {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.hub-frame-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.hub-frame-variant {
  font-weight: 500;
  color: var(--muted);
}

.hub-frame-body {
  padding: 16px 18px 20px;
}

.slot-label--stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  line-height: 1.25;
}

.slot-label-main {
  font-size: 10px;
  font-weight: 700;
  color: #334155;
}

.slot-label-hint {
  font-size: 9px;
  font-weight: 500;
  color: #64748b;
}

.types-trigger {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #64748b;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  cursor: help;
}

.types-trigger:hover {
  color: #334155;
}

.slot-empty {
  opacity: 0.55;
}

.slot-btn {
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: inherit;
}

.slot-btn:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}
