:root {
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --surface-warm: #F3F0EA;
  --ink: #111111;
  --muted: #5A5751;
  --line: #E5E0D8;
  --line-strong: #CFC8BC;
  --accent: #14532D;
  --accent-hover: #0F4022;
  --accent-soft: #ECFDF5;
  --accent-border: #A7F3D0;
  --danger: #991B1B;
  --danger-soft: #FEF2F2;
  --danger-border: #FECACA;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --topbar-h: 64px;
  --sidebar-w: 248px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--ink); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--surface-warm);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 5px;
}

/* Top Navbar (matches our-web.site) */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar-h);
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(1rem, 2.5vw, 1.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}
.topbar-nav-item {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.topbar-nav-item:hover { color: var(--ink); background: var(--surface-warm); }
.topbar-nav-item.is-active {
  background: var(--ink);
  color: #FAF9F6;
}
.sidebar-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.sidebar-toggle:hover { border-color: var(--ink); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: #FAF9F6;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 13.5px; font-weight: 700; letter-spacing: 0.03em; line-height: 1.1; white-space: nowrap; }
.brand-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
}
.topbar-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.user-menu { position: relative; }
.user-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 3px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.user-menu-btn:hover { border-color: var(--ink); box-shadow: 0 4px 12px rgba(17, 17, 17, 0.06); }
.user-menu-btn .user-avatar { width: 28px; height: 28px; }
.user-menu-chev { color: var(--muted); }
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  z-index: 70;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 20px 48px rgba(17, 17, 17, 0.14);
}
.user-menu-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.5rem 0.55rem;
}
.user-menu-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.user-menu-meta strong {
  font-size: 0.82rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-meta small {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.user-menu-logout { color: var(--danger); }
.user-menu-logout:hover { background: var(--danger-soft); }
.sidebar-section.sidebar-mobile-workspace { display: none; }
.user-pill {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface-warm);
  border: 1px solid var(--line);
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  max-width: 260px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.user-pill span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  flex-shrink: 0;
  border: 1px solid rgba(17, 17, 17, 0.12);
}
.user-avatar-lg { width: 38px; height: 38px; }
.site-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  background: var(--surface-warm);
}
.site-avatar img { width: 100%; height: 100%; object-fit: cover; }
.site-avatar-sm { width: 32px; height: 32px; border-radius: 8px; }
.site-avatar-lg { width: 52px; height: 52px; border-radius: 12px; }
.site-switcher {
  position: relative;
  margin-bottom: 0.45rem;
}
.sidebar-site-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.65rem;
  border-radius: 11px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.sidebar-site-card:hover {
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(17, 17, 17, 0.05);
}
.sidebar-site-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sidebar-site-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.sidebar-site-meta strong {
  font-size: 0.84rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-active-pill {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  flex-shrink: 0;
}
.sidebar-site-meta small {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-switcher-chev {
  color: var(--muted);
  margin-left: auto;
  flex-shrink: 0;
}
.site-switcher-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.14);
}
.site-switcher-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 220px;
  overflow-y: auto;
}
.site-switcher-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.55rem;
  border-radius: 8px;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.14s;
}
.site-switcher-item:hover { background: var(--bg); }
.site-switcher-item.is-current { background: var(--surface-warm); }
.site-switcher-item-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.site-switcher-item-meta strong {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-switcher-item-meta small {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-switcher-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 2px;
}
.site-switcher-action {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.6rem;
  border-radius: 8px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.site-switcher-action:hover { background: var(--bg); }
.editor-head-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.45rem;
}

/* Stats Strips & Dashboard Overview */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-warm);
  border: 1px solid var(--line);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg, .panel-icon svg { width: 15px; height: 15px; stroke-width: 1.85; }
.panel-title-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.panel-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--surface-warm);
  border: 1px solid var(--line);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ic { width: 15px; height: 15px; stroke-width: 1.9; flex-shrink: 0; }
