/* Backlink Monitor UI. Five colour themes, switched with html[data-theme] (the picker is in the left menu and the
   public header; the choice is kept in localStorage). "slate" is the default. Every colour is a variable; the
   theme blocks below only override variables. */
:root { --side-w: 236px; --r-card: 14px; --r-btn: 999px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --font-head: var(--font-body);
  --font-mono: ui-monospace, Consolas, monospace; }
html[data-theme="noir"] {        /* poker-data.com look: near-black, violet-blue gradient CTA, Sora / Manrope / Space Mono */
  --bg: #090a0c; --bg-soft: #0d1014; --card: #12151a; --card2: #0d1014; --line: rgba(255, 255, 255, .09); --line2: rgba(255, 255, 255, .2);
  --text: #f5f7f8; --text2: #d5dade; --muted: #9fa9b1; --strong: #ffffff;
  --brand: #7b6cf6; --brand-ink: #ffffff; --glow: rgba(123, 108, 246, .45); --accent2: #17d7c7;
  --ok: #28c840; --ok-bg: rgba(40, 200, 64, .14); --bad: #ff3454; --bad-bg: rgba(255, 52, 84, .14);
  --warn: #ffca45; --warn-bg: rgba(255, 202, 69, .14); --info: #9fa9b1; --info-bg: rgba(159, 169, 177, .14);
  --side-bg: #0c0f13; --side-strong: #ffffff; --side-text: #bbc4ca; --side-muted: #69737c; --side-active: rgba(123, 108, 246, .18);
  --input: #0d1014; --hover: rgba(255, 255, 255, .06); --hover-soft: rgba(255, 255, 255, .025); --strip: #1a1d23; --switch: #2a2f38;
  --header: rgba(9, 10, 12, .78); --bg-glow: radial-gradient(900px 420px at 50% -120px, rgba(123, 108, 246, .18), transparent 70%);
  --r-card: 15px; --r-btn: 11px; --font-body: "Manrope", sans-serif; --font-head: "Sora", sans-serif; --font-mono: "Space Mono", monospace;
  color-scheme: dark;
}
html[data-theme="noir"] .btn.primary, html[data-theme="noir"] button.primary { background: linear-gradient(145deg, #8a7bff, #5aa0ff); border-color: transparent; }
html[data-theme="noir"] h1, html[data-theme="noir"] h2 { letter-spacing: -.04em; font-weight: 800; }
html[data-theme="noir"] .nav-group, html[data-theme="noir"] th { font-family: var(--font-mono); letter-spacing: .13em; }
html[data-theme="gold"] {        /* poker-replays.com look: graphite surfaces, gold accent, tight 8px corners, system font */
  --bg: #0f1216; --bg-soft: #12161b; --card: #171b21; --card2: #1f242c; --line: #2a2f38; --line2: #3a404a;
  --text: #e7ebf0; --text2: #cfd5dc; --muted: #9aa4b1; --strong: #ffffff;
  --brand: #ffcc66; --brand-ink: #1a1206; --glow: transparent; --accent2: #ffcc66;
  --ok: #6fcf97; --ok-bg: rgba(111, 207, 151, .16); --bad: #fca5a5; --bad-bg: rgba(252, 165, 165, .14);
  --warn: #f2c75c; --warn-bg: rgba(242, 199, 92, .16); --info: #9aa4b1; --info-bg: rgba(154, 164, 177, .14);
  --side-bg: #0b0e12; --side-strong: #ffffff; --side-text: #cfd5dc; --side-muted: #8a95a3; --side-active: rgba(255, 204, 102, .18);
  --input: #12161b; --hover: rgba(255, 255, 255, .06); --hover-soft: rgba(255, 255, 255, .025); --strip: #2a2f38; --switch: #304052;
  --header: rgba(15, 18, 22, .85); --bg-glow: none;
  --r-card: 8px; --r-btn: 6px; --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif; --font-head: var(--font-body);
  color-scheme: dark;
}
html[data-theme="gold"] .side-nav a.active { box-shadow: inset 3px 0 0 var(--brand); }
html[data-theme="light"] {
  --bg: #f4f6fa; --bg-soft: #eef2f8; --card: #ffffff; --card2: #f6f8fc; --line: #dfe5ef; --line2: #c3cdde;
  --text: #0f172a; --text2: #334155; --muted: #64748b; --strong: #0f172a;
  --brand: #0e8f68; --brand-ink: #ffffff; --glow: transparent; --accent2: #2563eb;
  --ok: #15803d; --ok-bg: rgba(21, 128, 61, .12);
  --bad: #dc2626; --bad-bg: rgba(220, 38, 38, .1);
  --warn: #b45309; --warn-bg: rgba(180, 83, 9, .12);
  --info: #475569; --info-bg: rgba(71, 85, 105, .1);
  --side-bg: #ffffff; --side-strong: #0f172a; --side-text: #334155; --side-muted: #64748b; --side-active: rgba(14, 143, 104, .12);
  --input: #ffffff; --hover: rgba(15, 23, 42, .06); --hover-soft: rgba(15, 23, 42, .03); --strip: #e2e8f0; --switch: #cbd5e1;
  --header: rgba(255, 255, 255, .88); --bg-glow: none;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0a101d; --bg-soft: #0e1626; --card: #111a2e; --card2: #0c1424; --line: #1e2a42; --line2: #2f3f60;
  --text: #e7ecf4; --text2: #c9d4e6; --muted: #8d9bb1; --strong: #ffffff;
  --brand: #2fd8a0; --brand-ink: #04251a; --glow: rgba(47, 216, 160, .32); --accent2: #5ab0ff;
  --ok: #34d399; --ok-bg: rgba(52, 211, 153, .14);
  --bad: #fb7185; --bad-bg: rgba(251, 113, 133, .14);
  --warn: #fbbf24; --warn-bg: rgba(251, 191, 36, .14);
  --info: #a9b6cc; --info-bg: rgba(148, 163, 184, .14);
  --side-bg: #080d19; --side-strong: #ffffff; --side-text: #c3cee0; --side-muted: #71819b; --side-active: rgba(47, 216, 160, .12);
  --input: #0a1222; --hover: rgba(255, 255, 255, .06); --hover-soft: rgba(255, 255, 255, .02); --strip: #1d2a44; --switch: #223052;
  --header: rgba(10, 16, 29, .72); --bg-glow: radial-gradient(900px 420px at 50% -120px, rgba(47, 216, 160, .13), transparent 70%);
  color-scheme: dark;
}
:root, html[data-theme="slate"] {      /* DEFAULT: light, cool grey with a blue accent */
  --bg: #eef1f6; --bg-soft: #e6eaf2; --card: #ffffff; --card2: #f2f4f9; --line: #d6dce8; --line2: #b9c3d6;
  --text: #1e293b; --text2: #3b4a63; --muted: #6b7a93; --strong: #0f172a;
  --brand: #2563eb; --brand-ink: #ffffff; --glow: transparent; --accent2: #0e8f68;
  --ok: #15803d; --ok-bg: rgba(21, 128, 61, .12); --bad: #dc2626; --bad-bg: rgba(220, 38, 38, .1);
  --warn: #b45309; --warn-bg: rgba(180, 83, 9, .12); --info: #475569; --info-bg: rgba(71, 85, 105, .1);
  --side-bg: #1e293b; --side-strong: #ffffff; --side-text: #cbd5e1; --side-muted: #94a3b8; --side-active: rgba(37, 99, 235, .28);
  --input: #ffffff; --hover: rgba(30, 41, 59, .06); --hover-soft: rgba(30, 41, 59, .03); --strip: #dfe5ef; --switch: #c3cdde;
  --header: rgba(255, 255, 255, .88); --bg-glow: none;
  color-scheme: light;
}
html[data-theme="ocean"] {      /* dark blue */
  --bg: #0b1726; --bg-soft: #0f1d30; --card: #122238; --card2: #0e1b2d; --line: #22354f; --line2: #35507a;
  --text: #e6eef8; --text2: #c6d4e6; --muted: #8aa0bd; --strong: #ffffff;
  --brand: #4da3ff; --brand-ink: #06192e; --glow: rgba(77, 163, 255, .28); --accent2: #2fd8a0;
  --ok: #3ddc97; --ok-bg: rgba(61, 220, 151, .14); --bad: #ff7b8a; --bad-bg: rgba(255, 123, 138, .14);
  --warn: #ffc44d; --warn-bg: rgba(255, 196, 77, .14); --info: #a9b6cc; --info-bg: rgba(148, 163, 184, .14);
  --side-bg: #08121f; --side-strong: #ffffff; --side-text: #c3d1e3; --side-muted: #7489a6; --side-active: rgba(77, 163, 255, .16);
  --input: #0a1424; --hover: rgba(255, 255, 255, .06); --hover-soft: rgba(255, 255, 255, .02); --strip: #203551; --switch: #2a4062;
  --header: rgba(11, 23, 38, .75); --bg-glow: radial-gradient(900px 420px at 50% -120px, rgba(77, 163, 255, .14), transparent 70%);
  color-scheme: dark;
}
html[data-theme="contrast"] {   /* high contrast, black on white */
  --bg: #ffffff; --bg-soft: #f7f7f7; --card: #ffffff; --card2: #f3f3f3; --line: #9a9a9a; --line2: #4a4a4a;
  --text: #000000; --text2: #111111; --muted: #3d3d3d; --strong: #000000;
  --brand: #0b5fff; --brand-ink: #ffffff; --glow: transparent; --accent2: #0b5fff;
  --ok: #0a6b2f; --ok-bg: rgba(10, 107, 47, .14); --bad: #b00020; --bad-bg: rgba(176, 0, 32, .12);
  --warn: #7a4a00; --warn-bg: rgba(122, 74, 0, .14); --info: #222222; --info-bg: rgba(0, 0, 0, .08);
  --side-bg: #ffffff; --side-strong: #000000; --side-text: #000000; --side-muted: #3d3d3d; --side-active: rgba(11, 95, 255, .14);
  --input: #ffffff; --hover: rgba(0, 0, 0, .07); --hover-soft: rgba(0, 0, 0, .04); --strip: #d0d0d0; --switch: #8a8a8a;
  --header: rgba(255, 255, 255, .95); --bg-glow: none;
  color-scheme: light;
}
.theme-pick { font: inherit; font-size: 12.5px; padding: 6px 28px 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); cursor: pointer; width: auto; }
select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
select option { background: var(--card); color: var(--text); }
.onboard-box { margin-bottom: 16px; } .onboard-box > summary { cursor: pointer; font-weight: 650; padding: 4px 0; }
.onboard-box > summary small { color: var(--muted); font-weight: 400; margin-left: 8px; }
.nudge { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 4px 8px; font-size: 12px; margin-top: 4px; display: inline-block; }
.side-theme { padding: 10px 6px 0; } .side-theme .theme-pick { width: 100%; background: rgba(127, 127, 127, .12); color: var(--side-text); border-color: rgba(127, 127, 127, .35); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); font: 15px/1.55 var(--font-body);
  background: var(--bg); background-image: var(--bg-glow); }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
