:root {
  color-scheme: light;
  --bg: #f3f0e8;
  --card: #fffdf8;
  --ink: #1f1c16;
  --muted: #5f584c;
  --line: #e4dacb;
  --accent: #1f4f78;
  --accent-ink: #ffffff;
  --warn: #fff6d8;
  --warn-line: #e4d48a;
  --danger: #8d2f2f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.45 "Segoe UI", "Helvetica Neue", sans-serif;
}

a { color: var(--accent); }

.top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fffdf8;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

nav a { text-decoration: none; }

nav form { margin: 0; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 56px;
}

h1 { font-size: 1.7rem; font-weight: 650; margin: 0 0 8px; }
h2 { font-size: 1.15rem; margin: 0 0 8px; }
h3 { font-size: 1rem; margin: 0 0 6px; }

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin: 12px 0;
}

label { display: block; margin: 12px 0 4px; color: var(--muted); }

.check { display: flex; gap: 8px; align-items: center; color: var(--ink); }

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

input, select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d5cbbd;
  border-radius: 10px;
  background: white;
  color: var(--ink);
}

textarea {
  min-height: 240px;
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 14px;
  line-height: 1.4;
}

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  cursor: pointer;
}

button.secondary, .btn.secondary, button.link {
  background: #efe8dc;
  color: var(--ink);
}

button.link {
  min-height: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
}

button.danger { background: var(--danger); color: white; }

.actions, .rename {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.actions form, .rename { margin: 0; }

.rename input { flex: 1 1 180px; }

.flash, .warn, .error {
  border-radius: 12px;
  padding: 12px 14px;
}

.flash { background: #e7f0e6; border: 1px solid #b7d2b4; }

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(440px, calc(100% - 32px));
  margin: 0;
  padding: 14px 18px;
  border: 0;
  border-radius: 16px;
  background: #1f1c16;
  color: #fffdf8;
  box-shadow: 0 12px 32px rgba(31, 28, 22, 0.22);
  text-align: center;
}

.ip-log {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.ip-log li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.warn { background: var(--warn); border: 1px solid var(--warn-line); }

body.cabinet .alert {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fdecec;
  border: 1px solid #e4b4b4;
  box-shadow: 0 10px 28px rgba(141, 47, 47, 0.08);
}

body.cabinet .alert h2 { margin: 0 0 8px; color: var(--danger); }

body.cabinet .alert ul { margin: 8px 0 0; }

.pawned { color: var(--danger); font-weight: 650; }

.error { background: #fdecec; border: 1px solid #e4b4b4; }

dl { margin: 8px 0; }
dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #f0e7da;
}
dt { color: var(--muted); }
dd { margin: 0; text-align: right; }

.sum { font-size: 1.6rem; margin: 8px 0; }

pre.conf {
  white-space: pre-wrap;
  word-break: break-word;
  background: #1f1c16;
  color: #f6f1e7;
  border-radius: 12px;
  padding: 12px;
  overflow: auto;
}

img { max-width: 100%; height: auto; }

.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }

ul { padding-left: 18px; }

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

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  font-size: 0.85rem;
  background: #efe8dc;
}

.badge.ok { background: #e7f0e6; }
.badge.wait { background: #fff6d8; }

@media (max-width: 640px) {
  .actions .btn, .actions button, .card > form button {
    width: 100%;
  }
  dl div { flex-direction: column; gap: 2px; }
  dd { text-align: left; }
}

body.cabinet {
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --accent: #0e7490;
  --accent-ink: #ffffff;
  background: #f4f7fb;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -0.011em;
}

body.cabinet h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

body.cabinet .top {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(16px);
}

body.cabinet .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
}

body.cabinet .brand .logo {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

body.cabinet nav a,
body.cabinet nav button.link {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
}

body.cabinet nav a[aria-current="page"] {
  color: #0e7490;
  background: #ecfeff;
  font-weight: 650;
  box-shadow: none;
}

body.cabinet nav a.nav-cta {
  background: var(--accent);
  color: #fff;
  font-weight: 650;
}

body.cabinet button.secondary,
body.cabinet .btn.secondary {
  background: #e0f2fe;
  color: #0f172a;
}

body.cabinet .wrap { max-width: 1100px; }
body.cabinet.narrow .wrap { max-width: 480px; }

body.cabinet textarea {
  min-height: 96px;
  font-family: inherit;
  font-size: inherit;
}

body.cabinet .card,
body.cabinet .btn,
body.cabinet .actions button,
body.cabinet .badge {
  border-radius: 16px;
}

body.cabinet .section-head a {
  padding: 6px 12px;
  border-radius: 999px;
  background: #efe8dc;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

body.cabinet .btn,
body.cabinet .actions button {
  border-radius: 999px;
}

body.cabinet .card {
  border: 0;
  box-shadow: 0 10px 28px rgba(31, 28, 22, 0.06);
}

body.cabinet .lead {
  max-width: 42rem;
  margin: 0 0 16px;
  color: var(--muted);
}

body.cabinet .crumbs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  min-width: 0;
}

body.cabinet .crumbs a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 4px 12px 4px 8px;
  border-radius: 999px;
  background: #fffdf8;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(31, 28, 22, 0.06);
}

body.cabinet .crumbs .crumb-sep {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--muted);
}

