:root {
  --bg: #f3efe5;
  --bg-strong: #e5dcc9;
  --panel: rgba(255, 252, 244, 0.82);
  --panel-strong: #fff9ec;
  --ink: #18261f;
  --muted: #5f675b;
  --line: rgba(24, 38, 31, 0.14);
  --accent: #ba4a2f;
  --accent-deep: #8e311b;
  --accent-soft: #f5d7c5;
  --shadow: 0 24px 60px rgba(33, 37, 22, 0.14);
  --radius: 22px;
  --radius-sm: 14px;
  --container: min(1120px, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(186, 74, 47, 0.14), transparent 32%),
    linear-gradient(180deg, #f8f4ea 0%, #efe7d8 100%);
  line-height: 1.5;
}

a {
  color: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 244, 234, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav-shell,
.footer-shell,
.hero-grid,
.section-grid,
.structure-shell,
.form-shell,
.success-shell {
  display: grid;
  gap: 1.5rem;
}

.nav-shell {
  align-items: center;
  grid-template-columns: 1fr auto;
  padding: 1rem 0;
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--accent-deep);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.3rem;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.button-primary,
.nav-cta {
  background: var(--accent);
  color: #fff8f4;
}

.button-primary:hover,
.nav-cta:hover {
  background: var(--accent-deep);
  color: #fff8f4;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.hero,
.section {
  padding: 5rem 0;
}

.hero-grid,
.section-grid,
.structure-shell {
  grid-template-columns: 1.35fr 1fr;
  align-items: start;
}

.hero-copy h1,
.section h2,
.form-intro h1,
.success-shell h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 4.8vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.section h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.hero-text,
.section-copy p,
.panel p,
.form-intro p,
.success-shell p {
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow,
.card-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

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

.hero-card,
.panel,
.briefing-form,
.success-shell {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card,
.panel,
.success-shell {
  padding: 1.6rem;
}

.checklist {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.8rem;
}

.band {
  background: rgba(255, 249, 236, 0.52);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.three-up,
.two-up {
  display: grid;
  gap: 1.2rem;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.pricing-card h2 {
  margin: 0 0 0.7rem;
  font-size: 2.5rem;
}

.checkout-panel {
  padding: 1.6rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.package-select.is-selected {
  background: var(--accent-deep);
}

.paypal-button-shell {
  margin-top: 1rem;
  min-height: 44px;
}

.hidden-text {
  display: none;
}

.panel h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

.briefing-panel {
  margin-bottom: 1rem;
}

.briefing-list {
  padding-left: 1.1rem;
  margin: 0.75rem 0 0;
}

.callout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.callout-card {
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: rgba(186, 74, 47, 0.08);
  border: 1px solid rgba(186, 74, 47, 0.15);
}

.callout-card span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  margin-bottom: 0.35rem;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

th,
td {
  padding: 0.8rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.structure-list span {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-strong);
  font-size: 0.98rem;
}

.form-page {
  padding-top: 3rem;
}

.form-shell {
  max-width: 1040px;
}

.briefing-form {
  padding: 1.6rem;
}

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

.field-shell {
  display: grid;
  gap: 0.45rem;
}

.field-shell-wide {
  grid-column: 1 / -1;
}

label {
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(24, 38, 31, 0.2);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

ul[id^="id_local_transport_modes"] {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0;
  margin: 0;
}

ul[id^="id_local_transport_modes"] li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
}

ul[id^="id_local_transport_modes"] input {
  width: auto;
}

.field-error,
.form-errors {
  color: #8c2f1b;
  font-size: 0.92rem;
}

.site-footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.message-stack {
  margin-top: 1rem;
}

.message-banner {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(186, 74, 47, 0.12);
  color: var(--accent-deep);
  border: 1px solid rgba(186, 74, 47, 0.18);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 74px);
}

.dashboard-sidebar {
  padding: 2rem 1.4rem;
  border-right: 1px solid var(--line);
  background: rgba(255, 248, 236, 0.88);
  position: sticky;
  top: 74px;
  height: calc(100vh - 74px);
}

.dashboard-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
}

.dashboard-nav {
  display: grid;
  gap: 0.55rem;
  margin-top: 2rem;
}

.dashboard-nav a {
  text-decoration: none;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

.dashboard-main {
  padding: 2rem;
}

.dashboard-heading {
  margin-top: 0;
  font-size: clamp(2rem, 3vw, 3rem);
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.metric-card strong {
  font-size: 2rem;
}

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

.dashboard-list {
  display: grid;
  gap: 0.65rem;
}

.dashboard-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.dashboard-row:last-child {
  border-bottom: 0;
}

.dashboard-filters {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
}

.dashboard-filters input,
.dashboard-filters select {
  max-width: 340px;
}

.table-actions {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
}

.table-actions form {
  margin: 0;
}

.table-button {
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.auth-shell {
  max-width: 520px;
}

.auth-card {
  padding: 1.6rem;
  display: grid;
  gap: 1rem;
}

@media (max-width: 920px) {
  .hero-grid,
  .section-grid,
  .structure-shell,
  .three-up,
  .two-up,
  .pricing-grid,
  .checkout-grid,
  .dashboard-shell,
  .dashboard-grid,
  .dashboard-metrics,
  .form-grid,
  .nav-shell {
    grid-template-columns: 1fr;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .dashboard-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dashboard-filters {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .hero,
  .section {
    padding: 3.6rem 0;
  }

  .hero-copy h1,
  .section h2,
  .form-intro h1,
  .success-shell h1 {
    line-height: 1;
  }

  ul[id^="id_local_transport_modes"] {
    grid-template-columns: 1fr;
  }
}

.ops-app-shell {
  --ops-bg: #6f8194;
  --ops-bg-deep: #516273;
  --ops-panel: rgba(241, 246, 251, 0.92);
  --ops-panel-strong: #f8fbff;
  --ops-panel-muted: rgba(223, 232, 241, 0.78);
  --ops-line: rgba(44, 62, 80, 0.16);
  --ops-line-strong: rgba(44, 62, 80, 0.28);
  --ops-ink: #102133;
  --ops-muted: #5d7083;
  --ops-accent: #184a7a;
  --ops-accent-strong: #0f365a;
  --ops-accent-soft: #d9e7f5;
  --ops-success: #1d6b52;
  --ops-shadow: 0 20px 50px rgba(14, 31, 47, 0.18);
  margin: 0;
  min-height: 100vh;
  color: var(--ops-ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(214, 231, 248, 0.45), transparent 26%),
    radial-gradient(circle at bottom right, rgba(16, 33, 51, 0.18), transparent 30%),
    linear-gradient(180deg, #7d90a5 0%, #65788b 100%);
}

.ops-app-shell *,
.ops-app-shell *::before,
.ops-app-shell *::after {
  box-sizing: border-box;
}

.ops-app-shell a {
  color: inherit;
}

.ops-app-shell body,
.ops-app-shell input,
.ops-app-shell select,
.ops-app-shell textarea,
.ops-app-shell button {
  font-family: "Manrope", sans-serif;
}

.ops-app-frame {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 84px 290px minmax(0, 1fr);
  gap: 0;
}

.ops-icon-rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem 0.9rem;
  background: rgba(18, 35, 52, 0.24);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.ops-rail-brand,
.ops-rail-link {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  text-decoration: none;
}

.ops-rail-brand {
  background: rgba(248, 251, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.ops-brand-glyph {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ops-accent-strong);
}

.ops-rail-links,
.ops-rail-footer {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
}

.ops-rail-link {
  color: rgba(248, 251, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.ops-rail-link:hover,
.ops-rail-link.is-active {
  transform: translateY(-1px);
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.14);
}

.ops-sidepanel {
  display: grid;
  align-content: start;
  gap: 1.1rem;
  padding: 1.35rem 1.2rem;
  background: rgba(240, 246, 252, 0.68);
  border-right: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(18px);
}

.ops-sidepanel-header {
  display: grid;
  gap: 0.2rem;
  padding: 0.3rem 0.25rem 0.7rem;
}

.ops-sidepanel-header strong,
.ops-stage-copy h1,
.ops-card-title h2,
.ops-panel h2,
.ops-panel h3,
.ops-metric-card strong,
.ops-auth-copy h1,
.ops-auth-card h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.ops-sidepanel-header strong {
  font-size: 1.55rem;
}

.ops-kicker,
.ops-mini,
.ops-pill,
.ops-sidebar-spec-copy span,
.ops-panel thead th,
.ops-app-shell th {
  font-family: "IBM Plex Mono", monospace;
}

.ops-kicker,
.ops-mini {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ops-muted);
}

.ops-sidecard,
.ops-panel,
.ops-metric-card,
.ops-auth-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.96) 0%, rgba(235, 243, 250, 0.92) 100%);
  box-shadow: var(--ops-shadow);
}

.ops-sidecard {
  padding: 1rem;
}

.ops-card-title,
.ops-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ops-card-title {
  flex-direction: column;
  gap: 0.25rem;
}

.ops-sidebar-nav,
.ops-sidebar-spec-list,
.ops-record-list,
.ops-stage-stack {
  display: grid;
  gap: 0.8rem;
}

.ops-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--ops-ink);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.ops-sidebar-link:hover,
.ops-sidebar-link.is-active {
  transform: translateY(-1px);
  background: rgba(217, 231, 245, 0.92);
  border-color: rgba(24, 74, 122, 0.12);
}

.ops-sidebar-link i,
.ops-sidebar-spec-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(24, 74, 122, 0.08);
  color: var(--ops-accent);
}

.ops-sidebar-link span:last-child,
.ops-sidebar-spec-copy {
  display: grid;
  gap: 0.15rem;
}

.ops-sidebar-spec {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}

.ops-sidebar-spec-copy strong {
  font-size: 0.98rem;
}

.ops-stage {
  min-width: 0;
  padding: 1.25rem;
  display: grid;
  align-content: start;
  gap: 1rem;
}

.ops-stage-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0.15rem 0.1rem;
}

.ops-stage-copy {
  display: grid;
  gap: 0.3rem;
}

.ops-stage-copy h1 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 0.95;
}

.ops-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ops-page-shell {
  display: grid;
  gap: 1rem;
}

.ops-flash-stack {
  display: grid;
  gap: 0.65rem;
}

.ops-flash {
  border-radius: 16px;
  padding: 0.9rem 1rem;
  color: var(--ops-accent-strong);
  background: rgba(236, 244, 252, 0.92);
  border: 1px solid rgba(24, 74, 122, 0.14);
  box-shadow: 0 10px 24px rgba(14, 31, 47, 0.08);
}

.ops-app-shell .button,
.ops-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.ops-app-shell .button:hover,
.ops-link-button:hover {
  transform: translateY(-1px);
}

.ops-app-shell .button-primary {
  background: var(--ops-accent);
  color: #f7fbff;
}

.ops-app-shell .button-primary:hover {
  background: var(--ops-accent-strong);
  color: #f7fbff;
}

.ops-app-shell .button-secondary,
.ops-link-button {
  background: rgba(255, 255, 255, 0.58);
  color: var(--ops-accent-strong);
  border-color: rgba(24, 74, 122, 0.14);
}

.ops-app-shell .button-secondary:hover,
.ops-link-button:hover {
  background: rgba(217, 231, 245, 0.92);
  color: var(--ops-accent-strong);
}

.ops-metric-grid,
.ops-content-grid {
  display: grid;
  gap: 1rem;
}

.ops-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.ops-content-grid-wide {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.ops-metric-card,
.ops-panel {
  padding: 1.1rem 1.15rem;
}

.ops-metric-card {
  display: grid;
  gap: 0.35rem;
}

.ops-metric-card span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ops-muted);
}

.ops-metric-card strong {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 0.95;
}

.ops-metric-card p,
.ops-panel p,
.ops-panel li,
.ops-auth-copy p {
  margin: 0;
  color: var(--ops-muted);
}

.ops-panel p + p,
.ops-panel ul,
.ops-panel .table-wrap,
.callout-grid {
  margin-top: 0.9rem;
}

.ops-record-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0.95rem;
  border-radius: 16px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(24, 74, 122, 0.08);
}

.ops-record-row strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1rem;
}

.ops-record-row-block {
  align-items: start;
}

.ops-record-row-block p {
  margin-top: 0.45rem;
}

.ops-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(24, 74, 122, 0.12);
  color: var(--ops-accent-strong);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ops-pill.subtle {
  background: rgba(16, 33, 51, 0.08);
  color: var(--ops-muted);
}

.ops-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.ops-filter-bar input,
.ops-filter-bar select,
.ops-auth-card input,
.ops-app-shell input,
.ops-app-shell select,
.ops-app-shell textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(24, 74, 122, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ops-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ops-filter-bar input {
  flex: 1 1 320px;
}

.ops-filter-bar select {
  flex: 0 1 220px;
}

.ops-app-shell input:focus,
.ops-app-shell select:focus,
.ops-app-shell textarea:focus {
  outline: 2px solid rgba(24, 74, 122, 0.18);
  outline-offset: 1px;
}

.ops-app-shell label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ops-muted);
}

.ops-app-shell .field-shell {
  gap: 0.45rem;
}

.ops-app-shell .field-error {
  color: #8f3020;
}

.ops-app-shell .table-wrap {
  overflow-x: auto;
}

.ops-app-shell table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.ops-app-shell th,
.ops-app-shell td {
  padding: 0.9rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(24, 74, 122, 0.08);
  vertical-align: top;
}

.ops-app-shell th {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ops-muted);
}

.ops-table-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.ops-table-actions a,
.ops-link-button {
  color: var(--ops-accent);
}

.ops-table-actions form {
  margin: 0;
}

.ops-inline-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ops-inline-form select {
  flex: 1 1 240px;
}

.ops-action-stack,
.ops-data-pairs,
.ops-section-list {
  display: grid;
  gap: 0.8rem;
}

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

.ops-data-pairs strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.98rem;
  color: var(--ops-ink);
}

