/* ==========================================================================
   grAVy Brand System
   Clean, modern, dark-first visual language with light mode support
   ========================================================================== */

:root {
  /* Brand (legacy — retained only for the homepage hero, which is out of scope this round) */
  --brand-cyan: #00d7ff;
  --brand-magenta: #d62bff;
  --brand-violet: #6f4cff;
  --brand-navy: #0a1020;
  --brand-ink: #05070c;

  /* Shared accent family — same hue used across both light and dark mode */
  --accent-rich: #3e6690;
  --gold: #a9802f;

  /* Light theme */
  --bg: #f7f6f3;
  --text: #1e2329;
  --muted: #5b6472;
  --panel: #ffffff;
  --card: #ffffff;
  --border: #e1e4e9;
  --accent: var(--accent-rich);
  --link: #2f5c82;
  --accent-soft: #e8eef4;
  --line: var(--border);
  --hero-overlay: linear-gradient(
    180deg,
    rgba(5, 7, 12, 0.52) 0%,
    rgba(5, 7, 12, 0.74) 100%
  );

  --radius: 16px;
  --shadow-soft: 0 6px 18px rgba(30, 35, 41, 0.07);
  --shadow-strong: 0 12px 28px rgba(30, 35, 41, 0.1);
}

html[data-theme="dark"] {
  --bg: #181b20;
  --text: #e9ecef;
  --muted: #9aa3af;
  --panel: #1c1f25;
  --card: #21252c;
  --border: #2e333c;
  --accent: var(--accent-rich);
  --link: #7fb0de;
  --accent-soft: #26313d;
  --gold: #d4b567;
  --line: var(--border);
  --hero-overlay: linear-gradient(
    180deg,
    rgba(5, 7, 12, 0.58) 0%,
    rgba(5, 7, 12, 0.84) 100%
  );

  --shadow-soft: 0 8px 22px rgba(0, 0, 0, 0.32);
  --shadow-strong: 0 16px 34px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Base
   ========================================================================== */

html,
body {
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  line-height: 1.5;
  margin: 0;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */
.top-cta {
  width: 100%;
  background: var(--accent-rich);
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 10px 16px;
}

.top-cta a {
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.top-cta a:hover {
  opacity: 0.9;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  backdrop-filter: blur(18px);
}

.topbar-band {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--accent-rich);
  opacity: 0.4;
  pointer-events: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 56px;
}

.logo-wordmark {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--text);
}

.topnav {
  margin-left: auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.topnav a {
  color: var(--text);
  font-weight: 600;
  opacity: 0.92;
}

.topnav a:hover {
  color: var(--link);
  text-decoration: none;
}

[data-theme-toggle] {
  min-width: 108px;
}
.topbar-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topnav {
  margin-left: auto;
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}
.topnav a {
  padding: 6px 10px;
  border-radius: 8px;
}
/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1rem;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

.hidden {
  display: none;
}

.muted {
  color: var(--muted);
}

/* ==========================================================================
   Cards / Surfaces
   ========================================================================== */

.card,
.panel,
.sheet {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ==========================================================================
   Forms
   ========================================================================== */

input,
select,
textarea {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent-rich) 55%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-rich) 16%, transparent);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

button {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition:
    transform 0.08s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease,
    background 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
}

.btn {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.08s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-rich) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-outline {
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent-rich) 35%, var(--border));
}

.btn-outline:hover {
  background: color-mix(in srgb, var(--accent-rich) 14%, var(--accent-soft));
  text-decoration: none;
}
/* ==========================================================================
   Homepage Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 20px 52px;
  background:
    var(--hero-overlay),
    url("../img/gravy-hero-band.png") center/cover no-repeat,
    linear-gradient(180deg, var(--panel), var(--bg));
  border-bottom: 1px solid var(--border);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -80px auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--brand-magenta) 24%, transparent) 0%,
    transparent 72%
  );
  pointer-events: none;
  filter: blur(8px);
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 920px;
}

.hero .lead {
  margin: 0 0 22px;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.86);
  max-width: 760px;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-trust {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 16px;
}
/* ==========================================================================
   Generic Headings / Sections
   ========================================================================== */

h1,
h2,
h3 {
  letter-spacing: -0.01em;
}

