/* ==========================================================================
   Rise Campaign — design system
   80% clean editorial UI + 20% neo-brutalism.
   Every brutal accent is scaled from --brutal (0–1) so the dashboard slider
   can tune the whole visual language from one variable.
   ========================================================================== */

:root {
  --ink: #151515;
  --ink-soft: #3d3d39;
  --paper: #f6f5f0;
  --white: #fffefb;
  --line: #dedcd4;
  --muted: #6e6d66;
  --accent: #ff5c36;
  --accent-dark: #d94220;
  --lime: #d8ff5a;
  --blue: #2f6bff;
  --green: #1a8a5a;
  --red: #c0362c;
  --brutal: 0.2;
  /* JS overwrites --b and --offset when the brutalism slider changes. */
  --b: 1.6px;
  --offset: 2px;
  --radius: 10px;
  --radius-sm: 6px;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "DM Serif Display", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; }

h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 6vw, 5.1rem); }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.55rem; font-weight: 700; }

a { color: inherit; }

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.mono, .eyebrow { font-family: var(--mono); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.muted { color: var(--muted); }

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
}
.skip-link:focus { left: 12px; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border: var(--b) solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 54px; padding: 14px 24px; font-size: 1rem; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 0.8rem; }

.btn-primary {
  background: var(--accent);
  color: #1a1008;
  border-color: var(--ink);
  box-shadow: var(--offset) var(--offset) 0 var(--ink);
}
.btn-primary:hover { background: #ff7555; box-shadow: calc(var(--offset) + 2px) calc(var(--offset) + 2px) 0 var(--ink); }

.btn-ink {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn-ink:hover { background: #2e2e29; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--white); }

.btn-whatsapp {
  background: #25d366;
  color: #0b2414;
  border-color: var(--ink);
  box-shadow: var(--offset) var(--offset) 0 var(--ink);
}
.wa-icon { font-size: 1.2rem; line-height: 1; }

.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 245, 240, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: var(--b) solid var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  border: var(--b) solid var(--ink);
  border-radius: 4px;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
}
.brand-dot { color: var(--white); }
.brand-mark-small { width: 30px; height: 30px; font-size: 1.1rem; }
.brand-name { font-weight: 700; letter-spacing: -0.02em; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { font-size: 0.9rem; font-weight: 600; text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover { color: var(--accent-dark); }
.header-cta { margin-left: 6px; }

.ticker {
  overflow: hidden;
  background: var(--ink);
  color: var(--lime);
  border-bottom: var(--b) solid var(--ink);
}
.ticker-track {
  display: flex;
  width: max-content;
  padding: 7px 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  animation: marquee 26s linear infinite;
}
@keyframes marquee { to { transform: translateX(-33.333%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Hero -------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 70px;
  align-items: center;
  padding-block: 90px 110px;
}
.hero-copy { position: relative; }
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 92, 54, 0.16);
}
.hero h1 { margin-bottom: 22px; max-width: 12ch; }
.hero-description { max-width: 52ch; font-size: 1.08rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.sticker {
  position: absolute;
  top: -58px;
  right: 4%;
  display: grid;
  place-content: center;
  width: 86px;
  height: 86px;
  background: var(--lime);
  border: var(--b) solid var(--ink);
  border-radius: 50%;
  box-shadow: var(--offset) var(--offset) 0 var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(11deg);
}

.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 46px; }
.stat-card {
  flex: 1 1 130px;
  padding: 14px 16px;
  background: var(--white);
  border: var(--b) solid var(--ink);
  border-radius: var(--radius);
}
.stat-card-brutal { background: var(--ink); color: var(--white); box-shadow: var(--offset) var(--offset) 0 var(--accent); }
.stat-value { display: block; font-family: var(--serif); font-size: 1.75rem; line-height: 1.2; }
.stat-label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stat-card-brutal .stat-label { color: #b9b9b2; }

.hero-visual { position: relative; }
.poster {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: 22px;
  background: var(--ink);
  color: var(--white);
  border: var(--b) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: calc(var(--offset) * 2) calc(var(--offset) * 2) 0 var(--accent);
  overflow: hidden;
}
.poster-top, .poster-bottom { display: flex; align-items: center; justify-content: space-between; }
.poster-tag { font-size: 0.7rem; letter-spacing: 0.12em; color: #c9c9c2; }
.poster-bars { display: flex; gap: 5px; }
.poster-bars i { display: block; width: 18px; height: 5px; background: var(--accent); }
.poster-bars i:nth-child(2) { background: var(--lime); }
.poster-bars i:nth-child(3) { background: #fff; }
.poster-art { position: relative; flex: 1; display: grid; place-content: center; text-align: center; }
.poster-ring {
  position: absolute;
  width: 290px;
  height: 290px;
  border: 2px dashed rgba(255,255,255,0.35);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .poster-ring { animation: none; } }
.poster-sun { position: absolute; top: 24px; font-size: 2.4rem; color: var(--lime); }
.poster-word { font-family: var(--serif); font-size: clamp(4rem, 9vw, 7rem); line-height: 0.9; letter-spacing: -0.04em; }
.poster-sub { margin-top: 10px; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.42em; color: var(--accent); }
.poster-bottom { padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.18); font-size: 0.64rem; letter-spacing: 0.1em; }
.poster-arrow { font-size: 1.4rem; color: var(--lime); }
.poster-caption { margin: 26px 0 0; font-size: 0.78rem; color: var(--muted); text-align: center; }

/* Sections ---------------------------------------------------------------- */

.join-section, .community-section, .about-section { padding-block: 86px; }
.join-section { border-top: var(--b) solid var(--ink); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}
.section-head h2 { margin-bottom: 0; }
.section-lead { max-width: 38ch; margin-bottom: 4px; color: var(--muted); font-size: 0.93rem; }

/* Wizard ------------------------------------------------------------------ */

.wizard {
  display: grid;
  grid-template-columns: 210px 1fr;
  background: var(--white);
  border: var(--b) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--offset) var(--offset) 0 var(--ink);
  overflow: hidden;
}
.wizard-steps {
  margin: 0;
  padding: 30px 22px;
  list-style: none;
  background: var(--paper);
  border-right: var(--b) solid var(--ink);
}
.wizard-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}
.wizard-steps li span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-family: var(--mono);
  font-size: 0.72rem;
}
.wizard-steps li.is-active { background: var(--ink); color: var(--white); }
.wizard-steps li.is-active span { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.wizard-steps li.is-done span { background: var(--lime); border-color: var(--ink); }

.wizard-body { padding: 34px 38px 38px; }
.wizard-panel { display: none; }
.wizard-panel.is-active { display: block; }
.wizard-panel[hidden] { display: none !important; }
.wizard-panel h3 { margin-bottom: 10px; }
.panel-copy { max-width: 60ch; color: var(--ink-soft); }
.panel-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }

.field-grid, .settings-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field-label { font-size: 0.84rem; font-weight: 700; }
.field-label em { font-style: normal; font-weight: 400; color: var(--muted); }
.field-hint { font-size: 0.76rem; color: var(--muted); }
.field input:not([type="checkbox"]):not([type="range"]):not([type="color"]),
.field textarea,
.field select,
.table-tools input,
.table-tools select,
.key-field input {
  width: 100%;
  padding: 11px 13px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field textarea { resize: vertical; }
.field-error { min-height: 0; color: var(--red); font-size: 0.78rem; font-weight: 600; }
.field.invalid input { border-color: var(--red); }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; font-size: 0.86rem; }
.checkbox-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { min-height: 1.2em; font-size: 0.82rem; color: var(--muted); }

.share-progress { display: flex; align-items: center; gap: 14px; margin: 24px 0; }
.share-progress-bar { flex: 1; height: 12px; background: var(--paper); border: var(--b) solid var(--ink); border-radius: 99px; overflow: hidden; }
.share-progress-bar span { display: block; width: 0; height: 100%; background: var(--accent); transition: width 300ms ease; }
.share-progress .mono { font-size: 0.72rem; white-space: nowrap; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.reference-box {
  display: inline-block;
  margin: 8px 0 18px;
  padding: 12px 16px;
  background: var(--lime);
  border: var(--b) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--offset) var(--offset) 0 var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.done-badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  background: var(--lime);
  border: var(--b) solid var(--ink);
  border-radius: 50%;
  box-shadow: var(--offset) var(--offset) 0 var(--ink);
  font-size: 1.6rem;
  font-weight: 700;
}

/* Community --------------------------------------------------------------- */

.community-section { background: var(--white); border-block: var(--b) solid var(--ink); }
.community-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.community-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--paper);
  border: var(--b) solid var(--ink);
  border-radius: var(--radius);
}
.community-list .avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  background: var(--accent);
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.1rem;
}
.community-list .who { font-weight: 700; font-size: 0.92rem; }
.community-list .meta { font-family: var(--mono); font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.community-empty { grid-column: 1 / -1; color: var(--muted); }

/* About ------------------------------------------------------------------- */

.about-section { display: grid; grid-template-columns: 1fr 0.8fr; gap: 60px; align-items: center; }
.about-copy h2 { margin-bottom: 18px; }
.about-copy > p:not(.eyebrow) { color: var(--ink-soft); }
.check-list { margin: 22px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; font-size: 0.94rem; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  background: var(--lime);
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}
.about-card {
  padding: 28px;
  background: var(--lime);
  border: var(--b) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--offset) var(--offset) 0 var(--ink);
}
.about-card > .mono { font-size: 0.68rem; letter-spacing: 0.1em; }
.about-card h3 { margin: 14px 0 10px; }
.about-card p { font-size: 0.9rem; }

