/* ProofWall — design system
   Calm, light, card-based. Geist for UI, Newsreader for display type. */

:root {
  --bg: #ffffff;
  --site: #fafafa;
  --fg: #0a0a0a;
  --fg-2: #262626;
  --fg-3: #525252;
  --muted: #737373;
  --subtle: #a3a3a3;
  --border: #e5e5e5;
  --border-soft: #f0f0f0;
  --hover: #f5f5f5;
  --primary: #171717;
  --primary-fg: #fafafa;
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #f59e0b;

  --accent: #171717;
  --accent-fg: #ffffff;

  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow: 0 0 0 1px #0000000f, 0 1px 2px -1px #0000000f, 0 2px 4px 0 #0000000a;
  --shadow-hover: 0 0 0 1px #00000017, 0 1px 2px -1px #00000014, 0 4px 8px 0 #0000000d;
  --shadow-lg: 0 0 0 1px #0000000d, 0 1px 2px #0000000a, 0 12px 32px -12px #0000001f;
  --ring: 0 0 0 3px #0000000f;

  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.2, 0, 0, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ol,
ul {
  margin: 0;
  padding: 0;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--hover);
  border-radius: 5px;
  padding: 1px 5px;
}

:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 2px;
}

::selection {
  background: #171717;
  color: #fafafa;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.truncate {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.row-sm {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.icon {
  flex: none;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition:
    background-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease),
    color 0.15s var(--ease),
    opacity 0.15s var(--ease),
    transform 0.1s var(--ease);
}

.btn:active:not(:disabled) {
  transform: translateY(0.5px) scale(0.99);
}

.btn:disabled,
.btn[aria-busy='true'] {
  opacity: 0.6;
  cursor: default;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 1px 2px #00000026, inset 0 1px 0 #ffffff1a;
}

.btn-primary:hover:not(:disabled) {
  background: #2a2a2a;
}

.btn-secondary {
  background: var(--bg);
  color: var(--fg-2);
  box-shadow: var(--shadow);
}

.btn-secondary:hover:not(:disabled) {
  background: #fcfcfc;
  color: var(--fg);
  box-shadow: var(--shadow-hover);
}

.btn-secondary.is-on {
  background: var(--hover);
  color: var(--fg);
}

.btn-ghost {
  color: var(--fg-3);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--hover);
  color: var(--fg);
}

.btn-danger {
  background: var(--bg);
  color: var(--danger);
  box-shadow: 0 0 0 1px #fecaca, 0 1px 2px #0000000a;
}

.btn-danger:hover:not(:disabled) {
  background: #fef2f2;
}

.btn-danger-hover:hover:not(:disabled) {
  background: #fef2f2;
  color: var(--danger);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 1px 2px #00000026, inset 0 1px 0 #ffffff26;
}

.btn-accent:hover:not(:disabled) {
  filter: brightness(1.08) saturate(1.05);
}

.btn-sm {
  height: 30px;
  padding: 0 11px;
  font-size: 13px;
  gap: 6px;
}

.btn-lg {
  height: 42px;
  padding: 0 18px;
  font-size: 14.5px;
  border-radius: var(--radius);
}

.btn-icon {
  width: 34px;
  padding: 0;
}

.btn-icon.btn-sm {
  width: 30px;
}

.btn-block {
  width: 100%;
}

.file-btn {
  position: relative;
  overflow: hidden;
}

.file-btn input[type='file'] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.file-btn:focus-within {
  outline: 2px solid #171717;
  outline-offset: 2px;
}

/* ── Cards ───────────────────────────────────────────────────────────── */

.card {
  background: var(--bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-soft);
}

.card-title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.5;
}

.card-body {
  padding: 20px;
}

/* ── Pills & badges ──────────────────────────────────────────────────── */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-3);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--border);
  white-space: nowrap;
}

.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--subtle);
}

.pill-pending .dot {
  background: var(--warning);
  box-shadow: 0 0 0 3px #f59e0b26;
}

.pill-approved .dot {
  background: #22c55e;
  box-shadow: 0 0 0 3px #22c55e26;
}

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

.pill-featured {
  height: 20px;
  padding: 0 7px;
  gap: 4px;
  font-size: 11.5px;
  color: var(--fg-2);
  background: var(--hover);
  box-shadow: none;
}