body.cabinet .crumbs .crumb-here {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.cabinet .section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

body.cabinet .section-head h2 { margin: 0; }

body.cabinet .section-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

body.cabinet .tool-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

body.cabinet .tool-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fffdf8;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(31, 28, 22, 0.06);
}

body.cabinet .tool-btn svg { flex: 0 0 auto; }

body.cabinet .tool-btn.is-on {
  background: #1f1c16;
  color: #fffdf8;
}

body.cabinet .app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 0 0 8px;
}

body.cabinet .app-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fffdf8;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(31, 28, 22, 0.05);
}

body.cabinet .app-link b,
body.cabinet .app-link small {
  display: block;
}

body.cabinet .app-link small {
  color: var(--muted);
}

body.cabinet .app-icon { flex: 0 0 28px; }

body.cabinet .name-claim { margin: 0 0 16px; }

body.cabinet .ok-note {
  margin: 0 0 12px;
  color: #1d6b3a;
}

body.cabinet .home-layout { display: block; }

body.cabinet .stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

body.cabinet .stats div {
  background: #fffdf8;
  border: 0;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(31, 28, 22, 0.05);
}

body.cabinet .stats b {
  display: block;
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

body.cabinet .stats span { color: var(--muted); font-size: 0.92rem; }

body.cabinet .metro {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

body.cabinet .tile,
body.cabinet .detail-hero {
  position: relative;
  color: #fff;
}

body.cabinet .tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 228px;
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(31, 28, 22, 0.05), 0 10px 24px rgba(31, 28, 22, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.cabinet .tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(31, 28, 22, 0.12);
}

body.cabinet .tone-1 { background: #0f6cbd; }
body.cabinet .tone-2 { background: #0e7c72; }
body.cabinet .tone-3 { background: #5b2c83; }
body.cabinet .tone-4 { background: #9a3412; }
body.cabinet .tone-5 { background: #146c43; }
body.cabinet .tone-6 { background: #86198f; }
body.cabinet .tone-7 { background: #1a5276; }
body.cabinet .tone-8 { background: #8e2f2f; }
body.cabinet .is-off { background: #5e5a55; }

body.cabinet .tile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

body.cabinet .pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
  font-weight: 700;
}

body.cabinet .tile-ip {
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 0.82rem;
  opacity: 0.92;
}

body.cabinet .name-field {
  position: relative;
  width: 100%;
  margin: 0;
}

body.cabinet .name-field input {
  width: 100%;
  margin: 0;
  padding: 11px 14px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  caret-color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.cabinet .name-field.is-dirty input { padding-right: 84px; }

body.cabinet .name-field input:focus {
  outline: 2px solid #fff;
  outline-offset: 0;
  background: rgba(255, 255, 255, 0.26);
}

body.cabinet .name-tools {
  position: absolute;
  top: 50%;
  right: 6px;
  display: flex;
  gap: 4px;
  transform: translateY(-50%);
}

body.cabinet .name-tools[hidden] { display: none; }

body.cabinet .name-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  flex: 0 0 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
}

body.cabinet .name-tools button[type="submit"] {
  background: #fff;
  color: #1f1c16;
}

body.cabinet .name-tools button[type="submit"]:hover {
  background: #f4efe6;
}

body.cabinet .name-tools button[type="reset"]:hover {
  background: rgba(255, 255, 255, 0.24);
}

body.cabinet .name-tools svg { display: block; }

body.cabinet .tile-open,
body.cabinet .tile-qr {
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
}

body.cabinet .tile-open:hover,
body.cabinet .tile-qr:hover {
  background: rgba(255, 255, 255, 0.32);
}

body.cabinet .tile:focus-within {
  box-shadow: 0 0 0 3px rgba(31, 28, 22, 0.18), 0 12px 28px rgba(31, 28, 22, 0.1);
}

body.cabinet .tile-meta {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.92;
}

body.cabinet .tile-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

body.cabinet .tile-open,
body.cabinet .tile-qr {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.cabinet .empty {
  margin: 8px 0 16px;
  padding: 28px 16px;
  background: rgba(255, 253, 248, 0.7);
  border: 1px dashed #c9bfb0;
}

body.cabinet .detail {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  margin: 8px 0 16px;
  overflow: hidden;
  background: var(--card);
  border: 0;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(31, 28, 22, 0.05), 0 12px 28px rgba(31, 28, 22, 0.06);
}

body.cabinet .detail-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 18px;
}

body.cabinet .detail-body { padding: 18px 18px 20px; }
body.cabinet .detail-body h1 { font-size: 1.45rem; }

body.cabinet .inv-list { list-style: none; padding: 0; margin: 0; }
body.cabinet .inv-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0e7da;
}

body.sheet-open { overflow: hidden; }

.sheet-back {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(16, 32, 51, 0.46);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sheet-back.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: fixed;
  z-index: 41;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  padding: 20px 20px 32px;
  overflow: auto;
  background: #fffdf8;
  box-shadow: -16px 0 40px rgba(16, 32, 51, 0.16);
  transform: translateX(104%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.28s;
}

.sheet.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
}

.sheet-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.sheet-bar h2 {
  margin: 0;
  min-width: 0;
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}

.sheet-bar button { flex: 0 0 auto; }

.sheet-off,
.sheet-status { color: var(--muted); }

.sheet-off {
  padding: 10px 12px;
  background: var(--warn);
  border: 1px solid var(--warn-line);
}

.sheet-qr {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.sheet-qr img {
  width: min(280px, 72vw);
  height: auto;
  opacity: 0;
}

.sheet-qr img.is-ready { opacity: 1; }

textarea.share-url {
  min-height: 0;
  margin-top: 8px;
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.4;
  word-break: break-all;
}

#share-send.is-off { display: none; }

@media (min-width: 900px) {
  body.cabinet .home-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }

  body.cabinet .home-side { position: sticky; top: 80px; }
}

@media (max-width: 720px) {
  body.cabinet .detail { grid-template-columns: 1fr; }

  body.cabinet .name-field input { min-height: 48px; }

  body.cabinet .name-field.is-dirty input { padding-right: 100px; }

  body.cabinet .name-tools button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    flex-basis: 40px;
  }

  .sheet {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 92vh;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
    transform: translateY(110%);
  }

  .sheet.is-open { transform: translateY(0); }
}

body.land {
  margin: 0;
  background: #020617;
  color: #e2e8f0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -0.011em;
}

body.land a { color: inherit; }

body.land .land-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid #1e293b;
  backdrop-filter: blur(16px);
}

body.land .land-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: contain;
}

body.land .land-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.land .land-nav a {
  min-height: 40px;
  padding: 8px 12px;
  color: #cbd5e1;
  text-decoration: none;
}

body.land .btn {
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
}

body.land .btn.secondary {
  background: transparent;
  color: #e2e8f0;
  box-shadow: inset 0 0 0 1px #334155;
}

body.land .land-nav .btn { min-height: 40px; padding: 8px 14px; }

body.land .land-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 22px 8px;
}

body.land .hero-wrap {
  background-color: #0f172a;
  background-image:
    linear-gradient(rgba(103, 232, 249, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  background-size: 60px 60px, 60px 60px, cover;
}

body.land .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 28px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 56px;
}

body.land .eyebrow {
  margin: 0 0 8px;
  color: #67e8f9;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.land h1,
body.land h2 {
  margin: 0 0 12px;
  color: #f8fafc;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

body.land h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
body.land h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
body.land h3 { margin: 0 0 8px; color: #f8fafc; font-size: 1.15rem; }

body.land .lede {
  max-width: 40rem;
  margin: 0 0 18px;
  color: #cbd5e1;
  font-size: 1.08rem;
}

body.land .hero-actions,
body.land .land-nav {
  align-items: center;
}

body.land .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.land .hero-card {
  padding: 16px;
  border: 1px solid rgba(103, 232, 249, 0.25);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.35);
}

body.land .hero-card-top,
body.land .hero-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  color: #94a3b8;
  font-size: 0.92rem;
}

body.land .hero-card-top b { color: #f8fafc; }

body.land .mock-tile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 14px;
  border-radius: 16px;
  background: #0e7490;
  color: #fff;
  font-weight: 700;
}

body.land .mock-tile.is-alt { background: #155e75; }
body.land .mock-tile small { font-weight: 650; opacity: 0.85; }
body.land .hero-card-foot { margin-top: 12px; }

body.land .facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-top: 22px;
  padding-bottom: 8px;
}

body.land .facts article,
body.land .feature-grid article,
body.land .compare article,
body.land .steps li,
body.land .plan,
body.land details {
  border: 1px solid #1e293b;
  border-radius: 18px;
  background: #0f172a;
}

body.land .facts article { padding: 16px; }
body.land .facts b { display: block; color: #f8fafc; font-size: 1.25rem; }
body.land .facts span { color: #94a3b8; }

body.land .feature-grid,
body.land .compare,
body.land .steps,
body.land .plans,
body.land .faq {
  display: grid;
  gap: 12px;
}

body.land .feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 18px 0 22px;
}
body.land .feature-grid article,
body.land .compare article { padding: 16px 16px 8px; }
body.land .feature-grid p,
body.land .compare li,
body.land .steps p,
body.land .plan li,
body.land details p { color: #cbd5e1; }

body.land .compare {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-bottom: 28px;
  min-width: 0;
}
body.land .compare article { min-width: 0; max-width: 100%; }
body.land .compare ul {
  display: block;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 12px;
  padding-left: 0;
  list-style: none;
}
body.land .compare li {
  display: block;
  margin: 8px 0;
  padding-left: 1.25em;
  overflow-wrap: anywhere;
  text-indent: -1.25em;
}
body.land .compare .is-bad li::before { content: "× "; color: #fb7185; }
body.land .compare .is-good li::before { content: "✓ "; color: #67e8f9; }
body.land .compare .is-ours { border-color: rgba(34, 211, 238, 0.45); }

body.land .steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

body.land .steps li { padding: 16px; }
body.land .steps b { color: #67e8f9; font-size: 0.85rem; letter-spacing: 0.08em; }

body.land .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 8px 0 28px; }
body.land .plan { display: flex; flex-direction: column; min-width: 0; padding: 16px; }
body.land .plan .btn { width: 100%; margin-top: auto; }
body.land .plan ul { margin: 8px 0 14px; padding: 0; list-style: none; }
body.land .plan li {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  align-items: baseline;
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid #1e293b;
}
body.land .term { color: #94a3b8; }
body.land .now { color: #f8fafc; font-weight: 650; }
body.land .old { margin-left: 4px; color: #94a3b8; font-weight: 500; }
body.land .old s { text-decoration-thickness: 1px; }
body.land .save { margin-left: auto; color: #67e8f9; font-weight: 700; }
body.land .plan-kicker { margin: 0; color: #94a3b8; font-size: 0.82rem; font-weight: 700; }
body.land .plan-price { margin: 8px 0 0; color: #f8fafc; font-size: 1.8rem; font-weight: 700; letter-spacing: -0.03em; }
body.land .plan-unit { margin: 0 0 8px; color: #94a3b8; }
body.land .plan.is-featured {
  border-color: #22d3ee;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35);
}
body.land .plan.is-featured .plan-kicker { color: #67e8f9; }

body.land .faq { margin-bottom: 28px; }
body.land details { padding: 12px 16px; }
body.land summary { cursor: pointer; color: #f8fafc; font-weight: 700; }
body.land details p { margin: 8px 0 4px; }

body.land .final {
  margin-top: 12px;
  padding: 28px 0 36px;
  background: #0f172a;
  border-top: 1px solid #1e293b;
}

body.land .land-foot {
  border-top: 1px solid #1e293b;
  color: #94a3b8;
}

body.land .land-foot .land-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 18px;
  padding-bottom: 28px;
}

body.land .land-foot a { color: #e2e8f0; }

@media (max-width: 1100px) {
  body.land .plans,
  body.land .feature-grid,
  body.land .steps { grid-template-columns: 1fr 1fr; }
  body.land .hero,
  body.land .compare { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 800px) {
  body.land .land-nav a[href^="#"] { display: none; }
  body.land .land-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  body.land .land-nav .btn { justify-content: center; min-height: 44px; }
  body.land .plans,
  body.land .feature-grid,
  body.land .steps,
  body.land .compare,
  body.land .hero { grid-template-columns: minmax(0, 1fr); }
  body.land .facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body.land {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }

  body.land .land-top {
    gap: 10px;
    padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  }

  body.land .land-brand { font-size: 1.08rem; gap: 8px; }
  body.land .land-brand .logo { width: 28px; height: 28px; flex-basis: 28px; }

  body.land .land-wrap {
    padding: 20px max(16px, env(safe-area-inset-right)) 4px max(16px, env(safe-area-inset-left));
  }

  body.land .hero { gap: 16px; padding-top: 12px; padding-bottom: 24px; }
  body.land h1 { font-size: 1.85rem; }
  body.land h2 { font-size: 1.4rem; }
  body.land .lede { font-size: 1rem; }
  body.land .facts article { padding: 12px; }
  body.land .facts b { font-size: 1.05rem; }
  body.land .hero-actions .btn,
  body.land .plan .btn { min-height: 48px; }
  body.land .hero-actions .btn { flex: 1 1 140px; }
  body.land .plan-price { font-size: 1.6rem; }
  body.land summary { display: flex; align-items: center; min-height: 44px; }
  body.land .land-foot .land-wrap {
    flex-direction: column;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}