/* Footer ------------------------------------------------------------------ */

.site-footer { padding: 40px 0; background: var(--ink); color: #e8e7df; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: start; }
.site-footer .brand-mark { background: var(--accent); }
.site-footer .mono { margin: 8px 0 0; font-size: 0.72rem; letter-spacing: 0.08em; }
.disclaimer { max-width: 60ch; margin: 0; font-size: 0.8rem; color: #b9b9b2; }
.footer-meta { text-align: right; }

/* ==========================================================================
   Dashboard
   ========================================================================== */

.dash-body { background: #eeece5; }
.dash-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.dash-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  background: var(--ink);
  color: var(--white);
}
.dash-brand { padding: 0 8px 26px; }
.dash-brand .brand-name { color: var(--white); }
.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  background: transparent;
  color: #bcbcb5;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}
.dash-nav-item:hover { color: var(--white); background: #24241f; }
.dash-nav-item.is-active { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.dash-sidebar-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid #33332d; }
.dash-sidebar-foot > .mono { padding-inline: 12px; font-size: 0.62rem; letter-spacing: 0.12em; color: #8f8f88; }
.connection-status { display: flex; align-items: center; gap: 8px; margin: 6px 0 16px; padding-inline: 12px; font-size: 0.78rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #9a9a92; }
.connection-status.online .status-dot { background: #6ee787; }
.connection-status.offline .status-dot { background: #ff6b5e; }

.dash-main { min-width: 0; padding: 0 34px 60px; }
.dash-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 24px;
  border-bottom: var(--b) solid var(--ink);
  margin-bottom: 28px;
}
.dash-topbar h1 { margin: 0; font-family: var(--sans); font-size: 2rem; font-weight: 700; }
.topbar-actions { display: flex; align-items: end; gap: 10px; }
.key-field { display: flex; flex-direction: column; gap: 5px; }
.key-field .mono { font-size: 0.6rem; letter-spacing: 0.12em; color: var(--muted); }
.key-field input { width: 220px; padding: 8px 10px; font-family: var(--mono); font-size: 0.8rem; }

.dash-alert {
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #ffe4df;
  border: var(--b) solid var(--red);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}
.dash-view { display: none; }
.dash-view.is-active { display: block; }
.dash-view[hidden] { display: none !important; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.metric-card {
  padding: 20px;
  background: var(--white);
  border: var(--b) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--offset) var(--offset) 0 var(--ink);
}
.metric-card > .mono { margin-bottom: 10px; font-size: 0.64rem; letter-spacing: 0.1em; color: var(--muted); }
.metric-card strong { display: block; font-family: var(--serif); font-size: 2.3rem; font-weight: 400; line-height: 1; }
.metric-hint { display: block; margin-top: 8px; font-size: 0.75rem; color: var(--muted); }
.metric-card-accent { background: var(--accent); }
.metric-card-accent > .mono, .metric-card-accent .metric-hint { color: #4a1d11; }
.metric-card-dark { background: var(--ink); color: var(--white); }
.metric-card-dark > .mono, .metric-card-dark .metric-hint { color: #b4b4ad; }

.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.panel {
  padding: 22px;
  background: var(--white);
  border: var(--b) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--offset) var(--offset) 0 var(--ink);
}
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 20px; }
.panel-head h2 { margin: 0; font-family: var(--sans); font-size: 1.25rem; font-weight: 700; }
.panel-head .eyebrow { margin-bottom: 5px; }
.panel-tag { padding: 4px 8px; background: var(--lime); border: 1px solid var(--ink); border-radius: 4px; font-size: 0.62rem; }
.panel-head-tools { align-items: end; flex-wrap: wrap; }
.table-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.table-tools input { width: 230px; padding: 8px 10px; font-size: 0.82rem; }
.table-tools select { padding: 8px 10px; font-size: 0.82rem; }

.chart { display: flex; align-items: end; gap: 10px; height: 210px; padding-top: 10px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: end; }
.chart-bar-wrap { display: flex; align-items: end; width: 100%; flex: 1; border-bottom: var(--b) solid var(--ink); }
.chart-bar {
  width: 100%;
  min-height: 3px;
  background: var(--accent);
  border: 1px solid var(--ink);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  transition: height 240ms ease;
}
.chart-col span { font-family: var(--mono); font-size: 0.62rem; color: var(--muted); white-space: nowrap; }
.chart-col strong { font-family: var(--mono); font-size: 0.7rem; }

.breakdown { display: flex; flex-direction: column; gap: 18px; }
.breakdown-group > .mono { display: block; margin-bottom: 10px; font-size: 0.65rem; letter-spacing: 0.1em; color: var(--muted); }
.breakdown-row { display: grid; grid-template-columns: 90px 1fr 34px; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.8rem; }
.breakdown-row .bar { height: 12px; background: var(--paper); border: 1px solid var(--ink); border-radius: 99px; overflow: hidden; }
.breakdown-row .bar i { display: block; height: 100%; background: var(--ink); }
.breakdown-row:nth-child(3) .bar i { background: var(--green); }
.breakdown-row:nth-child(4) .bar i { background: var(--red); }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.data-table th, .data-table td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table th { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.data-table tbody tr:hover { background: var(--paper); }
.data-table .mono { font-size: 0.78rem; }
.data-table .sample-tag { display: inline-block; margin-left: 6px; padding: 1px 5px; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; font-family: var(--mono); font-size: 0.58rem; text-transform: uppercase; color: var(--muted); }
.pill { display: inline-block; padding: 3px 9px; border: 1px solid var(--ink); border-radius: 99px; font-family: var(--mono); font-size: 0.64rem; font-weight: 600; text-transform: uppercase; }
.pill-new,
.pill-pending { background: var(--lime); }
.pill-approved { background: #d7f5e4; color: #145b3b; }
.pill-rejected { background: #ffe0dc; color: #8e2b22; }
.row-actions { display: flex; gap: 6px; }
.icon-btn { padding: 4px 8px; background: var(--white); border: 1px solid var(--ink); border-radius: 4px; font-size: 0.72rem; font-weight: 700; }
.icon-btn:hover { background: var(--lime); }
.icon-btn.danger:hover { background: #ffd9d4; }
.table-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 0.78rem; }
.pager { display: flex; align-items: center; gap: 10px; }

.settings-panel { max-width: 820px; }
.settings-form { grid-template-columns: 1fr 1fr; }
.poster-preview {
  display: block;
  max-width: 220px;
  max-height: 140px;
  object-fit: contain;
  margin-top: 10px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.poster-preview[hidden] { display: none; }
.field input[type="file"] { padding: 9px; font-size: 0.8rem; }
.range-field input { width: 100%; accent-color: var(--accent); }
.range-field output { font-family: var(--mono); color: var(--accent-dark); }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  max-width: 340px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  border: var(--b) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--offset) var(--offset) 0 var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 50px; padding-top: 70px; }
  .poster { min-height: 380px; }
  .about-section { grid-template-columns: 1fr; gap: 30px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1180px); }
  .site-nav { display: none; }
  .header-inner { min-height: 62px; }
  .hero { padding-block: 60px 70px; }
  .sticker { top: -46px; right: 0; width: 70px; height: 70px; font-size: 0.58rem; }
  .section-head { flex-direction: column; align-items: start; gap: 14px; }
  .wizard { grid-template-columns: 1fr; }
  .wizard-steps { display: flex; border-right: 0; border-bottom: var(--b) solid var(--ink); padding: 14px; overflow-x: auto; }
  .wizard-steps li { white-space: nowrap; }
  .wizard-body { padding: 24px 20px; }
  .field-grid, .settings-form { grid-template-columns: 1fr; }
  .community-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; height: auto; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; }
  .dash-nav-item { width: auto; }
  .dash-sidebar-foot { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
  .connection-status { margin: 0; }
  .dash-main { padding: 0 16px 50px; }
  .dash-topbar { flex-direction: column; align-items: start; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .topbar-actions { width: 100%; }
  .key-field { flex: 1; }
  .key-field input { width: 100%; }
}
