:root {
  color-scheme: dark;
  --background: #050812;
  --background-grid: rgba(101, 217, 255, 0.08);
  --surface: #0a1020;
  --surface-raised: #10192c;
  --surface-muted: #0d1424;
  --text: #f7fbff;
  --text-secondary: #b8c4d8;
  --text-muted: #8290a8;
  --border: #243149;
  --border-strong: #365071;
  --brand: #65d9ff;
  --brand-strong: #2fb9ff;
  --violet: #8b6cff;
  --success: #39d98a;
  --warning: #f6c65b;
  --danger: #ff6b7a;
  --on-brand: #00111c;
  --header-background: rgba(5, 8, 18, 0.86);
  --hero-overlay-start: rgba(5, 8, 18, 0.98);
  --hero-overlay-mid: rgba(5, 8, 18, 0.86);
  --hero-overlay-end: rgba(5, 8, 18, 0.34);
  --control-background: rgba(255, 255, 255, 0.03);
  --announcement-background:
    linear-gradient(90deg, rgba(101, 217, 255, 0.13), rgba(139, 108, 255, 0.12)),
    rgba(10, 16, 32, 0.92);
  --overlay-background: rgba(1, 4, 11, 0.72);
  --dialog-background: #080d19;
  --panel-background: rgba(10, 16, 32, 0.8);
  --panel-background-strong: rgba(16, 25, 44, 0.92);
  --panel-background-muted: rgba(10, 16, 32, 0.56);
  --field-background: rgba(5, 8, 18, 0.82);
  --field-background-soft: rgba(5, 8, 18, 0.46);
  --section-muted-background: rgba(255, 255, 255, 0.025);
  --footer-background: rgba(5, 8, 18, 0.9);
  --code-text: #d9f5ff;
  --success-text: #aaf0cc;
  --danger-text: #ffc0c7;
  --radius: 8px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
  --focus: 0 0 0 3px rgba(101, 217, 255, 0.28);
  --container: 1120px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --background: #f4f8fc;
  --background-grid: rgba(0, 111, 158, 0.08);
  --surface: #ffffff;
  --surface-raised: #edf3f9;
  --surface-muted: #e7eef6;
  --text: #102033;
  --text-secondary: #41536a;
  --text-muted: #63728a;
  --border: #c9d6e5;
  --border-strong: #9eb3c9;
  --brand: #006f9e;
  --brand-strong: #005781;
  --violet: #6348d8;
  --success: #087f4b;
  --warning: #9a6800;
  --danger: #bf3043;
  --on-brand: #ffffff;
  --header-background: rgba(244, 248, 252, 0.9);
  --hero-overlay-start: rgba(244, 248, 252, 0.98);
  --hero-overlay-mid: rgba(244, 248, 252, 0.88);
  --hero-overlay-end: rgba(244, 248, 252, 0.28);
  --control-background: rgba(255, 255, 255, 0.74);
  --announcement-background:
    linear-gradient(90deg, rgba(0, 111, 158, 0.1), rgba(99, 72, 216, 0.09)),
    rgba(255, 255, 255, 0.94);
  --overlay-background: rgba(16, 32, 51, 0.42);
  --dialog-background: #ffffff;
  --panel-background: rgba(255, 255, 255, 0.86);
  --panel-background-strong: rgba(237, 243, 249, 0.96);
  --panel-background-muted: rgba(255, 255, 255, 0.72);
  --field-background: rgba(255, 255, 255, 0.92);
  --field-background-soft: rgba(231, 238, 246, 0.72);
  --section-muted-background: rgba(0, 111, 158, 0.04);
  --footer-background: rgba(231, 238, 246, 0.9);
  --code-text: #123c55;
  --success-text: #075d38;
  --danger-text: #8e2030;
  --shadow: 0 18px 60px rgba(16, 32, 51, 0.14);
  --focus: 0 0 0 3px rgba(0, 111, 158, 0.24);
}

