:root {
  color-scheme: light;
  --canvas: #f7f6f8;
  --surface: #fff;
  --surface-soft: #f1eff3;
  --ink: #19171b;
  --muted: #676169;
  --subtle: #8a838d;
  --line: #e3dfe5;
  --line-strong: #d3cdd6;
  --brand: #7f3fb4;
  --brand-hover: #682b98;
  --brand-soft: #f0e7f7;
  --success: #176c50;
  --success-soft: #e6f5ee;
  --warning: #9b6100;
  --warning-soft: #fff3d9;
  --danger: #a7323a;
  --danger-soft: #fbedee;
  --focus: #16778b;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Heebo", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

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

a {
  color: var(--brand-hover);
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 45%, transparent);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

code,
[dir="ltr"] {
  font-variant-numeric: tabular-nums;
}

.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;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 clamp(18px, 4vw, 52px);
  color: #f6f2f8;
  background: #19171b;
  border-bottom: 1px solid #ffffff17;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand span {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
}

.brand small {
  color: #bcb4c0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .03em;
}

.topbar form {
  margin: 0;
}

.logout {
  min-height: 36px;
  padding: 7px 12px;
  color: #e6e0e9;
  background: transparent;
  border: 1px solid #ffffff26;
  border-radius: 7px;
  cursor: pointer;
}

.logout:hover {
  background: #ffffff0f;
}

.app {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 3.5vw, 52px) clamp(16px, 3.4vw, 48px) 80px;
}

.app>*+* {
  margin-top: 24px;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #19171b;
}

.login-card {
  width: min(430px, 100%);
  padding: 34px;
  background: var(--surface);
  border-radius: var(--radius);
}

.login-card h1 {
  margin: 4px 0 6px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.login-card>p:not(.eyebrow) {
  margin: 0 0 26px;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--brand-hover);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.2;
}

.workspace-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  min-height: 150px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-strong);
}

.workspace-intro h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.035em;
}

.workspace-intro p:not(.eyebrow) {
  max-width: 690px;
  margin: 15px 0 0;
  color: var(--muted);
}

.global-health {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 9px;
  min-width: 220px;
  padding: 14px 0;
  border-block: 1px solid var(--line);
}

.global-health span:last-child {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
}

.health-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--success);
  border-radius: 50%;
}

.section-heading,
.surface-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2,
.surface-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.015em;
}

.section-heading>span,
.surface-head>span {
  color: var(--muted);
  font-size: 13px;
}

.surface-head p:not(.eyebrow) {
  max-width: 650px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  min-height: 180px;
  padding: 22px;
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease;
}

.product-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  text-decoration: none;
}

.product-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  background: #3e333f;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .03em;
}

.product-card--leos-stories .product-mark {
  color: #3f175f;
  background: #e6c9f4;
}

.product-card--leos-abandoned-cart-recovery .product-mark {
  color: #60261b;
  background: #f2c6b8;
}

.product-card-copy {
  min-width: 0;
}

.product-card-copy strong {
  display: block;
  font-size: 21px;
  font-weight: 600;
}

.product-card-copy small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-open {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform .16s ease;
}

.product-card:hover .product-open {
  transform: translateX(-3px);
}

.product-data {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.product-data span {
  display: flex;
  gap: 5px;
  align-items: baseline;
  padding-inline: 14px;
  color: var(--muted);
  font-size: 12px;
  border-inline-start: 1px solid var(--line);
}

.product-data span:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.product-data b {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}

.product-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  padding-bottom: 24px;
}

.back-link {
  grid-column: 1/-1;
  width: max-content;
  color: var(--muted);
  font-size: 13px;
}

.back-link::before {
  content: "→";
  margin-inline-end: 6px;
}

.product-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-identity h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.product-identity code {
  display: inline-block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.product-health {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
}

.workspace-tabs {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-strong);
  scrollbar-width: none;
}

.workspace-tabs::-webkit-scrollbar {
  display: none;
}

.workspace-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.workspace-tabs a:hover {
  color: var(--ink);
  text-decoration: none;
}

.workspace-tabs a[aria-current="page"] {
  color: var(--ink);
}

