/* ==========================================================================
   Uno Answers — marketing site & admin styles
   Mobile-first. No build step, no external fonts (system stack = fast loads).
   ========================================================================== */

:root {
  --ink: #0e0b1f;
  --ink-2: #2b2745;
  --muted: #625e7a;
  --line: #e7e4f0;
  --bg: #ffffff;
  --bg-soft: #f7f5fb;
  --bg-tint: #fbf7f4;
  --brand-1: #ff7a45;
  --brand-2: #e1306c;
  --brand-3: #8a3ffc;
  --brand-grad: linear-gradient(120deg, var(--brand-1) 0%, var(--brand-2) 50%, var(--brand-3) 100%);
  --ok: #0f9d6b;
  --warn: #b7791f;
  --err: #d03a3a;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(14, 11, 31, 0.06), 0 1px 1px rgba(14, 11, 31, 0.04);
  --shadow: 0 10px 30px -12px rgba(14, 11, 31, 0.18), 0 2px 6px rgba(14, 11, 31, 0.05);
  --shadow-lg: 0 30px 60px -20px rgba(58, 20, 90, 0.35);
  --font:
    ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --container: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: var(--brand-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--brand-3);
}
h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 750;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
}
h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
p {
  margin: 0 0 1em;
}
code,
pre,
kbd {
  font-family: var(--mono);
  font-size: 0.9em;
}
:not(pre) > code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}
pre {
  background: #15122b;
  color: #ece9ff;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  overflow-x: auto;
  line-height: 1.5;
  font-size: 0.85rem;
}
:focus-visible {
  outline: 3px solid var(--brand-3);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Utilities ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.narrow {
  max-width: 760px;
}
.center {
  text-align: center;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-2);
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.8rem;
}
.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section {
  padding: 64px 0;
}
.section-tint {
  background: var(--bg-soft);
}
.section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.hidden {
  display: none !important;
}

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
  font-family: inherit;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}
.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(225, 48, 108, 0.6);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 12px 26px -8px rgba(225, 48, 108, 0.7);
}
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  color: var(--ink);
  border-color: #cfcadf;
}
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover {
  color: var(--ink);
}
.btn-ghost-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-ghost-light:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.btn-danger {
  background: #fff;
  color: var(--err);
  border-color: #f1c9c9;
}
.btn-danger:hover {
  color: #fff;
  background: var(--err);
}

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand:hover {
  color: var(--ink);
}
.logo-mark {
  width: 30px;
  height: 30px;
}
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
}
.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s;
}
.nav-links {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0 1rem;
}
.nav-links a:not(.btn) {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 550;
  padding: 0.6rem 0.25rem;
}
.nav-links a:not(.btn):hover,
.nav-links a[aria-current='page'] {
  color: var(--brand-2);
}
.nav-links .btn {
  margin-top: 0.5rem;
}
.nav-toggle:checked ~ .nav-links {
  display: flex;
}
.nav-toggle:checked + .nav-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle:checked + .nav-burger span:nth-child(2) {
  opacity: 0;
}
.nav-toggle:checked + .nav-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 880px) {
  .nav-burger {
    display: none;
  }
  .nav-links {
    display: flex;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 1.6rem;
    padding: 0;
  }
  .nav-links a:not(.btn) {
    padding: 0;
    font-size: 0.95rem;
  }
  .nav-links .btn {
    margin: 0 0 0 0.4rem;
  }
}