@media (prefers-color-scheme: light) {
  html[data-theme="system"] {
    color-scheme: light;
    --background: #f4f8fc;
    --background-grid: rgba(0, 111, 158, 0.08);
    --surface: #ffffff;
    --surface-raised: #edf3f9;
    --surface-muted: #e7eef6;
    --text: #102033;
    --text-secondary: #41536a;
    --text-muted: #63728a;
    --border: #c9d6e5;
    --border-strong: #9eb3c9;
    --brand: #006f9e;
    --brand-strong: #005781;
    --violet: #6348d8;
    --success: #087f4b;
    --warning: #9a6800;
    --danger: #bf3043;
    --on-brand: #ffffff;
    --header-background: rgba(244, 248, 252, 0.9);
    --hero-overlay-start: rgba(244, 248, 252, 0.98);
    --hero-overlay-mid: rgba(244, 248, 252, 0.88);
    --hero-overlay-end: rgba(244, 248, 252, 0.28);
    --control-background: rgba(255, 255, 255, 0.74);
    --announcement-background:
      linear-gradient(90deg, rgba(0, 111, 158, 0.1), rgba(99, 72, 216, 0.09)),
      rgba(255, 255, 255, 0.94);
    --overlay-background: rgba(16, 32, 51, 0.42);
    --dialog-background: #ffffff;
    --panel-background: rgba(255, 255, 255, 0.86);
    --panel-background-strong: rgba(237, 243, 249, 0.96);
    --panel-background-muted: rgba(255, 255, 255, 0.72);
    --field-background: rgba(255, 255, 255, 0.92);
    --field-background-soft: rgba(231, 238, 246, 0.72);
    --section-muted-background: rgba(0, 111, 158, 0.04);
    --footer-background: rgba(231, 238, 246, 0.9);
    --code-text: #123c55;
    --success-text: #075d38;
    --danger-text: #8e2030;
    --shadow: 0 18px 60px rgba(16, 32, 51, 0.14);
    --focus: 0 0 0 3px rgba(0, 111, 158, 0.24);
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(var(--background-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--background-grid) 1px, transparent 1px),
    radial-gradient(circle at 72% 18%, rgba(101, 217, 255, 0.12), transparent 32rem),
    var(--background);
  background-size:
    48px 48px,
    48px 48px,
    auto,
    auto;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  padding: 0.7rem 1rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(54, 80, 113, 0.58);
  background: var(--header-background);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-wordmark {
  display: block;
  width: 164px;
  height: 34px;
}

.brand-wordmark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-wordmark-light {
  display: none !important;
}

html[data-theme="light"] .brand-wordmark-dark {
  display: none !important;
}

html[data-theme="light"] .brand-wordmark-light {
  display: block !important;
}

.footer-brand .brand-wordmark {
  width: 148px;
  height: 30px;
}

@media (prefers-color-scheme: light) {
  html[data-theme="system"] .brand-wordmark-dark {
    display: none !important;
  }

  html[data-theme="system"] .brand-wordmark-light {
    display: block !important;
  }
}

.desktop-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.desktop-nav a {
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-weight: 650;
  padding: 0.65rem 0.85rem;
}

.desktop-nav a:hover {
  background: rgba(101, 217, 255, 0.08);
  color: var(--text);
}

.desktop-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  background: rgba(101, 217, 255, 0.12);
  color: var(--text);
}

.button,
.icon-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 750;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.button {
  gap: 0.5rem;
  padding: 0.7rem 1rem;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.button-primary {
  border-color: transparent;
  background: var(--brand);
  color: var(--on-brand);
}

.button-secondary {
  background: rgba(139, 108, 255, 0.14);
  color: var(--text);
}

.button-ghost,
.icon-button {
  background: var(--control-background);
  color: var(--text);
}

.icon-button {
  width: 44px;
  padding: 0;
}

.mobile-menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 17px;
  height: 2px;
  background: currentColor;
}

.theme-control {
  position: relative;
}

.theme-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 0.48rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--control-background);
  color: var(--text);
  cursor: pointer;
  font-weight: 750;
  padding: 0.7rem 0.8rem;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.theme-toggle-mark {
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: linear-gradient(90deg, currentColor 0 50%, transparent 50% 100%);
}

.theme-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 90;
  display: grid;
  width: 168px;
  gap: 0.25rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--dialog-background);
  box-shadow: var(--shadow);
  padding: 0.35rem;
}

.theme-menu button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.6rem 0.7rem;
  text-align: left;
}