.workspace-tabs a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ink);
}

.workspace-tabs span {
  min-width: 23px;
  padding: 1px 7px;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 99px;
  font-size: 11px;
  text-align: center;
}

.metric-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.metric-line a {
  display: grid;
  gap: 5px;
  padding: 19px 20px;
  color: var(--ink);
  border-inline-start: 1px solid var(--line);
  text-decoration: none;
}

.metric-line a:first-child {
  border-inline-start: 0;
}

.metric-line a:hover {
  background: #fbfafc;
}

.metric-line strong {
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.025em;
}

.metric-line span {
  color: var(--muted);
  font-size: 12px;
}

.overview-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 16px;
}

.surface {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.surface-head {
  margin-bottom: 18px;
}

.release-feature {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 14px;
  align-items: baseline;
  padding-block: 20px;
  border-block: 1px solid var(--line);
}

.release-feature strong {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -.025em;
}

.release-feature span {
  color: var(--success);
  font-size: 13px;
  font-weight: 600;
}

.release-feature time {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 12px;
}

.compact-list {
  border-top: 1px solid var(--line);
}

.compact-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.compact-list a:hover {
  text-decoration: none;
}

.compact-list strong,
.compact-list small {
  display: block;
}

.compact-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.secure-key,
.issued-key {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: 34px;
  align-items: center;
  padding: 26px;
  background: #211d23;
  border: 1px solid #312a33;
  border-radius: var(--radius);
  color: #f8f4fa;
}

.secure-key .eyebrow,
.issued-key .eyebrow {
  color: #d9b5ef;
}

.secure-key h2,
.issued-key h2 {
  margin: 0;
  font-size: 22px;
}

.secure-key p,
.issued-key p {
  max-width: 650px;
  margin: 8px 0;
  color: #c8c0ca;
  font-size: 14px;
}

.secure-key a {
  color: #dfc2f1;
}

.secure-key-control {
  display: grid;
  gap: 11px;
}

.secure-key-control>label {
  color: #d5cdd7;
  font-size: 12px;
}

.secret-field {
  display: flex;
  gap: 7px;
  align-items: stretch;
  min-width: 0;
}

.secret-field input {
  min-width: 0;
  flex: 1;
  color: #f8f4fa;
  background: #141116;
  border-color: #4b424e;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
}

.legacy-key {
  padding: 14px;
  background: #141116;
  border: 1px solid #433a46;
  border-radius: var(--radius-sm);
}

.legacy-key p {
  margin-bottom: 0;
  font-size: 12px;
}

.issued-key {
  background: #2a2031;
  border-color: #4a3657;
}

.site-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(170px, 220px) auto auto;
  gap: 9px;
  align-items: end;
  padding-block: 16px;
  border-block: 1px solid var(--line);
}

.site-filters label {
  display: block;
}

.table-wrap {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 14px 10px;
  text-align: right;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fcfbfd;
}

th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}

td code {
  color: #653589;
  font-size: 12px;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.inline-form input[type="text"] {
  min-width: 140px;
  min-height: 34px;
  padding: 6px 8px;
}

.inline-form select {
  width: auto;
  min-height: 34px;
  padding-block: 5px;
  font-size: 12px;
}

label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="search"],
input[type="file"],
textarea,
select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

textarea {
  min-height: 94px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--subtle);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
  outline: 0;
}