.ic-sm { width: 14px; height: 14px; stroke-width: 1.9; flex-shrink: 0; }
.topbar-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.side-subitem {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.side-subitem svg { width: 14px; height: 14px; stroke-width: 1.85; opacity: 0.72; flex-shrink: 0; }
.side-subitem.is-active svg { opacity: 1; }
.check-row-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}
.check-row-label svg { width: 14px; height: 14px; stroke-width: 1.85; opacity: 0.75; }
.stat-label {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.stat-value {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
}
.stat-sub {
  font-size: 0.78rem;
  color: var(--muted);
}
.dash-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 1.25rem;
  align-items: start;
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 { margin: 0; }
.panel-head .muted { margin: 0.15rem 0 0; }
.check-list-rows { display: grid; gap: 0.55rem; }
.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.85rem;
}
.check-row span { color: var(--muted); }
.product-row-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.product-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface-warm);
  flex-shrink: 0;
}
.empty-state {
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  padding: 2.25rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.empty-state p { margin: 0; max-width: 40ch; }
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
}
.lang-sw {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
  font-family: var(--mono);
}
.lang-sw button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 4px 9px;
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.lang-sw button.is-active { background: var(--ink); color: #FAF9F6; }

/* Console Shell: Left Sidebar + Main Workspace */
.console-shell {
  display: flex;
  min-height: calc(100vh - var(--topbar-h));
}
.console-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 1.25rem 0.9rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
}
.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-section-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.sidebar-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0.7rem 0.35rem;
}
.sidebar-site-pill {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0.35rem 0.7rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.side-item svg { flex-shrink: 0; opacity: 0.75; }
.side-item:hover {
  background: var(--bg);
  color: var(--ink);
}
.side-item.is-active {
  background: var(--ink);
  color: #FAF9F6;
}
.side-item.is-active svg { opacity: 1; }
.side-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-group-btn {
  justify-content: space-between;
}
.side-group-btn-left {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.side-chevron {
  transition: transform 0.16s ease;
  opacity: 0.6;
}
.side-group.is-open .side-chevron { transform: rotate(90deg); }
.side-submenu {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 4px 1.1rem;
  padding-left: 0.65rem;
  border-left: 1px solid var(--line);
}
.side-group.is-open .side-submenu { display: flex; }
.side-subitem {
  width: 100%;
  padding: 0.46rem 0.7rem;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.side-subitem:hover { background: var(--bg); color: var(--ink); }
.side-subitem.is-active {
  background: var(--surface-warm);
  color: var(--ink);
  font-weight: 700;
}
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(17, 17, 17, 0.45);
  backdrop-filter: blur(2px);
}

.console-main {
  flex: 1;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.5rem) 4rem;
}
.container {
  width: min(1060px, 100%);
  margin: 0 auto;
}

/* Typography & Shared Elements */
.kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0.3rem 0 0;
  color: var(--ink);
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.15;
  margin: 0 0 0.35rem;
  color: var(--ink);
}
h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.98rem;
  margin: 0 0 0.25rem;
  color: var(--ink);
}
.muted { color: var(--muted); font-size: 0.9rem; margin: 0.25rem 0 0.75rem; }
.warning-copy {
  background: var(--danger-soft);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  margin: 0;
}
.notice {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-warm);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
}
.notice.is-error { background: var(--danger-soft); border-color: var(--danger-border); color: var(--danger); }
.notice.is-ok { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent); }

/* Auth Card */
.auth-card {
  max-width: 440px;
  margin: clamp(1.5rem, 6vh, 4rem) auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.6rem, 4vw, 2.25rem);
  box-shadow: 0 20px 50px rgba(17, 17, 17, 0.05);
}
.auth-card h1 { font-size: 2.15rem; margin: 0.35rem 0 0.45rem; }
.auth-foot {
  margin: 1.5rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.auth-foot a { font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }
.oauth-stack { display: grid; gap: 0.6rem; margin: 1.1rem 0 0.75rem; }
.oauth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.76rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.oauth-btn:hover { background: var(--bg); border-color: var(--ink); transform: translateY(-1px); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--surface-warm);
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}
.auth-mode-tab {
  border: 0;
  background: transparent;
  padding: 0.5rem 0.65rem;
  border-radius: 7px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.auth-mode-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(17, 17, 17, 0.06);
}

/* Panels, Grids & Forms */
.view-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.live-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
}
.live-link:hover { text-decoration: underline; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: 1.25rem;
}
.panel h2 { margin: 0 0 0.5rem; }
.stack { display: grid; gap: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.list-stack { display: grid; gap: 0.75rem; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 0.5rem 0; }

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}
.field-hint {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: -0.2rem;
}
input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.88rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: inherit;
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: #9C968C; }
input:hover, select:hover, textarea:hover { border-color: #A69E90; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
  cursor: pointer;
}
input[type="file"] {
  padding: 0.45rem 0.6rem;
  background: var(--bg);
  cursor: pointer;
}
input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover { border-color: var(--ink); }
textarea { resize: vertical; min-height: 76px; }
details.panel summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
details.panel summary::-webkit-details-marker { display: none; }
details.panel summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--muted);
}
details.panel[open] summary::after { content: "−"; }