.pill-muted {
  background: var(--hover);
  box-shadow: none;
}

/* ── Stars & avatars ─────────────────────────────────────────────────── */

.stars {
  display: inline-flex;
  align-items: center;
  gap: 1.5px;
  flex: none;
  color: #e5e5e5;
}

.stars .star.is-on {
  color: #171717;
}

.accent-stars .star.is-on {
  color: var(--accent);
}

.avatar {
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--hover);
  box-shadow: 0 0 0 1px #0000000d;
}

.avatar-fallback {
  display: inline-grid;
  place-items: center;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: inset 0 0 0 1px #0000000a;
}

.space-logo {
  flex: none;
  object-fit: cover;
  background: var(--bg);
  box-shadow: 0 0 0 1px #0000000f;
}

.space-logo-fallback {
  display: inline-grid;
  place-items: center;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #0000001a;
}

/* ── App shell ───────────────────────────────────────────────────────── */

.app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--site);
  border-right: 1px solid var(--border);
  padding: 14px 12px 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.015em;
  padding: 6px 8px 20px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
  margin: 0 -4px;
  padding: 0 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  color: var(--fg-3);
  font-size: 13.5px;
  font-weight: 450;
  transition: background-color 0.12s var(--ease), color 0.12s var(--ease);
}

.nav-item .icon {
  color: var(--muted);
}

.nav-item:hover {
  background: #f0f0f0;
  color: var(--fg);
}

.nav-item.is-active {
  background: #ececec;
  color: var(--fg);
  font-weight: 500;
}

.nav-item.is-active .icon {
  color: var(--fg);
}

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

.nav-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 6px 6px 10px;
  font-size: 12px;
  color: var(--subtle);
  font-weight: 500;
}

.nav-add {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: var(--muted);
}

.nav-add:hover {
  background: #ececec;
  color: var(--fg);
}

.nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: var(--shadow);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fg-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px 0 6px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
}

.me-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: var(--shadow);
  color: var(--fg-3);
  flex: none;
}

.me {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.me-name {
  font-size: 13px;
  font-weight: 500;
}

.me-sub {
  font-size: 12px;
  color: var(--muted);
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  background: #ffffffd9;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--fg);
}

.crumbs .current {
  color: var(--fg);
  font-weight: 500;
}

.crumb-sep {
  color: var(--subtle);
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  margin-left: -8px;
}

.scrim {
  display: none;
}

.page {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 32px 96px;
}

.narrow {
  max-width: 600px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.page-title {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.028em;
}

.page-sub {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin-top: 8px;
  max-width: 560px;
}

/* ── Overview ────────────────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat {
  padding: 16px 18px 15px;
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
}

.stat-value {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.stat-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  min-height: 18px;
  display: flex;
  align-items: center;
}

.stat-meta .up {
  color: var(--success);
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.review-row {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-soft);
  transition: opacity 0.2s var(--ease), background-color 0.2s;
}

.review-row:first-child {
  border-top: 0;
}

.review-main {
  flex: 1;
  min-width: 0;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.review-name {
  font-weight: 600;
  font-size: 13.5px;
}

.review-time {
  font-size: 12px;
  color: var(--subtle);
  white-space: nowrap;
}

.review-text {
  color: var(--fg-3);
  font-size: 13.5px;
  line-height: 1.55;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-space {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.review-space:hover {
  color: var(--fg);
}

.review-actions {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.space-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-top: 1px solid var(--border-soft);
  transition: background-color 0.12s;
}

.space-row:first-child {
  border-top: 0;
}

.space-row:hover {
  background: #fcfcfc;
}

.space-row:last-child {
  border-radius: 0 0 12px 12px;
}

.space-row-main {
  flex: 1;
  min-width: 0;
}

.space-row-name {
  font-weight: 500;
  font-size: 14px;
}

.space-row-meta {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 1px;
}

.space-row-meta .sep {
  margin: 0 6px;
  color: var(--subtle);
}

.space-row-meta .attention {
  color: #b45309;
}

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

/* Welcome (first run) */

.welcome {
  max-width: 820px;
  margin: 0 auto;
}

.welcome-hero {
  text-align: center;
  padding: 24px 0 40px;
}

.welcome-hero .page-sub {
  margin: 10px auto 28px;
}

.welcome-hero .page-title {
  font-size: 40px;
}

.welcome-art {
  position: relative;
  height: 150px;
  max-width: 360px;
  margin: 0 auto 32px;
}

.mini-card {
  position: absolute;
  width: 168px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
}

.mini-stars {
  display: flex;
  gap: 2px;
  color: #171717;
}

.mini-line {
  height: 6px;
  border-radius: 6px;
  background: #ececec;
}

.mini-line.short {
  width: 60%;
}

.mini-1 {
  left: 0;
  top: 26px;
  transform: rotate(-6deg);
}

.mini-2 {
  left: 50%;
  top: 0;
  z-index: 2;
  transform: translateX(-50%);
}

.mini-3 {
  right: 0;
  top: 30px;
  transform: rotate(5deg);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.step {
  padding: 18px 18px 20px;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hover);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.55;
}

/* ── Space pages ─────────────────────────────────────────────────────── */

.space-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.space-head-main {
  min-width: 0;
}

.space-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.space-head .page-title {
  font-size: 32px;
}

.space-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}

.space-link:hover {
  color: var(--fg);
}

.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.12s;
}