/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto auto;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(225, 48, 108, 0.18), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto auto -40% -15%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(138, 63, 252, 0.14), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  margin-bottom: 0.4em;
}
.hero .lead {
  max-width: 560px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.8rem 0 1.2rem;
}
.hero-note {
  font-size: 0.9rem;
  color: var(--muted);
}
@media (min-width: 960px) {
  .hero {
    padding: 88px 0 104px;
  }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* Hero demo: comment -> DM */
.demo {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}
.demo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  position: relative;
}
.demo-post {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: none;
  background: var(--brand-grad);
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px #f3c3d4;
}
.avatar.alt {
  background: linear-gradient(135deg, #7dd3fc, #818cf8);
  box-shadow: none;
}
.avatar.brand {
  background: var(--ink);
  box-shadow: none;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
}
.demo-handle {
  font-weight: 700;
  font-size: 0.9rem;
}
.demo-meta {
  font-size: 0.75rem;
  color: var(--muted);
}
.demo-image {
  height: 150px;
  border-radius: 12px;
  margin-bottom: 14px;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.35), transparent 40%),
    linear-gradient(135deg, #ffb199 0%, #ff5e8a 45%, #9b5cff 100%);
}
.comment {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.comment b {
  margin-right: 4px;
}
.kw {
  background: #fff1c2;
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 700;
  color: #7a4b00;
}
.match-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ok);
  background: #e7f7f0;
  border-radius: 999px;
  padding: 2px 8px;
  margin-top: 4px;
}
.dm-card {
  margin: -8px 0 0 auto;
  width: 88%;
  z-index: 2;
  transform: translateY(24px);
}
.dm-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.bubble {
  background: var(--bg-soft);
  border-radius: 18px 18px 18px 6px;
  padding: 10px 14px;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.bubble.link {
  background: var(--brand-grad);
  color: #fff;
  font-weight: 600;
  border-radius: 18px 18px 6px 18px;
  margin-left: auto;
  width: fit-content;
}
.demo-badge {
  position: absolute;
  right: 12px;
  top: 64px;
  z-index: 3;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  gap: 8px;
  align-items: center;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(15, 157, 107, 0.15);
}

/* Logos / social proof ----------------------------------------------------- */
.proof {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-tint);
}
.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  align-items: center;
  justify-content: center;
}
.proof-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}
.wordmark {
  font-size: 1.25rem;
  font-weight: 800;
  color: #3d3957;
  letter-spacing: -0.02em;
  opacity: 0.85;
}
.wordmark.serif {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: 0;
}
.wordmark.lower {
  text-transform: lowercase;
}

/* Cards & grids ------------------------------------------------------------ */
.grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card p:last-child {
  margin-bottom: 0;
}
.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #fff1ea, #fbe7f3 55%, #efe6ff);
  margin-bottom: 16px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 0.55rem 0;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e7f7f0
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230f9d6b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/12px no-repeat;
}

/* Problem / split ---------------------------------------------------------- */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}
.stat-stack {
  display: grid;
  gap: 14px;
}
.flow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.flow-row .num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.flow-row p {
  margin: 0;
}
.flow-row small {
  color: var(--muted);
  display: block;
}

/* Feature detail list ------------------------------------------------------ */
.feature-row {
  display: grid;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.feature-row:last-child {
  border-bottom: 0;
}
@media (min-width: 900px) {
  .feature-row {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: start;
  }
}
.feature-row h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f2ecff;
  color: #5b21b6;
  margin-bottom: 12px;
}

/* Pricing ------------------------------------------------------------------ */
.pricing-grid {
  display: grid;
  gap: 20px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.plan {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.plan.featured {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--brand-grad) border-box;
  box-shadow: var(--shadow-lg);
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-grad);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}
.price {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 18px 0 4px;
  line-height: 1;
}
.price small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.plan .check-list {
  margin: 20px 0 28px;
  flex: 1;
}
.plan .btn {
  width: 100%;
}

/* FAQ ---------------------------------------------------------------------- */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-size: 1.4rem;
  line-height: 1;
  color: var(--brand-2);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 12px 0 0;
  color: var(--ink-2);
}