.section-title {
  margin: 30px 0 6px;
  font-size: 28px;
}

.section-subtitle {
  color: var(--muted);
  margin: 0 0 20px;
}

/* ==========================================================================
   How It Works
   ========================================================================== */

.howitworks.card {
  margin: 16px 0 24px;
  padding: 20px 18px;
}

.how-title {
  color: var(--text);
  letter-spacing: 0.01em;
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
}

.how-steps {
  margin: 0;
  padding-left: 1.1rem;
}

.how-steps li {
  margin: 10px 0;
  color: var(--text);
}

/* ==========================================================================
   Role Cards
   ========================================================================== */

.roles {
  margin: 28px 0;
}

.rolegrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.role.card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(8, 17, 31, 0.96),
    rgba(4, 10, 22, 0.98)
  );
  transition:
    transform 0.14s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.role.card .action-link {
  margin-top: auto;
  display: inline-block;
}

.role.card:hover .action-link {
  filter: brightness(1.08);
}

.role:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(111, 92, 255, 0.22);
  border-color: rgba(111, 92, 255, 0.28);
}

.role h3 {
  margin: 0 0 8px;
}

.role-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.checkbox-like {
  width: 18px;
  height: 18px;
  border: 2px solid color-mix(in srgb, var(--text) 68%, transparent);
  border-radius: 4px;
  display: inline-block;
  background: transparent;
}

.checkbox-like.checked {
  background: var(--accent-rich) !important;
  border-color: transparent !important;
}

/* ==========================================================================
   Links / CTAs
   ========================================================================== */

.cta-link {
  display: inline-block;
  font-weight: 700;
  color: var(--link);
  text-decoration: none;
  padding: 4px 0;
}

.cta-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Tiles / badges
   ========================================================================== */

.thumb {
  position: relative;
}

.badge,
.chip,
.thumb .badge,
.thumb .chip {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 16, 32, 0.88) !important;
  color: #fff !important;
  font: 600 12px/1 system-ui;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border: 0 !important;
}

.tile .ribbon,
.tile .badge,
.tile .chip {
  background: rgba(10, 16, 32, 0.88) !important;
  color: #fff !important;
  border: 0 !important;
}

/* ==========================================================================
   Visualize / package section
   ========================================================================== */

.visualize-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 14px 0 18px;
}

.visualize-header h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
}

.visualize-header .sub {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 20px);
}

/* ==========================================================================
   Technology Section
   ========================================================================== */

.tech-section {
  margin: 34px 0;
  padding: 22px 20px;
}

.tech-grid {
  display: block;
}

.tech-kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--link);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tech-title {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
}

.tech-copy {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 760px;
}

.tech-bullets {
  margin: 0;
  padding-left: 1.1rem;
}

.tech-bullets li {
  margin: 10px 0;
}

.tech-visual {
  min-height: 260px;
  border: 1px dashed color-mix(in srgb, var(--brand-cyan) 22%, var(--border));
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 20% 30%,
      color-mix(in srgb, var(--brand-cyan) 14%, transparent),
      transparent 34%
    ),
    radial-gradient(
      circle at 76% 24%,
      color-mix(in srgb, var(--brand-magenta) 14%, transparent),
      transparent 30%
    ),
    color-mix(in srgb, var(--panel) 90%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.tech-placeholder {
  color: var(--muted);
  max-width: 320px;
}

.tech-placeholder strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  padding: 28px 20px 36px;
  text-align: center;
  color: var(--muted);
}
.ecosystem-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecosystem-img {
  width: 100%;
  max-width: 740px;
  height: auto;
  display: block;
  margin: 0 auto;
  opacity: 0.98;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.ecosystem-img:hover {
  transform: scale(1.01);
  opacity: 1;
}
.ecosystem-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
}

.ecosystem-copy {
  padding-left: 12px;
  border-left: 2px solid rgba(199, 182, 255, 0.22);
}

.ecosystem-heading {
  margin: 0 0 10px;
  font-size: 20px;
  color: #c7b6ff;
}

.ecosystem-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ecosystem-list li {
  margin: 8px 0;
  font-size: 17px;
  line-height: 1.25;
}

.eco-code {
  display: inline-block;
  min-width: 34px;
  font-weight: 800;
}

