/* PushFolder: one stylesheet for the landing, the sign-in pages and the panel. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 599;
  font-display: swap;
  src: url(/fonts/manrope-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url(/fonts/manrope-latin-700-normal.woff2) format("woff2");
}

:root {
  --font: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bg: #ffffff;
  --bg-soft: #f6f6f5;
  --panel: #ffffff;
  --ink: #111111;
  --ink-2: #3d3d3d;
  --muted: #6e6e6e;
  --line: #e8e8e6;
  --line-2: #d7d7d4;
  --brand: #111111;
  --brand-hover: #2b2b2b;
  --brand-ink: #ffffff;
  --brand-soft: #f1f1ef;
  --danger: #d92d20;
  --danger-soft: #fef1f0;
  --warn: #b54708;
  --warn-soft: #fff7e8;
  --success: #067647;
  --success-soft: #ecfdf3;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 24px -12px rgba(0, 0, 0, 0.14);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.35);
  --side: 248px;
  color-scheme: light;
}
:root[data-mode="dark"] {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --panel: #171717;
  --ink: #f5f5f5;
  --ink-2: #d0d0d0;
  --muted: #8f8f8f;
  --line: #262626;
  --line-2: #343434;
  --brand: #ffffff;
  --brand-hover: #e6e6e6;
  --brand-ink: #0a0a0a;
  --brand-soft: #232323;
  --danger: #f97066;
  --danger-soft: #2a1416;
  --warn: #fdb022;
  --warn-soft: #2a2010;
  --success: #47cd89;
  --success-soft: #0f2a1d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ---- Base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 10px; font-weight: 750; }
h1 { font-size: 26px; letter-spacing: -0.03em; }
h2 { font-size: 17px; }
h3 { font-size: 15.5px; }
p { margin: 0 0 12px; }
ul { padding-left: 20px; }
a { color: var(--ink); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p a, .prose a, .hint a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
p a:hover, .prose a:hover { text-decoration-color: currentColor; }
button { font: inherit; color: inherit; }
svg { flex: none; display: block; }
code { font: 13px/1.4 var(--mono); background: var(--bg-soft); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.center-text { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none !important; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; }

/* ---- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  background: var(--brand); color: var(--brand-ink);
  font: inherit; font-weight: 650; font-size: 14.5px; white-space: nowrap; cursor: pointer;
  text-decoration: none !important; user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.05s;
}
.btn:hover:not(:disabled) { background: var(--brand-hover); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
.btn-light { background: var(--panel); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-light:hover:not(:disabled) { background: var(--bg-soft); }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); box-shadow: none; }
.btn-danger:hover:not(:disabled) { background: var(--danger-soft); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13.5px; border-radius: 8px; gap: 6px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.btn-wide { width: 100%; }
.link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---- Layout helpers ------------------------------------------------------ */

.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.center { justify-content: center; }
.row.tight { gap: 6px; flex-wrap: nowrap; }
.grow { flex: 1; min-width: 220px; }
.grow input { flex: 1; min-width: 0; }
.between { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.inline { display: inline; margin: 0; }
.stack { display: grid; gap: 16px; margin-bottom: 16px; }
.page-head { margin-bottom: 4px; align-items: center; }
.page-head h1 { margin-bottom: 2px; }
.page-head p { margin: 0; }
.crumb { font-size: 13px; color: var(--muted); margin: 0 0 -8px; }
.crumb a { color: var(--muted); font-weight: 500; text-decoration: none; }
.crumb a:hover { color: var(--ink); }

/* ---- Cards --------------------------------------------------------------- */

.card { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--panel); box-shadow: var(--shadow-sm); }
.card > :last-child { margin-bottom: 0; }
.card h2:not(:first-child) { margin-top: 26px; }
.narrow { max-width: 440px; margin: 48px auto; }
.narrow-form { max-width: 380px; }
.empty { text-align: center; padding: 56px 24px; display: grid; justify-items: center; gap: 4px; }
.empty .empty-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); display: grid; place-items: center; margin-bottom: 10px; }
.empty .btn { margin-top: 10px; }

/* ---- Forms --------------------------------------------------------------- */

label { display: grid; gap: 6px; font-size: 14px; font-weight: 650; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=tel], input[type=number], select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--panel); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 500;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
textarea { resize: vertical; line-height: 1.55; }
select { cursor: pointer; }
.row input, .row select { width: auto; }
.row.tight select { min-height: 32px; padding: 4px 10px; font-size: 13.5px; }
.hint { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.hint.bad { color: var(--danger); font-weight: 600; }
.code { font-size: 24px; letter-spacing: 8px; text-align: center; font-weight: 750; }
.filter { margin-bottom: 4px; }
.filter input[type=search] { flex: 1; min-width: 180px; }
.domain-add { margin-top: 16px; }
.domain-add input { flex: 1; min-width: 200px; }

.form-error { background: var(--danger-soft); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); padding: 10px 14px; font-size: 14px; font-weight: 600; border-radius: 10px; overflow-wrap: anywhere; }
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--success-soft); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 25%, transparent); border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.notice-error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.notice-block { display: block; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 650; letter-spacing: 0; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.badge-ok, .badge-warn, .badge-danger { border-color: transparent; }
.badge-ok::before, .badge-warn::before, .badge-danger::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { color: var(--success); background: var(--success-soft); }
.badge-warn { color: var(--warn); background: var(--warn-soft); }
.badge-danger { color: var(--danger); background: var(--danger-soft); }

/* ---- Facts and tables ---------------------------------------------------- */

.facts { margin: 0; display: grid; gap: 10px; }
.facts div { display: flex; gap: 12px; }
.facts dt { width: 150px; color: var(--muted); font-size: 14px; flex-shrink: 0; }
.facts dd { margin: 0; font-weight: 600; }
.facts-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.facts-row div { flex-direction: column; gap: 3px; }
.facts-row dt { width: auto; font-size: 12.5px; font-weight: 600; }
.facts-row dd { font-weight: 750; font-size: 16px; letter-spacing: -0.01em; }

.table-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 650; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
table.dns { margin: 10px 0 12px; border: 1px solid var(--line); border-radius: 10px; border-collapse: separate; border-spacing: 0; background: var(--bg-soft); }
table.dns th, table.dns td { padding: 9px 14px; }

/* ---- Public site: header and footer -------------------------------------- */

.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.nav { display: flex; align-items: center; gap: 4px; font-size: 14.5px; }
.nav > a:not(.btn) { color: var(--ink-2); padding: 8px 12px; border-radius: 9px; text-decoration: none; }
.nav > a:not(.btn):hover { background: var(--bg-soft); color: var(--ink); }
.nav .btn { margin-left: 8px; }
.site-page { padding-top: 40px; padding-bottom: 80px; display: grid; gap: 20px; align-content: start; min-height: 60vh; }
.foot { border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; padding-bottom: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); font-weight: 500; }
.foot a:hover { color: var(--ink); }

/* ---- Panel: sidebar shell ------------------------------------------------ */