/* Steps timeline ----------------------------------------------------------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--brand-1), var(--brand-3));
  opacity: 0.35;
}
.step {
  position: relative;
  padding: 0 0 36px 72px;
  counter-increment: step;
}
.step:last-child {
  padding-bottom: 0;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 2px #f1d3e2,
    var(--shadow-sm);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--brand-2);
}
.step h3 {
  margin-bottom: 0.3rem;
  padding-top: 8px;
}
.step p {
  color: var(--ink-2);
  margin-bottom: 0.6rem;
}
.step .who {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* CTA band ----------------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.18), transparent 40%),
    var(--brand-grad);
  color: #fff;
  border-radius: 28px;
  padding: 44px 32px;
  display: grid;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 {
  color: #fff;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (min-width: 900px) {
  .cta-band {
    grid-template-columns: 1.4fr auto;
    padding: 56px 56px;
  }
}

/* Docs --------------------------------------------------------------------- */
.docs-layout {
  display: grid;
  gap: 32px;
}
@media (min-width: 980px) {
  .docs-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 56px;
  }
}
.docs-nav {
  font-size: 0.92rem;
}
@media (min-width: 980px) {
  .docs-nav {
    position: sticky;
    top: 88px;
    align-self: start;
  }
}
.docs-nav a {
  display: block;
  color: var(--ink-2);
  text-decoration: none;
  padding: 5px 0;
}
.docs-nav a:hover {
  color: var(--brand-2);
}
.docs-nav .sub {
  padding-left: 12px;
  font-size: 0.86rem;
  color: var(--muted);
}
.docs-content section {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.docs-content h2 {
  font-size: 1.7rem;
}
.docs-content h3 {
  margin-top: 1.6em;
  scroll-margin-top: 90px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 1rem 0 1.4rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th,
td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: var(--bg-soft);
  font-weight: 650;
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}
.method {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  color: #fff;
  min-width: 54px;
  text-align: center;
}
.m-get {
  background: #2563eb;
}
.m-post {
  background: var(--ok);
}
.m-put {
  background: var(--warn);
}
.m-delete {
  background: var(--err);
}
.callout {
  border-left: 4px solid var(--brand-3);
  background: #f6f1ff;
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1rem 0;
}
.callout.warn {
  border-color: var(--warn);
  background: #fff8eb;
}

/* Forms -------------------------------------------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
@media (min-width: 720px) {
  .form-card {
    padding: 40px;
  }
}
.form-grid {
  display: grid;
  gap: 18px;
}
@media (min-width: 720px) {
  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}
.field label {
  display: block;
  font-weight: 650;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.field .hint {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
}
.field .error-text {
  display: block;
  font-size: 0.8rem;
  color: var(--err);
  margin-top: 6px;
  min-height: 0;
}
input,
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d7d3e4;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-3);
  box-shadow: 0 0 0 4px rgba(138, 63, 252, 0.15);
}
.field.invalid input,
.field.invalid select {
  border-color: var(--err);
}
.input-affix {
  display: flex;
  align-items: stretch;
}
.input-affix input {
  border-radius: 10px 0 0 10px;
}
.input-affix span {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  background: var(--bg-soft);
  border: 1px solid #d7d3e4;
  border-left: 0;
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}
.radio-cards {
  display: grid;
  gap: 12px;
}
@media (min-width: 600px) {
  .radio-cards {
    grid-template-columns: 1fr 1fr;
  }
}
.radio-card {
  position: relative;
  display: block;
  border: 1px solid #d7d3e4;
  border-radius: 12px;
  padding: 14px 16px 14px 44px;
  cursor: pointer;
}
.radio-card input {
  position: absolute;
  left: 16px;
  top: 17px;
  width: auto;
}
.radio-card strong {
  display: block;
}
.radio-card span {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
  display: block;
}
.plain-fieldset legend {
  font-weight: 650;
  font-size: 0.92rem;
  margin-bottom: 6px;
  padding: 0;
}
.radio-card:has(input:checked) {
  border-color: var(--brand-3);
  box-shadow: 0 0 0 3px rgba(138, 63, 252, 0.15);
}
.form-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.alert {
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 0.93rem;
}
.alert-error {
  background: #fdecec;
  color: #8d1f1f;
  border: 1px solid #f5c2c2;
}
.alert-success {
  background: #e7f7f0;
  color: #0b5e41;
  border: 1px solid #b7e6d2;
}
.secret-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0 14px;
}
.secret-row code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 12px !important;
  background: #15122b !important;
  color: #ece9ff;
  border: 0 !important;
  border-radius: 10px !important;
}

/* Admin -------------------------------------------------------------------- */
.admin-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.kpis {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 28px;
}
@media (min-width: 900px) {
  .kpis {
    grid-template-columns: repeat(4, 1fr);
  }
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.kpi .label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.kpi .value {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.toolbar input {
  max-width: 280px;
}
.toolbar select {
  max-width: 160px;
}
.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}
.pill-ok {
  background: #e7f7f0;
  color: var(--ok);
}
.pill-off {
  background: #f1f0f5;
  color: var(--muted);
}
.pill-err {
  background: #fdecec;
  color: var(--err);
}
.pill-warn {
  background: #fff4de;
  color: var(--warn);
}
.pill-mode {
  background: #f2ecff;
  color: #5b21b6;
}
.clickable tbody tr {
  cursor: pointer;
}
.clickable tbody tr:hover {
  background: var(--bg-soft);
}
.pager {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
  font-size: 0.9rem;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.detail-grid {
  display: grid;
  gap: 8px 24px;
  grid-template-columns: max-content 1fr;
  font-size: 0.92rem;
  margin-bottom: 16px;
}
.detail-grid dt {
  color: var(--muted);
}
.detail-grid dd {
  margin: 0;
  word-break: break-all;
}
.empty {
  text-align: center;
  padding: 32px;
  color: var(--muted);
}

/* Footer ------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
  background: var(--bg-soft);
  margin-top: 32px;
}
.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, 1fr);
}
.footer-grid > div:first-child {
  grid-column: 1 / -1;
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  .footer-grid > div:first-child {
    grid-column: auto;
  }
}
.footer-grid a:not(.brand) {
  display: block;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 3px 0;
}
.footer-grid a:not(.brand):hover {
  color: var(--brand-2);
}
.footer-grid p {
  margin-top: 12px;
}
.footer-base {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.mt-lg {
  margin-top: 28px;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.plain-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