.ecosystem-list li:nth-child(1) .eco-code,
.ecosystem-list li:nth-child(7) .eco-code {
  color: #b388ff;
}

.ecosystem-list li:nth-child(2) .eco-code,
.ecosystem-list li:nth-child(4) .eco-code,
.ecosystem-list li:nth-child(6) .eco-code {
  color: #00e5ff;
}

.ecosystem-list li:nth-child(3) .eco-code,
.ecosystem-list li:nth-child(5) .eco-code {
  color: #ff4fe1;
}

.ecosystem-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ecosystem-img {
  width: 100%;
  max-width: 780px;
  height: auto;
  display: block;
  margin: 0 auto;
  opacity: 0.98;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.ecosystem-img:hover {
  transform: scale(1.01);
  opacity: 1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 920px) {
  .rolegrid,
  #pkgCards,
  .tech-grid {
    grid-template-columns: 1fr !important;
  }

  /* 👇 ADD RIGHT HERE */
  .ecosystem-grid {
    grid-template-columns: 1fr !important;
  }

  .ecosystem-copy {
    padding-right: 0;
    margin-bottom: 18px; /* optional but nice spacing */
  }

  .hero {
    padding-top: 82px;
    padding-bottom: 64px;
  }
}

@media (max-width: 700px) {
  .topbar {
    padding-top: 0.95rem;
  }

  .topnav {
    gap: 0.7rem;
  }

  .hero h1 {
    max-width: 100%;
  }
}

/* ================================
   Instruction Block (Estimator)
================================ */

.instruction-copy {
  margin: 0;
  padding-left: 1.4rem;
}

.instruction-copy li {
  margin: 0 0 12px 0;
  color: var(--text);
  line-height: 1.6;
}

.instruction-note {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* ================================
   Light Theme Component Overrides
   ================================ */

html:not([data-theme="dark"]) .section {
  background: var(--bg);
}

html:not([data-theme="dark"]) .role.card,
html:not([data-theme="dark"]) .pkg-card,
html:not([data-theme="dark"]) .card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

html:not([data-theme="dark"]) h1,
html:not([data-theme="dark"]) h2,
html:not([data-theme="dark"]) h3 {
  color: #0f172a;
}

html:not([data-theme="dark"]) p,
html:not([data-theme="dark"]) li,
html:not([data-theme="dark"]) .muted,
html:not([data-theme="dark"]) .section-subtitle,
html:not([data-theme="dark"]) .hero-sub,
html:not([data-theme="dark"]) .hero-trust {
  color: #334155;
}

html:not([data-theme="dark"]) .action-link,
html:not([data-theme="dark"]) .topnav a {
  color: var(--text);
}

html:not([data-theme="dark"]) .btn-outline {
  border-color: rgba(15, 23, 42, 0.14);
  color: #0f172a;
}

html:not([data-theme="dark"]) .btn-outline:hover {
  background: rgba(15, 23, 42, 0.04);
}

html:not([data-theme="dark"]) .topbar {
  background: rgba(255, 255, 255, 0.88);
}

html:not([data-theme="dark"]) .hero {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.1)
    ),
    url("../img/gravy-hero-band.png") center/cover no-repeat,
    linear-gradient(180deg, var(--panel), var(--bg));
}

/* ================================
   Light Mode Hero = Dark Hero Styling
   ================================ */

html:not([data-theme="dark"]) .hero {
  background:
    linear-gradient(180deg, rgba(5, 7, 12, 0.58), rgba(5, 7, 12, 0.84)),
    url("../img/gravy-hero-band.png") center/cover no-repeat,
    linear-gradient(180deg, #05070c, #0a1020);
}

html:not([data-theme="dark"]) .hero h1,
html:not([data-theme="dark"]) .hero .hero-sub,
html:not([data-theme="dark"]) .hero .hero-trust,
html:not([data-theme="dark"]) .hero .eyebrow,
html:not([data-theme="dark"]) .hero .pill {
  color: #eef4fb;
}

html:not([data-theme="dark"]) .hero .eyebrow {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

html:not([data-theme="dark"]) .hero .btn-primary {
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-violet)) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

html:not([data-theme="dark"]) .hero .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.04);
}

html:not([data-theme="dark"]) .hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Hero is out of scope for Phase 4a-1 — these dark-mode equivalents keep the
   hero's existing look exactly as-is, isolated from the base button update above. */