.stack {
  display: grid;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn.primary {
  color: #fff;
  background: var(--brand-hover);
}

.btn.primary:hover {
  background: #55207f;
}

.btn.ghost {
  background: var(--surface-soft);
  border-color: var(--line);
}

.secure-key .btn.ghost {
  color: #f8f4fa;
  background: #342d37;
  border-color: #4a424d;
}

.btn.text {
  color: var(--brand-hover);
}

.btn.danger {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #efd0d3;
}

.btn.small {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 8px;
  color: #5f5862;
  background: var(--surface-soft);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}

.badge.active {
  color: var(--success);
  background: var(--success-soft);
}

.badge.pending,
.badge.deactivate_pending {
  color: var(--warning);
  background: var(--warning-soft);
}

.badge.awaiting_activation,
.badge.available {
  color: var(--brand-hover);
  background: var(--brand-soft);
}

.badge.locked {
  color: var(--danger);
  background: var(--danger-soft);
}

.subscription {
  display: block;
  max-width: 170px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-form {
  display: grid;
  grid-template-columns: 180px 160px minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 18px 0 24px;
  border-block: 1px solid var(--line);
}

.release-notes {
  grid-column: 1/-1;
}

.release-form .btn {
  align-self: end;
}

.product-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 15px;
}

.utility-disclosure {
  padding: 18px 0;
  border-block: 1px solid var(--line);
}

.utility-disclosure summary {
  width: max-content;
  font-weight: 600;
  cursor: pointer;
}

.utility-disclosure>p {
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  padding: 20px 0;
  color: var(--muted);
  text-align: center;
}

.alert {
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}

.alert.ok {
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid #b9dfcf;
}

.alert.error {
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid #ecc7ca;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}

.pagination a {
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.pagination a[aria-current="page"] {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

@media (max-width: 980px) {

  .product-grid,
  .overview-layout {
    grid-template-columns: 1fr;
  }

  .secure-key,
  .issued-key {
    grid-template-columns: 1fr;
  }

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

  .release-notes {
    grid-column: 1/-1;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding-inline: 16px;
  }

  .brand small {
    display: none;
  }

  .app {
    padding: 24px 12px 55px;
  }

  .workspace-intro {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

  .workspace-intro h1 {
    font-size: 35px;
  }

  .global-health {
    width: 100%;
  }

  .product-card {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    min-height: 165px;
    padding: 17px;
  }

  .product-mark {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }

  .product-data span {
    display: grid;
    padding-inline: 8px;
  }

  .product-header {
    grid-template-columns: 1fr;
  }

  .product-health {
    display: none;
  }

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

  .metric-line a:nth-child(3) {
    border-top: 1px solid var(--line);
    border-inline-start: 0;
  }

  .metric-line a:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .surface {
    padding: 18px 14px;
  }

  .site-filters {
    grid-template-columns: 1fr 1fr;
  }

  .filter-search {
    grid-column: 1/-1;
  }

  .secret-field {
    flex-wrap: wrap;
  }

  .secret-field input {
    flex-basis: 100%;
  }

  .release-form,
  .product-form {
    grid-template-columns: 1fr;
  }

  .release-notes {
    grid-column: auto;
  }

  .login-card {
    padding: 26px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.app-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}

.app-frame {
  min-width: 0;
}

.app-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 22px 14px;
  overflow-y: auto;
  color: #f7f3f8;
  background: #19171b;
  border-inline-end: 1px solid #ffffff12;
}

.sidebar-brand {
  display: grid;
  gap: 1px;
  padding: 8px 10px 24px;
  color: inherit;
}

.sidebar-brand:hover {
  text-decoration: none;
}

.sidebar-brand span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
}

.sidebar-brand small {
  color: #a9a1ac;
  font-size: 11px;
  font-weight: 500;
}

.app-sidebar nav {
  display: grid;
  gap: 5px;
}

.app-sidebar nav p {
  margin: 20px 11px 5px;
  color: #817985;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.app-sidebar nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 43px;
  padding: 8px 10px;
  color: #c9c2cc;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.app-sidebar nav a:hover {
  color: #fff;
  background: #ffffff0a;
  text-decoration: none;
}

.app-sidebar nav a[aria-current="page"] {
  color: #fff;
  background: #2b272d;
  border-color: #ffffff0d;
}

.app-sidebar nav b {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: #d9bfdf;
  background: #ffffff0b;
  border-radius: 6px;
  font-size: 10px;
}

.sidebar-foot {
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding-top: 24px;
}

.command-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  color: #d7d0da;
  background: #242126;
  border: 1px solid #3b363e;
  border-radius: 8px;
  cursor: pointer;
}

.command-trigger kbd,
.command-head kbd {
  padding: 2px 6px;
  color: #a9a1ac;
  background: #151316;
  border: 1px solid #403a43;
  border-radius: 5px;
  font: 10px/1.5 var(--font);
}

.app-sidebar .logout {
  width: 100%;
}

.mobilebar {
  display: none;
}

.topbar {
  display: none;
}

.app {
  width: min(1390px, 100%);
  padding-block-start: 38px;
}

.sites-table {
  min-width: 820px;
}

.sites-table th,
.sites-table td {
  text-align: start;
}

.sites-table td:first-child strong,
.sites-table td:first-child small {
  display: block;
}

.sites-table td:first-child small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.site-record>tr:first-child:hover {
  background: #fcfbfd;
}

.site-detail-row td {
  padding: 0;
  background: #f7f5f8;
  border-block-end: 1px solid var(--line-strong);
}

.site-detail {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-inline-start: 3px solid #6d4d72;
}

.site-detail__meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.site-detail__meta div {
  min-width: 0;
  padding: 12px;
  background: var(--surface);
}

.site-detail__meta span,
.site-detail__meta strong {
  display: block;
}

.site-detail__meta span {
  color: var(--muted);
  font-size: 11px;
}

.site-detail__meta strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 600;
}

.site-detail__forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-row {
  display: flex;
  align-items: end;
  gap: 8px;
}

.settings-row label {
  min-width: 0;
  flex: 1;
}

.site-detail__actions,
.row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.site-detail__actions form,
.row-actions form {
  margin: 0;
}

.detail-toggle[aria-expanded="true"] {
  color: #fff;
  background: var(--ink);
}

.product-settings {
  margin-top: 16px;
}

.product-settings .settings-row {
  max-width: 520px;
}

.danger-zone {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.version-footnote {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.version-footnote span {
  padding: 4px 8px;
  background: var(--surface-soft);
  border-radius: 6px;
}

input[type="number"] {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.command-palette {
  width: min(620px, calc(100% - 24px));
  max-height: min(680px, calc(100vh - 40px));
  margin: 11vh auto auto;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 28px 90px #1512174d;
}

.command-palette::backdrop {
  background: #17131880;
  backdrop-filter: blur(3px);
}

.command-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.command-head label {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 11px;
}

.command-head input {
  min-height: 48px;
  padding-inline: 13px;
  border: 0;
  background: #f6f4f7;
  font-size: 16px;
}

.command-head input:focus {
  box-shadow: inset 0 0 0 2px var(--brand);
}

.command-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 22px;
  cursor: pointer;
}

.command-close:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.command-results {
  max-height: 420px;
  padding: 8px;
  overflow-y: auto;
}

.command-results a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  border-radius: 8px;
  font-size: 14px;
}

.command-results a:hover,
.command-results a[aria-selected="true"] {
  background: var(--surface-soft);
  text-decoration: none;
}

.command-results small {
  color: var(--muted);
  font-size: 11px;
}

.command-empty {
  margin: 0;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.app-toast {
  position: fixed;
  inset-inline: 0;
  bottom: 22px;
  z-index: 9999;
  width: max-content;
  max-width: calc(100% - 24px);
  margin-inline: auto;
  padding: 10px 14px;
  color: #fff;
  background: #19171b;
  border: 1px solid #ffffff20;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .16s ease, transform .16s ease;
  pointer-events: none;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.gravity-active,
html.gravity-active body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.is-gravity-piece {
  position: relative;
  z-index: 99990;
  will-change: transform;
  transform-origin: 50% 100%;
}

.gravity-reset {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  z-index: 99999;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  background: #1f2937;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .22);
}

.gravity-reset:hover {
  background: #111827;
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .app-sidebar {
    display: none;
  }

  .mobilebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding-inline: 16px;
    color: #fff;
    background: #19171b;
  }

  .mobilebar .command-trigger {
    width: 40px;
    justify-content: center;
  }

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

@media (max-width: 620px) {
  .site-detail__forms {
    grid-template-columns: 1fr;
  }

  .settings-row {
    align-items: stretch;
    flex-direction: column;
  }

  .site-detail__meta {
    grid-template-columns: 1fr;
  }

  .command-palette {
    margin-top: 4vh;
  }
}