.theme-menu button:hover,
.theme-menu button[aria-checked="true"] {
  border-color: var(--border);
  background: var(--control-background);
  color: var(--text);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem 1rem;
}

.mobile-nav a {
  display: block;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-weight: 700;
  padding: 0.85rem 0.5rem;
}

.theme-campaign-active .site-header {
  border-bottom-color: rgba(139, 108, 255, 0.46);
}

.theme-announcement {
  border-bottom: 1px solid rgba(101, 217, 255, 0.2);
  background: var(--announcement-background);
}

.theme-announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 0.8rem;
  padding-block: 0.55rem;
  text-align: center;
}

.theme-announcement span {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.theme-announcement a {
  flex: 0 0 auto;
  border: 1px solid rgba(101, 217, 255, 0.34);
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.28rem 0.62rem;
}

.theme-motion-standard .theme-announcement {
  animation: themeAnnouncementIn 280ms ease-out both;
}

@keyframes themeAnnouncementIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.command-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: start center;
  background: var(--overlay-background);
  padding: 8vh 1rem 1rem;
}

.command-dialog {
  width: min(100%, 680px);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--dialog-background);
  box-shadow: var(--shadow);
}

.command-input-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding: 0.9rem;
}

.command-input-row input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: 0;
}

.command-input-row button {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-secondary);
  padding: 0.35rem 0.5rem;
}

.command-results {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
}

.command-results a {
  border-radius: var(--radius);
  color: var(--text-secondary);
  padding: 0.75rem;
}

.command-results a:hover {
  background: rgba(101, 217, 255, 0.08);
  color: var(--text);
}

.hero-section,
.page-hero {
  padding: clamp(4.5rem, 8vw, 8rem) 0 4rem;
}

.hero-section {
  isolation: isolate;
  background-image:
    linear-gradient(
      90deg,
      var(--hero-overlay-start) 0%,
      var(--hero-overlay-mid) 52%,
      var(--hero-overlay-end) 100%
    ),
    url("../images/hero-workstation.png");
  background-position: center, right center;
  background-repeat: no-repeat;
  background-size: 100% 100%, cover;
}

.hero-grid,
.detail-grid,
.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.hero-copy h1,
.page-hero h1,
.workflow-grid h2,
.section-heading h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy h1,
.page-hero h1 {
  max-width: 760px;
  font-size: clamp(2.7rem, 7vw, 5.75rem);
}

.hero-copy p,
.page-hero p,
.workflow-grid p {
  max-width: 680px;
  margin: 1.25rem 0 0;
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  border: 1px solid rgba(101, 217, 255, 0.42);
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  padding: 0.32rem 0.58rem;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.system-panel,
.code-panel,
.detail-aside {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-background-strong), var(--surface));
  box-shadow: var(--shadow);
}

.panel-toolbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1rem;
}

.panel-toolbar span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: var(--danger);
}

.panel-toolbar span:nth-child(2) {
  background: var(--warning);
}

.panel-toolbar span:nth-child(3) {
  background: var(--success);
}

.panel-toolbar strong {
  margin-left: 0.35rem;
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.runtime-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.runtime-list div {
  padding: 1rem;
}

.runtime-list dt {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.runtime-list dd {
  margin: 0.15rem 0 0;
  font-weight: 800;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 1rem;
  color: var(--code-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.section-band {
  padding: 4rem 0;
}

.section-band-muted {
  border-top: 1px solid var(--border);
  background: var(--section-muted-background);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-heading h2,
.workflow-grid h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.section-heading a {
  color: var(--brand);
  font-weight: 800;
}

.catalog-toolbar {
  margin-bottom: 1rem;
}

.filter-form {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr auto auto;
  gap: 0.75rem;
  align-items: end;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-background);
  padding: 1rem;
}

.filter-form label {
  display: grid;
  gap: 0.35rem;
}

.filter-form label span {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.filter-form input,
.filter-form select {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--field-background);
  color: var(--text);
  padding: 0 0.75rem;
}

.contact-hero {
  padding-bottom: 2.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}

.public-hero-grid,
.policy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}

.public-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.public-timeline,
.policy-summary {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-background);
}

.public-timeline div {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
}

.public-timeline div + div {
  border-top: 1px solid var(--border);
}

.public-timeline span,
.policy-summary dt {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.public-timeline strong {
  color: var(--text);
}

.policy-summary {
  padding: 1.2rem;
}

.policy-summary h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.policy-summary dl {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.policy-summary dt,
.policy-summary dd {
  margin: 0;
}

.policy-summary dd {
  margin-top: 0.18rem;
  color: var(--text-secondary);
}

.auth-grid,
.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.62fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}

.contact-grid-form {
  align-items: start;
}

.contact-panel,
.form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-background);
}

.contact-panel {
  padding: 1.25rem;
}

.contact-panel h2,
.form-heading h2 {
  margin: 0;
}

.info-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-secondary);
}