code { background: var(--card2); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; font-size: .92em; font-family: var(--font-mono); }
.wrap { width: 100%; max-width: none; margin: 0 auto; padding: 0 28px; }

/* ---- public header ---- */
header.top { border-bottom: 1px solid var(--line); background: var(--header); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20; }
header.top .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo svg, .brand-badge svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), #3fb6ff); color: var(--brand-ink);
  display: grid; place-items: center; box-shadow: 0 0 18px var(--glow); }
.logo b { font-weight: 700; } .logo span.dim { color: var(--muted); font-weight: 600; }
nav { display: flex; gap: 16px; margin-left: auto; align-items: center; }
nav a { color: var(--text); font-size: 14px; } nav form { margin: 0; }
main { padding: 26px 0 70px; }
h1 { font-size: 30px; margin: 0 0 8px; line-height: 1.15; letter-spacing: -.02em; }
h1, h2, h3 { font-family: var(--font-head); }
h2 { font-size: 20px; margin: 30px 0 12px; letter-spacing: -.01em; } h3 { font-size: 16px; margin: 0 0 6px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 30px -18px rgba(0,0,0,.6); }
.grid { display: grid; gap: 14px; }
.stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat b { display: block; font-size: 28px; line-height: 1.1; letter-spacing: -.02em; }