.side { position: fixed; inset: 0 auto 0 0; width: var(--side); display: flex; flex-direction: column; gap: 22px; padding: 20px 14px 16px; background: var(--panel); border-right: 1px solid var(--line); overflow-y: auto; }
.side .brand { padding: 2px 8px; }
.side-nav { display: grid; gap: 2px; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; text-decoration: none !important; }
.side-link:hover { background: var(--bg-soft); color: var(--ink); }
.side-link.on { background: var(--brand-soft); color: var(--ink); }
.side-foot { margin-top: auto; display: grid; gap: 12px; }
.side-plan { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.side-plan strong { color: var(--ink); font-size: 14px; }
.side-plan a { margin-top: 6px; font-size: 13px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 12px 4px 0 8px; border-top: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--ink); font-weight: 750; flex: none; text-transform: uppercase; }
.side-user-text { flex: 1; min-width: 0; display: grid; }
.side-user-text strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-text span { font-size: 12.5px; color: var(--muted); }
.side-logout { width: 34px; height: 34px; border: 0; border-radius: 9px; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.side-logout:hover { background: var(--bg-soft); color: var(--ink); }
.portal-main { margin-left: var(--side); min-height: 100vh; background: var(--bg-soft); }
.page { max-width: 1240px; margin: 0 auto; padding: 36px 36px 80px; display: grid; gap: 20px; align-content: start; }
.page-wide { max-width: 1560px; }
.page > * { min-width: 0; margin-top: 0; margin-bottom: 0; }

/* ---- Sign-in pages ------------------------------------------------------- */

.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.auth-side { background: #0a0a0a; color: #f5f5f5; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.auth-side .brand { color: #fff; }
.auth-side .brand-mark { background: #fff; color: #0a0a0a; }
.auth-pitch h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 18px; }
.auth-pitch ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: #c9c9c9; font-size: 15px; font-weight: 500; }
.auth-pitch li { display: flex; gap: 10px; align-items: flex-start; }
.auth-pitch li svg { margin-top: 3px; color: #fff; }
.auth-fine { font-size: 13px; color: #8f8f8f; }
.auth-fine a { color: #c9c9c9; font-weight: 500; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; gap: 20px; }
.auth-mobile-brand { display: none; }
.auth-box { width: 100%; max-width: 400px; display: grid; gap: 16px; }
.auth-box .card { border: 0; box-shadow: none; padding: 0; margin: 0; max-width: none; background: none; }
.auth-box h1 { font-size: 28px; margin-bottom: 6px; }
.auth-box .between { margin-top: 4px; }

/* ---- Landing ------------------------------------------------------------- */

.hero-wrap { position: relative; overflow: hidden; }
.hero-wrap::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 560px; z-index: 0; pointer-events: none; background-image: radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 1px); background-size: 22px 22px; background-position: center top; -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 30%, transparent 75%); }
.hero, .flow-zone { position: relative; z-index: 1; }
.hero { padding: 84px 0 0; text-align: center; }
.hero-copy { display: grid; gap: 22px; justify-items: center; max-width: 780px; margin: 0 auto; }
.hero-copy h1 { font-size: clamp(40px, 7vw, 76px); letter-spacing: -0.05em; line-height: 0.98; margin: 0; font-weight: 800; }
.hero-copy h1 em { font-style: normal; color: var(--muted); }
.hero-copy > p { font-size: 18.5px; color: var(--ink-2); line-height: 1.6; max-width: 600px; margin: 0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-note { font-size: 13.5px; color: var(--muted); font-weight: 550; margin: 0; }
.address { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); font: 600 13.5px/1 var(--mono); color: var(--ink-2); }
.address svg { color: var(--success); }
.address b { color: var(--ink); }

/* Folder -> upload -> live site */
.flow-zone { padding: 56px 0 72px; }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) 44px minmax(0, 1.25fr); align-items: stretch; text-align: left; }
.flow-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; display: grid; gap: 12px; align-content: start; }
.flow-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.flow-arrow { display: grid; place-items: center; color: var(--muted); }
.tree { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font: 13px/1.4 var(--mono); color: var(--ink-2); }
.tree li { display: flex; align-items: center; gap: 8px; }
.tree li.in { padding-left: 18px; }
.tree li svg { color: var(--muted); }
.tree li:first-child { color: var(--ink); font-weight: 700; }
.tree li:first-child svg { color: var(--ink); }
.meter { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; width: 100%; background: var(--brand); border-radius: 99px; }
.flow-big { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.flow-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13px; color: var(--ink-2); font-weight: 550; }
.flow-rows li { display: flex; align-items: center; gap: 8px; }
.flow-rows svg { color: var(--success); }
.flow-site { padding: 0; overflow: hidden; gap: 0; }
.flow-site-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); font: 600 12.5px/1 var(--mono); color: var(--ink-2); }
.flow-site-bar svg { color: var(--success); }
.flow-site-bar .badge { margin-left: auto; font-family: var(--font); }
.flow-site-body { padding: 18px; display: grid; gap: 10px; }
.sk { height: 10px; border-radius: 6px; background: var(--line); }
.sk-title { height: 20px; width: 62%; background: var(--line-2); }
.sk-short { width: 44%; }
.sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.sk-row span { height: 46px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); }

.section { padding: 88px 0 0; }
.section-head { max-width: 640px; margin: 0 auto 40px; display: grid; gap: 10px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.04em; margin: 0; font-weight: 800; }
.section-head p { font-size: 16.5px; color: var(--ink-2); margin: 0; }

/* Steps: big numerals on one line */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.steps > div { padding: 28px 28px 0 0; }
.steps > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.step-n { display: block; font-size: 44px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--line-2); margin-bottom: 18px; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { margin: 0; }

/* Features: uneven grid */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento .card { display: grid; gap: 6px; align-content: start; padding: 24px; }
.bento h3 { font-size: 17px; margin: 0; }
.bento p { margin: 0; }
.b-wide { grid-column: span 4; }
.b-side { grid-column: span 2; }
.b-third { grid-column: span 2; }
.mini { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); overflow: hidden; font: 12.5px/1.4 var(--mono); }
.mini-row { display: grid; grid-template-columns: 80px 1fr 1.4fr; gap: 10px; padding: 9px 14px; color: var(--ink-2); }
.mini-row + .mini-row { border-top: 1px solid var(--line); }
.mini-head { font-family: var(--font); font-size: 12px; font-weight: 700; color: var(--muted); }
.log { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.log li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); font-weight: 550; }
.log code { background: none; border: 0; padding: 0; color: var(--muted); }
.stack-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }
.chip { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--panel); font-size: 13.5px; font-weight: 650; color: var(--ink-2); }

/* Pricing: comparison table */
.price { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow-sm); overflow-x: auto; }
.price table { min-width: 620px; font-size: 14.5px; }
.price th, .price td { padding: 16px 22px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: normal; }
.price table { min-width: 760px; }
.price thead th { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); vertical-align: top; padding-top: 24px; padding-bottom: 20px; width: 20%; }
.price-tag { display: block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-tag b { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; margin-right: 2px; }
.price thead th small { display: block; font-size: 13px; font-weight: 550; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.price tbody th { font-size: 14px; font-weight: 600; color: var(--muted); }
.price td { font-weight: 700; }
.price td.no { color: var(--muted); font-weight: 550; }
.price .pick { background: var(--bg-soft); }
.price tfoot td { border-bottom: 0; padding-top: 20px; padding-bottom: 24px; }

/* Questions */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 500; color: var(--muted); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 0; padding: 0 2px 20px; color: var(--ink-2); max-width: 640px; }

.closing { margin: 88px 0; border: 1px solid var(--line-2); border-radius: 20px; padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--bg-soft); }
.closing h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.035em; margin: 0 0 4px; font-weight: 800; }
.closing p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---- Sites --------------------------------------------------------------- */