.ops-info-block,
.ops-note-box,
.ops-section-row {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(24, 74, 122, 0.08);
}

.ops-info-block,
.ops-note-box {
  padding: 0.95rem 1rem;
}

.ops-info-block strong,
.ops-note-box p {
  display: block;
  margin-top: 0.25rem;
}

.ops-note-box p {
  color: var(--ops-muted);
}

.ops-section-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
}

.ops-auth-shell {
  display: grid;
  place-items: center;
  padding: 2rem;
}

.ops-auth-frame {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: 1.1fr minmax(320px, 420px);
  gap: 1.25rem;
  align-items: stretch;
}

.ops-auth-copy,
.ops-auth-card {
  padding: 1.5rem;
}

.ops-auth-copy {
  display: grid;
  align-content: end;
  gap: 0.8rem;
  border-radius: 28px;
  color: #f7fbff;
  background:
    linear-gradient(180deg, rgba(15, 33, 50, 0.5) 0%, rgba(15, 33, 50, 0.28) 100%),
    linear-gradient(135deg, rgba(233, 242, 251, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 520px;
}

.ops-auth-copy .ops-kicker,
.ops-auth-copy p {
  color: rgba(247, 251, 255, 0.84);
}

.ops-auth-copy h1 {
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 0.92;
  max-width: 9ch;
}

.ops-auth-card {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.ops-auth-card .button {
  width: 100%;
}

@media (max-width: 1180px) {
  .ops-app-frame {
    grid-template-columns: 84px 250px minmax(0, 1fr);
  }

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

@media (max-width: 920px) {
  .ops-app-frame {
    grid-template-columns: 1fr;
  }

  .ops-icon-rail {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .ops-rail-links,
  .ops-rail-footer {
    display: flex;
    flex-wrap: wrap;
  }

  .ops-sidepanel {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  }

  .ops-content-grid,
  .ops-content-grid-wide,
  .ops-auth-frame {
    grid-template-columns: 1fr;
  }

  .ops-auth-copy {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .ops-auth-shell,
  .ops-stage {
    padding: 1rem;
  }

  .ops-sidepanel {
    padding: 1rem;
  }

  .ops-stage-topbar,
  .ops-filter-bar,
  .ops-record-row,
  .ops-table-actions,
  .ops-inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-metric-grid {
    grid-template-columns: 1fr;
  }

  .ops-data-pairs,
  .ops-section-row {
    grid-template-columns: 1fr;
  }

  .ops-app-shell table {
    min-width: 540px;
  }
}
