:root {
  --accent: #a855f7;
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 35%, transparent);

  --bg: #07090a;
  --surface: rgba(255, 255, 255, .028);
  --surface-2: rgba(255, 255, 255, .05);
  --surface-solid: #0e1211;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #ecf2ee;
  --text-2: #b9c3bd;
  --muted: #7f8a84;

  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --info: #60a5fa;
  --ok-soft: rgba(52, 211, 153, .12);
  --warn-soft: rgba(251, 191, 36, .12);
  --bad-soft: rgba(248, 113, 113, .12);
  --info-soft: rgba(96, 165, 250, .12);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
  font-family: "Inter", "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 50% -220px, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent-soft); color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -.025em; font-weight: 700; margin: 0 0 1rem; display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
h2 { font-size: 1.02rem; letter-spacing: -.01em; font-weight: 650; margin: 0 0 .85rem; }
h3 { font-size: 1rem; font-weight: 650; margin: 0 0 .35rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
code, pre { font-family: ui-monospace, "JetBrains Mono", "Cascadia Code", Consolas, monospace; font-size: .84rem; }
code { background: var(--surface-2); border: 1px solid var(--line); padding: .08rem .35rem; border-radius: 6px; }
pre { background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem 1rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all; color: var(--text-2); }
pre code, .copy code { background: none; border: 0; padding: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.bad { color: var(--bad); }
.accent { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Layout ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 2rem 16px 5rem; }
.container.narrow { max-width: 780px; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding: .7rem max(16px, calc((100vw - 1120px) / 2 + 16px));
  background: rgba(7, 9, 10, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 750; font-size: 1.05rem; letter-spacing: -.02em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  color: var(--accent-ink);
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 100%, white 25%), var(--accent));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset, 0 6px 20px -6px var(--accent-line);
}
.topbar nav { display: flex; gap: .15rem; flex: 1; }
.topbar nav a { color: var(--muted); padding: .42rem .8rem; border-radius: 999px; font-weight: 500; font-size: .92rem; transition: color .15s, background .15s; }
.topbar nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.topbar nav a.active { color: var(--text); background: var(--surface-2); box-shadow: 0 0 0 1px var(--line) inset; }
@media (max-width: 680px) {
  .topbar { gap: .5rem; padding: .6rem 16px 0; }
  .topbar form.inline { margin-left: auto; }
  .topbar nav { order: 3; flex: 1 0 100%; overflow-x: auto; margin: 0 -16px; padding: .35rem 12px .55rem; scrollbar-width: none; }
  .topbar nav a { white-space: nowrap; }
}

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1, .page-head h2 { margin-bottom: .3rem; }
.page-head p { margin: 0; }
.back { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.back:hover { color: var(--text); text-decoration: none; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.row { display: flex; gap: .85rem; align-items: flex-end; flex-wrap: wrap; }
.row > label { flex: 0 1 auto; }
.row .grow { flex: 1 1 200px; }

/* ---------- Surfaces ---------- */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .018));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.card > :last-child { margin-bottom: 0; }
.card.danger { border-color: rgba(248, 113, 113, .22); background: linear-gradient(180deg, rgba(248, 113, 113, .05), rgba(248, 113, 113, .015)); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; box-shadow: var(--shadow); }
.stat span { display: block; color: var(--muted); font-size: .78rem; font-weight: 500; margin-bottom: .2rem; }
.stat strong { font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

.empty { text-align: center; padding: 3.5rem 1.5rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.empty-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 1rem; }
.empty strong { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: .25rem; }
.empty p { color: var(--muted); }

/* ---------- Forms ---------- */
label { display: block; margin-bottom: 1rem; font-size: .85rem; font-weight: 500; color: var(--text-2); }
label.check { display: flex; align-items: center; gap: .6rem; font-weight: 400; color: var(--text); margin-bottom: .65rem; flex-wrap: wrap; }
.hint { display: block; margin-top: .4rem; color: var(--muted); font-size: .8rem; font-weight: 400; }
input, select, textarea {
  display: block; width: 100%; margin-top: .4rem; padding: .65rem .8rem;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: #5b655f; }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, .22); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); background: rgba(0, 0, 0, .4); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237f8a84' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.2rem; }
select option { background: var(--surface-solid); }
input[type=checkbox] { appearance: none; width: 18px; height: 18px; margin: 0; padding: 0; flex: none; border-radius: 6px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .3); display: inline-grid; place-items: center; cursor: pointer; }
input[type=checkbox]:checked { background: var(--accent); border-color: var(--accent); }
input[type=checkbox]:checked::after { content: ""; width: 10px; height: 10px; background: var(--accent-ink); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 24%, 86% 10%, 38% 72%); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem .5rem; margin: .25rem 0 1.1rem; background: rgba(0, 0, 0, .15); }
legend { padding: 0 .45rem; color: var(--text); font-weight: 600; font-size: .88rem; }
details { margin-bottom: 1rem; }
summary { cursor: pointer; color: var(--text-2); font-size: .9rem; font-weight: 500; margin-bottom: .85rem; list-style: none; display: inline-flex; align-items: center; gap: .4rem; }
summary::-webkit-details-marker { display: none; }
summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
details[open] summary::before { transform: rotate(45deg); }
form.inline { display: inline-flex; gap: .4rem; align-items: center; margin: 0; }
form.inline input { margin: 0; width: auto; }
.input-prefix { display: flex; align-items: stretch; margin-top: .4rem; }
.input-prefix span { display: flex; align-items: center; padding: 0 .7rem; background: var(--surface-2); border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); color: var(--muted); white-space: nowrap; font-size: .85rem; }
.input-prefix input { margin: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; min-width: 0; }
.form-actions { display: flex; gap: .5rem; margin-top: .5rem; }
.copy { display: flex; gap: .6rem; align-items: center; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .45rem .45rem .45rem .85rem; margin-bottom: 1rem; }
.copy code { flex: 1; overflow-wrap: anywhere; color: var(--text-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .92rem; white-space: nowrap; cursor: pointer;
  color: var(--accent-ink);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 100%, white 18%), var(--accent));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 8px 24px -10px var(--accent-line);
  transition: transform .12s, box-shadow .15s, filter .15s, background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 10px 30px -8px var(--accent-line); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: .36rem .7rem; font-size: .84rem; border-radius: 8px; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1rem; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }
