/* Zeno Innovations dashboard: Vercel-style. Light by default; dark via the theme switch. */
:root {
  --bg: #ffffff; --sidebar: #fafafa; --raise: #ffffff; --panel: #ffffff; --panel-2: #fafafa; --hover: #f2f2f2;
  --line: #ebebeb; --line-2: #e0e0e0;
  --text: #171717; --text-2: #3f3f3f; --muted: #666666; --faint: #8f8f8f;
  --accent: #0070f3; --accent-2: #0761d1; --accent-soft: rgba(0, 112, 243, .1);
  --green: #0a7d38; --green-soft: #e9f8ee; --amber: #a35200; --amber-soft: #fff4e5;
  --red: #d8202f; --red-soft: #fdecee; --gray: #666666; --gray-soft: #f2f2f2;
  --series-1: #2a78d6; --series-wash: rgba(42, 120, 214, .1); --bar-wash: rgba(42, 120, 214, .12);
  --primary-bg: #171717; --primary-fg: #ffffff;
  --log-bg: #0a0a0a;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04);
  --sans: "Geist", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", "Cascadia Code", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a0a0a; --sidebar: #0a0a0a; --raise: #0a0a0a; --panel: #0a0a0a; --panel-2: #111111; --hover: #1a1a1a;
  --line: #242424; --line-2: #2e2e2e;
  --text: #ededed; --text-2: #c7c7c7; --muted: #a1a1a1; --faint: #7d7d7d;
  --accent: #3291ff; --accent-2: #52a8ff; --accent-soft: rgba(50, 145, 255, .14);
  --green: #3ecf8e; --green-soft: rgba(62, 207, 142, .12); --amber: #f5a623; --amber-soft: rgba(245, 166, 35, .12);
  --red: #ff4d5e; --red-soft: rgba(255, 77, 94, .12); --gray: #a1a1a1; --gray-soft: #1a1a1a;
  --series-1: #3987e5; --series-wash: rgba(57, 135, 229, .14); --bar-wash: rgba(57, 135, 229, .18);
  --primary-bg: #ededed; --primary-fg: #0a0a0a;
  --log-bg: #000000;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
code, .mono { font-family: var(--mono); font-size: .92em; }
code { background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
h1 { font-size: 28px; font-weight: 600; }
h1.mono { font-size: 22px; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--accent-soft); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break { word-break: break-all; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.stack { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.stack.tight { gap: 10px; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 14px; }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }
.icon { display: inline-flex; width: 16px; height: 16px; flex: none; }
.icon svg { width: 100%; height: 100%; }

/* ---------- frame: sidebar + page bar ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 10px; padding: 12px;
  background: var(--sidebar); border-right: 1px solid var(--line); overflow-y: auto; }
.account-pill { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; }
.account-pill:hover { background: var(--hover); }
.plan { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--gray-soft); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.find-wrap, .search-wrap { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); background: var(--raise); color: var(--faint); }
.find-wrap:focus-within, .search-wrap:focus-within { border-color: var(--text); }
.find-wrap input, .search-wrap input { border: 0; background: transparent; height: 100%; padding: 0; box-shadow: none !important; }
.side-nav { display: grid; gap: 1px; }
.side-link, .side-back { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--muted); font-weight: 500; }
.side-link:hover, .side-back:hover { background: var(--hover); color: var(--text); }
.side-link.active { background: var(--hover); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.side-back { font-size: 13px; margin-bottom: 4px; }
.side-sep { height: 1px; background: var(--line); margin: 8px 4px; }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.side-user { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.theme-switch { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; width: max-content; }
.theme-switch button { display: grid; place-items: center; width: 28px; height: 24px; border: 0; border-radius: 999px; background: transparent; color: var(--faint); cursor: pointer; }
.theme-switch button .icon { width: 14px; height: 14px; }
.theme-switch button.on { background: var(--hover); color: var(--text); }
.main-wrap { min-width: 0; display: flex; flex-direction: column; }
.pagebar { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px;
  height: 56px; padding: 0 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pagebar .menu-btn { display: none; }
.crumbs { display: flex; align-items: center; gap: 10px; min-width: 0; }
.crumb-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.crumb-logo .logo { height: 24px; width: auto; display: block; }
.crumb-sep { color: var(--line-2); font-size: 20px; font-weight: 300; }
.switch-wrap { position: relative; display: flex; align-items: center; gap: 6px; min-width: 0; }
.switch-wrap > .icon:last-child { position: absolute; right: 6px; pointer-events: none; color: var(--faint); width: 14px; height: 14px; }
.type-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.type-icon .icon { width: 13px; height: 13px; }
select.project-switch { border: 0; background: transparent; font-weight: 600; height: 32px; padding: 0 26px 0 6px; max-width: 260px; cursor: pointer; appearance: none; }
select.project-switch:hover { background: var(--hover); }
.page-title { text-align: center; font-weight: 500; white-space: nowrap; }
.page-actions { display: flex; justify-content: flex-end; gap: 8px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 32px 80px; }
.scrim { display: none; }

.brand-name { font-weight: 800; letter-spacing: -0.02em; font-size: 16px; white-space: nowrap; }
.brand-name em { font-style: normal; background: linear-gradient(90deg, #1f8bff, #7b5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-name sup { font-size: .5em; font-weight: 600; color: var(--accent); margin-left: 1px; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--raise); color: var(--text);
  font: 500 14px/1 var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--hover); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--primary-bg); color: var(--primary-fg); border-color: var(--primary-bg); }
.btn.primary:hover { opacity: .88; background: var(--primary-bg); }
.btn.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, var(--line-2)); }
.btn.danger:hover { background: var(--red-soft); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--hover); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.lg { height: 42px; padding: 0 20px; font-size: 15px; }
.btn.block { width: 100%; }
.btn .icon { width: 15px; height: 15px; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--raise); color: var(--muted); cursor: pointer; flex: none; }
.icon-btn:hover { color: var(--text); background: var(--hover); }
.icon-btn.ghost { border-color: transparent; background: transparent; }
input, select, textarea { font: inherit; color: var(--text); background: var(--raise); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); height: 38px; padding: 0 12px; width: 100%; outline: none; transition: border-color .12s, box-shadow .12s; }
textarea { height: auto; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--text); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder { color: var(--faint); }
input[type="checkbox"] { width: 16px; height: 16px; padding: 0; accent-color: var(--text); flex: none; }
select.range { width: auto; height: 34px; padding: 0 30px 0 12px; font-size: 13px; }
.field { display: grid; gap: 6px; }
.field-label { font-weight: 500; font-size: 13px; }
.field-hint { color: var(--muted); font-size: 13px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.form-error { color: var(--red); }
.form-error:empty { display: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-foot { display: flex; align-items: center; gap: 14px; justify-content: flex-end; flex-wrap: wrap; }
.actions, .actions-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions { margin-top: 16px; }

/* ---------- pills, badges, codes ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.pills { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.green { color: var(--green); background: var(--green-soft); }
.pill.amber { color: var(--amber); background: var(--amber-soft); }
.pill.red { color: var(--red); background: var(--red-soft); }
.pill.gray { color: var(--gray); background: var(--gray-soft); }
.dot.pulse { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.badge { display: inline-block; font-size: 12px; font-weight: 500; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.badge.muted { background: var(--gray-soft); color: var(--muted); border: 1px solid var(--line); }
.badge.red { background: var(--red-soft); color: var(--red); }
.type-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 7px; }
.type-badge .icon { width: 13px; height: 13px; }
.code { display: inline-block; font: 500 12px/18px var(--mono); padding: 0 7px; border-radius: 6px; white-space: nowrap; }
.code.green { color: var(--green); background: var(--green-soft); }
.code.amber { color: var(--amber); background: var(--amber-soft); }
.code.red { color: var(--red); background: var(--red-soft); }
.code.gray { color: var(--muted); background: var(--gray-soft); }
.env { font-size: 12px; color: var(--muted); }

/* ---------- cards & page heads ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); min-width: 0; }
.card.soft { background: transparent; box-shadow: none; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head.pad { padding: 18px 22px 0; }
.card-head a { color: var(--muted); text-decoration: none; }
.card-head a:hover { color: var(--text); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head p { margin-top: 6px; }
.toolbar { display: flex; gap: 10px; margin-bottom: 20px; }
.toolbar .search-wrap { flex: 1; height: 40px; }
.callout { border: 1px solid var(--line-2); background: var(--panel-2); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.callout.red { border-color: color-mix(in srgb, var(--red) 30%, var(--line)); background: var(--red-soft); }
.callout.green { border-color: color-mix(in srgb, var(--green) 30%, var(--line)); background: var(--green-soft); }
.callout a { color: inherit; font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.back { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 10px; font-size: 13px; }
.back:hover { color: var(--text); }

/* ---------- projects grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.grid.single { grid-template-columns: 1fr; }
.project-card { display: grid; gap: 14px; text-decoration: none; transition: border-color .12s, box-shadow .12s; }
.project-card:hover { border-color: var(--line-2); box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.card-top { display: flex; align-items: center; gap: 12px; }
.card-title { font-weight: 600; font-size: 15px; }
.card-meta { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); }
.card-foot { border-top: 1px solid var(--line); padding-top: 12px; }
.avatar { --hue: 260; width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-weight: 600; font-size: 13px; color: #fff; background: linear-gradient(135deg, hsl(var(--hue) 70% 58%), hsl(calc(var(--hue) + 45) 75% 45%)); }
.avatar.lg { width: 48px; height: 48px; font-size: 20px; }
.welcome { display: grid; gap: 16px; justify-items: center; text-align: center; padding: 56px 20px; }
.welcome .logo { height: 56px; width: auto; }
.welcome h2 { font-size: 22px; }
.welcome .actions { justify-content: center; }

/* ---------- overview ---------- */
.prod { padding: 0; }
.prod > .card-head { padding: 16px 20px; margin: 0; border-bottom: 1px solid var(--line); }
.prod-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; padding: 20px; }
.preview { position: relative; display: block; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--panel-2); }
.preview iframe { position: absolute; inset: 0; width: 400%; height: 400%; border: 0; transform: scale(.25); transform-origin: 0 0; pointer-events: none; background: #fff; }
.empty-preview { display: grid; place-items: center; font-size: 13px; }
.prod-info { display: grid; gap: 14px; align-content: start; min-width: 0; }
.info-row { display: grid; gap: 4px; min-width: 0; }
.info-label { font-size: 13px; color: var(--muted); }
.info-value { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; font-weight: 500; }
.info-value a { text-decoration: none; }
.info-value a:hover { text-decoration: underline; }
.domain-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.domain-link:hover { text-decoration: underline; }
.domain-link .icon { width: 13px; height: 13px; color: var(--faint); }
.domain-link.big { font-size: 15px; }
.mini-card { display: grid; gap: 8px; align-content: start; text-decoration: none; transition: border-color .12s; }
.mini-card:hover { border-color: var(--line-2); }
.mini-card .card-head { margin-bottom: 4px; }
.mini-card .card-head .icon { color: var(--faint); }
.mini-big { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.online { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-weight: 500; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #0ac35c; box-shadow: 0 0 0 3px color-mix(in srgb, #0ac35c 25%, transparent); }

/* ---------- deployments ---------- */
.dep-list { display: grid; }
.card .dep-list { margin: 0 -22px -20px; }
.card.flush .dep-list { margin: 0; }
.dep-row { display: flex; align-items: center; gap: 12px; padding-right: 16px; border-top: 1px solid var(--line); }
.dep-row:first-child { border-top: 0; }
.dep-link { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 170px 120px; align-items: center; gap: 16px;
  padding: 14px 22px; text-decoration: none; }
.dep-row:hover { background: var(--panel-2); }
.dep-main { min-width: 0; }
.dep-id { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 500; }
.dep-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.dep-state { display: flex; align-items: center; gap: 10px; }
.dep-when { text-align: right; font-size: 13px; white-space: nowrap; }
.dep-actions { display: flex; gap: 6px; }
.dep-actions:empty { display: none; }

/* ---------- charts & analytics ---------- */
.chart { position: relative; width: 100%; }
.chart svg { display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--faint); font: 11px var(--sans); }
.chart .area { fill: var(--series-wash); stroke: none; }
.chart .line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--series-1); stroke: var(--panel); stroke-width: 2; }
.chart .cross { stroke: var(--line-2); stroke-width: 1; }
.chart-tip { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 6px 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); white-space: nowrap; z-index: 2; }
.tip-time { font-size: 12px; color: var(--muted); }
.tip-value { font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-card .card-head { margin-bottom: 8px; }
.kpi-row { display: flex; gap: 0; margin: -20px -22px 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.kpi { padding: 14px 22px; display: grid; gap: 2px; text-align: left; }
.kpi-btn { border: 0; border-right: 1px solid var(--line); background: transparent; font: inherit; color: inherit; cursor: pointer; min-width: 150px; box-shadow: inset 0 -2px 0 transparent; }
.kpi-btn:hover { background: var(--panel-2); }
.kpi-btn.on { box-shadow: inset 0 -2px 0 var(--text); }
.kpi-label { font-size: 13px; color: var(--muted); }
.kpi-value { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; }
.kpi-sub { font-size: 12px; color: var(--muted); }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.kpi-grid .kpi { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.barlist { padding-bottom: 12px; }
.barlist-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.barlist-rows { display: grid; gap: 4px; }
.barlist-row { position: relative; display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; font-size: 13px; }
.barlist-row .bar { position: absolute; left: 0; top: 2px; bottom: 2px; background: var(--bar-wash); border-radius: 4px; }
.barlist-name, .barlist-value { position: relative; }
.barlist-name { flex: 1; }
.barlist-value { font-variant-numeric: tabular-nums; font-weight: 500; }
.status-rows { display: grid; gap: 12px; }
.status-row { display: grid; grid-template-columns: 52px 1fr 140px; align-items: center; gap: 12px; font-size: 13px; }
.status-track { height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.status-bar { display: block; height: 100%; border-radius: 4px; }
.status-bar.green { background: var(--green); }
.status-bar.amber { background: var(--amber); }
.status-bar.red { background: var(--red); }
.status-bar.gray { background: var(--faint); }

/* ---------- tables (logs) ---------- */
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filters input.search { width: 280px; height: 34px; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; font-weight: 500; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel-2); white-space: nowrap; }
table.data td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--panel-2); }
table.data td.path { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- firewall & domains ---------- */
.rule-list { display: grid; }
.rule-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.rule-row:first-child { border-top: 0; }
.rule-add { display: grid; grid-template-columns: 190px minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.rate-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.rate-row input { width: 120px; }
.domain-item { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.domain-item:first-child { border-top: 0; }
.valid { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 13px; font-weight: 500; }
.valid .icon { width: 14px; height: 14px; }

/* ---------- forms: new project, settings ---------- */
.new-form { display: grid; gap: 22px; max-width: 820px; }
.section { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0 14px; }
.section-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line-2); color: var(--muted); margin-top: 1px; }
.section-body { display: grid; gap: 14px; min-width: 0; }
.section-title { font-size: 16px; font-weight: 600; }
.section-sub { color: var(--muted); margin-top: -8px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { text-align: left; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-2); color: var(--text); cursor: pointer; font: inherit; }
.choice:hover { border-color: var(--muted); }
.choice.selected { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.choice.locked { opacity: .55; cursor: not-allowed; }
.choice.locked:hover { border-color: var(--line-2); }
.choice > .icon { width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.choice-title { font-weight: 600; font-size: 15px; }
.choice-title .badge { margin-left: 8px; }
.choice-text { color: var(--muted); font-size: 13px; margin-top: 2px; }
.url-preview { display: flex; align-items: center; font-family: var(--mono); font-size: 13px; color: var(--muted); flex-wrap: wrap; white-space: pre; }
.url-preview .icon { margin-right: 8px; }
.url-preview b { color: var(--text); font-weight: 600; }
.segmented { display: inline-flex; padding: 3px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; gap: 2px; flex-wrap: wrap; width: max-content; max-width: 100%; }
.segmented button { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: 500 13px/1 var(--sans); cursor: pointer; }
.segmented button:hover { color: var(--text); }
.segmented button.on { background: var(--panel); color: var(--text); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(0, 0, 0, .06); }
.drop { display: grid; justify-items: center; gap: 8px; padding: 30px 16px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); cursor: pointer; text-align: center; }
.drop:hover, .drop.over { border-color: var(--text); background: var(--panel-2); }
.drop.has-file { border-style: solid; border-color: var(--green); color: var(--text); }
.drop .icon { width: 24px; height: 24px; }
details.advanced { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
details.advanced > summary { cursor: pointer; padding: 14px 16px; list-style: none; display: flex; align-items: center; gap: 8px; font-weight: 500; }
details.advanced > summary::-webkit-details-marker { display: none; }
details.advanced > summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 18px; line-height: 1; }
details.advanced[open] > summary::after { content: "−"; }
details.advanced > .stack { padding: 0 16px 16px; }
.env-rows { display: grid; gap: 8px; }
.env-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 32px; gap: 8px; }
.env-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.env-actions .check { margin-left: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.stat-label { color: var(--muted); font-size: 13px; }
.stat-value { font-size: 15px; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.tips { margin: 10px 0 0; padding-left: 18px; color: var(--text-2); display: grid; gap: 6px; }
.project-head { margin-bottom: 20px; }
.project-head-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ---------- logs ---------- */
.log-card { padding: 0; overflow: hidden; }
.log-card .card-head { padding: 16px 20px 0; }
.log { background: var(--log-bg); color: #d6d6de; font: 12.5px/1.65 var(--mono); padding: 12px 0; height: 62vh; min-height: 260px; overflow: auto; border-top: 1px solid var(--line); }
.log .line { display: grid; grid-template-columns: 84px 1fr; padding: 0 18px; }
.log .line:hover { background: rgba(255, 255, 255, .04); }
.log .t { color: #6b6b75; user-select: none; }
.log .m { white-space: pre-wrap; overflow-wrap: anywhere; }
.log .line.err .m { color: #ff8a8a; }
.log .line.warn .m { color: #f5c26b; }
.log .line.sys .m { color: #8cc4ff; }
.log-empty { color: #6b6b76; padding: 0 18px; }
.log.short { height: 300px; }

/* ---------- system, account, admin ---------- */
.steps { display: grid; }
.step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 4px; }
.step-mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--muted); font-size: 12px; font-weight: 600; }
.step.done .step-mark { background: var(--green-soft); color: var(--green); border-color: transparent; }
.step.done .step-mark .icon { width: 14px; height: 14px; }
.step-title { font-weight: 600; }
.step-body { color: var(--text-2); margin-top: 4px; display: grid; gap: 8px; }
.cmd { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 8px 8px 12px; font: 13px/1.5 var(--mono); overflow-x: auto; }
.cmd span { flex: 1; white-space: nowrap; }
.cmd .icon-btn { width: 28px; height: 28px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.user-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; font-size: 11px; }
.user-avatar.lg { width: 56px; height: 56px; font-size: 22px; }
img.user-avatar { background: var(--panel-2); }
.user-list { display: grid; }
.user-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.user-row:first-child { border-top: 0; }
.provider-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.provider-row .icon { width: 20px; height: 20px; }
.account-top { display: flex; align-items: flex-end; gap: 16px; }

/* ---------- auth pages ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--panel-2); }
.auth-card { width: 100%; max-width: 400px; display: grid; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: 0 8px 30px rgba(0, 0, 0, .06); }
.auth-card .logo { height: 46px; width: auto; display: block; }
.auth-card h1 { font-size: 24px; }
.provider { gap: 10px; height: 42px; font-size: 14px; }
.provider .icon { width: 18px; height: 18px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.auth-links a { color: var(--text); }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 50; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); animation: toast-in .18s ease-out; transition: opacity .3s, transform .3s; }
.toast.error::before { content: "● "; color: var(--red); }
.toast.ok::before { content: "● "; color: var(--green); }
.toast.out { opacity: 0; transform: translateY(6px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- narrow screens ---------- */
@media (max-width: 1100px) {
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prod-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 40; left: 0; top: 0; width: 272px; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0, 0, 0, .2); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .3); }
  .pagebar .menu-btn { display: inline-grid; }
  .pagebar { grid-template-columns: auto minmax(0, 1fr) auto; padding: 0 16px; }
  .page-title { display: none; }
  .container { padding: 20px 16px 64px; }
  h1 { font-size: 24px; }
  .grid2, .grid3, .row2, .two-col, .choice-grid { grid-template-columns: 1fr; }
  .section { grid-template-columns: 1fr; }
  .section-num { display: none; }
  .dep-link { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px; }
  .dep-state { grid-column: 1; }
  .dep-when { grid-column: 2; grid-row: 1 / span 2; }
  .rule-add { grid-template-columns: 1fr; }
  .filters input.search { width: 100%; }
  .env-row { grid-template-columns: 1fr 32px; }
  .env-row input:nth-child(2) { grid-column: 1; }
  .env-row button { grid-row: 1; grid-column: 2; }
  .log .line { grid-template-columns: 1fr; }
  .log .t { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .status-row { grid-template-columns: 44px 1fr; }
  .status-row .right { grid-column: 1 / -1; text-align: left; }
  .brand-name { font-size: 15px; }
}

/* ---------- "choose a project" page ---------- */
.chooser { max-width: 400px; margin: 48px auto 0; display: grid; gap: 10px; justify-items: center; text-align: center; }
.chooser-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--muted); margin-bottom: 6px; }
.chooser h2 { font-size: 17px; font-weight: 600; }
.chooser > input { margin-top: 14px; height: 44px; }
.chooser-list { width: 100%; display: grid; gap: 2px; text-align: left; margin-top: 6px; }
.chooser-item { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 10px; border-radius: var(--radius-sm); text-decoration: none; min-width: 0; }
.chooser-item:hover, .chooser-item:focus-visible { background: var(--hover); outline: none; }
.chooser-item .muted { max-width: 45%; }
.chooser-item.create { color: var(--faint); }
.crumb-logo .logo { height: 26px; }

/* ---------- plans ---------- */
.plan-rows { display: grid; gap: 14px; }
.plan-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; font-size: 13px; }
.plan-row .meter { grid-column: 1 / -1; }
.meter { display: block; height: 6px; border-radius: 3px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.meter-fill { display: block; height: 100%; background: var(--text); border-radius: 3px; }
.meter-fill.full { background: var(--red); }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan-option { display: grid; gap: 12px; align-content: start; }
.plan-option.current { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.plan-features { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--text-2); font-size: 13px; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-price { margin-left: 8px; font-weight: 500; color: var(--muted); font-size: 13px; }

/* ---------- landing page (before logging in) ---------- */
.auth { position: relative; padding-top: 60px; }
.auth-home { position: absolute; top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-decoration: none; }
.auth-home:hover { color: var(--text); }
.lp { min-height: 100vh; background: var(--bg); }
.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.lp-nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.lp-nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px; }
.lp-brand .logo { height: 28px; width: auto; }
.lp-links { display: flex; gap: 20px; }
.lp-links a { color: var(--muted); text-decoration: none; }
.lp-links a:hover { color: var(--text); }
.lp-actions { margin-left: auto; display: flex; gap: 8px; }
.lp-hero { padding: 88px 0 72px; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 60% at 75% 0%, var(--accent-soft), transparent 70%); }
.lp-hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.lp-hero-text { display: grid; gap: 20px; justify-items: start; }
.lp-eyebrow { font-size: 13px; font-weight: 500; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 12px; background: var(--panel); }
.lp-hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.045em; font-weight: 700; }
.lp-lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.lp-lead b { color: var(--text); font-weight: 600; }
.lp-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.lp-demo { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); box-shadow: 0 20px 50px rgba(0, 0, 0, .08); overflow: hidden; }
.lp-demo-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.lp-demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.lp-demo-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.lp-demo-body { display: grid; gap: 14px; padding: 20px; }
.lp-step { display: flex; gap: 12px; align-items: flex-start; }
.lp-step b { display: block; font-weight: 500; }
.lp-step .mono { font-size: 12px; }
.lp-ok { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green-soft); color: var(--green); flex: none; }
.lp-ok .icon { width: 13px; height: 13px; }
.lp-live { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--line); }
.lp-live .mono { color: var(--accent); font-size: 13px; word-break: break-all; }
.lp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.lp-section { padding: 80px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 64px; }
.lp-section h2 { font-size: 32px; letter-spacing: -0.035em; font-weight: 700; }
.lp-sub { margin-top: 8px; font-size: 16px; }
.lp-steps, .lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.lp-how, .lp-feature { display: grid; gap: 8px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.lp-how h3, .lp-feature h3 { font-size: 16px; }
.lp-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-bg); color: var(--primary-fg); font-weight: 600; font-size: 13px; }
.lp-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 4px; }
.lp-ic .icon { width: 18px; height: 18px; }
.lp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 16px; margin-top: 32px; }
.lp-plan { display: grid; gap: 16px; align-content: start; }
.lp-plan.pro { border-color: var(--text); }
.lp-price { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.lp-note { margin-top: 16px; }
.lp-final { text-align: center; background: var(--panel-2); }
.lp-final .lp-wrap { display: grid; gap: 12px; justify-items: center; }
.lp-final-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.lp-foot { padding: 28px 0; color: var(--muted); font-size: 13px; }
.lp-foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lp-foot-links { display: flex; gap: 18px; }
.lp-foot a { color: inherit; text-decoration: none; }
.lp-foot a:hover { color: var(--text); }
@media (max-width: 900px) {
  .lp-hero { padding: 56px 0 48px; }
  .lp-hero-in, .lp-steps, .lp-features, .lp-plans { grid-template-columns: 1fr; }
  .lp-links { display: none; }
  .lp-section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .lp-wrap { padding: 0 16px; }
  .lp-nav-in { gap: 10px; }
  .lp-brand .brand-name { display: none; }
  .lp-cta .btn, .lp-final-btns .btn { width: 100%; }
}

/* social media buttons */
.social { display: flex; gap: 8px; align-items: center; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); background: var(--panel); }
.social a:hover { color: var(--text); background: var(--hover); }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.lp-foot-in { align-items: center; }