/* Buttons (every button & link-button explicitly styled) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s, border-color 0.16s, color 0.16s, transform 0.16s, box-shadow 0.16s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}
.btn-primary {
  background: var(--ink);
  color: #FAF9F6;
  border-color: var(--ink);
}
.btn-primary:hover:not(:disabled) { background: #2A2825; border-color: #2A2825; }
.btn-gold {
  background: var(--accent);
  color: #FAF9F6;
  border-color: var(--accent);
}
.btn-gold:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--ink); background: var(--bg); }
.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: var(--danger-border);
}
.btn-danger:hover:not(:disabled) { background: #FEE2E2; border-color: #FCA5A5; }
.btn-sm { padding: 0.48rem 0.95rem; font-size: 0.8rem; }
.link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
}
.link-btn:hover { color: var(--ink); }

/* Tabs (Editor view) */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.tab {
  border: 0;
  background: transparent;
  padding: 0.72rem 1.05rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--ink); }

/* 5-Step Setup Wizard */
.wizard-shell {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.wizard-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.wizard-header-copy {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 56ch;
}
.wizard-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.wizard-rail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: calc(var(--topbar-h) + 1.25rem);
}
.wizard-rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.wizard-rail-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}
.wizard-progress {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.wiz-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wiz-step {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.wiz-step::before {
  content: attr(data-step);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wiz-step.is-active {
  background: var(--surface-warm);
  border-color: var(--line-strong);
  color: var(--ink);
}
.wiz-step.is-active::before {
  background: var(--ink);
  border-color: var(--ink);
  color: #FAF9F6;
}
.wiz-step.is-done { color: var(--accent); }
.wiz-step.is-done::before {
  content: "✓";
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}
.wizard-rail-note {
  display: flex;
  gap: 0.6rem;
  padding: 0.8rem 0.85rem;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
.wizard-rail-note p { margin: 0; }
.wizard-rail-note strong { color: var(--ink); }
.wizard-rail-note-icon { color: var(--accent); font-size: 0.9rem; line-height: 1.3; }

.wizard-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3vw, 2rem);
}
.wizard-step-view {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
.wizard-step-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.step-overline {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.wizard-step-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  margin: 0 0 0.25rem;
}
.wizard-step-heading p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.wizard-price-highlight {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.65rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}
.wizard-price-highlight strong {
  font-family: var(--serif);
  font-size: 1.95rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}
.wizard-price-highlight span {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 3px;
}

/* Step 1 Payment Layout */
.payment-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.account-summary {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}
.account-summary-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.summary-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.account-summary strong { font-size: 0.92rem; color: var(--ink); }
.summary-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.summary-benefits span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}
.payment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.payment-card {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.payment-card:hover {
  border-color: var(--ink);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.06);
}
.payment-card-primary {
  background: var(--surface);
  border-color: var(--ink);
}
.payment-card-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.payment-card-heading h3 { margin: 0; font-size: 1.02rem; }
.payment-card-heading span:not(.payment-icon) {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}
.payment-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ink);
  color: #FAF9F6;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.payment-icon-light {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  font-size: 1rem;
}
.payment-card p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.55;
}
.payment-card .btn { width: 100%; margin-top: auto; }

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.wizard-actions-end { justify-content: flex-end; }
.wiz-review {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  display: grid;
  gap: 0.65rem;
}
.wiz-review-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.wiz-review-row span { color: var(--muted); }
.wiz-review-row:last-child { border-bottom: none; padding-bottom: 0; }

/* Cards, Lists & Theme Picker */
.site-card, .item-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.site-card:hover { border-color: var(--line-strong); box-shadow: 0 10px 26px rgba(17, 17, 17, 0.05); }
.item-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}
.theme-card {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.16s, transform 0.16s, box-shadow 0.16s;
  text-align: left;
  font: inherit;
  color: var(--ink);
}
.theme-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(17, 17, 17, 0.07);
}
.theme-card.is-selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink), 0 14px 32px rgba(17, 17, 17, 0.09);
}
.theme-thumb {
  aspect-ratio: 16 / 10.5;
  background: var(--surface-warm);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  width: 100%;
}
.theme-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.35s ease;
}
.theme-card:hover .theme-thumb img { transform: scale(1.03); }
.theme-thumb-swatch {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 1rem;
  text-align: center;
}
.theme-thumb-swatch strong {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.1;
}
.theme-thumb-swatch span {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.72;
}
.theme-thumb-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--ink);
  color: #FAF9F6;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
}
.theme-card-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.theme-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.theme-card-cat {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.theme-card-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.12;
  color: var(--ink);
}
.theme-card-desc {
  margin: 0;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
}
.theme-card-foot {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.theme-swatches { display: inline-flex; gap: 5px; }
.theme-swatches span {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.18);
}