.btn-ghost { color: var(--text); background: var(--surface-2); border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); box-shadow: none; filter: none; }
.btn-danger { color: var(--bad); background: transparent; border-color: rgba(248, 113, 113, .3); box-shadow: none; }
.btn-danger:hover { background: var(--bad-soft); box-shadow: none; filter: none; }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1px solid; margin-bottom: 1.25rem; font-size: .92rem; }
.alert::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .45rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.alert-ok { background: var(--ok-soft); border-color: rgba(52, 211, 153, .25); color: #a7f3d0; }
.alert-bad { background: var(--bad-soft); border-color: rgba(248, 113, 113, .25); color: #fecaca; }
.alert-warn { background: var(--warn-soft); border-color: rgba(251, 191, 36, .25); color: #fde68a; }
p.alert { margin-bottom: 1rem; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: .78rem; padding-top: 0; }
.table th, .table td { padding: .7rem .55rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td:first-child, .table th:first-child { padding-left: 0; }
.table td:last-child, .table th:last-child { padding-right: 0; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }

/* ---------- Status chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .18rem .6rem .18rem .5rem; border-radius: 999px;
  font-size: .74rem; font-weight: 600; letter-spacing: .01em; line-height: 1.4;
  color: var(--muted); background: var(--surface-2); border: 1px solid var(--line);
  vertical-align: middle; text-transform: capitalize;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-up { color: var(--ok); background: var(--ok-soft); border-color: rgba(52, 211, 153, .22); }
.pill-down, .pill-incident { color: var(--bad); background: var(--bad-soft); border-color: rgba(248, 113, 113, .22); }
.pill-down::before { box-shadow: 0 0 0 3px rgba(248, 113, 113, .25); animation: pulse 1.6s infinite; }
.pill-maintenance { color: var(--warn); background: var(--warn-soft); border-color: rgba(251, 191, 36, .22); }
.pill-info { color: var(--info); background: var(--info-soft); border-color: rgba(96, 165, 250, .22); }
h1 .pill { font-size: .78rem; letter-spacing: 0; }
/* ---------- Auth ---------- */
.auth { max-width: 420px; margin: 3rem auto; padding: 2rem; }
.auth h1 { margin-bottom: .4rem; }
.auth .btn-block { margin-top: .5rem; }
.auth-foot { margin: 1.25rem 0 0; color: var(--muted); text-align: center; font-size: .9rem; }

/* ---------- Marketing ---------- */
.hero { text-align: center; padding: 4.5rem 0 3rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem .3rem .45rem; border-radius: 999px; font-size: .82rem; font-weight: 500; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line-strong); margin-bottom: 1.5rem; }
.eyebrow .pill { padding: .05rem .5rem .05rem .4rem; }
.hero h1 { display: block; font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -.045em; font-weight: 800; margin: 0 auto 1.25rem; max-width: 820px; }
.gradient-text { background: linear-gradient(100deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #22d3ee)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 600px; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }
  position: relative; max-width: 860px; margin: 0 auto; text-align: left;
  padding: 1rem; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid var(--line-strong); box-shadow: 0 40px 120px -40px var(--accent-line), var(--shadow);
}
.section-title { text-align: center; margin: 5rem 0 2rem; }
.section-title h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.03em; font-weight: 750; margin-bottom: .5rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.feature { margin: 0; transition: border-color .15s, transform .15s; }
.feature:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.feature-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); margin-bottom: 1rem; box-shadow: 0 0 0 1px var(--accent-line) inset; }
.feature p { margin: 0; color: var(--muted); font-size: .93rem; }
.cta-band { margin-top: 5rem; text-align: center; padding: 3rem 1.5rem; border-radius: 22px; border: 1px solid var(--line-strong); background: radial-gradient(600px 200px at 50% 0, var(--accent-soft), transparent), var(--surface); }
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.03em; font-weight: 750; }
.cta-band p { color: var(--text-2); }

/* ---------- Linksify ---------- */
.block { display: block; }
.small { font-size: .82rem; }
.pre { white-space: pre-line; }
.truncate { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; margin-bottom: 1rem; }
.grid-3 > .card { margin-bottom: 0; }
.stat strong.stat-sm { font-size: 1.15rem; }
.pill-warn { color: var(--warn); background: var(--warn-soft); border-color: rgba(251, 191, 36, .22); }
.pill-bad { color: var(--bad); background: var(--bad-soft); border-color: rgba(248, 113, 113, .22); }
td .pill { margin: .2rem .3rem 0 0; }
tr.is-off td { opacity: .6; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.foot { text-align: center; padding: 0 16px 2.5rem; font-size: .88rem; }
.foot-note { margin-top: 3rem; display: flex; justify-content: center; gap: .5rem; align-items: center; }
.brand-logo { height: 30px; width: auto; max-width: 140px; border-radius: 8px; object-fit: contain; }
.impersonating { display: flex; justify-content: center; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .45rem 16px; background: var(--warn-soft); color: #fde68a; border-bottom: 1px solid rgba(251, 191, 36, .25); font-size: .88rem; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1rem; }
.page-head form.inline input { min-width: 180px; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.1rem; }
.chip { padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 500; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); }
.chip:hover { color: var(--text); text-decoration: none; border-color: var(--line-strong); }
.chip.active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.tabs { margin-bottom: 1.5rem; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.plan { margin: 0; }
.plan-price { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin: .3rem 0 .6rem; }
.plan-price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .92rem; color: var(--text-2); }
.checks li { display: flex; gap: .55rem; align-items: baseline; }
.checks li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }
.plan-pick { display: grid; gap: .5rem; }
.plan-opt { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.plan-opt.current { border-color: var(--accent-line); background: var(--accent-soft); }
.plan-delete { margin-top: .75rem; }

/* Charts */
.chart-wrap { width: 100%; }
.chart-meta { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: space-between; color: var(--muted); font-size: .8rem; margin-bottom: .75rem; }
.chart-x { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; margin-top: .5rem; }
.daybars { display: flex; align-items: flex-end; gap: 3px; height: 140px; border-bottom: 1px solid var(--line); }
.daybar { flex: 1; min-width: 2px; height: max(2px, var(--h)); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 45%, transparent)); transition: filter .12s; }
.daybar:hover { filter: brightness(1.25); }
.toplist { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.toplist li { position: relative; display: flex; justify-content: space-between; gap: 1rem; padding: .35rem .6rem; border-radius: 8px; font-size: .9rem; overflow: hidden; }
.toplist li > span:not(.toplist-bar), .toplist strong { position: relative; }
.toplist li > span:not(.toplist-bar) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toplist-bar { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--accent-soft); border-radius: 8px; }