/* ---------- deployment details ---------- */
.dep-overview { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; padding: 20px; align-items: start; }
.dep-preview { aspect-ratio: 16 / 10; }
.dep-preview-empty { display: grid; justify-items: center; gap: 8px; }
.dep-preview-empty .icon { width: 22px; height: 22px; color: var(--faint); }
.dep-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; align-content: start; }
.dep-detail { display: grid; gap: 4px; min-width: 0; }
.dep-detail.wide { grid-column: 1 / -1; }
.dep-label { color: var(--muted); font-size: 13px; }
.dep-value { font-weight: 500; min-width: 0; }
.dep-domains { display: grid; gap: 4px; }
.dep-domain { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; width: max-content; max-width: 100%; }
.dep-domain:hover { text-decoration: underline; }
.dep-domain .icon { width: 13px; height: 13px; color: var(--faint); }
.dep-source { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 500; }
.dep-source .icon { color: var(--muted); }
.badge.gray { background: var(--gray-soft); color: var(--muted); }
.dep-logs { margin-top: 20px; }
.dep-logs > summary.card-head { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.dep-logs > summary::-webkit-details-marker { display: none; }
.dep-logs-title { display: flex; align-items: center; gap: 8px; }
.dep-logs-title .icon { color: var(--muted); transition: transform .15s; }
.dep-logs[open] .dep-logs-title .icon { transform: rotate(90deg); }
.log.fit { height: auto; min-height: 0; max-height: 60vh; }
@media (max-width: 900px) {
  .dep-overview { grid-template-columns: 1fr; gap: 20px; padding: 16px; }
}
@media (max-width: 480px) {
  .dep-details { grid-template-columns: 1fr; }
}

/* ---------- upload files / import from GitHub ---------- */
.files-drop { padding: 34px 16px; cursor: default; }
.drop-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.files-summary { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); padding: 10px 12px; display: grid; gap: 6px; }
.files-head { display: flex; align-items: center; gap: 8px; }
.files-head .icon { color: var(--muted); }
.files-list { margin: 0; padding: 0 0 0 24px; list-style: none; display: grid; gap: 2px; font-size: 12px; color: var(--muted); }
.gh-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.gh-box > p, .gh-box > .muted, .gh-box > .form-error { padding: 16px; }
.gh-box > .link-btn, .gh-box > .btn { margin: 0 16px 16px; }
.gh-connect { display: flex; align-items: center; gap: 14px; padding: 18px; flex-wrap: wrap; }
.gh-connect > .icon { width: 22px; height: 22px; color: var(--muted); }
.gh-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--panel-2); flex-wrap: wrap; }
.gh-search { max-width: 260px; height: 32px; }
.gh-list { max-height: 360px; overflow-y: auto; }
.gh-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); }
.gh-row:first-child { border-top: 0; }
.gh-row:hover { background: var(--panel-2); }
.gh-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); flex: none; }
.gh-ic .icon { width: 14px; height: 14px; }
.gh-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.gh-chosen { display: flex; align-items: flex-end; gap: 14px; padding: 16px; flex-wrap: wrap; }
.gh-chosen > .icon { align-self: center; width: 20px; height: 20px; color: var(--muted); }
.gh-chosen .field { min-width: 180px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }
.link-btn:hover { color: var(--text); }
@media (max-width: 640px) { .gh-search { max-width: none; flex-basis: 100%; } }
.gh-connect .grow { flex: 1 1 220px; }
.drop-btns .icon { width: 16px; height: 16px; }