.tab:hover {
  color: var(--fg);
}

.tab.is-active {
  color: var(--fg);
}

.tab.is-active::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--fg);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #171717;
  color: #fafafa;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Toolbar & segmented controls */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 11px;
  background: #f4f4f4;
  box-shadow: inset 0 0 0 1px #00000008;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.seg-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-3);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s, box-shadow 0.15s;
}

.seg-item:hover {
  color: var(--fg);
}

.seg-item.is-active,
.seg-radio input:checked + .seg-item {
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 0 0 1px #0000000f, 0 1px 2px #00000014;
}

.seg-radio input:focus-visible + .seg-item {
  outline: 2px solid #171717;
  outline-offset: 1px;
}

.seg-count {
  font-size: 11.5px;
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
}

.seg-item.is-active .seg-count {
  color: var(--muted);
}

/* Testimonial cards (admin) */

.t-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.t-card {
  padding: 20px 22px 16px;
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.15s var(--ease);
}

.t-card:hover {
  box-shadow: var(--shadow-hover);
}

.is-leaving {
  opacity: 0.35;
  pointer-events: none;
}

.t-card.is-leaving {
  transform: scale(0.99);
}

.t-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.t-who {
  flex: 1;
  min-width: 0;
}

.t-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  min-width: 0;
}

.t-role {
  font-size: 13px;
  color: var(--muted);
}

.t-body {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fg-2);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.t-card.is-rejected .t-body {
  color: var(--muted);
}

.t-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
}

.t-date {
  font-size: 12.5px;
  color: var(--muted);
}

.t-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

/* Empty states */

.empty {
  text-align: center;
  padding: 52px 24px;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--shadow);
  color: var(--fg-3);
}

.empty-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.empty-text {
  color: var(--muted);
  max-width: 380px;
  margin: 6px auto 0;
  line-height: 1.6;
}

.empty .btn {
  margin-top: 20px;
}

/* Share & embed */

.share-row {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-top: 1px solid var(--border-soft);
}

.share-row:first-child {
  border-top: 0;
}

.share-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--site);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--fg-3);
  flex: none;
}

.share-main {
  flex: 1;
  min-width: 0;
}

.link-field {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.card-body > .link-field {
  margin-top: 0;
}

.link-field .input {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--fg-3);
  background: var(--site);
}