/* QR */
.qr-card { text-align: center; }
.qr-img { display: block; margin: 0 auto 1rem; border-radius: 10px; background: #fff; padding: 6px; }
.qr-card .actions, .qr-colors { justify-content: center; }
.qr-colors label { margin-bottom: .5rem; }
.qr-colors input[type=color] { width: 70px; height: 36px; padding: 2px; }
input[type=color] { height: 42px; padding: 4px; cursor: pointer; }

/* Bio editor */
.bio-list { display: grid; gap: .5rem; margin-bottom: 1rem; }
.bio-row { display: flex; align-items: center; gap: 1rem; margin: 0; padding: .9rem 1.1rem; color: var(--text); }
.bio-row:hover { text-decoration: none; border-color: var(--line-strong); }
.bio-row .grow { flex: 1; min-width: 0; }
.bio-swatch { width: 38px; height: 38px; border-radius: 10px; flex: none; background: var(--a); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1rem; align-items: start; }
@media (max-width: 960px) { .editor { grid-template-columns: 1fr; } }
.blocks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
.blk { min-width: 0; display: flex; gap: .75rem; align-items: flex-start; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0, 0, 0, .15); }
.blk details { flex: 1; min-width: 0; margin: 0; }
.blk summary { display: flex; margin: 0; color: var(--text); min-width: 0; }
.blk details[open] summary { margin-bottom: .85rem; }
.block-type { font-weight: 600; white-space: nowrap; }
.block-sum { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.block-tools { display: flex; gap: .25rem; flex: none; }
.phone-card { padding: 1rem; }
.phone { aspect-ratio: 9 / 17; border-radius: 26px; overflow: hidden; border: 6px solid #1c1c24; background: #000; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .8); }
.phone iframe { width: 100%; height: 100%; border: 0; display: block; }
.dns-help { margin-bottom: 1rem; }
.dns-table code { overflow-wrap: anywhere; }