/* ---- buttons: pills ---- */
.btn, button { font: inherit; cursor: pointer; border: 1px solid var(--line); background: var(--card2); color: var(--text);
  padding: 8px 16px; border-radius: var(--r-btn); transition: border-color .15s, transform .05s, box-shadow .15s; }
.btn:hover, button:hover { border-color: var(--line2); text-decoration: none; }
.btn.primary, button.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 650;
  box-shadow: 0 0 22px var(--glow); }
.btn.primary:hover, button.primary:hover { box-shadow: 0 0 30px rgba(47, 216, 160, .5); }
.btn.danger, button.danger { color: var(--bad); }
.btn[disabled], button[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn.link, button.link { border: 0; background: none; color: var(--brand); padding: 0; box-shadow: none; }
button.big { padding: 12px 26px; font-size: 15px; }
button.mini { padding: 3px 13px; font-size: 12px; }

/* ---- forms ---- */
input[type=text], input[type=email], input[type=password], input[type=url], select, textarea {
  width: 100%; font: inherit; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--input); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 216, 160, .18); }
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { min-height: 110px; font-family: var(--font-mono); font-size: 13px; }
label { display: block; font-size: 12.5px; color: var(--muted); margin: 10px 0 5px; }
label.inline { display: flex; gap: 8px; align-items: center; color: var(--text); margin: 8px 0; }
input[type=checkbox] { accent-color: var(--brand); width: 16px; height: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 200px; }
.flash { padding: 11px 15px; border-radius: 12px; margin-bottom: 16px; }
.flash.ok { background: var(--ok-bg); color: var(--ok); } .flash.err { background: var(--bad-bg); color: var(--bad); }

/* ---- state pills ---- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 11px 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-found { background: var(--ok-bg); color: var(--ok); }
.s-lost, .s-dead { background: var(--bad-bg); color: var(--bad); }
.s-changed, .s-uncertain { background: var(--warn-bg); color: var(--warn); }
.s-pending { background: var(--info-bg); color: var(--info); }

/* ---- tables ---- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--card2); }
tbody tr:hover td { background: var(--hover-soft); }
tbody tr:last-child td { border-bottom: 0; }
td.url { word-break: break-word; overflow-wrap: anywhere; min-width: 230px; max-width: 640px; }
.table-wrap { overflow-x: auto; }
.table-wrap table { min-width: 760px; }
tr.busy { opacity: .5; }

/* ---- landing ---- */
.hero.compact { text-align: center; padding: 22px 0 6px; }
.hero.compact h1 { font-size: clamp(30px, 4.2vw, 52px); margin: 0 0 14px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand), #52c7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero.compact p { font-size: 16px; max-width: 780px; margin: 0 auto 14px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin: 0 0 20px; padding: 0; list-style: none; color: var(--text); font-size: 14.5px; }
.checks li::before { content: "\2713"; color: var(--brand); font-weight: 800; margin-right: 8px; }
.tool { max-width: 1180px; margin: 0 auto 30px; border-color: rgba(47, 216, 160, .35); box-shadow: 0 0 0 1px rgba(47, 216, 160, .08), 0 0 60px -18px var(--glow); }
.tool .row > .go { flex: 0 0 auto; } .tool label.inline { margin: 12px 0 0; }
.result { margin-top: 14px; } .hidden { display: none; }