html[data-theme="dark"] .hero .btn-primary {
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-violet)) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 10px 24px rgba(0, 215, 255, 0.18);
}

html[data-theme="dark"] .hero .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

html:not([data-theme="dark"]) .hero .pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  font-weight: 600;
}
#offerings,
#technology {
  scroll-margin-top: 110px;
}


/* ========================================================================== 
   grAVy UX + Conversion Upgrade
   ========================================================================== */
.theme-transform{padding:28px 16px 10px}.theme-transform-card{display:grid;grid-template-columns:minmax(260px,.62fr) minmax(320px,1.38fr);gap:22px;align-items:center;padding:22px;overflow:hidden;background:radial-gradient(circle at 18% 12%,color-mix(in srgb,var(--accent-rich) 14%,transparent),transparent 32%),linear-gradient(135deg,color-mix(in srgb,var(--panel) 94%,transparent),color-mix(in srgb,var(--card) 88%,transparent))}.theme-transform-kicker{margin:0 0 8px;color:var(--link);font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.theme-transform-copy h2{margin:0 0 8px;font-size:clamp(24px,3vw,34px)}.theme-transform-copy p:last-child{margin:0;color:var(--muted)}.theme-transform-visual img{width:100%;display:block;border-radius:18px;box-shadow:var(--shadow-strong)}.theme-transform-placeholder{padding:52px 20px;text-align:center;border:1px dashed color-mix(in srgb,var(--accent-rich) 42%,var(--border));border-radius:18px;color:var(--muted);background:color-mix(in srgb,var(--card) 84%,transparent)}.selection-message{margin-top:14px;padding:12px 14px;border-radius:14px;background:color-mix(in srgb,var(--accent-rich) 12%,var(--panel));border:1px solid color-mix(in srgb,var(--accent-rich) 34%,var(--border));color:var(--text);font-weight:700}.theme-upgrade{margin-top:20px;padding:22px;display:grid;gap:14px;background:radial-gradient(circle at top left,color-mix(in srgb,var(--accent-rich) 12%,transparent),transparent 34%),var(--panel)}.theme-upgrade h2{margin:0;font-size:clamp(24px,3vw,34px)}.theme-upgrade .theme-upgrade-copy,.theme-upgrade .microcopy{margin:0;color:var(--muted)}.theme-upgrade-grid{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end}.theme-upgrade input{min-height:54px}.theme-success{margin:0;padding:12px 14px;border-radius:14px;background:color-mix(in srgb,var(--accent-rich) 14%,var(--panel));border:1px solid color-mix(in srgb,var(--accent-rich) 34%,var(--border));font-weight:800}@media (max-width:900px){.theme-transform-card,.theme-upgrade-grid{grid-template-columns:1fr}}


/* Theme Upgrade lead form refinements */
.hidden-field { display: none !important; }
.theme-upgrade-form { display: grid; gap: 12px; }
.theme-upgrade-field { display: grid; gap: 7px; }
.theme-upgrade-field span { color: var(--muted); font-size: 13px; font-weight: 700; }
.theme-upgrade textarea, .theme-upgrade input { width: 100%; min-height: 54px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); color: var(--text); font: inherit; }
.theme-upgrade textarea { min-height: 96px; resize: vertical; }
.theme-upgrade button[disabled] { cursor: wait; opacity: 0.72; }
.theme-error { margin: 0; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, #dc2626 10%, var(--panel)); border: 1px solid color-mix(in srgb, #dc2626 35%, var(--border)); color: var(--text); font-weight: 700; }

/* Theme Upgrade form final layout polish */
.theme-upgrade .hidden-field {
  display: none !important;
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.theme-upgrade-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 340px !important;
  gap: 14px 22px !important;
  align-items: end !important;
}

.theme-upgrade-field--wide {
  grid-column: 1 / -1 !important;
}

.theme-upgrade textarea {
  min-height: 150px !important;
  line-height: 1.45 !important;
}

.theme-upgrade button[type="submit"] {
  min-height: 58px;
  align-self: end;
}

.theme-upgrade .microcopy {
  margin-top: 2px;
}

@media (max-width: 900px) {
  .theme-upgrade-grid {
    grid-template-columns: 1fr !important;
  }
}