.form-card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.compact-form {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--panel-background-muted);
}

.form-heading {
  display: grid;
  gap: 0.55rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field span {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--field-background);
  color: var(--text);
  padding: 0.78rem 0.85rem;
}

.form-field textarea {
  min-height: 180px;
  resize: vertical;
}

.status-pill {
  width: fit-content;
  border: 1px solid rgba(101, 217, 255, 0.3);
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 850;
  padding: 0.22rem 0.52rem;
}

.alert {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}

.alert-success {
  border-color: rgba(57, 217, 138, 0.38);
  background: rgba(57, 217, 138, 0.08);
  color: var(--success-text);
}

.alert-danger,
.field-error {
  color: var(--danger-text);
}

.alert-danger {
  border-color: rgba(255, 107, 122, 0.38);
  background: rgba(255, 107, 122, 0.08);
}

.field-error {
  font-size: 0.82rem;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.auth-hero,
.account-hero {
  padding-bottom: 3rem;
}

.auth-form {
  align-self: start;
}

.check-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.check-field input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.22rem;
  accent-color: var(--brand);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-background-muted);
  padding: 0.85rem;
}

.choice-grid small {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.form-switch {
  margin: 0;
  color: var(--text-muted);
}

.form-switch a {
  color: var(--brand);
  font-weight: 850;
}

.account-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.account-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 1rem;
  align-items: start;
}

.support-request-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.support-request-item {
  display: grid;
  gap: 0.18rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--field-background-soft);
  padding: 0.75rem;
}

.support-request-item span {
  color: var(--text);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.support-request-item small {
  color: var(--text-muted);
}

.admin-hero {
  padding-bottom: 2.5rem;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.admin-stat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-background);
  padding: 1rem;
}

.admin-stat span {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.admin-stat strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--brand);
  font-size: 2rem;
}

.theme-guardrail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.theme-guardrail div {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-background);
  padding: 1rem;
}

.theme-guardrail h2 {
  margin: 0.65rem 0 0.25rem;
}

.theme-guardrail p {
  margin: 0;
  color: var(--text-secondary);
}

.theme-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
}

.theme-preview-panel,
.theme-preview-surface {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-background);
  padding: 1rem;
}

.theme-preview-panel h2,
.theme-preview-content h3 {
  margin: 0.7rem 0 0.35rem;
}

.theme-preview-panel p,
.theme-preview-content p {
  color: var(--text-secondary);
}

.theme-preview-path-form {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 0.8rem;
}

.theme-target-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.theme-target-list span {
  border: 1px solid rgba(101, 217, 255, 0.26);
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 850;
  padding: 0.22rem 0.52rem;
}

.theme-preview-canvas {
  display: grid;
  gap: 1rem;
}

.theme-preview-browser {
  display: flex;
  gap: 0.35rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.8rem;
}

.theme-preview-browser span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(101, 217, 255, 0.34);
}

.theme-preview-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
}

.admin-toolbar {
  margin-bottom: 1rem;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-background);
}

.admin-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.9rem;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-table td strong,
.admin-table td small {
  display: block;
}