.embed-builder {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.embed-options {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.code-wrap {
  position: relative;
}

.code {
  margin: 0;
  padding: 16px 92px 16px 16px;
  border-radius: var(--radius);
  background: var(--site);
  box-shadow: inset 0 0 0 1px var(--border);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--fg-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow-x: auto;
}

.code code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.code-block {
  padding-right: 16px;
  white-space: pre;
  word-break: normal;
  text-align: left;
  margin: 18px 0 14px;
}

.code-copy {
  position: absolute;
  top: 10px;
  right: 10px;
}

.tok-tag {
  color: #0a0a0a;
  font-weight: 500;
}

.tok-attr {
  color: #7c3aed;
}

.tok-str {
  color: #15803d;
}

.preview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 10px;
  border-top: 1px solid var(--border-soft);
}

.preview {
  margin: 0 20px 20px;
  padding: 28px;
  min-height: 220px;
  border-radius: var(--radius);
  background-color: var(--site);
  background-image: radial-gradient(#e5e5e5 1px, transparent 1px);
  background-size: 16px 16px;
  box-shadow: inset 0 0 0 1px var(--border);
  transition: background-color 0.2s;
}

.preview.is-dark {
  background-color: #0a0a0a;
  background-image: radial-gradient(#262626 1px, transparent 1px);
}

/* Settings */

.settings-section {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  padding: 24px;
}

.settings-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.settings-fields-end {
  align-items: flex-end;
  justify-content: center;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.form-actions-flush {
  padding-top: 4px;
}

.danger-zone {
  margin-top: 40px;
  box-shadow: 0 0 0 1px #fee2e2, 0 1px 2px #0000000a;
}

/* ── Forms ───────────────────────────────────────────────────────────── */

.form-grid {
  display: grid;
  gap: 20px;
}

.card-body.form-grid {
  padding: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.fieldset > legend {
  margin-bottom: 8px;
  padding: 0;
}

.label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}

.opt {
  color: var(--subtle);
  font-weight: 400;
  margin-left: 2px;
}

.hint {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.error-text {
  font-size: 12.5px;
  color: var(--danger);
}

.input,
.textarea {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  font-size: 14px;
  box-shadow: 0 1px 2px #0000000a;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.textarea {
  height: auto;
  min-height: 96px;
  padding: 10px 12px;
  line-height: 1.6;
  resize: vertical;
}

.input-lg {
  height: 42px;
  font-size: 15px;
}

.input:hover,
.textarea:hover {
  border-color: #d4d4d4;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: #a3a3a3;
  box-shadow: var(--ring);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--subtle);
}

.has-error .input,
.has-error .textarea {
  border-color: #fca5a5;
}

.has-error .input:focus,
.has-error .textarea:focus {
  box-shadow: 0 0 0 3px #fecaca80;
}

.input-affix {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  box-shadow: 0 1px 2px #0000000a;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input-affix:focus-within {
  border-color: #a3a3a3;
  box-shadow: var(--ring);
}

.input-affix .affix {
  display: block;
  flex: none;
  line-height: 36px;
  padding: 0 4px 0 12px;
  background: var(--site);
  border-right: 1px solid var(--border-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  white-space: nowrap;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.input-affix .input {
  flex: 1;
  width: auto;
  min-width: 0;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 13px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.counter {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.alert {
  padding: 11px 14px;
  border-radius: var(--radius);
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13.5px;
  box-shadow: inset 0 0 0 1px #fecaca;
}

.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fg-3);
  cursor: pointer;
}

input[type='checkbox'] {
  accent-color: #171717;
  width: 16px;
  height: 16px;
  margin: 0;
}

/* Switches */

.switches {
  display: flex;
  flex-direction: column;
}

.switch-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
  cursor: pointer;
}

.switches .switch-row:first-child {
  border-top: 0;
  padding-top: 4px;
}

.switch-row > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.switch-title {
  font-size: 13.5px;
  font-weight: 500;
}

.switch {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: none;
  width: 36px !important;
  height: 20px !important;
  margin: 2px 0 0 !important;
  border-radius: 999px;
  background: #e5e5e5;
  box-shadow: inset 0 0 0 1px #0000000a;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px #00000033, 0 0 0 0.5px #0000000d;
  transition: transform 0.2s var(--ease);
}

.switch:checked {
  background: #171717;
}

.switch:checked::after {
  transform: translateX(16px);
}

/* Uploads */

.upload {
  display: flex;
  align-items: center;
  gap: 16px;
}

.upload-preview {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 15px;
  background: var(--site);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--subtle);
  overflow: hidden;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Accent picker */

.swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.swatch {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #0000001a;
  transition: transform 0.12s var(--ease), box-shadow 0.12s;
}

.swatch:hover {
  transform: scale(1.08);
}

.swatch[aria-pressed='true'] {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c);
}

.swatch-divider {
  width: 1px;
  height: 20px;
  margin: 0 4px;
  background: var(--border);
}

.color-pick {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: conic-gradient(#ef4444, #f59e0b, #22c55e, #06b6d4, #3b82f6, #a855f7, #ef4444);
  box-shadow: inset 0 0 0 1px #0000001a;
  cursor: pointer;
}

.color-pick input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.hex-input {
  width: 100px;
  height: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: lowercase;
}

.select {
  height: 34px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  font-size: 13.5px;
  color: var(--fg-2);
  box-shadow: 0 1px 2px #0000000a;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.field .select {
  height: 38px;
  font-size: 14px;
}

.select:focus {
  outline: none;
  border-color: #a3a3a3;
  box-shadow: var(--ring);
}

/* ── Import ──────────────────────────────────────────────────────────── */

.link-field-flush {
  margin-top: 0;
}

.link-field-flush .input {
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
}

.import-hints {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.import-hints li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.import-hints .icon {
  color: var(--subtle);
}

.candidates {
  display: flex;
  flex-direction: column;
}

.candidate {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  transition: background-color 0.12s;
}

.candidate:hover {
  background: #fcfcfc;
}

.candidate input {
  margin-top: 3px;
  flex: none;
}

.candidate:has(input:not(:checked)) .candidate-main {
  opacity: 0.45;
}

.candidate-main {
  flex: 1;
  min-width: 0;
  transition: opacity 0.15s;
}

.candidate-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.candidate-name {
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
}

.candidate-role {
  font-size: 13px;
  color: var(--muted);
}

.candidate-body {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-2);
  white-space: pre-line;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.candidate-source {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--subtle);
}

.import-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
}

.push-right {
  margin-left: auto;
}

.source-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-soft);
  transition: opacity 0.2s;
}

.source-row:first-child {
  border-top: 0;
}

.source-main {
  flex: 1;
  min-width: 0;
}

.source-url {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-2);
}

.source-url:hover {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.source-link,
.q-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.source-link:hover,
.q-source:hover {
  color: var(--fg);
}

.q-source {
  margin-left: auto;
  align-self: flex-end;
}

/* ── Toasts ──────────────────────────────────────────────────────────── */

.toasts {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 10px 12px;
  border-radius: 11px;
  background: #171717;
  color: #fafafa;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 30px -8px #00000059, 0 0 0 1px #ffffff14 inset;
  animation: toast-in 0.28s var(--ease);
  white-space: nowrap;
}

.toast.is-error {
  background: #b91c1c;
}

.toast.is-out {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

/* ── Public pages ────────────────────────────────────────────────────── */

.public {
  position: relative;
  min-height: 100vh;
  background: var(--site);
  overflow-x: hidden;
}

.dots {
  position: absolute;
  inset: 0 0 auto 0;
  height: 440px;
  background-image: radial-gradient(#d4d4d4 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
  opacity: 0.7;
}

.dots-tall {
  height: 620px;
}

.public-wrap {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
  padding: 64px 20px 40px;
}

.collect-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 26px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.collect-title {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-align: center;
  text-wrap: balance;
}

.collect-prompt {
  max-width: 440px;
  margin: 14px auto 32px;
  text-align: center;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
  text-wrap: pretty;
}

.collect-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.collect-card .input,
.collect-card .textarea {
  font-size: 15px;
}

.collect-card .textarea {
  min-height: 140px;
}

/* Rating input */

.rating-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.rating-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.rating-stars label {
  color: #e5e5e5;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.12s, transform 0.15s var(--ease);
}

.rating-stars label:hover {
  transform: scale(1.12);
}

.rating-stars input:checked ~ label {
  color: var(--accent);
}

.rating-stars:hover label {
  color: #e5e5e5;
}

.rating-stars label:hover,
.rating-stars label:hover ~ label {
  color: var(--accent);
}

.rating-stars input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.rating-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-3);
}

/* Photo input */

.photo-field {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 12px;
  background: var(--site);
  box-shadow: inset 0 0 0 1px var(--border-soft);
}

.photo-preview {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: var(--shadow);
  color: var(--subtle);
  overflow: hidden;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.photo-copy .row-sm {
  margin-top: 8px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--fg-3);
  line-height: 1.5;
  cursor: pointer;
}

.consent input {
  margin-top: 2px;
  flex: none;
}

.consent.has-error {
  color: var(--danger);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.closed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  color: var(--fg-3);
  line-height: 1.6;
}

.thanks-card {
  text-align: center;
  padding: 44px 28px 36px;
}

.thanks-card .collect-prompt {
  margin-bottom: 24px;
}

.thanks-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 12%, transparent);
  animation: pop 0.45s var(--ease);
}