/* ---------- motion ---------- */
:root { --ease: cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes slide-left { from { opacity: 0; transform: translateX(-14px); } }
@keyframes slide-right { from { opacity: 0; transform: translateX(24px); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes drift { to { transform: translate3d(5%, -4%, 0) rotate(10deg) scale(1.1); } }
@keyframes shine { to { background-position: 200% 0; } }

/* pages slide up as they come in, their blocks one after another */
main.container > * { animation: rise .45s var(--ease) both; }
main.container > *:nth-child(2) { animation-delay: .05s; }
main.container > *:nth-child(3) { animation-delay: .1s; }
main.container > *:nth-child(n+4) { animation-delay: .15s; }
.stack > *, .tab-body > .stack > * { animation: rise .45s var(--ease) both; }
.stack > *:nth-child(2) { animation-delay: .04s; }
.stack > *:nth-child(3) { animation-delay: .08s; }
.stack > *:nth-child(4) { animation-delay: .12s; }
.stack > *:nth-child(n+5) { animation-delay: .16s; }
.grid > *, .stats > *, .plan-grid > *, .choice-grid > * { animation: pop .45s var(--ease) both; }
.grid > *:nth-child(2), .stats > *:nth-child(2), .plan-grid > *:nth-child(2), .choice-grid > *:nth-child(2) { animation-delay: .05s; }
.grid > *:nth-child(3), .stats > *:nth-child(3) { animation-delay: .1s; }
.grid > *:nth-child(4), .stats > *:nth-child(4) { animation-delay: .15s; }
.grid > *:nth-child(n+5) { animation-delay: .2s; }
/* lists inside a card (deployments, rules, domains) don't need to move every refresh */
.card .stack > *, .log .line, .section .stack > * { animation: none; }

/* the sidebar slides in once, link by link */
.sidebar > * { animation: slide-left .4s var(--ease) both; }
.sidebar > *:nth-child(2) { animation-delay: .04s; }
.sidebar > *:nth-child(3) { animation-delay: .08s; }
.sidebar > *:nth-child(n+4) { animation-delay: .12s; }
.side-link { position: relative; transition: background .15s, color .15s, transform .15s var(--ease); }
.side-link:hover { transform: translateX(2px); }
.side-link.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(var(--accent), #7c3aed); animation: fade .3s both; }
.pagebar { animation: fade .3s both; }

/* cards and buttons react */
.card { transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
a.card:hover, .project-card:hover, .mini-card:hover, .lp-feature:hover, .lp-how:hover, .lp-plan:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .1); }
:root[data-theme="dark"] a.card:hover, :root[data-theme="dark"] .project-card:hover, :root[data-theme="dark"] .lp-feature:hover,
:root[data-theme="dark"] .lp-how:hover, :root[data-theme="dark"] .lp-plan:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 0 1px var(--line-2); }
.btn { transition: background .15s, border-color .15s, transform .12s var(--ease), box-shadow .2s, opacity .15s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.primary:hover:not(:disabled) { box-shadow: 0 6px 18px color-mix(in srgb, var(--primary-bg) 30%, transparent); }
.choice { transition: border-color .15s, box-shadow .2s, transform .2s var(--ease); }
.choice:not(:disabled):hover { transform: translateY(-2px); }
.toast { animation: slide-right .35s var(--ease); }
.toast.out { transform: translateX(24px); }
details[open] > :not(summary) { animation: rise .3s var(--ease) both; }
.preview iframe { transition: transform .5s var(--ease); }
.preview:hover iframe { transform: scale(.26); }

/* login and sign-up */
.auth { background: radial-gradient(60% 50% at 50% 0%, var(--accent-soft), transparent 70%), var(--panel-2); overflow: hidden; }
.auth-card { animation: pop .5s var(--ease) both; }
.auth-card > * { animation: rise .5s var(--ease) both; }
.auth-card > *:nth-child(2) { animation-delay: .05s; }
.auth-card > *:nth-child(3) { animation-delay: .1s; }
.auth-card > *:nth-child(n+4) { animation-delay: .15s; }
:root[data-theme="dark"] .auth-card { box-shadow: 0 20px 60px rgba(0, 0, 0, .55); }

/* 404 */
.nf { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 56px 16px; }
.nf-num { font-size: clamp(88px, 18vw, 150px); font-weight: 800; line-height: .9; letter-spacing: -0.06em;
  background: linear-gradient(120deg, var(--accent), #7c3aed 45%, #06b6d4 70%, var(--accent)); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite, float 5s ease-in-out infinite; }
.nf p { max-width: 380px; margin-bottom: 8px; }
.auth-card .nf { padding: 16px 0; }

/* landing page */
.lp-hero { position: relative; overflow: hidden; }
.lp-hero::before, .lp-hero::after { content: ""; position: absolute; z-index: 0; border-radius: 50%; filter: blur(60px); pointer-events: none; animation: drift 16s ease-in-out infinite alternate; }
.lp-hero::before { width: 520px; height: 520px; right: -120px; top: -180px; background: color-mix(in srgb, var(--accent) 22%, transparent); }
.lp-hero::after { width: 420px; height: 420px; left: -140px; bottom: -200px; background: color-mix(in srgb, #7c3aed 16%, transparent); animation-duration: 20s; }
.lp-hero-in { position: relative; z-index: 1; }
.lp-hero-text > * { animation: rise .7s var(--ease) both; }
.lp-hero-text > *:nth-child(2) { animation-delay: .08s; }
.lp-hero-text > *:nth-child(3) { animation-delay: .16s; }
.lp-hero-text > *:nth-child(4) { animation-delay: .24s; }
.lp-hero-text > *:nth-child(5) { animation-delay: .32s; }
.lp-hero h1 { background: linear-gradient(120deg, var(--text) 30%, var(--accent) 60%, #7c3aed 80%, var(--text)); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise .7s var(--ease) both, shine 10s linear infinite; }
.lp-demo { animation: slide-right .8s .2s var(--ease) both; }
.lp-demo-wrap { animation: float 6s ease-in-out 1.2s infinite; }
.lp-step { animation: rise .5s var(--ease) both; }
.lp-step:nth-child(1) { animation-delay: .6s; }
.lp-step:nth-child(2) { animation-delay: 1s; }
.lp-step:nth-child(3) { animation-delay: 1.4s; }
.lp-live { animation: pop .5s 1.8s var(--ease) both; }
.lp-ok { animation: pop .4s var(--ease) both; animation-delay: inherit; }
.lp-nav { animation: fade .5s both; }
:root[data-theme="dark"] .lp-demo { box-shadow: 0 24px 70px rgba(0, 0, 0, .6), 0 0 0 1px var(--line-2); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms), box-shadow .25s, border-color .2s; }
.reveal.in { opacity: 1; transform: none; }
.lp-section.reveal { transition-delay: 0ms; }
.lp-feature .lp-ic { transition: transform .3s var(--ease); }
.lp-feature:hover .lp-ic { transform: scale(1.12) rotate(-6deg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.lp-me { gap: 8px; }
.lp-me .user-avatar { width: 22px; height: 22px; }
@media (max-width: 480px) { .lp-me span { display: none; } }

/* editing the project's address */
.dom-edit { align-items: flex-start; background: var(--panel-2); }
.dom-input { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--raise); max-width: 520px; }
.dom-input:focus-within { border-color: var(--text); box-shadow: 0 0 0 3px var(--accent-soft); }
.dom-input input.dom-name { border: 0; background: transparent; box-shadow: none !important; height: 100%; padding: 0; flex: 1; min-width: 60px; font-weight: 600; }
.dom-edit-btns { display: flex; gap: 8px; padding-top: 4px; }
@media (max-width: 640px) { .dom-input .muted:first-child { display: none; } }

.barlist-row .bar { min-width: 3px; }
.barlist-name { padding-left: 4px; }
.info { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 6px; border-radius: 50%; border: 1px solid var(--line-2);
  font-size: 10px; font-weight: 600; color: var(--muted); cursor: help; vertical-align: 1px; }
.info:hover, .info:focus { color: var(--text); border-color: var(--text); }
.tab-body.settled, .tab-body.settled *, .grid.settled, .grid.settled * { animation: none !important; }

/* the "Powered by" badge setting */
.badge-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.badge-demo { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 9px; border-radius: 999px; background: #050a1c;
  border: 1px solid rgba(91, 120, 255, .35); font-size: 13px; color: #9aa7cc; }
.badge-demo img { width: 18px; height: 18px; }
.badge-demo b { background: linear-gradient(90deg, #4aa8ff, #9b7bff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* templates */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tpl { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .2s, transform .2s var(--ease, ease); }
.tpl:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--line-2); }
.tpl.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tpl.locked { opacity: .55; cursor: not-allowed; }
.tpl-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: none; }
.tpl-text { display: grid; gap: 4px; }
.tpl-text b { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.welcome-tpl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; }
/* business overview */
.biz-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.biz-kpi { display: grid; gap: 4px; }
.biz-num { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.biz-kpi.big { background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--panel); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.biz-kpi.big .biz-num { font-size: 34px; }
.biz-bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; margin-top: 10px; }
.biz-bars i { flex: 1; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, var(--accent), #7c3aed); min-height: 3px; }
.biz-bars i.zero { background: var(--line); }
.biz-top { display: grid; }
.biz-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; }
.biz-row:first-child { border-top: 0; }
.biz-row:hover b { text-decoration: underline; }

/* referrals */
.ref-card { background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--panel); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.ref-share { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ref-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 16px; }
.ref-stat { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.ref-stat b { font-size: 24px; letter-spacing: -0.02em; }
.lp-ribbon { text-align: center; padding: 10px 16px; font-weight: 600; font-size: 14px; color: #fff; background: linear-gradient(90deg, #1f8bff, #7b5cff); }

/* team */
.team-list { display: grid; margin: 12px 0; }
.team-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.team-row:first-child { border-top: 0; }
.team-invite { display: flex; gap: 8px; }
.team-invite input { flex: 1; }

/* storage */
.kv-rows { display: grid; margin-top: 12px; }
.kv-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.kv-row:first-child { border-top: 0; }
.kv-key { font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; }
.kv-val { overflow-wrap: anywhere; }
.code-block { background: var(--log-bg); color: #d6d6de; font: 12.5px/1.6 var(--mono); padding: 14px 16px; border-radius: var(--radius-sm); overflow-x: auto; margin-top: 10px; white-space: pre; }
textarea.mono { font-family: var(--mono); }

/* AI help */
.ai-card { background: linear-gradient(135deg, color-mix(in srgb, #7c3aed 12%, transparent), transparent 60%), var(--panel); border-color: color-mix(in srgb, #7c3aed 35%, var(--line)); }
.ai-body { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-text { display: grid; gap: 8px; line-height: 1.6; }
.ai-text p:empty { display: none; }
.ai-step { padding-left: 4px; }
.ai-wait { display: flex; align-items: center; gap: 8px; }
.ai-wait .dot { width: 8px; height: 8px; border-radius: 50%; background: #7c3aed; }

/* ---------- WhatsApp ---------- */
.btn.wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn.wa:hover { background: #1ebe5b; border-color: #1ebe5b; }
.wa-ic { width: 18px; height: 18px; }
.side-wa { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none;
  background: color-mix(in srgb, #25d366 12%, transparent); border: 1px solid color-mix(in srgb, #25d366 35%, var(--line)); transition: background .15s, transform .15s; }
.side-wa:hover { background: color-mix(in srgb, #25d366 20%, transparent); transform: translateY(-1px); }
.side-wa .wa-ic { color: #25d366; width: 22px; height: 22px; }
.side-wa b { display: block; font-size: 13px; } .side-wa .small { color: var(--muted); }
.side-wa > .icon:last-child { width: 13px; height: 13px; color: var(--faint); }
.lp-wa .wa-ic { color: #25d366; }
.lp-support { display: flex; align-items: center; gap: 24px; padding: 32px; border-radius: 22px; flex-wrap: wrap;
  background: linear-gradient(135deg, color-mix(in srgb, #25d366 14%, transparent), transparent 70%), var(--panel); border: 1px solid color-mix(in srgb, #25d366 35%, var(--line)); }
.lp-support-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #25d366; color: #fff; flex: none; }
.lp-support-ic .wa-ic { width: 30px; height: 30px; }
.lp-support h2 { font-size: 26px; }
.wa-card-in { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wa-card-in .lp-support-ic { width: 44px; height: 44px; border-radius: 12px; }
.wa-card-in .lp-support-ic .wa-ic { width: 24px; height: 24px; }
.wa-link { display: inline-flex; align-items: center; gap: 6px; color: #1ea952; font-weight: 600; text-decoration: none; }
.wa-link .wa-ic { width: 15px; height: 15px; }

/* ---------- help chat ---------- */
.toasts { bottom: 88px; }
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px;
  border-radius: 999px; border: 0; cursor: pointer; font: 600 15px var(--sans); color: #fff; background: linear-gradient(135deg, #1f8bff, #7b5cff);
  box-shadow: 0 12px 30px rgba(59, 91, 255, .4); transition: transform .2s var(--ease, ease), box-shadow .2s; animation: pop .5s .6s both; }
.chat-fab:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 16px 40px rgba(59, 91, 255, .5); }
.chat-fab .icon { width: 20px; height: 20px; }
.chat-fab.open { transform: scale(.92); opacity: .9; }
.chat-panel { position: fixed; right: 20px; bottom: 84px; z-index: 61; width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25); animation: pop .3s var(--ease, ease) both; }
:root[data-theme="dark"] .chat-panel { box-shadow: 0 24px 70px rgba(0, 0, 0, .65); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%); }
.chat-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #1f8bff, #7b5cff); flex: none; }
.chat-sub { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.chat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.chat-wa { display: flex; align-items: center; gap: 10px; margin: 10px 12px 0; padding: 10px 12px; border-radius: 12px; text-decoration: none;
  background: color-mix(in srgb, #25d366 12%, transparent); border: 1px solid color-mix(in srgb, #25d366 35%, var(--line)); }
.chat-wa:hover { background: color-mix(in srgb, #25d366 20%, transparent); }
.chat-wa .wa-ic { color: #25d366; width: 22px; height: 22px; }
.chat-wa b { display: block; font-size: 13px; } .chat-wa .small { color: var(--muted); }
.chat-wa > .icon:last-child { width: 13px; height: 13px; color: var(--faint); }
.chat-log { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; animation: rise .25s var(--ease, ease) both; }
.chat-msg.user { align-self: flex-end; background: var(--primary-bg); color: var(--primary-fg); border-bottom-right-radius: 5px; }
.chat-msg.assistant { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; white-space: normal; }
.chat-md { display: grid; gap: 6px; }
.chat-md .code-block { margin: 2px 0; font-size: 12px; white-space: pre-wrap; }
.chat-msg.typing { display: flex; gap: 4px; padding: 14px; }
.chat-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: blink 1s infinite; }
.chat-msg.typing span:nth-child(2) { animation-delay: .15s; } .chat-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; transform: translateY(-2px); } }
.chat-ideas { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-idea { font: 500 13px var(--sans); padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); cursor: pointer; }
.chat-idea:hover { border-color: var(--accent); color: var(--accent); }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.chat-input { flex: 1; resize: none; min-height: 40px; max-height: 120px; padding: 10px 12px; border-radius: 12px; font: 14px/1.4 var(--sans); }
.chat-send { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0; cursor: pointer; color: #fff; background: linear-gradient(135deg, #1f8bff, #7b5cff); flex: none; }
.chat-send:disabled { opacity: .5; cursor: default; }
@media (max-width: 600px) {
  .chat-panel { right: 8px; left: 8px; bottom: 80px; width: auto; height: calc(100vh - 100px); }
  .chat-fab span { display: none; } .chat-fab { padding: 0 16px; right: 14px; bottom: 14px; }
  .lp-wa span { display: none; }
}
@media print { .chat-fab, .chat-panel { display: none !important; } }

/* zeno CLI */
.cli-card { max-width: 480px; margin: 40px auto; display: grid; gap: 14px; justify-items: center; text-align: center; padding: 32px 28px; }
.cli-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #1f8bff, #7b5cff); }
.cli-ic.ok { background: var(--green); }
.cli-ic .icon { width: 26px; height: 26px; }
.cli-meta { display: flex; gap: 12px; width: 100%; }
.cli-meta > div { flex: 1; display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); }
.cli-actions { display: flex; gap: 10px; width: 100%; }
.cli-actions .btn { flex: 1; }
.cli-steps { display: grid; gap: 6px; margin-top: 12px; }
.cli-row-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }

/* landing: the zeno CLI */
.lp-cli { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.lp-cli-text { display: grid; gap: 10px; justify-items: start; }
.lp-cli-text .cmd { width: 100%; }
.lp-cli-steps { display: grid; gap: 8px; margin-top: 8px; }
.lp-cli-steps div { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.lp-term { border-radius: 16px; overflow: hidden; background: #0a0c14; border: 1px solid #23283a; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.lp-term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #121624; border-bottom: 1px solid #23283a; }
.lp-term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .lp-term-bar i:nth-child(2) { background: #febc2e; } .lp-term-bar i:nth-child(3) { background: #28c840; }
.lp-term-bar span { margin-left: 10px; font: 12px var(--mono); color: #7d84a0; }
.lp-term-body { padding: 18px 20px 22px; display: grid; gap: 6px; font: 13.5px/1.5 var(--mono); color: #d6dcf5; min-height: 230px; }
.lp-term-line { opacity: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
/* the lines type out once the section scrolls into view */
.lp-section.in .lp-term-line, .lp-section:not(.reveal) .lp-term-line { animation: term-in .4s var(--ease, ease) forwards; animation-delay: calc(var(--i) * .45s + .2s); }
@keyframes term-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lp-cli .cmd span { white-space: normal; overflow-wrap: anywhere; }
.lp-term-p { color: #3ecf8e; }
.lp-term-line.t-cmd { color: #fff; }
.lp-term-line.t-head { color: #b9a3ff; font-weight: 600; }
.lp-term-line.t-dim { color: #8a91ad; }
.lp-term-line.t-ok { color: #3ecf8e; font-weight: 600; }
@media (max-width: 900px) { .lp-cli { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .lp-term-line { opacity: 1; animation: none; } }

/* project cards: a long address shrinks (with ...) instead of pushing the Live pill out of the card */
.card-top > .grow { min-width: 0; }
.card-top > :last-child { flex-shrink: 0; }

/* "zenodev.nl is now ..." */
.moved-banner { display: flex; align-items: center; gap: 12px; margin: 12px 24px 0; padding: 10px 10px 10px 16px; border-radius: var(--radius-sm); color: #fff;
  font-size: 14px; font-weight: 500; background: linear-gradient(90deg, #1f8bff, #7b5cff); }
.moved-banner b { font-weight: 800; } .moved-banner s { opacity: .8; }
.moved-banner .icon-btn { color: #fff; }
.lp-ribbon s { opacity: .8; } .lp-ribbon .mono, .moved-banner .mono { font-size: .92em; }