/* app-window frame around the live example panel */
.window { max-width: 1280px; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .75), 0 0 80px -40px var(--glow); }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: var(--card2); border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line2); display: inline-block; }
.window-bar span { margin-left: 10px; font-size: 12.5px; color: var(--muted); }
.window-bar .live { margin-left: auto; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.window-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px var(--brand); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.tile { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.tile b { display: block; font-size: 26px; line-height: 1.1; letter-spacing: -.02em; } .tile span { font-size: 12px; color: var(--muted); }
.tile.ok b { color: var(--ok); } .tile.bad b { color: var(--bad); } .tile.warn b { color: var(--warn); }
.window .table-wrap { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.panel-head { max-width: 1280px; margin: 0 auto 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 24px; }
.panel-foot { max-width: 1280px; margin: 10px auto 0; }

/* meta chips (robots / canonical) */
.meta { margin-top: 4px; }
.chip { display: inline-block; font-size: 11px; line-height: 1.55; padding: 0 8px; border-radius: 999px; margin: 3px 5px 0 0;
  background: var(--info-bg); color: var(--info); word-break: break-word; }
.chip-bad { background: var(--bad-bg); color: var(--bad); } .chip-warn { background: var(--warn-bg); color: var(--warn); }
.chip-dim { opacity: .7; }
.bad { color: var(--bad); } .warn { color: var(--warn); }

.plans { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.plan b.price { font-size: 32px; letter-spacing: -.02em; } .plan.current { border-color: var(--brand); box-shadow: 0 0 30px -12px var(--glow); }
.plan ul { padding-left: 18px; margin: 10px 0 0; color: var(--muted); }
pre.evidence { background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 11px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; color: var(--text2); }
footer { color: var(--muted); font-size: 13px; padding: 28px 0; text-align: center; }

/* ---- logged-in shell: left menu + full-width content ---- */
body.has-side { display: flex; min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--side-bg); color: var(--side-text);
  border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 16px 12px; z-index: 30; overflow-y: auto; }
.side .brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; color: var(--side-strong); }
.side .brand:hover { text-decoration: none; }
.brand-badge { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), #3fb6ff); color: var(--brand-ink);
  display: grid; place-items: center; flex: none; box-shadow: 0 0 16px var(--glow); }
.side .brand b { display: block; font-size: 14px; line-height: 1.2; } .side .brand small { color: var(--side-muted); font-size: 11px; }
.side-nav { display: flex; flex-direction: column; align-items: stretch; margin-left: 0; gap: 3px; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; color: var(--side-text); font-size: 14px; }
.side-nav a:hover { background: rgba(127, 127, 127, .14); text-decoration: none; }
.side-nav a.active { background: var(--side-active); color: var(--side-strong); font-weight: 600; }
.side-nav a.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--brand); }
.side-nav i { font-style: normal; width: 20px; text-align: center; font-size: 15px; }
.side-nav em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; background: var(--bad); color: #1b0a0d; border-radius: 99px; padding: 1px 8px; }
.side-foot { margin-top: auto; padding-top: 14px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 12px; }
.side-card > div { display: flex; justify-content: space-between; padding: 2px 0; } .side-card span { color: var(--side-muted); }
.side-card b { color: var(--side-strong); } .side-card .running { color: var(--side-muted); gap: 7px; justify-content: flex-start; align-items: center; margin-top: 5px; }
.side-card .running i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px var(--brand); display: inline-block; }
.side-user { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 6px 0; font-size: 12px; color: var(--side-muted); }
.side-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user form { margin: 0; } .side-user button.link { color: var(--brand); }
.main-col { flex: 1; min-width: 0; margin-left: var(--side-w); }
.main-col main { padding: 24px 0 60px; }
.mobile-bar, .side-backdrop { display: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; font-size: 26px; }
/* ---- text pages (FAQ, terms, privacy) ---- */
.prose { max-width: 820px; margin: 0 auto; } .prose h3 { margin-top: 24px; } .prose ul { padding-left: 20px; }
.prose p, .prose li { color: var(--text2); }
.toc { margin: 14px 0 6px; } .toc ol { columns: 2; column-gap: 28px; margin: 8px 0 0; padding-left: 20px; }
.toc li { margin: 2px 0; break-inside: avoid; } .toc a { color: var(--text); }
@media (max-width: 700px) { .toc ol { columns: 1; } }
.prose h3[id] { scroll-margin-top: 80px; }
.flash.warnbar { background: var(--warn-bg); color: var(--warn); }
.verifybar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.verifybar form { margin: 0; }
.period-switch { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); margin: 4px 0 18px; }
.period-switch a { padding: 8px 18px; border-radius: 999px; color: var(--muted); font-size: 14px; }
.period-switch a:hover { text-decoration: none; color: var(--text); }
.period-switch a.on { background: var(--brand); color: var(--brand-ink); font-weight: 650; }
.period-switch em { font-style: normal; font-size: 11px; margin-left: 6px; opacity: .85; }
.plan.popular { border-color: rgba(47, 216, 160, .55); box-shadow: 0 0 0 1px rgba(47, 216, 160, .15), 0 0 50px -18px var(--glow); position: relative; }
.plan .ribbon { position: absolute; top: -12px; left: 18px; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.entity { display: grid; gap: 8px; margin: 10px 0 16px; }
.entity div { display: flex; flex-wrap: wrap; gap: 6px 16px; } .entity span { color: var(--muted); min-width: 150px; font-size: 13px; }
/* ---- checker result tiles + share ---- */
.tiles3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile3 { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card2); }
.tile3 i { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 18px; background: var(--hover); }
.tile3 span { font-size: 13px; color: var(--muted); } .tile3 .tv { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv.ok { color: var(--ok); } .tv.warn { color: var(--warn); } .tv.bad { color: var(--bad); }
.share { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); } .share b { display: block; margin-bottom: 8px; }
.share input { flex: 1 1 320px; }
/* ---- FAQ accordions ---- */
details.qa { border-bottom: 1px solid var(--line); padding: 4px 0; }
details.qa > summary { cursor: pointer; list-style: none; padding: 14px 34px 14px 0; font-weight: 600; position: relative; }
details.qa > summary::-webkit-details-marker { display: none; }
details.qa > summary::after { content: "+"; position: absolute; right: 6px; top: 10px; font-size: 22px; color: var(--brand); transition: transform .15s; }
details.qa[open] > summary::after { transform: rotate(45deg); }
details.qa > p { margin: 0 0 14px; }
/* ---- settings pages ---- */
.nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--side-muted); padding: 14px 12px 4px; font-weight: 700; }
.nav-group:first-child { padding-top: 4px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--text); text-decoration: none; } .crumbs b { color: var(--text); font-weight: 600; }
.settings-col { max-width: 760px; display: grid; gap: 16px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input[type=text], .inline-form input[type=email] { flex: 1 1 260px; }
.avatar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px;
  background: linear-gradient(135deg, var(--brand), #52c7ff); color: var(--brand-ink); }
label.switch { display: flex; align-items: center; gap: 12px; margin: 10px 0; cursor: pointer; font-size: 14px; }
label.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
label.switch i { flex: 0 0 auto; width: 38px; height: 22px; border-radius: 999px; background: var(--switch); position: relative; transition: background .15s; }
label.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
label.switch input:checked + i { background: var(--brand); } label.switch input:checked + i::after { transform: translateX(16px); }
label.switch input:disabled + i { opacity: .6; } label.switch input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }
.plan-top { display: grid; grid-template-columns: minmax(280px, 1.4fr) minmax(220px, 1fr); gap: 16px; margin-bottom: 18px; max-width: 880px; }
.plan-now { background: linear-gradient(160deg, rgba(47, 216, 160, .16), rgba(82, 199, 255, .08)); border-color: rgba(47, 216, 160, .35); }
.plan-now h2 { margin: 0 0 2px; font-size: 24px; }
.meter { height: 8px; border-radius: 999px; background: var(--hover); margin: 16px 0 8px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #52c7ff); }
.plan-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.plan-change { text-align: center; display: grid; align-content: center; gap: 4px; }
@media (max-width: 700px) { .plan-top { grid-template-columns: 1fr; } }
/* ---- upgrade screen shown when a plan limit is hit: one card, one button ---- */
.upgrade-focus { max-width: 600px; margin: 8px auto 0; }
.upgrade-focus .card { padding: 26px; }
.upgrade-focus h1 { font-size: 26px; margin: 14px 0 6px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.compare > div { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.compare > div.to { border-color: var(--brand); background: var(--card2); }
.compare small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.compare b { font-size: 20px; }
.compare ul { margin: 8px 0 0; padding-left: 18px; }
.upgrade-price { margin: 12px 0 16px; font-size: 16px; }
.upgrade-price b { font-size: 28px; }
.upgrade-focus .big { width: 100%; text-align: center; padding: 14px 18px; font-size: 16px; display: block; }
@media (max-width: 520px) { .compare { grid-template-columns: 1fr; } .upgrade-focus .card { padding: 20px 16px; } }
/* ---- link book (dashboard list) ---- */
.listbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 22px 0 12px; }
.domain-pick { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 4px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.domain-pick select { border: 0; background: transparent; font-weight: 650; padding: 9px 4px; max-width: 240px; }
.site-dot { width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--brand), #52c7ff); }
.find { margin: 0 0 0 auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.find input[type=text] { min-width: 220px; }
.linkbook td { vertical-align: middle; }
.linkbook .host { display: block; font-size: 14px; }
.linkbook a.u { display: block; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.linkbook .anchor { display: block; font-size: 14px; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkbook .why { color: var(--bad); max-width: 320px; word-break: break-all; user-select: all; margin: 4px 0; }
.linkbook td.url { min-width: 200px; max-width: 440px; }
.nowrap { white-space: nowrap; }
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.code { font-variant-numeric: tabular-nums; } .code.c-ok { color: var(--ok); } .code.c-warn { color: var(--warn); } .code.c-bad { color: var(--bad); }
.addpanel { margin: 14px 0 6px; } .addpanel > summary { cursor: pointer; font-weight: 650; font-size: 16px; padding: 8px 0; color: var(--text); }
.addpanel[open] > summary { margin-bottom: 10px; }
/* ---- onboarding after sign-up ---- */
.welcome { max-width: 640px; margin: 24px auto; }
.wizard { display: flex; gap: 24px; list-style: none; margin: 0 0 18px; padding: 0; color: var(--muted); font-size: 14px; }
.wizard li { display: flex; align-items: center; gap: 8px; }
.wizard i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); font-style: normal; font-size: 12px; font-weight: 700; }
.wizard li.now { color: var(--text); } .wizard li.now i { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.wizard li.done i { background: var(--card2); color: var(--brand); }
.welcome-card h1 { font-size: 24px; margin-top: 0; }
.channels { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 8px; }
.channels li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card2); }
.channels li span:first-child { display: grid; } .channels small { color: var(--muted); font-size: 12px; }
footer.foot { color: var(--muted); font-size: 13px; padding: 20px 28px 28px; text-align: center; }
footer.foot a { color: var(--muted); } footer.foot a:hover { color: var(--text); }
.side-nav em.ok { background: var(--brand); color: var(--brand-ink); }
.danger-zone { border-color: rgba(251, 113, 133, .35); }
/* ---- 30-day history strip ---- */
.strip { display: inline-flex; gap: 2px; vertical-align: middle; }
.strip i { width: 4px; height: 18px; border-radius: 2px; background: var(--strip); display: block; }
.strip i.d-ok { background: var(--ok); } .strip i.d-bad { background: var(--bad); } .strip i.d-unclear { background: var(--warn); }
.strip.big i { width: 9px; height: 30px; border-radius: 3px; }
.order-box { border-color: rgba(47, 216, 160, .5); box-shadow: 0 0 40px -18px var(--glow); margin-bottom: 16px; max-width: 640px; }
/* ---- tickets, admin ---- */
.thread { display: grid; gap: 12px; }
.msg { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card); max-width: 900px; }
.msg.staff { border-color: rgba(47, 216, 160, .4); background: rgba(47, 216, 160, .05); margin-left: 40px; }
.msg-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.msg-body { white-space: pre-wrap; word-break: break-word; }
.tabs { display: flex; gap: 6px; margin: 0 0 16px; flex-wrap: wrap; }
.tabs a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-size: 14px; }
.tabs a.on { background: var(--side-active); border-color: rgba(47, 216, 160, .45); color: var(--strong); }
.tabs a:hover { text-decoration: none; border-color: var(--line2); }
.tabs em { font-style: normal; background: var(--hover); color: var(--text); border-radius: 99px; padding: 0 8px; margin-left: 6px; font-size: 11px; font-weight: 700; }
.tabs em.ok { background: var(--ok-bg); color: var(--ok); } .tabs em.bad { background: var(--bad-bg); color: var(--bad); }
.inline-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0; }
.inline-actions select { width: auto; padding: 4px 8px; border-radius: 999px; font-size: 12px; }
/* ---- import page ---- */
.import-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; }
.examples { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.import-result { border-color: var(--line); } .import-result.ok { border-color: rgba(52, 211, 153, .5); }
.errlist { margin: 8px 0 0; padding-left: 18px; }
input[type=file] { color: var(--muted); }
/* ---- alerts page ---- */
.channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.channel.off { opacity: .78; }
.ch-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.ch-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 18px; flex: none; }
.ch-title { flex: 1; min-width: 0; } .ch-title b { word-break: break-word; }
.ch-edit { margin: 10px 0 0; } .ch-edit summary { cursor: pointer; color: var(--brand); font-size: 13.5px; }
.opts { display: grid; gap: 6px; } .opts.compact { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.opt { display: flex; gap: 9px; align-items: flex-start; margin: 0; color: var(--text); font-size: 14px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card2); }
.opt input { margin-top: 3px; } .opt small { display: block; color: var(--muted); font-size: 12px; }
.ch-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; } .ch-actions form { margin: 0; }
.add-grid { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); align-items: start; }
.connect-box { border: 1px dashed rgba(47, 216, 160, .55); background: rgba(47, 216, 160, .06); border-radius: 12px; padding: 12px 14px; }
.connect-box .actions { display: flex; gap: 10px; flex-wrap: wrap; }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
details summary { cursor: pointer; }
/* ---- dashboard extras ---- */
.bulkbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; min-height: 36px; opacity: .55; }
.bulkbar.active { opacity: 1; }
.onboard { margin-bottom: 16px; }
.steps { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.steps li { padding: 10px 12px 10px 40px; position: relative; border: 1px solid var(--line); border-radius: 10px; background: var(--card2); }
.steps li::before { content: "\25CB"; position: absolute; left: 14px; top: 9px; color: var(--muted); }
.steps li.done::before { content: "\2713"; color: var(--brand); font-weight: 800; }
.steps.how { counter-reset: how; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 8px; }
.steps.how li { counter-increment: how; padding: 14px 16px 14px 48px; color: var(--muted); font-size: 14px; }
.steps.how li b { color: var(--text); display: block; margin-bottom: 4px; }
.steps.how li::before { content: counter(how); top: 13px; left: 14px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 12px; }
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .channels { grid-template-columns: 1fr; }
  .side { transform: translateX(-100%); transition: transform .2s; overflow-y: auto; -webkit-overflow-scrolling: touch; max-width: 86vw; }
  body.nav-open .side { transform: none; }
  body.nav-open .side-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 25; }
  .main-col { margin-left: 0; }
  .mobile-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--card2); border-bottom: 1px solid var(--line); }
  .mobile-bar button { padding: 4px 12px; font-size: 18px; }
  header.top .wrap { height: auto; padding: 10px 16px; flex-wrap: wrap; }
  h1 { font-size: 24px; }
}
/* ---- phones: tables become cards, bigger touch targets ---- */
@media (max-width: 760px) {
  .table-wrap table.stack { min-width: 0; }
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { position: relative; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.stack td { border: 0; padding: 5px 0; max-width: none !important; min-width: 0 !important; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  table.stack td.sel { position: absolute; top: 10px; right: 12px; width: auto; padding: 0; }
  table.stack td.idx { display: none; }
  table.stack td.small.nowrap { display: inline-block; width: 48%; vertical-align: top; white-space: normal; }   /* short fields side by side */
  table.stack td.acts { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
  table.stack td.acts form { margin: 0; }
  .linkbook a.u, .linkbook .anchor, .linkbook .why { max-width: 100%; }
  .linkbook .host { font-size: 15px; padding-right: 36px; }
  input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], select, textarea { font-size: 16px; }
  .btn, button, select { min-height: 40px; }
  button.mini, .btn.mini { min-height: 36px; padding: 6px 14px; }
  .find { margin: 0; width: 100%; } .find input[type=text] { min-width: 0; flex: 1 1 160px; }
  .listbar { gap: 8px; }
  .bulkbar { gap: 6px; }
  .page-head { align-items: center; }
  .card { padding: 14px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .tabs a { white-space: nowrap; }
  header.top nav { gap: 6px 12px; flex-wrap: wrap; width: 100%; align-items: center; }
  header.top nav a:not(.btn) { font-size: 14px; }
  header.top nav .theme-pick { max-width: 92px; min-height: 36px; font-size: 14px; }
  header.top nav .btn { margin-left: auto; padding: 8px 16px; }
  .row > * { flex: 1 1 100%; }
  .row > .go, .row > [style*="flex:0 0"] { flex: 1 1 auto !important; }
}

/* ============================================================================================================
   Home page skin (body.mk). Scoped on purpose: the logged-in app and its colour themes are not touched.
   White page, one deep-indigo accent, warm off-white for alternating sections, ink-dark band for the daily checks.
   ============================================================================================================ */
body.mk {
  --bg: #ffffff; --bg-alt: #f6f5f2; --bg-soft: #f6f5f2; --card: #ffffff; --card2: #f6f5f2; --line: #e6e3dc; --line2: #cfcbc2;
  --ink: #15171c; --ink-muted: #5b6170; --text: #15171c; --text2: #2c303a; --muted: #5b6170; --strong: #15171c;
  --accent: #3730a3; --accent-hover: #2c2585; --brand: #3730a3; --brand-ink: #ffffff; --accent2: #3730a3; --glow: transparent;
  --ok: #15803d; --ok-bg: rgba(21, 128, 61, .1); --bad: #dc2626; --bad-bg: rgba(220, 38, 38, .09); --lost: #dc2626;
  --warn: #b45309; --warn-bg: rgba(180, 83, 9, .11); --info: #475569; --info-bg: rgba(71, 85, 105, .1);
  --input: #ffffff; --hover: rgba(21, 23, 28, .06); --hover-soft: rgba(21, 23, 28, .03); --strip: #e6e3dc; --switch: #cfcbc2;
  --header: rgba(255, 255, 255, .94); --bg-glow: none;
  --radius: 10px; --r-btn: 10px; --r-card: 12px;
  background: #fff; color-scheme: light; font-size: 17px; line-height: 1.6; overflow-x: clip;
}
.home main { padding: 0; overflow-x: clip; }
.home main > .wrap { padding: 0; max-width: none; }
.home .flash { margin: 14px 28px 0; }
.mk h1 { font-size: 48px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.mk h2 { font-size: 28px; font-weight: 700; margin: 0 0 14px; letter-spacing: -.01em; }
.mk h3 { font-size: 17px; font-weight: 650; }
.mk .muted.lead { max-width: 820px; margin: 0 0 22px; }
.mk .small { font-size: 14px; }
.mk .btn, .mk button { border-radius: var(--radius); }
.mk .btn.primary, .mk button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 650; box-shadow: none; }
.mk .btn.primary:hover, .mk button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: none; text-decoration: none; }
.mk .btn.big, .mk button.big { padding: 14px 28px; font-size: 17px; }
.mk a { color: var(--accent); }
.mk .logo-mark { background: var(--accent); box-shadow: none; }
.mk input:focus, .mk select:focus, .mk textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(55, 48, 163, .16); }
.mk header.top { background: var(--header); }
.mk header.top nav a.btn.primary { color: #fff; padding: 8px 18px; }

/* full-width bands: the page is a stack of them */
.band { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 72px 0; background: var(--bg); }
.band > .in { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.band.alt { background: var(--bg-alt); }
.band.tight { padding: 48px 0; }
.band.dark { background: var(--ink); color: #fff; }
.band.dark h2 { color: #fff; margin-bottom: 30px; }
.band.cta { background: var(--accent); color: #fff; text-align: center; }
.band.cta h2 { color: #fff; font-size: 34px; }
.band.cta p { color: rgba(255, 255, 255, .88); margin: 0 0 20px; font-size: 18px; }

/* hero */
.mk .hero.compact { padding: 8px 0 0; }
.mk .hero.compact h1 { font-size: 48px; margin: 0 0 18px; }
.mk .hero h1 em { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--accent); }
.mk .hero.compact p { font-size: 18px; max-width: 760px; color: var(--ink-muted); }
.mk .hero.compact p.hero-cta { margin: 26px auto 8px; color: var(--ink); }
.hero-cap { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-muted); }
.mk .checks { margin: 22px 0 14px; font-size: 15.5px; }
.mk .checks li::before { color: var(--accent); }
.mk .hero.compact p.hero-stat { font-size: 15px; margin: 0 auto 8px; }
.hero-stat b { color: var(--ink); }
.mk .tool { max-width: 1100px; margin: 34px auto 0; border: 1px solid var(--line2); border-radius: var(--r-card); box-shadow: 0 10px 30px -18px rgba(21, 23, 28, .25); }

/* demo table */
.mk .window { border-radius: 12px; box-shadow: 0 10px 30px -18px rgba(21, 23, 28, .25); }
.mk .window-bar .live, .mk .window-bar .live::before { color: var(--ok); }
.mk .window-bar .live::before { background: var(--ok); box-shadow: none; }
tr.demo-detail td { background: var(--bg-alt); padding: 10px 14px 12px; }
tr.demo-detail .c-reason { margin-bottom: 4px; }
button.detail-toggle { background: none; border: 1px solid var(--line2); color: var(--ink-muted); }

/* dark band: six checks, two columns of three */
.six { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 56px; }
.six > div { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; }
.six i { grid-row: span 2; width: 44px; height: 44px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; }
.six svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.six h3 { margin: 2px 0 4px; color: #fff; }
.six p { margin: 0; color: rgba(255, 255, 255, .74); font-size: 16px; }
.six code { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; }

/* three steps: numbers, no card borders */
.steps3 { counter-reset: s; list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.steps3 li { counter-increment: s; position: relative; padding-top: 52px; color: var(--ink-muted); font-size: 16.5px; }
.steps3 li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; }
.steps3 li b { display: block; color: var(--ink); font-size: 19px; margin-bottom: 6px; }

/* cards on the warm sections */
.band.alt .card, .band .card { box-shadow: none; }
.band.alt .card { background: #fff; }
.mk .card { border-radius: var(--r-card); }
figure.quote { margin: 0; } figure.quote blockquote { margin: 0 0 12px; font-size: 18px; color: var(--ink); } figure.quote figcaption { color: var(--ink-muted); font-size: 15px; }

/* pricing */
.plan-common { margin: -6px 0 18px; font-size: 15px; color: var(--ink); font-weight: 600; }
.mk .plan { padding: 22px; }
.mk .plan.popular { border: 1px solid var(--accent); box-shadow: none; position: relative; }
.mk .plan .ribbon { background: var(--accent); color: #fff; left: 20px; border-radius: 999px; }
.mk .plan ul { color: var(--ink); margin: 14px 0 18px; }
.mk .plan p { margin: 0; } .mk .plan .btn { display: block; text-align: center; }

/* closing call to action */
.cta-row { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 24px 0 18px !important; }
.btn.white { background: #fff; color: var(--accent); border-color: #fff; font-weight: 650; }
.mk .btn.white:hover { background: #f1f0fb; border-color: #f1f0fb; text-decoration: none; }
.mk .band.cta a.cta-link { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-size: 17px; }
.band.cta .cta-faq { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .78); }
.mk .band.cta .cta-faq a { color: #fff; }
.mk footer.foot { background: var(--bg); border-top: 1px solid var(--line); }
.foot-theme { margin-top: 12px; }

@media (max-width: 860px) {
  .mk h1, .mk .hero.compact h1 { font-size: 34px; }
  .mk h2 { font-size: 24px; }
  .band { padding: 48px 0; } .band.tight { padding: 36px 0; }
  .band > .in { padding: 0 16px; }
  .six { grid-template-columns: 1fr; gap: 26px; }
  .steps3 { grid-template-columns: 1fr; gap: 26px; }
  .mk .hero.compact p { font-size: 16.5px; }
  .home .flash { margin: 12px 16px 0; }
  .band.cta h2 { font-size: 28px; }
}

/* ---- analytics consent bar (public pages) ---- */
.consent-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 760px; margin: 0 auto; display: flex; gap: 14px; align-items: center;
  justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; background: var(--card); color: var(--text); border: 1px solid var(--line2);
  border-radius: 12px; box-shadow: 0 12px 40px -12px rgba(0, 0, 0, .35); font-size: 14px; }
.consent-actions { display: flex; gap: 8px; }
.consent-actions button { min-width: 92px; }

/* ---- home page pricing grid: equal cards, one-line buttons pinned to the bottom ---- */
.mk .plans { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-items: stretch; }
@media (min-width: 1020px) { .mk .plans { grid-template-columns: repeat(5, 1fr); } }
.mk .plan { display: flex; flex-direction: column; padding: 24px 22px; }
.mk .plan h3 { font-size: 18px; margin-bottom: 10px; }
.mk .plan b.price { font-size: 38px; line-height: 1; }
.mk .plan .plan-sub { margin: 6px 0 0; min-height: 20px; }
.mk .plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; flex: 1; }
.mk .plan ul li { position: relative; padding-left: 24px; font-size: 16px; }
.mk .plan ul li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }
.mk .plan p { margin: 0; }
.mk .plan .btn { display: block; width: 100%; text-align: center; white-space: nowrap; padding: 12px 10px; font-size: 15px; }
.mk .plan.popular { box-shadow: 0 10px 28px -16px rgba(55, 48, 163, .45); }
.mk .plan .plan-price { white-space: nowrap; }
.mk .plan .plan-price .muted { font-size: 15px; }

/* ---- Index Watch on the home page ---- */
.mk .checks.checks-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 36px; max-width: 760px; margin: 22px auto 14px; justify-content: stretch; text-align: left; }
.mk .checks.checks-grid li { display: block; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; margin-top: 8px; }
.duo .card { display: flex; flex-direction: column; padding: 24px; }
.duo h3 { font-size: 20px; margin-bottom: 14px; }
.qlist { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; flex: 1; }
.qlist li { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.q { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 14px; line-height: 1; }
.q.ok { background: var(--ok-bg); color: var(--ok); } .q.bad { background: var(--bad-bg); color: var(--bad); } .q.warn { background: var(--warn-bg); color: var(--warn); }
.qfoot { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 650; color: var(--ink); }
.grid.stats.four { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.badge.s-waiting { background: rgba(71, 105, 160, .13); color: #3f5f95; }
.mk .plan ul li.off, .plan ul li.off { color: var(--muted); }
.mk .plan ul li.off::before { content: "\2013"; color: var(--muted); font-weight: 700; }
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
  .mk .checks.checks-grid { grid-template-columns: 1fr; gap: 8px; }
}

/* ---- shared marketing palette: every public page (body.mk) uses these; the app keeps its own themes ---- */
:root { --bg-alt: #f6f5f2; --ink: #15171c; --ink-muted: #5b6170; --accent: #3730a3; --accent-hover: #2c2585; --lost: #dc2626; --radius: 10px; }
.reg-points { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-muted); }
.reg-points li { position: relative; padding-left: 22px; }
.reg-points li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.mk .period-switch a.on { background: var(--accent); color: #fff; }
.mk .period-switch { border-radius: 999px; }
.mk .period-switch em { font-style: normal; font-size: 12px; font-weight: 700; opacity: .9; margin-left: 4px; }
.mk .tile3 i { color: var(--accent); }
.mk .flash.ok, .mk .flash.err, .mk .flash.warnbar { border-radius: var(--radius); }

.mk .plans-full .plan-sub { min-height: 40px; }