@keyframes pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}

.public-foot {
  display: flex;
  justify-content: center;
  padding: 28px 16px 40px;
}

.powered {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  transition: background-color 0.15s, box-shadow 0.15s, color 0.15s;
}

.powered strong {
  font-weight: 600;
  color: var(--fg-3);
}

.powered:hover {
  background: var(--bg);
  box-shadow: var(--shadow);
  color: var(--fg-3);
}

/* Wall of Love */

.wall-hero {
  position: relative;
  text-align: center;
  padding: 72px 20px 48px;
}

.wall-title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.wall-sub {
  margin-top: 14px;
  font-size: 17px;
  color: var(--muted);
}

.rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: var(--shadow);
  font-size: 13px;
  color: var(--muted);
}

.rating-summary strong {
  color: var(--fg);
  font-weight: 600;
}

.wall-cta {
  margin-top: 22px;
}

.masonry {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  columns: 3 300px;
  column-gap: 16px;
}

.masonry > * {
  break-inside: avoid;
  margin-bottom: 16px;
}

.q-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.q-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.q-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-2);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.q-card.is-featured .q-body {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.q-author {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.q-who {
  min-width: 0;
  line-height: 1.35;
}

.q-name {
  font-size: 14px;
  font-weight: 600;
}

.q-role {
  font-size: 13px;
  color: var(--muted);
}

.wall-empty {
  text-align: center;
  padding-top: 0;
}

/* Auth & message pages */

.auth-wrap {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 36px 32px 32px;
  border-radius: var(--radius-xl);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
}

.auth-card.center {
  text-align: center;
}

.auth-brand {
  display: inline-block;
  margin-bottom: 22px;
}

.auth-title {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.auth-sub {
  margin: 8px 0 26px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.auth-card.center .auth-sub {
  margin-bottom: 22px;
}

.auth-hint code {
  font-size: 12px;
}

.auth-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--subtle);
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

/* Landing */

.landing-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
}

.landing-nav .brand {
  padding: 0;
}

.hero {
  position: relative;
  text-align: center;
  padding: 96px 20px 72px;
}

.display {
  font-family: var(--font-serif);
  font-size: clamp(46px, 7.5vw, 80px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.mark {
  background: linear-gradient(transparent 60%, #e8e8e8 60%, #e8e8e8 92%, transparent 92%);
  padding: 0 0.08em;
}

.hero-sub {
  max-width: 500px;
  margin: 24px auto 32px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 96px;
}

.feature {
  padding: 24px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--site);
  box-shadow: inset 0 0 0 1px var(--border);
}

.feature h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature p {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-grid,
  .embed-builder,
  .settings-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-section {
    gap: 20px;
  }

  .settings-fields-end {
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 60;
    width: 272px;
    transform: translateX(-100%);
    transition: transform 0.25s var(--ease);
    box-shadow: 0 0 40px #0000001f;
  }

  .nav-open .sidebar {
    transform: none;
  }

  .scrim {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: #0a0a0a33;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    display: block;
  }

  .nav-open .scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .topbar {
    padding: 0 16px;
  }

  .page {
    padding: 28px 16px 72px;
  }

  .steps,
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .hide-mobile {
    display: none !important;
  }

  .page-title,
  .space-head .page-title {
    font-size: 28px;
  }

  .welcome-hero .page-title {
    font-size: 32px;
  }

  .stat-value {
    font-size: 24px;
  }

  .space-head {
    gap: 12px;
  }

  .space-head .space-logo {
    width: 44px;
    height: 44px;
  }

  .t-card {
    padding: 16px 16px 14px;
  }

  .t-head .stars {
    align-self: flex-start;
    margin-top: 4px;
  }

  .t-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }

  .review-row {
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .review-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-wrap {
    padding: 40px 16px 32px;
  }

  .collect-title {
    font-size: 32px;
  }

  .collect-card {
    padding: 20px;
  }

  .rating-stars svg {
    width: 34px;
    height: 34px;
  }

  .photo-field {
    align-items: flex-start;
  }

  .masonry {
    padding: 0 16px;
  }

  .hero {
    padding: 64px 16px 56px;
  }

  .auth-card {
    padding: 28px 22px 24px;
  }

  .preview {
    margin: 0 12px 12px;
    padding: 16px;
  }

  .code {
    padding-right: 16px;
    padding-top: 52px;
  }

  .link-field .btn-secondary span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