/* Full-Page Theme Preview Modal */
.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(12, 11, 10, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2.5vw, 1.75rem);
}
.preview-dialog {
  width: min(1120px, 100%);
  height: min(92vh, 940px);
  background: var(--bg);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.preview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: #111111;
  color: #FAF9F6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.preview-head-title { display: flex; flex-direction: column; }
.preview-head-title strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; line-height: 1.1; }
.preview-head-title small { font-family: var(--mono); font-size: 10.5px; color: rgba(250, 249, 246, 0.68); text-transform: uppercase; letter-spacing: 0.08em; }
.preview-head-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.preview-close {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #FAF9F6;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 1.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.preview-close:hover { background: rgba(255, 255, 255, 0.12); }
.preview-scroll {
  flex: 1;
  overflow-y: auto;
  background: #EAE6DF;
  padding: clamp(0.75rem, 2vw, 1.5rem);
}
.preview-scroll-hint {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.preview-frame {
  max-width: 1020px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}
.preview-frame img { width: 100%; height: auto; display: block; }
.field-group-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0.75rem 0 0.25rem;
}
.color-input-row { display: flex; gap: 0.5rem; align-items: center; }
.color-input-row input[type="color"] {
  width: 44px;
  height: 42px;
  padding: 3px;
  cursor: pointer;
  flex-shrink: 0;
}

/* GrapesJS Fullscreen Modal */
.gjs-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #141413;
  display: flex;
  flex-direction: column;
}
.gjs-topbar {
  height: 54px;
  background: #111111;
  color: #FAF9F6;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.gjs-close-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #FAF9F6;
  border-color: rgba(255, 255, 255, 0.28);
}
.gjs-close-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
}
.gjs-canvas { flex: 1; min-height: 0; }

/* Responsive — Mobile-First Polish */
html, body { overflow-x: clip; }
@media (max-width: 960px) {
  body.console-authed .sidebar-toggle { display: inline-flex; }
  .topbar-nav { display: none !important; }
  .sidebar-mobile-workspace { display: flex; padding-bottom: 0.85rem; border-bottom: 1px solid var(--line); }
  .console-sidebar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    bottom: 0;
    z-index: 50;
    width: min(280px, 84vw);
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 0 24px 60px rgba(17, 17, 17, 0.18);
    display: flex !important;
  }
  body:not(.console-authed) .console-sidebar { display: none !important; }
  body.sidebar-open .console-sidebar { transform: translateX(0); }
  .wizard-layout { grid-template-columns: 1fr; }
  .wizard-rail { position: static; }
  .wiz-steps {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .wiz-step { flex-shrink: 0; padding: 0.48rem 0.7rem; font-size: 0.8rem; }
  .wizard-rail-note { display: none; }
}
@media (max-width: 768px) {
  :root { --topbar-h: 56px; }
  .topbar {
    height: var(--topbar-h);
    flex-wrap: nowrap;
    padding: 0 0.85rem;
    gap: 0.5rem;
  }
  .topbar-left { flex: 1; min-width: 0; gap: 0.6rem; }
  .brand-sub { display: none; }
  .console-main { padding: 1.1rem 0.85rem 3.5rem; }
  .view-head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 1.1rem;
  }
  .view-head .row { width: 100%; }
  .view-head .row > .btn { flex: 1; justify-content: center; }
  .panel, .wizard-content { padding: 1.1rem 0.95rem; border-radius: 14px; }
  .panel-head { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .panel-head > .btn { width: 100%; }
  .grid-2, .payment-options, .themes-grid, .cards-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
  .stat-card { padding: 0.85rem 0.9rem; }
  .stat-value { font-size: clamp(1.3rem, 5.2vw, 1.75rem); word-break: break-word; }
  .item-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
  }
  .item-row > .row { width: 100%; }
  .item-row > .row > .btn,
  .item-row > .row > select { flex: 1; width: 100%; }
  .wizard-header { flex-direction: column; align-items: stretch; }
  .wizard-price-highlight { align-items: flex-start; width: 100%; }
  .wizard-actions { flex-direction: column-reverse; align-items: stretch; }
  .wizard-actions .btn { width: 100%; }
  .account-summary { flex-direction: column; align-items: flex-start; }
  input, select, textarea { font-size: 16px; }
}
@media (max-width: 560px) {
  .brand-name { white-space: nowrap; }
  .brand-sub { display: none; }
  .topbar-right .btn span { display: none; }
  .topbar-right .btn { padding: 0.48rem 0.6rem; }
  .auth-card { margin: 1rem auto; padding: 1.35rem 1.1rem; }
  .auth-mode-tab { font-size: 0.75rem; padding: 0.48rem 0.4rem; white-space: nowrap; }
  .auth-foot a { display: inline-block; white-space: nowrap; }
  .preview-modal { padding: 0; }
  .preview-dialog { height: 100dvh; border-radius: 0; }
  .preview-head { padding: 12px 14px; }
  .gjs-topbar { padding: 0 0.75rem; gap: 0.5rem; }
  .gjs-topbar small { display: none; }
}
