:root {
  color-scheme: light;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --blue: #0071e3;
  --fill: rgba(255, 255, 255, 0.72);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--text);
  background:
    radial-gradient(1000px 500px at 10% -10%, #d5e6ff 0%, transparent 55%),
    radial-gradient(800px 480px at 100% 0%, #e7dff8 0%, transparent 50%),
    linear-gradient(180deg, #cfd6e4, #e7ebf2 40%, #d5dbe6);
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.desktop { min-height: 100vh; padding: 28px 18px 40px; }
.window {
  max-width: 1180px;
  margin: 0 auto;
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(246, 246, 248, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}
.titlebar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid var(--line);
}
.title-cluster { display: inline-flex; align-items: center; gap: 8px; justify-self: center; }
.ico { width: 16px; height: 16px; flex: none; display: block; }
.title-cluster .ico { width: 18px; height: 18px; color: var(--blue); }
.sigil { display: flex; align-items: center; justify-self: start; width: 36px; height: 22px; min-width: 36px; max-width: 36px; overflow: hidden; }
.sigil svg { width: 36px; height: 22px; max-width: 36px; max-height: 22px; display: block; }
.titlebar strong { font-size: 13px; font-weight: 600; }
pre { margin: 12px 0; overflow-x: auto; white-space: pre-wrap; }
pre.source {
  background: #1c1c1e;
  color: #f5f5f7;
  padding: 14px 16px;
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre;
}
.title-note { color: var(--muted); font-size: 12px; }
.title-action { justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; text-decoration: none; }
.workspace { display: flex; min-height: 0; flex: 1; }
.sidebar {
  width: 220px;
  flex: none;
  overflow: auto;
  padding: 18px 12px;
  background: rgba(255, 255, 255, 0.38);
  border-right: 1px solid var(--line);
}
.side-kicker {
  margin: 0 8px 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.sidebar nav { display: grid; gap: 2px; }
.sidebar a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 14px;
}
.sidebar a .ico { color: var(--muted); }
.sidebar a.active .ico, .sidebar a:hover .ico { color: inherit; }
.sidebar a.active, .sidebar a:hover { background: rgba(0, 113, 227, 0.1); text-decoration: none; }
.sidebar a.active { background: var(--blue); color: white; }
.content { flex: 1; padding: 28px 32px 48px; min-width: 0; overflow-x: auto; }
.kicker { margin: 0; color: var(--blue); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
h1 { margin: 8px 0 0; font-size: 40px; line-height: 1.08; letter-spacing: -0.03em; }
h1 .ico { display: inline-block; width: 0.7em; height: 0.7em; vertical-align: -0.08em; color: var(--blue); }
h2 { margin: 28px 0 8px; font-size: 22px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
h2 .ico { width: 20px; height: 20px; color: var(--blue); }
h3 { margin: 0 0 6px; font-size: 16px; }
p, li { line-height: 1.55; }
.lede { max-width: 68ch; color: #3a3a3c; font-size: 17px; }
.muted { color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 10px; background: rgba(0, 113, 227, 0.1); color: var(--text); font-size: 13px; font-weight: 600; }
details > summary { cursor: pointer; color: var(--blue); font-size: 13px; }
.btn, button, .title-action.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--blue);
  color: white;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn.secondary, button.secondary { background: rgba(0, 0, 0, 0.06); color: var(--text); }
.cards, .grid-3, .grid-2 { display: grid; gap: 12px; margin-top: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card, .group, form.card {
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.stat { font-variant-numeric: tabular-nums; font-size: 22px; letter-spacing: -0.03em; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
table { width: 100%; border-collapse: collapse; background: var(--fill); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
th { color: var(--muted); font-size: 12px; font-weight: 600; }
label { display: grid; gap: 4px; font-size: 13px; color: #3a3a3c; }
.form-grid > button { justify-self: start; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form select { width: auto; min-width: 9rem; }
.form-grid input, .form-grid select, .form-grid textarea,
.card input, .card select, .card textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: white;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  color: var(--text);
}
.card input[type="checkbox"] { width: auto; }
textarea { min-height: 80px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.flash { background: #e8f6e8; border-radius: 10px; padding: 10px 12px; }
.error { background: #fde8e8; border-radius: 10px; padding: 10px 12px; }
.stage {
  margin-top: 12px;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
  min-height: 280px;
  display: grid;
  place-items: center;
}
.stage img { width: 100%; max-height: 640px; object-fit: contain; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photos figure { margin: 0; background: var(--fill); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.photos figcaption { padding: 10px 12px; color: var(--muted); font-size: 13px; }
.span-2 { grid-column: span 2; }

a.card, a.card:hover { color: inherit; text-decoration: none; }
.site h1 { font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.045em; }
.site .hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: end; }
.site .hero-shot { margin: 0; position: relative; border-radius: 18px; overflow: hidden; min-height: 320px; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12); }
.site .hero-shot img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.site .hero-shot figcaption {
  position: absolute; left: 12px; bottom: 12px;
  margin: 0; padding: 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.86); color: var(--text); font-size: 12px;
  backdrop-filter: blur(12px);
}
.site .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.site .chips span {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 999px; padding: 6px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; color: var(--text);
}
.site .band { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-top: 28px; }
.site .band figure { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: white; }
.site .band img { width: 100%; height: 180px; object-fit: cover; }
.site .band figcaption { padding: 8px 10px; font-size: 12px; color: var(--muted); }
.site .meter { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.site .line { display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: start; }
.site .line b { color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.site .plan.featured { background: white; box-shadow: 0 0 0 2px var(--blue); }
.site .catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.site .offer h3 { margin-bottom: 6px; color: var(--text); }
.offer-mark {
  width: 36px; height: 36px; margin-bottom: 10px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(0, 113, 227, 0.1); color: var(--blue);
}
.offer-mark .ico { width: 18px; height: 18px; }
.stat-card { display: grid; gap: 2px; }
.stat-ico {
  width: 32px; height: 32px; margin-bottom: 8px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(0, 113, 227, 0.1); color: var(--blue);
}
.gate .desktop { display: grid; place-items: center; }
.gate-window { width: min(440px, 100%); min-height: 0; }
.gate-body { padding: 28px 28px 32px; }
.mark {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px;
  display: grid; place-items: center;
  background: white; color: var(--blue);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.mark .ico { width: 30px; height: 30px; }
.gate-body h1, .gate-body .lede, .gate-body .kicker { text-align: center; }
.gate-body h1 { font-size: 32px; }
.gate-form { display: grid; gap: 12px; margin-top: 18px; }
.gate-form button { width: 100%; justify-content: center; }
.field-box { position: relative; display: block; }
.field-box .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.field-box input { padding-left: 36px; }
.cred { display: grid; grid-template-columns: 20px 1fr; gap: 4px 10px; align-items: center; }
.cred .ico { color: var(--blue); }
.cred p, .cred .stat, .cred .mono { margin: 0; }
.error, .flash { display: flex; align-items: center; gap: 8px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; }
.parcel { position: relative; height: 280px; border-radius: 12px; background: rgba(0, 113, 227, 0.06); border: 1px dashed rgba(0, 113, 227, 0.35); }
.parcel i { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.18); }
.visit-count { display: inline-flex; align-items: center; gap: 6px; }
.cookie-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: min(640px, calc(100% - 24px)); z-index: 20;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line);
  box-shadow: var(--shadow); backdrop-filter: blur(16px);
}
.cookie-bar p { margin: 0; max-width: 42ch; font-size: 14px; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; align-items: end; height: 168px; margin-top: 8px; }
.bars div { display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.bars i { display: block; width: 100%; background: var(--blue); border-radius: 6px 6px 2px 2px; }
.bars b { font-size: 10px; font-weight: 600; color: var(--muted); font-style: normal; }
.colophon {
  margin-top: 48px; padding: 28px 0 8px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px; text-align: center;
}
.colophon p { margin: 6px 0 0; }
.colophon .visit-count { justify-content: center; margin-top: 8px; }
@media (max-width: 860px) {
  .desktop { padding: 0; }
  .window { min-height: 100vh; border-radius: 0; }
  .workspace, .grid-3, .grid-2, .form-grid, .photos { display: grid; grid-template-columns: 1fr; }
  .sidebar { width: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar nav { display: flex; gap: 4px; overflow: auto; }
  .sidebar a { flex: none; }
  .content { padding: 22px 16px 40px; }
  h1, .site h1 { font-size: 36px; }
  .span-2, .site .hero, .site .band { grid-template-columns: 1fr; }
  .site .band img, .site .hero-shot, .site .hero-shot img { min-height: 0; height: auto; }
}