.admin-table td small {
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.admin-row-form {
  display: grid;
  grid-template-columns: 130px minmax(180px, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
}

.admin-status-form {
  display: grid;
  gap: 1rem;
}

.admin-row-form input,
.admin-row-form select {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--field-background);
  color: var(--text);
  padding: 0 0.75rem;
}

.admin-inline-link {
  display: inline-flex;
  margin-top: 0.35rem;
  color: var(--brand);
  font-size: 0.83rem;
  font-weight: 850;
}

.admin-editor {
  max-width: 920px;
}

.settings-group-heading {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.settings-group-heading:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.settings-group-heading h3 {
  margin: 0;
  color: var(--text);
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.admin-detail-grid div {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--field-background-soft);
  padding: 0.85rem;
}

.admin-detail-grid span {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-detail-grid strong {
  display: block;
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
}

.request-message {
  overflow-wrap: anywhere;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--field-background-soft);
  color: var(--text-secondary);
  padding: 1rem;
  white-space: normal;
}

.support-detail-stack,
.note-list {
  display: grid;
  gap: 1rem;
}

.note-item {
  display: grid;
  gap: 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--field-background-soft);
  padding: 0.9rem;
}

.note-item strong,
.note-item small {
  display: block;
}

.note-item small {
  color: var(--text-muted);
  margin-top: 0.16rem;
}

.note-item p {
  margin: 0;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.audit-summary-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.audit-summary-list div {
  display: grid;
  grid-template-columns: minmax(90px, 0.35fr) minmax(0, 1fr);
  gap: 0.5rem;
}

.audit-summary-list dt,
.audit-summary-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.audit-summary-list dt {
  color: var(--text-muted);
  font-weight: 850;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.catalog-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-background);
  padding: 1.1rem;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.catalog-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--panel-background-strong);
}

.card-meta,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-meta span,
.card-footer span {
  color: var(--text-muted);
  font-size: 0.83rem;
  font-weight: 750;
}

.card-meta strong {
  border: 1px solid rgba(57, 217, 138, 0.28);
  border-radius: 999px;
  color: var(--success);
  font-size: 0.72rem;
  padding: 0.2rem 0.42rem;
}

.catalog-card h2,
.catalog-card h3 {
  margin: 1rem 0 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.catalog-card p {
  color: var(--text-secondary);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.75rem 0 1rem;
}

.tag-list-large {
  margin-top: 1.25rem;
}

.tag-chip {
  border: 1px solid rgba(101, 217, 255, 0.28);
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.18rem 0.48rem;
}

.card-footer {
  margin-top: auto;
}

.card-footer a {
  color: var(--brand);
  font-weight: 850;
}

.workflow-section {
  padding: 4rem 0;
}

.service-list {
  display: grid;
  gap: 0.75rem;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--panel-background-muted);
  padding: 2rem;
}

.empty-state h2 {
  margin: 0;
}

.empty-state p {
  color: var(--text-secondary);
}

.service-row {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-background);
  padding: 1rem;
}

.service-row span {
  font-weight: 850;
}

.service-row small {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.detail-aside {
  padding: 1.25rem;
}

.detail-aside span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.detail-aside strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--brand);
  font-size: 1.8rem;
}

.detail-aside p {
  color: var(--text-secondary);
}

.detail-icon {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--panel-background);
  object-fit: cover;
}

.detail-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  object-fit: cover;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.media-gallery-item {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-background);
}

.media-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.media-admin-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-background);
}

.media-admin-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--field-background-soft);
  object-fit: cover;
}

.media-admin-card-body {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
}

.media-admin-card-body h3,
.media-admin-card-body p {
  margin: 0;
}

.media-admin-card-body p,
.form-hint {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.media-admin-card-body .admin-status-form {
  margin-top: 0.25rem;
}

.media-admin-card-body .admin-status-form input {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--field-background);
  color: var(--text);
  padding: 0 0.75rem;
}

.prose-block {
  max-width: 780px;
}

.prose-block h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.35rem;
}

.prose-block p {
  color: var(--text-secondary);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  background: var(--footer-background);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.6fr;
  gap: 2rem;
}

.footer-grid p,
.footer-grid span {
  max-width: 460px;
  color: var(--text-muted);
}

.footer-grid h2 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.footer-grid a:not(.brand),
.footer-grid span {
  display: block;
  margin-top: 0.45rem;
}

