:root {
  --shared-control-height: 40px;
  --shared-control-height-mobile: 44px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid oklch(68% 0.12 220 / 0.62);
  outline-offset: 2px;
}

.nav-link,
.btn,
button,
input:not([type="checkbox"]),
select {
  min-height: var(--shared-control-height);
}

.nav-link,
.btn {
  align-items: center;
  justify-content: center;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
}

.checkline input[type="checkbox"],
.filter-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex: 0 0 20px;
}

.route-row[role="button"],
tbody tr[role="button"] {
  outline-offset: -2px;
}

.route-row[role="button"]:focus-visible,
tbody tr[role="button"]:focus-visible td {
  background: oklch(94% 0.025 220);
}

.status[role="status"],
.error[role="alert"] {
  scroll-margin-block: 16px;
}

.launch-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line, oklch(84% 0.014 238));
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--surface, oklch(99% 0.004 238)), color-mix(in oklch, var(--accent-weak, oklch(93% 0.035 220)) 42%, var(--surface, oklch(99% 0.004 238))));
  box-shadow: 0 14px 34px oklch(18% 0.02 238 / 0.08);
}

.launch-strip h2,
.launch-strip p {
  margin: 0;
}

.launch-strip h2 {
  font-size: 17px;
  line-height: 1.2;
}

.launch-strip p {
  margin-top: 4px;
  color: var(--muted, oklch(47% 0.022 238));
  max-width: 72ch;
}

.launch-links {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.launch-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line, oklch(84% 0.014 238));
  border-radius: 999px;
  background: color-mix(in oklch, var(--surface, oklch(99% 0.004 238)) 74%, var(--accent-weak, oklch(93% 0.035 220)));
  color: var(--muted, oklch(47% 0.022 238));
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.launch-pill:hover {
  border-color: var(--line-strong, oklch(75% 0.018 238));
  color: var(--text, oklch(22% 0.018 238));
}

.ad-slot {
  min-width: 0;
}

.ad-slot[hidden] {
  display: none;
}

.ad-slot-enabled {
  display: block;
  min-height: 90px;
  border: 1px solid var(--line, oklch(84% 0.014 238));
  border-radius: 8px;
  background: var(--surface, oklch(99% 0.004 238));
}

.ad-slot-horizontal {
  width: 100%;
  min-height: 90px;
}

.ad-slot-sidebar {
  width: 100%;
  min-height: 250px;
}

.site-footer {
  margin-top: 18px;
  border-top: 1px solid oklch(34% 0.028 238);
  background:
    linear-gradient(180deg, oklch(17% 0.018 238), oklch(12.5% 0.016 238));
  color: oklch(83% 0.012 238);
}

.footer-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px 22px;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(130px, 0.6fr));
  gap: 18px;
}

.footer-brand {
  display: grid;
  gap: 8px;
  color: oklch(74% 0.014 238);
}

.footer-logo {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: oklch(95% 0.006 238);
  font-weight: 850;
}

.site-footer .brand-mark {
  border-color: oklch(60% 0.055 220);
  background: oklch(24% 0.035 220);
  color: oklch(86% 0.07 220);
}

.footer-group {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-group h2 {
  margin: 0;
  color: oklch(95% 0.006 238);
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-group a {
  color: oklch(76% 0.014 238);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.footer-group a:hover {
  color: oklch(84% 0.07 220);
  text-decoration: underline;
}

.support-link {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid oklch(72% 0.09 72);
  border-radius: 7px;
  background: oklch(87% 0.08 72);
  color: oklch(28% 0.06 72) !important;
  font-weight: 850 !important;
  box-shadow: 0 10px 24px oklch(8% 0.015 238 / 0.18);
}

.content-main {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 22px 34px;
  display: grid;
  gap: 16px;
}

.content-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line, oklch(84% 0.014 238));
  border-radius: 8px;
  background: var(--surface, oklch(99% 0.004 238));
  box-shadow: var(--shadow, 0 16px 42px oklch(18% 0.02 238 / 0.16));
}

.content-panel h1,
.content-panel h2,
.content-panel p,
.content-panel ul {
  margin: 0;
}

.content-panel h1 {
  font-size: 28px;
  line-height: 1.15;
}

.content-panel h2 {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.25;
}

.content-panel p,
.content-panel li {
  color: var(--muted, oklch(47% 0.022 238));
}

.content-panel ul {
  display: grid;
  gap: 7px;
  padding-left: 18px;
}

.content-meta {
  color: var(--subtle, oklch(62% 0.019 238));
  font-size: 12px;
  font-weight: 750;
}

.content-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 680px) {
  .nav-link,
  .btn,
  button,
  input:not([type="checkbox"]),
  select {
    min-height: var(--shared-control-height-mobile);
  }

  .nav-links,
  .view-tabs,
  .tabs,
  .inline-actions,
  .hero-actions,
  .launch-links {
    gap: 8px;
  }

  .launch-strip {
    grid-template-columns: 1fr;
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .launch-links {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .launch-pill {
    justify-content: center;
    white-space: normal;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 18px 14px;
  }

  .content-main {
    padding: 14px;
  }

  .content-panel {
    padding: 18px;
  }
}
