/* Run My Site portal: TC Digital Solutions brand */
:root {
  --ink: #16151D; --muted: #5E6475; --line: #E4E6EC; --bg: #F4F5F8; --white: #FFF;
  --dark: #121119; --dark-2: #1C1B26; --dark-3: #2A2937; --primary: #1F63C6; --primary-dark: #164E9F; --tint: #EBF2FD;
  --accent: #2D98C2; --ok: #157F4C; --ok-bg: #E6F5ED; --warn: #8F5600; --warn-bg: #FFF3D9; --err: #B42318; --err-bg: #FEF3F2;
  --magenta: #C9218E; --purple: #7E62AC; --teal: #2D98C2; --sage: #78A779; --gold: #C38C3C;
  --r: 10px; --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gradient: linear-gradient(90deg, #C9218E, #7E62AC 28%, #2D98C2 52%, #78A779 76%, #C38C3C);
  --shadow-sm: 0 1px 2px rgba(18,17,25,.05), 0 1px 1px rgba(18,17,25,.03);
  --shadow: 0 1px 2px rgba(18,17,25,.05), 0 10px 30px -18px rgba(18,17,25,.28);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-stretch: 108%; letter-spacing: -.012em; }
h1 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); font-weight: 780; }
h2 { font-size: 1.05rem; font-weight: 720; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
.boot { padding: 2rem; color: var(--muted); }
.err-text { color: var(--err); font-weight: 600; margin: .5rem 0; } .err-text:empty { display: none; }
.empty { color: var(--muted); padding: 2rem; text-align: center; background: var(--white); border: 1px dashed var(--line); border-radius: var(--r); }
.pad { padding: 0 1.25rem; }
.pi { display: inline-grid; place-items: center; flex: none; }
.pi svg { width: 19px; height: 19px; display: block; }
.pi-s svg { width: 15px; height: 15px; }
.pi-lg svg { width: 24px; height: 24px; }
.pi-xl svg { width: 40px; height: 40px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 40px; padding: .5rem 1rem; font: inherit; font-weight: 650; color: #fff; background: var(--primary); border: 1.5px solid var(--primary); border-radius: var(--r); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn.ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg); }
.btn.danger { background: var(--err); border-color: var(--err); }
.btn:disabled, .btn-s:disabled, .icon-btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-s { display: inline-flex; align-items: center; min-height: 32px; padding: .3rem .7rem; font: inherit; font-size: .88rem; font-weight: 600; color: var(--primary); background: var(--tint); border: 1px solid transparent; border-radius: 6px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-s.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-s.danger, .btn-s.ghost.danger { color: var(--err); }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; font: inherit; font-size: .95rem; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 6px; cursor: pointer; }
.icon-btn:hover:not(:disabled) { background: var(--bg); border-color: var(--line); color: var(--ink); }
.icon-btn.danger:hover:not(:disabled) { color: var(--err); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; cursor: pointer; }
.row-btns { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }

/* pills & state */
.pill { display: inline-flex; align-items: center; font-size: .78rem; font-weight: 650; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; }
.pill.live { color: var(--ok); background: var(--ok-bg); }
.pill.changes { color: var(--warn); background: var(--warn-bg); }
.pill.never { color: var(--muted); background: var(--bg); border: 1px solid var(--line); }
.save-state { font-size: .84rem; color: var(--muted); }
.save-state.error { color: var(--err); font-weight: 600; }

/* auth */
.auth { min-height: 100%; display: grid; place-items: center; padding: 2rem 1rem; background: var(--dark); position: relative; }
.auth::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--gradient); }
.auth-card { width: min(420px, 100%); background: var(--white); border-radius: 14px; padding: 2rem; box-shadow: 0 20px 60px -20px rgba(0,0,0,.5); }
.auth-brand { text-align: center; margin-bottom: 1.5rem; }
.auth-brand img { border-radius: 50%; }
.auth-brand h1 { margin-top: .6rem; }
.auth-card .btn-block { margin: .75rem 0 1rem; min-height: 46px; }

