/* Signed-in platform pages: sign-in, My account (owners) and Admin.
   The header and footer match the homepage (styles.css); this sheet is separate so the
   marketing pages' ?v= cache-buster is untouched by account changes (it versions by mtime). */
:root {
  --blue: #0877d1;
  --blue-dark: #0768b5;
  --ink: #142b42;
  --text: #2c3e50;
  --muted: #536579;
  --line: #dce6ef;
  --line-soft: #edf1f5;
  --pale: #f4f8fc;
  --danger: #b42318;
  --ok: #157f3b;
  --warn: #9a6700;
  --font: Inter, Arial, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--pale); color: var(--ink); font: 15px/1.55 var(--font); }
a { color: var(--blue-dark); }
:focus-visible { outline: 3px solid #148be5; outline-offset: 3px; }
h1 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -0.8px; }
h2 { margin: 0; font-size: 17px; line-height: 1.35; letter-spacing: -0.2px; }
p { margin: 0; }
code { font-size: 13px; background: #e9f0f7; padding: 1px 5px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 30; background: #fff; padding: 14px; }
.skip:focus-visible { top: 10px; } /* keyboard only, as the homepage: never on a click */
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 13.5px; }
.warn { color: var(--warn); font-weight: 600; }

/* ---------------------------------------------- header (as on the homepage) */
.top { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line-soft); }
.top-inner { width: min(1240px, 100% - 40px); margin-inline: auto; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-size: 23px; line-height: 1; font-weight: 800; letter-spacing: -1px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand > span { color: var(--blue); }
.brand-icon { width: 30px; height: 30px; margin-right: 9px; fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.top-nav { display: flex; align-items: center; gap: 28px; font-size: 13.5px; font-weight: 500; }
.top-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.top-nav a:hover { color: var(--blue); }
.account-pill { gap: 8px; padding: 0 18px; border: 1px solid var(--blue); border-radius: 28px; background: var(--blue); color: #fff !important; font-weight: 600; }
.account-pill:hover { background: var(--blue-dark); }
.account-pill svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 760px) {
  .top-nav > a:not(.account-pill) { display: none; }
  .top-inner { min-height: 64px; width: calc(100% - 32px); }
  .brand { font-size: 20px; }
  .brand-icon { width: 26px; height: 26px; }
}

/* ---------------------------------------------------- shell and sidebar */
.shell { flex: 1; width: min(1240px, 100% - 40px); margin: 28px auto 64px; }
.shell.has-side { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 32px; align-items: start; }
.page { min-width: 0; }
.shell:not(.has-side) .page { width: min(1000px, 100%); margin-inline: auto; }
.side { position: sticky; top: 100px; display: grid; gap: 4px; }
.side-title { font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 0 0 6px 12px; }
.side-label { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 16px 0 4px 12px; }
.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.side a:hover { background: #e8f0f8; }
.side a[aria-current="page"] { background: #fff; color: var(--blue-dark); font-weight: 650; box-shadow: 0 1px 2px rgba(20, 43, 66, 0.08); }
.side-badge { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.side-switch { margin: 16px 0 0 12px; font-size: 14px; }
.side-account { margin: 18px 0 0 12px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 2px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.side-account .btn-link { justify-self: start; padding: 0; min-height: 36px; }
@media (max-width: 900px) {
  .shell { width: calc(100% - 32px); margin-top: 16px; }
  .shell.has-side { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .side { position: static; overflow-x: auto; display: flex; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side-title, .side-label, .side-switch { display: none; }
  .side nav { display: flex; gap: 6px; }
  .side ul { display: flex; gap: 6px; }
  .side a { white-space: nowrap; min-height: 40px; background: #fff; border: 1px solid var(--line); }
  .side a[aria-current="page"] { border-color: var(--blue); box-shadow: none; }
  .side-account { display: none; }
}

/* ---------------------------------------------------------------- pages */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
.page-head .sub { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); overflow-wrap: anywhere; }
.crumbs { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px; margin: 0 0 18px; }
.card.narrow { max-width: 440px; margin: 24px auto; }
.card > h2, .card > form > h2 { margin-bottom: 10px; }
.card > p + p, .card > p + .actions, .card > p + meter { margin-top: 10px; }
.card > p + form { margin-top: 16px; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 14px; }
.card-head a { font-size: 14px; font-weight: 600; }
.card.empty { text-align: left; display: grid; gap: 12px; justify-items: start; }
.card.empty .actions { margin: 4px 0; }
.grid { display: grid; gap: 18px; align-items: start; } /* each card its own height: no empty space under a short one */
.grid > .card, .stack-cards > .card { margin: 0; }
.stack-cards { display: grid; gap: 18px; align-content: start; }
@media (min-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } .grid > .wide { grid-column: 1 / -1; } }
.big { font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.big span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* Tabs and filter chips */
.tabs { display: flex; gap: 4px; margin: 0 0 20px; box-shadow: inset 0 -1px 0 var(--line); overflow-x: auto; overflow-y: hidden; } /* the divider is an inset shadow the active underline covers: a border plus a -1px overlap stuck out of the scroll box, showing a vertical scrollbar on Windows */
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--muted); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--blue-dark); border-bottom-color: var(--blue); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.search { display: flex; gap: 8px; flex: 1 1 320px; max-width: 480px; }
.chips, .period { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.toolbar .chips { margin: 0; }
.chips a, .period a { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.chips a span { color: var(--muted); font-weight: 500; }
.chips a[aria-current="true"], .period a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips a[aria-current="true"] span { color: #c9d6e3; }

/* Forms */
.stack { display: grid; gap: 8px; }
.stack > .btn, .stack > .btn-secondary { justify-self: start; margin-top: 6px; }
label { font-weight: 600; font-size: 14px; }
input[type=text], input[type=email], input[type=url], input[type=tel], input[type=search], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #b9c8d6; border-radius: 10px;
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
}
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #b9dcf8; outline-offset: 0; border-color: var(--blue); }
.inline-field { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.inline-field input { flex: 1 1 auto; min-width: 0; }
.inline-field input[inputmode=numeric] { flex: 0 0 96px; }
.unit { color: var(--muted); white-space: nowrap; }
.copy { font-size: 14px !important; margin: 4px 0 8px; background: var(--pale) !important; }
.choices { border: 0; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choices legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.choices.stacked { display: grid; }
.choice { position: relative; display: flex; cursor: pointer; font-weight: 500; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice > span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; }
.choice input:checked + span { border-color: var(--blue); background: #eef6fd; color: var(--blue-dark); font-weight: 650; }
.choice input:focus-visible + span { outline: 3px solid #148be5; outline-offset: 2px; }
.choice-block > span { display: grid; gap: 1px; width: 100%; padding: 10px 14px; border-radius: 12px; }
.choice-block small { color: var(--muted); font-weight: 400; font-size: 13px; }
.choice-block input:checked + span small { color: var(--blue-dark); }

/* Buttons (pill-shaped, as on the homepage) */
.btn, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 28px; border: 1px solid var(--blue); background: var(--blue); color: #fff; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color 0.15s; }
.btn:hover { background: var(--blue-dark); }
.btn-secondary { background: #fff; color: var(--blue-dark); }
.btn-secondary:hover { background: #eef6fd; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn-link { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--blue-dark); font: inherit; text-decoration: underline; cursor: pointer; }
.btn-link.danger { color: var(--danger); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.actions form { margin: 0; }
.page-head .actions { margin: 0; }

/* Messages */
.flash { padding: 12px 14px; border-radius: 10px; margin: 0 0 16px; border: 1px solid; overflow-wrap: anywhere; }
.flash-success { background: #ecf8f0; border-color: #b7e2c4; color: var(--ok); }
.flash-error { background: #fdf0ef; border-color: #f2c4bf; color: var(--danger); }
.flash-info { background: #eef6fd; border-color: #c3dcf3; }
.notice { background: #fff8e6; border: 1px solid #f1dda3; padding: 10px 14px; border-radius: 10px; }

/* Tables */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; }
.card .table-wrap { border: 0; border-radius: 0; margin: 0 -22px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
th { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td a { font-weight: 600; text-decoration: none; }
td a:hover { text-decoration: underline; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Long names, web addresses and emails wrap inside their cell instead of widening the table (owner, 10 November 2026: no sideways scroll). */
td.wrap-any { overflow-wrap: break-word; min-width: 9em; } /* breaks at the <wbr> after dots and @ first */

/* Status pills */
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #e9f0f7; color: var(--ink); white-space: nowrap; }
.status-live { background: #ecf8f0; color: var(--ok); }
.status-preview { background: #eef6fd; color: var(--blue-dark); }
.status-draft { background: #f1f3f6; color: var(--muted); }
.status-offline { background: #fdf0ef; color: var(--danger); }

meter { width: 100%; height: 10px; margin: 6px 0 0; }

/* Facts and headline numbers */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 0; }
.facts div { background: var(--pale); border-radius: 10px; padding: 12px 14px; }
.facts dt { font-size: 12.5px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 750; font-size: 20px; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; }
a.kpi:hover { border-color: var(--blue); }
.kpi p { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi strong { display: block; margin-top: 4px; font-size: 28px; letter-spacing: -0.8px; font-variant-numeric: tabular-nums; }
.kpi-note { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }

/* Site cards (My account, several websites) */
.site-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.site-card { margin: 0; display: grid; gap: 0; align-content: start; }
.site-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.site-card h2 a { color: var(--ink); text-decoration: none; }
.site-url { overflow-wrap: anywhere; }
.site-url a { display: inline-flex; align-items: center; min-height: 36px; }

/* Lists of things to act on */
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li + li { border-top: 1px solid var(--line-soft); }
.mini-list a { display: grid; gap: 2px; padding: 10px 0; color: var(--ink); text-decoration: none; }
.mini-list a:hover strong { color: var(--blue-dark); }
.mini-list span { color: var(--muted); font-size: 14px; }

/* Change requests */
.requests { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.request { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.request-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; font-size: 13.5px; }
.request-head time { color: var(--muted); margin-left: auto; }
.request-head a { font-weight: 650; }
.request-msg { white-space: normal; overflow-wrap: anywhere; }
.req-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #fff4d6; color: var(--warn); }
.req-free, .req-accepted { background: #eef6fd; color: var(--blue-dark); }
.req-quoted { background: #f3ecff; color: #5b3db5; }
.req-done { background: #ecf8f0; color: var(--ok); }
.req-declined, .req-refused { background: #f1f3f6; color: var(--muted); }
.reply { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--pale); }
.reply-from { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.quote-box { margin-top: 12px; padding: 14px; border-radius: 10px; background: #f8f5ff; border: 1px solid #e3d9fb; }
.quote-box .actions { margin-top: 10px; }
.quote-box .hint { margin-top: 8px; }
.answer { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.answer-fields { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.answer-fields label { display: grid; gap: 4px; flex: 0 0 120px; }
.answer-fields .grow { flex: 1 1 260px; }

/* Settings rows */
.settings { padding: 0; }
.setting { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 20px 22px; border-top: 1px solid var(--line-soft); }
.setting:first-of-type { border-top: 0; }
.setting h2 { margin: 0 0 2px; font-size: 16px; }
.setting .hint { max-width: 52ch; }
.setting .inline-field { margin: 0; }
.setting-foot { padding: 16px 22px; border-top: 1px solid var(--line-soft); background: var(--pale); border-radius: 0 0 14px 14px; }

/* ---------------------------------------------------------------- analytics */
.an-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.an-head .period { margin: 0; }
.an-chart .bars { display: block; width: 100%; height: 190px; }
.bars rect { fill: var(--blue); }
.bars rect:hover { fill: var(--ink); }
.bars line { stroke: var(--line); stroke-width: 1; }
.bars-axis { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.an-grid { display: grid; gap: 18px; }
.an-grid > .card { margin: 0; }
@media (min-width: 900px) { .an-grid { grid-template-columns: 1fr 1fr; } .an-wide { grid-column: 1 / -1; } }
.an-table td, .an-table th { padding: 9px 0; }
.an-table th + th, .an-table td + td { padding-left: 14px; }
.an-table .share { width: 32%; }
.an-table .share meter { margin: 0; height: 8px; }
.an-table .path { overflow-wrap: anywhere; font-weight: 500; }
.table-scroll { overflow-x: auto; }
.an-map .world { display: block; width: 100%; height: auto; }
.world path { fill: #e4ebf2; stroke: #fff; stroke-width: 0.5; }
.world path.lv-1 { fill: #b9dcf8; }
.world path.lv-2 { fill: #7fbcee; }
.world path.lv-3 { fill: #3f98e0; }
.world path.lv-4 { fill: #0877d1; }
.world path.lv-5 { fill: #0b4f8a; }
.world path:hover { stroke: var(--ink); stroke-width: 1; }

/* ---------------------------------------------- footer (as on the homepage) */
.foot { background: #fff; border-top: 1px solid #e5ecf3; }
.foot-inner { width: min(1240px, 100% - 40px); margin-inline: auto; padding-block: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 20px; font-size: 12.5px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.foot a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--blue); }
@media (max-width: 760px) { .foot-inner { width: calc(100% - 32px); } }

/* Meters in the brand blue (storage, shares). */
meter { appearance: none; -webkit-appearance: none; border: 0; border-radius: 5px; background: #e9f0f7; }
meter::-webkit-meter-bar { background: #e9f0f7; border: 0; border-radius: 5px; height: 100%; }
meter::-webkit-meter-optimum-value { background: var(--blue); border-radius: 5px; }
meter::-webkit-meter-suboptimum-value { background: #e0a100; border-radius: 5px; }
meter::-webkit-meter-even-less-good-value { background: var(--danger); border-radius: 5px; }
meter::-moz-meter-bar { background: var(--blue); border-radius: 5px; }
.an-table meter::-webkit-meter-suboptimum-value, .an-table meter::-webkit-meter-even-less-good-value { background: var(--blue); }
@media (min-width: 1100px) {
  .an-grid { grid-template-columns: repeat(6, 1fr); }
  .an-grid > .card { grid-column: span 3; }
  .an-grid > .an-wide { grid-column: 1 / -1; }
  .an-grid > .an-third { grid-column: span 2; }
}
.card > h1 + p { margin-top: 8px; } .card > h1 + p + form, .card > p + .stack { margin-top: 16px; }

/* ------------------------------------------------- icons and the phone tab bar */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side a { justify-content: flex-start; gap: 11px; }
.side a .side-text { flex: 1; }
.side a .icon { color: var(--muted); }
.side a[aria-current="page"] .icon { color: var(--blue); }
.tabbar { display: none; }
@media (max-width: 900px) {
  /* My account: the sections move to a bar fixed along the bottom, like an app. */
  .shell.has-tabbar .side { display: none; }
  .shell.has-tabbar { margin-bottom: 96px; }
  .tabbar {
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(20, 43, 66, 0.06);
  }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 3px; min-height: 56px; padding: 7px 4px 5px; border-radius: 12px; color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none; }
  .tabbar a .icon { width: 24px; height: 24px; }
  .tabbar a[aria-current="page"] { color: var(--blue-dark); background: #eef6fd; }
  .tab-dot { position: absolute; top: 6px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--danger); border: 2px solid #fff; }
  .shell.has-tabbar ~ .foot { padding-bottom: 84px; }
}

/* ---------------------------------------------------------------- odds and ends */
.page-hint { margin: -8px 0 16px; }
.kpi .kpi-small { font-size: 17px; letter-spacing: -0.2px; }
.tab-count { margin-left: 6px; color: var(--muted); font-weight: 500; }
.gap { margin-top: 12px; display: block; }
.picker { display: flex; align-items: center; gap: 8px; }
.picker label { white-space: nowrap; color: var(--muted); }
.picker select { min-width: 200px; width: auto; }
.picker button[hidden], .btn[hidden] { display: none; } /* .btn sets display, which would beat [hidden] */
@media (max-width: 600px) { .picker { width: 100%; } .picker select { flex: 1; min-width: 0; } }
.site-note { color: var(--muted); }
.storage-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.site-card meter { margin-top: 0; }
.details { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }

/* Request lists */
.req-list { list-style: none; margin: 0; padding: 0; }
.req-list li + li { border-top: 1px solid var(--line-soft); }
.req-row { display: grid; gap: 4px; padding: 12px 4px; color: var(--ink); text-decoration: none; border-radius: 10px; }
.req-row:hover { background: var(--pale); }
.req-row-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; }
.req-row-top time { margin-left: auto; color: var(--muted); }
.req-row-text { color: var(--text); overflow-wrap: anywhere; }
.req-row.is-unread .req-row-text { font-weight: 650; color: var(--ink); }
.new-dot { display: inline-flex; align-items: center; gap: 5px; color: var(--danger); font-weight: 700; font-size: 12.5px; }
.new-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.req-new, .req-in_progress { background: #fff4d6; color: var(--warn); }
.req-waiting { background: #eef6fd; color: var(--blue-dark); }

/* A request as a conversation: the owner on the left, us on the right. */
.req-layout { display: grid; gap: 18px; }
.req-layout > aside { display: grid; gap: 18px; align-content: start; }
.req-layout .card { margin: 0; }
@media (min-width: 1100px) { .req-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.msg { max-width: 88%; padding: 14px 16px; border-radius: 14px; background: var(--pale); }
.msg-owner { justify-self: start; border-bottom-left-radius: 4px; }
.msg-us { justify-self: end; background: #eef6fd; border-bottom-right-radius: 4px; }
.msg-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 4px; font-size: 13px; }
.msg-meta time { color: var(--muted); }
.msg-body { overflow-wrap: anywhere; }
.msg-system { justify-self: center; max-width: none; padding: 6px 12px; background: none; color: var(--muted); font-size: 13px; text-align: center; }
.msg-system time { margin-left: 6px; }
.quote-box { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid #e3d9fb; }
.quote-box .actions { margin-top: 10px; }
.quote-box .hint { margin-top: 8px; }
.quote-state { margin-top: 6px; font-weight: 650; color: var(--muted); }
.quote-state.ok { color: var(--ok); }
.reply-extras { display: flex; flex-wrap: wrap; gap: 10px; }
.reply-extras label { display: grid; gap: 4px; flex: 1 1 180px; }
.reply-extras small, .file-field small { font-weight: 400; color: var(--muted); }

/* Attachments */
.files { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.file-thumb { display: block; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-link { display: flex; align-items: center; gap: 10px; min-height: 48px; max-width: 280px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none; }
.file-link:hover { border-color: var(--blue); }
.file-link span:last-child { display: grid; min-width: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; }
.file-link small { font-weight: 400; color: var(--muted); font-size: 12px; }
.file-kind { flex: none; display: grid; place-items: center; width: 40px; height: 36px; border-radius: 8px; background: var(--pale); color: var(--blue-dark); font-size: 11px; font-weight: 800; }
.file-field { display: grid; gap: 6px; }
.file-field input[type=file] { font: inherit; font-size: 15px; max-width: 100%; }

/* ---------------------------------------------- the header's account menu */
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary::after { content: ""; width: 7px; height: 7px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.account-drop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 240px; padding: 8px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; box-shadow: 0 12px 32px rgba(20, 43, 66, 0.16); display: grid;
}
.account-who { display: grid; gap: 1px; padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.account-who strong { color: var(--ink); font-size: 14px; }
.account-drop a, .account-drop button {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--ink) !important;
  font: inherit; font-size: 14.5px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; width: 100%;
}
.account-drop a:hover, .account-drop button:hover { background: var(--pale); }
.account-drop form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line-soft); }
.account-drop button { color: var(--danger) !important; font-weight: 600; }

/* --------------------------------------------- phones: tab bar, no footer */
@media (max-width: 900px) {
  .shell.has-tabbar ~ .foot { display: none; }
  .tabbar a { font-size: 11.5px; }
}

/* ------------------------------------------------------- website cards */
.site-card { padding: 0; overflow: hidden; }
.site-card-body { display: grid; gap: 10px; padding: 18px 20px 20px; }
.site-thumb { display: block; width: 100%; height: 150px; object-fit: cover; object-position: center; background: var(--pale); }
.site-thumb-empty { display: grid; place-items: center; color: #9db3c8; font-size: 48px; font-weight: 800; }
.site-card .actions { margin-top: 4px; }
.site-card .actions .btn, .site-card .actions .btn-secondary { min-height: 42px; padding: 0 16px; }

/* ------------------------------------------------------------- requests */
.req-item { display: flex; align-items: center; gap: 6px; }
.req-item .req-row { flex: 1; min-width: 0; }
.req-del { margin: 0; }
.req-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #f1f3f6; color: var(--muted); }
.req-tag-deleted { background: #fdf0ef; color: var(--danger); }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: #fdf0ef; color: var(--danger); }
.btn-danger { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 28px; border: 1px solid #f2c4bf; background: #fff; color: var(--danger); font: inherit; font-weight: 650; cursor: pointer; white-space: nowrap; }
.btn-danger:hover { background: #fdf0ef; }
.btn-danger .icon { width: 18px; height: 18px; }
.empty-state { display: grid; gap: 10px; justify-items: start; padding: 8px 0; }
.empty-state p { color: var(--muted); max-width: 46ch; }

/* ----------------------------------------------------- the storage sheet */
.sheet { width: min(460px, 100% - 24px); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: 18px; color: var(--ink); box-shadow: 0 24px 64px rgba(20, 43, 66, 0.28); }
.sheet::backdrop { background: rgba(20, 43, 66, 0.45); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 12px 22px; border-bottom: 1px solid var(--line-soft); }
.sheet-head h2 { font-size: 18px; }
.sheet .storage-form { padding: 18px 22px 22px; }
@media (max-width: 600px) {
  /* On a phone the sheet rises from the bottom and fills most of the screen. */
  .sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: 18px 18px 0 0; max-height: 92%; }
}
.close-btn { position: relative; flex: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--pale); cursor: pointer; }
.close-btn::before, .close-btn::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; background: var(--ink); border-radius: 1px; transform: rotate(45deg); }
.close-btn::after { transform: rotate(-45deg); }
.storage-form { display: grid; gap: 12px; }
.storage-now { color: var(--muted); }
.storage-size { display: flex; justify-content: space-between; align-items: baseline; }
.storage-size output { font-size: 26px; font-weight: 800; letter-spacing: -0.6px; color: var(--ink); }
.storage-form input[type=range] { width: 100%; accent-color: var(--blue); height: 32px; }
.storage-scale { display: flex; justify-content: space-between; margin-top: -8px; font-size: 12.5px; color: var(--muted); }
.storage-price { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--pale); }
.storage-price p { font-size: 13px; color: var(--muted); font-weight: 600; }
.storage-price strong { font-size: 28px; letter-spacing: -0.8px; }
.storage-price span { font-size: 13.5px; color: var(--muted); }
.narrow-card { max-width: 520px; }
.storage-form .actions { margin-top: 4px; }

/* A grid cell grows to fit its widest child unless told otherwise, and a wide table then
   pushes the whole page past a phone's screen. Cells may shrink; tables scroll inside. */
.grid > *, .an-grid > *, .req-layout > *, .stack-cards > * { min-width: 0; }
@media (max-width: 900px) {
  .table-wrap td, .table-wrap th { white-space: nowrap; }
  .table-wrap td .muted { display: block; }
}

/* Tables become cards on a phone or tablet, and at ANY width where they would not fit (owner, 10 November 2026: never a
 table to scroll sideways). account.js adds data-label from the column headings and decides: .as-cards. */
.table-wrap.as-cards { overflow: visible; background: none; border: 0; }
.card .table-wrap.as-cards { margin: 0; }
.table-wrap.as-cards table, .table-wrap.as-cards tbody, .table-wrap.as-cards tr, .table-wrap.as-cards td { display: block; width: 100%; }
.table-wrap.as-cards thead { display: none; }
.table-wrap.as-cards tr { padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.card .table-wrap.as-cards tr { background: var(--pale); border-color: transparent; }
.table-wrap.as-cards td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; white-space: normal; text-align: right; }
.table-wrap.as-cards td::before { content: attr(data-label); color: var(--muted); font-size: 13px; text-align: left; flex: none; max-width: 50%; }
.table-wrap.as-cards td:first-child { display: block; text-align: left; padding-bottom: 6px; }
.table-wrap.as-cards td:first-child::before { content: none; }
.table-wrap.as-cards td.num { text-align: right; }

/* Confirmation windows (forms with data-confirm). */
dialog.confirm { width: min(400px, 100% - 32px); padding: 24px; border: 0; border-radius: 16px; color: var(--ink); box-shadow: 0 24px 64px rgba(20, 43, 66, 0.28); }
dialog.confirm::backdrop { background: rgba(20, 43, 66, 0.45); }
.confirm-text { font-size: 16px; font-weight: 600; }
.btn-danger-fill { background: var(--danger) !important; border-color: var(--danger) !important; color: #fff !important; }

/* The site's status, as the steps it moves through. */
/* A website's status as one row of steps (owner, 10 November 2026: the four explained steps made the card far too long). */
.journey-row { list-style: none; margin: 2px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.journey-row li { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.journey-row li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.journey-row li.is-done::before { background: var(--blue); border-color: var(--blue); }
.journey-row li.is-current { border-color: var(--blue); color: var(--ink); font-weight: 650; background: #f2f8fe; }
.journey-row li.is-current::before { border-color: var(--blue); box-shadow: 0 0 0 3px #d6eafb; }
/* A website's Manage tab: two columns that each stack on their own, so one long card never stretches or pushes the other side. */
.manage-grid { align-items: start; }
/* A free website's launch: the domain owner's details, which Stripe Checkout would otherwise collect. */
.domain-owner { margin: 6px 0 16px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--pale); display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.domain-owner legend { padding: 0 6px; font-weight: 700; font-size: 15px; }
.domain-owner > p, .domain-owner > label, .domain-owner > input { grid-column: 1 / -1; }
.domain-owner > label[for="dc-city"], .domain-owner > label[for="dc-postcode"] { grid-column: auto; grid-row: 8; }
.domain-owner > #dc-city, .domain-owner > #dc-postcode { grid-column: auto; grid-row: 9; }
.domain-owner > input { margin-bottom: 8px; }
@media (max-width: 560px) { .domain-owner { grid-template-columns: 1fr; } .domain-owner > label[for="dc-city"], .domain-owner > label[for="dc-postcode"], .domain-owner > #dc-city, .domain-owner > #dc-postcode { grid-row: auto; } }
/* Type DELETE, then the button beside it: a short box, not one stretched across the card. */
.delete-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.delete-row input { width: 11em; max-width: 100%; }
.pitch-more ul { max-height: 320px; overflow-y: auto; }
.more { margin-top: 12px; }
.more summary { cursor: pointer; color: var(--blue-dark); font-weight: 600; font-size: 14px; min-height: 36px; display: inline-flex; align-items: center; }

/* Website card buttons: equal widths per row; a button left alone on a row fills it (owner: no
   half-width orphan), and Launch always takes its own row. */
.site-card .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.site-card .actions > * { flex: 1 1 120px; }
.site-card .actions > .btn-launch { flex-basis: 100%; }
.site-card .actions form, .site-card .actions .btn, .site-card .actions .btn-secondary, .site-card .actions button { width: 100%; }
.btn-launch { gap: 8px; grid-column: 1 / -1; background: var(--ok) !important; border-color: var(--ok) !important; color: #fff !important; }
.btn-launch:hover { background: #106631 !important; }
.btn-launch .icon { width: 19px; height: 19px; }
.btn-wide { width: 100%; min-height: 52px; font-size: 16px; }

/* A switch-style checkbox (Settings). */
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; font-size: 15px; }
.switch input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 44px; height: 26px; margin: 0; border-radius: 13px; background: #c9d6e3; cursor: pointer; transition: background-color 0.15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(20, 43, 66, 0.25); transition: transform 0.15s; }
.switch input:checked { background: var(--blue); }
.switch input:checked::after { transform: translateX(18px); }

/* Billing and summaries. */
.bill { margin-bottom: 18px; }
.bill-lines { display: grid; gap: 0; margin: 0 0 10px; }
.bill-lines div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.bill-lines dt { color: var(--muted); overflow-wrap: anywhere; }
.bill-lines dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }
.bill-total { border-bottom: 0 !important; }
.bill-total dt { color: var(--ink); font-weight: 700; }
.bill-total dd { font-size: 20px; font-weight: 800; }

/* Launch: two option cards, domain search, summary. */
.choice-cards { display: grid; gap: 12px; margin-bottom: 18px; }
@media (min-width: 700px) { .choice-cards { grid-template-columns: 1fr 1fr; } }
.choice-card { display: grid; gap: 4px; padding: 20px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; }
.choice-card:hover { border-color: #9cc8ee; }
.choice-card.is-chosen { border-color: var(--blue); background: #f2f8fe; }
.choice-card strong { font-size: 17px; }
.choice-card .addr { font-weight: 600; color: var(--blue-dark); overflow-wrap: anywhere; }
.choice-card .endings { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.choice-card .endings span { padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: var(--ink); }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.info-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--blue-dark); font-size: 14px; font-weight: 600; text-decoration: none; }
.info-link:hover { text-decoration: underline; }
.info-i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; font: 700 13px/1 Georgia, serif; font-style: italic; }
.sheet-body { padding: 16px 22px 22px; overflow-y: auto; }
.sheet-body h3 { margin: 18px 0 6px; font-size: 15px; }
.ending-list { display: grid; gap: 0; margin: 0; }
.ending-list div { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.ending-list dt { font-weight: 700; overflow-wrap: anywhere; }
.ending-list dd { margin: 2px 0 0; color: var(--muted); }
.tips { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 4px; }
.domain-search { display: flex; gap: 8px; }
.domain-search input { flex: 1; min-width: 0; }
.domains { list-style: none; margin: 16px 0 10px; padding: 0; display: grid; gap: 8px; }
.domain-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 14px; border-radius: 12px; background: var(--pale); }
.domain-name { flex: 1 1 180px; font-weight: 700; overflow-wrap: anywhere; }
.domain-state { font-size: 13px; font-weight: 700; }
.is-available .domain-state { color: var(--ok); }
.is-taken { opacity: 0.7; }
.is-taken .domain-state, .is-unknown .domain-state { color: var(--muted); }
.domain-price { font-weight: 600; }
.domain-row .btn-secondary { min-height: 40px; }
.summary h2 { margin-bottom: 8px; }
.summary form { margin-top: 14px; }
.launch-done { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 32px 22px; }
.launch-done p { max-width: 46ch; color: var(--muted); }
.done-icon { position: relative; width: 56px; height: 56px; border-radius: 50%; background: #ecf8f0; margin-bottom: 6px; }
.done-icon::after { content: ""; position: absolute; left: 20px; top: 15px; width: 13px; height: 22px; border-right: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(45deg); }

/* Admin: launches. */
.launch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.launch-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px; border-radius: 12px; background: var(--pale); }
.launch-item > div:first-child { min-width: 0; flex: 1 1 260px; overflow-wrap: anywhere; }
.launch-state { margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--warn); }
.launch-item .actions { margin: 0; align-items: center; }
.setting-wide { display: grid; gap: 10px; }
.setting-wide textarea { max-width: 360px; font-family: inherit; }

/* Billing: one bill, a line per website. */
.bill-sites { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bill-site { padding: 14px 16px; border-radius: 12px; background: var(--pale); }
.bill-site-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bill-site-price { font-weight: 800; font-size: 18px; white-space: nowrap; }
.bill-site-price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.bill-parts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.bill-parts li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.bill-site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 14px; margin-top: 10px; font-size: 13.5px; }
.bill-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.bill-links a { font-weight: 600; }
.bill-links form { margin: 0; }
.bill-links .btn-link { min-height: 36px; padding: 0; font-weight: 600; font-size: 13.5px; }
.bill-links a.danger { color: var(--danger); }
.bill-site.is-cancelled { opacity: 0.75; }
.cancel-form { display: grid; gap: 10px; }
.cancel-form p { margin: 0 0 4px; color: var(--muted); }
.cancel-form input { font-size: 16px; text-transform: uppercase; }
.bill-grand { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 6px; padding-top: 14px; border-top: 2px solid var(--line); font-weight: 700; }
.bill-grand strong { font-size: 24px; letter-spacing: -0.5px; }
.card > .bill-parts { margin-bottom: 10px; }

/* Admin > Accounts: sort by last active or joined. */
.sort-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 14px; }
.sort-links span { margin-right: 4px; color: var(--muted); }
.sort-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; }
.sort-links a[aria-current] { border-color: var(--blue); background: var(--blue); color: #fff; }

/* The pre-launch lock's "coming soon" page (html/gate.php). */
.gate-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.gate { width: min(440px, 100%); display: grid; gap: 12px; text-align: center; }
.gate-brand { margin: 0 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.gate-brand span { color: var(--blue); }
.gate h1 { margin: 0; font-size: 34px; letter-spacing: -0.8px; }
.gate .sub { margin: 0 0 12px; color: var(--muted); }
.gate-form { display: grid; gap: 8px; text-align: left; margin-top: 10px; }
.gate-team summary { cursor: pointer; color: var(--muted); font-size: 14px; list-style: none; min-height: 44px; display: inline-flex; align-items: center; }
.gate-team summary::-webkit-details-marker { display: none; }
.gate-team summary:hover { color: var(--ink); }
.gate-row { display: flex; gap: 8px; }
.gate-row input { flex: 1; min-width: 0; font-size: 16px; }
.gate-error { margin: 0; color: var(--danger); font-weight: 600; }

/* Website settings: its address and its storage, in one window. */
.settings-sheet { display: grid; gap: 14px; padding: 18px 22px 22px; }
.settings-sheet h3 { margin: 0; font-size: 15px; }
.settings-sheet .storage-form { padding: 0; }
.rename-form { display: grid; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.rename-form .btn { justify-self: start; }
.slug-row { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.slug-row:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 116, 213, 0.15); }
.slug-row input { flex: 1; min-width: 0; border: 0; border-radius: 0; font-size: 16px; box-shadow: none; outline: 0; }
.slug-row span { flex: none; padding: 0 12px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.card > .rename-form { padding-bottom: 0; border-bottom: 0; }

/* ------------------------------------------- a website's Settings page */
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -8px 0 4px; color: var(--muted); font-weight: 600; text-decoration: none; }
.back-link::before { content: ""; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.back-link:hover { color: var(--blue-dark); }
.settings-page { display: grid; gap: 18px; max-width: 620px; }
.settings-page + .settings-card { max-width: 620px; margin-top: 18px; }
/* New website: build it yourself, or have us design it. Two equal cards, stacked on phones. */
.start-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); max-width: 900px; }
.start-card { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 26px; }
.start-card > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #e8f3fc; color: var(--blue); }
.start-card h2 { font-size: 20px; margin: 0; }
.start-card p { margin: 0; }
.start-card > .btn { margin-top: 16px; align-self: flex-start; }
.start-form { display: grid; gap: 8px; margin-top: 16px; }
.start-form label { font-weight: 600; }
.start-form .btn { justify-self: start; margin-top: 8px; }
.settings-page .card { margin: 0; }
.settings-card { display: grid; gap: 10px; }
.settings-card h2 { font-size: 17px; }
.slug-note { margin: -4px 0 2px; padding: 10px 12px; border-radius: 10px; background: #e8f3fc; color: #0b3a63; font-size: 14px; }
.settings-save { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-save .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.slug-status { min-height: 1.55em; font-size: 14px; font-weight: 600; color: var(--muted); }
.slug-status.is-free { color: var(--ok); }
.slug-status.is-bad { color: var(--danger); }
.rename-form .btn:disabled { opacity: 0.45; cursor: not-allowed; }
dialog.confirm-changes { width: min(460px, 100% - 32px); }
.confirm-changes h2 { margin-bottom: 14px; font-size: 18px; }
.confirm-changes dl { display: grid; gap: 14px; margin: 0; }
.confirm-changes dl > div { display: grid; gap: 3px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.confirm-changes dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.confirm-changes dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; overflow-wrap: anywhere; }
.confirm-changes .was { color: var(--muted); text-decoration: line-through; }
.confirm-changes .arrow { color: var(--muted); }

/* ---------------------------- preview cards: time left to launch, as the card's header
   (owner's styling, 3 November 2026). The last three days turn red: running out is the point. */
.site-card-deadline { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 5px 15px; border-bottom: 1px solid var(--blue-dark); background: var(--blue-dark); color: #fff; font-size: 12px; font-weight: 600; }
.site-card-deadline time { flex: none; font-variant-numeric: tabular-nums; font-weight: 750; color: #fff; white-space: nowrap; }
/* Always one line (owner): the countdown never wraps; on a very narrow card the words give way with "…". */
.site-card-deadline span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-card-deadline.is-soon { background: var(--danger); border-bottom-color: var(--danger); }
a.site-card-deadline { text-decoration: none; } /* a cancelled website's bar opens Billing, where Keep is */
/* The same countdown inside Admin > a site's Preview link card: a rounded strip, slightly larger. */
.site-card-deadline.admin-deadline { margin: 2px 0 6px; padding: 9px 14px; border-radius: 8px; font-size: 14px; }
.site-card-deadline.admin-deadline time { font-size: 16px; }
/* The preview inside a website's Status card (the Preview link card was folded in, 10 November 2026). */
.preview-block { margin: 4px 0 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.preview-block .actions { gap: 4px 18px; flex-wrap: wrap; }
.preview-line { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.preview-line strong { color: var(--ink); }
.preview-line.is-over strong { color: var(--danger); }
.site-card-deadline.is-ended { background: #fdf0ef; border-bottom-color: #f3c7c2; color: var(--danger); }

/* An unpaid launch: a small notice FIXED in the bottom-right corner of the screen on a computer and
   full width above the tab bar on a phone, never scrolling with the page; it may cover cards
   (owner, 3 November 2026). Not sticky: on a short page sticky just sat at the end of the content.
   No extra room is added below the page for it (owner: it pushed the footer down). Closed by hand (account.js); without script it stays. */
.pay-bubbles { position: fixed; z-index: 40; right: 20px; bottom: 100px; /* clear of the footer on a computer (owner); phones use the tab-bar offset below */ display: grid; gap: 10px; width: min(340px, calc(100vw - 40px)); }
@media (max-width: 900px) {
  .pay-bubbles { left: 12px; right: 12px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom)); }
}
.pay-bubble { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 3px; width: 100%; box-sizing: border-box; padding: 14px 42px 14px 14px; border: 1px solid var(--danger); border-left-width: 4px; border-radius: 8px; background: #fff; color: var(--ink); box-shadow: 0 12px 32px rgba(20, 43, 66, 0.2); font-size: 14px; }
.pay-bubble[hidden] { display: none; }
.pay-bubble > :not(.pay-bubble-icon):not(.pay-bubble-close) { grid-column: 2; }
.pay-bubble-icon { grid-column: 1; grid-row: 1 / span 2; width: 26px; height: 26px; margin-top: 1px; fill: none; stroke: var(--danger); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pay-bubble p { margin: 0; }
.pay-bubble-title { font-weight: 700; overflow-wrap: anywhere; }
.pay-bubble .btn { justify-self: start; margin-top: 8px; min-height: 42px; padding: 0 18px; }
.pay-bubble-close { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.pay-bubble-close[hidden] { display: none; }
.pay-bubble-close:hover { background: var(--pale); }
.pay-bubble-close::before, .pay-bubble-close::after { content: ""; position: absolute; top: 17px; left: 10px; width: 16px; height: 2px; border-radius: 1px; background: var(--muted); transform: rotate(45deg); }
.pay-bubble-close::after { transform: rotate(-45deg); }


/* ------------------------------------------------------ launch summary */
.card.summary { display: grid; gap: 0; }
.summary .bill-lines { margin: 4px 0 16px; }
.bill-lines dt { display: grid; gap: 2px; }
.line-note { color: var(--muted); font-size: 13px; font-weight: 400; }
.bill-lines .total-line dt, .bill-lines .total-line dd { color: var(--ink); font-weight: 700; }
.bill-lines .due-line { padding: 16px 0 6px; border-bottom: 0; border-top: 2px solid var(--line); }
.bill-lines .due-line dt { color: var(--ink); font-weight: 700; font-size: 17px; }
.bill-lines .due-line dd { font-size: 20px; font-weight: 800; }
.summary > .hint { margin-bottom: 28px; }

/* ------------------------------------------------------ sign-in options */
.or-line { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 13px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { width: 100%; gap: 10px; }
.g-logo { width: 20px; height: 20px; flex: none; }
.slug-status:empty { display: none; }

/* Admin tables: storage used of the allowance, with what is left */
.store-cell { display: inline-grid; gap: 3px; justify-items: end; min-width: 130px; white-space: nowrap; }
.store-cell meter { width: 100%; height: 6px; margin: 0; }
.store-cell .muted { font-size: 12.5px; }

/* ------------------------------------------- claim a website with a code */
.claim-card { display: grid; gap: 12px; }
.claim-card h1 { margin: 0; }
.claim-card .actions { margin-top: 4px; }
.eyebrow { color: var(--blue-dark); font-size: 13px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; }
hr.soft { width: 100%; margin: 6px 0; border: 0; border-top: 1px solid var(--line-soft); }
.claim-card .stack { gap: 10px; }
.claim-card .stack > .btn { justify-self: stretch; margin-top: 0; }
.signin-claim { padding: 12px 14px; border-radius: 10px; background: #eef6fd; color: var(--ink); font-size: 14px; }
.code-box { display: inline-block; padding: 8px 14px; border: 1px dashed var(--blue); border-radius: 10px; font: 700 22px/1.2 var(--font); letter-spacing: 3px; color: var(--ink); background: #fff; }

/* ------------------------------------------------ the letter to post */
.letter { max-width: 640px; margin: 18px 0; padding: 48px 52px; background: #fff; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font-size: 15.5px; line-height: 1.65; }
.letter p { margin: 0 0 14px; }
.letter-brand { font-size: 24px; font-weight: 800; letter-spacing: -0.6px; color: var(--ink); margin-bottom: 28px !important; }
.letter-code { display: flex; align-items: center; gap: 24px; margin: 22px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.letter-code img { flex: none; }
.letter-code p { margin: 0 0 4px; }
.letter-url { font-weight: 700; color: var(--blue-dark); }
.letter-foot { margin-top: 28px !important; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 12px; }
@media (max-width: 560px) { .letter { padding: 28px 22px; } .letter-code { flex-direction: column; align-items: flex-start; } }
/* The posted leaflet (owner, 10 November 2026: "more like a card or leaflet", colourful, big heading). One A4 page. */
.letter.leaflet { padding: 0; overflow: hidden; border-radius: 18px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.leaflet-band { padding: 20px 32px 18px; background: linear-gradient(135deg, #0b5cab 0%, #1a7ee0 55%, #36a3ff 100%); color: #fff; }
.leaflet-brand { margin: 0 0 8px !important; font-size: 16px; font-weight: 800; letter-spacing: -0.5px; }
.leaflet-band h2 { margin: 0; max-width: 24ch; font-size: 30px; line-height: 1.08; letter-spacing: -1.2px; font-weight: 800; text-wrap: balance; }
.leaflet-for { margin: 6px 0 0 !important; font-size: 15px; opacity: 0.95; }
.leaflet-shot { display: block; width: 100%; height: auto; max-height: 440px; object-fit: contain; background: #eef5fc; padding: 14px 20px 0; } /* the photo gets the room (owner, 10 November 2026: a smaller band) */
.leaflet-body { padding: 26px 40px 10px; }
.leaflet-lead { font-size: 17.5px; line-height: 1.55; font-weight: 600; color: var(--ink); }
.leaflet-code { display: flex; align-items: center; gap: 22px; margin: 20px 0; padding: 18px 20px; border: 2px solid #cfe3f5; border-radius: 16px; background: #f6fafe; }
.leaflet-code img { flex: none; background: #fff; border-radius: 8px; }
.leaflet-code p { margin: 0 0 6px; }
.leaflet-step { font-size: 17px; font-weight: 750; color: var(--ink); }
.leaflet-tip { padding: 12px 16px; border-radius: 12px; background: #fff7e0; border: 1px solid #f3dc9a; font-size: 15px; }
.leaflet-small { color: var(--muted); font-size: 13.5px; }
@media (max-width: 560px) { .leaflet-band { padding: 16px 18px; } .leaflet-band h2 { font-size: 24px; } .leaflet-body { padding: 22px 22px 6px; } .leaflet-code { flex-direction: column; align-items: flex-start; } }
@media print {
  .top, .side, .tabbar, .foot, .flash, .skip, .no-print { display: none !important; }
  body, .shell, main { background: #fff !important; display: block !important; padding: 0 !important; margin: 0 !important; }
  .letter { max-width: none; margin: 0; padding: 0; border: 0; }
  /* The leaflet fills one A4 sheet edge to edge (owner, 10 November 2026: "no margins"): no page margin, so the browser adds
     no date or address either; sized in mm so it is the same on every printer. Untick "Headers and footers" is then not needed. */
  @page { size: A4; margin: 0; }
}

/* The leaflet as one A4 sheet, the SAME on a computer screen as on paper (owner, 10 November 2026: the page showed it
   narrower than it prints). Sized in mm; the heading on one line so the photo gets the room. Phones keep the fluid one. */
@media print, (min-width: 1200px) {
  .letter.leaflet { width: 210mm; height: 296mm; max-width: none; display: flex; flex-direction: column; overflow: hidden; break-inside: avoid; }
  .leaflet-band { padding: 7mm 16mm 6mm; }
  .leaflet-brand { font-size: 12pt; margin-bottom: 2.5mm !important; }
  .leaflet-band h2 { font-size: 24pt; max-width: none; white-space: nowrap; }
  .leaflet-for { font-size: 12pt; margin-top: 2mm !important; }
  .leaflet-shot { max-height: 114mm; padding: 4mm 10mm 0; }
  .leaflet-body { flex: 1; display: flex; flex-direction: column; padding: 7mm 18mm 9mm; font-size: 11.5pt; }
  .leaflet-lead { font-size: 13.5pt; }
  .leaflet-step { font-size: 13pt; }
  .leaflet-code { margin: 4mm 0; padding: 4mm 6mm; }
  .leaflet-tip { font-size: 11pt; }
  .leaflet-small { margin-top: auto !important; font-size: 10pt; }
}
@media screen and (min-width: 1200px) { .letter.leaflet { margin: 18px 0; box-shadow: 0 10px 30px rgba(20, 43, 66, 0.12); } } /* the sheet, on the page */
@media print { .letter.leaflet { margin: 0; border: 0; border-radius: 0; box-shadow: none; } }

/* ------------------------------------------- Admin > Settings: aligned rows */
form.settings { display: grid; gap: 18px; max-width: 920px; }
.settings-group { margin: 0; padding: 0; }
.settings-group > h2 { padding: 18px 22px 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--muted); }
.settings-group .setting { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: center; gap: 12px 32px; padding: 18px 22px; border-top: 0; }
.settings-group .setting + .setting { border-top: 1px solid var(--line-soft); }
.setting-text h3 { margin: 0 0 3px; font-size: 15px; font-weight: 650; }
.setting-text h3 label { font: inherit; margin: 0; color: inherit; }
.setting-text .hint { max-width: 56ch; }
.setting-control { display: flex; align-items: center; gap: 10px; min-width: 0; }
.setting-control input[type=text] { width: 110px; flex: none; text-align: right; }
.setting-control .unit { color: var(--muted); font-size: 14px; }
.setting-control textarea { width: 100%; min-height: 150px; font-family: inherit; }
.setting-control.choices { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
form.settings > .setting-foot { padding: 0; border: 0; background: none; }
@media (max-width: 700px) {
  .settings-group .setting { grid-template-columns: 1fr; }
}
.settings-group .setting:has(textarea), .settings-group .setting:has(.choices) { align-items: start; }
.settings-group > h2 + .setting { padding-top: 10px; }
.claimed-note { margin-top: 6px; padding: 8px 12px; border-radius: 8px; background: #fdf3e6; color: #6b4a00; font-size: 14px; }

/* Admin > an account with no websites */
.empty-account { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; border-color: #f2d7a8; background: #fffaf0; }
.empty-account .hint { max-width: 60ch; margin-top: 4px; }

/* ------------------------------------------- launch: numbered steps that lead on */
.launch-step { margin-bottom: 18px; }
.step-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 18px; letter-spacing: -0.3px; }
.card-head .step-title { margin: 0; }
.step-no { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
#find, #summary { scroll-margin-top: 88px; }
.summary .step-title { margin-bottom: 12px; }
/* The two address choices read as one pick-one control: a ring that fills when chosen. */
.choice-card { position: relative; padding-left: 54px; transition: border-color 0.18s ease-out, background-color 0.18s ease-out; }
.choice-card::before { content: ""; position: absolute; left: 20px; top: 22px; width: 20px; height: 20px; border: 2px solid #b8c9d9; border-radius: 50%; background: #fff; box-sizing: border-box; transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out; }
.choice-card.is-chosen::before { border-color: var(--blue); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--blue); }
.choice-card:focus-visible { outline: 3px solid #148be5; outline-offset: 3px; }
.domain-row { border: 2px solid transparent; }
.domain-row.is-chosen { border-color: var(--blue); background: #f2f8fe; }
.domain-picked { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 4px; color: var(--blue-dark); font-weight: 700; text-decoration: none; }
.domain-picked::before { content: ""; width: 7px; height: 13px; margin: -3px 4px 0 2px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); }
.launch-paybar { display: none; }
@media (max-width: 700px) {
  .step-title { font-size: 17px; }
  .choice-cards { gap: 10px; margin-bottom: 0; }
  .choice-card { padding: 14px 16px 14px 50px; gap: 2px; }
  .choice-card::before { left: 16px; top: 16px; }
  .choice-card strong { font-size: 16px; }
  .choice-card .endings { gap: 4px; margin: 4px 0 0; }
  .choice-card .endings span { padding: 2px 7px; font-size: 12px; }
  .domain-row { padding: 10px 12px; }
}
@media (max-width: 900px) {
  /* Due today and the next step, pinned above the tab bar while the summary is off screen. */
  .launch-paybar {
    position: fixed; z-index: 25; left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px;
    border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(20, 43, 66, 0.16);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease-out;
  }
  .launch-paybar.is-hidden { transform: translateY(calc(100% + 90px)); opacity: 0; pointer-events: none; }
  .launch-paybar p { display: grid; gap: 0; line-height: 1.2; }
  .launch-paybar span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
  .launch-paybar strong { font-size: 19px; font-variant-numeric: tabular-nums; }
  .launch-paybar .btn { min-height: 46px; padding: 0 18px; white-space: nowrap; }
  .shell.has-tabbar:has(.launch-paybar) { margin-bottom: 170px; }
}
@media (prefers-reduced-motion: reduce) { .launch-paybar, .choice-card, .choice-card::before { transition: none; } }
@media (max-width: 700px) { .domain-row .domain-price { margin-right: auto; } }
.choice-card { align-content: start; }
.site-history { margin: 14px 0 6px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 13.5px; } /* a website's dates, in its Status card */

/* Launch started but not paid: what was chosen, then pay or change */
.launch-pending { max-width: 620px; }
.pending-note { margin-bottom: 8px; padding: 12px 14px; border-radius: 10px; background: #fff7e6; color: #5c4100; font-size: 14.5px; }
.launch-pending > form { margin-top: 10px; }
.launch-pending .bill-lines { margin-bottom: 18px; }

/* ------------------------------------------------ sign-in and claim: the photo band */
html:has(.auth-stage) { overflow-x: clip; }
.auth-stage { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; margin: -28px calc(50% - 50vw) -64px; min-height: max(560px, calc(100svh - 150px)); background: #102338; }
.auth-photo { position: absolute; z-index: -2; top: 0; right: 0; width: 68%; height: 100%; object-fit: cover; object-position: 50% 64%; }
.auth-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #102338 0%, #102338 34%, rgba(16, 35, 56, 0.9) 48%, rgba(16, 35, 56, 0.45) 78%, rgba(16, 35, 56, 0.25) 100%); }
.auth-inner { width: min(1100px, 100% - 48px); margin: 0 auto; padding: 56px 0; display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 64px; align-items: center; }
.auth-copy h1 { max-width: 13ch; color: #fff; font-size: 46px; line-height: 1.08; letter-spacing: -1.5px; font-weight: 800; text-wrap: balance; }
.auth-copy p { max-width: 38ch; margin-top: 16px; color: #d4e1ee; font-size: 17px; line-height: 1.7; }
.auth-card { padding: 32px; border-radius: 18px; background: #fff; box-shadow: 0 2px 6px rgba(4, 16, 30, 0.12), 0 28px 64px rgba(4, 16, 30, 0.38); }
.auth-card h2 { margin-bottom: 18px; font-size: 23px; letter-spacing: -0.4px; }
.auth-note { margin: -8px 0 18px; color: var(--muted); }
.auth-form { display: grid; gap: 8px; }
.auth-form label { margin: 0; font-size: 14px; font-weight: 650; color: var(--ink); }
.auth-form input { min-height: 50px; font-size: 16px; }
.auth-form .btn { margin-top: 8px; min-height: 50px; font-size: 16px; }
.auth-card .btn-google { width: 100%; min-height: 50px; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(20, 43, 66, 0.06); font-size: 15px; }
.auth-card .btn-google:hover { background: var(--pale); border-color: #c9d8e6; }
.auth-card .or-line { margin: 20px 0 16px; }
.code-input { text-align: center; font-size: 28px !important; letter-spacing: 10px; font-variant-numeric: tabular-nums; }
.code-input::placeholder { color: #c5d2de; }
.auth-fine { margin-top: 16px; color: var(--muted); font-size: 13px; text-align: center; }
.auth-actions { display: grid; gap: 10px; }
.auth-alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 14px; text-align: center; }
.auth-alt form { margin: 0; }
.auth-alt .btn-link:disabled { color: var(--muted); text-decoration: none; cursor: default; font-variant-numeric: tabular-nums; }
/* "Remember this device" (layout.php lbwRememberBox): a 44px tap row, the box first. */
.remember-box { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; min-height: 44px; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.remember-box input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); }
.remember-box small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 400; }
.auth-card .signin-claim { margin: -6px 0 16px; }
/* Sign-in and claim open like the homepage hero (owner, 3 November 2026): the message, then the
   card, rise into place once. Pure CSS, so nothing waits on a script; never with reduced motion. */
@keyframes auth-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.auth-copy > *, .auth-card { animation: auth-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; /* backwards: lets go when done, so hover can still move .auth-show */ }
.auth-copy > :nth-child(2) { animation-delay: 0.09s; }
.auth-copy > :nth-child(3) { animation-delay: 0.18s; }
.auth-card { animation-delay: 0.14s; }
@media (prefers-reduced-motion: reduce) { .auth-copy > *, .auth-card { animation: none; } }
/* Claim: the business's own website on a computer and a phone, under the message (it opens the preview) */
.auth-show { display: block; max-width: 600px; margin-top: 30px; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 56px rgba(4, 16, 30, 0.45); transition: transform 0.2s ease; }
.auth-show:hover { transform: translateY(-2px); }
.auth-show img { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) { .auth-show { transition: none; } .auth-show:hover { transform: none; } }
@media (max-width: 860px) {
  .auth-stage { display: block; min-height: 0; margin: -16px calc(50% - 50vw) -64px; }
  .auth-photo { width: 100%; height: 300px; opacity: 0.55; object-position: 60% 60%; }
  .auth-shade { background: linear-gradient(180deg, rgba(13, 32, 54, 0.55) 0%, rgba(13, 32, 54, 0.85) 180px, #0d2036 300px); }
  .auth-inner { width: calc(100% - 32px); padding: 32px 0 40px; grid-template-columns: 1fr; gap: 22px; }
  .auth-copy h1 { font-size: 31px; letter-spacing: -0.9px; }
  .auth-copy p { margin-top: 10px; font-size: 15.5px; }
  .auth-card { padding: 24px 20px; border-radius: 16px; }
  .auth-show { margin-top: 20px; border-radius: 10px; }
}
.code-input-text { font-size: 22px !important; letter-spacing: 4px; text-transform: uppercase; }
@media (max-width: 860px) { .auth-stage { min-height: calc(100svh - 64px - 100px); } }

/* Admin > Owner: give the site to someone, optionally with the "your website is ready" email */
.give-form { display: grid; gap: 10px; }
.give-form .check, .summary .check { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14px; font-weight: 400; color: var(--text); cursor: pointer; }
.summary .check + .btn { margin-top: 18px; }
.give-form .check input, .summary .check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); }

/* Website card: the two settings a domain the owner already has needs at their provider */
.connect-guide { margin: 14px 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #f7f9fc; }
.connect-guide h3 { margin: 0 0 8px; font-size: 16px; }
.copy-btn { min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--blue, #0877d1); font: inherit; font-size: 13px; cursor: pointer; }
/* The connect guide (owner, 10 November 2026): one compact row per setting with a coloured dot. Green done,
   orange not right yet, grey not seen yet. Fits a phone without a table. */
.connect-lead { margin: 0 0 10px; font-size: 14px; }
.dns-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dns-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.dns-dot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: #b8c4d0; }
.dns-row.is-ok .dns-dot { background: #1f9d55; }
.dns-row.is-warn .dns-dot { background: #e08a00; }
.dns-what { display: grid; gap: 2px; min-width: 0; flex: 1; }
.dns-key { font-size: 13.5px; color: var(--muted); }
.dns-key strong { color: var(--ink); }
.dns-value { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dns-value code { font-size: 14px; overflow-wrap: anywhere; }
.dns-state { font-size: 13px; color: var(--muted); }
.dns-row.is-ok .dns-state { color: #1f7a45; }
.dns-row.is-warn .dns-state { color: #a35f00; }
.connect-check { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 12px 0 4px; }
.connect-help ul { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.domain-row .domain-own { margin-left: auto; font-size: 14px; font-weight: 600; }

/* My account > Settings > Your devices (remembered devices) */
.device-list { list-style: none; margin: 4px 0 14px; padding: 0; border-top: 1px solid var(--line); }
.device-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.device-list form { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.device-name { font-weight: 600; overflow-wrap: anywhere; }
.device-meta { color: var(--muted); font-size: 13.5px; }
.this-device { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 10px; background: #e8f3fc; color: #0b3a63; font-size: 12px; font-weight: 600; vertical-align: 1px; }

/* Messages > Customers (dashboard.php, lib/contact.php): a Test tag, one message's answers, its quiet tools. */
.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; background: #fff1c7; color: #5c4200; font-size: 12px; font-weight: 700; vertical-align: 1px; }
.enquiry { display: grid; gap: 16px; }
.enquiry-answers { display: grid; gap: 14px; margin: 0; }
.enquiry-answers dt { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.enquiry-answers dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.enquiry-tools { margin-top: 12px; gap: 4px 18px; }
.enquiry-tools form { margin: 0; }

/* Compact settings retain clear labels and generous switch targets on phones. */
.settings-group > .hint { margin: 8px 22px 12px; }
.settings-group > .switch { min-height: 48px; padding: 10px 22px; }
.settings-group > .switch + .switch { border-top: 1px solid var(--line-soft); }
.settings-group > .switch:last-child { margin-bottom: 8px; }
.settings-group .setting { padding-top: 14px; padding-bottom: 14px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
/* Files a visitor sent with a message (dashboard-messages.php). */
.enquiry-files-title { font-size: 16px; margin: 18px 0 8px; }
.enquiry-files { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.enquiry-files li { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.enquiry-files img, .enquiry-files .file-badge { flex: none; width: 56px; height: 56px; border-radius: 6px; object-fit: cover; background: #eef3f8; }
.enquiry-files .file-badge { display: grid; place-items: center; color: var(--blue-dark); font-weight: 800; font-size: 12px; }
.enquiry-files div { display: grid; gap: 2px; min-width: 0; }
.enquiry-files div a { font-weight: 600; overflow-wrap: anywhere; }
/* What uses your storage (website Settings). */
.storage-parts { display: grid; gap: 10px; margin: 0; }
.storage-parts div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); align-items: center; gap: 12px; }
.storage-parts dt { font-size: 14px; color: var(--muted); }
.storage-parts dd { display: flex; align-items: center; gap: 10px; margin: 0; }
.storage-parts meter { flex: 1; min-width: 0; height: 10px; }
.storage-parts span { flex: none; min-width: 5em; text-align: right; font-size: 14px; }
@media (max-width: 480px) { .storage-parts div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
/* Add photos: choose the gallery (dashboard.php?photos=). */
.gallery-choices { display: grid; gap: 8px; }
.gallery-choice { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; }
.gallery-choice:has(input:checked) { border-color: var(--blue); background: #f2f8fe; }
.gallery-choice input { width: 20px; height: 20px; flex: none; accent-color: var(--blue); }
.gallery-choice span { display: grid; gap: 2px; }
.gallery-choice small { color: var(--muted); }
.gallery-choice.is-full { opacity: .6; cursor: default; }
.gallery-group { margin: 8px 0 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.gallery-group:first-child { margin-top: 0; }

/* Admin > System (app/lib/admin-system.php): a thin segmented bar + a list carrying every figure.
   Eight storage parts in a fixed order; palette run through the dataviz validator (all checks pass). */
.sys-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sys-grid > .wide { grid-column: 1 / -1; }
.sys-bar { display: block; width: 100%; height: 8px; margin: 6px 0 16px; border-radius: 4px; overflow: hidden; background: #e9f0f7; }
.sys-gaps line { stroke: #fff; stroke-width: 2px; }
.sys-c1 { fill: #2a78d6; background: #2a78d6; }
.sys-c2 { fill: #eb6834; background: #eb6834; }
.sys-c3 { fill: #1baf7a; background: #1baf7a; }
.sys-c4 { fill: #eda100; background: #eda100; }
.sys-c5 { fill: #e87ba4; background: #e87ba4; }
.sys-c6 { fill: #008300; background: #008300; }
.sys-c7 { fill: #6250d6; background: #6250d6; }
.sys-c8 { fill: #e34948; background: #e34948; }
.sys-places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.sys-place-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sys-place-head h3 { font-size: 15px; }
.sys-place-head strong { font-variant-numeric: tabular-nums; }
.sys-measured { margin-top: 14px; }
.sys-list, .sys-sites { list-style: none; margin: 0; padding: 0; }
.sys-list li { display: grid; grid-template-columns: 10px 1fr auto 76px; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sys-swatch { width: 10px; height: 10px; border-radius: 3px; }
.sys-num, .sys-share { font-variant-numeric: tabular-nums; text-align: right; }
.sys-share { color: var(--muted); }
.sys-sites li { padding: 10px 0; border-top: 1px solid var(--line); }
.sys-sites a { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); text-decoration: none; font-size: 14px; }
.sys-sites a:hover .sys-name { color: var(--blue); }
.sys-sites .sys-num { color: var(--muted); white-space: nowrap; }
.sys-sites meter { height: 8px; }
.sys-flag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 10px; background: #fff4d6; color: #7a5300; font-size: 12px; font-weight: 600; }
.sys-flag.sys-full { background: #fde8e8; color: #9b1c1c; }
.sys-state { font-weight: 650; margin-bottom: 8px; }
.sys-state::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; vertical-align: 1px; }
.sys-good::before { background: #1f8a4c; }
.sys-bad::before { background: var(--danger); }
.sys-dl { margin: 0 0 10px; }
.sys-dl div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sys-dl dt { color: var(--muted); }
.sys-dl dd { margin: 0; text-align: right; }
@media (max-width: 860px) { .sys-grid, .sys-places { grid-template-columns: minmax(0, 1fr); } .sys-list li { grid-template-columns: 10px 1fr auto 52px; } }
/* System > Health: one line per check, a status dot plus words (never colour alone). */
.sys-health { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.sys-health li { display: grid; grid-template-columns: 10px auto minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sys-health-detail { color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.sys-dot { width: 9px; height: 9px; border-radius: 50%; align-self: start; margin-top: 0.42em; } /* on the first line of a wrapped row */
.sys-health-good .sys-dot { background: #1f8a4c; }
.sys-health-warn .sys-dot { background: #e0a100; }
.sys-health-bad .sys-dot { background: var(--danger); }
.sys-health-bad .sys-health-detail { color: var(--danger); }
/* The maintenance lock switch. */
.sys-lock { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 0; }
.sys-toggle { position: relative; flex: none; width: 46px; height: 26px; padding: 0; border: 0; border-radius: 13px; background: #c9d4df; cursor: pointer; }
.sys-toggle span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: left .15s; }
.sys-toggle[aria-checked="true"] { background: var(--danger); }
.sys-toggle[aria-checked="true"] span { left: 23px; }
.sys-toggle:focus-visible { outline: 3px solid #9cc8ee; outline-offset: 2px; }
@media (max-width: 860px) { .sys-health { grid-template-columns: minmax(0, 1fr); } }
/* Two columns: one line per row so every indicator lines up; the full text is in the title. */
@media (min-width: 861px) { .sys-health-detail { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
/* Admin and My account use the width of a big screen (owner, 6 November 2026); the header lines up with it. */
@media (min-width: 1000px) { body.is-wide .shell, body.is-wide .top-inner, body.is-wide .foot-inner { width: min(1520px, 100% - 48px); } }
/* System > Maintenance: two switches, each with what it does right now. */
.sys-control { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.sys-control h3 { margin: 0 0 2px; font-size: 15px; }
.sys-control .hint { margin: 0; }
/* Admin > Sites: a coloured dot plus the milliseconds (never colour alone). */
.speed-cell { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; white-space: nowrap; }
.account-keep { margin: 0 0 14px; }

/* (i) explanations (parts.php lbwInfo): hover or focus shows the tip; a tap toggles .is-open. */
.info { position: relative; display: inline-flex; vertical-align: middle; margin-left: 6px; }
.info-btn { width: 24px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--muted); font: 600 13px/1 Georgia, serif; font-style: italic; cursor: pointer; }
.info-btn:hover, .info.is-open .info-btn { border-color: var(--blue, #0877d1); color: var(--blue, #0877d1); }
.info-tip { position: absolute; z-index: 30; left: 50%; bottom: calc(100% + 8px); width: max-content; max-width: min(280px, 80vw); padding: 10px 12px; border-radius: 8px; background: #182238; color: #fff; font: 400 13px/1.45 Inter, system-ui, sans-serif; text-align: left; white-space: normal; transform: translateX(-50%); display: none; pointer-events: none; } /* display, not visibility: a closed tip that still took its 280px widened the phone page (it zoomed out, and the tab bar went below the screen) */
.info:hover .info-tip, .info-btn:focus-visible + .info-tip, .info.is-open .info-tip { display: block; pointer-events: auto; }

/* Drop fields (drop.js): like the homepage's. Without script the plain file box shows. */
.drop-zone { display: none; }
.drop.is-enhanced input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop.is-enhanced .drop-zone { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px dashed var(--line); border-radius: 12px; background: #f9fbfd; color: var(--muted); }
.drop.is-dragging .drop-zone { border-color: var(--blue, #0877d1); background: #eef5fd; }
.drop-icon { color: var(--blue, #0877d1); }
.drop-title { margin: 0; font-weight: 600; color: var(--ink); }
.drop-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.drop-list:empty { display: none; }
.drop-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; }
.drop-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-size { color: var(--muted); font-size: 13px; }
.drop-remove { border: 0; background: none; color: var(--danger, #b42318); font: inherit; font-size: 13px; cursor: pointer; min-height: 32px; }
.drop-note:empty { display: none; }
@media (max-width: 480px) { .drop.is-enhanced .drop-zone { grid-template-columns: auto 1fr; } .drop.is-enhanced .drop-choose { grid-column: 1 / -1; width: 100%; } }
/* Choose a design (dashboard.php ?new=1&design=1). */
.theme-choose fieldset { margin: 0; padding: 0; border: 0; }
.theme-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.theme-card { display: grid; height: 100%; border: 2px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; cursor: pointer; }
.theme-card input { position: absolute; opacity: 0; pointer-events: none; }
.theme-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; display: block; border-bottom: 1px solid var(--line); }
.theme-card-text { display: grid; gap: 4px; padding: 14px 16px 16px; }
.theme-card-text span { color: var(--muted); font-size: 14px; }
.theme-card:has(input:checked) { border-color: var(--blue, #0877d1); box-shadow: 0 0 0 3px #d6e8fa; }
.theme-card:has(input:focus-visible) { outline: 3px solid var(--blue, #0877d1); outline-offset: 2px; }
.theme-choose-go { position: sticky; bottom: 16px; margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; padding: 12px 12px 12px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 28px rgba(20, 43, 66, 0.14); } /* a floating bar, so it never sits on a card's text */
.theme-choose-go p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .shell.has-tabbar .theme-choose-go { bottom: calc(84px + env(safe-area-inset-bottom)); } } /* above the phone tab bar, as .pay-bubbles */
@media (max-width: 700px) { .theme-choose-go .btn { width: 100%; } }
/* Choose a design, live (owner, 9 November 2026; account.js): the floating Create bar goes, as every
   design opens full size with its own "Use this design", like the editor's Change design. */
.has-design-preview .theme-choose-go { display: none; }
.theme-choose-tip { display: none; }
.has-design-preview .theme-choose-tip { display: inline; }
dialog.design-preview { width: min(1280px, 100% - 32px); height: min(900px, 100dvh - 32px); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 16px; overflow: hidden; color: var(--ink); background: #fff; box-shadow: 0 24px 64px rgba(20, 43, 66, 0.3); }
dialog.design-preview[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); } /* the one-line summary must not widen it */
dialog.design-preview::backdrop { background: rgba(20, 43, 66, 0.55); }
.design-preview-top { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.design-preview-title { min-width: 0; }
.design-preview-title h2 { margin: 0; font-size: 18px; }
.design-preview-sum { margin: 2px 0 0; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* "‹ Designs" exactly as the editor's Change design (.de-design-back): plain blue text, no box. */
.design-preview-back { flex: none; min-height: 44px; padding: 0 12px 0 4px; border: 0; background: none; color: #154f9d; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.design-preview-back:focus-visible { outline: 3px solid var(--blue, #0877d1); outline-offset: 2px; border-radius: 6px; }
.design-preview-sizes { flex: none; display: flex; gap: 4px; margin-left: auto; padding: 4px; border-radius: 10px; background: #eef2f7; }
.design-preview-sizes button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: #334155; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.design-preview-sizes button[aria-pressed="true"] { background: #fff; color: #1d4ed8; box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }
.design-preview-body { position: relative; min-height: 0; overflow: hidden; display: flex; justify-content: center; background: #f3f5f8; }
.design-preview-body iframe { flex: none; display: block; border: 0; background: #fff; opacity: 0; transition: opacity .2s ease; transform-origin: top center; }
dialog.design-preview[data-size="page"] .design-preview-body { justify-content: flex-start; } /* centred before scaling, 1280 px would sit off the left edge */
dialog.design-preview[data-size="page"] .design-preview-body iframe { transform-origin: top left; }
dialog.design-preview[data-size="phone"] .design-preview-body { padding-top: 12px; }
dialog.design-preview[data-size="phone"] .design-preview-body iframe { border-radius: 16px 16px 0 0; box-shadow: 0 8px 30px rgba(20, 43, 66, .14); }
.design-preview-body iframe.is-ready { opacity: 1; }
.design-preview-wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); }
.design-preview-wait[hidden] { display: none; }
.design-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); }
.design-preview-bar span { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) {
  dialog.design-preview { width: 100%; height: 100dvh; border-radius: 0; }
  /* Back and the size switch on one row, the design's name below them, as the editor's. */
  .design-preview-top { flex-wrap: wrap; gap: 6px 8px; padding: 8px 12px; }
  .design-preview-title { order: 3; flex-basis: 100%; }
  .design-preview-sizes button { padding: 0 12px; }
  .design-preview-bar .btn { width: 100%; }
  .design-preview-bar span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .design-preview-body iframe { transition: none; } }
/* Billing reads as a statement: each price stays near its name on a wide screen (the page is wide, owner 6 November 2026). */
.billing-page { max-width: 920px; }

/* form[data-busy] while it is sent (account.js): what is happening, so nobody presses again. */
dialog.busy-box[open] { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 28px 24px; }
.busy-box .busy-text { margin: 10px 0 0; font-weight: 600; font-size: 17px; }
.busy-box .hint { margin: 0; }
.busy-spin { width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: busy-spin 0.8s linear infinite; }
@keyframes busy-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .busy-spin { animation-duration: 2.4s; } }


/* One customer message, laid out like an email (dashboard-messages.php). */
.mail { display: grid; gap: 18px; }
.mail-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mail-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #e3effa; color: var(--blue); font-weight: 700; font-size: 18px; }
.mail-from h1 { margin: 0; font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.mail-from p { margin: 2px 0 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.mail-when { margin: 0; text-align: right; color: var(--muted); font-size: 13px; line-height: 1.5; }
.mail-when span { display: block; }
.mail-body { font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.mail-details { display: grid; gap: 12px; margin: 0; padding: 14px 16px; border-radius: 10px; background: #f6f9fc; }
.mail-details dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.mail-details dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.mail-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.mail-file { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto; gap: 4px 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.mail-file-pic { grid-row: 1 / span 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: #eef3f8; font-size: 12px; font-weight: 700; color: var(--muted); }
.mail-file-pic img { width: 100%; height: 100%; object-fit: cover; }
.mail-file-name { min-width: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.mail-file-name small { display: block; font-weight: 400; color: var(--muted); }
.mail-file-go { display: flex; gap: 16px; font-size: 14px; }
.mail-file-go a { font-weight: 600; }
.mail-reply { display: flex; flex-wrap: wrap; gap: 10px; }
.mail-reply + .hint { margin-top: -8px; }
.mail-tools { display: flex; flex-wrap: wrap; gap: 4px 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.mail-tools form { margin: 0; }
/* Call only where there is a phone to call from; elsewhere the number is copied. */
@media (hover: hover) and (pointer: fine) { .mail-call { display: none; } }
@media (hover: none), (pointer: coarse) { .mail-copy-phone { display: none; } }
@media (max-width: 600px) {
  .mail-head { grid-template-columns: auto minmax(0, 1fr); }
  .mail-when { grid-column: 1 / -1; text-align: left; }
  .mail-when span { display: inline; }
  .mail-when span::before { content: " · "; }
  .mail-reply .btn { flex: 1 1 auto; }
}

.mail-when .tag::before { content: none; }
.mail-when .tag { margin-left: 6px; }

/* Phones: an info tip opens as a card pinned above the tab bar (owner, 7 November 2026: a tip placed
   beside its i still widened the page there). Fixed, so it can never make the page wider. */
@media (max-width: 700px), (hover: none) {
  .info-tip { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); width: auto; max-width: none; margin-left: 0 !important; transform: none; padding: 14px 16px; font-size: 14px; box-shadow: 0 10px 30px rgba(20, 43, 66, .3); }
  .shell.has-tabbar .info-tip { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
/* Touch screens: a tap leaves the i "hovered", so hover never shows a tip there, only a tap (is-open). */
@media (hover: none) {
  .info:hover .info-tip { display: none; }
  .info.is-open .info-tip { display: block; }
}

/* Message lists, Gmail-like (owner, 7 November 2026: "clearly show read and unread"): unread is bold
   with a blue dot and a light tint; read is plain and grey. Every list using .req-row gets it. */
.req-row { position: relative; padding: 12px 12px 12px 26px; }
.req-row::before { content: ""; position: absolute; left: 10px; top: 19px; width: 8px; height: 8px; border-radius: 50%; }
.req-row.is-unread { background: #f3f8ff; }
.req-row.is-unread::before { background: var(--blue); }
.req-row.is-unread strong, .req-row.is-unread .req-row-text { color: var(--ink); font-weight: 700; }
.req-row:not(.is-unread) strong { font-weight: 500; color: var(--text); }
.req-row:not(.is-unread) .req-row-text { color: var(--muted); font-weight: 400; }
.req-row .new-dot { display: none; } /* the dot says it; "New" stays for screen readers below */
.req-row.is-unread .req-row-top strong::after { content: " (unread)"; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.req-row-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.req-list li + li { border-top: 1px solid var(--line-soft); }
.req-list .req-row { border-radius: 0; }

/* Phones: filter chips are one row you swipe, a picker loses its separate label, titles are smaller
   (owner, 7 November 2026: "filters/inputs take half the screen"). */
@media (max-width: 700px) {
  .chips, .period { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 0 16px 2px; }
  .chips::-webkit-scrollbar, .period::-webkit-scrollbar { display: none; }
  .chips a, .period a { flex: none; min-height: 34px; padding: 0 12px; font-size: 13.5px; }
  .picker label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .picker select { min-height: 40px; font-size: 15px; }
  .page-head h1, main > h1 { font-size: 26px; }
  .page-head { gap: 10px; margin-bottom: 12px; }
}
.support-picker { margin-bottom: 10px; }

.server-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 16px 0; }
.server-figure { font-size: 28px; font-weight: 700; line-height: 1.2; }
@media (max-width: 1000px) { .server-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .server-tiles { grid-template-columns: minmax(0, 1fr); } }

/* Admin > Server graphs */
.server-charts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0; }
.server-chart { margin: 0; min-width: 0; }
.server-chart figcaption { display: grid; gap: 2px; margin-bottom: 12px; }
.chart-legend { display: flex; gap: 14px; font-size: 13px; color: var(--text); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i, .chart-tip i { display: inline-block; width: 14px; height: 2px; border-radius: 1px; }
.chart-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; height: 160px; font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }
.chart-plot { position: relative; height: 160px; touch-action: pan-y; border-radius: 4px; }
.chart-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-grid { stroke: #e9eef4; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart-line.c1 { stroke: #2a78d6; } .chart-line.c2 { stroke: #eb6834; }
.chart-area.c1 { fill: #2a78d6; opacity: 0.1; }
.chart-legend i.c1, .chart-tip i.c1 { background: #2a78d6; } .chart-legend i.c2, .chart-tip i.c2 { background: #eb6834; }
.chart-cross { stroke: #8795a5; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-tip { position: absolute; top: 4px; z-index: 2; min-width: 130px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 4px 14px rgba(20, 40, 70, 0.14); font-size: 13px; color: var(--muted); pointer-events: none; white-space: nowrap; }
.chart-tip p { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; }
.chart-tip strong { color: var(--text); }
.chart-tip small { display: block; margin-top: 4px; }
.chart-x { grid-column: 2; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.chart-cross[hidden] { display: none; }
@media (max-width: 1100px) { .server-charts { grid-template-columns: minmax(0, 1fr); } }

/* Admin > a website > Message to copy (owner, 10 November 2026: pitching through Messenger, Instagram, texts). */
.dm-card { max-width: 720px; }
.dm-text { width: 100%; min-height: 330px; font: inherit; font-size: 15px; line-height: 1.55; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--pale); resize: vertical; }
.dm-shot { display: block; width: 100%; height: auto; border-radius: 10px; margin-bottom: 10px; }

/* Admin > a website > Owner and sharing: one card, its parts divided by a line (owner, 10 November 2026). */
.owner-card .owner-part { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.owner-card .share-code { display: flex; align-items: center; gap: 10px; margin: 12px 0 6px; font-weight: 600; }
.owner-card .share-code .code-box { font-size: 18px; padding: 5px 12px; }
.owner-card .free-part .switch { margin-bottom: 4px; }

/* Admin > Overview > Cancelled: ending soon. One line per website: name, owner, end date, Email them. */
.ending-list { list-style: none; margin: 0; padding: 0; }
.ending-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.ending-list li:first-child { border-top: 0; }
.ending-list li span { color: var(--muted); }
.ending-list li span a { font-weight: 600; }
/* A photo someone sent, opened large (account.js). */
dialog.photo-view { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 16px; border: 0; background: rgba(10, 18, 28, .94); display: none; }
dialog.photo-view[open] { display: grid; place-items: center; }
dialog.photo-view::backdrop { background: rgba(10, 18, 28, .94); }
dialog.photo-view img { max-width: 100%; max-height: calc(100dvh - 32px); object-fit: contain; border-radius: 6px; }
.photo-view-x { position: fixed; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: #142b42; font: 400 26px/1 Arial, sans-serif; cursor: pointer; }
/* The Blank page card says so over its picture (owner, 10 November 2026: it read as one more finished design). */
.theme-card-blank { position: relative; }
.theme-card-blank::before { content: "Blank: you build it section by section"; position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 16px; text-align: center; background: rgba(20, 43, 66, .66); color: #fff; font-weight: 700; font-size: 15px; }