.site-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.site-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 18px 22px; transition: border-color 0.15s, box-shadow 0.15s; }
.site-row > .row { flex-wrap: nowrap; }
.site-row:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.site-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.site-thumb { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft); display: grid; place-items: center; font-weight: 800; font-size: 17px; text-transform: uppercase; flex: none; }
.site-row p { margin: 1px 0 0; }
.site-name { font-weight: 750; font-size: 16px; letter-spacing: -0.01em; }
.slug-field { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; max-width: 480px; overflow: hidden; background: var(--panel); transition: border-color 0.15s, box-shadow 0.15s; }
.slug-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.slug-field input { border: 0; flex: 1; min-width: 0; box-shadow: none !important; background: none; }
.slug-field span { padding: 0 14px; color: var(--muted); background: var(--bg-soft); align-self: stretch; display: flex; align-items: center; border-left: 1px solid var(--line); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.slug-field + .hint { margin-top: 8px; }

.domain { border-top: 1px solid var(--line); padding: 16px 0; }
.domain:first-of-type { border-top: 0; padding-top: 4px; }
.domain .between { align-items: center; }
.domain p { margin: 8px 0 0; }

/* ---- Uploader ------------------------------------------------------------ */

.uploader { display: grid; gap: 12px; }
.uploader p { margin: 0; }
.drop { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 36px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--bg-soft); transition: background 0.15s, border-color 0.15s; }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop-icon { width: 52px; height: 52px; border-radius: 15px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; place-items: center; margin-bottom: 8px; }
.drop-title { font-weight: 750; font-size: 16.5px; letter-spacing: -0.01em; }
.drop .row { margin-top: 12px; }
.selection { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 650; }
progress { width: 100%; height: 8px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 99px; background: var(--line); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--brand); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--brand); }

/* ---- Admin --------------------------------------------------------------- */

.tabs { display: flex; gap: 4px; box-shadow: inset 0 -1px 0 var(--line); overflow-x: auto; overflow-y: hidden; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 650; font-size: 14.5px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--brand); }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { text-decoration: none !important; display: grid; gap: 2px; padding: 18px 20px; transition: border-color 0.15s, box-shadow 0.15s; }
.stat b { font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.stat span { color: var(--muted); font-size: 13.5px; font-weight: 600; }
a.stat:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.admin-actions { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.details { white-space: pre-wrap; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 14px; overflow-wrap: anywhere; }
.pager { justify-content: center; }

/* ---- Text pages ---------------------------------------------------------- */

.prose { max-width: 700px; font-size: 16px; color: var(--ink-2); }
.prose h1 { font-size: 34px; letter-spacing: -0.035em; color: var(--ink); margin-bottom: 20px; }
.prose h2 { margin-top: 32px; font-size: 19px; color: var(--ink); }
.prose li { margin-bottom: 6px; }

/* ---- Panel details ------------------------------------------------------- */

/* Light / dark switch */
.theme-toggle { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; flex: none; transition: background 0.15s, color 0.15s; }
.theme-toggle:hover { background: var(--bg-soft); color: var(--ink); }
.theme-toggle .i-sun { display: none; }
[data-mode="dark"] .theme-toggle .i-sun { display: block; }
[data-mode="dark"] .theme-toggle .i-moon { display: none; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.auth-main .theme-toggle { position: absolute; top: 20px; right: 20px; }
.auth-main { position: relative; }

/* Usage bars */
.usage { display: grid; gap: 6px; }
.usage-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.usage-top b { color: var(--ink); font-weight: 700; }
.bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--brand); border-radius: 99px; min-width: 4px; }
.bar.w0 span { width: 0; min-width: 0; } .bar.w10 span { width: 10%; } .bar.w20 span { width: 20%; } .bar.w30 span { width: 30%; }
.bar.w40 span { width: 40%; } .bar.w50 span { width: 50%; } .bar.w60 span { width: 60%; } .bar.w70 span { width: 70%; }
.bar.w80 span { width: 80%; } .bar.w90 span { width: 90%; background: var(--warn); } .bar.w100 span { width: 100%; background: var(--danger); }
.usage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 28px; }
.usage-grid .usage-top { font-size: 13.5px; }
.usage-grid { margin-bottom: 20px; }
.side-plan .usage { margin: 8px 0 4px; }

/* Page titles and section headers */
.page-head h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.card > h2 + .muted { margin-top: -4px; }

/* Address with copy button */
.addr { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 4px 4px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 14px; }
.addr a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; flex: none; }
.copy:hover { background: var(--bg-soft); color: var(--ink); }
.copy.done { color: var(--success); }
table.dns td { white-space: nowrap; }
table.dns .copy { display: inline-grid; vertical-align: middle; margin-left: 2px; }
table.dns code { background: none; border: 0; padding: 0; font-size: 13px; }

/* Stat tiles on a site */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { padding: 16px 18px; display: grid; gap: 4px; }
.tile dt, .tile span { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.tile b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.tile small { font-size: 12.5px; color: var(--muted); font-weight: 550; }

/* Deploy changes */
.delta { display: inline-flex; gap: 6px; font: 600 12.5px/1 var(--mono); }
.delta span { padding: 4px 7px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); }
.delta .add { color: var(--success); }
.delta .del { color: var(--danger); }

.danger-zone { border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }

/* ---- Templates gallery --------------------------------------------------- */

.tpl-head { text-align: center; margin: 16px auto 0; }
.tpl-head h1 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.04em; font-weight: 800; margin: 0; }
.tpl-filter { margin-top: 0; }
a.chip { text-decoration: none; }
a.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.tpl-filter-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; align-self: center; margin-right: 4px; }
.tpl-count { margin: 0; font-size: 13.5px; }
.tpl-pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tpl-pager a, .tpl-pager span { min-width: 38px; height: 38px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); font-size: 14px; font-weight: 650; text-decoration: none; color: var(--ink-2); }
.tpl-pager a:hover { border-color: var(--ink); color: var(--ink); }
.tpl-pager .on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 12px; }
.tpl { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.tpl:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
/* A full-size page scaled down: 1280px wide rendered at 30%. */
.tpl-shot { display: block; position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--bg-soft); border-bottom: 1px solid var(--line); container-type: inline-size; }
.tpl-shot::before { content: "Loading preview"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.tpl-shot iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 880px; border: 0; transform-origin: 0 0; transform: scale(calc(100cqw / 1280px)); pointer-events: none; }
@supports not (container-type: inline-size) { .tpl-shot iframe { transform: scale(0.27); } }
.tpl-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.tpl-meta b { display: block; font-size: 14.5px; letter-spacing: -0.01em; }
.tpl-band { margin-top: 88px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: var(--shadow-sm); padding: 36px 40px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; }
.tpl-band h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.04em; font-weight: 800; margin: 0 0 8px; }
.tpl-band p { color: var(--ink-2); font-size: 16px; }
.tpl-band-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tpl-band-shots .tpl-shot { border: 1px solid var(--line); border-radius: 12px; aspect-ratio: 3 / 4; }
.tpl-band-shots .tpl-shot iframe { height: 1720px; }

/* ---- Site editor (full screen, no sidebar) -------------------------------- */