@media (max-width: 900px) {
  .desktop-nav,
  .button-ghost {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .mobile-nav[data-open="true"] {
    display: block;
  }

  .hero-grid,
  .detail-grid,
  .workflow-grid,
  .contact-grid,
  .public-hero-grid,
  .policy-layout,
  .auth-grid,
  .account-grid,
  .account-settings-grid,
  .account-panel-grid,
  .admin-stat-grid,
  .theme-guardrail,
  .theme-preview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .public-card-grid {
    grid-template-columns: 1fr;
  }

  .filter-form {
    grid-template-columns: 1fr;
  }

  .theme-preview-path-form {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .runtime-list,
  .service-row,
  .media-admin-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 1rem, var(--container));
  }

  .hero-section,
  .page-hero {
    padding-top: 3rem;
  }

  .hero-section {
    background-image: linear-gradient(
      180deg,
      var(--hero-overlay-start),
      var(--hero-overlay-mid)
    );
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .hero-actions,
  .theme-announcement-inner,
  .hero-actions .button {
    width: 100%;
  }

  .theme-announcement-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .theme-preview-content {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

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

/* Rental MVP */
.rental-body {
  background: #f7f3ec;
  color: #201a16;
  min-height: 100vh;
}

.rental-shell {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 24px;
  width: 100%;
}

.rental-header {
  background: rgba(255, 252, 246, 0.92);
  border-bottom: 1px solid rgba(64, 47, 35, 0.14);
  position: sticky;
  top: 0;
  z-index: 40;
}

.rental-header-inner,
.rental-footer-inner {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 72px;
}

.rental-brand {
  color: #201a16;
  display: grid;
  gap: 2px;
  text-decoration: none;
}

.rental-brand span,
.rental-eyebrow {
  color: #8f5a2a;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rental-brand strong {
  font-size: 1rem;
}

.rental-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.rental-nav a,
.rental-link-button {
  background: transparent;
  border: 0;
  color: #4f4035;
  cursor: pointer;
  font: inherit;
  padding: 8px 6px;
  text-decoration: none;
}

.rental-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 235, 0.64)),
    radial-gradient(circle at 80% 20%, rgba(241, 178, 90, 0.25), transparent 32%);
  padding: 96px 0 72px;
}

.rental-hero-compact {
  padding: 64px 0 44px;
}

.rental-public-hero,
.rental-auth-grid,
.rental-room-detail,
.rental-two-column {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
}

.rental-hero h1 {
  color: #201a16;
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  letter-spacing: 0;
  line-height: 0.95;
  margin: 12px 0 18px;
  max-width: 760px;
}

.rental-hero p,
.rental-copy-block p,
.rental-room-card p {
  color: #66564a;
  line-height: 1.7;
}

.rental-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.rental-contact-card,
.rental-panel,
.rental-room-card {
  background: #fffaf1;
  border: 1px solid rgba(64, 47, 35, 0.14);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(77, 52, 25, 0.08);
  padding: 22px;
}

.rental-contact-card strong,
.rental-price {
  color: #8f3f1d;
  display: block;
  font-size: 1.8rem;
  margin: 8px 0;
}

.rental-section {
  padding: 56px 0;
}

.rental-section-muted {
  background: #fff8ed;
}

.rental-section-heading {
  margin-bottom: 24px;
}

.rental-section-heading h2,
.rental-copy-block h2,
.rental-panel h2 {
  color: #201a16;
  letter-spacing: 0;
}

.rental-room-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rental-room-card {
  display: grid;
  gap: 16px;
}

.rental-room-image,
.rental-gallery-placeholder {
  align-items: center;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f0b15d, #9b5130);
  border-radius: 8px;
  color: #fffaf1;
  display: flex;
  font-size: 2.5rem;
  font-weight: 900;
  justify-content: center;
}

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

.rental-gallery img {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.rental-wide-form {
  max-width: 760px;
}

.rental-footer {
  background: #201a16;
  color: #fff8ed;
}

.rental-footer a {
  color: #ffd28a;
}

@media (max-width: 860px) {
  .rental-header-inner,
  .rental-footer-inner,
  .rental-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .rental-public-hero,
  .rental-auth-grid,
  .rental-room-detail,
  .rental-two-column {
    grid-template-columns: 1fr;
  }

  .rental-room-grid,
  .rental-gallery {
    grid-template-columns: 1fr;
  }
}