/* shell */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100%; }
.side { background: var(--dark); color: #C9CAD6; display: flex; flex-direction: column; gap: 1.1rem; padding: 1.2rem .85rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40; }
.side::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gradient); }
.side-brand { display: flex; align-items: center; gap: .7rem; padding: .25rem .45rem; text-decoration: none; }
.side-brand img { border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.08); }
.side-brand strong { display: block; color: #fff; font-size: 1.1rem; font-stretch: 112%; letter-spacing: -.01em; }
.side-brand small { color: #9A9BAD; font-size: .76rem; }
.side-site { background: var(--dark-2); border: 1px solid var(--dark-3); border-radius: 12px; padding: .7rem; display: flex; flex-direction: column; gap: .55rem; }
.side-site-top { display: flex; gap: .6rem; align-items: center; min-width: 0; }
.site-logo { width: 38px; height: 38px; border-radius: 9px; object-fit: contain; background: #fff; flex: none; }
.site-logo.blank { display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 750; font-size: .85rem; }
.side-site-text { min-width: 0; flex: 1; }
.side-label { display: block; font-size: .72rem; color: #8E8FA3; text-transform: none; letter-spacing: .01em; }
.site-name { color: #fff; font-weight: 650; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-sel { width: 100%; font: inherit; font-weight: 650; color: #fff; background: var(--dark-3); border: 1px solid #3A3949; border-radius: 7px; padding: .3rem .4rem; min-height: 0; }
.side-live { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: #BFD9EA; text-decoration: none; min-width: 0; }
.side-live span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 0 3px rgba(61,214,140,.18); flex: none; }
.side-live:hover { color: #fff; }
.side-nav { display: flex; flex-direction: column; gap: .9rem; }
.nav-group { display: flex; flex-direction: column; gap: .1rem; }
.nav-label { font-size: .72rem; font-weight: 650; color: #7F8094; padding: 0 .7rem .25rem; letter-spacing: .02em; }
.side-nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 9px; color: #D6D7E2; text-decoration: none; font-weight: 560; position: relative; }
.side-nav a:hover { background: var(--dark-2); color: #fff; }
.side-nav a.active { background: rgba(255,255,255,.09); color: #fff; }
.side-nav a.active::before { content: ""; position: absolute; left: -.85rem; top: .45rem; bottom: .45rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--gradient); }
.side-nav a.active .pi { color: #7FC6E4; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: .6rem; padding: .75rem .35rem 0; border-top: 1px solid var(--dark-3); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 750; color: #fff; background: linear-gradient(135deg, var(--purple), var(--teal)); flex: none; }
.who { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: .82rem; }
.who > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #E4E5EE; }
.who small { color: #8E8FA3; }
.icon-btn.light { color: #B9BACB; }
.icon-btn.light:hover { background: var(--dark-3); border-color: transparent; color: #fff; }
.main { min-width: 0; outline: none; }
.topbar { display: none; }
.scrim { display: none; }

/* list views */
.view { max-width: 1180px; padding: 2rem clamp(1rem, 3vw, 2.5rem) 4rem; }
.view-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.view-head p { margin: .35rem 0 0; }
.card-list { display: flex; flex-direction: column; gap: .5rem; }
.row-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 1rem; padding: .95rem 1.15rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s; }
a.row-card:hover { border-color: #C3CBD8; box-shadow: var(--shadow); transform: translateY(-1px); }
.row-main { display: flex; flex-direction: column; min-width: 0; }
.row-main strong { overflow-wrap: anywhere; }
.row-card.static { grid-template-columns: minmax(0, 1fr) auto auto; }
.site-row { grid-template-columns: minmax(160px, .8fr) minmax(0, 1.4fr) auto auto !important; }
.site-domains { display: flex; flex-direction: column; gap: .2rem; }
.storage-edit { display: inline-flex; align-items: center; gap: .35rem; }
.storage-edit input { width: 6.5rem; min-height: 32px; padding: .25rem .4rem; border: 1.5px solid #C9CFD8; border-radius: 6px; font: inherit; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; padding: 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 1.25rem; box-shadow: var(--shadow-sm); }
.inline-form .fld { flex: 1 1 200px; margin: 0; }
@media (max-width: 760px) { .row-card, .row-card.static, .site-row { grid-template-columns: 1fr !important; gap: .5rem; } }

/* dashboard & analytics */
.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hello p { margin: .35rem 0 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .9rem; margin-bottom: 1.1rem; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .2rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gradient); background-size: 100% 500%; }
.kpi:nth-child(2)::after { background: var(--purple); } .kpi:nth-child(3)::after { background: var(--teal); } .kpi:nth-child(4)::after { background: var(--sage); } .kpi:nth-child(5)::after { background: var(--gold); } .kpi:nth-child(1)::after { background: var(--magenta); }
.kpi-label { font-size: .84rem; color: var(--muted); font-weight: 600; }
.kpi-value { font-size: 1.85rem; font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.delta { font-size: .8rem; font-weight: 600; }
.delta.up { color: var(--ok); } .delta.down { color: var(--err); } .delta.flat { color: var(--muted); font-weight: 500; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem 1.2rem; box-shadow: var(--shadow-sm); margin-bottom: 1.1rem; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .9rem; }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty-state h2 { color: var(--ink); margin: .5rem 0 .25rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.grid-2 .panel { margin-bottom: 0; }
.grid-2 + .panel { margin-top: 1.1rem; }
.grid-dash { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 1.1rem; align-items: start; }
@media (max-width: 980px) { .grid-2, .grid-dash { grid-template-columns: 1fr; } }
.chart { color: var(--primary); width: 100%; }
.chart svg { width: 100%; height: 220px; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .ln { fill: none; stroke: currentColor; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart circle { fill: #fff; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart text { font: 11px var(--font); fill: var(--muted); }
.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem .75rem; font-size: .92rem; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.bar { grid-column: 1 / -1; height: 7px; border-radius: 99px; background: var(--bg); position: relative; overflow: hidden; }
.bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--primary)); }
.devices .stack { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 2px; background: var(--bg); }
.st-mobile { background: var(--primary); } .st-tablet { background: var(--purple); } .st-desktop { background: var(--sage); }
.legend { list-style: none; padding: 0; margin: .8rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .9rem; }
.legend li { display: flex; align-items: center; gap: .45rem; }
.legend .sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.seg-group { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg-group .seg { border: 0; border-radius: 7px; }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .6rem; }
.action { display: flex; gap: .75rem; align-items: center; padding: .85rem .9rem; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s, transform .15s; }
.action:hover { border-color: #B9C6DA; background: #FAFBFD; transform: translateY(-1px); }
.action .pi { width: 42px; height: 42px; border-radius: 11px; background: var(--tint); color: var(--primary); }
.action:nth-child(2) .pi { background: #F3EEFA; color: var(--purple); } .action:nth-child(3) .pi { background: #E9F5FA; color: #1F7FA4; } .action:nth-child(4) .pi { background: #EEF6EE; color: #4F7F50; }
.action span { display: flex; flex-direction: column; }
.action small { color: var(--muted); font-size: .82rem; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.checklist li { display: flex; align-items: center; gap: .6rem; font-size: .93rem; }
.checklist li.ok { color: var(--muted); }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C9CFD8; display: grid; place-items: center; flex: none; }
.ok .tick { border-color: var(--ok); background: var(--ok); color: #fff; }
.tick .pi svg { width: 13px; height: 13px; stroke-width: 3; }
.check-progress { flex-direction: column; align-items: stretch !important; gap: .3rem !important; margin-bottom: .3rem; }
.meter { display: block; height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--sage)); }
.storage { display: flex; flex-direction: column; gap: .6rem; }
.storage-top { display: flex; gap: .7rem; align-items: center; }
.storage-top > div { display: flex; flex-direction: column; }
.storage-top .pi { color: var(--primary); }
.storage.high .meter span { background: linear-gradient(90deg, var(--gold), #D9822B); }
.storage.full .meter span { background: var(--err); }
.storage .btn-s { align-self: flex-start; }
.storage p { margin: 0; }
.view > .panel:first-of-type + .drop { margin-top: 0; }

/* fields */
.fld { margin-bottom: 1rem; min-width: 0; }
.lbl-row { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .3rem; }
.fld label, .lbl { font-weight: 620; font-size: .9rem; }
.count { font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.count.near { color: var(--warn); font-weight: 600; }
.help { font-size: .82rem; color: var(--muted); margin: .3rem 0 0; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], input[type=tel], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid #C9CFD8; border-radius: 6px; padding: .5rem .65rem; min-height: 40px;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,102,201,.18); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.icon-row { display: flex; gap: .5rem; align-items: center; }
.icon-prev { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--tint); color: var(--primary); border-radius: 6px; }
.icon-prev svg { width: 22px; height: 22px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 600; font-size: .9rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 38px; height: 22px; border-radius: 999px; background: #C9CFD8; position: relative; flex: none; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 3px solid var(--accent); outline-offset: 2px; }
.img-field { display: flex; gap: .75rem; align-items: center; padding: .5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.img-field img, .img-empty { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; flex: none; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.img-empty { display: grid; place-items: center; font-size: .78rem; color: var(--muted); background: var(--bg); }
.img-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.strings { display: flex; flex-direction: column; gap: .35rem; }
.str-row { display: flex; gap: .25rem; align-items: center; }
.add { margin-top: .4rem; }
.items { display: flex; flex-direction: column; gap: .4rem; }
.item { border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.item.open { border-color: #B8C3D3; }
.item-bar { display: flex; align-items: center; gap: .1rem; padding: .2rem .3rem; }
.item-head { flex: 1; min-width: 0; display: flex; align-items: center; gap: .4rem; background: none; border: 0; padding: .4rem; font: inherit; font-weight: 600; text-align: left; cursor: pointer; color: var(--ink); }
.item-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-body { padding: .5rem .9rem .3rem; border-top: 1px solid var(--line); background: #FAFBFC; border-radius: 0 0 8px 8px; }
.chev { width: 1em; color: var(--muted); }

/* editor */
.editor { display: flex; flex-direction: column; height: 100vh; }
.editor-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .75rem 1.25rem; background: var(--white); border-bottom: 1px solid var(--line); }
.eb-left, .eb-right { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; min-width: 0; }
.eb-left h1 { font-size: 1.15rem; overflow-wrap: anywhere; }
.back { text-decoration: none; font-weight: 600; font-size: .9rem; }
.editor-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(360px, 460px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.editor-cols > .editor-left, .editor-cols > .preview { min-height: 0; }
.editor-left { overflow-y: auto; background: var(--bg); border-right: 1px solid var(--line); padding-bottom: 3rem; }
.tabs { display: flex; gap: .25rem; padding: .75rem 1.25rem 0; position: sticky; top: 0; background: var(--bg); z-index: 2; border-bottom: 1px solid var(--line); }
.tabs button { font: inherit; font-weight: 650; padding: .55rem .9rem; background: none; border: 0; border-bottom: 2.5px solid transparent; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--primary); }
.pane { padding: 1rem 1.25rem; }
.sections { display: flex; flex-direction: column; gap: .5rem; }
.sec { background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.sec.open { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,102,201,.12); }
.sec.is-hidden .sec-titles { opacity: .5; }
.sec.is-hidden .sec-type::after { content: " · hidden"; font-weight: 500; }
.sec-head { display: flex; align-items: center; gap: .1rem; padding: .3rem .4rem; }
.sec-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: .5rem; padding: .45rem; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.sec-titles { display: flex; flex-direction: column; min-width: 0; }
.sec-type { font-weight: 700; font-size: .92rem; }
.sec-sum { font-size: .84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec-body { padding: .75rem 1rem .5rem; border-top: 1px solid var(--line); }
.sec-admin { border-top: 1px dashed var(--line); padding-top: .75rem; margin-top: .5rem; }
.add-section { margin-top: .5rem; padding: .9rem; font: inherit; font-weight: 650; color: var(--primary); background: transparent; border: 1.5px dashed #B8C3D3; border-radius: 10px; cursor: pointer; }
.add-section:hover { background: var(--white); border-color: var(--primary); }
.sub { font-size: .95rem; margin-bottom: .5rem; }
.serp { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 1.25rem; font-family: Arial, sans-serif; }
.serp-url { font-size: .8rem; color: #4D5156; }
.serp-title { font-size: 1.15rem; color: #1A0DAB; line-height: 1.3; }
.serp-desc { font-size: .86rem; color: #4D5156; }
.admin-only { border-top: 1px dashed var(--line); padding-top: 1rem; margin-top: 1.5rem; }
.groups { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.25rem; }
.group { background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.group summary { padding: .85rem 1rem; font-weight: 700; cursor: pointer; }
.group-body { padding: .25rem 1rem .5rem; border-top: 1px solid var(--line); }

/* preview */
.preview { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #E9ECF1; }
.editor-cols > * { min-width: 0; }
.preview-bar { display: flex; align-items: center; gap: .3rem; padding: .5rem .9rem; border-bottom: 1px solid var(--line); background: var(--white); }
.preview-bar .muted { margin-right: .4rem; }
.seg { font: inherit; font-size: .85rem; font-weight: 600; padding: .3rem .7rem; border: 1px solid var(--line); background: var(--white); border-radius: 6px; cursor: pointer; color: var(--muted); }
.seg.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.preview-holder { flex: 1; min-height: 0; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding: 1rem; }
.preview-frame { flex: none; border: 0; background: #fff; border-radius: 8px; box-shadow: 0 6px 30px -10px rgba(20,30,50,.3); }


/* media */
.drop { padding: 2rem; text-align: center; background: var(--white); border: 2px dashed #B8C3D3; border-radius: 12px; margin-bottom: 1.25rem; }
.drop.over { border-color: var(--primary); background: var(--tint); }
.drop.busy { opacity: .6; pointer-events: none; }
.drop p { margin: .2rem 0; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.media-tile { display: flex; flex-direction: column; gap: .3rem; padding: .4rem; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .8rem; color: var(--muted); text-align: left; cursor: pointer; }
.media-tile.static { cursor: default; }
button.media-tile:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,102,201,.15); }
.media-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; background: var(--bg); }
.media-tile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-tile figcaption { display: flex; align-items: center; justify-content: space-between; gap: .25rem; min-width: 0; }
.picker-bar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.picker { max-height: 60vh; overflow: auto; }

/* modal & toasts */
.modal { width: min(520px, calc(100vw - 2rem)); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
.modal.wide { width: min(860px, calc(100vw - 2rem)); }
.modal::backdrop { background: rgba(18,17,25,.55); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 1.15rem; }
.modal-body { padding: 1.25rem; max-height: 70vh; overflow: auto; }
.modal-body p:first-child { margin-top: 0; }
.modal-foot { display: flex; justify-content: flex-end; gap: .5rem; padding: .9rem 1.25rem; border-top: 1px solid var(--line); background: var(--bg); border-radius: 0 0 14px 14px; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; }
.type-tile { display: flex; flex-direction: column; gap: .25rem; padding: .9rem; text-align: left; font: inherit; background: var(--white); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.type-tile:hover { border-color: var(--primary); background: var(--tint); }
.type-tile span { font-size: .84rem; color: var(--muted); }
.problems { padding-left: 1.2rem; color: var(--warn); }
.versions { list-style: none; padding: 0; margin: 0; }
.versions li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 20px); opacity: 0; z-index: 1000; max-width: min(520px, calc(100vw - 2rem)); padding: .8rem 1.1rem; border-radius: 10px; font-weight: 600; color: #fff; background: var(--dark); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); transition: opacity .2s, transform .2s; }
.toast.err { background: var(--err); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* small screens: slide-out menu, editor stacks with preview below */
@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(290px, 86vw); transform: translateX(-102%); transition: transform .22s ease; box-shadow: 20px 0 50px -20px rgba(0,0,0,.5); }
  .nav-open .side { transform: none; }
  .nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(18,17,25,.45); z-index: 30; }
  .topbar { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; background: var(--dark); color: #fff; position: sticky; top: 0; z-index: 20; }
  .topbar .icon-btn { color: #fff; width: 38px; height: 38px; }
  .topbar img { border-radius: 50%; }
  .editor { height: auto; }
  .editor-cols { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .editor-left { overflow: visible; border-right: 0; }
  .preview-holder { height: 75vh; flex: none; }
}
@media (prefers-reduced-motion: reduce) { .toast, .switch .track, .switch .track::after, .side, .row-card, .action { transition: none; } }

/* ---------- Look & colours ---------- */
.theme-pick { margin: .75rem 0 1rem; }
.theme-pick .strong { font-weight: 650; margin: 0 0 .5rem; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin-bottom: .5rem; }
.theme-card { display: grid; gap: .35rem; text-align: left; padding: .6rem; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font: inherit; color: inherit; min-width: 0; }
.theme-card:hover { border-color: #9AA6B6; }
.theme-card[aria-pressed="true"] { border-color: var(--blue, #1B66C9); box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue, #1B66C9) 25%, transparent); }
.tc-swatches { display: flex; height: 30px; border-radius: 6px; overflow: hidden; }
.tc-swatches span { flex: 1; }
.tc-swatches span:first-child { flex: 1.6; }
.tc-name { font-weight: 700; font-size: 1rem; line-height: 1.2; }
.tc-meta { line-height: 1.3; }
.color-row { display: flex; gap: .5rem; align-items: center; }
.color-row .swatch-pick { width: 46px; height: 40px; padding: 2px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; flex: none; }
.color-row .hex { width: 8.5rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.color-row .hex.bad { border-color: #B42318; background: #FEF3F2; }
.theme-note { margin: 0 0 .9rem; padding: .6rem .8rem; border-radius: 8px; background: #FFF8E6; border: 1px solid #F3D48A; color: #6B4A00; font-size: .9rem; }
.theme-note[hidden] { display: none; }

/* ---------- refreshed components ---------- */
.btn { border-radius: 9px; }
.editor-bar { box-shadow: var(--shadow-sm); position: relative; z-index: 3; }
.editor-left .intro { padding-top: 1rem; margin: 0; }
.group { border-radius: 12px; box-shadow: var(--shadow-sm); }
.group summary { font-size: 1rem; }
.sec { border-radius: 12px; box-shadow: var(--shadow-sm); transition: box-shadow .15s, border-color .15s, opacity .15s; }
.sec-head { gap: .15rem; }
.drag-handle { display: grid; place-items: center; width: 28px; height: 34px; flex: none; color: #9AA1B0; background: none; border: 0; border-radius: 6px; cursor: grab; }
.drag-handle:hover { background: var(--bg); color: var(--ink); }
.drag-handle:active { cursor: grabbing; }
.sec.dragging { opacity: .45; }
.sec.drop-before { box-shadow: 0 -3px 0 0 var(--primary), var(--shadow-sm); }
.sec.drop-after { box-shadow: 0 3px 0 0 var(--primary), var(--shadow-sm); }
.sec-empty { padding: 2rem 1rem; text-align: center; color: var(--muted); border: 2px dashed #C3CBD8; border-radius: 12px; background: var(--white); }
.dnd-help { margin: 0 0 .75rem; }
.icon-btn .pi svg { width: 17px; height: 17px; }
.palette { margin-top: 1.25rem; padding: 1rem; background: var(--white); border: 1px dashed #B8C3D3; border-radius: 12px; }
.palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .45rem; }
.pal-tile { display: flex; align-items: center; gap: .45rem; padding: .6rem .7rem; font: inherit; font-size: .9rem; font-weight: 600; text-align: left; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; cursor: grab; }
.pal-tile:hover { border-color: var(--primary); background: var(--tint); color: var(--primary-dark); }
.pal-tile .pi { color: var(--primary); }
.sec-admin .btn-s { gap: .35rem; }
.auth { background: radial-gradient(60% 80% at 80% 10%, rgba(126,98,172,.35), transparent 60%), radial-gradient(50% 70% at 10% 90%, rgba(45,152,194,.28), transparent 60%), var(--dark); }
.auth-card { border-radius: 18px; }
.auth-brand h1 { font-size: 1.55rem; }
.auth-foot { text-align: center; color: #8E8FA3; font-size: .8rem; margin-top: 1rem; }
.date-row { display: flex; gap: .5rem; align-items: center; }
.date-row input { max-width: 13rem; min-height: 40px; font: inherit; border: 1.5px solid #C9CFD8; border-radius: 6px; padding: .4rem .6rem; }

/* ---------- Help me write ---------- */
.lbl-row .count { margin-left: auto; }
.ai-btn { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid #D9D3EA; background: #F6F3FC; color: #5B3F99; border-radius: 999px; padding: .12rem .55rem; font: 600 .76rem/1.4 var(--font); cursor: pointer; white-space: nowrap; }
.ai-btn:hover { background: #EDE7F9; border-color: #BFB2E0; }
.ai-box .seg-group.wrap { display: flex; flex-wrap: wrap; margin: .6rem 0 .8rem; }
.ai-out { width: 100%; font: inherit; border: 1.5px solid #C9CFD8; border-radius: 8px; padding: .65rem .75rem; min-height: 8rem; resize: vertical; }
.ai-out:disabled { background: var(--bg); color: var(--muted); }

/* ---------- Status ---------- */
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #B9BFCB; vertical-align: middle; flex: none; }
.status-dot.up { background: #1F9D55; box-shadow: 0 0 0 3px rgba(31,157,85,.16); }
.status-dot.down { background: var(--err); box-shadow: 0 0 0 3px rgba(180,35,24,.16); }
.health-top { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.health-top .muted { margin-left: auto; }
.health-stats { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.health-stats li { background: var(--bg); border-radius: 10px; padding: .6rem .75rem; display: flex; flex-direction: column; }
.health-stats strong { font-size: 1.15rem; }
.health-stats small { color: var(--muted); }

/* ---------- Monthly report ---------- */
.report-row { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.report-row > .pi { color: var(--primary); }
.rr-text { flex: 1 1 260px; display: flex; flex-direction: column; gap: .2rem; }

/* ---------- Notes with an action ---------- */
.note-action { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }

/* ---------- SEO ---------- */
.steps-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .55rem; font-size: .93rem; }
.town-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .25rem 1rem; align-items: start; margin-top: .75rem; }
.town-form textarea, .town-form input, .town-form select { width: 100%; }
.town-form .btn { justify-self: start; grid-column: 1 / -1; }
.panel .card-list { margin: 0; }

/* ---------- Domain ---------- */
.dns-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.dns-list li { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem 0; border-top: 1px solid var(--line); }
.dns-list li:first-child { border-top: 0; }
.dns-list li > div { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.dns-list .bad .tick { border-color: var(--err); background: var(--err-bg); color: var(--err); }
.dns-list .fix { margin: .35rem 0 0; padding: .55rem .7rem; background: var(--warn-bg); border-radius: 8px; font-size: .88rem; overflow-wrap: anywhere; }

/* ---------- Plans ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.plan-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; box-shadow: var(--shadow-sm); }
.plan-card.current { border-color: var(--primary); box-shadow: 0 0 0 2px var(--tint), var(--shadow-sm); }
.plan-card h3 { font-size: 1.15rem; }
.plan-price { margin: 0; font-size: 1.35rem; font-weight: 780; }
.plan-flag { position: absolute; top: 1rem; right: 1rem; }
.plan-feats { list-style: none; margin: 0 0 .4rem; padding: 0; display: grid; gap: .4rem; flex: 1; font-size: .92rem; }
.plan-feats li { display: flex; gap: .45rem; align-items: flex-start; }
.plan-feats .pi { color: var(--ok); margin-top: .15rem; }
.plan-card .btn { align-self: flex-start; }
.admin-panel h3 { margin: 1.1rem 0 .5rem; }
.pa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem 1rem; align-items: start; }
.pa-fld { display: flex; flex-direction: column; gap: .25rem; }
.pa-fld input, .pa-fld textarea { font: inherit; border: 1.5px solid #C9CFD8; border-radius: 6px; padding: .45rem .6rem; }
.pa-grid .btn-s { justify-self: start; }
.events { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.events li { display: grid; grid-template-columns: 11rem 1fr auto; gap: .75rem; padding: .45rem 0; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .events li { grid-template-columns: 1fr; gap: .1rem; } }

/* ---------- Backup ---------- */
.backup-panel { display: flex; gap: 1.25rem; align-items: flex-start; }
.backup-panel > .pi { color: var(--primary); }
.plain-list { margin: .6rem 0 1rem; padding-left: 1.1rem; display: grid; gap: .25rem; }
@media (max-width: 640px) { .backup-panel { flex-direction: column; } }

/* ================= Public sign-up ================= */
.pub { min-height: 100%; display: flex; flex-direction: column; background:
  radial-gradient(50% 40% at 85% 0%, rgba(126,98,172,.14), transparent 70%),
  radial-gradient(45% 35% at 0% 30%, rgba(45,152,194,.12), transparent 70%), var(--bg); }
.pub::before { content: ""; height: 4px; background: var(--gradient); }
.pub-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem clamp(1rem, 4vw, 2.5rem); }
.pub-brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; }
.pub-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.pub-brand small { color: var(--muted); font-size: .78rem; }
.pub-link { font-weight: 650; text-decoration: none; }
.pub-main { flex: 1; width: min(1080px, 100%); margin: 0 auto; padding: 1rem clamp(1rem, 4vw, 2rem) 3rem; }
.pub-foot { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: center; padding: 1.25rem; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
.pub-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.lede { font-size: 1.08rem; color: var(--muted); margin: .5rem 0 1.25rem; max-width: 60ch; }
.su { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem 2rem; align-items: start; }
.su-intro { grid-column: 1 / -1; }
.su-intro h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.offer-grid { display: grid; gap: 1rem; }
.offer { display: grid; gap: .45rem; text-align: left; font: inherit; color: inherit; background: var(--white); border: 1.5px solid var(--line); border-radius: 16px; padding: 1.2rem 1.3rem; cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s; }
.offer:hover { border-color: #AEB7C6; transform: translateY(-1px); }
.offer.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint), var(--shadow); }
.offer-top { display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; }
.offer-top .pill { margin-left: auto; }
.radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #AEB7C6; flex: none; display: grid; place-items: center; }
.offer.on .radio-dot { border-color: var(--primary); }
.offer.on .radio-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.offer-price b { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.offer-price span { color: var(--muted); }
.offer-setup { font-size: .9rem; color: var(--muted); margin-top: -.3rem; }
.offer-tag { font-size: .95rem; }
.offer ul { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .3rem; font-size: .9rem; }
.offer li { display: flex; gap: .45rem; } .offer li .pi { color: var(--ok); margin-top: .12rem; }
.su-form { position: sticky; top: 1rem; }
.su-form h2 { margin-bottom: 1rem; font-size: 1.2rem; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .9rem; }
.su-form input[type=text], .su-form input[type=email], .su-form input[type=tel], .su-form select,
.wz input, .wz textarea, .copy-row input { width: 100%; min-height: 44px; font: inherit; border: 1.5px solid #C9CFD8; border-radius: 9px; padding: .5rem .75rem; background: #fff; }
.wz textarea { min-height: 0; }
fieldset.fld { border: 0; padding: 0; margin: 0 0 1rem; }
fieldset.fld legend { font-weight: 620; font-size: .9rem; margin-bottom: .4rem; }
.choice-row { display: flex; gap: .5rem; margin-bottom: .6rem; flex-wrap: wrap; }
.choice { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--tint); }
.pay-sum { background: var(--bg); border-radius: 12px; padding: .9rem 1rem; margin: .5rem 0 1rem; }
.ps-row { display: flex; justify-content: space-between; padding: .2rem 0; }
.ps-row.total { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .5rem; font-size: 1.1rem; }
.pay-sum p { margin: .4rem 0 0; }
.agree { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; margin-bottom: .75rem; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin-top: .1rem; flex: none; }
.btn-lg { min-height: 50px; padding: .7rem 1.4rem; font-size: 1.02rem; }
.su-form .btn-lg { width: 100%; }
.secure { display: flex; gap: .4rem; align-items: center; justify-content: center; margin: .75rem 0 0; }
.welcome { max-width: 620px; margin: 2rem auto; text-align: center; }
.big-tick { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); margin-bottom: 1rem; }
.big-tick svg { width: 32px; height: 32px; stroke-width: 2.6; }
.next-steps { text-align: left; display: grid; gap: .8rem; margin: 1.5rem auto; max-width: 440px; padding-left: 1.3rem; }
.next-steps li span { display: block; color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .su { grid-template-columns: 1fr; } .su-form { position: static; } }
@media (max-width: 520px) { .fld-row { grid-template-columns: 1fr; } .offer-top .pill { display: none; } }

/* ================= Onboarding wizard ================= */
.wz { display: grid; grid-template-columns: minmax(340px, 520px) 1fr; min-height: 100%; background: var(--bg); }
.wz-left { background: var(--white); border-right: 1px solid var(--line); padding: 1.5rem clamp(1.25rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 1.25rem; position: relative; }
.wz-left::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--gradient); }
.wz-brand { display: flex; align-items: center; gap: .55rem; }
.wz-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: .35rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.wz-steps li { display: flex; align-items: center; gap: .35rem; padding: .25rem .55rem .25rem .3rem; border-radius: 999px; background: var(--bg); }
.wz-steps li.on { background: var(--tint); color: var(--primary-dark); font-weight: 650; }
.wz-steps li.done { color: var(--ok); }
.wz-n { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid currentColor; font-weight: 700; font-size: .72rem; }
.wz-n .pi svg { width: 12px; height: 12px; stroke-width: 3; }
.wz-body { flex: 1; }
.wz-body h2 { font-size: 1.55rem; font-weight: 780; margin-bottom: .35rem; }
.wz-body > .muted { margin: 0 0 1.25rem; }
.wz-nav { display: flex; justify-content: space-between; gap: .75rem; border-top: 1px solid var(--line); padding-top: 1rem; position: sticky; bottom: 0; background: var(--white); padding-bottom: .5rem; }
.wz-nav .btn-lg { margin-left: auto; }
.wz-right { padding: 1rem; display: flex; flex-direction: column; min-height: 100vh; position: sticky; top: 0; height: 100vh; }
.wz-right .preview { flex: 1; min-height: 0; }
.wz-live { margin: 0 0 .5rem; color: var(--muted); }
.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; margin-top: .4rem; }
.ind { font: inherit; font-weight: 600; text-align: left; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; color: var(--ink); }
.ind.on { border-color: var(--primary); background: var(--tint); }
.wz-themes { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.build-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .45rem; }
.build-list li { display: flex; gap: .6rem; align-items: center; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px; }
.build-list .muted { margin-left: auto; }
@media (max-width: 900px) { .wz { grid-template-columns: 1fr; } .wz-right { display: none; } }

/* ================= Launch, help, admin ================= */
.side-live .dot.preview { background: #F5B731; box-shadow: 0 0 0 3px rgba(245,183,49,.2); }
.launch { border-color: #C9DAF6; background: linear-gradient(180deg, #F5F9FF, #fff 60%); }
.launch-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.launch-head p { margin: .3rem 0 0; max-width: 62ch; }
.launch-steps { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.launch-steps li { display: flex; align-items: center; gap: .75rem; padding: .65rem .8rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.launch-steps li > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.launch-steps .tick { font-weight: 700; font-size: .78rem; color: var(--muted); }
.launch-steps li.ok { opacity: .75; }
.attention { border-color: #F2D8A6; background: var(--warn-bg); }
.attention h2 { margin-bottom: .4rem; }
.copy-row { display: flex; gap: .5rem; align-items: center; }
.copy-row input { flex: 1; min-height: 40px; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-size: .8rem; color: var(--muted); font-weight: 650; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
.tbl td { padding: .65rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.group summary .pill { margin-left: .4rem; vertical-align: middle; }
.launch-steps li.ok .tick { color: #fff; }
.wz { overflow-x: hidden; }
.wz-right { min-width: 0; overflow: hidden; }
[hidden] { display: none !important; }

/* ================= Back, team, reviews, history, policies, help ================= */
.back-btn { display: inline-flex; align-items: center; gap: .3rem; margin: 1rem 0 0 clamp(1rem, 3vw, 2rem); padding: .35rem .7rem .35rem .45rem; border: 1px solid var(--line); background: var(--white); border-radius: 999px; font: 600 .86rem/1 var(--font); color: var(--ink); cursor: pointer; }
.back-btn:hover { border-color: #AEB7C6; }
.back-btn + .view { padding-top: .75rem; }
.avatar.sm { width: 34px; height: 34px; font-size: .78rem; flex: none; }
.team-row select { min-height: 38px; border: 1.5px solid #C9CFD8; border-radius: 8px; padding: .3rem .5rem; font: inherit; }
.role-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .5rem; margin-top: .35rem; }
.role-opt { display: flex; gap: .55rem; align-items: flex-start; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; }
.role-opt:has(input:checked) { border-color: var(--primary); background: var(--tint); }
.role-opt input { margin-top: .2rem; }
.role-opt span { display: flex; flex-direction: column; gap: .15rem; }
.invite input[type=email] { width: 100%; min-height: 42px; font: inherit; border: 1.5px solid #C9CFD8; border-radius: 9px; padding: .45rem .7rem; }
.review .rv-note { font-size: .9rem; margin-top: .25rem; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; min-height: 60vh; }
.compare > div { display: flex; flex-direction: column; min-height: 60vh; }
.compare .preview { flex: 1; }
@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } }
.timeline .tl-day + .tl-day { margin-top: 1.1rem; }
.timeline ul { list-style: none; margin: .4rem 0 0; padding: 0; }
.timeline li { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.timeline li > div { flex: 1; display: flex; flex-direction: column; }
.timeline li > .pi { color: var(--muted); }
.policy-card p { margin: .2rem 0 .8rem; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem; margin-top: 1rem; }
.tpl { display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem; border: 1.5px dashed #B9C2CF; border-radius: 10px; background: #fff; font: 600 .92rem/1.2 var(--font); color: var(--ink); cursor: pointer; text-align: left; }
.tpl:hover { border-color: var(--primary); color: var(--primary); }
.help-search { display: flex; align-items: center; gap: .5rem; background: var(--white); border: 1.5px solid #C9CFD8; border-radius: 12px; padding: .2rem .8rem; margin-bottom: 1rem; max-width: 520px; }
.help-search input { border: 0; outline: 0; font: inherit; flex: 1; min-height: 42px; background: transparent; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; }
.guide-card { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; }
.guide-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.guide-card .pi { color: var(--primary); }
.guide { max-width: 860px; }
.guide h1 { margin: .5rem 0 1rem; }
.guide-shot { margin: 0 0 1.25rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.guide-shot img { display: block; width: 100%; height: auto; }
.guide-steps { counter-reset: st; list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .75rem; }
.guide-steps li { counter-increment: st; position: relative; padding: .9rem 1rem .9rem 3.4rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.guide-steps li::before { content: counter(st); position: absolute; left: 1rem; top: .9rem; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--primary-dark); font-weight: 750; display: grid; place-items: center; }
.guide-steps p { margin: .2rem 0 0; color: var(--muted); }
.notes { display: grid; gap: .5rem; margin-top: .75rem; }
.note { position: relative; padding: .6rem 2.2rem .6rem .75rem; background: var(--bg); border-radius: 10px; }
.note p { margin: 0 0 .2rem; white-space: pre-wrap; }
.note .icon-btn { position: absolute; top: .3rem; right: .3rem; }
.modal textarea { width: 100%; font: inherit; border: 1.5px solid #C9CFD8; border-radius: 9px; padding: .55rem .7rem; margin-bottom: .5rem; }
.nudge { margin-top: .35rem; display: block; }
.dnd-help { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 0 1.25rem; margin: .75rem 0; }
.dnd-help p { margin: 0; }
.add-gallery { display: grid; gap: 1.1rem; }
.add-gallery h3 { margin-bottom: .5rem; }
.ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.ag-tile { display: flex; flex-direction: column; gap: .3rem; text-align: left; padding: .75rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); }
.ag-tile:hover, .ag-tile:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint); }
.ag-tile small { font-size: .8rem; line-height: 1.35; }
.ag-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; height: 44px; padding: 6px; border-radius: 8px; background: linear-gradient(135deg, #EEF3FB, #F6F1FB); margin-bottom: .2rem; }
.ag-mini i { border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.ag-mini[data-type="hero"], .ag-mini[data-type="page_hero"], .ag-mini[data-type="cta"] { background: linear-gradient(135deg, #121119, #2A2937); }
.ag-mini[data-type="hero"] i, .ag-mini[data-type="page_hero"] i, .ag-mini[data-type="cta"] i { background: rgba(255,255,255,.18); }
.ag-mini[data-type="rich_text"], .ag-mini[data-type="faq"], .ag-mini[data-type="rows"] { grid-template-columns: 1fr; }
.row-card.team-row { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.team-row .row-main { flex: 1 1 220px; min-width: 0; }
.team-row .btn-s { width: auto; }
.row-card.review { display: flex; align-items: flex-start; gap: .9rem; flex-wrap: wrap; }
.review .row-main { flex: 1 1 260px; }

/* Locked portal (plan ended) */
.side-nav a.nav-locked { opacity: .55; cursor: not-allowed; }
.side-nav a.nav-locked .nav-lock { margin-left: auto; opacity: .9; }
.locked-view { max-width: 720px; margin: 0 auto; }
.locked-hero { text-align: center; padding: 2.5rem 1rem 1.5rem; }
.locked-hero h1 { margin: 1rem 0 .5rem; }
.locked-hero p { max-width: 52ch; margin: 0 auto .5rem; }
.locked-badge { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--white); color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line); }
.restart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1rem 0; }
.restart-card { display: flex; min-height: 190px; flex-direction: column; align-items: center; gap: .35rem; padding: 1.5rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.restart-card:hover, .restart-card:focus-visible { border-color: var(--primary); box-shadow: var(--shadow); }
.restart-card .btn { margin-top: auto; }
.restart-card .plan-price { margin-bottom: .75rem; }
.locked-foot { text-align: center; }
.locked-foot .row-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: .5rem; }
.cancel-panel summary { cursor: pointer; font-weight: 600; }
.cancel-panel .group-body { padding-top: .75rem; }
@media (prefers-reduced-motion: reduce) { .restart-card { transition: none; } }

/* Business type picker (grouped, with a line about each layout) */
.ind-groups { display: grid; gap: .9rem; margin: .4rem 0 1rem; }
.ind-group > .lbl { font-size: .8rem; font-weight: 700; color: var(--muted); }
.ind-grid .ind { display: flex; flex-direction: column; gap: .15rem; }
.ind-grid .ind small { font-weight: 400; font-size: .78rem; color: var(--muted); line-height: 1.35; }

/* Wizard: how to start */
.start-grid { display: grid; gap: .6rem; margin: 1rem 0; }
.start-opt { display: flex; gap: .85rem; align-items: flex-start; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: .9rem 1rem; cursor: pointer; }
.start-opt:hover { border-color: #C9CEDA; }
.start-opt.on { border-color: var(--primary); background: var(--tint); }
.start-opt .pi { color: var(--primary); flex: none; margin-top: .1rem; }
.start-opt span { display: grid; gap: .15rem; }
.start-panel { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: .25rem; display: grid; gap: .75rem; justify-items: start; }
.start-panel .fld { width: 100%; }
.ai-qs { display: grid; gap: .5rem; width: 100%; }
.ai-note { display: flex; align-items: flex-start; gap: .35rem; }

/* Domain still to connect */
.domain-note { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid #F2D8A6; background: var(--warn-bg); border-radius: 10px; margin-top: .75rem; }
.domain-note .pi { color: var(--warn); flex: none; }
.domain-note p { margin: .25rem 0 0; font-size: .9rem; color: var(--ink); }
.domain-warn { display: flex; gap: .45rem; align-items: flex-start; margin: .45rem 0 0; padding: .6rem .75rem; background: var(--warn-bg); border-radius: 8px; font-size: .85rem; line-height: 1.45; }
.domain-warn .pi { color: var(--warn); margin-top: .15rem; flex: none; }

/* Admin billing and delete */
.choice-stack { display: grid; gap: .5rem; margin-bottom: 1rem; }
.choice-card { display: flex; gap: .7rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px; padding: .7rem .85rem; cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--primary); background: var(--tint); }
.choice-card input { margin-top: .25rem; }
.choice-card span { display: grid; gap: .1rem; }
.danger-zone ul { margin-top: .25rem; }
.inline-form .fld.wide { flex: 1 1 100%; }

/* Wizard: goal chips and logo */
.chip-pick { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .4rem; }
.chip-opt { font: inherit; font-size: .9rem; padding: .45rem .8rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.chip-opt.on { border-color: var(--primary); background: var(--tint); color: var(--primary-dark); font-weight: 600; }
.logo-drop { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border: 1.5px dashed #C9CEDA; border-radius: 12px; margin: .75rem 0 1rem; background: #fff; }
.logo-drop > div { flex: 1; display: grid; gap: .1rem; }
.logo-drop .logo-prev { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: var(--bg); }
.logo-drop label { cursor: pointer; }

/* Wizard: imported website review */
.import-review { display: grid; gap: .9rem; margin-top: .5rem; }
.import-stats { display: flex; flex-wrap: wrap; gap: .5rem; }
.import-stats > span { display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .7rem; border-radius: 8px; background: var(--white); border: 1px solid var(--line); font-size: .88rem; }
.import-cols i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.12); }
.improve-notes { margin-top: .6rem; padding: .75rem .9rem; border-radius: 10px; background: var(--tint); font-size: .9rem; }
.improve-notes ul { margin: .35rem 0 0; }
.sec-layout { border: 1px solid var(--line, #DCE3EB); border-radius: 10px; padding: .4rem .8rem; margin: .4rem 0 .9rem; }
.sec-layout > summary { cursor: pointer; display: flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .92rem; padding: .3rem 0; }
.sec-layout[open] > summary { margin-bottom: .5rem; }
.sec-admin { display: flex; gap: .5rem; flex-wrap: wrap; }
.icon-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; margin-top: 1rem; }
.icon-lib-card { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--line, #DCE3EB); border-radius: 12px; }
.icon-lib-pic { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 12px; background: #F4F7FA; }
.icon-lib-pic img { width: 44px; height: 44px; object-fit: contain; }
.icon-lib-pic.empty { border: 1px dashed #B9C6D3; width: 100%; height: 64px; }
.fmt-bar { display: flex; flex-wrap: wrap; gap: .25rem; margin: .25rem 0 .35rem; }
.fmt-btn { font: inherit; font-size: .82rem; min-width: 32px; height: 30px; padding: 0 .55rem; border: 1px solid var(--line, #DCE3EB); border-radius: 7px; background: #fff; color: #13202F; cursor: pointer; }
.fmt-btn:hover { border-color: #1B66C9; }
.fmt-btn mark { background: #FDE68A; padding: 0 .15em; }
.fmt-brand { color: #1B66C9; font-weight: 800; }
.fmt-big { font-weight: 800; }
.fmt-small { font-weight: 700; font-size: .72rem; }
.fmt-size { font: inherit; font-size: .82rem; width: 4.2em; height: 30px; min-height: 30px; padding: 0 .35rem; border: 1px solid var(--line, #DCE3EB); border-radius: 7px; background: #fff; }
.fmt-font { font: inherit; font-size: .82rem; height: 30px; min-height: 30px; width: auto; padding: 0 .4rem; border: 1px solid var(--line, #DCE3EB); border-radius: 7px; background: #fff; color: #13202F; cursor: pointer; }
.rte .tx-small { font-size: .85em; }
.rte .tx-font { text-decoration: underline dotted rgba(27,102,201,.55); text-underline-offset: 3px; }
.rte .tx-font-heading { font-family: var(--font-head, inherit); font-weight: 700; }
/* Text boxes that show styles as they'll look (portal/rte.js) */
.rte-source { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; overflow: hidden; }
.fld { position: relative; }
.rte { width: 100%; min-height: 72px; max-height: 600px; overflow-y: auto; font: inherit; line-height: 1.5; color: var(--ink); background: var(--white); border: 1.5px solid #C9CFD8; border-radius: 6px; padding: .5rem .65rem; white-space: pre-wrap; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
.rte-rich { min-height: 140px; }
.rte:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,102,201,.18); }
.rte.over { border-color: #B42318; }
.rte p, .rte div { margin: 0; }
.rte-rich p + p, .rte-rich p + ul, .rte-rich ul + p, .rte-rich h2, .rte-rich h3, .rte-rich blockquote { margin-top: .6em; }
.rte h2 { font-size: 1.15em; margin: 0; } .rte h3 { font-size: 1.05em; margin: 0; }
.rte ul { margin: .3em 0 0; padding-left: 1.3em; white-space: normal; }
.rte blockquote { margin: .6em 0 0; padding-left: .8em; border-left: 3px solid var(--primary); font-style: italic; }
.rte mark { background: #FDE68A; padding: 0 .1em; }
.rte .tx-brand { color: var(--brand, #1B66C9); font-weight: 700; }
.rte .tx-big { font-size: 1.25em; font-weight: 700; }
.rte a { color: var(--primary); text-decoration: underline; }
.rte-say { margin: .3rem 0 0; font-size: .85rem; color: #B54708; }
.rte-link { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: 0 0 .4rem; }
.rte-link input { flex: 1 1 180px; min-width: 0; }
.fmt-btn { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.fmt-link { font-weight: 650; color: #1B66C9; }
.anim-choices { display: grid; gap: .6rem; }
.adj-stage { position: relative; display: inline-block; max-width: 100%; cursor: crosshair; user-select: none; touch-action: none; border-radius: 10px; overflow: hidden; line-height: 0; }
.adj-stage:focus-visible { outline: 3px solid #1B66C9; outline-offset: 3px; }
.adj-img { max-width: 100%; max-height: 34vh; display: block; }
.adj-dot { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #1B66C9, 0 4px 12px rgba(0,0,0,.4); pointer-events: none; }
.adj-rect { position: absolute; border: 2px dashed #fff; box-shadow: 0 0 0 9999px rgba(10,14,20,.5); pointer-events: none; }
.adj-frames { display: flex; gap: .8rem; margin: 1rem 0; align-items: flex-end; }
.adj-frame { margin: 0; width: 150px; }
.adj-frame div { overflow: hidden; border-radius: 8px; background: #eef1f5; }
.adj-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.adj-crop { border-top: 1px solid #DCE3EB; padding-top: .6rem; }
.adj-crop summary { cursor: pointer; font-weight: 650; }
.adj-crop input[type=range] { width: 100%; max-width: 360px; display: block; }
.img-field img { object-fit: cover; }
.adj-frames { flex-wrap: wrap; }
button.adj-frame { width: 128px; padding: .4rem; border: 2px solid transparent; border-radius: 10px; background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: .3rem; align-items: stretch; font: inherit; text-align: center; }
button.adj-frame:hover { border-color: #B9C6D3; }
button.adj-frame.on { border-color: #1B66C9; background: #EAF1FC; }
button.adj-frame > div { overflow: hidden; border-radius: 6px; background: #eef1f5; max-height: 120px; }
button.adj-frame:nth-child(4) { width: 96px; }

/* ================================================================ top navigation (larger screens) */
.topnav { display: none; }
.subnav { display: none; }
@media (min-width: 1001px) {
  .shell { display: block; --chrome-h: 60px; }
  .shell.has-sub { --chrome-h: 108px; }
  .side { display: none; }
  .topnav { display: flex; align-items: center; gap: 1.25rem; height: 60px; padding: 0 1.25rem; background: var(--dark); color: #fff; position: sticky; top: 0; z-index: 50; }
  .topnav::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gradient); }
  .tn-brand { display: flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; flex: none; }
  .tn-brand img { border-radius: 50%; }
  .tn-brand strong { font-size: 1.05rem; font-stretch: 112%; }
  .tn-areas { display: flex; gap: .2rem; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .tn-area { display: flex; align-items: center; gap: .45rem; padding: .5rem .8rem; border-radius: 9px; color: #CFD0DC; text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; position: relative; }
  .tn-area:hover { background: var(--dark-2); color: #fff; }
  .tn-area.current { background: rgba(255,255,255,.1); color: #fff; }
  .tn-area.current::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: -.62rem; height: 3px; border-radius: 3px 3px 0 0; background: #7FC6E4; }
  .tn-area.nav-locked { opacity: .5; }
  .tn-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #F26B6B; color: #fff; font-size: .75rem; font-weight: 700; display: inline-grid; place-items: center; }
  .tn-badge[hidden] { display: none; }
  .tn-right { display: flex; align-items: center; gap: .6rem; flex: none; }
  .tn-site { display: flex; align-items: center; gap: .45rem; background: var(--dark-2); border: 1px solid var(--dark-3); border-radius: 10px; padding: .25rem .5rem .25rem .3rem; }
  .tn-site .site-logo { width: 28px; height: 28px; border-radius: 7px; object-fit: contain; background: #fff; }
  .tn-site .site-logo.blank { display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: var(--dark); }
  .tn-site select, .tn-site .site-name { background: transparent; color: #fff; border: 0; font: inherit; font-weight: 600; max-width: 200px; }
  .tn-site select option { color: #111; }
  .tn-view { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
  .tn-view:hover { background: rgba(255,255,255,.1); color: #fff; }
  .tn-user { position: relative; }
  .tn-user summary { list-style: none; cursor: pointer; }
  .tn-user summary::-webkit-details-marker { display: none; }
  .tn-menu { position: absolute; right: 0; top: calc(100% + .5rem); background: #fff; color: var(--ink, #13202F); border-radius: 12px; box-shadow: 0 18px 50px -18px rgba(0,0,0,.45); padding: .9rem; min-width: 230px; display: flex; flex-direction: column; gap: .4rem; z-index: 60; }
  .subnav { display: block; position: sticky; top: 60px; z-index: 45; background: #fff; border-bottom: 1px solid var(--line); }
  .subnav-in { display: flex; gap: .25rem; padding: 0 1.25rem; overflow-x: auto; scrollbar-width: thin; }
  .sn-tab { display: flex; align-items: center; gap: .4rem; padding: .85rem .85rem .75rem; color: var(--muted, #4B5A6B); text-decoration: none; font-weight: 600; font-size: .93rem; border-bottom: 3px solid transparent; white-space: nowrap; }
  .sn-tab:hover { color: var(--ink, #13202F); }
  .sn-tab.active { color: var(--ink, #13202F); border-bottom-color: #1B66C9; }
  .sn-tab.nav-locked { opacity: .5; }
  .editor { height: calc(100vh - var(--chrome-h)); }
  .wz-right { top: var(--chrome-h); height: calc(100vh - var(--chrome-h)); min-height: 0; }
  .back-btn { display: none; }
}

/* ================================================================ inbox */
.inbox-list { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.inbox-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.inbox-item.unread { border-left: 4px solid #1B66C9; }
.inbox-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: .9rem; align-items: center; padding: .85rem 1rem; }
.inbox-item summary::-webkit-details-marker { display: none; }
.inbox-item.unread .ib-main strong { font-weight: 800; }
.ib-type { font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; }
.ib-type.bk { background: #E8F6EE; color: #1C7A4D; }
.ib-type.eq { background: #EAF1FC; color: #15509E; }
.ib-type.qt { background: #FDF1E3; color: #8A4B0B; }
.ib-main { display: flex; flex-direction: column; min-width: 0; }
.ib-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-body { padding: 0 1rem 1rem; border-top: 1px solid var(--line); }
.ib-details { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: .35rem 1rem; margin: 1rem 0; }
.ib-details dt { color: var(--muted, #4B5A6B); font-size: .9rem; }
.ib-details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ib-msg { margin: 0 0 1rem; padding: .8rem 1rem; background: #F4F7FA; border-radius: 10px; white-space: pre-wrap; }
.seg-count { margin-left: .4rem; font-size: .8rem; opacity: .7; }
.agenda { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.agenda li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; }
.agenda li > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.ag-day { width: 46px; text-align: center; border-radius: 8px; background: #EAF1FC; padding: .25rem 0; line-height: 1.1; }
.ag-day strong { display: block; font-size: 1.2rem; }
.ag-day small { font-size: .72rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted, #4B5A6B); background: #fff; border: 1px dashed var(--line); border-radius: 12px; }
@media (max-width: 700px) { .inbox-item summary { grid-template-columns: auto minmax(0, 1fr); } .inbox-item summary time { display: none; } .ib-details { grid-template-columns: 1fr; } }
.row-btns { display: flex; gap: .4rem; align-items: center; }

/* ---- Phone pass ---- */
@media (max-width: 640px) {
  .panel-head { flex-wrap: wrap; gap: .5rem; }
  .panel-head > .btn-s { width: 100%; justify-content: center; }
  .inbox-filters { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .inbox-filters .seg { flex: 0 0 auto; }
  .dnd-help { flex-direction: column; align-items: stretch; }
  .dnd-help .row-actions { flex-wrap: wrap; }
  .row-card { flex-wrap: wrap; }
  .row-card > .pill { width: auto; justify-self: start; align-self: flex-start; }
  .row-btns { margin-left: auto; }
  .view-head { flex-wrap: wrap; gap: .75rem; }
}
.flash-field { outline: 3px solid color-mix(in srgb, var(--accent, #2563eb) 70%, transparent); outline-offset: 4px; border-radius: 8px; transition: outline-color .6s; }
.undo-redo { display: inline-flex; gap: .25rem; margin-left: .25rem; }
.undo-redo .btn-s[disabled] { opacity: .45; cursor: default; }
/* Top bar on mid-size screens: keep every area visible */
@media (min-width: 900px) and (max-width: 1440px) {
  .topnav { gap: .75rem; padding: 0 .9rem; }
  .tn-area { padding: .5rem .55rem; font-size: .9rem; gap: .35rem; }
  .tn-site select, .tn-site .site-name { max-width: 150px; text-overflow: ellipsis; }
  .tn-view { padding-left: .6rem; padding-right: .6rem; }
}
@media (min-width: 900px) and (max-width: 1240px) {
  .tn-brand strong { display: none; }
  .tn-area .pi { display: none; }
  .tn-view .tn-view-text { display: none; }
}
.hour-chart { display: grid; grid-template-columns: repeat(24, 1fr); align-items: end; gap: 3px; height: 140px; padding-top: .5rem; }
.hc-bar { display: block; background: linear-gradient(180deg, #5BB6DE, #2F6FDE); border-radius: 4px 4px 1px 1px; min-height: 3px; }
.hc-axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted, #6B7280); margin-top: .35rem; }
.inbox-filters { display: flex; max-width: 100%; }
@media (max-width: 640px) {
  .inbox-filters { width: 100%; }
  .inbox-item { min-width: 0; }
  .inbox-item .ib-main, .inbox-item .ib-body, .inbox-item .ib-details { min-width: 0; overflow-wrap: anywhere; }
  .inbox-item .row-actions { flex-wrap: wrap; }
  .inbox-item .row-actions > * { flex: 1 1 auto; justify-content: center; }
  .agenda { grid-template-columns: 1fr; }
}
.tn-badge.warn { background: #F5A524; color: #1d1300; }
.golive { display: flex; align-items: flex-start; gap: .8rem; margin: 0 0 1.25rem; padding: .9rem 1rem; border-radius: 12px; background: #FFF8E6; border: 1px solid #F3D48A; color: #4A3A10; }
.golive .pi { color: #B7791F; flex: none; margin-top: 2px; }
.golive-text { flex: 1; min-width: 0; }
.golive-steps { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .35rem; }
.golive-step { display: inline-flex; align-items: center; gap: .4rem; color: #6B4F0F; font-weight: 600; font-size: .92rem; }
.golive-step .dot { width: 8px; height: 8px; border-radius: 50%; background: #F5A524; }
.tour { position: fixed; inset: 0; z-index: 200; }
.tour-spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(8, 12, 22, .45); outline: 3px solid #7FC6E4; transition: all .25s ease; pointer-events: none; }
.tour-card { position: fixed; width: min(340px, calc(100vw - 24px)); background: #fff; color: var(--ink, #13202F); border-radius: 14px; padding: 1.1rem 1.15rem 1rem; box-shadow: 0 24px 60px -20px rgba(0,0,0,.5); transition: top .25s ease, left .25s ease; }
.tour-card h2 { margin: .1rem 0 .35rem; font-size: 1.15rem; }
.tour-card p { margin: 0 0 .5rem; }
.tour-actions { display: flex; gap: .4rem; align-items: center; margin-top: .6rem; flex-wrap: wrap; }
.tour-actions .spacer { flex: 1; }
@media (prefers-reduced-motion: reduce) { .tour-spot, .tour-card { transition: none; } }
.check-list { display: grid; gap: .5rem; margin-top: .4rem; }
.check-row { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.check-row input { width: 18px; height: 18px; }
.plain-list li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.panel .row-actions + .sub { margin-top: 1.1rem; }
.df-form { display: flex; gap: .5rem; margin: .5rem 0 .75rem; }
.df-form input { flex: 1; min-width: 0; }
.df-list { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; gap: .4rem; }
.df-list li { display: flex; align-items: center; gap: .75rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 10px; flex-wrap: wrap; }
.df-list li strong { flex: 1; min-width: 160px; }
.df-list li.taken strong { color: var(--muted, #6B7280); text-decoration: line-through; }
.muted-panel { background: var(--surface-2, #F7F8FA); }
.guide-shot.small { max-width: 640px; width: fit-content; margin-top: .6rem; } .guide-shot.small img { max-height: 520px; width: auto; max-width: 100%; }
.mfa-qr { display: block; margin: .5rem 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 6px; } .mfa-setup ol { padding-left: 1.2rem; }

/* Banner and pop-ups: template picker */
.pop-templates { display: grid; gap: .6rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line, #E4E6EB); }
.pop-templates > p { margin: 0; }
.pop-tpl-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.pop-tpl { display: grid; gap: .2rem; justify-items: start; text-align: left; padding: .65rem .7rem; border: 1px solid var(--line, #DCE3EB); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: inherit; }
.pop-tpl:hover, .pop-tpl:focus-visible { border-color: var(--blue, #1B66C9); box-shadow: 0 0 0 3px rgba(27, 102, 201, .15); }
.pop-tpl-ico { position: relative; width: 100%; height: 44px; border-radius: 6px; background: #E9EDF2; margin-bottom: .3rem; overflow: hidden; }
.pop-tpl-ico::after { content: ""; position: absolute; background: #fff; border: 2px solid #1B66C9; border-radius: 4px; }
.pop-tpl-card::after { left: 30%; right: 30%; top: 18%; bottom: 18%; }
.pop-tpl-split::after { left: 18%; right: 18%; top: 18%; bottom: 18%; background: linear-gradient(90deg, #B8C7DA 45%, #fff 45%); }
.pop-tpl-corner::after { right: 8%; bottom: 12%; width: 32%; height: 40%; }
.pop-tpl-bar::after { left: 0; right: 0; bottom: 0; height: 26%; border-radius: 0; border-width: 2px 0 0; }
.pop-tpl-image::after { left: 30%; right: 30%; top: 14%; bottom: 14%; background: linear-gradient(135deg, #F3C969, #E58FB4); border-color: transparent; }

/* Icon picker */
.icon-row { display: flex; align-items: center; gap: .6rem; }
.icon-prev:empty { display: none; }
.icon-picker input[type=search] { width: 100%; margin-bottom: .8rem; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .4rem; max-height: 60vh; overflow: auto; }
.icon-tile { display: grid; justify-items: center; gap: .35rem; padding: .7rem .4rem; border: 1px solid var(--line, #DCE3EB); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; font-size: .78rem; color: inherit; text-align: center; }
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile:hover, .icon-tile:focus-visible { border-color: #1B66C9; box-shadow: 0 0 0 3px rgba(27, 102, 201, .15); }
.icon-tile.on { border-color: #1B66C9; background: #EEF4FC; }
.icon-none { font-size: 1.4rem; line-height: 26px; color: #8A94A3; }
.ag-mini.ag-svg { display: block; height: auto; padding: 0; background: none; }
.ag-mini.ag-svg svg { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid #E2E8F0; }
.field-err { margin: .35rem 0 0; color: #B42318; font-size: .85rem; font-weight: 600; }
.fld.is-wrong.was-wrong input, .fld.is-wrong.was-wrong textarea { border-color: #B42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.town-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .45rem; border: 1px solid var(--line, #DCE3EB); border-radius: 10px; background: #fff; min-height: 46px; align-items: center; }
.town-chips:focus-within { border-color: #1B66C9; box-shadow: 0 0 0 3px rgba(27, 102, 201, .15); }
.town-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .35rem .25rem .7rem; border-radius: 999px; background: #EEF4FC; color: #123A73; font-weight: 600; font-size: .9rem; }
.town-chip button { all: unset; cursor: pointer; width: 1.4rem; height: 1.4rem; display: grid; place-items: center; border-radius: 50%; }
.town-chip button:hover, .town-chip button:focus-visible { background: #CFE0F6; }
.town-chips input { flex: 1; min-width: 160px; border: 0 !important; box-shadow: none !important; padding: .3rem; outline: none; }

/* Quotation form builder */
.qb { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .qb { grid-template-columns: 1fr; } }
.qb-edit { display: grid; gap: .8rem; min-width: 0; }
.qb-top { display: grid; gap: .6rem; padding: .9rem; border: 1px solid var(--line, #DCE3EB); border-radius: 12px; background: #F8FAFC; }
.qb-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (max-width: 560px) { .qb-row { grid-template-columns: 1fr; } }
.qb-fld { display: grid; gap: .25rem; min-width: 0; }
.qb-lbl { font-weight: 650; font-size: .85rem; color: #344054; }
.qb-fld input, .qb-fld select, .qb-rule select, .qb-rule input, .qb-opt input { width: 100%; min-width: 0; }
.qb-list { display: grid; gap: .5rem; }
.qb-card { border: 1px solid var(--line, #DCE3EB); border-radius: 12px; background: #fff; }
.qb-card.open { border-color: #1B66C9; box-shadow: 0 0 0 3px rgba(27, 102, 201, .12); }
.qb-card.has-problem { border-color: #D92D20; }
.qb-card.dragging { opacity: .45; }
.qb-card.drop-before { box-shadow: 0 -4px 0 #1B66C9; }
.qb-card.drop-after { box-shadow: 0 4px 0 #1B66C9; }
.qb-card.drop-no { box-shadow: 0 0 0 3px #D92D20; background: #FEF3F2; }
.qb-head { display: flex; align-items: center; gap: .25rem; padding: .35rem .45rem; }
.qb-handle { all: unset; cursor: grab; padding: .4rem .5rem; border-radius: 8px; color: #667085; font-size: 1.1rem; }
.qb-handle:hover, .qb-handle:focus-visible { background: #EEF2F6; color: #101828; }
.qb-open { all: unset; cursor: pointer; flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; column-gap: .55rem; padding: .3rem; border-radius: 8px; }
.qb-open:focus-visible { outline: 2px solid #1B66C9; }
.qb-num { grid-row: span 2; align-self: center; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; background: #EEF4FC; color: #1B66C9; font-weight: 700; font-size: .8rem; }
.qb-title { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qb-type { font-size: .78rem; color: #667085; }
.qb-body { display: grid; gap: .65rem; padding: .3rem .9rem .9rem; border-top: 1px solid #EEF2F6; }
.qb-sub { margin: .2rem 0 0; font-size: .82rem; color: #667085; }
.qb-opts { display: grid; gap: .4rem; }
.qb-opt { display: grid; grid-template-columns: 1fr 110px auto; gap: .4rem; align-items: center; }
.qb-money-wrap { display: flex; align-items: center; gap: .25rem; color: #667085; font-weight: 600; }
.qb-money { width: 100%; }
.qb-bad { border-color: #D92D20 !important; box-shadow: 0 0 0 3px rgba(217, 45, 32, .12) !important; }
.qb-badtxt { color: #B42318 !important; font-weight: 600; }
.qb-curly { display: flex; align-items: center; gap: .15rem; font-family: ui-monospace, monospace; color: #667085; }
.qb-curly input { font-family: ui-monospace, monospace; }
.qb-check { display: flex; align-items: center; gap: .45rem; font-size: .92rem; }
.qb-rule { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: .4rem; }
.qb-rule:empty { display: none; }
@media (max-width: 560px) { .qb-rule { grid-template-columns: 1fr; } }
.qb-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.qb-chip { border: 1px solid #C7D7EE; background: #F5F9FF; color: #1B4F94; border-radius: 999px; padding: .2rem .6rem; font: 600 .8rem/1.4 ui-monospace, monospace; cursor: pointer; }
.qb-chip.qb-op { background: #F2F4F7; color: #344054; border-color: #D0D5DD; }
.qb-hint { margin: 0; font-size: .82rem; color: #667085; }
.qb-add { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; padding: .7rem; border: 2px dashed #C7D7EE; border-radius: 12px; }
.qb-add .qb-lbl { width: 100%; }
.qb-errors { padding: .7rem .9rem; border-radius: 10px; background: #FEF3F2; color: #912018; font-size: .9rem; }
.qb-errors ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.qb-try { position: sticky; top: 0; display: grid; gap: .7rem; padding: .9rem; border-radius: 12px; background: #F8FAFC; border: 1px solid var(--line, #DCE3EB); max-height: 70vh; overflow: auto; }
.qb-try .qf-q[hidden] { display: none; }
.qb-try fieldset { border: 0; margin: 0 0 .6rem; padding: 0; }
.qb-try legend, .qb-try label { font-weight: 600; font-size: .9rem; }
.qb-try .field { margin-bottom: .6rem; }
.qb-try .qf-opts { display: grid; gap: .3rem; }
.qb-try .qf-opt-row { display: flex; gap: .4rem; align-items: center; font-weight: 500; }
.qb-try .qf-price, .qb-try .qf-opt, .qb-try .qf-help { color: #667085; font-size: .82rem; font-weight: 500; }
.qb-try input[type=number], .qb-try input[type=text], .qb-try select, .qb-try textarea, .qb-try input[type=date] { width: 100%; }
.qb-try .qf-calc { display: flex; justify-content: space-between; font-weight: 600; background: #fff; padding: .4rem .6rem; border-radius: 8px; }
.qb-try-panel { position: sticky; bottom: 0; padding: .7rem .9rem; border-radius: 10px; background: #121119; color: #fff; }
.qb-try-total { margin: 0; font-size: 1.6rem; font-weight: 800; }
.qb-try-lines { list-style: none; margin: .3rem 0 0; padding: 0; font-size: .82rem; color: rgba(255,255,255,.8); }
.qb-try-lines li { display: flex; justify-content: space-between; gap: .6rem; }

/* Where should estimates and enquiries go: Run My Round or email */
.roundly-offer .ro-about p { margin: 0 0 .5rem; }
.ro-picks { display: grid; gap: .6rem; margin-top: .8rem; }
.ro-pick { display: flex; gap: .8rem; align-items: flex-start; text-align: left; width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; font: inherit; color: inherit; }
.ro-pick:hover, .ro-pick:focus-visible { border-color: var(--blue, #1d63c9); background: #F5F9FF; }
.ro-pick .pi { flex: none; margin-top: 2px; }
.ro-pick strong { display: block; }
.ro-pick small { display: block; color: var(--muted); margin-top: 2px; }
.ro-pick.ro-primary { border-color: var(--blue, #1d63c9); }

/* Form builder: guide, answer headings, price filler, advanced */
.qb-guide { margin: 0 0 1rem; padding: .7rem 1rem .7rem 2.2rem; background: #F5F9FF; border: 1px solid #D9E6F7; border-radius: 10px; display: grid; gap: .25rem; font-size: .9rem; }
.qb-opt-head { font-size: .78rem; font-weight: 600; color: var(--muted); margin: .4rem 0 -.1rem; }
.qb-fill { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.qb-fill .qb-money { width: 80px; }
.qb-adv { margin-top: .6rem; font-size: .9rem; }
.qb-adv summary { cursor: pointer; color: var(--muted); }
/* Website builder: details brought from Run My Round */
.brief-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 10px 0 14px; font-size: 14px; }
.brief-list dt { font-weight: 600; color: var(--muted, #5b6271); }
.brief-list dd { margin: 0; }

/* Saved sections in the Add a section gallery */
.ag-saved { position: relative; padding: 0; }
.ag-saved .ag-use { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: .3rem; padding: .75rem; cursor: pointer; width: 100%; }
.ag-saved .ag-use:focus-visible { outline: 3px solid var(--blue, #1d63c9); border-radius: 12px; }
.ag-saved .ag-del { position: absolute; top: 6px; right: 6px; background: #fff; }
.ag-mine { padding-bottom: .6rem; margin-bottom: .4rem; border-bottom: 1px solid var(--line); }
.pill-pair { display: inline-flex; gap: .35rem; flex-wrap: wrap; }

/* View on my phone */
.phone-qr { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
.phone-qr .qr-box { padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; line-height: 0; }
@media (max-width: 560px) { .phone-qr { grid-template-columns: 1fr; justify-items: center; } }

/* Redirects for old links */
.redir-list { display: grid; gap: .5rem; margin: .6rem 0; }
.redir-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr) auto; gap: .5rem; align-items: start; }
.redir-row input, .redir-row select { width: 100%; }
.redir-to { display: grid; gap: .35rem; }
@media (max-width: 640px) { .redir-row { grid-template-columns: 1fr auto; } .redir-row > span { display: none; } .redir-to { grid-column: 1 / -1; } }

/* Page health */
.health-chip { cursor: pointer; border: 0; font: inherit; }
.health-box { padding: .9rem 1rem; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.health-head { display: flex; gap: .8rem; align-items: center; margin-bottom: .6rem; }
.health-head p { margin: .1rem 0 0; }
.health-score { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-weight: 800; font-size: 1.15rem; background: #E8F6EE; color: #1C7A4D; }
.health-score.changes { background: #FFF4E5; color: #8A4B0B; }
.health-score.never { background: #FDECEC; color: #B42318; }
.health-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.health-list li { display: grid; grid-template-columns: 22px 1fr auto; gap: .55rem; align-items: start; padding: .45rem 0; border-top: 1px solid var(--line); }
.health-list li p { margin: .15rem 0 0; }
.health-list .tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #FDECEC; color: #B42318; font-weight: 800; font-size: .8rem; }
.health-list li.ok .tick { background: #E8F6EE; color: #1C7A4D; }

/* Live chat */
.chat-alerts { background: var(--tint); border: 1px solid #CFE0F7; border-radius: var(--r); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.chat-alerts h2 { margin: 0 0 .25rem; font-size: 1rem; }
.chat-alerts .help { margin: 0 0 .75rem; }
.chat-alerts .row-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.view-chats .view-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1rem; align-items: flex-start; }
.view-chats .row-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.chat-online { display: flex; align-items: center; gap: .45rem; margin: .25rem 0 0; color: var(--muted); }
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: #9AA3AF; flex: none; }
.chat-dot.on { background: #22A06B; }
.chat-wrap { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 1rem; margin-top: 1rem; height: 600px; }
.chat-side { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow-y: auto; min-height: 0; }
.chat-list { list-style: none; margin: 0; padding: .35rem; }
.chat-list .empty { padding: 1rem; }
.chat-item { display: grid; gap: .25rem; padding: .7rem .8rem; border-radius: 8px; color: inherit; text-decoration: none; border-left: 3px solid transparent; }
.chat-item:hover { background: var(--bg); }
.chat-item.on { background: var(--tint); }
.chat-item.unread { border-left-color: var(--primary); }
.chat-item.unread strong { color: var(--primary-dark); }
.chat-who { display: flex; justify-content: space-between; gap: .5rem; min-width: 0; }
.chat-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-who .small { flex: none; }
.chat-sub { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; min-height: 1.4em; }
.chat-here { color: var(--ok); font-weight: 600; }
.chat-pane { display: flex; flex-direction: column; min-height: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.chat-pick { margin: auto; padding: 2rem; text-align: center; }
.chat-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.chat-head > div { flex: 1; min-width: 0; }
.chat-head h2 { margin: 0; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head p { margin: 0; overflow-wrap: anywhere; }
.chat-back { display: none; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--bg); overscroll-behavior: contain; }
.chat-msg { max-width: min(80%, 560px); display: grid; gap: .2rem; }
.chat-msg p { margin: 0; padding: .6rem .85rem; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.them { align-self: flex-start; }
.chat-msg.them p { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-msg.me { align-self: flex-end; text-align: right; }
.chat-msg.me p { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; text-align: left; }
.chat-away { margin: 0; padding: .5rem 1rem 0; }
.chat-reply { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: end; padding: .75rem 1rem 1rem; }
.chat-reply textarea { width: 100%; resize: vertical; min-height: 2.75rem; max-height: 10rem; font: inherit; font-size: 16px; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 8px; }
.chat-reply .field-error { grid-column: 1 / -1; margin: 0; }
.chat-reply .field-error:empty { display: none; }
@media (max-width: 899px) {
  .chat-wrap { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  .view-chats.has-open .chat-side, .view-chats.has-open .view-head, .view-chats.has-open > .theme-note { display: none; }
  .view-chats.has-open .chat-wrap { margin-top: 0; }
  .view-chats:not(.has-open) .chat-pane { display: none; }
  .chat-back { display: inline-flex; }
  .chat-head > div { order: 3; flex-basis: 100%; }
  .chat-head .chat-back { margin-right: auto; }
}

.presence { display: grid; gap: .5rem; margin-top: .4rem; }
.presence-row { display: flex; align-items: center; gap: .5rem; }
.presence .seg-group { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.presence-for { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0; }
.presence-for select { width: auto; padding: .3rem .5rem; font: inherit; border: 1px solid var(--line); border-radius: 8px; }

/* ---------- Photo frames (chosen per photo in Adjust photo) ---------- */
img.img-frame { object-fit: cover; }
img.fr-circle, img.fr-star, img.fr-heart, img.fr-hexagon, img.fr-diamond, img.fr-blob { aspect-ratio: 1 / 1; height: auto; }
img.fr-circle { border-radius: 50% !important; }
img.fr-rounded { border-radius: 24px !important; }
img.fr-square { border-radius: 0 !important; }
img.fr-arch { border-radius: 999px 999px 14px 14px !important; aspect-ratio: 3 / 4; height: auto; }
img.fr-star, img.fr-heart, img.fr-hexagon, img.fr-diamond, img.fr-blob { border-radius: 0 !important; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; box-shadow: none !important; }
img.fr-star { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,3 61.8,35.5 96.6,36.2 69,57.3 79.4,90.5 50,71 20.6,90.5 31,57.3 3.4,36.2 38.2,35.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,3 61.8,35.5 96.6,36.2 69,57.3 79.4,90.5 50,71 20.6,90.5 31,57.3 3.4,36.2 38.2,35.5'/%3E%3C/svg%3E"); }
img.fr-heart { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 94C21 72 3 55 3 33 3 16 15 5 29 5c10 0 17 5 21 13 4-8 11-13 21-13 14 0 26 11 26 28 0 22-18 39-47 61z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 94C21 72 3 55 3 33 3 16 15 5 29 5c10 0 17 5 21 13 4-8 11-13 21-13 14 0 26 11 26 28 0 22-18 39-47 61z'/%3E%3C/svg%3E"); }
img.fr-hexagon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='25,4 75,4 98,50 75,96 25,96 2,50'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='25,4 75,4 98,50 75,96 25,96 2,50'/%3E%3C/svg%3E"); }
img.fr-diamond { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,2 98,50 50,98 2,50'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,2 98,50 50,98 2,50'/%3E%3C/svg%3E"); }
img.fr-blob { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M52 3c21 1 41 14 44 37 3 22-9 45-30 54-22 9-48 2-58-19C-2 54 5 28 22 14 30 7 41 3 52 3z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M52 3c21 1 41 14 44 37 3 22-9 45-30 54-22 9-48 2-58-19C-2 54 5 28 22 14 30 7 41 3 52 3z'/%3E%3C/svg%3E"); }
img.fr-border { padding: clamp(6px, 1.4vw, 12px); background: #fff; border-radius: 6px !important; box-shadow: 0 14px 32px -16px rgba(10, 20, 40, .45), 0 0 0 1px rgba(10, 20, 40, .06); }
img.fr-outline { border-radius: 18px !important; outline: 4px solid var(--primary, #1B66C9); outline-offset: 6px; margin: 10px; max-width: calc(100% - 20px); }
.adj-frs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.adj-fr { display: grid; justify-items: center; gap: .3rem; padding: .5rem .3rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; font: inherit; color: inherit; }
.adj-fr.on { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.adj-fr-pic { display: grid; place-items: center; width: 64px; height: 64px; }
.adj-fr-pic img { max-width: 64px; max-height: 64px; width: 100%; height: 100%; object-fit: cover; }
.adj-fr-pic img.fr-arch { width: 48px; }
.adj-fr-pic img.fr-border { padding: 4px; }
.adj-fr-pic img.fr-outline { outline-width: 3px; outline-offset: 3px; margin: 6px; width: 46px; height: 46px; }
.adj-frame-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 260px); gap: 1rem; align-items: start; }
.adj-live { position: sticky; top: 0; display: grid; gap: .5rem; padding: .85rem; border: 1px solid var(--line); border-radius: 12px; background: repeating-conic-gradient(#f3f4f6 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.adj-live .lbl { background: var(--white); justify-self: start; padding: .1rem .45rem; border-radius: 6px; }
.adj-live-stage { display: grid; place-items: center; min-height: 200px; padding: 12px; }
.adj-live-img { width: 100%; max-width: 220px; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 12px; }
.adj-live-img.fr-arch { max-width: 170px; }
.adj-live-note { margin: 0; background: var(--white); padding: .35rem .5rem; border-radius: 6px; }
@media (max-width: 720px) { .adj-frame-wrap { grid-template-columns: minmax(0, 1fr); } .adj-live { order: -1; position: static; } }
@media (max-width: 520px) { .modal-foot { flex-wrap: wrap; } .modal-foot > .btn, .modal-foot > button { flex: 1 1 auto; } }

/* Custom role: tick what someone can do */
.perm-ticks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-top: 6px; }
.perm-tick { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line, #dde3ea); border-radius: 10px; cursor: pointer; }
.perm-tick input { margin-top: 3px; flex: none; }
.perm-tick span { display: grid; gap: 2px; }
.perm-tick:has(input:checked) { border-color: var(--brand, #1B66C9); background: color-mix(in srgb, var(--brand, #1B66C9) 6%, transparent); }
.team-item { display: grid; gap: 0; }
.team-perms { padding: 4px 12px 14px 56px; }
@media (max-width: 640px) { .team-perms { padding-left: 12px; } }

/* Your role on the current website, beside the website picker */
.tn-role { font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.14); color: inherit; white-space: nowrap; }

.perm-groups { display: grid; gap: 14px; margin-top: 6px; }
.perm-group { border: 0; padding: 0; margin: 0; }
.perm-group legend { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 6px; padding: 0; }

/* Brand colour swatches in colour choosers (buttons and other colours) */
.colour-control { display: grid; gap: .5rem; }
.brand-swatches { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.brand-swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; box-shadow: inset 0 0 0 2px #fff; }
.brand-swatch[aria-pressed="true"] { border-color: var(--ink, #15141C); box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--ink, #15141C); }
.brand-swatch:focus-visible { outline: 3px solid var(--blue, #1B66C9); outline-offset: 2px; }
.brand-swatch.is-default { width: auto; height: 34px; border-radius: 999px; padding: 0 .8rem; background: #fff; font-size: .85rem; box-shadow: none; }
.btn-colour { margin-top: .5rem; }
.btn-colour > summary { cursor: pointer; font-size: .9rem; color: var(--muted, #5B6478); }
.btn-colour[open] > summary { margin-bottom: .5rem; }

/* One-line system status in the sidebar */
.side-status { display: flex; align-items: flex-start; gap: .5rem; margin-top: auto; padding: .6rem .35rem; font-size: .8rem; line-height: 1.35; color: inherit; opacity: .85; text-decoration: none; }
.side-status + .side-foot { margin-top: 0; }
.side-status .sys-dot { flex: none; width: 8px; height: 8px; margin-top: .3rem; border-radius: 50%; background: #9aa0a6; }
.side-status.ok .sys-dot { background: #1a9b5b; }
.side-status.degraded .sys-dot { background: #e0a100; }
.side-status.degraded { opacity: 1; font-weight: 600; }

/* Analytics: plain-English explanations */
.means { margin: 12px 0 0; padding: 10px 12px; background: var(--bg); border-left: 3px solid var(--accent, #22B8E8); border-radius: 4px; font-size: .9rem; line-height: 1.5; }
.insight-list { margin: 4px 0 0; padding-left: 18px; line-height: 1.6; }
.insight-list li { margin-bottom: 4px; }
.health-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 4px 0 0; }
.health-dl dt { color: var(--muted); }
.health-dl dd { margin: 0; font-weight: 600; }

/* ================= Full-screen builder (page editor and design) ================= */
.shell.focus .topnav, .shell.focus .subnav, .shell.focus .side, .shell.focus .topbar, .shell.focus .back-btn, .shell.focus .scrim { display: none !important; }
.shell.focus .main { padding: 0 !important; margin: 0 !important; max-width: none !important; }
.shell.focus .editor { height: 100vh; height: 100dvh; }
.editor-bar.slim { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .75rem; padding: .45rem .75rem; flex-wrap: nowrap; }
.editor-bar.slim .eb-left, .editor-bar.slim .eb-right, .editor-bar.slim .eb-mid { flex-wrap: nowrap; gap: .5rem; }
.editor-bar.slim .eb-right { justify-content: flex-end; }
.editor-bar.slim .eb-mid { justify-content: center; }
.editor-bar.slim .preview-bar { border: 0; padding: 0; background: none; }
.editor-bar.slim .preview-bar > .muted { display: none; }
.eb-exit { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .7rem; border-radius: 9px; font-weight: 600; color: var(--ink); text-decoration: none; }
.eb-exit:hover, .eb-exit:focus-visible { background: var(--bg); }
.eb-sep { width: 1px; align-self: stretch; background: var(--line); margin: .2rem .1rem; }
.eb-page { font: inherit; font-weight: 700; font-size: 1rem; padding: .45rem 2rem .45rem .7rem; border: 1px solid var(--line); border-radius: 9px; background-color: #fff; max-width: 260px; min-width: 0; }
.eb-more { position: relative; }
.eb-more > summary { list-style: none; cursor: pointer; }
.eb-more > summary::-webkit-details-marker { display: none; }
.eb-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 250px; padding: .35rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(20,30,50,.35); display: flex; flex-direction: column; }
.eb-menu > a, .eb-menu > button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: .55rem; padding: .6rem .7rem; border-radius: 8px; cursor: pointer; font-weight: 500; color: var(--ink); }
.eb-menu > a:hover, .eb-menu > button:hover, .eb-menu > a:focus-visible, .eb-menu > button:focus-visible { background: var(--tint, #EAF1FC); }
.eb-menu .pi { color: var(--muted); }
.editor-cols.has-rail { grid-template-columns: 76px minmax(330px, 400px) minmax(0, 1fr); }
.editor-cols.has-rail.collapsed { grid-template-columns: 76px 0 minmax(0, 1fr); }
.editor-cols.collapsed > .editor-left { display: none; }
.ed-rail { display: flex; flex-direction: column; align-items: stretch; gap: .2rem; padding: .6rem .4rem; background: #fff; border-right: 1px solid var(--line); overflow-y: auto; }
.rail-btn { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .6rem .2rem; border-radius: 10px; cursor: pointer; color: var(--muted); font-size: .74rem; font-weight: 600; text-align: center; text-decoration: none; }
.rail-btn .pi svg { width: 22px; height: 22px; }
.rail-btn:hover, .rail-btn:focus-visible { background: var(--bg); color: var(--ink); }
.rail-btn.on { background: var(--tint, #EAF1FC); color: var(--primary, #1B66C9); }
.rail-gap { flex: 1; }
.editor-left .pane { padding: 1rem 1rem 3rem; }
.panel-intro h2 { font-size: 1.08rem; margin: 0 0 .25rem; }
.panel-intro .help { margin: 0 0 .75rem; }
.dnd-help.panel-intro { padding: 0 0 .75rem; }
.sec-search { width: 100%; box-sizing: border-box; font: inherit; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .75rem; background: #fff; }
.sec-search:focus { outline: 3px solid var(--tint, #EAF1FC); border-color: var(--primary); }
.ap-saved { margin-bottom: .75rem; }
.ap-group { margin-bottom: 1rem; }
.ap-head { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 .45rem; }
.ap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.ap-tile { display: flex; flex-direction: column; gap: .35rem; padding: .45rem; background: #fff; border: 1.5px solid var(--line); border-radius: 11px; cursor: grab; font: inherit; text-align: left; color: var(--ink); }
.ap-tile:hover, .ap-tile:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint, #EAF1FC); }
.ap-tile:active { cursor: grabbing; }
.ap-name { font-size: .84rem; font-weight: 600; line-height: 1.2; }
.ap-tile[hidden], .ap-group[hidden], .ag-tile[hidden], [data-group][hidden] { display: none !important; }
.pp-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.pp-item { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pp-item:hover, .pp-item:focus-visible { border-color: var(--primary); }
.pp-item.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint, #EAF1FC); }
.pp-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pp-name strong, .pp-name small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-dot { width: 10px; height: 10px; border-radius: 50%; background: #12B76A; flex: none; }
.pp-dot.changes { background: #F5B731; } .pp-dot.never { background: #98A2B3; }
.drill-bar { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.drill-pos { flex: 1; text-align: center; }
.drill-nav { display: flex; gap: .2rem; }
.sections.drilled .sec { box-shadow: none; }
.sec-empty p { margin: 0 0 .75rem; }
.preview { position: relative; }
.ed-tips { position: absolute; right: 18px; bottom: 18px; z-index: 30; width: min(340px, calc(100% - 36px)); padding: 1rem 1.1rem; background: #fff; border-radius: 14px; box-shadow: 0 18px 48px -14px rgba(20,30,50,.45); border: 1px solid var(--line); }
.ed-tips ol { margin: .5rem 0; padding-left: 1.2rem; line-height: 1.5; }
.ed-tips li { margin-bottom: .3rem; }
.ed-tips[hidden] { display: none; }
@media (max-width: 1240px) { .editor-bar.slim .save-state, .editor-bar.slim .health-chip { display: none; } .ur-word { display: none; } }
@media (max-width: 1000px) {
  .shell.focus .editor { height: auto; min-height: 100dvh; }
  .editor-bar.slim { grid-template-columns: minmax(0, 1fr) auto; position: sticky; top: 0; z-index: 20; }
  .editor-bar.slim .eb-mid { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
  .editor-bar.slim .pill, .eb-sep { display: none; }
  .eb-exit .pi { display: none; }
  .eb-page { max-width: 46vw; }
  .editor-cols.has-rail, .editor-cols.has-rail.collapsed { grid-template-columns: minmax(0, 1fr); }
  .ed-rail { flex-direction: row; position: sticky; top: 98px; z-index: 15; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; padding: .3rem; }
  .rail-btn { flex: 1 0 64px; }
  .rail-gap { display: none; }
  .editor-cols.collapsed > .editor-left { display: block; }
  .ap-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .ed-tips { position: fixed; }
}
.editor-bar.slim .eb-mid { display: flex; align-items: center; }
.editor-bar.slim .eb-mid > * { flex: none; }
.editor-bar.slim .preview-bar { flex-wrap: nowrap; }
.dnd-help.panel-intro { display: block; padding: 0; margin: 0 0 .9rem; }
.dnd-help.panel-intro .row-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.sec-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 11px; margin: .4rem 0 1rem; }
.sec-seg button { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: .35rem; padding: .55rem .4rem; border-radius: 8px; font-weight: 600; font-size: .88rem; color: var(--muted); cursor: pointer; text-align: center; }
.sec-seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20,30,50,.15); }
.sec-seg button:focus-visible { outline: 3px solid var(--tint, #EAF1FC); }
.sec-tabpane[hidden] { display: none; }
.sec-thumb { flex: none; width: 46px; }
.sec-thumb svg { display: block; width: 46px; height: auto; border-radius: 5px; border: 1px solid #E2E8F0; }
.eb-title { font-size: 1.05rem; }
.pg-list { display: flex; flex-direction: column; gap: .5rem; }
.row-card.pg-row { display: grid !important; grid-template-columns: 96px minmax(0, 1fr) auto auto auto auto !important; align-items: center; gap: 1rem; padding: .7rem 1rem .7rem .7rem; }
.pg-thumb svg { display: block; width: 96px; height: auto; border-radius: 7px; border: 1px solid #E2E8F0; }
.pg-row .row-main strong { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pg-home { font-size: .72rem; font-weight: 600; padding: .1rem .45rem; border-radius: 99px; background: var(--tint, #EAF1FC); color: var(--primary, #1B66C9); }
.pg-row .row-btns { display: flex; gap: .4rem; }
.btn-s.primary-s { background: var(--primary, #1B66C9); color: #fff; border-color: var(--primary, #1B66C9); }
.pg-row:hover .btn-s.primary-s { filter: brightness(1.08); }
@media (max-width: 900px) { .row-card.pg-row { grid-template-columns: 72px minmax(0, 1fr) !important; } .pg-thumb svg { width: 72px; } .pg-row > .pill, .pg-row > .pill-pair, .pg-when { grid-column: 2; justify-self: start; } .pg-row .row-btns { grid-column: 1 / -1; } }
.rail-page { display: none; }
@media (max-width: 1000px) {
  .rail-page { display: flex; }
  .eb-exit { padding: .45rem; border: 1px solid var(--line); }
  .eb-exit .pi svg { width: 18px; height: 18px; }
  .editor-cols.has-rail[data-mview="preview"] > .editor-left { display: none; }
  .editor-cols.has-rail[data-mview="panel"] > .preview { display: none; }
  .editor-cols.has-rail[data-mview="preview"] .preview-holder { height: calc(100dvh - 170px); }
  .editor-bar.slim .eb-mid .preview-bar .seg[aria-pressed] { padding: .35rem .55rem; }
  .ur-word { display: none; }
}
/* ---------- Style panel */
.style-panel .ap-head { margin-top: 1.1rem; }
.st-themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.st-theme { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: .4rem; padding: .5rem; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; }
.st-theme .tc-swatches { display: grid; grid-template-columns: repeat(3, 1fr); height: 26px; border-radius: 7px; overflow: hidden; }
.st-tname { font-weight: 700; font-size: .92rem; }
.st-theme:hover, .st-theme:focus-visible, .st-font:hover, .st-font:focus-visible, .st-corner:hover, .st-corner:focus-visible { border-color: var(--primary); }
.st-theme.on, .st-font.on, .st-corner.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint, #EAF1FC); }
.st-row { margin-bottom: .85rem; }
.st-label { display: flex; flex-direction: column; margin-bottom: .35rem; }
.st-label strong { font-size: .92rem; }
.st-swatches { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.st-sw { all: unset; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.st-sw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.st-sw:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary); }
.st-any { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.st-any input { width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; }
.st-fonts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.st-font { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: .6rem; padding: .55rem; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; }
.st-font > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.st-font small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-sample { font-size: 1.6rem; font-weight: 700; line-height: 1; width: 2.3rem; text-align: center; }
.st-corners { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.st-corner { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .6rem .3rem; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; font-weight: 600; font-size: .85rem; }
.st-cbox { width: 44px; height: 26px; background: var(--primary, #1B66C9); }
.st-more { margin-top: 1.25rem; }
/* ---------- Menu panel */
.mn-list { list-style: none; padding: 0; margin: 0 0 .6rem; display: flex; flex-direction: column; gap: .4rem; }
.mn-row { display: flex; align-items: center; gap: .4rem; padding: .45rem; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.mn-row.dragging { opacity: .45; }
.mn-row.mn-over { box-shadow: 0 -3px 0 0 var(--primary); }
.mn-grip { cursor: grab; color: var(--muted); display: flex; }
.mn-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.mn-main input, .mn-main select, .mn-add { font: inherit; width: 100%; box-sizing: border-box; padding: .4rem .55rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.mn-main input { font-weight: 600; }
.mn-main select { font-size: .85rem; color: var(--muted); }
.mn-btns { display: flex; flex-direction: column; gap: .1rem; }
.mn-btnrow { margin-bottom: .4rem; }
.mn-add { margin-bottom: .4rem; }
.mn-toggle { display: flex; align-items: flex-start; gap: .55rem; padding: .35rem 0; cursor: pointer; }
.mn-toggle input { width: 18px; height: 18px; margin-top: .1rem; flex: none; }
/* ---------- Choice buttons in place of short dropdowns */
.choice-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.choice-chips button { all: unset; box-sizing: border-box; padding: .45rem .75rem; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--ink); }
.choice-chips button:hover { border-color: var(--primary); }
.choice-chips button.on { background: var(--primary, #1B66C9); border-color: var(--primary, #1B66C9); color: #fff; }
.choice-chips button:focus-visible { outline: 3px solid var(--tint, #EAF1FC); outline-offset: 1px; }
/* ---------- New page: picture cards */
.np-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; max-height: 46vh; overflow-y: auto; padding: 2px; }
.np-card { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: .3rem; padding: .5rem; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; }
.np-card small { font-size: .76rem; line-height: 1.3; }
.np-card.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint, #EAF1FC); }
.np-card:focus-visible { border-color: var(--primary); }
.np-pic { display: block; min-height: 50px; border-radius: 7px; background: var(--bg); }
.np-pic svg { display: block; width: 100%; height: auto; border-radius: 7px; border: 1px solid #E2E8F0; }
/* ---------- Published */
.pub-done { display: flex; gap: .9rem; align-items: flex-start; }
.pub-tick { flex: none; width: 42px; height: 42px; border-radius: 50%; background: #D1FADF; color: #067647; display: grid; place-items: center; }
.pub-tick svg { width: 24px; height: 24px; }
.ur-word { margin-left: .2rem; }
.st-undo { margin-bottom: .75rem; }
.rcp-table { display: flex; flex-direction: column; }
.rcp-item { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 2fr) auto; gap: .75rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); }
.rcp-name { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.rcp-to { overflow-wrap: anywhere; }
.rcp-list { display: flex; flex-direction: column; gap: .4rem; margin: .6rem 0; }
.rcp-row { display: flex; gap: .4rem; align-items: center; }
.rcp-row input { flex: 1; font: inherit; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 700px) { .rcp-item { grid-template-columns: 1fr; gap: .3rem; } }

/* Mailing list */
.ml-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ml-table th, .ml-table td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.ml-table th { font-size: .8rem; color: var(--muted); font-weight: 650; }
.ml-check { display: flex; align-items: center; gap: .5rem; min-height: 40px; }
.ml-check input { width: 18px; height: 18px; }

/* Shop */
.shop-list { margin: 8px 0 0; }
.shop-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line, #E3E6EE); flex-wrap: wrap; }
.shop-row:last-child { border-bottom: 0; }
.shop-row img, .shop-row .shop-nopic { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; }
.shop-nopic { display: inline-block; background: linear-gradient(135deg, #EEF2F7, #DCE3EB); }
.shop-row-main { flex: 1 1 220px; min-width: 0; }
.shop-row .pill { margin-left: 6px; }
.shop-pics { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.shop-pic-edit { position: relative; }
.shop-pic-edit img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; display: block; }
.shop-pic-edit .icon-btn { position: absolute; top: -8px; right: -8px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); width: 26px; height: 26px; min-height: 0; padding: 0; }
.shop-deliv-grid { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr; gap: 6px 8px; align-items: center; margin-bottom: 14px; }
.shop-deliv-grid .shop-deliv-note-in { grid-column: 1 / -1; margin-bottom: 8px; }
@media (max-width: 640px) { .shop-deliv-grid { grid-template-columns: 1fr 1fr; } .shop-deliv-grid > span { display: none; } }
.shop-offer .checks { margin: 12px 0 16px; }
.shop-form .check, .modal-body .check { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-weight: 500; }
.linkish { font: inherit; font-weight: 650; color: var(--primary, #1B66C9); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.linkish:hover { text-decoration: underline; }
.panel.warn { border-left: 4px solid var(--warn, #B54708); background: var(--warn-bg, #FFFAEB); }
.ok-text { color: var(--ok, #1C7A4D); }
.shop-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.shop-steps li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shop-steps .gl-mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line, #C9CFD8); display: inline-grid; place-items: center; font-size: .8rem; font-weight: 800; flex: none; }
.shop-steps li.done .gl-mark { background: var(--ok, #1C7A4D); border-color: var(--ok, #1C7A4D); color: #fff; }
.shop-steps li.done > span:nth-child(2) { color: var(--muted); text-decoration: line-through; }

/* Onboarding chat */
.wz-chat { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line, #E3E6EE); border-radius: 14px; background: #fff; padding: 12px; margin-top: 12px; }
.chat-log { display: flex; flex-direction: column; gap: 8px; max-height: min(56vh, 520px); overflow-y: auto; padding: 4px; }
.chat-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; line-height: 1.45; }
.chat-msg p { margin: 0; white-space: pre-line; }
.chat-msg.bot { align-self: flex-start; background: #F1F4F9; border-bottom-left-radius: 4px; }
.chat-msg.me { align-self: flex-end; background: var(--primary, #1B66C9); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.typing p::after { content: " ●●●"; letter-spacing: 2px; opacity: .55; }
@media (prefers-reduced-motion: no-preference) { .chat-msg { animation: chat-in .18s ease-out; } @keyframes chat-in { from { opacity: 0; transform: translateY(4px); } } }
.chat-logo { max-width: 120px; max-height: 80px; display: block; background: #fff; border-radius: 8px; }
.chat-dock { display: grid; gap: 8px; }
.chat-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.chat-row .chat-in { flex: 1 1 220px; min-width: 0; }
.chat-finish { border-top: 1px solid var(--line, #E3E6EE); padding-top: 10px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-chip { font: inherit; font-size: .92rem; padding: 7px 12px; border-radius: 99px; border: 1.5px solid var(--line, #C9CFD8); background: #fff; cursor: pointer; }
.chat-chip.on { border-color: var(--primary, #1B66C9); background: var(--primary-bg, #EAF1FC); font-weight: 650; }
.chat-chip.on::before { content: "✓ "; }
.chat-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line, #C9CFD8); cursor: pointer; }
.chat-swatch:focus-visible, .chat-chip:focus-visible { outline: 3px solid var(--primary, #1B66C9); outline-offset: 2px; }
.ai-probe h3 { margin: 0 0 4px; }
.dns-fix { margin-top: 6px; }
.dns-tbl { border-collapse: collapse; width: 100%; max-width: 640px; font-size: .9rem; }
.dns-tbl th { text-align: left; font-weight: 600; color: var(--muted); padding: 6px 10px 6px 0; white-space: nowrap; width: 1%; }
.dns-tbl td { padding: 6px 8px 6px 0; border-top: 1px solid var(--line, #E3E6EE); }
.dns-tbl tr:first-child td, .dns-tbl tr:first-child th { border-top: 0; }
.dns-tbl code { word-break: break-all; font-size: .9rem; background: #F1F4F9; padding: 2px 6px; border-radius: 6px; }
.dns-tbl td:last-child { width: 1%; text-align: right; }
.lock-tag { display: inline-flex; align-items: center; gap: 3px; font-size: .72rem; font-weight: 650; color: #6B4F0F; background: #FFF4D6; border-radius: 99px; padding: 1px 7px; margin-top: 2px; }
.ap-tile.is-locked .ag-mini, .ag-tile.is-locked .ag-mini { opacity: .55; }
.who-for { font-size: .86rem; margin: 4px 0 10px; padding: 6px 10px; border-radius: 8px; background: #F1F4F9; color: var(--ink, #13202F); display: inline-block; }
.view-head .who-for { margin-top: 6px; }
.toast { display: flex; align-items: center; gap: 10px; }
.toast-ico { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: .8rem; background: #1C7A4D; color: #fff; }
.toast.err .toast-ico { background: #B42318; }
.save-state.saved::before { content: "✓ "; color: var(--ok, #1C7A4D); font-weight: 800; }

/* Welcome after paying: progress steps and the email code */
.wel-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; counter-reset: ws; }
.wel-steps li { flex: 1; font-size: 12px; color: var(--muted, #5B6271); border-top: 3px solid var(--line, #E3E5EA); padding-top: 6px; text-align: left; }
.wel-steps li.done { border-color: var(--ok, #2E8B57); }
.wel-steps li.now { border-color: var(--brand, #1B66C9); color: inherit; font-weight: 600; }
.welcome .su-form { text-align: left; margin-top: 12px; }
.code-input { font-size: 28px; letter-spacing: 10px; text-align: center; max-width: 240px; font-variant-numeric: tabular-nums; }

/* Onboarding: the chosen way to build, folded to one line so the chat sits at the top */
.start-chosen { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line, #E3E5EA); border-radius: 12px; margin-bottom: 12px; }
.start-chosen strong { flex: 1; }

.shop-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 4px; }
.shop-stats .panel { margin: 0 0 10px; }
.shop-stat { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }

.ok-panel { background: #EAF7EF; border-color: #BFE5CC; padding: 10px 12px; margin: 10px 0; }
.ok-panel p { margin: 6px 0 0; }