.ed-shell { height: 100vh; display: flex; flex-direction: column; overflow: hidden; background: var(--bg-soft); }
.ed-shell > .notice { margin: 10px 16px 0; }
.ed-top { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); flex: none; }
.ed-back { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); transform: rotate(180deg); flex: none; }
.ed-back:hover { background: var(--bg-soft); color: var(--ink); }
.ed-title { display: grid; min-width: 0; line-height: 1.25; }
.ed-title b { font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-title span { font-size: 12.5px; color: var(--muted); font-weight: 550; white-space: nowrap; }
.ed-status { font-size: 12.5px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.ed-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.ed-status.busy::before { background: var(--warn); }
.ed-status.bad { color: var(--danger); }
.ed-status.bad::before { background: var(--danger); }
.ed-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.ed-history { display: flex; gap: 6px; }
.ed-history button:disabled { opacity: 0.4; cursor: default; }
.ed-zoom { font: 600 12px/1 var(--mono); color: var(--muted); min-width: 40px; text-align: center; }
.flash { animation: flash 1.2s ease-out; border-radius: 10px; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px color-mix(in srgb, #2563eb 35%, transparent); } 100% { box-shadow: 0 0 0 4px transparent; } }

/* Segmented control */
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 650; color: var(--muted); cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-sm); }

.ed { flex: 1; min-height: 0; display: grid; grid-template-columns: 400px minmax(0, 1fr); }
.ed-panel { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.ed-tabs { margin: 14px 16px 0; display: grid; grid-template-columns: repeat(3, 1fr); flex: none; }
.ed-form { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px 32px; scrollbar-width: thin; }
.ed-pane { display: grid; gap: 4px; }
.ed-pane > .hint { margin: 14px 0 6px; }

/* A labelled block of controls */
.pick { border: 0; border-top: 1px solid var(--line); margin: 16px 0 0; padding: 16px 0 0; min-width: 0; display: grid; gap: 12px; }
.ed-pane > .pick:first-child { border-top: 0; margin-top: 8px; }
.pick legend { padding: 0; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; float: left; width: 100%; margin-bottom: 2px; }
.pick label { font-size: 13px; }
.ed-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Color: ready-made swatches, a custom one, and the code */
.swatches { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); transition: transform 0.1s; }
.swatch:hover { transform: scale(1.08); }
.swatch.on { box-shadow: 0 0 0 3px var(--panel); outline: 2px solid var(--ink); outline-offset: 2px; }
.swatch-pick { position: relative; overflow: hidden; background: conic-gradient(#ef4444, #f59e0b, #facc15, #22c55e, #06b6d4, #3b82f6, #a855f7, #ec4899, #ef4444); }
.swatch-pick input { position: absolute; inset: -8px; width: 60px; height: 60px; opacity: 0; cursor: pointer; padding: 0; border: 0; min-height: 0; }
.hex { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); max-width: 170px; transition: border-color 0.15s, box-shadow 0.15s; }
.hex:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.hex > i { width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); flex: none; }
.hex span { color: var(--muted); font: 600 13.5px var(--mono); }
.hex input { border: 0; padding: 0; min-height: 38px; box-shadow: none !important; background: none; font: 600 13.5px var(--mono); text-transform: uppercase; }

/* Picture tiles */
.tile-grid { display: grid; gap: 8px; }
.tile-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { position: relative; display: grid; gap: 7px; padding: 7px 7px 9px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.tile:hover { border-color: var(--muted); }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tile:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.tile-name { font-size: 12px; font-weight: 650; color: var(--ink-2); padding: 0 3px; line-height: 1.3; }
.tile:has(input:checked) .tile-name { color: var(--ink); }

.art { --a: var(--ed-accent, #2563eb); position: relative; display: flex; height: 58px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; }
.art i { display: block; flex: none; }
/* Header sketches: logo, menu, button */
.art-h { align-items: center; justify-content: space-between; padding: 0 9px; gap: 6px; }
.art-h i:nth-child(1) { width: 20px; height: 7px; border-radius: 3px; background: var(--ink); }
.art-h i:nth-child(2) { width: 34px; height: 3px; border-radius: 3px; background: var(--muted); opacity: 0.6; }
.art-h i:nth-child(3) { width: 16px; height: 9px; border-radius: 3px; background: var(--a); }
.art-h-center { flex-direction: column; justify-content: center; gap: 7px; }
.art-h-center i:nth-child(3) { display: none; }
.art-h-split i:nth-child(1) { order: 2; }
.art-h-split i:nth-child(2) { order: 1; width: 24px; }
.art-h-split i:nth-child(3) { order: 3; }
.art-h-minimal i:nth-child(2) { display: none; }
/* Top section sketches: text and photo */
.art-hero { align-items: center; gap: 8px; padding: 8px; }
.art-hero i:nth-child(1) { width: 34%; height: 22px; background: repeating-linear-gradient(var(--ink) 0 4px, transparent 4px 9px); opacity: 0.75; border-radius: 1px; }
.art-hero i:nth-child(2) { flex: 1; height: 100%; border-radius: 5px; background: color-mix(in srgb, var(--a) 45%, var(--bg-soft)); }
.art-hero i:nth-child(3) { display: none; }
.art-hero-full, .art-hero-card { padding: 0; }
.art-hero-full i:nth-child(2), .art-hero-card i:nth-child(2) { position: absolute; inset: 0; border-radius: 0; background: color-mix(in srgb, var(--a) 60%, #222); }
.art-hero-full { justify-content: center; }
.art-hero-full i:nth-child(1) { position: relative; z-index: 1; width: 44%; background: repeating-linear-gradient(#fff 0 4px, transparent 4px 9px); opacity: 0.95; }
.art-hero-card i:nth-child(1) { position: absolute; z-index: 1; left: 8px; bottom: 8px; width: 46%; height: 26px; background: var(--panel); border-radius: 4px; opacity: 1; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.art-hero-center { flex-direction: column; justify-content: center; gap: 6px; }
.art-hero-center i:nth-child(1) { width: 46%; height: 13px; }
.art-hero-center i:nth-child(2) { flex: none; width: 82%; height: 20px; }
/* Footer sketches */
.art-f { align-items: flex-end; padding: 0 9px 10px; gap: 6px; }
.art-f i { height: 3px; border-radius: 3px; background: var(--muted); opacity: 0.7; }
.art-f-simple { justify-content: space-between; }
.art-f-simple i:nth-child(1) { width: 40%; }
.art-f-simple i:nth-child(2) { width: 16%; }
.art-f-simple i:nth-child(3) { display: none; }
.art-f-columns { justify-content: space-between; }
.art-f-columns i { width: 26%; height: 14px; background: repeating-linear-gradient(var(--muted) 0 3px, transparent 3px 7px); border-radius: 0; }
.art-f-center { flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; }
.art-f-center i:nth-child(1) { width: 26%; height: 5px; background: var(--ink); opacity: 1; }
.art-f-center i:nth-child(2) { width: 46%; }
.art-f-center i:nth-child(3) { width: 30%; }
.art-f-band { flex-direction: column; align-items: stretch; padding: 0; gap: 0; justify-content: flex-end; }
.art-f-band i:nth-child(1) { height: 30px; border-radius: 0; background: var(--a); opacity: 1; }
.art-f-band i:nth-child(2) { height: 3px; margin: 7px 9px; width: 40%; }
.art-f-band i:nth-child(3) { display: none; }
/* Background sketches */
.art-tone { align-items: center; justify-content: center; gap: 5px; flex-direction: column; }
.art-tone i:nth-child(1) { width: 46%; height: 6px; border-radius: 3px; }
.art-tone i:nth-child(2) { width: 30%; height: 4px; border-radius: 3px; opacity: 0.5; }
.art-tone i:nth-child(3) { width: 22px; height: 9px; border-radius: 3px; background: var(--a); margin-top: 2px; }
.art-tone-light { background: #ffffff; }
.art-tone-light i:nth-child(-n+2) { background: #141414; }
.art-tone-warm { background: #f3ecdf; }
.art-tone-warm i:nth-child(-n+2) { background: #1f1a14; }
.art-tone-dark { background: #0e0e0e; border-color: #2a2a2a; }
.art-tone-dark i:nth-child(-n+2) { background: #f5f5f5; }
/* Style sketches: a title and a button in each design's character */
.art-style { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 0 10px; }
.art-style i:nth-child(1) { width: 62%; height: 8px; background: var(--ink); border-radius: 2px; }
.art-style i:nth-child(2) { width: 40%; height: 3px; background: var(--muted); opacity: 0.6; border-radius: 2px; }
.art-style i:nth-child(3) { width: 26px; height: 10px; background: var(--a); border-radius: 5px; }
.art-style-classic { align-items: center; }
.art-style-classic i:nth-child(1) { height: 6px; }
.art-style-classic i:nth-child(2) { width: 18px; height: 2px; background: var(--a); opacity: 1; }
.art-style-classic i:nth-child(3) { border-radius: 2px; }
.art-style-bold i:nth-child(1) { width: 78%; height: 13px; border-radius: 0; }
.art-style-bold i:nth-child(3) { border-radius: 0; width: 32px; }
.art-style-minimal i:nth-child(1) { height: 5px; width: 50%; }
.art-style-minimal i:nth-child(3) { height: 8px; }
.art-style-elegant { align-items: center; }
.art-style-elegant i:nth-child(1) { height: 4px; width: 56%; }
.art-style-elegant i:nth-child(3) { border-radius: 1px; width: 36px; height: 8px; background: none; border: 1.5px solid var(--a); }
/* Services or menu sketches */
.art-items { padding: 9px; gap: 5px; }
.art-items-cards i { flex: 1; border-radius: 4px; background: var(--panel); border: 1px solid var(--line-2); }
.art-items-menu { flex-direction: column; justify-content: center; gap: 7px; }
.art-items-menu i { height: 4px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) 0 45%, transparent 45% 82%, var(--a) 82%); opacity: 0.8; }

/* Sections list */
.ed-sections { display: grid; gap: 8px; }
.ed-group { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.ed-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 11px 12px 11px 14px; font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.ed-group > summary::-webkit-details-marker { display: none; }
.ed-group > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform 0.15s; flex: none; }
.ed-group[open] > summary::before { transform: rotate(45deg); }
.ed-group[open] > summary { border-bottom: 1px solid var(--line); }
.ed-group:has([data-section-on]:not(:checked)) > summary > span:first-of-type { color: var(--muted); }
.ed-tools { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; }
.ed-fields { display: grid; gap: 12px; padding: 14px; }
.ed-fields label { font-size: 13px; }
.ed-rows { display: grid; gap: 8px; }
.ed-fields > [data-row-add] { justify-self: start; }
.ed-row { display: grid; grid-template-columns: 1fr 88px; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); }
.ed-row > :nth-child(n+3) { grid-column: 1 / -1; }
.ed-row-1 { grid-template-columns: 1fr; }
.ed-row-1 > * { grid-column: 1 / -1; }
.ed-row-2 { grid-template-columns: 1fr 1fr; }
.ed-row [data-row-remove] { justify-self: start; color: var(--muted); }
.ed-row [data-row-remove]:hover { color: var(--danger); }
/* Radio pills */
.seg-radio { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.seg-radio label { display: block; position: relative; cursor: pointer; }
.seg-radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg-radio span { display: block; text-align: center; padding: 7px 8px; border-radius: 7px; font-size: 13px; font-weight: 650; color: var(--muted); }
.seg-radio label:hover span { color: var(--ink); }
.seg-radio input:checked + span { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg-radio input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }
/* On / off switch */
.switch { display: inline-flex; grid-template-columns: none; cursor: pointer; margin-left: 6px; position: relative; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i { width: 34px; height: 20px; border-radius: 99px; background: var(--line-2); position: relative; transition: background 0.15s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: transform 0.15s; }
.switch input:checked + i { background: var(--success); }
.switch input:checked + i::after { transform: translateX(14px); }
.switch input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }

.img-slot { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.img-slot b { display: block; font-size: 13px; margin-bottom: 6px; }
.img-thumb { width: 56px; height: 56px; border-radius: 10px; background: var(--panel); border: 1px dashed var(--line-2); overflow: hidden; flex: none; }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ed-images { display: grid; gap: 8px; }

/* Preview */
.ed-canvas { min-width: 0; min-height: 0; padding: 20px 20px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; background-image: radial-gradient(color-mix(in srgb, var(--ink) 10%, transparent) 1px, transparent 1px); background-size: 20px 20px; }
.ed-device { width: 100%; flex: 1; min-height: 0; max-width: 100%; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); transition: width 0.2s; }
.ed-device.phone { border-radius: 28px; }
.ed-device-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--bg-soft); border-bottom: 1px solid var(--line); flex: none; }
.ed-device-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.ed-device-bar span { margin-left: 8px; flex: 1; display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 7px; background: var(--panel); border: 1px solid var(--line); font: 600 12px/1 var(--mono); color: var(--ink-2); min-width: 0; overflow: hidden; white-space: nowrap; }
.ed-device-bar svg { color: var(--success); }
.ed-screen { flex: 1; min-height: 0; position: relative; overflow: hidden; background: #fff; }
.ed-screen iframe { position: absolute; top: 0; left: 0; border: 0; background: #fff; transform-origin: 0 0; }
.ed-tip { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); flex: none; }
.ed-row-s { grid-template-columns: 100px 1fr; }
.ed-row-s > :nth-child(3) { grid-column: 1 / -1; }

/* Sketches for the newer headers, top sections, footers and themes */
.art-h-pill { padding: 0 9px; }
.art-h-pill::before { content: ""; position: absolute; inset: 14px 6px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--panel); }
.art-h-pill i { position: relative; }
.art-h-stripe::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: var(--ink); }
.art-h-stripe { padding-top: 9px; }
.art-h-solid { background: var(--a); border-color: var(--a); }
.art-h-solid i:nth-child(1), .art-h-solid i:nth-child(2) { background: #fff; opacity: 0.9; }
.art-h-solid i:nth-child(3) { background: #fff; }
.art-hero-side { padding: 0; gap: 0; background: linear-gradient(90deg, var(--a) 0 46%, var(--bg-soft) 46%); }
.art-hero-side i:nth-child(1) { margin-left: 8px; width: 30%; background: repeating-linear-gradient(#fff 0 4px, transparent 4px 9px); opacity: 0.95; }
.art-hero-side i:nth-child(2) { margin: 8px; }
.art-hero-frame i:nth-child(2) { flex: none; width: 34%; border-radius: 99px 99px 4px 4px; margin-left: auto; }
.art-hero-stack { flex-direction: column; align-items: flex-start; gap: 5px; padding-bottom: 0; }
.art-hero-stack i:nth-child(1) { width: 70%; height: 16px; background: repeating-linear-gradient(var(--ink) 0 6px, transparent 6px 10px); }
.art-hero-stack i:nth-child(2) { flex: 1; width: 100%; border-radius: 5px 5px 0 0; }
.art-hero-type { flex-direction: column; align-items: flex-start; justify-content: center; }
.art-hero-type i:nth-child(1) { width: 88%; height: 26px; background: repeating-linear-gradient(var(--ink) 0 10px, transparent 10px 16px); opacity: 0.85; }
.art-hero-type i:nth-child(2) { display: none; }
.art-hero-diagonal { padding: 0; background: var(--bg-soft); }
.art-hero-diagonal::before { content: ""; position: absolute; inset: 0; background: var(--a); clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%); }
.art-hero-diagonal i { position: relative; }
.art-hero-diagonal i:nth-child(1) { margin-left: 8px; width: 32%; background: repeating-linear-gradient(#fff 0 4px, transparent 4px 9px); opacity: 0.95; }
.art-hero-diagonal i:nth-child(2) { margin: 10px 8px 16px; background: var(--panel); transform: rotate(3deg); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.art-f-big { flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 6px; }
.art-f-big i:nth-child(1) { width: 34%; }
.art-f-big i:nth-child(2) { height: 16px; background: var(--ink); opacity: 0.85; border-radius: 0; }
.art-f-big i:nth-child(3) { display: none; }
.art-tone-tint { background: color-mix(in srgb, var(--a) 12%, #fff); }
.art-tone-tint i:nth-child(-n+2) { background: #16181d; }
.art-theme { align-items: center; justify-content: center; gap: 5px; flex-direction: column; }
.art-theme i:nth-child(1) { width: 52%; height: 7px; border-radius: 2px; }
.art-theme i:nth-child(2) { width: 34%; height: 3px; border-radius: 2px; opacity: 0.5; }
.art-theme i:nth-child(3) { width: 24px; height: 9px; border-radius: 3px; background: var(--a); margin-top: 2px; }
.art-theme-bold i:nth-child(1), .art-theme-block i:nth-child(1), .art-theme-craft i:nth-child(1) { height: 11px; width: 64%; border-radius: 0; }
.art-theme-bold i:nth-child(3), .art-theme-block i:nth-child(3), .art-theme-editorial i:nth-child(3), .art-theme-studio i:nth-child(3) { border-radius: 0; }
.art-theme-craft i:nth-child(3) { border-radius: 2px; box-shadow: 2px 2px 0 currentColor; }
.art-theme-fresh i:nth-child(3), .art-theme-local i:nth-child(3), .art-theme-night i:nth-child(3) { border-radius: 99px; width: 30px; }
.art-theme-elegant i:nth-child(1), .art-theme-editorial i:nth-child(1), .art-theme-minimal i:nth-child(1) { height: 4px; }
.art-theme-elegant i:nth-child(3) { background: none; border: 1.5px solid var(--a); border-radius: 1px; width: 34px; }
.art-theme-studio i:nth-child(1) { width: 78%; height: 13px; }
.art-theme-block { background: var(--a) !important; }
.art-theme-block i:nth-child(-n+2) { background: #fff !important; }
.art-theme-block i:nth-child(3) { background: #fff; }

@media (max-width: 1100px) {
  .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpl-band { grid-template-columns: 1fr; padding: 28px 24px; margin-top: 64px; }
}
@media (max-width: 900px) {
  .ed-shell { height: auto; min-height: 100vh; overflow: visible; }
  .ed-top { flex-wrap: wrap; position: sticky; top: 0; z-index: 10; }
  .ed-actions { width: 100%; margin-left: 0; justify-content: space-between; }
  .ed-actions .seg, .ed-status { display: none; }
  .ed { display: flex; flex-direction: column-reverse; }
  .ed-panel { border-right: 0; border-top: 1px solid var(--line); }
  .ed-form { overflow: visible; }
  .ed-canvas { height: 62vh; padding: 12px; }
}
@media (max-width: 640px) {
  .tpl-grid { grid-template-columns: 1fr; }
  .ed-two { grid-template-columns: 1fr; }
}

/* ---- Site page: tabs, files and code ------------------------------------- */

.tab-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--brand-soft); color: var(--ink-2); font-size: 12px; font-weight: 700; text-align: center; line-height: 20px; }
.site-thumb-lg { width: 60px; height: 60px; border-radius: 16px; font-size: 24px; }
.page-head .site-id { align-items: center; gap: 16px; }
.page-head .site-id h1 { margin-bottom: 6px; }
.page-head .site-id p { margin: 0; }
.files { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 20px; align-items: start; }
.files-tree { padding: 18px; position: sticky; top: 20px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; gap: 12px; }
.files-tree .card-head { margin: 0; }
.search-sm input { min-height: 36px; font-size: 14px; }
.tree { overflow-y: auto; min-height: 0; margin: 0 -6px; padding: 0 6px; font-size: 13.5px; scrollbar-width: thin; }
.tree-in { margin-left: 13px; padding-left: 8px; border-left: 1px solid var(--line); }
.tree-dir > summary, .tree-file { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; color: var(--ink-2); font-weight: 600; text-decoration: none !important; list-style: none; min-width: 0; }
.tree-dir > summary::-webkit-details-marker { display: none; }
.tree-dir > summary:hover, .tree-file:hover { background: var(--bg-soft); color: var(--ink); }
.tree-file { font-weight: 500; }
.tree-file.on { background: var(--brand-soft); color: var(--ink); font-weight: 700; }
.tree span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree small { color: var(--muted); font-size: 11.5px; font-weight: 500; flex: none; }
.tree svg { color: var(--muted); }
.tree-dir[open] > summary svg { color: var(--ink); }
.files-view { padding: 0; overflow: hidden; min-width: 0; }
.view-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.view-head b { display: block; font: 600 13.5px/1.4 var(--mono); overflow-wrap: anywhere; }
.btn.done { color: var(--success); border-color: var(--success); }
.codeview { margin: 0; padding: 14px 0; overflow: auto; max-height: calc(100vh - 220px); font: 12.5px/1.65 var(--mono); counter-reset: line; tab-size: 2; background: var(--panel); color: var(--ink); }
.codeview > span { display: block; padding: 0 18px 0 64px; position: relative; white-space: pre; min-height: 1.65em; }
.codeview > span::before { counter-increment: line; content: counter(line); position: absolute; left: 0; width: 48px; text-align: right; color: var(--muted); opacity: 0.7; user-select: none; }
.codeview > span:hover { background: var(--bg-soft); }
.view-image { padding: 28px; display: grid; place-items: center; background-image: linear-gradient(45deg, var(--bg-soft) 25%, transparent 25%, transparent 75%, var(--bg-soft) 75%), linear-gradient(45deg, var(--bg-soft) 25%, transparent 25%, transparent 75%, var(--bg-soft) 75%); background-size: 20px 20px; background-position: 0 0, 10px 10px; }
.view-image img { max-width: 100%; max-height: 70vh; border-radius: 8px; box-shadow: var(--shadow); }

/* ---- Billing ------------------------------------------------------------- */

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 24px; }
.plan-card h2 { font-size: 19px; margin: 0; }
.plan-card.is-pick { border-color: var(--line-2); box-shadow: var(--shadow); }
.plan-card.is-current { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.plan-flag { position: absolute; top: -11px; left: 20px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.plan-flag-soft { background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); }
.plan-price { margin: 12px 0 0; display: flex; align-items: baseline; gap: 4px; }
.plan-price b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan-price span { color: var(--muted); font-weight: 600; font-size: 14px; }
.plan-year { margin: 0 0 12px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; display: grid; gap: 9px; align-content: start; }
.plan-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.plan-list li svg { margin-top: 3px; color: var(--ink); }
.plan-list li.off, .plan-list li.off svg { color: var(--muted); }
.plan-buy { display: grid; gap: 8px; }
.btn.is-static { pointer-events: none; opacity: 0.6; box-shadow: none; }
.notice-plain { background: var(--bg-soft); color: var(--ink-2); border-color: var(--line-2); font-weight: 500; }

/* ---- Account and admin --------------------------------------------------- */

.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.split > * { display: grid; gap: 20px; min-width: 0; }
.profile { display: flex; align-items: center; gap: 16px; }
.profile .avatar { width: 56px; height: 56px; font-size: 22px; }
.profile b { display: block; font-size: 17px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.list-rows { display: grid; }
.list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; padding-top: 0; }
.list-row:last-child { padding-bottom: 0; }
.list-row p { margin: 2px 0 0; }
.table-card { padding: 0; overflow: hidden; }
.table-card table th { padding: 12px 18px; background: var(--bg-soft); }
.table-card table td { padding: 13px 18px; }
.table-card .table-scroll { margin: 0; padding: 0; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar .search { flex: 1; min-width: 220px; }
.stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* ---- Dashboard ----------------------------------------------------------- */

.tile b small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.tile .bar { margin-top: 4px; }
.start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.start { display: grid; gap: 6px; justify-items: start; padding: 28px; text-decoration: none !important; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.start:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.start .empty-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); display: grid; place-items: center; margin-bottom: 10px; }
.start h2 { font-size: 19px; margin: 0; }
.start p { font-weight: 500; margin: 0 0 12px; }
.search { display: flex; grid-template-columns: none; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); color: var(--muted); transition: border-color 0.15s, box-shadow 0.15s; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.search input { border: 0; padding-left: 0; box-shadow: none !important; background: none; min-height: 44px; }
.site-meta { display: flex; flex-wrap: wrap; gap: 2px 0; align-items: center; }
.site-meta > * + *::before { content: "\00b7"; margin: 0 7px; color: var(--line-2); }
.site-meta a { color: var(--ink-2); font-weight: 600; }
.site-row .badge + .badge { margin-left: 2px; }

/* Templates shown inside the panel */
.page .tpl-head { text-align: left; margin: 0; max-width: none; }
.page .tpl-head h1 { font-size: 26px; letter-spacing: -0.03em; }
.page .tpl-filter { justify-content: flex-start; margin: 0; }
.page .tpl-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.page .tpl-grid { margin-top: 0; }
.page .card.narrow { margin: 24px auto; }

/* Menu button of the public header (shown on phones) */
.menu-check { position: absolute; opacity: 0; width: 1px; height: 1px; }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; align-items: center; justify-content: center; cursor: pointer; flex: none; background: var(--panel); }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.2s, background 0.2s; }
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.menu-check:checked + .burger span { background: transparent; }
.menu-check:checked + .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-check:checked + .burger span::after { transform: translateY(-6px) rotate(-45deg); }
.menu-check:focus-visible + .burger { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---- Small screens ------------------------------------------------------- */

@media (max-width: 900px) {
  .hero { padding-top: 56px; }
  .flow-zone { padding: 40px 0 56px; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow-arrow { height: 36px; transform: rotate(90deg); }
  .section { padding-top: 64px; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps > div, .steps > div + div { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .b-wide, .b-side, .b-third { grid-column: span 6; }
  .closing { padding: 28px 24px; margin: 64px 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-mobile-brand { display: inline-flex; }
  .auth-main { justify-content: flex-start; padding-top: 64px; }

  .side { position: sticky; top: 0; z-index: 10; inset: auto; width: auto; flex-direction: row; align-items: center; gap: 8px; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .side .brand span:last-child { display: none; }
  .side-top { display: contents; }
  .side-top .theme-toggle { order: 3; }
  .side-nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; order: 2; }
  .side-link { padding: 8px 10px; white-space: nowrap; }
  .side-link svg { display: none; }
  .side-foot { margin: 0; display: block; order: 4; }
  .side-plan, .side-user-text, .avatar { display: none; }
  .side-user { border: 0; padding: 0; }
  .portal-main { margin-left: 0; }
  .page { padding: 24px 16px 64px; }
  .ed-history, .ed-zoom, .ed-tip { display: none; }
}
@media (max-width: 760px) {
  .top-in { position: relative; flex-wrap: wrap; }
  .top .burger { display: inline-flex; }
  .top .nav { display: none; position: absolute; top: 100%; left: -16px; right: -16px; z-index: 20; flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.35); }
  .top .nav > a:not(.btn) { padding: 12px 10px; font-size: 16px; }
  .top .nav .btn { margin: 8px 0 0; height: 44px; }
  .top .nav .theme-toggle { margin: 6px 0 0 6px; }
  .top .menu-check:checked ~ .nav { display: flex; }
  .nav .hide-sm { display: block; }
  .start-grid, .split, .files { grid-template-columns: 1fr; }
  .files-tree { position: static; max-height: 340px; }
  .site-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .card { padding: 18px; }
  .facts div { flex-direction: column; gap: 0; }
  .facts dt { width: auto; }
  .hero-copy h1 { font-size: 40px; }
  .tile b { font-size: 17px; }
}

/* ---- AI builder ---- */
.ai-brief { display: grid; gap: 16px; max-width: 860px; }
.ai-brief .card h2 { margin-bottom: 12px; }
.ai-brief .stack { margin-bottom: 0; }
.ai-brief label .hint { font-weight: 500; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 550; }
.check input { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.btn.is-busy { opacity: 0.6; pointer-events: none; }
.btn.is-off { opacity: 0.45; pointer-events: none; }
.start-wide { grid-column: 1 / -1; }

.ai-panel { min-height: 0; }
.ai-log { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.ai-msg { max-width: 92%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-msg-user { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 4px; }
.ai-msg-assistant { align-self: flex-start; background: var(--bg-soft); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ai-msg-error { align-self: flex-start; background: var(--danger-soft); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); font-weight: 600; }
.ai-msg-note { align-self: center; max-width: 100%; padding: 4px 10px; font-size: 12.5px; color: var(--muted); font-weight: 600; text-align: center; }
.ai-msg-brief { max-width: 100%; align-self: stretch; background: var(--bg-soft); border: 1px dashed var(--line-2); white-space: normal; display: grid; gap: 2px; }
.ai-msg-brief span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ai-msg-brief p { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
.ai-foot { flex: none; border-top: 1px solid var(--line); padding: 12px 16px 16px; display: grid; gap: 10px; }
.ai-note { margin: 0; font-size: 12.5px; font-weight: 550; color: var(--ink-2); background: var(--warn-soft); border-radius: 10px; padding: 9px 12px; }
.ai-compose { display: grid; gap: 8px; }
.ai-compose textarea { resize: none; font-size: 14px; }
.ai-compose-row { display: flex; align-items: center; gap: 8px; }
.ai-left { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); text-align: right; }
.ai-left.bad { color: var(--danger); }

.ai-device.phone { width: 400px; }
.ai-screen iframe { width: 100%; height: 100%; }
.ai-wait { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 24px; background: var(--panel); color: var(--ink); }
.ai-wait[hidden] { display: none; }
.ai-wait b { font-size: 18px; letter-spacing: -0.02em; }
.ai-wait p { margin: 0; max-width: 340px; font-size: 14px; color: var(--muted); font-weight: 500; }
.ai-wait .btn { margin-top: 8px; }
.ai-wait-over { background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(3px); }
.ai-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--ink); animation: ai-spin 0.9s linear infinite; margin-bottom: 6px; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ai-spin { animation-duration: 3s; } }
.form-sent { text-align: center; }

@media (max-width: 900px) {
  .ai-log { max-height: 46vh; }
  .ai-device.phone { width: 100%; }
}

/* Photo picker of the AI builder */
.photos { display: grid; gap: 10px; }
.photos-title { font-size: 14px; font-weight: 650; display: flex; align-items: baseline; gap: 8px; }
.photos-drop { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--bg-soft); transition: border-color 0.15s, background 0.15s; }
.photos-drop.over { border-color: var(--brand); background: var(--brand-soft); }
.photos-drop .empty-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.photos-drop > div { flex: 1; min-width: 0; }
.photos-drop b { font-size: 14.5px; }
.photos-drop .hint { margin: 2px 0 0; }
.photos-drop .btn { flex: none; }
.photos-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.photos-list[hidden] { display: none; }
.photos-list li { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.photos-list img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-soft); }
.photos-list span { display: block; padding: 6px 9px; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photos-list button { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; padding: 0; background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.photos-list button:hover { background: #000; }
@media (max-width: 640px) {
  .photos-drop { flex-direction: column; text-align: center; }
  .photos-drop .btn { width: 100%; }
}

/* AI builder chat: rows with an avatar, and the "working" animation */
.ai-log { gap: 14px; padding: 18px 16px; }
.ai-row { display: flex; align-items: flex-end; gap: 8px; animation: ai-in 0.28s ease-out both; }
.ai-row-user { justify-content: flex-end; }
.ai-row .ai-msg { max-width: calc(100% - 44px); }
.ai-msg-user { box-shadow: var(--shadow-sm); }
.ai-msg-assistant { background: var(--panel); box-shadow: var(--shadow-sm); }
.ai-msg-error, .ai-msg-note { animation: ai-in 0.28s ease-out both; }
@keyframes ai-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ai-avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; color: var(--brand-ink); background: var(--brand); box-shadow: var(--shadow-sm); }
.ai-avatar-live { animation: ai-pulse 1.8s ease-in-out infinite; }
@keyframes ai-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 40%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }
.ai-brief-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

.ai-typing .ai-msg { flex: 1; display: grid; gap: 10px; position: relative; overflow: hidden; white-space: normal; }
.ai-typing .ai-msg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--ink) 7%, transparent) 50%, transparent 70%); background-size: 220% 100%; animation: ai-sheen 2.2s linear infinite; pointer-events: none; }
@keyframes ai-sheen { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.ai-typing-head { display: flex; align-items: center; gap: 8px; }
.ai-typing-head b { font-size: 13.5px; font-weight: 650; }
.ai-typing-head small { margin-left: auto; font: 600 11.5px/1 var(--mono); color: var(--muted); }
.ai-step-in { animation: ai-in 0.35s ease-out both; }
.ai-dots { display: inline-flex; gap: 3px; }
.ai-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: ai-dot 1.1s ease-in-out infinite; }
.ai-dots i:nth-child(2) { animation-delay: 0.15s; }
.ai-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ai-dot { 0%, 60%, 100% { transform: none; opacity: 0.35; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Lines of "code" being written, one after another */
.ai-code { display: grid; gap: 6px; padding: 11px 12px; border-radius: 10px; background: #0a0a0a; border: 1px solid #262626; }
.ai-code i { height: 6px; border-radius: 3px; width: 0; animation: ai-write 4.2s cubic-bezier(0.3, 0.7, 0.3, 1) infinite; }
.ai-code .c1 { --w: 46%; background: #ffffff; }
.ai-code .c2 { --w: 78%; background: #8f8f8f; margin-left: 14px; animation-delay: 0.45s; }
.ai-code .c3 { --w: 58%; background: #d4d4d4; margin-left: 28px; animation-delay: 0.9s; }
.ai-code .c4 { --w: 66%; background: #6b6b6b; margin-left: 28px; animation-delay: 1.35s; }
.ai-code .c5 { --w: 40%; background: #b0b0b0; margin-left: 14px; animation-delay: 1.8s; }
.ai-code .c6 { --w: 30%; background: #ffffff; animation-delay: 2.25s; }
@keyframes ai-write { 0% { width: 0; opacity: 0; } 8% { opacity: 1; } 30%, 82% { width: var(--w); opacity: 1; } 100% { width: var(--w); opacity: 0; } }

/* The preview while a site is being built: a page that draws itself */
.ai-build { width: 220px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); box-shadow: var(--shadow-lg); overflow: hidden; margin-bottom: 14px; }
.ai-build-bar { display: flex; gap: 5px; padding: 8px 10px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.ai-build-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.ai-build-page { padding: 14px; display: grid; gap: 8px; justify-items: start; }
.ai-build-page span { display: block; height: 8px; border-radius: 4px; background: var(--line-2); transform-origin: left; animation: ai-draw 3.6s ease-in-out infinite; }
.ai-build-page .b1 { width: 70%; height: 14px; background: var(--brand); }
.ai-build-page .b2 { width: 92%; animation-delay: 0.3s; }
.ai-build-page .b3 { width: 55%; animation-delay: 0.6s; }
.ai-build-page div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-top: 6px; }
.ai-build-page div span { height: 44px; border-radius: 8px; }
.ai-build-page .b4 { animation-delay: 0.9s; }
.ai-build-page .b5 { animation-delay: 1.2s; }
.ai-build-page .b6 { animation-delay: 1.5s; }
@keyframes ai-draw { 0% { transform: scaleX(0); opacity: 0; } 25%, 80% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }

.ai-compose textarea { border-radius: 14px; }
.ai-compose textarea:disabled { opacity: 0.6; }

@media (prefers-reduced-motion: reduce) {
  .ai-row, .ai-msg-error, .ai-msg-note, .ai-step-in, .ai-avatar-live, .ai-typing .ai-msg::after, .ai-dots i { animation: none; }
  .ai-code i { animation: none; width: var(--w); }
  .ai-build-page span { animation: none; }
}

/* AI builder, first step: a centered chat where the assistant asks the questions */
.ai-chat { max-width: 760px; margin: 0 auto; height: calc(100vh - 120px); min-height: 480px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.38s; }
.ai-chat.is-leaving { transform: translateX(-40vw) scale(0.94); opacity: 0; }
.ai-chat-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ai-chat-head div { display: grid; line-height: 1.3; min-width: 0; flex: 1; }
.ai-chat-head b { font-size: 15px; letter-spacing: -0.01em; }
.ai-chat-head div span { font-size: 12.5px; font-weight: 550; color: var(--muted); }
.ai-chat .ai-log { padding: 22px 20px; background: var(--bg-soft); }
.ai-chat .ai-msg { font-size: 14.5px; }
.ai-chat .ai-row .ai-msg { max-width: min(520px, calc(100% - 44px)); }
.ai-chat-foot { flex: none; border-top: 1px solid var(--line); padding: 14px 18px 16px; display: grid; gap: 10px; }
.ai-chat-foot [hidden] { display: none; }
.ai-chat-foot .ai-compose textarea { min-height: 44px; font-size: 15px; }
.ai-compose.is-waiting { opacity: 0.55; pointer-events: none; }
.ai-thinking .ai-msg { padding: 13px 14px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; transition: background 0.12s, border-color 0.12s, transform 0.12s; animation: ai-in 0.28s ease-out both; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-btn:hover { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip-btn:active { transform: scale(0.97); }
.ai-chat .photos-list { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); max-height: 170px; overflow-y: auto; }
@media (max-width: 900px) {
  .ai-chat { height: calc(100vh - 120px); border-radius: 14px; }
  .ai-chat .ai-log { max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-chat, .chip-btn { transition: none; animation: none; }
}

.btn.is-on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* The questions of the AI builder use the whole screen */
.ai-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 16px; overflow-y: auto; }
.ai-stage > .card { width: 100%; max-width: 460px; }
.ai-stage .ai-chat { width: 100%; height: 100%; max-height: 860px; min-height: 0; margin: 0; }
.ai-panel .ai-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ai-panel .ai-chips::-webkit-scrollbar { display: none; }
.ai-panel .chip-btn { flex: none; padding: 6px 12px; font-size: 12.5px; text-decoration: none; }
@media (max-width: 900px) {
  .ai-stage { padding: 0; }
  .ai-stage .ai-chat { height: 100vh; max-height: none; border-radius: 0; border: 0; }
}
.ai-compose textarea { overflow-y: auto; max-height: 220px; }
.ed-canvas { position: relative; }
.ai-pick { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 650; white-space: nowrap; }
