:root {
    /* PitwallWP's palette (its logo): navy #23364E, red #ED5355, light blue #C0D7E9. An agency's branding replaces navy and red. */
    --navy: #23364E; --coral: #ED5355; --sky: #C0D7E9;
    --bg: #f4f6f9; --card: #fff; --ink: #0d1b26; --muted: #5b6b78; --line: #e1e7ed; --well: #eef2f6;
    --on-navy: #fff;
    --accent: var(--navy); --accent-ink: var(--on-navy);
    --font: 'Lexend', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-head: 'Lexend', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ok: #15803d; --ok-bg: #dcfce7; --warn: #a16207; --warn-bg: #fef9c3; --err: #b91c1c; --err-bg: #fee2e2;
    --line-strong: #c9d3dc; --ring: rgba(35,54,78,.22); --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    --radius: 12px; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.08);
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
        --bg: #08141d; --card: #0e1f2c; --ink: #eef3f7; --muted: #94a7b6; --line: #1f3546; --well: #132838;
        --accent: var(--sky); --accent-ink: var(--navy);
        --line-strong: #2c4659; --ring: rgba(192,215,233,.28); --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323364E' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
        --ok: #4ade80; --ok-bg: rgba(74,222,128,.12); --warn: #fbbf24; --warn-bg: rgba(245,158,11,.14); --err: #f87171; --err-bg: rgba(248,113,113,.14);
        --shadow: 0 0 0 1px rgba(0,0,0,.2), 0 1px 3px rgba(0,0,0,.4);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
        --bg: #08141d; --card: #0e1f2c; --ink: #eef3f7; --muted: #94a7b6; --line: #1f3546; --well: #132838;
        --accent: var(--sky); --accent-ink: var(--navy);
        --line-strong: #2c4659; --ring: rgba(192,215,233,.28); --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323364E' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
        --ok: #4ade80; --ok-bg: rgba(74,222,128,.12); --warn: #fbbf24; --warn-bg: rgba(245,158,11,.14); --err: #f87171; --err-bg: rgba(248,113,113,.14);
        --shadow: 0 0 0 1px rgba(0,0,0,.2), 0 1px 3px rgba(0,0,0,.4);
        color-scheme: dark;
    }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); }
h1, h2, h3, .stat b, .brand__name strong { font-family: var(--font-head); letter-spacing: .01em; }
a { color: var(--accent); }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; padding: 10px 24px; background: linear-gradient(90deg, color-mix(in srgb, var(--navy) 38%, black), color-mix(in srgb, var(--navy) 72%, black)); color: #fff; border-bottom: 3px solid var(--coral); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
a.brand:hover .brand__name strong { color: #fff; } a.brand:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; border-radius: 6px; }
.brand img { display: block; filter: drop-shadow(0 0 1px rgba(183, 227, 251, .55)); }
.brand img.brand__logo { height: 30px; width: auto; max-width: 160px; object-fit: contain; filter: none; }
.brand__name { display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.brand__name strong { font-size: 19px; font-weight: 700; color: #fff; }
.brand__name span { font-size: 13px; font-weight: 600; color: var(--sky); text-transform: uppercase; letter-spacing: .12em; }
.tabs { display: flex; gap: 4px; }
.tabs button { padding: 6px 12px; border: 0; border-radius: 8px; background: none; color: rgba(255,255,255,.72); font: inherit; font-weight: 600; cursor: pointer; }
.tabs button.is-active, .tabs button:hover { background: rgba(255,255,255,.12); color: #fff; }
.who { margin-left: auto; color: rgba(255,255,255,.72); font-size: 13px; }

main { max-width: 1280px; margin: 0 auto; padding: 24px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat b { display: block; font-size: 24px; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.stat.is-bad b { color: var(--err); } .stat.is-warn b { color: var(--warn); } .stat.is-ok b { color: var(--ok); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.toolbar input { min-width: 240px; }
.spacer { flex: 1; }
input, textarea, select { padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; font-size: 13.5px; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:hover, textarea:hover { border-color: color-mix(in srgb, var(--line-strong) 60%, var(--ink)); }
input:focus-visible, textarea:focus-visible, .sel__btn:focus-visible, button:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
textarea { width: 100%; resize: vertical; line-height: 1.5; }
textarea[name=code] { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--well); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
.btn-sm { padding: 4px 10px; font-size: 13px; }
.icon-btn { border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.icon-btn:hover { background: var(--well); color: var(--ink); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: 10px 14px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--well); border-bottom: 1px solid var(--line); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.is-clickable { cursor: pointer; }
.table tbody tr.is-clickable:hover td { background: var(--well); }
.site-name { font-weight: 600; }
.site-url { color: var(--muted); font-size: 12px; }
.actions { display: flex; gap: 6px; justify-content: flex-end; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--well); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.bad { background: var(--err-bg); color: var(--err); }
.pills { display: flex; flex-wrap: wrap; gap: 4px; }

.drawer { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.35); display: flex; justify-content: flex-end; }
.drawer__panel { width: min(860px, 100%); height: 100%; overflow-y: auto; background: var(--bg); box-shadow: -10px 0 40px rgba(0,0,0,.2); }
.drawer__head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 20px; background: var(--card); border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0 0 2px; font-size: 18px; }
.drawer__body { padding: 20px; display: grid; gap: 16px; }
.drawer__body h3 { margin: 0; padding: 12px 14px; font-size: 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.drawer__body h3 .spacer { flex: 1; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 14px; }
.facts div span { display: block; color: var(--muted); font-size: 12px; }
.checks { list-style: none; margin: 0; padding: 4px 14px 10px; }
.checks li { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.vuln-title { font-size: 12px; color: var(--muted); }

.dialog { border: 0; border-radius: var(--radius); padding: 0; background: var(--card); color: var(--ink); width: min(520px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.dialog::backdrop { background: rgba(0,0,0,.45); }
.dialog__box { padding: 20px; margin: 0; }
.dialog__box h2 { margin: 0 0 8px; font-size: 18px; }
.steps { margin: 0 0 12px; padding-left: 20px; color: var(--muted); }
.dialog__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.error { color: var(--err); margin: 8px 0 0; }
.confirm { width: min(440px, calc(100vw - 32px)); }
.confirm__text { margin: 0; color: var(--muted); }
.btn-danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn-danger:hover { background: var(--err); filter: brightness(1.08); }

.toasts { position: fixed; left: 20px; bottom: 20px; z-index: 30; display: grid; gap: 8px; }
.toast { display: flex; align-items: flex-start; gap: 10px; max-width: 440px; padding: 12px 16px; border-radius: 10px; font-weight: 500; line-height: 1.45; color: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.28); cursor: pointer; animation: toast-in .18s ease-out; }
.toast svg { flex: none; margin-top: 1px; }
.toast.is-ok { background: #15803d; } .toast.is-bad { background: #c0262d; } .toast.is-warn { background: #b45309; } .toast.is-info { background: #23364E; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .toast.is-ok { background: #16a34a; }
:root:not([data-theme="light"]) .toast.is-info { background: #1d5a7c; }
}
:root[data-theme="dark"] .toast.is-ok { background: #16a34a; }
:root[data-theme="dark"] .toast.is-info { background: #1d5a7c; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
    .top { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
    .top .tabs { order: 3; display: flex; width: 100%; overflow-x: auto; scrollbar-width: none; }
    .top .tabs button { flex: none; padding: 6px 9px; }
    main { padding: 14px; }
    .table thead { display: none; }
    .table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
    .table td { padding: 0; border: 0; }
    .toolbar input { min-width: 0; flex: 1 1 100%; }
    [data-table-card] .table tbody tr { position: relative; padding-left: 44px; }
    [data-table-card] .table td.pick { position: absolute; left: 14px; top: 12px; width: auto; }
}

.switch { position: relative; display: inline-flex; flex: none; width: 38px; height: 22px; margin-top: 2px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { width: 100%; height: 100%; border-radius: 999px; background: var(--line); transition: background .15s; position: relative; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled + span { opacity: .5; }

/* Bulk actions: the ticked sites, or all of them. */
.bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.bulk__scope { font-weight: 600; min-width: 120px; }
.bulk__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.bulk__progress { color: var(--muted); font-size: 13px; }
/* Something long is running: it should stand out. */
.bulk__progress.is-busy { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; overflow: hidden; border-radius: 8px; background: color-mix(in srgb, var(--coral) 16%, var(--card)); color: var(--ink); font-weight: 600; border: 1px solid color-mix(in srgb, var(--coral) 45%, transparent); }
.bulk__progress.is-busy::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: var(--done, 0%); background: var(--coral); transition: width .3s; }
.spinner { flex: none; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-busy, .btn.is-busy:disabled { opacity: 1; background: color-mix(in srgb, var(--coral) 16%, var(--card)); border-color: color-mix(in srgb, var(--coral) 55%, transparent); color: var(--ink); cursor: progress; }
.btn.is-busy .spinner { color: var(--coral); }
.link-btn { margin-left: auto; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; padding: 4px; }
.link-btn:hover, .link-btn:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.table th.pick, .table td.pick { width: 36px; padding-right: 0; }
.table td.pick input, .table th.pick input { width: 16px; height: 16px; cursor: pointer; }
.table tr.is-picked td { background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.results { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow-y: auto; }
.results li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.results li:last-child { border-bottom: 0; }

/* Monthly report: month, language, link. */
.report-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px 4px; }
.report-form input { flex: 1 1 260px; min-width: 0; font-size: 13px; }

/* After a database restore, while undo is possible. */
.restore-banner { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 14px; border-color: var(--warn); background: var(--warn-bg); }

/* Change watch: components with code changed without an update. */
.watch-list { padding: 4px 14px 8px; display: grid; gap: 8px; }
.watch-item { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 8px 10px; border: 1px solid var(--warn); border-radius: 8px; background: var(--warn-bg); }

/* File viewer: a flagged file's code, risky lines marked. */
.viewer { width: min(1100px, calc(100vw - 32px)); }
.viewer h2 { font-family: ui-monospace, Menlo, monospace; font-size: 15px; word-break: break-all; }
.viewer__meta { margin: 0 0 8px; font-size: 12px; }
.viewer__hits { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.viewer__code { margin: 0; max-height: 60vh; overflow: auto; padding: 8px 0; background: var(--well); border: 1px solid var(--line); border-radius: 8px; font: 12px/1.5 ui-monospace, Menlo, monospace; counter-reset: none; }
.viewer__line { display: block; padding: 0 12px 0 0; white-space: pre; }
.viewer__line::before { content: attr(data-n); display: inline-block; width: 48px; margin-right: 12px; padding-right: 8px; text-align: right; color: var(--muted); border-right: 1px solid var(--line); user-select: none; }
.viewer__line.is-risky { background: var(--err-bg); }

/* Autopilot: switch, level, hour. */
.autopilot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px 8px; }
.autopilot select { max-width: 100%; }

/* The dashboard's own schedule stopped. */
.stale-banner { margin-bottom: 12px; padding: 12px 14px; border-color: var(--err); background: var(--err-bg); color: var(--err); font-weight: 600; }

/* Administrators: two-factor required switch in the card header. */
.twofa-req { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.twofa-req .switch { margin-top: 0; }

/* Bulk results that need a look: under the bulk bar, not in a box. */
.bulk-results { margin-bottom: 12px; padding: 4px 14px 8px; border-color: var(--warn); }
.bulk-results__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 4px; }

/* File check: long paths wrap inside their column instead of pushing the table out. */
.table.findings { table-layout: fixed; }
.table.findings td:nth-child(1) { width: 22%; }
.table.findings td:nth-child(2) { width: 36%; }
.table.findings td:nth-child(3) { width: 9%; }
.table.findings td:nth-child(4) { width: 15%; font-size: 12px; }
.table.findings td:nth-child(5) { width: 18%; }
.table.findings .actions { flex-wrap: wrap; }
.table.findings code { word-break: break-all; overflow-wrap: anywhere; white-space: normal; font-size: 12px; }
.table.findings .pill { white-space: normal; text-align: left; }
.watch-item.leftover { border-color: var(--line); background: var(--well); }
@media (max-width: 760px) { .table.findings { table-layout: auto; } .table.findings td { width: auto !important; } }

/* ---------- Table or cards ---------- */
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); }
.seg button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.site-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.site-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer; border-top: 3px solid var(--line); }
.site-card:hover { border-color: var(--accent); }
.site-card.is-up { border-top-color: var(--ok); } .site-card.is-down { border-top-color: var(--err); }
.site-card.is-picked { outline: 2px solid var(--accent); }
.site-card__head { display: flex; gap: 10px; align-items: flex-start; }
.site-card__head input { margin-top: 3px; width: 16px; height: 16px; }
.site-card__name { font-family: var(--font-head); font-size: 17px; font-weight: 700; line-height: 1.2; }
.site-card__meta { color: var(--muted); font-size: 12px; }
.site-card__foot { display: flex; gap: 6px; align-items: center; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); }
.site-card__foot .spacer { flex: 1; }

/* ---------- Quick actions menu ---------- */
.icon { display: inline-block; vertical-align: -3px; }
.btn-icon { padding: 4px 8px; }
.menu { position: fixed; z-index: 40; min-width: 210px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.22); }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: none; color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; }
.menu button:hover, .menu a:hover { background: var(--well); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

/* ---------- Site panel tabs ---------- */
.drawer-tabs { position: sticky; top: var(--drawer-head, 72px); z-index: 2; display: flex; gap: 2px; margin: -20px -20px 0; padding: 0 16px; overflow-x: auto; background: var(--card); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.drawer-tabs button { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 12px 10px 10px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; border-bottom: 3px solid transparent; }
.drawer-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--coral); }
.drawer-tabs .badge { min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--well); color: var(--muted); font-size: 11px; line-height: 18px; text-align: center; }
.drawer-tabs .badge.bad { background: var(--err-bg); color: var(--err); } .drawer-tabs .badge.warn { background: var(--warn-bg); color: var(--warn); }
.tab-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.tab-panel[hidden] { display: none; }
.attention { list-style: none; margin: 0; padding: 6px 14px 10px; }
.attention li { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.attention li:last-child { border-bottom: 0; }
.attention button { margin-left: auto; }

/* Settings and the client card. */
/* Settings page: the full width of the page, cards two by two. */
.page-head { margin: 0 0 18px; }
.page-head h1 { margin: 0 0 4px; font-size: 26px; color: var(--accent); }
.page-head p { margin: 0; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: start; }
.set-card > h3 { margin: 0; padding: 14px 18px; font-size: 15px; border-bottom: 1px solid var(--line); }
.set-card__body { display: grid; gap: 14px; padding: 16px 18px 18px; }
.set-card__body > p { margin: 0; }
.small { font-size: 12px; }
.check-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 16px; }
.check-list .inline-check { font-weight: 500; }
.set-row { display: flex; align-items: center; gap: 12px; }
.set-row > div { flex: 1; }
.conns { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.conns li { display: flex; align-items: flex-start; gap: 12px; }
.conns .pill { flex: none; min-width: 44px; text-align: center; }
.r-sections { margin: 0 14px 10px; font-size: 13px; }
.r-sections summary { cursor: pointer; padding: 6px 0; }
.r-sections .check-list { padding: 8px 0 10px; }
.settings__form { display: grid; gap: 14px; }
.settings__form label { display: grid; gap: 4px; font-weight: 600; font-size: 13px; }
.settings__form small { font-weight: 400; color: var(--muted); }
.inline-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }

/* FluentAuth: who the guessing is aimed at; the raw attempts folded away. */
.fa-targets { padding: 4px 14px 0; font-size: 13px; }
.fa-targets .attention { padding: 4px 0 8px; }
.fa-recent { padding: 0 14px 10px; }
.fa-recent summary { cursor: pointer; padding: 6px 0; font-weight: 600; font-size: 13px; color: var(--muted); }

/* One scrollbar while the site panel is open: the page behind it stays put. */
html.drawer-open, html.drawer-open body { overflow: hidden; }
.drawer__panel { overscroll-behavior: contain; }

/* Thin scrollbars, brand coral. */
* { scrollbar-width: thin; scrollbar-color: var(--coral) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--coral); border-radius: 999px; }

/* Order and favourites. */
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.sort select { padding: 6px 8px; font-size: 13px; }
.star { display: inline-flex; vertical-align: -2px; margin: 0 6px 0 0; padding: 2px; border: 0; background: none; color: var(--line); cursor: pointer; border-radius: 4px; }
.star:hover { color: var(--muted); }
.star.is-on { color: #f5b301; }
.star.is-on svg { fill: currentColor; }
.btn-icon { padding: 5px 8px; }
@media (max-width: 760px) { .sort > span { display: none; } .sort { flex: 1 1 auto; } .sort select { width: 100%; } }

/* Performance tab. */
.speed-row { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 12px 14px; }
.speed-big { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--accent); }
.small-cap { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.spark-wrap { height: 60px; color: var(--coral); } .spark { width: 100%; height: 60px; }
.psi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 14px 10px; }
.psi { display: flex; gap: 12px; align-items: center; }
.psi__ring { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 4px solid; font-family: var(--font-head); font-size: 18px; font-weight: 700; }
.psi__ring.is-good { color: #16a34a; border-color: #16a34a; } .psi__ring.is-ok { color: #d97706; border-color: #d97706; } .psi__ring.is-bad { color: var(--err); border-color: var(--err); }
@media (max-width: 760px) { .psi-row, .speed-row { grid-template-columns: 1fr; } }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag { padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--sky) 45%, transparent); color: var(--ink); font-size: 11px; font-weight: 600; }
.tag-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-btn { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.tag-btn span { color: var(--muted); font-weight: 500; }
.tag-btn.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tag-btn.is-on span { color: inherit; opacity: .8; }
.notes-form { display: grid; gap: 8px; padding: 12px 14px; }
.notes-form textarea, .r-note textarea { width: 100%; resize: vertical; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
.notes-form__row { display: flex; gap: 8px; } .notes-form__row input { flex: 1; min-width: 0; }
.r-note { display: grid; gap: 6px; padding: 4px 14px 10px; }
.r-note label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.r-note .actions { align-items: center; }
.confirm__text { white-space: pre-line; }
/* PHP errors, disk */
.log-top li { align-items: flex-start; }
.log-top code { word-break: break-word; font-size: 12px; }
.drawer .bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.drawer .bars li { display: grid; grid-template-columns: minmax(70px, 30%) 1fr auto; gap: 8px; align-items: center; font-size: 12px; }
.drawer .bars__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer .bars__track { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.drawer .bars__track span { display: block; height: 100%; background: var(--coral); border-radius: 4px; }
.drawer .bars__n { color: var(--muted); white-space: nowrap; }
.drawer .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .drawer .grid2 { grid-template-columns: 1fr; } }
/* Plugins, Users, Activity filters */
.fleet .fleet__sites > td { padding: 0 0 8px 24px; background: var(--well); }
.fleet .fleet__sites .table td { font-size: 13px; }
.act-filters { flex-wrap: wrap; gap: 8px; }
.act-filters select, .act-filters input { min-width: 0; }
.date-in { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
a.btn { text-decoration: none; }

/* ---------- Our own controls (see controls.js) ---------- */
/* Checkboxes */
input[type=checkbox]:not(.switch input) { appearance: none; -webkit-appearance: none; flex: none; width: 18px; min-width: 0; height: 18px; margin: 0; padding: 0; border: 1.5px solid var(--line-strong); border-radius: 5px; background: var(--card) center / 13px no-repeat; cursor: pointer; vertical-align: middle; transition: background-color .12s, border-color .12s; }
input[type=checkbox]:not(.switch input):hover { border-color: var(--accent); }
input[type=checkbox]:not(.switch input):checked { background-color: var(--accent); background-image: var(--check); border-color: var(--accent); }
input[type=checkbox]:not(.switch input):indeterminate { background: var(--accent) linear-gradient(var(--accent-ink), var(--accent-ink)) center / 9px 2px no-repeat; border-color: var(--accent); }
input[type=checkbox]:not(.switch input):disabled { opacity: .45; cursor: not-allowed; }
/* A switch that cannot be changed: the track dimmed, never the hidden checkbox inside it. */
.switch input:disabled { opacity: 0; cursor: not-allowed; }
.switch input:disabled + span { opacity: .45; }
.switch:has(input:disabled) { cursor: not-allowed; }
.table td.pick input, .table th.pick input, .site-card__head input { width: 18px; height: 18px; }
/* Dropdowns */
.sel { position: relative; display: inline-flex; max-width: 100%; min-width: 0; vertical-align: middle; }
.sel__native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; pointer-events: none; }
.sel__btn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 6px 10px 6px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 500; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.sel__btn:hover { border-color: color-mix(in srgb, var(--line-strong) 60%, var(--ink)); }
.sel__btn:disabled { opacity: .5; cursor: not-allowed; }
.sel__val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel__btn > svg { flex: none; color: var(--muted); transition: transform .15s; }
.sel.is-open .sel__btn { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.sel.is-open .sel__btn > svg:last-child { transform: rotate(180deg); }
.sel__menu, .cal { position: fixed; z-index: 1000; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 36px rgba(0, 0, 0, .22), 0 2px 6px rgba(0, 0, 0, .08); animation: pop .12s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sel__menu { max-height: min(320px, 60vh); overflow: auto; padding: 4px; outline: none; }
.sel__opt { display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 8px; border-radius: 6px; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.sel__opt svg { flex: none; visibility: hidden; color: var(--coral); }
.sel__opt[aria-selected="true"] { font-weight: 600; }
.sel__opt[aria-selected="true"] svg { visibility: visible; }
.sel__opt.is-active { background: var(--well); }
.sel__opt[aria-disabled="true"] { opacity: .45; cursor: default; }
.sel__group { padding: 8px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.settings__form .sel, .autopilot .sel, .report-form .sel { display: flex; }
.settings__form .sel { width: 100%; }
/* Date picker */
.datef { position: relative; display: inline-flex; align-items: center; }
.datef__btn { min-width: 148px; }
.datef__btn > svg { color: var(--muted); }
.datef:not(.has-value) .sel__val { color: var(--muted); }
.datef.has-value .datef__btn { padding-right: 30px; }
.datef__clear { display: none; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.datef__clear:hover { background: var(--well); color: var(--ink); }
.datef.has-value .datef__clear { display: grid; }
.cal { width: 280px; padding: 10px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal__head strong { font-family: var(--font-head); font-size: 15px; text-transform: capitalize; }
.cal__head .icon-btn { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--ink); cursor: pointer; }
.cal__head .icon-btn:hover { background: var(--well); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal__grid abbr { padding: 4px 0; text-align: center; text-decoration: none; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.cal__grid button { aspect-ratio: 1; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.cal__grid button:hover { background: var(--well); }
.cal__grid button.is-today { box-shadow: inset 0 0 0 1.5px var(--coral); }
.cal__grid button.is-on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.cal__grid button:disabled { opacity: .3; cursor: default; }
.cal__foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
/* Expandable sections */
summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::before { content: ""; flex: none; width: 6px; height: 6px; margin: 0 2px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; }
details[open] > summary::before { transform: rotate(45deg); }

/* ---------- UI pass 2026-10 ---------- */
/* Stats: also filters */
.stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.stat:hover { border-color: var(--line-strong); }
.stat.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.stat__icon { grid-row: 1 / 4; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--well); color: var(--muted); }
.stat.is-warn .stat__icon { background: var(--warn-bg); color: var(--warn); }
.stat.is-bad .stat__icon { background: var(--err-bg); color: var(--err); }
.stat.is-ok .stat__icon { background: var(--ok-bg); color: var(--ok); }
.stat b { font-size: 26px; line-height: 1.1; }
.stat .stat__label { color: var(--ink); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat .stat__sub { color: var(--muted); font-size: 12px; text-transform: none; letter-spacing: 0; }
.stat:not(.is-warn):not(.is-bad):not(.is-ok) b { color: var(--ink); }
/* Status: a dot and a word */
.state { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--muted); white-space: nowrap; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.state.is-up { color: var(--ink); } .state.is-up::before { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.state.is-down { color: var(--err); } .state.is-down::before { background: var(--err); box-shadow: 0 0 0 3px var(--err-bg); }
[data-table-card] .table td.when { width: 1%; white-space: nowrap; }
[data-table-card] .table td.when .site-url { white-space: nowrap; }
[data-table-card] .table td:last-child { width: 1%; white-space: nowrap; }
.pill.more { background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); cursor: help; }
.site-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
/* Buttons that should not shout */
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--well); color: var(--ink); }
.btn-ghost-danger:hover { background: var(--err-bg); color: var(--err); }
.btn .icon { flex: none; }
.fact-link { display: block; margin-top: 2px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.fact-link:hover { color: var(--accent); }
/* Client form */
.client-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 12px 14px 6px; }
.client-form label:not(.inline-check) { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.client-form__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) { .client-form { grid-template-columns: 1fr; } }
/* Card headings in the site panel */
.drawer__body h3 { font-size: 15px; padding: 13px 16px; }
@media (max-width: 760px) {
    .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat { grid-template-columns: 1fr; padding: 10px 12px; }
    .stat__icon { display: none; }
    .stat b { font-size: 22px; }
    .stat .stat__label { font-size: 11px; }
    .stat .stat__sub { display: none; }
    .sort { flex: 1 1 100%; }
    .sort .sel { flex: 1; width: 100%; }
    [data-table-card] .table td.when, [data-table-card] .table td:last-child { width: auto; white-space: normal; }
    [data-table-card] .table td:last-child { grid-column: 1 / -1; }
    .tag-filter { flex: 1 1 100%; }
}

/* A site's own links */
.links { display: flex; flex-wrap: wrap; gap: 6px; }
.link-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; padding: 4px 10px 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font-size: 12.5px; font-weight: 600; text-decoration: none; transition: border-color .15s, background .15s; }
.link-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-chip .icon { flex: none; color: var(--coral); }
.link-chip:hover { border-color: var(--accent); background: var(--well); }
.site-card .links { margin-top: 2px; }
.links--head { margin-top: 8px; }
.links-form { display: grid; gap: 10px; padding: 12px 14px 14px; }
.links-rows { display: grid; gap: 8px; }
.links-rows:empty { display: none; }
.link-row { display: grid; grid-template-columns: auto minmax(120px, 1fr) minmax(160px, 1.6fr) auto; gap: 8px; align-items: center; }
.link-row input { min-width: 0; }
.link-row__icon { width: 38px; height: 38px; justify-content: center; padding: 0; color: var(--coral); }
.link-row__tools { display: flex; gap: 2px; }
.link-row__tools .icon-btn { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.link-row__tools .icon-btn:hover { background: var(--well); color: var(--ink); }
.link-row:first-child [data-link-up], .link-row:last-child [data-link-down] { visibility: hidden; }
@media (max-width: 760px) { .link-row { grid-template-columns: auto 1fr; } .link-row input[name=url] { grid-column: 1 / -1; } .link-row__tools { grid-column: 1 / -1; justify-content: flex-end; } }
.dialog.icon-picker { width: min(640px, calc(100vw - 32px)); }
.icon-picker input[type=search] { width: 100%; margin: 4px 0 12px; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 4px; max-height: min(420px, 55vh); overflow: auto; padding: 2px; }
.icon-grid button { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--ink); cursor: pointer; }
.icon-grid button:hover { background: var(--well); border-color: var(--line); }
.icon-grid button.is-on { border-color: var(--coral); color: var(--coral); }
.set-card--wide { grid-column: 1 / -1; }
.links-shared { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.set-card code { padding: 1px 5px; border-radius: 4px; background: var(--well); font-size: 12px; word-break: break-all; }

/* The team: who else is here */
.team { display: flex; margin-left: auto; }
.team + .who { margin-left: 12px; }
.team__who { display: grid; place-items: center; width: 30px; height: 30px; margin-left: -6px; border-radius: 50%; border: 2px solid #04283c; background: hsl(var(--h) 55% 45%); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; cursor: default; position: relative; }
.team__who.has-photo { background: var(--card); }
.team__who img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.team__who.is-doing::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); border: 2px solid #04283c; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.25); } }
.team-doing { display: grid; gap: 6px; margin-bottom: 14px; }
.team-doing > div, .d-team > div { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: color-mix(in srgb, var(--coral) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--coral) 40%, transparent); font-size: 13.5px; }
.team-doing .spinner { color: var(--coral); }
.d-team { display: grid; gap: 6px; margin-top: 10px; }
.setup-bar { height: 6px; margin: 12px 14px 4px; border-radius: 3px; background: var(--well); overflow: hidden; }
.setup-bar span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--coral), #f59e0b 60%, var(--ok)); background-size: 300px 100%; }
.setup-done { margin: 0 14px 10px; }

/* Quick search (Cmd+K) */
.palette-btn { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 6px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.8); font: inherit; font-size: 13px; cursor: pointer; }
.palette-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.palette-btn kbd { padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,.12); font: inherit; font-size: 11px; }
.palette-btn ~ .team, .palette-btn ~ .who { margin-left: 12px; }
.dialog.palette { width: min(640px, calc(100vw - 32px)); margin-top: 12vh; padding: 0; overflow: hidden; }
.palette__search { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.palette__search input { flex: 1; border: 0; padding: 6px 0; font-size: 16px; background: transparent; box-shadow: none !important; }
.palette__list { max-height: min(420px, 55vh); overflow: auto; padding: 6px; }
.palette__item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.palette__item .icon { flex: none; color: var(--muted); }
.palette__item.is-active { background: var(--well); }
.palette__item.is-active .icon { color: var(--coral); }
.palette__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.palette__label small { margin-left: 8px; font-weight: 400; color: var(--muted); }
.palette__kind { flex: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.palette__foot { display: flex; justify-content: space-between; padding: 8px 16px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .palette-btn span, .palette-btn kbd { display: none; } }
.key-form { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.key-form input { flex: 1; min-width: 0; max-width: 360px; }
.key-form .link-btn { margin-left: 0; }

/* Pages to watch, work log, licences */
.pages-form, .wl-form { display: grid; gap: 8px; padding: 12px 14px; }
.pages-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(160px, 1.4fr) auto; gap: 8px; align-items: center; }
.pages-row input { min-width: 0; }
.wl-form { grid-template-columns: auto auto 1fr auto; align-items: center; }
.wl-form input[name=note] { min-width: 0; }
@media (max-width: 760px) { .wl-form, .pages-row { grid-template-columns: 1fr 1fr; } .wl-form input[name=note], .pages-row input[name=text] { grid-column: 1 / -1; } }
.lic-form { display: grid; grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr) minmax(160px, 1.2fr) auto; gap: 8px; align-items: center; padding: 14px; }
.lic-form input { min-width: 0; }
@media (max-width: 900px) { .lic-form { grid-template-columns: 1fr 1fr; } }
/* Trends */
.trends { margin-bottom: 16px; }
.trends > h3 { margin: 0; padding: 13px 16px; font-size: 15px; border-bottom: 1px solid var(--line); }
.trends__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; padding: 14px 16px 16px; }
.trend__head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); }
.trend__head strong { font-family: var(--font-head); font-size: 18px; color: var(--ink); }
.trend__bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; height: 74px; margin-top: 6px; }
.trend__bars span { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.trend__bars i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--coral) 70%, transparent); }
.trend__bars span:last-child i { background: var(--coral); }
.trend__bars small { font-size: 10px; color: var(--muted); }
.trend__bars span i.is-empty { height: 3px; border-radius: 2px; background: var(--line); }
.trend__head strong { white-space: nowrap; }
.facts div { min-width: 0; overflow-wrap: anywhere; }
.mnav button:focus:not(:focus-visible), .msheet__panel button:focus:not(:focus-visible) { outline: none; }

/* Visual check */
.vis-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; padding: 12px 14px; align-items: start; }
@media (max-width: 760px) { .vis-grid { grid-template-columns: 1fr; } }
.vis__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.cmp { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--well); max-height: 460px; }
.cmp img { display: block; width: 100%; height: auto; }
.cmp__b { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.cmp__b::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: var(--coral); z-index: 1; }
.cmp input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cmp__label { position: absolute; top: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(5,57,84,.85); color: #fff; font-size: 11px; font-weight: 700; pointer-events: none; }
.cmp__label--a { left: 8px; } .cmp__label--b { right: 8px; background: rgba(240,91,98,.92); }
.fix-steps { margin: 0 14px 12px; font-size: 13px; }
.fix-steps > summary { font-weight: 700; color: var(--accent); padding: 6px 0; }
.fix-step { margin: 8px 0 12px; }
.fix-step ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.copy-row { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.copy-row code { padding: 2px 6px; border-radius: 4px; background: var(--well); font-size: 12px; word-break: break-all; }
.copy-row .btn { padding: 2px 8px; font-size: 11px; }
.dns-changed { margin: 10px 14px; padding: 12px 14px; border-radius: 10px; background: var(--err-bg); border: 1px solid color-mix(in srgb, var(--err) 40%, transparent); }
.dns-changed p { margin: 0 0 8px; } .dns-changed ul { margin: 0 0 10px; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.fb-tools { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 6px 14px 8px; }
.fb-tools input { min-width: 0; }
.fb-folders { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.upd-notes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.upd-notes .link-btn { margin: 0; padding: 0; font-size: 12.5px; font-weight: 600; }
.whatsnew { margin-top: 8px; padding: 10px 12px; border-left: 3px solid var(--coral); border-radius: 6px; background: var(--well); font-size: 12.5px; max-height: 320px; overflow: auto; }
.whatsnew ul { margin: 4px 0 8px; padding-left: 18px; }
.whatsnew p { margin: 0 0 6px; }
.wn-entry strong { font-size: 12.5px; }
.state.is-slow { color: var(--warn); } .state.is-slow::before { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }
.card.welcome { border-color: color-mix(in srgb, var(--coral) 50%, var(--line)); background: color-mix(in srgb, var(--coral) 6%, var(--card)); } .card.welcome p { margin: 10px 0 14px; }
.table.seo td { padding-top: 10px; padding-bottom: 10px; }
.seo__title { font-weight: 600; margin-top: 2px; }
.seo__issues { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.seo__issues .pill { white-space: normal; }
.push-row { flex-wrap: wrap; }
.push-row .sel { flex: none; }

/* Branding card */
.brand-form { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); align-items: start; gap: 22px; }
@media (max-width: 860px) { .brand-form { grid-template-columns: 1fr; } }
.brand-form__fields { display: grid; gap: 12px; }
.brand-form__fields label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.brand-form__colours { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.swatch-row { display: flex; gap: 8px; align-items: center; }
.swatch-row input[type=text] { width: 100%; font-family: ui-monospace, Menlo, monospace; text-transform: uppercase; }
input.swatch { appearance: none; -webkit-appearance: none; flex: none; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line-strong); border-radius: 10px; background: none; cursor: pointer; overflow: hidden; }
input.swatch::-webkit-color-swatch-wrapper { padding: 3px; } input.swatch::-webkit-color-swatch { border: 0; border-radius: 7px; } input.swatch::-moz-color-swatch { border: 0; border-radius: 7px; }
.brand-form__logo { display: grid; gap: 6px; }
.brand-form__logo-row { display: flex; align-items: center; gap: 10px; }
.brand-form__logo-preview { display: grid; place-items: center; min-width: 120px; height: 52px; padding: 6px 10px; border: 1px dashed var(--line-strong); border-radius: 10px; background: color-mix(in srgb, var(--bp-primary, var(--navy)) 100%, transparent); }
[data-set-brand] .brand-form__logo-preview { background: var(--well); }
.brand-form__logo-preview img { max-height: 40px; max-width: 160px; }
.brand-preview { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; color: #0d1b26; font-size: 12px; }
.brand-preview__cover { padding: 14px 16px; background: linear-gradient(120deg, color-mix(in srgb, var(--bp-primary) 45%, black), var(--bp-primary) 65%, color-mix(in srgb, var(--bp-primary) 80%, white)); color: var(--bp-on); border-bottom: 3px solid var(--bp-accent); }
.brand-preview__top { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 13px; }
.brand-preview__top img { height: 22px; width: auto; max-width: 100px; }
.brand-preview__title { margin-top: 10px; font-family: var(--font-head); font-size: 18px; font-weight: 700; }
.brand-preview__month { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.18); }
.brand-preview__body { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 16px; background: #f4f7fa; }
.brand-preview__kpi { padding: 6px 10px; border-radius: 8px; background: #fff; border-top: 3px solid var(--bp-primary); }
.brand-preview__kpi b { display: block; font-family: var(--font-head); font-size: 16px; color: var(--bp-primary); }
.brand-preview__kpi span { color: #5b6b78; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.brand-preview__btn { margin-left: auto; padding: 6px 10px; border-radius: 6px; background: var(--bp-primary); color: var(--bp-on); font-weight: 700; }

/* Footer, What's new, Docs, Recommended plugins */
/* The page is a column: the footer sits at the bottom of the window even when the page is short. */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > main { flex: 1 0 auto; width: 100%; }
/* Fixed to the bottom of the window; the page keeps that much room at its end (--foot-h, measured). */
.app-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13px; }
body { padding-bottom: var(--foot-h, 56px); }
.toasts { bottom: calc(var(--foot-h, 56px) + 14px) !important; }
.app-foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; max-width: 1280px; margin: 0 auto; padding: 10px 24px; }
@media (max-width: 760px) { .app-foot__in { padding: 8px 14px; justify-content: center; text-align: center; } .app-foot__in > .small { display: none; } }
.app-foot__brand strong { font-family: var(--font-head); letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.app-foot__links { display: flex; flex-wrap: wrap; gap: 4px; }
.app-foot__links button { padding: 4px 10px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.app-foot__links button:hover, .app-foot__links button.is-active { background: var(--well); color: var(--ink); }
.app-foot a { color: inherit; }
.changelog { display: grid; gap: 12px; max-width: 860px; }
.cl { padding: 14px 18px; }
.cl__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cl__head h3 { margin: 0; font-size: 16px; flex: 1; }
.cl ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 760px) { .docs { grid-template-columns: 1fr; } }
.docs__nav { position: sticky; top: 76px; display: grid; gap: 2px; }
.docs__nav button { text-align: left; padding: 8px 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.docs__nav button:hover { background: var(--well); color: var(--ink); }
.docs__nav button.is-on { background: var(--well); color: var(--ink); box-shadow: inset 3px 0 0 var(--coral); }
.docs__body { padding: 22px 26px; line-height: 1.65; max-width: 820px; }
.docs__body h2 { margin: 0 0 10px; font-size: 22px; color: var(--accent); }
.docs__body ul, .docs__body ol { padding-left: 22px; display: grid; gap: 6px; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.rec { display: flex; flex-direction: column; padding: 16px 18px; }
.rec__head { display: flex; align-items: center; gap: 12px; }
.rec__logo { flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 4px; }
.rec__logo--none { display: grid; place-items: center; background: var(--well); color: var(--accent); font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.rec__ours { margin-left: auto; }
.rec p { flex: 1; margin: 12px 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.rec__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rec-editor { margin-bottom: 16px; }
.rec-editor > h3 { margin: 0; padding: 14px 18px; font-size: 15px; border-bottom: 1px solid var(--line); }
.rec-editor__grid { grid-template-columns: 1fr 1fr; }
.rec-editor__grid label:not(.inline-check) { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.rec-editor__wide { grid-column: 1 / -1; }
.rec-editor__logo { display: inline-flex; align-items: center; gap: 8px; }
.rec-editor__logo img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); }

/* Changelog: a centred header, then a timeline (date | rail | version, summary, entries) */
.res-hero { position: relative; max-width: 760px; margin: 6px auto 40px; text-align: center; }
.res-hero h1 { margin: 0 0 14px; font-size: clamp(36px, 5.5vw, 56px); line-height: 1.05; letter-spacing: -.02em; }
.res-hero p { margin: 0 auto 20px; max-width: 620px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.res-hero .link-btn { display: inline; margin: 0; padding: 0; font-size: inherit; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cl-legend { display: flex; justify-content: center; gap: 22px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cl-legend span { display: inline-flex; align-items: center; gap: 8px; }
.cl-dot { flex: none; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); }
.cl-dot.is-new { background: #22c55e; } .cl-dot.is-enhance { background: #38bdf8; } .cl-dot.is-fix { background: #f5b301; }
.cl-timeline { max-width: 1040px; margin: 0 auto; }
.cl-release { display: grid; grid-template-columns: 170px minmax(0, 1fr); }
.cl-release__date { padding: 6px 24px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); text-align: right; }
.cl-release__body { position: relative; padding: 0 0 52px 30px; border-left: 1px solid var(--line); }
.cl-release__body::before { content: ""; position: absolute; left: -5px; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px var(--bg); }
.cl-release__body h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 30px; line-height: 1.1; }
.cl-release__body h2 .pill { font-family: var(--font); font-size: 11px; }
.cl-release__summary { margin: 0 0 16px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.cl-item { border-bottom: 1px solid var(--line); }
.cl-item > summary { display: flex; align-items: center; gap: 14px; padding: 14px 4px; font-family: var(--font-head); font-size: 17px; font-weight: 700; }
.cl-item > summary::before { display: none; }
.cl-item > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.cl-item[open] > summary::after { transform: rotate(-135deg); }
.cl-item > p { margin: -4px 0 16px; padding-left: 26px; color: var(--muted); line-height: 1.6; }
@media (max-width: 760px) {
    .cl-release { grid-template-columns: 1fr; }
    .cl-release__date { padding: 0 0 6px 30px; text-align: left; }
    .cl-legend { gap: 14px; }
}

/* Backups taken while a site may have been hacked */
.hack-note { margin: 0 14px 10px; padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); font-size: 13px; line-height: 1.5; }
.hack-note .pill { margin-right: 6px; }

/* Pitwall's own login: the account menu, Team and Your account */
.who.is-menu { cursor: pointer; border: 0; background: none; font: inherit; padding: 4px 8px; border-radius: 8px; color: rgba(255,255,255,.82); }
.who.is-menu:hover { background: rgba(255,255,255,.1); }
.who-menu { position: absolute; top: 54px; right: 16px; z-index: 60; min-width: 220px; padding: 6px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.who-menu__head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 13px; }
.who-menu__head span { display: block; color: var(--muted); font-size: 12px; }
.who-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.who-menu button:hover { background: var(--well); }
.team-table td { vertical-align: middle; }
.team-table .actions { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: flex-end; }
.team-invite { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.team-invite input { flex: 1 1 220px; }
.team-link { margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--well); font-size: 13px; }
.team-link code { display: block; margin: 6px 0 8px; word-break: break-all; font-size: 12px; }
.account-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 10px; border-radius: 8px; background: var(--well); font: 600 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }
.account-form { display: grid; gap: 8px; margin: 10px 0 14px; }
.viewer-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--well); color: var(--muted); font-size: 13px; }
body.role-technician [data-owner-only], body.role-viewer [data-owner-only] { display: none !important; }

/* Recommended plugins: the logo's background, chosen per plugin */
.rec-bg { flex-wrap: wrap; }
.rec-bg input[type=text] { width: 96px; flex: none; }
.rec-bg__presets { display: inline-flex; gap: 6px; }
.rec-bg__presets button { width: 26px; height: 26px; padding: 0; border-radius: 7px; border: 1px solid var(--line-strong); cursor: pointer; }
.rec-bg__presets button.is-on { outline: 2px solid var(--accent); outline-offset: 2px; }
[data-rec-logo-preview] img { background: var(--rec-bg, #fff); }

/* An agency's plan */
.plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.plan-name { font-size: 18px; font-family: var(--font-head); margin-right: 6px; }
.plan-use { margin: 0 0 12px; }
.plan-use__top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.plan-use__top .is-warn { color: var(--warn); font-weight: 600; }
.plan-use__bar { height: 8px; border-radius: 99px; background: var(--well); overflow: hidden; }
.plan-use__bar span { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.plan-use__bar span.is-warn { background: var(--warn); } .plan-use__bar span.is-full { background: var(--err); }
.plan-note { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 12px 14px; font-weight: 600; }
.plan-note.is-warn { border-color: var(--warn); background: var(--warn-bg); }
.plan-note.is-bad { border-color: var(--err); background: var(--err-bg); color: var(--err); }
.ended { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(6px); }
.ended__card { width: min(460px, 100%); padding: 26px; box-sizing: border-box; }
.ended__card h2 { margin: 0 0 8px; font-size: 20px; }
.ended__card p { margin: 0 0 18px; color: var(--muted); }
.ended__actions { display: flex; gap: 8px; }

/* The three pages about Pitwall (What's new, Docs, Recommended plugins): one header */
.res-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0 0 22px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.res-tabs button { padding: 6px 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.res-tabs button:hover { color: var(--ink); background: var(--well); }
.res-tabs button.is-here { background: var(--accent); color: var(--accent-ink); }
.res-hero__extra { display: flex; justify-content: center; }
.res-hero__extra:empty { display: none; }
.res-hero__extra .tag-filter { justify-content: center; }
.res-hero__count { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
/* Several categories per plugin: chips in the editor, rename or remove from the manager */
.chips-input { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 38px; padding: 4px 6px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); box-sizing: border-box; }
.chips-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.chips-input input { flex: 1 1 120px; min-width: 100px; border: 0 !important; box-shadow: none !important; padding: 4px; background: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; border-radius: 999px; background: var(--well); font-size: 12.5px; font-weight: 600; }
.chip button { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; }
.chip button:hover { background: var(--line); color: var(--ink); }
.rec-cats-manager { max-width: 760px; margin: 0 auto 18px; }
.rec-cats-manager > h3 { display: flex; align-items: center; margin: 0; padding: 12px 18px; font-size: 15px; border-bottom: 1px solid var(--line); }
.rec-cat-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rec-cat-row:last-child { border-bottom: 0; }
.rec-cat-row input { flex: 1 1 200px; }
.rec-cat-row .muted { min-width: 80px; font-size: 12.5px; }
.rec__cats { color: var(--muted); font-size: 12px; }

.res-hero__admin { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
@media (max-width: 520px) {
    .res-tabs { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
    .res-tabs::-webkit-scrollbar { display: none; }
    .res-tabs button { flex: none; padding: 6px 11px; font-size: 12.5px; white-space: nowrap; }
}

/* WP admin card */
.checks__group { padding-top: 10px !important; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wpa-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.wpa-client { display: grid; gap: 12px; padding: 12px; border-radius: 10px; background: var(--well); }
.wpa-client input[type=text] { width: 100%; box-sizing: border-box; margin-top: 6px; }
.wpa-boxes { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; }

/* Integrations page */
.int-grid { display: grid; gap: 18px; }
.int-head { margin: 6px 0 12px; font-size: 18px; }
.int-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.int-card { padding: 16px 18px; }
.int-card.is-soon { opacity: .78; }
.int-card__head { display: flex; align-items: center; gap: 12px; }
.int-card__head > div { flex: 1; min-width: 0; }
.int-card__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--well); color: var(--accent); }
.int-card__adds { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.5; display: grid; gap: 4px; }

/* Licences found on the sites */
.lic-found { margin-bottom: 14px; }
.lic-found > h3, .lic > h3, .lic-value > h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 16px; font-size: 15px; border-bottom: 1px solid var(--line); }

/* Install a plugin */
.dialog--wide { width: min(720px, calc(100vw - 32px)); }
.install { display: grid; gap: 12px; }
.install input[type=search] { width: 100%; box-sizing: border-box; }
.inst-results { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; margin-top: 8px; }
.inst-item { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.inst-item:hover { border-color: var(--line-strong); }
.inst-item.is-on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--ring); }
.inst-item img, .inst-item__icon { flex: none; width: 36px; height: 36px; border-radius: 8px; }
.inst-item__icon { display: grid; place-items: center; background: var(--well); color: var(--accent); }
.inst-item > span:last-child { display: grid; gap: 2px; min-width: 0; }
.inst-item-row { display: flex; gap: 6px; align-items: center; }
.inst-chosen { padding: 10px 12px; border-radius: 10px; background: var(--well); }
.inst-sites-head { display: flex; justify-content: space-between; align-items: center; }
.inst-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; max-height: 200px; overflow-y: auto; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.inst-sites .is-off { opacity: .55; }
.inst-progress { display: grid; gap: 4px; max-height: 200px; overflow-y: auto; font-size: 13px; }
.inst-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border-radius: 8px; background: var(--well); }
.inst-line.is-ok { background: var(--ok-bg); } .inst-line.is-bad { background: var(--err-bg); color: var(--err); } .inst-line.is-warn { background: var(--warn-bg); }

/* The licence vault */
.vault { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: 12.5px; }
.vault code { padding: 1px 6px; border-radius: 6px; background: var(--well); font-size: 12px; }
.vault code.is-open { color: var(--ink); user-select: all; }
.vault .link-btn { margin: 0; font-size: 12.5px; }
.lic-form { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; }
.lic-form > input, .lic-form > label { min-width: 0; width: 100%; box-sizing: border-box; }
.lic-form .date-in { display: flex; align-items: center; gap: 8px; }
.lic-form [data-lic-save] { grid-column: 3; justify-self: end; width: auto; }
@media (max-width: 760px) { .lic-form { grid-template-columns: 1fr; } .lic-form [data-lic-save] { grid-column: 1; } }

/* ======================================================================
   Design refresh (0.58): colour roles, type, buttons, cards, site cards.
   Later in the file, so it wins over the older rules above.
   ====================================================================== */
:root {
    --primary: var(--navy); --on-primary: var(--on-navy); --on-coral: #fff;
    --radius-sm: 8px; --radius-lg: 16px;
    --shadow-lg: 0 10px 30px -12px rgba(16, 24, 40, .25);
    --text-xs: 11.5px; --text-sm: 12.5px;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
        /* Main actions in the brand's accent: the primary navy is too dark to act as a button on a dark page. */
        --primary: var(--coral); --on-primary: var(--on-coral);
        --bg: #07121a; --card: #0d1d29; --well: #12283a; --line: #1c3245; --line-strong: #2a4458;
        --shadow: 0 0 0 1px rgba(0,0,0,.25), 0 2px 8px -2px rgba(0,0,0,.45);
        --shadow-lg: 0 18px 40px -16px rgba(0,0,0,.7);
    }
}
:root[data-theme="dark"] {
        /* Main actions in the brand's accent: the primary navy is too dark to act as a button on a dark page. */
        --primary: var(--coral); --on-primary: var(--on-coral);
        --bg: #07121a; --card: #0d1d29; --well: #12283a; --line: #1c3245; --line-strong: #2a4458;
        --shadow: 0 0 0 1px rgba(0,0,0,.25), 0 2px 8px -2px rgba(0,0,0,.45);
        --shadow-lg: 0 18px 40px -16px rgba(0,0,0,.7);
    }
/* Headings: the display face for page titles and big numbers; cards and sections in the text face, for calm. */
.card h3, .set-card > h3, .sx-card h3, .int-card strong, .drawer .card h3 { font-family: var(--font); font-weight: 650; letter-spacing: 0; }
.card > h3 { font-size: 14.5px; }
/* Buttons */
.btn { min-height: 34px; border-radius: var(--radius-sm); transition: background-color .15s, border-color .15s, box-shadow .15s, filter .15s; }
.btn-sm { min-height: 30px; }
.btn:hover:not(:disabled) { border-color: var(--line-strong); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 16px -10px var(--primary); }
.btn-primary:hover:not(:disabled) { background: var(--primary); border-color: var(--primary); filter: brightness(1.07); }
.btn-primary:disabled { filter: saturate(.4); opacity: .55; box-shadow: none; }
.btn-danger { background: transparent; border-color: color-mix(in srgb, var(--err) 55%, transparent); color: var(--err); }
.btn-danger:hover:not(:disabled) { background: var(--err-bg); border-color: var(--err); }
.btn-ghost-danger { color: var(--err) !important; }
/* Pills: one height, one weight */
.pill { padding: 2px 9px; font-size: 11.5px; line-height: 1.5; letter-spacing: .01em; }
.pills { display: flex; flex-wrap: wrap; gap: 5px; }
/* Long names and addresses stay on one line, in full on hover */
.site-cell { max-width: 0; width: 34%; }
.site-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.site-name__text, .site-cell .site-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.site-cell .site-url { display: block; }

/* ---------- Site cards ---------- */
.site-cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: stretch; }
.sc { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 16px 16px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.sc:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.sc.is-picked { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
.sc__select { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; gap: 4px; padding: 3px 4px; border-radius: 8px; background: var(--card); opacity: 0; transition: opacity .15s; }
.sc:hover .sc__select, .sc.is-picked .sc__select, .sc__select:focus-within, .sc__select:has(.star.is-on) { opacity: 1; }
.sc__select .star.is-on { color: #f5b301; }
.sc__head { display: flex; align-items: center; gap: 12px; min-width: 0; padding-right: 54px; }
.sc__title { flex: 1; min-width: 0; }
.sc__name { font-weight: 650; font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc__domain { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc__head .state { flex: none; position: absolute; top: 16px; right: 16px; transition: opacity .15s; }
.sc:hover .sc__head .state, .sc.is-picked .sc__head .state { opacity: 0; }
.sc__body { display: grid; gap: 8px; margin: 14px 0 12px; align-content: start; flex: 1; }
.sc__line { min-width: 0; }
.sc__line .pills { flex-wrap: nowrap; overflow: hidden; }
.sc__line .pill { flex: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sc .links { margin: 0; }
.sc__foot { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.sc__actions { display: flex; gap: 6px; align-items: center; }
.sc__meta { margin-left: auto; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.sc.is-down { border-color: color-mix(in srgb, var(--err) 45%, var(--line)); }
.site-badge { display: inline-grid; place-items: center; flex: none; border-radius: 11px; font: 700 14px/1 var(--font); letter-spacing: .02em; color: hsl(var(--h) 55% 92%); background: linear-gradient(135deg, hsl(var(--h) 55% 38%), hsl(calc(var(--h) + 35) 60% 30%)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
@media (prefers-color-scheme: light) {
:root:not([data-theme="dark"]) .site-badge { color: #fff; background: linear-gradient(135deg, hsl(var(--h) 55% 46%), hsl(calc(var(--h) + 35) 60% 38%)); }
}
:root[data-theme="light"] .site-badge { color: #fff; background: linear-gradient(135deg, hsl(var(--h) 55% 46%), hsl(calc(var(--h) + 35) 60% 38%)); }

/* The site panel's header: badge, name, status, the address */
.drawer__head { align-items: center; gap: 14px; }
.d-badge { flex: none; }
.d-id { flex: 1; min-width: 0; }
.d-id__top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.d-id__top h2 { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 19px; }
.d-id__top .state { flex: none; font-size: 12.5px; }
.d-id__url { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; text-decoration: none; }
.d-id__url:hover { color: var(--ink); text-decoration: underline; }
.d-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 10px; align-self: flex-start; }
@media (max-width: 640px) { .d-badge .site-badge { width: 34px !important; height: 34px !important; font-size: 12px !important; } .d-id__top h2 { font-size: 17px; } }

/* The site panel's ⋯ menu: what is used rarely, out of the way */
.dmore { position: relative; }
.dmore > summary { list-style: none; cursor: pointer; }
.dmore > summary::-webkit-details-marker { display: none; }
.dmore > summary::before, .dmore > summary::after { display: none !important; content: none !important; }
.tab-panel > .actions > .dmore { margin-left: auto; }
.dmore > .menu { position: absolute; right: 0; top: calc(100% + 6px); }
.menu .is-danger { color: var(--err); }
.menu .is-danger:hover { background: var(--err-bg); }
.tab-panel > .actions { align-items: center; }

/* Settings (0.58): sections on the left, one at a time on the right; each card saves on its own. */
.sx { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; align-items: start; max-width: 1120px; margin: 0 auto; }
.sx-nav { position: sticky; top: 84px; }
.sx-nav h1 { margin: 2px 0 16px 10px; font-size: 26px; color: var(--accent); }
.sx-nav nav { display: grid; gap: 2px; }
.sx-nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-weight: 600; text-align: left; cursor: pointer; transition: background .12s, color .12s; }
.sx-nav button svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sx-nav button:hover { background: var(--well); color: var(--ink); }
.sx-nav button.is-on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.sx-nav button.is-on svg { color: var(--coral); }
.sx-nav__sep { display: block; margin: 16px 12px 6px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sx-nav__more { margin: 18px 12px 0; line-height: 1.5; }
.sx-nav__more .link-btn { display: inline; padding: 0; font-size: inherit; }
.sx-main { min-width: 0; }
.sx-pane { display: grid; gap: 16px; }
.sx-head h2 { margin: 0 0 4px; font-size: 22px; }
.sx-head p { margin: 0; max-width: 680px; color: var(--muted); line-height: 1.55; }
.sx-card { overflow: hidden; }
.sx-card__title { padding: 16px 20px 0; }
.sx-card__title h3 { margin: 0 0 3px; padding: 0; border: 0; font-size: 15px; }
.sx-card__title p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.sx-card__body { display: grid; gap: 14px; padding: 18px 20px; }
.sx-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 8px 24px; align-items: center; padding: 2px 0; }
.sx-row + .sx-row { padding-top: 14px; border-top: 1px solid var(--line); }
.sx-row__label { font-weight: 600; }
.sx-row__label small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; font-weight: 500; line-height: 1.45; }
.sx-row__control { display: flex; min-width: 0; }
.sx-row__control > * { flex: 1 1 auto; min-width: 0; }
.sx-row__control--inline { align-items: center; justify-content: flex-end; gap: 10px; }
.sx-row__control--inline > * { flex: none; }
.sx-row[data-alerts], .sx-row.push-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.sx-row[data-alerts] > div, .sx-row.push-row > div { flex: 1 1 240px; min-width: 0; }
.sx-foot { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--well) 55%, var(--card)); }
.sx-foot__state { margin-left: auto; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.sx-foot__state[data-kind="warn"] { color: var(--warn); }
.sx-foot__state[data-kind="ok"] { color: var(--ok); }
.sx-foot__state:empty + .btn { margin-left: auto; }
.sx-foot > .link-btn { margin-left: 0; padding-left: 0; }
.sx-foot > .btn-sm:first-child { margin-right: auto; }
.sx-foot > .link-btn:first-child + .sx-foot__state:empty { margin-left: auto; }
[data-sx-form]:not(.is-dirty) [data-sx-save] { opacity: .55; }
[data-sx-form].is-dirty .sx-foot { background: color-mix(in srgb, var(--warn-bg) 60%, var(--card)); }
.sx-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.5; }
.sx-stat { display: flex; align-items: center; gap: 14px; }
.sx-stat__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; }
.sx-stat__icon.is-ok { background: var(--ok-bg); color: var(--ok); }
.sx-stat__icon.is-warn { background: var(--warn-bg); color: var(--warn); }
.sx .brand-form { padding: 18px 20px; }
.sx .check-list { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.sx .team-table { margin: -6px 0 0; }
@media (max-width: 860px) {
    .sx { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .sx-nav { position: static; }
    .sx-nav h1 { margin: 0 0 10px; }
    .sx-nav nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 2px 14px 6px; }
    .sx-nav nav::-webkit-scrollbar { display: none; }
    .sx-nav button { flex: none; width: auto; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 13px; white-space: nowrap; }
    .sx-nav button.is-on { border-color: transparent; background: var(--accent); color: var(--accent-ink); box-shadow: none; }
    .sx-nav button.is-on svg { color: inherit; }
    .sx-nav__sep { display: none !important; }
    .sx-nav__more { display: none; }
    .sx-row { grid-template-columns: minmax(0, 1fr); }
    .sx-row__control--inline { justify-content: flex-start; }
    .sx-card__body, .sx .brand-form { padding: 16px; }
    .sx-foot { padding: 12px 16px; flex-wrap: wrap; }
}

/* Integrations (0.58): tiles, each opening a side sheet */
.int-filter { margin: -4px 0 18px; }
.int-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 8px 0 12px; font-size: 18px; }
.int-head span { color: var(--muted); font-family: var(--font); font-size: 13px; font-weight: 500; letter-spacing: 0; }
[data-int-services-wrap] { margin-bottom: 26px; }
.ic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ic { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 16px 18px; border: 1px solid var(--line); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.ic:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--shadow-lg, var(--shadow)); }
.ic:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ic.is-soon { opacity: .72; }
.ic__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.ic__logo { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent); }
.ic__name { font-size: 15px; font-weight: 650; }
.ic__blurb { color: var(--muted); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ic__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.ic__foot .btn { pointer-events: none; }

/* A side sheet (Integrations): slides in from the right; from the bottom on phones */
.sheet { position: fixed; inset: 0; z-index: 45; display: flex; justify-content: flex-end; background: rgba(4, 12, 18, 0); transition: background .18s; }
.sheet.is-open { background: rgba(4, 12, 18, .55); }
.sheet__panel { width: min(520px, 100%); height: 100%; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); box-shadow: -16px 0 48px rgba(0,0,0,.25); transform: translateX(24px); opacity: 0; transition: transform .18s, opacity .18s; }
.sheet.is-open .sheet__panel { transform: none; opacity: 1; }
body.has-sheet { overflow: hidden; }
.sh-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: var(--card); border-bottom: 1px solid var(--line); }
.sh-head > div { flex: 1; min-width: 0; }
.sh-head h2 { margin: 0 0 3px; font-size: 20px; }
.sh-head__sub { display: flex; align-items: center; gap: 8px; }
.sh-blurb { margin: 18px 22px 0; color: var(--muted); line-height: 1.55; }
.sh-sec { margin: 16px 22px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.sh-sec h3 { margin: 0 0 12px; font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sh-sec > p { margin: 0; }
.sh-adds, .sh-sites { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.sh-adds li { display: flex; gap: 10px; line-height: 1.5; }
.sh-adds li svg { flex: none; margin-top: 3px; color: var(--ok); }
.sh-sites { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 14px; }
.sh-sites li { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 13px; font-weight: 600; }
.sh-sites li span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-sites .site-badge { font-size: 9px; border-radius: 6px; }
.sh-switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sh-steps > summary { list-style: none; cursor: pointer; display: flex; align-items: center; }
.sh-steps > summary::-webkit-details-marker { display: none; }
.sh-steps > summary::before { display: none; }
.sh-steps > summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.sh-steps[open] > summary::after { transform: rotate(-135deg); }
.sh-steps > summary h3 { margin: 0; }
.sh-steps ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.55; }
.kr-list { display: grid; gap: 12px; }
.kr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.kr + .kr { padding-top: 12px; border-top: 1px solid var(--line); }
.kr__label { grid-column: 1 / -1; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.kr__main { min-width: 0; }
.kr__saved { display: flex; align-items: center; gap: 8px; font: 600 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.kr__saved .muted { font-family: var(--font); font-weight: 500; }
.kr__dots { color: var(--muted); letter-spacing: .1em; }
.kr__tools { display: flex; gap: 6px; }
.kr__form { display: flex; gap: 8px; }
.kr__form input { flex: 1 1 auto; min-width: 0; }
.kr:has(.kr__form:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
.sh-test { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.sh-test__out { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.sh-test__out.is-ok { color: var(--ok); } .sh-test__out.is-bad { color: var(--err); }
@media (max-width: 640px) {
    .sheet { align-items: flex-end; }
    .sheet__panel { width: 100%; height: auto; max-height: 92dvh; border-radius: 18px 18px 0 0; transform: translateY(32px); padding-bottom: env(safe-area-inset-bottom); }
    .sh-head { border-radius: 18px 18px 0 0; padding: 16px; }
    .sh-blurb { margin: 14px 16px 0; }
    .sh-sec { margin: 12px; padding: 14px; }
    .kr { grid-template-columns: minmax(0, 1fr); }
    .ic-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Log files found by the file check: listed apart, calm */
.log-list { margin: 4px 14px 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.log-list__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 10px 12px; background: var(--well); font-size: 13px; }
.log-list__head svg { color: var(--muted); }
.log-list__head .muted { flex-basis: 100%; font-size: 12px; }
.log-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 12.5px; }
.log-row code { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.log-row .muted { white-space: nowrap; }
@media (max-width: 640px) { .log-row { flex-wrap: wrap; } .log-row code { flex-basis: 100%; } }

/* Health score (0.60): a ring, coloured by grade */
.hs { position: relative; display: inline-grid; place-items: center; flex: none; width: var(--size, 34px); height: var(--size, 34px); --c: var(--ok); }
.hs.is-good { --c: color-mix(in srgb, var(--ok) 55%, var(--warn)); } .hs.is-fair { --c: var(--warn); } .hs.is-poor { --c: var(--err); }
.hs svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.hs circle { fill: none; stroke-width: 3.4; }
.hs__track { stroke: var(--line); }
.hs__bar { stroke: var(--c); stroke-linecap: round; transition: stroke-dasharray .4s; }
.hs b { position: relative; font: 700 calc(var(--size, 34px) * .34)/1 var(--font); color: var(--ink); }
.hs-trend { color: var(--muted); font-size: 11px; font-weight: 600; }
.hs-trend.is-up { color: var(--ok); } .hs-trend.is-down { color: var(--err); }
.sc__health { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; }
.sc__health-text { display: grid; line-height: 1.2; font-size: 11px; color: var(--muted); font-weight: 600; }
.health-cell { display: flex; align-items: center; gap: 10px; }
.health-cell .pills { min-width: 0; }
.att-health { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-family: var(--font); }
.hs-days { display: flex; align-items: flex-end; gap: 2px; height: 34px; padding: 10px 16px 0; }
.hs-days i { flex: 1; min-width: 3px; border-radius: 2px 2px 0 0; background: var(--ok); opacity: .75; }
.hs-days i.is-good { background: color-mix(in srgb, var(--ok) 55%, var(--warn)); } .hs-days i.is-fair { background: var(--warn); } .hs-days i.is-poor { background: var(--err); }

/* First steps (0.60): a welcome with no sites, then a checklist */
[data-panel="sites"].is-empty > :not([data-welcome]):not([data-since]):not(.team-doing) { display: none !important; }
.welcome { max-width: 760px; margin: 10px auto 30px; }
.welcome__hero { text-align: center; padding: 20px 10px 26px; }
.welcome__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 20px; background: color-mix(in srgb, var(--coral) 14%, var(--card)); color: var(--coral); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--coral) 30%, transparent); }
.welcome__hero h1 { margin: 0 0 8px; font-size: 30px; color: var(--accent); }
.welcome__hero p { margin: 0 auto; max-width: 520px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.welcome__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.welcome__steps li { display: flex; gap: 16px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.welcome__steps b { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--well); font: 700 14px/1 var(--font); }
.welcome__steps strong { display: block; margin-bottom: 2px; font-size: 15px; }
.welcome__steps p { margin: 0 0 10px; color: var(--muted); font-size: 13.5px; }
.welcome__steps li > div > :last-child { margin-bottom: 0; }
.welcome__more { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.welcome__more .link-btn { display: inline; padding: 0; font-size: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.welcome__more .link-btn:hover, .welcome__more .link-btn:focus-visible { color: var(--ink); text-decoration-color: currentColor; }
.gs { margin-bottom: 16px; padding: 14px 16px; }
.gs__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.gs__head > div:first-child { display: grid; }
.gs__head > div:first-child .muted { font-size: 12.5px; }
.gs__bar { flex: 1; height: 6px; border-radius: 99px; background: var(--well); overflow: hidden; }
.gs__bar span { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.gs__head .icon-btn { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; }
.gs__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.gs__item { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.gs__item:hover:not(:disabled) { border-color: var(--line-strong); }
.gs__item svg { flex: none; color: var(--accent); }
.gs__item.is-done { color: var(--muted); font-weight: 500; text-decoration: line-through; cursor: default; }
.gs__item.is-done svg { color: var(--ok); }
@media (max-width: 640px) { .welcome__hero h1 { font-size: 25px; } .welcome__steps li { padding: 14px; gap: 12px; } }

/* Quick fixes (0.61): what Pitwall can fix itself, with the points it gives back */
.fixbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--ok) 5%, transparent); }
.fixbar__label { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-size: 13px; font-weight: 700; }
.fixbar__label svg { color: var(--ok); }
.fixbar__pts { padding: 0 6px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 11px; font-weight: 700; }
.btn-primary .fixbar__pts { background: rgba(255,255,255,.22); color: inherit; }

/* Shop revenue bars, review stars (0.61) */
.mini-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; height: 70px; padding: 4px 16px 14px; }
.mini-bars span { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.mini-bars i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.mini-bars span:last-child i { background: var(--accent); }
.mini-bars small { font-size: 10px; color: var(--muted); }
.stars { color: #f5b301; letter-spacing: 1px; }

/* Client requests (0.61) */
.reqs { list-style: none; margin: 0; padding: 4px 16px 10px; }
.reqs li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.reqs li:last-child { border-bottom: 0; }
.reqs li.is-done { opacity: .6; }
.reqs__main { flex: 1; min-width: 0; }
.reqs__who { font-size: 13px; font-weight: 600; }
.reqs p { margin: 4px 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }

/* Planned maintenance (0.61) */
.state.is-maint { color: #3b82f6; } .state.is-maint::before { background: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.18); }
.maint-row { display: grid; gap: 4px; margin: 0 0 12px; font-size: 13px; font-weight: 600; }

/* Client status page card (0.60) */
.status-link { display: flex; gap: 8px; }
.status-link input { flex: 1; min-width: 0; font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; }
@media (max-width: 640px) { .status-link { flex-wrap: wrap; } .status-link input { flex-basis: 100%; } }

/* Since your last visit (0.60) */
.since { margin-bottom: 16px; padding: 14px 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, var(--card)), var(--card) 60%); }
.since__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.since__head svg { color: var(--accent); }
.since__head .muted { font-size: 13px; }
.since__x { margin-left: auto; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; }
.since__items { display: flex; flex-wrap: wrap; gap: 8px; }
.since__item { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s; }
.since__item:hover { border-color: var(--line-strong); }
.since__item svg { color: var(--muted); }
.since__item.is-bad { border-color: color-mix(in srgb, var(--err) 45%, var(--line)); } .since__item.is-bad svg { color: var(--err); }
.since__item.is-warn svg { color: var(--warn); } .since__item.is-ok svg { color: var(--ok); }
.since__top { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
@media (max-width: 640px) { .since__items { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; } .since__item { flex: none; } }

/* The bell (0.60): every alert, newest first */
.bell-btn { position: relative; display: grid; place-items: center; width: 38px; height: 38px; margin-left: 10px; padding: 0; border: 0; border-radius: 10px; background: none; color: rgba(255,255,255,.8); cursor: pointer; }
.bell-btn:hover, .bell-btn[aria-expanded="true"] { background: rgba(255,255,255,.1); color: #fff; }
.bell-btn:focus-visible { outline: 2px solid var(--sky); outline-offset: 1px; }
.bell-btn.has-new svg { animation: bell-ring 1.2s ease 1; transform-origin: 50% 10%; }
@keyframes bell-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } }
@media (prefers-reduced-motion: reduce) { .bell-btn.has-new svg { animation: none; } }
.bell-btn__count { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--coral); color: var(--on-coral, #fff); font: 700 10.5px/17px var(--font); text-align: center; box-shadow: 0 0 0 2px color-mix(in srgb, var(--navy) 60%, black); }
.bell-btn + .avatar-btn { margin-left: 6px; }
.bellp { position: absolute; top: 58px; right: 64px; z-index: 60; display: flex; flex-direction: column; width: 400px; max-height: min(620px, calc(100dvh - 80px)); background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg, 0 16px 40px rgba(0,0,0,.25)), 0 0 0 1px rgba(0,0,0,.04); overflow: hidden; }
.bellp__head { display: flex; align-items: baseline; gap: 8px; padding: 14px 16px 10px; }
.bellp__head strong { font-size: 15px; }
.bellp__head .link-btn { margin-left: auto; font-size: 12.5px; }
.bellp__tabs { display: flex; gap: 4px; padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.bellp__tabs button { padding: 4px 10px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.bellp__tabs button.is-on { background: var(--well); color: var(--ink); }
.bellp__list { overflow-y: auto; overscroll-behavior: contain; }
.bella { display: flex; gap: 11px; width: 100%; padding: 11px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.bella:hover { background: var(--well); }
.bella.is-new { background: color-mix(in srgb, var(--coral) 6%, transparent); }
.bella__dot { flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--line-strong); }
.bella__dot.is-bad { background: var(--err); } .bella__dot.is-warn { background: var(--warn); } .bella__dot.is-ok { background: var(--ok); } .bella__dot.is-info { background: var(--accent); }
.bella__main { display: grid; gap: 2px; min-width: 0; }
.bella__title { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.bella__body { color: var(--muted); font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.bella__full { white-space: pre-wrap; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.bella__meta { color: var(--muted); font-size: 11.5px; }
.bellp__empty { display: grid; justify-items: center; gap: 10px; padding: 36px 24px; color: var(--muted); text-align: center; font-size: 13px; }
.bellp__foot { padding: 10px 16px; border-top: 1px solid var(--line); }
.bellp__foot:empty { display: none; }
@media (max-width: 640px) { .bellp { left: 8px; right: 8px; width: auto; top: 56px; } .bell-btn { margin-left: 4px; } }

/* The account menu (0.59): an avatar in the top bar */
.avatar-btn { position: relative; display: grid; place-items: center; margin-left: 12px; padding: 3px; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.palette-btn + .avatar-btn, .team + .avatar-btn { margin-left: 12px; }
.avatar-btn:hover .avatar, .avatar-btn[aria-expanded="true"] .avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.55); }
.avatar-btn:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font: 700 12.5px/1 var(--font); letter-spacing: .03em; background: linear-gradient(135deg, hsl(var(--h, 200) 55% 48%), hsl(calc(var(--h, 200) + 40) 60% 38%)); box-shadow: 0 0 0 2px rgba(255,255,255,.18); transition: box-shadow .15s; }
.avatar--lg { width: 40px; height: 40px; font-size: 14px; box-shadow: none; flex: none; }
.avatar-btn__dot { position: absolute; top: 2px; right: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px color-mix(in srgb, var(--navy) 60%, black); }
.umenu { position: absolute; top: 58px; right: 16px; z-index: 60; width: 290px; padding: 6px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg, 0 16px 40px rgba(0,0,0,.25)), 0 0 0 1px rgba(0,0,0,.04); }
.umenu__head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; }
.umenu__head > div { min-width: 0; }
.umenu__head strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.umenu__head span:not(.avatar) { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.umenu__theme { display: grid; gap: 7px; padding: 2px 10px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; gap: 2px; border-radius: 10px; background: var(--well); letter-spacing: 0; text-transform: none; }
.seg3 button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 8px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.seg3 button:hover { color: var(--ink); }
.seg3 button.is-on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.umenu hr { margin: 4px 6px; border: 0; border-top: 1px solid var(--line); }
.umenu > button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 500; text-align: left; cursor: pointer; }
.umenu > button svg { flex: none; color: var(--muted); }
.umenu > button:hover { background: var(--well); }
.umenu > button kbd { margin-left: auto; padding: 1px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font: 600 11px/1.4 var(--font); }
.umenu__new { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--coral); color: var(--on-coral, #fff); font-size: 11px; font-weight: 700; }
@media (max-width: 640px) { .umenu { left: 8px; right: 8px; width: auto; top: 56px; } .avatar { width: 30px; height: 30px; } }

/* Phones (0.58): the sections in a bar at the bottom, cards for sites, nothing wider than the screen. */
.mnav, .msheet { display: none; }
@media (max-width: 640px) {
    html, body { overflow-x: hidden; overflow-x: clip; }
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .top .tabs, .top .palette-btn kbd { display: none; }
    .top { flex-wrap: nowrap; padding: 10px 14px; }
    .top .team { display: none !important; }
    main { padding: 12px 12px 20px; }
    .app-foot { display: none; }
    .mnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px 4px env(safe-area-inset-bottom); background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
    .mnav button { display: grid; justify-items: center; gap: 3px; min-width: 0; padding: 7px 2px 6px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-size: 10.5px; font-weight: 600; cursor: pointer; }
    .mnav button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mnav button.is-active { color: var(--ink); }
    .mnav button.is-active svg { color: var(--coral); }
    .msheet { position: fixed; inset: 0; z-index: 29; display: block; background: rgba(0,0,0,.35); }
    .msheet[hidden] { display: none; }
    .msheet__panel { position: absolute; left: 8px; right: 8px; bottom: calc(70px + env(safe-area-inset-bottom)); padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
    .msheet__panel button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
    .msheet__panel button svg { color: var(--muted); }
    .msheet__panel button.is-active { background: var(--well); }
    .msheet__panel hr { margin: 4px 8px; border: 0; border-top: 1px solid var(--line); }
    .toasts { bottom: calc(76px + env(safe-area-inset-bottom)) !important; }

    /* Sites: cards only; search on its own line; bulk actions in one row that scrolls sideways */
    .toolbar .seg { display: none; }
    .toolbar { gap: 8px; }
    .toolbar .sort { flex: 1 1 0; }
    .bulk { flex-wrap: nowrap; gap: 8px; padding: 8px 10px; overflow-x: auto; scrollbar-width: none; }
    .bulk::-webkit-scrollbar { display: none; }
    .bulk__scope { flex: none; font-size: 12.5px; }
    .bulk__actions { display: flex; flex-wrap: nowrap; gap: 6px; }
    .bulk__actions .btn { flex: none; white-space: nowrap; }
    .bulk__progress:empty { display: none; }
    .site-cards { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }

    /* The site panel: the whole screen, nothing sticking out */
    .drawer__panel { width: 100%; overflow-x: hidden; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
    .drawer__head { padding: 12px 14px; }
    .drawer__body { padding: 14px 12px; grid-template-columns: minmax(0, 1fr); }
    .drawer__body > * { min-width: 0; }
    .drawer-tabs { margin: -14px -12px 0; padding: 0 8px; }
    .facts { grid-template-columns: 1fr 1fr; }
    .facts div { min-width: 0; overflow-wrap: anywhere; }
    .drawer .card, .drawer table { max-width: 100%; }
    .drawer pre, .drawer code { white-space: pre-wrap; overflow-wrap: anywhere; }
    .tab-panel > .actions { flex-wrap: nowrap; justify-content: flex-start; }
    .tab-panel > .actions > .spacer { display: none; }
    .tab-panel > .actions > .btn { padding-left: 10px; padding-right: 10px; }
    .tab-panel > .actions:has([data-d-update-all]) { flex-wrap: wrap; }
    .attention li > .pill, .attention li > .btn { flex: none; }
    .attention li > span:not(.pill) { min-width: 0; flex: 1 1 auto; }
    .drawer__body h3 { flex-wrap: wrap; row-gap: 8px; }

    /* Tables everywhere: a row becomes a little block */
    .table, .table tbody { display: block; width: 100%; }
    .table tr { grid-template-columns: minmax(0, 1fr) auto; }
    .table td { min-width: 0; overflow-wrap: anywhere; width: auto !important; }
    .table td:first-child { grid-column: 1; }
    .card { max-width: 100%; }
    .card > .table-wrap, .table-scroll { overflow-x: auto; }
    /* A file the check found: what it is, the path, then size and date, then the buttons */
    .table.findings tr { grid-template-columns: auto minmax(0, 1fr); }
    .table.findings td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
    .table.findings td:nth-child(1) { grid-row: 1; grid-column: 1; }
    .table.findings td:nth-child(3), .table.findings td:nth-child(4) { grid-row: 1; grid-column: 2; align-self: center; font-size: 12px; }
    .table.findings td:nth-child(3) { display: none; }
    .table.findings td:nth-child(4) { text-align: right; }
    .table.findings td:nth-child(5) { grid-column: 1 / -1; text-align: left !important; }
    .table.findings td:nth-child(5):empty { display: none; }
    .table.findings .pill { white-space: nowrap; }
}

/* Top bar, right side (0.61): search, bell and account sit together as one group, evenly spaced,
   whatever the gap between the bar's other parts. */
.top { --top-gap: 28px; gap: var(--top-gap); }
.top > .bell-btn { margin-left: calc(8px - var(--top-gap)); }
.top > .avatar-btn { margin-left: calc(6px - var(--top-gap)); }
.top > .team { margin-left: calc(10px - var(--top-gap)); }
.top > .team + .bell-btn { margin-left: calc(8px - var(--top-gap)); }
@media (max-width: 760px) { .top { --top-gap: 10px; } }
@media (max-width: 640px) { .top > .bell-btn { margin-left: calc(4px - var(--top-gap)); } .top > .avatar-btn { margin-left: calc(2px - var(--top-gap)); } }
.bell-btn__count { top: 2px; right: -1px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; line-height: 16px; }
@media (max-width: 640px) {
    .top .palette-btn { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; background: none; color: rgba(255,255,255,.8); }
    .top .palette-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
    .top .palette-btn svg { width: 19px; height: 19px; }
}
.facts .hs-trend, .facts .pill { display: inline-flex; }
.status-card .set-card__body > .btn { justify-self: start; align-self: start; width: auto; }
/* Lucide icons are outlines: one without its own fill is drawn as a line icon in the text colour. */
svg.icon:not([fill]) { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Pitwall vs the competition (0.61, admins only) */
.umenu__tag { margin-left: auto; padding: 1px 7px; border-radius: 999px; background: var(--well); color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cmp-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }
.cmp-price { display: grid; gap: 2px; align-content: start; padding: 14px 16px; }
.cmp-price strong { font-size: 15px; }
.cmp-price p { margin: 8px 0 6px; font-size: 13px; line-height: 1.5; }
.cmp-price a { color: var(--muted); text-decoration: none; }
.cmp-price.is-me { border-color: color-mix(in srgb, var(--coral) 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--coral) 35%, transparent), var(--shadow); }
.cmp-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.cmp-stat { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.cmp-stat b { font: 700 24px/1.1 var(--font-head); } .cmp-stat b small { font-size: 14px; color: var(--muted); }
.cmp-stat span { color: var(--muted); font-size: 12.5px; }
.cmp-stat.is-ok b { color: var(--ok); } .cmp-stat.is-warn b { color: var(--warn); }
.cmp-filter { margin-bottom: 12px; }
.cmp-card { overflow: hidden; }
.cmp-scroll { overflow-x: auto; }
.cmpt { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
.cmpt thead th { position: sticky; top: 0; z-index: 1; padding: 12px 12px; background: var(--well); color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: left; white-space: nowrap; }
.cmpt thead th.is-me { color: var(--coral); }
.cmpt th, .cmpt td { border-bottom: 1px solid var(--line); vertical-align: top; }
.cmpt__group th { padding: 14px 12px 6px; background: none; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: left; border-bottom: 0; }
.cmpt__feat { width: 34%; padding: 11px 12px; text-align: left; font-weight: 600; }
.cmpt__feat small { display: block; margin-top: 2px; color: var(--muted); font-weight: 500; font-size: 11.5px; }
.cmpt__cell { padding: 11px 12px; }
.cmpt__cell small { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.cmpt__st { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; white-space: nowrap; }
.cmpt__cell.is-ok .cmpt__st { color: var(--ok); } .cmpt__cell.is-paid .cmpt__st { color: var(--warn); } .cmpt__cell.is-ext .cmpt__st { color: var(--accent); }
.cmpt__cell.is-partial .cmpt__st { color: color-mix(in srgb, var(--warn) 70%, var(--ink)); } .cmpt__cell.is-no .cmpt__st { color: var(--err); } .cmpt__cell.is-unknown .cmpt__st { color: var(--muted); font-weight: 500; }
.cmpt__cell.is-me-col { background: color-mix(in srgb, var(--coral) 5%, transparent); }
.cmp-sources { margin-top: 12px; line-height: 1.7; }
@media (max-width: 640px) { .cmpt__feat { position: sticky; left: 0; z-index: 1; background: var(--card); min-width: 180px; } }
@media (max-width: 640px) {
    .cmp-prices { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -12px 14px; padding: 2px 12px 6px; }
    .cmp-prices::-webkit-scrollbar { display: none; }
    .cmp-price { scroll-snap-align: start; }
    .cmp-sum { grid-template-columns: 1fr 1fr; }
}

/* A site's own icon (0.61): on a light tile, since most icons are made for a white browser tab */
.site-badge.has-icon { padding: 0; overflow: hidden; background: #fff !important; box-shadow: inset 0 0 0 1px rgba(13,27,38,.10), 0 1px 2px rgba(0,0,0,.12) !important; }
.site-badge.has-icon img { display: block; width: 74%; height: 74%; object-fit: contain; border-radius: 3px; }

.site-cell__in { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-cell__text { flex: 1; min-width: 0; }
.site-cell .site-badge { border-radius: 9px; font-size: 11.5px; }
.site-name .star { opacity: 0; transition: opacity .15s; }
tr:hover .site-name .star, .site-name .star.is-on, .site-name .star:focus-visible { opacity: 1; }

/* Insights (0.62) */
.page-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.ins-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.ins-stat { display: grid; gap: 4px; padding: 16px 18px; }
.ins-stat span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ins-stat b { font: 700 30px/1.1 var(--font-head); } .ins-stat b small { font-size: 15px; color: var(--muted); }
.ins-stat em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.ins-stat em.up { color: var(--ok); } .ins-stat em.down { color: var(--err); }
.ins-stat.is-accent { border-color: color-mix(in srgb, var(--coral) 45%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--coral) 10%, var(--card)), var(--card) 70%); }
.ins-stat.is-accent b { color: var(--coral); }
.ins-grades { margin-bottom: 14px; }
.ins-gradebar { display: flex; gap: 4px; padding: 4px 16px 16px; }
.ins-grade { min-width: 70px; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-grade b { font-size: 15px; margin-right: 2px; }
.ins-grade.is-great { background: color-mix(in srgb, var(--ok) 80%, #000); } .ins-grade.is-good { background: color-mix(in srgb, color-mix(in srgb, var(--ok) 55%, var(--warn)) 85%, #000); }
.ins-grade.is-fair { background: color-mix(in srgb, var(--warn) 85%, #000); } .ins-grade.is-poor { background: color-mix(in srgb, var(--err) 85%, #000); }
.ins-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.ins-list { list-style: none; margin: 0; padding: 4px 16px 12px; }
.ins-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); min-width: 0; font-size: 13px; }
.ins-list li:last-child { border-bottom: 0; }
.ins-list li > .muted { margin-left: auto; text-align: right; }
.ins-site { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 0; color: var(--ink); font-weight: 600; text-align: left; margin-left: 0; }
.ins-site span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-site .site-badge { border-radius: 6px; font-size: 9px; }
.ins-bar { flex: 1; min-width: 40px; height: 6px; border-radius: 99px; background: var(--well); overflow: hidden; }
.ins-bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.ins-who { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-empty { padding: 4px 16px 14px; margin: 0; font-size: 13px; }
.ins-facts { margin-bottom: 12px; }
@media (max-width: 900px) { .ins-stats { grid-template-columns: 1fr 1fr; } .ins-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .ins-stat b { font-size: 25px; } .ins-list li { flex-wrap: wrap; } .ins-list li > .muted { margin-left: 30px; text-align: left; } }
.ins-grid .card > h3, .ins-grades > h3, .ins-facts > h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px 16px 8px; font-size: 15px; }
.ins-grid .card > h3 .muted, .ins-facts > h3 .muted { font-weight: 500; font-size: 13px; }

/* API and webhooks (0.62) */
.api-keys { display: grid; gap: 8px; }
.api-key { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.api-key.is-revoked { opacity: .55; }
.api-key__icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; background: var(--well); color: var(--muted); }
.api-key__main { flex: 1; min-width: 0; }
.api-key__main .small { margin-top: 2px; overflow-wrap: anywhere; }
.api-make { display: flex; flex-wrap: wrap; gap: 8px; }
.api-make input { flex: 1 1 240px; min-width: 0; }
.api-once { display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: color-mix(in srgb, var(--ok) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line)); }
.api-once__row { display: flex; gap: 8px; align-items: center; }
.api-once__row code { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; background: var(--well); font-size: 12.5px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .api-once__row { flex-wrap: wrap; } }
[data-webhook-remove] { color: var(--err); }

/* Staging copy (0.62) */
.stg-progress { display: grid; gap: 6px; }
.stg-bar { height: 8px; border-radius: 99px; background: var(--well); overflow: hidden; }
.stg-bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--accent); transition: width .4s; }
.stg-ready { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: color-mix(in srgb, #b45309 10%, var(--card)); border: 1px solid color-mix(in srgb, #b45309 35%, var(--line)); }
.stg-ready__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: #b45309; color: #fff; }
.stg-ready a { color: var(--ink); text-decoration: none; } .stg-ready a:hover { text-decoration: underline; }

/* Modal windows (0.63): a close button, long paths readable, toasts wrap */
dialog .dialog__x { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
dialog .dialog__x:hover { background: var(--well); color: var(--ink); }
dialog .dialog__x:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
dialog { position: fixed; }
dialog .dialog__box > h2:first-child, dialog .dialog__box h2 { padding-right: 36px; overflow-wrap: anywhere; }
.confirm__detail { display: block; margin: 4px 0 10px; padding: 8px 10px; border-radius: 8px; background: var(--well); font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; white-space: normal; max-height: 120px; overflow: auto; }
.toast { overflow-wrap: anywhere; min-width: 0; }
.toast span { min-width: 0; }

/* Tablets (0.63): the sections in the bottom bar from 900 px down, search as an icon from 1180 px down */
@media (max-width: 1180px) {
    .top { --top-gap: 18px; }
    .top .tabs button { padding: 6px 9px; }
    .top .palette-btn { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; background: none; color: rgba(255,255,255,.8); }
    .top .palette-btn span, .top .palette-btn kbd { display: none; }
    .top .palette-btn svg { width: 19px; height: 19px; }
    .top .palette-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
}
@media (max-width: 900px) {
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .top .tabs, .top .palette-btn kbd { display: none; }
    .app-foot { display: none; }
    .mnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px 4px env(safe-area-inset-bottom); background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
    .mnav button { display: grid; justify-items: center; gap: 3px; min-width: 0; padding: 7px 2px 6px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-size: 10.5px; font-weight: 600; cursor: pointer; }
    .mnav button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mnav button.is-active { color: var(--ink); }
    .mnav button.is-active svg { color: var(--coral); }
    .msheet { position: fixed; inset: 0; z-index: 29; display: block; background: rgba(0,0,0,.35); }
    .msheet[hidden] { display: none; }
    .msheet__panel { position: absolute; left: 8px; right: 8px; bottom: calc(70px + env(safe-area-inset-bottom)); padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
    .msheet__panel button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
    .msheet__panel button svg { color: var(--muted); }
    .msheet__panel button.is-active { background: var(--well); }
    .msheet__panel hr { margin: 4px 8px; border: 0; border-top: 1px solid var(--line); }
    .toasts { bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
    .drawer__panel { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* "All" switch in a card's header (0.63) */
.toggle-all { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }

/* A card's legend: what each badge means (0.63) */
.legend { list-style: none; margin: 4px 14px 0; padding: 10px 12px; display: grid; gap: 8px; border-radius: 10px; background: var(--well); font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.legend .pill { margin-right: 6px; }
.log-list__head .log-list__all { margin-left: auto; }
.log-list__head .muted { order: 3; }

/* Visual check (0.63): one screen at a time, three ways to compare */
.vc__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px 0; }
.vc__seg { display: inline-flex; grid-template-columns: none; }
.vc__seg button { gap: 6px; padding: 6px 10px; }
.vc__seg .pill { padding: 0 6px; font-size: 10.5px; }
.vc__when { margin-left: auto; }
.vc__stage { padding: 12px 14px; }
.vc__stage.is-desktop { max-height: 620px; overflow-y: auto; }
.vc__stage.is-phone { display: flex; justify-content: center; max-height: 700px; overflow-y: auto; }
.vc__stage.is-phone .cmp, .vc__stage.is-phone .vc__fig { width: min(360px, 100%); }
.vc__stage.is-phone .cmp, .vc__stage.is-phone .vc__fig img, .vc__stage.is-phone canvas { border-radius: 22px; }
.vc__stage.is-phone .vc__side { width: min(740px, 100%); }
.vc__fig { margin: 0; }
.vc__fig img, .vc__fig canvas { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--well); }
.vc__fig figcaption { display: flex; gap: 6px; margin: 0 0 6px; font-size: 12.5px; font-weight: 700; }
.vc__note { margin: 6px 0 0 !important; font-weight: 500 !important; color: var(--muted); }
.vc__side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmp { max-height: none; }
.cmp__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); z-index: 2; width: 0; pointer-events: none; }
.cmp__handle span { position: sticky; top: 45%; display: grid; place-items: center; width: 34px; height: 34px; margin: 120px 0 0 -17px; border-radius: 50%; background: var(--coral); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.cmp__b::before { width: 3px; margin-left: -1.5px; }
.cmp__label { position: absolute; top: 10px; z-index: 2; padding: 3px 9px; border-radius: 999px; background: rgba(13,27,38,.78); color: #fff; font-size: 11.5px; font-weight: 700; pointer-events: none; }
.cmp__label--a { left: 10px; } .cmp__label--b { right: 10px; }
@media (max-width: 640px) { .vc__side { grid-template-columns: 1fr; } .vc__when { margin-left: 0; flex-basis: 100%; } }
.cmp__label--b { background: rgba(240,91,98,.92); }
.status-form-toggle { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 600; }

/* Report parts as cards (0.63): the whole card toggles */
.check-list:has(.sec-cards) { display: block; }
.sec-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.sec-card { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 12px 12px 12px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.sec-card:hover { border-color: var(--line-strong); }
.sec-card input { position: absolute; opacity: 0; pointer-events: none; }
.sec-card__tick { display: grid; place-items: center; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--line-strong); color: transparent; transition: background .15s, border-color .15s; }
.sec-card__text { display: grid; gap: 2px; min-width: 0; }
.sec-card__text strong { font-size: 13.5px; }
.sec-card__text small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.sec-card:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.sec-card:has(input:checked) .sec-card__tick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sec-card:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--ring); }

/* Branding: the favicon and app icon rows */
.brand-form__icons { display: grid; gap: 10px; margin-top: 14px; }
.brand-icon { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.brand-icon__preview { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; background: var(--well); border: 1px dashed var(--line-strong); overflow: hidden; }
.brand-icon__preview img { max-width: 32px; max-height: 32px; }
.brand-icon__preview--app { border-radius: 14px; border-style: solid; }
.brand-icon__preview--app img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: cover; }
.brand-icon__preview.is-default { opacity: .55; }
.brand-icon__text { display: grid; gap: 3px; min-width: 0; }
.brand-icon__text b { font-size: 14px; }
.brand-icon__btns { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.brand-icon__btns .link-btn { margin-left: 0; }
.brand-form__icons { margin-top: 4px; }

/* Social images: the preview is the card's own 1200 by 630 page, scaled to the card's width */
.og-prev { position: relative; width: 100%; aspect-ratio: 1200 / 630; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--well); }
.og-prev iframe { position: absolute; top: 0; left: 0; width: 1200px; height: 630px; border: 0; transform: scale(var(--k, .4)); transform-origin: 0 0; pointer-events: none; }
.og-form { display: grid; gap: 12px; margin-top: 12px; }
.og-form__title { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.og-form__row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; }
.og-form__row > label, .og-form__row > div { display: grid; gap: 4px; }
.og-form__label { font-size: 13px; font-weight: 600; }
.og-form__row .swatch-row input[type="text"] { width: 96px; }
.og-form__where { align-items: center; }
.og-form__where .og-form__label { width: 100%; }
.og-form__where > label.inline-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
/* A favourite's card: only the star stays at rest, and the up/down state moves left of it (they overlapped). */
.sc:not(:hover):not(.is-picked) .sc__select:has(.star.is-on):not(:focus-within) input[type="checkbox"] { display: none; }
.sc:has(.sc__select .star.is-on) .sc__head .state { right: 46px; }
.sc:has(.sc__select .star.is-on) .sc__head { padding-right: 96px; }

/* Docs: screenshots (made with demo data by the docs script), full size on click */
.doc-fig { margin: 16px 0 20px; }
.doc-fig a { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--well); box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s; }
.doc-fig a:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.doc-fig img { display: block; width: 100%; height: auto; }
.doc-fig figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: center; }
.doc-fig--narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.docs__body h3 { margin: 18px 0 6px; font-size: 16px; }
.api-keys__foot { display: flex; justify-content: flex-end; padding-top: 4px; }
.api-keys__foot .link-btn { margin-left: 0; }

/* 0.64: the slider's labels and handle stay inside it (they rose above the site's sticky header),
   and the tabs tuck 1px under the header so nothing shows through between them. */
.cmp { isolation: isolate; }
.drawer__head { z-index: 3; }
.drawer-tabs { top: calc(var(--drawer-head, 72px) - 1px); }
/* Site cards: the faded status no longer covers the checkbox and star (clicks went to it and opened
   the site); bigger targets, faintly visible at rest, always visible on touch screens. */
.sc__head .state { pointer-events: none; }
.sc__select { z-index: 3; gap: 2px; padding: 2px; opacity: .35; }
.sc__select input[type="checkbox"] { width: 20px; height: 20px; margin: 6px; cursor: pointer; }
.sc__select .star { display: grid; place-items: center; width: 32px; height: 32px; margin: 0; padding: 0; border-radius: 8px; }
.sc__select .star:hover { background: var(--well); }
.sc:not(:hover):not(.is-picked) .sc__select:not(:has(.star.is-on)) { opacity: 0; }
@media (hover: none) { .sc__select, .sc:not(:hover):not(.is-picked) .sc__select:not(:has(.star.is-on)) { opacity: 1; } .sc__head .state { right: 86px; } .sc__head { padding-right: 140px; } }

/* The health ring is a button: it opens the health window */
.hs--btn { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; transition: transform .15s; }
.hs--btn:hover { transform: scale(1.08); }
.hs--btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hw { width: min(600px, calc(100vw - 32px)); }
.hw__head { display: flex; align-items: center; gap: 16px; }
.hw__head h2 { margin: 0; font-size: 24px; }
.hw__head h2 .muted { font-size: 15px; font-weight: 600; }
.hw__head p { margin: 2px 0 0; }
.hw__head .hs--btn { cursor: default; } .hw__head .hs--btn:hover { transform: none; }
.hw__chart { margin: 16px 0 6px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--well); min-height: 60px; }
.hw__svg { display: block; width: 100%; height: 96px; overflow: visible; }
.hw__grid { stroke: var(--line-strong); stroke-dasharray: 3 4; stroke-width: 1; vector-effect: non-scaling-stroke; }
.hw__area { fill: color-mix(in srgb, var(--accent) 14%, transparent); }
.hw__line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.hw__dot { fill: var(--coral); }
.hw__axis { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.hw h3 { margin: 18px 0 8px; font-size: 15px; }
.hw__parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hw__parts li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.hw__pts { flex: none; min-width: 34px; color: var(--err); font-weight: 700; font-variant-numeric: tabular-nums; }
.hw__what { flex: 1; min-width: 0; }
.hw__clean { margin: 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); font-weight: 600; }
.hw__how { margin-top: 14px; }
.hw__how summary { cursor: pointer; font-weight: 600; }
.hw__rules { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 13px; }
.hw__rules td { padding: 5px 4px; border-top: 1px solid var(--line); }
.hw .actions { margin-top: 18px; }

/* Licences (0.64): two tabs, a labelled form with Never, sites allowed and price */
.lic-tabs { margin-bottom: 14px; }
.lic-tabs__n:not(:empty) { margin-left: 4px; padding: 0 6px; border-radius: 99px; background: var(--well); color: var(--muted); font-size: 11px; }
.lic-tabs button[aria-pressed="true"] .lic-tabs__n { background: color-mix(in srgb, var(--accent-ink) 22%, transparent); color: inherit; }
.lic-form { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px 14px !important; align-items: end !important; padding: 16px !important; }
.lic-form > label, .lic-form > div { display: grid; gap: 5px; min-width: 0; }
.lic-form > label > span, .lic-form__label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.lic-form__product { grid-column: span 2; }
.lic-form__ends { grid-column: span 2; }
.lic-form__ends-row, .lic-form__price-row { display: flex; gap: 8px; align-items: center; min-width: 0; }
.lic-form__ends-row .date-in { flex: 1; min-width: 0; }
.lic-form__ends-row [data-lic-never] { flex: none; }
.lic-form__ends-row [data-lic-never][aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.lic-life { flex: 1; display: flex; align-items: center; height: 38px; padding: 0 12px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--ok); font-weight: 600; }
.lic-form__price-row input { flex: 1; min-width: 0; }
.lic-form__price-row select { width: auto; flex: none; }
.lic-form__notes { grid-column: span 3; }
.lic-form__foot { display: flex !important; justify-content: flex-end; align-items: center; gap: 12px; }
.lic-form__foot .link-btn { margin-left: 0; }
.lic-form [data-lic-save] { grid-column: auto; }
.lic-use { display: grid; gap: 4px; min-width: 90px; font-variant-numeric: tabular-nums; font-size: 13px; }
.lic-use i { display: block; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--ok) var(--w), var(--well) var(--w)); }
.lic-use.is-full i { background: linear-gradient(90deg, var(--warn) var(--w), var(--well) var(--w)); } .lic-use.is-full span { color: var(--warn); font-weight: 600; }
.lic-use.is-over i { background: var(--err); } .lic-use.is-over span { color: var(--err); font-weight: 700; }
.lic-total td { background: var(--well); }
.table-wrap { overflow-x: auto; }
@media (max-width: 900px) { .lic-form { grid-template-columns: 1fr 1fr !important; } .lic-form__notes { grid-column: span 2; } }
@media (max-width: 560px) { .lic-form { grid-template-columns: 1fr !important; } .lic-form__product, .lic-form__ends, .lic-form__notes { grid-column: auto; } }
.lic-form__notes { grid-column: span 2; }
.lic-form__ends-row .date-in { display: block; }
.lic-form__ends-row .date-in > * { width: 100%; }
@media (max-width: 900px) { .lic-form__notes { grid-column: span 1; } }

/* Reviews setup window */
.rvs { width: min(620px, calc(100vw - 32px)); }
.rvs h2 { margin: 0 0 6px; }
.rvs__list { display: grid; gap: 12px; margin-top: 12px; }
.rvs__src { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 0; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.rvs__src legend { padding: 0 6px; font-weight: 700; font-size: 13px; display: flex; gap: 10px; align-items: center; }
.rvs__src legend .link-btn { margin-left: 0; font-size: 12px; }
.rvs__src > label { display: grid; gap: 4px; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.rvs__wait { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; }
.rvs__wait > span { font-size: 12.5px; font-weight: 600; color: var(--muted); width: 100%; }
.rvs__more { margin: 8px 0 0; }
.rvs__auto { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 600; }
.rvs .actions { margin-top: 16px; }
@media (max-width: 560px) { .rvs__src { grid-template-columns: 1fr; } }

/* Docs (0.64): centred, search, "on this page", pager, code with copy, lightbox */
.docs { max-width: 1240px; margin: 0 auto; grid-template-columns: 230px minmax(0, 820px); justify-content: center; gap: 28px; }
.docs.has-toc { grid-template-columns: 230px minmax(0, 780px) 190px; }
.docs__side { position: sticky; top: 84px; display: grid; gap: 12px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; }
.docs__nav { position: static; }
.docs__nav button small { display: block; margin-top: 2px; font-weight: 500; font-size: 12px; line-height: 1.4; color: var(--muted); }
.docs__nav mark, .docs__body mark { background: color-mix(in srgb, var(--warn) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.docs__search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--muted); }
.docs__search:focus-within { border-color: var(--accent); }
.docs__search input { flex: 1; min-width: 0; border: 0; background: none; padding: 0; height: 100%; color: var(--ink); font: inherit; outline: none; box-shadow: none; }
.docs__body { max-width: none; padding: 28px 34px; font-size: 15px; line-height: 1.7; }
.docs__body h2 { font-size: 28px; margin-bottom: 14px; }
.docs__body h3 { margin: 30px 0 8px; font-size: 18px; scroll-margin-top: 90px; }
.docs__body p { margin: 0 0 12px; }
.docs__body li { padding-left: 2px; }
.docs__body code { padding: 1px 6px; border-radius: 6px; background: var(--well); font-size: .88em; }
.docs__body pre { position: relative; margin: 10px 0 16px; padding: 14px 16px; border-radius: 12px; background: #0b1a25; color: #e3edf5; overflow-x: auto; font-size: 13px; line-height: 1.55; }
.docs__body pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.docs__copy { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; background: rgba(255,255,255,.08); color: #e3edf5; font: 600 12px/1.2 var(--font); cursor: pointer; opacity: .75; }
.docs__copy:hover, .docs__copy:focus-visible { opacity: 1; }
.docs__body table.doc-table { width: 100%; margin: 6px 0 16px; border-collapse: collapse; font-size: 14px; }
.doc-table th, .doc-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.ep { margin: 12px 0 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ep__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; background: var(--well); }
.ep__head code { background: none; padding: 0; font-size: 14px; font-weight: 600; }
.ep__m { padding: 2px 8px; border-radius: 6px; font: 700 11.5px/1.4 var(--font); letter-spacing: .04em; }
.ep__m--get { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.ep__m--post { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.ep__scope { margin-left: auto; font-size: 12px; color: var(--muted); }
.ep__body { padding: 10px 14px 4px; }
.ep__body pre { margin: 8px 0 12px; }
.docs__pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.docs__pager button { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: none; color: var(--ink); font: 600 15px/1.3 var(--font); text-align: left; cursor: pointer; }
.docs__pager button:hover { border-color: var(--accent); }
.docs__pager button small { color: var(--muted); font-size: 12px; font-weight: 600; }
.docs__pager .is-next { text-align: right; grid-column: 2; }
.docs__toc { position: sticky; top: 84px; display: grid; gap: 2px; align-self: start; font-size: 13px; }
.docs__toc strong { margin-bottom: 6px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.docs__toc a { padding: 4px 10px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; }
.docs__toc a:hover { color: var(--ink); border-left-color: var(--accent); }
@media (max-width: 1180px) { .docs.has-toc { grid-template-columns: 230px minmax(0, 820px); } .docs__toc { display: none; } }
@media (max-width: 760px) { .docs, .docs.has-toc { grid-template-columns: 1fr; } .docs__side { position: static; max-height: none; } .docs__body { padding: 20px 18px; } .docs__pager { grid-template-columns: 1fr; } .docs__pager .is-next { grid-column: auto; } }
.lightbox { width: min(1400px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.lightbox[open] { display: flex; }
.lightbox__stage { flex: 1; min-height: 0; overflow: auto; display: grid; place-items: center; background: var(--well); padding: 12px; }
.lightbox__stage img { display: block; max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 8px; cursor: zoom-in; box-shadow: var(--shadow); }
.lightbox.is-zoomed .lightbox__stage { place-items: start center; }
.lightbox.is-zoomed .lightbox__stage img { max-width: none; max-height: none; cursor: zoom-out; }
.lightbox__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; border-top: 1px solid var(--line); }
.lightbox__cap { flex: 1; min-width: 200px; font-weight: 600; }
.lightbox__nav { display: inline-flex; align-items: center; gap: 8px; }
.lightbox .dialog__x { display: none; }
.docs__body .code-label { margin: 14px 0 -4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lightbox { border: 0; border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.lightbox::backdrop { background: rgba(4, 10, 16, .82); backdrop-filter: blur(3px); }
/* Windows built in script carry the same inner spacing as .dialog__box */
.dialog.hw, .dialog.rvs { padding: 22px 24px; }
.hw .hw__head { padding-right: 28px; }

/* Privacy and data (0.65) */
.pv-where { display: grid; gap: 14px; }
.pv-fact { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.pv-fact + .pv-fact { padding-top: 14px; border-top: 1px solid var(--line); }
.pv-fact__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.pv-fact strong { display: block; margin-bottom: 2px; }
.pv-fact p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.pv-last { margin-right: auto; }
.pv-subs td { vertical-align: top; padding-top: 10px; padding-bottom: 10px; }
.pv-subs td:first-child { width: 34%; }
.pv-subs td:last-child { text-align: right; white-space: nowrap; }
.pv-subs .pill.muted { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.pv-danger { border-color: color-mix(in srgb, var(--err) 35%, var(--line)); }
.pv-danger h3 { color: var(--err); }
.pv-del { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.pv-del label { display: grid; gap: 6px; flex: 1 1 240px; }
@media (max-width: 640px) { .pv-subs td:last-child { white-space: normal; } .pv-subs td:first-child { width: auto; } }

/* Pitwall admin (0.65) */
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.adm-head .seg { flex-wrap: wrap; }
.adm-card { padding: 0; overflow: hidden; margin-bottom: 14px; }
.adm-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.adm-bar h3 { margin: 0; margin-right: auto; font-size: 15px; }
.adm-bar input[type="search"] { width: 220px; max-width: 100%; }
.adm-table th.num, .adm-table td.num { text-align: right; white-space: nowrap; }
.adm-table tr.is-gone td { opacity: .55; }
.adm-region { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; }
.adm-note { padding: 10px 16px 14px; margin: 0; }
.adm-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.adm-grid > .card { padding: 16px 18px; }
.adm-grid h3 { margin: 0 0 12px; font-size: 15px; }
.adm-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 170px; padding-top: 6px; }
.adm-bars__col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.adm-bars__bar { position: absolute; bottom: 20px; left: 10%; right: 10%; max-height: calc(100% - 20px); border-radius: 5px 5px 0 0; background: color-mix(in srgb, var(--accent) 75%, transparent); min-height: 2px; }
.adm-bars__in { position: absolute; bottom: 20px; left: 38%; right: 38%; max-height: calc(100% - 20px); border-radius: 3px 3px 0 0; background: var(--coral); }
.adm-bars__col small { position: absolute; bottom: 0; font-size: 11px; color: var(--muted); }
.adm-bars__col span { transform-origin: bottom; }
.adm-legend { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; }
.adm-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 75%, transparent); }
.adm-key.is-in { background: var(--coral); margin-left: 10px; }
.adm-moves { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.adm-moves li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 0; border-top: 1px solid var(--line); align-items: baseline; }
.adm-moves li:first-child { border-top: 0; padding-top: 0; }
.adm-moves li small { grid-column: 1 / -1; margin-top: -2px; }
.adm-moves b { font-variant-numeric: tabular-nums; }
.adm-moves b.up { color: var(--ok); } .adm-moves b.down { color: var(--err); }
.adm-meter { height: 6px; border-radius: 99px; background: var(--well); overflow: hidden; margin: 2px 0 4px; min-width: 120px; }
.adm-meter span { display: block; height: 100%; border-radius: inherit; background: var(--ok); }
.adm-meter.is-warn span { background: var(--warn); } .adm-meter.is-over span { background: var(--err); }
.adm-connect { padding: 20px 22px; max-width: 720px; }
.adm-connect h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.adm-connect ol { margin: 10px 0 16px; padding-left: 20px; line-height: 1.7; }
.adm-token { display: flex; gap: 10px; margin-bottom: 8px; }
.adm-token input { flex: 1; }
/* Plans editor */
.adm-terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 16px 18px; margin-bottom: 14px; }
.adm-terms label, .adm-plan label { display: grid; gap: 5px; min-width: 0; }
.adm-terms label > span:first-child, .adm-plan label > span:first-child { font-size: 12px; font-weight: 700; color: var(--muted); }
.adm-unit { display: flex; align-items: center; gap: 6px; min-width: 0; }
.adm-unit input { flex: 1 1 auto; min-width: 0; }
.adm-unit em { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; }
.adm-plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.adm-plan { display: grid; gap: 12px; align-content: start; padding: 16px; margin: 0; min-width: 0; border: 1px solid var(--line); }
.adm-plan.is-highlight { border-color: color-mix(in srgb, var(--coral) 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--coral) 30%, transparent); }
.adm-plan.is-hidden { background: color-mix(in srgb, var(--well) 55%, var(--card)); }
.adm-plan__top { display: flex; align-items: center; gap: 8px; }
.adm-plan__name { flex: 1; min-width: 0; font: 700 18px/1.2 var(--font-head); border-color: transparent; background: transparent; padding-left: 4px; }
.adm-plan__name:hover, .adm-plan__name:focus { border-color: var(--line); background: var(--card); }
.adm-plan__top code { font-size: 12px; color: var(--muted); }
.adm-plan__nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.adm-plan__feats { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.adm-chk { display: flex !important; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.adm-chk input { width: 16px; height: 16px; margin: 0; }
.adm-plan textarea { resize: vertical; min-height: 84px; font: inherit; font-size: 13.5px; }
.adm-plan__foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-order { display: flex !important; align-items: center; gap: 6px !important; }
.adm-order input { width: 58px; }
.adm-remove { margin-left: auto; color: var(--err); }
.adm-plan__foot .pill { margin-left: auto; }
.adm-plan--add { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 200px; border: 1.5px dashed var(--line-strong); background: transparent; color: var(--muted); cursor: pointer; font: inherit; text-align: center; }
.adm-plan--add span { font-weight: 700; color: var(--ink); }
.adm-plan--add:hover { border-color: var(--accent); color: var(--accent); }
.adm-plan--add small { font-size: 12.5px; }
.adm-add-form { display: grid; gap: 8px; width: 100%; }
.adm-save { position: sticky; bottom: 58px; z-index: 2; box-shadow: 0 6px 24px rgba(0,0,0,.08); display: flex; align-items: center; gap: 14px; justify-content: space-between; margin: 14px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius, 12px); background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); }
.adm-sub { margin: 26px 0 12px; font-size: 15px; }
.adm-preview { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius, 12px); background: var(--well); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 10px; }
.price-card { position: relative; display: grid; gap: 4px; align-content: start; padding: 22px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.price-card.is-highlight { border-color: var(--coral); box-shadow: 0 8px 28px color-mix(in srgb, var(--coral) 18%, transparent); }
.price-card__flag { position: absolute; top: -11px; left: 20px; padding: 3px 10px; border-radius: 99px; background: var(--coral); color: #fff; font-size: 11.5px; font-weight: 700; }
.price-card h4 { margin: 0; font: 700 20px/1.2 var(--font-head); }
.price-card p { margin: 0; }
.price-card__price { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.price-card__price b { font: 700 34px/1 var(--font-head); }
.price-card__price span { color: var(--muted); font-size: 13px; }
.price-card ul { list-style: none; margin: 14px 0 16px; padding: 0; display: grid; gap: 7px; font-size: 13.5px; }
.price-card li { display: flex; align-items: center; gap: 8px; }
.price-card li svg { color: var(--ok); flex: none; }
.price-card .btn { justify-self: stretch; justify-content: center; pointer-events: none; }
.adm-dlg { padding: 22px 24px; width: min(480px, calc(100vw - 32px)); }
.adm-form { display: grid; gap: 12px; }
.adm-form h2 { margin: 0; }
.adm-form p { margin: 0; }
.adm-form label { display: grid; gap: 5px; }
.adm-form label > span:first-child { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.adm-slug { display: flex; align-items: center; gap: 4px; }
.adm-slug input { flex: 1; min-width: 0; }
.adm-slug em { font-style: normal; color: var(--muted); font-size: 13px; }
.adm-out { padding: 12px; border-radius: 10px; background: var(--ok-bg); font-size: 13.5px; }
.adm-out .status-link { margin-top: 8px; }
@media (max-width: 900px) { .adm-grid { grid-template-columns: 1fr; } .adm-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .adm-terms { grid-template-columns: 1fr; } .adm-save { flex-direction: column; align-items: stretch; } }
.adm-plan__addbtn { display: grid; place-items: center; gap: 6px; width: 100%; height: 100%; padding: 20px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.adm-plan--add:has(.adm-add-form:not([hidden])) { place-items: stretch; border-style: solid; cursor: default; color: var(--ink); }
.adm-add-form .actions { justify-content: flex-end; margin: 4px 0 0; }
@media (max-width: 640px) { .adm-save { bottom: calc(64px + env(safe-area-inset-bottom)); } }
.sx-card__body > a.btn[data-pv-export] { display: inline-flex; width: auto; justify-self: start; align-self: start; }

/* Features page (admins, 0.66) */
.cmp-sub { margin: 0 0 14px; }
.ft-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.ft-bar input[type="search"] { flex: 1; max-width: 420px; }
.ft-bar .btn { margin-left: auto; }
.ft-filter { margin-bottom: 22px; }
.ft-group { margin-bottom: 28px; }
.ft-group h2 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; font-size: 17px; }
.ft-group h2 .muted { font-size: 13px; font-weight: 600; }
.ft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ft-card { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; margin: 0; transition: border-color .15s, box-shadow .15s; }
.ft-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.ft-card__icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.ft-card h3 { margin: 1px 32px 4px 0; font-size: 15px; line-height: 1.3; }
.ft-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.ft-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.ft-since { font-size: 12px; color: var(--muted); }
.ft-where { display: flex; align-items: flex-start; gap: 5px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.ft-where svg { flex: none; margin-top: 2px; }
.ft-copy { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .15s, color .15s; }
.ft-card:hover .ft-copy, .ft-copy:focus-visible, .ft-copy.is-done { opacity: 1; }
.ft-copy:hover { color: var(--ink); border-color: var(--line-strong); }
.ft-copy.is-done { color: var(--ok); border-color: var(--ok); }
.ft-card.is-later { background: transparent; border-style: dashed; box-shadow: none; }
.ft-card.is-later .ft-card__icon { background: var(--well); color: var(--muted); }
.ft-card .pill.muted { background: transparent; border: 1px solid var(--line); color: var(--muted); }
@media (hover: none) { .ft-copy { opacity: 1; } }
@media (max-width: 640px) { .ft-bar { flex-wrap: wrap; } .ft-bar input[type="search"] { max-width: none; flex: 1 1 100%; } .ft-bar .btn { margin-left: 0; } .ft-grid { grid-template-columns: 1fr; } }

/* PHP OPcache card (0.66) */
.oc h3 { display: flex; align-items: center; gap: 8px; }
.oc__intro { margin: 0; padding: 12px 14px 14px; font-size: 13px; }
.oc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; padding: 2px 14px 14px; }
.oc-meter__top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.oc-meter__top span:first-child { font-weight: 600; }
.oc-meter__top span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.oc-meter__top .is-warn { color: var(--warn) !important; font-weight: 600; }
.oc-meter__bar { display: flex; height: 8px; border-radius: 99px; background: var(--well); overflow: hidden; }
.oc-meter__bar span { height: 100%; background: var(--ok); }
.oc-meter__bar span.is-warn { background: var(--warn); } .oc-meter__bar span.is-full { background: var(--err); }
.oc-meter__bar i { height: 100%; background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--muted) 45%, transparent) 0 3px, transparent 3px 6px); }
.oc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.oc-stats div { display: grid; gap: 2px; }
.oc-stats b { font: 700 22px/1.1 var(--font-head); }
.oc-stats b.is-warn { color: var(--warn); }
.oc-stats span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.oc-fix { margin: 0 14px 14px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--well); font-size: 13.5px; }
.oc-fix.is-bad { border-color: color-mix(in srgb, var(--err) 40%, var(--line)); background: var(--err-bg); }
.oc-fix.is-warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: var(--warn-bg); }
.oc-fix p { margin: 4px 0 8px; }
.oc-fix ol { margin: 0 0 12px; padding-left: 20px; line-height: 1.7; }
.oc__note { margin: 0; padding: 0 14px 14px; font-size: 12.5px; }
@media (max-width: 760px) { .oc__grid { grid-template-columns: 1fr; } }
.srv-note { margin-top: 4px; }

/* Clients (0.67) */
.cl-bar { flex-wrap: wrap; }
.cl-bar .seg { margin-left: auto; }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.cl-card { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; margin: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cl-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.cl-card.is-former { opacity: .65; }
.cl-card__head { display: flex; align-items: center; gap: 12px; }
.cl-card__title { display: grid; min-width: 0; flex: 1; }
.cl-card__title strong { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-card__title .muted { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-card__health { flex: none; display: grid; place-items: center; min-width: 34px; height: 26px; padding: 0 8px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--ok); }
.cl-card__health.is-good { background: #65a30d; } .cl-card__health.is-fair { background: var(--warn); } .cl-card__health.is-poor { background: var(--err); }
.cl-card__sites { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cl-site { position: relative; display: inline-flex; border-radius: 7px; }
.cl-site.is-down::after { content: ""; position: absolute; right: -2px; top: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--err); border: 2px solid var(--card); }
.cl-site--more { align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--well); }
.cl-card__count { margin-left: auto; font-size: 12.5px; }
.cl-card__flags { display: flex; flex-wrap: wrap; gap: 5px; }
.cl-card__money { margin-top: auto; font-size: 13px; padding-top: 10px; border-top: 1px solid var(--line); }
.cl-card__money b { font-size: 15px; }
.cl-avatar { flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--c); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.cl-empty { display: grid; justify-items: center; gap: 10px; padding: 40px 24px; text-align: center; }
.cl-empty h2 { margin: 4px 0 0; }
.cl-empty p { max-width: 540px; margin: 0; }
.cl-empty__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.cl-empty__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.cl-empty__note { max-width: 480px; }
.cl-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.cl-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.cl-head__title { flex: 1; min-width: 0; }
.cl-head__title h1 { display: flex; align-items: center; gap: 10px; margin: 0; }
.cl-head__title p { margin: 4px 0 0; }
.cl-head__actions { display: flex; gap: 8px; }
.cl-cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.cl-main, .cl-side { display: grid; gap: 14px; }
.cl-main > .card, .cl-side > .card { margin: 0; }
.cl-pad { padding: 0 14px 14px; margin: 0; }
.cl-sites { list-style: none; margin: 0; padding: 0 6px 6px; }
.cl-sites li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.cl-sites li:hover { background: var(--well); }
.cl-sites__open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cl-sites__name { display: grid; min-width: 0; }
.cl-sites__name strong, .cl-sites__name .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-sites__out { opacity: 0; } .cl-sites li:hover .cl-sites__out, .cl-sites__out:focus-visible { opacity: 1; }
.cl-contacts { list-style: none; margin: 0; padding: 0 14px 6px; }
.cl-contact { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.cl-contact:first-child { border-top: 0; padding-top: 2px; }
.cl-contact__icon { color: var(--muted); padding-top: 2px; }
.cl-contact__main { flex: 1; min-width: 0; font-size: 13.5px; }
.cl-contact__main a { color: inherit; }
.cl-contact__tags { display: flex; gap: 5px; margin-top: 5px; }
.cl-contract { padding: 0 14px 4px; }
.cl-contract__amount b { font: 700 26px/1.1 var(--font-head); }
.cl-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 10px 0 12px; font-size: 13.5px; }
.cl-dl dt { color: var(--muted); }
.cl-dl dd { margin: 0; }
.cl-notes { margin: 0 14px 14px; padding: 12px 14px; border-radius: 10px; background: var(--well); font-size: 13.5px; line-height: 1.55; }
.cl-reqs, .cl-events { list-style: none; margin: 0; padding: 0 14px 10px; }
.cl-reqs li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.cl-reqs li:first-child { border-top: 0; padding-top: 0; }
.cl-reqs li.is-done { opacity: .6; }
.cl-reqs p { margin: 4px 0 0; white-space: pre-line; }
.cl-events li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.cl-events li:first-child { border-top: 0; }
.cl-dlg { padding: 22px 24px; width: min(620px, calc(100vw - 32px)); }
.cl-form { display: grid; gap: 14px; }
.cl-form h2 { margin: 0; }
.cl-form p { margin: 0; }
.cl-form label, .cl-cform label:not(.inline-check) { display: grid; gap: 5px; }
.cl-form label > span:first-child, .cl-cform label > span:first-child { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cl-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cl-form__grid .is-wide { grid-column: 1 / -1; }
.cl-form fieldset { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.cl-form legend { padding: 0 6px; font-weight: 700; font-size: 13px; }
.cl-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 220px; overflow: auto; }
.cl-pick--list { grid-template-columns: 1fr; max-height: 360px; }
.cl-pick__item { display: flex !important; align-items: center; gap: 8px !important; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.cl-pick__item:hover { background: var(--well); }
.cl-pick__item input { margin: 0; }
.cl-cform { display: grid; gap: 10px; margin: 0 14px 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--well); }
.cl-cform .actions { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; }
.cl-danger { color: var(--err); }
@media (max-width: 900px) { .cl-cols { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cl-form__grid, .cl-pick { grid-template-columns: 1fr; } .cl-head { flex-wrap: wrap; } .cl-bar .seg { margin-left: 0; } }
.cl-cols .card > h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 13px 16px; font-size: 15px; border-bottom: 1px solid var(--line); }
.cl-cols .card > h3 .muted { font-weight: 600; font-size: 13px; }
.cl-pad { padding: 12px 16px 14px; }
.cl-sites { padding: 6px 6px 6px; }
.cl-contacts { padding: 4px 16px 6px; }
.cl-contact:first-child { padding-top: 10px; }
.cl-contract { padding: 14px 16px 0; }
.cl-reqs, .cl-events { padding: 6px 16px 10px; }
.cl-reqs li:first-child { padding-top: 10px; }
.cl-notes { margin: 0 16px 14px; }
.cl-dl.cl-pad { margin: 0; }
.d-client { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.d-client:hover { border-color: var(--accent); color: var(--accent); }
[data-d-links] .d-client { margin: 6px 6px 0 0; }
.client-of { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px 0; }

/* Tasks (0.68) */
.nav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px; border-radius: 99px; background: color-mix(in srgb, #fff 22%, transparent); color: #fff; font-size: 11px; font-weight: 700; }
.nav-count.is-late { background: var(--coral); }
.tk-headactions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.tk-bar input[type="search"] { flex: 1 1 220px; max-width: 320px; }
.tk-bar select { width: auto; min-width: 150px; }
.tk-showdone { margin-left: auto; }
.tk-board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.tk-col { display: flex; flex-direction: column; min-height: 140px; border-radius: 14px; background: color-mix(in srgb, var(--well) 75%, transparent); border: 1px solid transparent; transition: border-color .15s, background .15s; }
.tk-col.is-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--well)); }
.tk-col__head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 8px 14px; font-size: 13.5px; }
.tk-col__head .muted { font-weight: 600; }
.tk-col__list { display: grid; gap: 8px; padding: 0 8px 10px; min-height: 60px; align-content: start; }
.tk-col__empty { margin: 4px 6px; color: var(--muted); font-size: 12.5px; }
.tk-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.tk-dot.tk-st-todo { background: #64748b; } .tk-dot.tk-st-doing { background: var(--accent); } .tk-dot.tk-st-waiting { background: var(--warn); } .tk-dot.tk-st-done { background: var(--ok); }
.pill.tk-st-doing { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); } .pill.tk-st-waiting { background: var(--warn-bg); color: var(--warn); } .pill.tk-st-done { background: var(--ok-bg); color: var(--ok); }
.tk-card { display: grid; gap: 7px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: box-shadow .15s, border-color .15s, transform .15s; }
.tk-card:hover, .tk-card:focus-visible { border-color: var(--line-strong); box-shadow: var(--shadow); outline: none; }
.tk-card.is-high { border-left: 3px solid var(--coral); }
.tk-card.is-done { opacity: .6; }
.tk-card.is-done .tk-card__title { text-decoration: line-through; }
.tk-card.is-dragging { opacity: .35; transform: rotate(1.5deg); }
.tk-ph { height: 52px; border: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 11px; }
.tk-card__client { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tk-card__client i { flex: none; width: 8px; height: 8px; border-radius: 3px; background: var(--muted); }
.tk-card__title { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.tk-flag { display: inline-flex; vertical-align: -1px; margin-right: 4px; color: var(--coral); }
.tk-labels { display: flex; flex-wrap: wrap; gap: 4px; }
.tk-label { padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 600; background: hsl(var(--h) 70% 92%); color: hsl(var(--h) 55% 30%); }
:root[data-theme="dark"] .tk-label { background: hsl(var(--h) 40% 22%); color: hsl(var(--h) 70% 82%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tk-label { background: hsl(var(--h) 40% 22%); color: hsl(var(--h) 70% 82%); } }
.tk-card__foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tk-meta { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--muted); }
.tk-due { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.tk-due.is-late { color: var(--err); } .tk-due.is-today { color: var(--warn); } .tk-due.is-soon { color: var(--ink); }
.tk-av { flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: hsl(var(--h) 55% 45%); color: #fff; font-size: 10.5px; font-weight: 700; }
.tk-av--bot { --h: 210; background: var(--well); color: var(--muted); }
.tk-who { display: inline-flex; align-items: center; gap: 6px; }
.tk-table tr { cursor: pointer; } .tk-table tr.is-done { opacity: .6; }
.tk-listcard { padding: 0; overflow: hidden; }
.tk-cal { padding: 0; overflow: hidden; }
.tk-cal__head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tk-cal__dow { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line); }
.tk-cal__dow span { padding: 6px 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.tk-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.tk-cal__cell { min-height: 104px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; cursor: pointer; }
.tk-cal__cell:nth-child(7n) { border-right: 0; }
.tk-cal__cell.is-out { background: color-mix(in srgb, var(--well) 50%, transparent); cursor: default; }
.tk-cal__cell.is-today .tk-cal__n { background: var(--accent); color: var(--accent-ink); }
.tk-cal__n { align-self: flex-start; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 99px; font-size: 12px; font-weight: 700; }
.tk-cal__item { display: flex; align-items: center; gap: 5px; width: 100%; padding: 3px 6px; border: 0; border-radius: 6px; background: var(--well); color: var(--ink); font: inherit; font-size: 11.5px; text-align: left; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tk-cal__item i { flex: none; width: 7px; height: 7px; border-radius: 2px; }
.tk-cal__item.is-late { background: var(--err-bg); color: var(--err); } .tk-cal__item.is-done { text-decoration: line-through; opacity: .6; }
.tk-dlg { padding: 0; width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 40px); }
.tk-form { display: grid; grid-template-columns: minmax(0, 1fr) 280px; min-height: 0; }
.tk-form__main { display: grid; gap: 16px; align-content: start; padding: 22px 24px; min-width: 0; }
.tk-form__side { display: grid; gap: 12px; align-content: start; padding: 22px 20px; border-left: 1px solid var(--line); background: color-mix(in srgb, var(--well) 50%, var(--card)); }
.tk-title { width: 100%; padding: 6px 8px; margin: 0 -8px; border: 1px solid transparent; border-radius: 8px; background: transparent; font: 700 21px/1.3 var(--font-head); color: var(--ink); }
.tk-title:hover, .tk-title:focus { border-color: var(--line); background: var(--card); }
.tk-src { display: flex; align-items: center; gap: 6px; margin: -8px 0 0; font-size: 12.5px; color: var(--muted); }
.tk-field { display: grid; gap: 6px; }
.tk-field > span { font-size: 12px; font-weight: 700; color: var(--muted); display: flex; gap: 8px; }
.tk-field em { font-style: normal; font-weight: 500; }
.tk-field textarea { resize: vertical; font: inherit; }
.tk-progress { height: 5px; border-radius: 99px; background: var(--well); overflow: hidden; }
.tk-progress i { display: block; height: 100%; background: var(--ok); }
.tk-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tk-checklist li { display: flex; align-items: center; gap: 6px; padding: 3px 4px; border-radius: 8px; }
.tk-checklist li:hover { background: var(--well); }
.tk-checklist .inline-check { flex: 1; }
.tk-checklist .is-done { text-decoration: line-through; color: var(--muted); }
.tk-additem { font-size: 13.5px; }
.tk-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tk-history .is-comment { display: flex; gap: 10px; }
.tk-history .is-comment p { margin: 3px 0 0; white-space: pre-line; font-size: 13.5px; }
.tk-history .is-change { padding-left: 36px; }
.tk-comment { display: grid; gap: 8px; justify-items: end; }
.tk-comment textarea { width: 100%; }
.tk-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tk-files li { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.tk-files a { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 5px; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tk-upload { justify-self: start; cursor: pointer; }
.tk-form__foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.tk-made { margin: 0; }
.tk-rlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tk-rlist li { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.tk-rlist li > div { flex: 1; min-width: 0; }
.tk-rlist__icon { color: var(--accent); }
.tk-rlist .btn { justify-self: start; }
.tk-auto__head { margin: 10px 0 0; font-size: 15px; }
.tk-auto { display: grid; gap: 6px; }
.tk-rform .actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
@media (max-width: 860px) { .tk-form { grid-template-columns: 1fr; } .tk-form__side { border-left: 0; border-top: 1px solid var(--line); } .tk-board { grid-template-columns: repeat(4, 260px); } }
@media (max-width: 560px) { .tk-cal__cell { min-height: 64px; padding: 3px; } .tk-cal__item { font-size: 10px; } .tk-showdone { margin-left: 0; } }
.tk-cal__item.is-today { background: var(--warn-bg); color: var(--warn); }
.mini-tasks { list-style: none; margin: 0; padding: 4px 8px 8px; }
.mini-task { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 9px; background: none; color: inherit; font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.mini-task:hover { background: var(--well); }
.mini-task__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Time and Money (0.69) */
.timer { display: flex; }
.timer__btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px solid color-mix(in srgb, #fff 18%, transparent); border-radius: 10px; background: color-mix(in srgb, #fff 8%, transparent); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; max-width: 260px; }
.timer__btn:hover { background: color-mix(in srgb, #fff 14%, transparent); }
.timer__btn.is-on { border-color: color-mix(in srgb, var(--coral) 70%, transparent); background: color-mix(in srgb, var(--coral) 22%, transparent); }
.timer__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: timerpulse 1.6s ease-in-out infinite; }
@keyframes timerpulse { 50% { opacity: .35; } }
.timer__clock { font-variant-numeric: tabular-nums; }
.timer__what { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; opacity: .85; }
.timer-pop { width: 320px; padding: 14px; }
.timer-form { display: grid; gap: 10px; }
.timer-form label:not(.inline-check) { display: grid; gap: 4px; }
.timer-form label > span:first-child { font-size: 12px; font-weight: 700; color: var(--muted); }
.timer-form__clock { display: flex; align-items: center; gap: 8px; }
.timer-form__clock strong { font: 700 22px/1 var(--font-head); font-variant-numeric: tabular-nums; }
.timer-form__actions { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
@media (max-width: 900px) { .timer__what, .timer__label { display: none; } }
.ts-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.ts-head select { width: auto; min-width: 150px; }
.mo-month { display: inline-flex; align-items: center; gap: 4px; }
.mo-month strong { min-width: 150px; text-align: center; }
.ts-grid-card, .ts-entries { padding: 0; overflow: hidden; margin-bottom: 14px; }
.ts-grid th.num, .ts-grid td.num { text-align: right; white-space: nowrap; }
.ts-grid th.is-today { color: var(--accent); }
.ts-grid .ts-total td { font-weight: 700; border-top: 2px solid var(--line); }
.ts-client { display: inline-flex; align-items: center; gap: 7px; }
.ts-client i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.ts-entries > h3 { margin: 0; padding: 13px 16px; font-size: 15px; border-bottom: 1px solid var(--line); }
.ts-list { list-style: none; margin: 0; padding: 4px 8px 8px; }
.ts-list li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; }
.ts-list li:hover { background: var(--well); }
.ts-list__day { width: 64px; flex: none; }
.ts-list__main { flex: 1; min-width: 0; display: grid; }
.ts-list__main strong, .ts-list__main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-list__min { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mo-table td.num { white-space: nowrap; }
.mo-table tr { cursor: pointer; }
.is-neg { color: var(--err) !important; }
.mo-bar { height: 5px; margin-top: 4px; border-radius: 99px; background: var(--well); overflow: hidden; min-width: 60px; }
.mo-bar i { display: block; height: 100%; background: var(--ok); }
.mo-bar i.is-over { background: var(--warn); }
.adm-bars__in.mo-cost, .adm-key.mo-cost { background: color-mix(in srgb, var(--err) 70%, transparent); }
.mo-renew { padding: 0; margin-bottom: 14px; }
.mo-renew h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 13px 16px; font-size: 15px; border-bottom: 1px solid var(--line); }
.mo-renew ul { list-style: none; margin: 0; padding: 6px 16px 10px; }
.mo-renew li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; border-top: 1px solid var(--line); }
.mo-renew li:first-child { border-top: 0; }
.mo-rates { display: grid; gap: 12px; padding: 0 0 4px; }
.mo-rates label { display: grid; gap: 5px; }
.mo-rates label > span:first-child { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.mo-rates em { font-style: normal; font-weight: 500; }
.mo-rates .btn { justify-self: start; }
.cl-time b { font: 700 22px/1.2 var(--font-head); }
.cl-time { display: grid; gap: 8px; }
.cl-time p { margin: 0; }
.cl-time .btn { justify-self: start; }
.timer-pop .timer-form__actions .btn { width: auto; display: inline-flex; justify-content: center; }
.timer-pop .timer-form__actions .btn-primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); padding: 8px 14px; font-weight: 600; }
.timer-pop .timer-form__actions .btn-primary:hover { filter: brightness(1.08); }
.timer-pop .link-btn { width: auto; }
.tk-bar[hidden] { display: none; }
.cl-portal__people { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.cl-portal__people li { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.cl-portal .status-link { margin-bottom: 8px; }
.note-warn { margin: 6px 0; padding: 8px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); }
.tk-approval { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 10px; border-radius: 9px; font-size: 12.5px; background: var(--well); }
.tk-approval--none { background: none; padding: 0; }
.tk-approval--pending { background: var(--warn-bg); color: var(--warn); }
.tk-approval--approved { background: var(--ok-bg); color: var(--ok); }
.tk-approval--changes { background: var(--err-bg); color: var(--err); }
.tk-approval span { flex: 1; min-width: 0; }
.tk-meta--wait { color: var(--warn); } .tk-meta--changes { color: var(--err); } .tk-meta--ok { color: var(--ok); }

/* Money 0.71: insights, recurring, where the money goes, the year */
.mo-note { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px; }
.mo-delta { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; font-style: normal; font-weight: 700; font-size: 12px; }
.mo-delta.up { color: var(--ok); } .mo-delta.down { color: var(--err); }
.adm-grid > .mo-insights, .adm-grid > .mo-rec { padding: 0; }
.mo-insights h3, .mo-rec h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 13px 16px; font-size: 15px; border-bottom: 1px solid var(--line); }
.mo-insights > p { margin: 0; padding: 14px 16px; }
.mo-insights ul { list-style: none; margin: 0; padding: 4px 0; }
.mo-insights li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 16px; font-size: 13.5px; line-height: 1.45; border-top: 1px solid var(--line); }
.mo-insights li:first-child { border-top: 0; }
.mo-insights li[data-mo-client] { cursor: pointer; } .mo-insights li[data-mo-client]:hover { background: var(--well); }
.mo-insights__icon { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--well); color: var(--muted); }
.mo-insights li.is-bad .mo-insights__icon { background: var(--err-bg); color: var(--err); }
.mo-insights li.is-warn .mo-insights__icon { background: var(--warn-bg); color: var(--warn); }
.mo-insights li.is-ok .mo-insights__icon { background: var(--ok-bg); color: var(--ok); }
.mo-insights li.is-accent .mo-insights__icon { background: color-mix(in srgb, var(--coral) 14%, transparent); color: var(--coral); }
.mo-insights li > span:last-child { padding-top: 3px; }
.mo-rec__big { display: grid; gap: 2px; padding: 14px 16px 6px; }
.mo-rec__big b { font: 700 28px/1.1 var(--font-head); }
.mo-dl { margin: 0; padding: 4px 16px 12px; }
.mo-dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.mo-dl > div:first-child { border-top: 0; }
.mo-dl dt { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mo-dl dd { margin: 0; font-weight: 700; text-align: right; }
.mo-bar--share { width: 90px; margin-left: auto; }
.mo-spend { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mo-spend li > div:first-child { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 5px; }
.mo-spend em { font-style: normal; margin-left: 4px; }
.mo-spend__bar { height: 7px; border-radius: 99px; background: var(--well); overflow: hidden; }
.mo-spend__bar i { display: block; height: 100%; border-radius: 99px; background: color-mix(in srgb, var(--err) 65%, transparent); }
.mo-spend__bar i.mo-cat-time { background: color-mix(in srgb, var(--accent) 70%, transparent); }
.mo-spend__bar i.mo-cat-licences { background: color-mix(in srgb, var(--warn) 75%, transparent); }
.mo-rates-card { padding: 16px 18px; margin-bottom: 14px; } .mo-rates-card h3 { margin: 0 0 12px; font-size: 15px; }
.mo-rates-card .mo-rates { grid-template-columns: 1fr 1fr auto; align-items: end; }
.mo-year { padding: 16px 18px; margin-bottom: 14px; }
.mo-year__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.mo-year__head h3 { margin: 0; font-size: 15px; } .mo-year__head .adm-legend { margin: 0; }
.mo-key-line { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--ink); margin-left: 10px; border-radius: 2px; }
.mo-ychart { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); height: 240px; }
.mo-ychart__line { position: absolute; left: 0; right: 0; top: 6px; height: calc(100% - 28px); width: 100%; pointer-events: none; z-index: 2; }
.mo-ychart__line polyline { stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; opacity: .75; }
.mo-ychart__col { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 6px 0 0; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; cursor: pointer; }
.mo-ychart__col:hover { background: var(--well); }
.mo-ychart__col.is-now { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.mo-ychart__bars { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: 100%; height: calc(100% - 22px); }
.mo-ychart__bars i { display: block; width: 32%; max-width: 22px; min-height: 2px; border-radius: 4px 4px 0 0; }
.mo-ychart__bars i.in { background: color-mix(in srgb, var(--accent) 75%, transparent); }
.mo-ychart__bars i.out { background: color-mix(in srgb, var(--err) 70%, transparent); }
.mo-ychart__bars b { position: absolute; left: 50%; width: 9px; height: 9px; margin: 0 0 -4.5px -4.5px; border-radius: 50%; background: var(--ink); border: 2px solid var(--card); z-index: 3; }
.mo-ychart__bars b.is-neg { background: var(--err); }
.mo-ychart__col.is-future .mo-ychart__bars i { opacity: .38; }
.mo-ychart__col.is-est .mo-ychart__bars i { opacity: .6; outline: 1px dashed var(--line-strong); outline-offset: 1px; }
.mo-ychart__col small { height: 22px; line-height: 22px; font-size: 11.5px; color: var(--muted); }
.mo-ychart__col.is-now small { color: var(--ink); font-weight: 700; }
.mo-spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 24px; width: 96px; vertical-align: middle; }
.mo-spark i { flex: 1; min-height: 0; border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--accent) 75%, transparent); }
.mo-spark i.is-future { opacity: .35; }
.mo-table tr[data-mo-goto] { cursor: pointer; }
@media (max-width: 900px) { .mo-rates-card .mo-rates { grid-template-columns: 1fr; } .mo-ychart { height: 200px; } .mo-ychart__bars { gap: 1px; } }
@media (max-width: 560px) { .mo-month strong { min-width: 110px; } .mo-ychart__col small { font-size: 10px; } }
.mo-year__head .adm-legend { flex-wrap: wrap; white-space: nowrap; row-gap: 4px; }

/* The timer sits in a .menu, whose plain buttons would flatten its fields: give them the page's background. */
.timer-pop .sel__btn, .timer-pop input:not([type="checkbox"]), .timer-pop textarea { width: 100%; min-height: 38px; padding: 7px 10px 7px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); color: var(--ink); font-size: 13.5px; font-weight: 500; }
.timer-pop .sel__btn:hover { background: var(--bg); border-color: color-mix(in srgb, var(--line-strong) 60%, var(--ink)); }
.timer-pop .sel.is-open .sel__btn { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.timer-pop .sel { display: flex; width: 100%; }

/* Docs 0.71.2: the side column is always there (the guide does not shift between pages), with the section in view marked */
.docs__toc a.is-active { color: var(--ink); font-weight: 600; border-left-color: var(--accent); }
.docs__toc a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs__toc-more { display: grid; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.docs__toc-more button { display: grid; gap: 1px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 600; text-align: left; cursor: pointer; }
.docs__toc-more button:hover { border-color: var(--accent); }
.docs__toc-more small { font-size: 11px; font-weight: 500; color: var(--muted); }
.docs__toc-more [data-docs-whatsnew] { display: flex; align-items: center; gap: 6px; }

/* Where the money goes: a colour for each kind of cost */
.mo-spend__bar i.mo-cat-people, .mo-spend__bar i.mo-cat-freelancers { background: color-mix(in srgb, #8b5cf6 75%, transparent); }
.mo-spend__bar i.mo-cat-taxes { background: color-mix(in srgb, #f97316 75%, transparent); }
.mo-spend__bar i.mo-cat-services, .mo-spend__bar i.mo-cat-marketing { background: color-mix(in srgb, #0ea5e9 70%, transparent); }
.mo-spend__bar i.mo-cat-hosting, .mo-spend__bar i.mo-cat-software { background: color-mix(in srgb, var(--err) 65%, transparent); }

/* A client's money this month, on its page (0.71.4) */
.cl-money__sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px 16px 6px; }
.cl-money__sum > div { display: grid; gap: 1px; }
.cl-money__sum b { font: 700 18px/1.2 var(--font-head); }
.cl-money__costs { list-style: none; margin: 6px 0 0; padding: 0 8px; }
.cl-money__costs button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.cl-money__costs button:hover { background: var(--well); }
.cl-money__costs button > span:first-child { display: grid; min-width: 0; }
.cl-money__costs strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-money__costs .num { white-space: nowrap; font-weight: 600; }
.cl-money__shares { margin: 6px 16px 0; }
.cl-money__sum b small { font: 600 12px var(--font-body, inherit); }
.cl-money__label { margin: 10px 16px 0; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; }
.sx-field { display: grid; gap: 6px; max-width: 380px; }
.sx-field > span:first-child { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.sx-field .sel { display: flex; width: 100%; }
.sx-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.sx-field--short { max-width: 220px; }
.sx-field input { width: 100%; }

/* Contracts on a client's page (0.72) */
.cl-k-list { list-style: none; margin: 0; padding: 4px 16px 8px; }
.cl-k { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.cl-k:first-child { border-top: 0; }
.cl-k__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cl-k__amount b { font: 700 18px/1.2 var(--font-head); }
.cl-k__actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.cl-k.is-ended { opacity: .7; }
.cl-ks__sum { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); font-weight: 700; }
.cl-ks__past { padding: 0 16px 8px; }
.cl-ks__past summary { cursor: pointer; padding: 8px 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.cl-ks__past .cl-k-list { padding: 0; }
.cl-k-calc { margin: -2px 0 0; padding: 9px 12px; border-radius: 8px; background: var(--well); font-size: 13px; color: var(--muted); }
.cl-k-calc:empty { display: none; }
.cl-k-calc b { color: var(--ink); }

/* Your profile (0.72.1) */
.avatar img, .tk-av--img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.tk-av--img { flex: none; background: var(--well); }
.pf { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; }
.pf__photo { display: grid; justify-items: center; gap: 12px; text-align: center; }
.pf__av { width: 112px; height: 112px; font-size: 36px; box-shadow: none; overflow: hidden; }
.pf__photo-actions { display: grid; justify-items: center; gap: 6px; }
.pf__photo-actions p { margin: 0; max-width: 170px; }
.pf__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf__fields .sx-field { max-width: none; }
.pf__fields .sx-field:last-child { grid-column: 1 / -1; }
.pf__fields input[readonly] { opacity: .7; }
@media (max-width: 640px) { .pf { grid-template-columns: 1fr; } .pf__fields { grid-template-columns: 1fr; } }

/* Top bar (0.72.2): the daily sections, the rest under Tools, Settings as a gear */
.tabs { align-items: center; }
.tools { position: relative; }
.tabs .tools__btn { display: inline-flex; align-items: center; gap: 5px; }
.tabs .tools__btn .icon { opacity: .7; transition: transform .15s; }
.tabs .tools__btn[aria-expanded="true"] { background: rgba(255,255,255,.12); color: #fff; }
.tabs .tools__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.tools-menu { position: absolute; top: calc(100% + 10px); left: -8px; z-index: 50; width: 330px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.28); animation: pop .12s ease-out; }
.tabs .tools-menu button { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 9px; color: var(--ink); text-align: left; font-weight: 500; }
.tabs .tools-menu button:hover, .tabs .tools-menu button:focus-visible { background: var(--well); color: var(--ink); outline: none; }
.tabs .tools-menu button.is-active { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink); }
.tools-menu__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--well); color: var(--accent); }
.tools-menu button.is-active .tools-menu__icon { background: var(--accent); color: var(--accent-ink); }
.tools-menu__text { display: grid; gap: 1px; min-width: 0; }
.tools-menu__text strong { font-size: 14px; font-weight: 700; }
.tools-menu__text small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.top > .settings-btn { margin-left: calc(8px - var(--top-gap)); }
.top > .settings-btn.is-active { background: rgba(255,255,255,.14); color: #fff; }
.top > .settings-btn + .bell-btn { margin-left: calc(4px - var(--top-gap)); }
@media (max-width: 640px) { .top > .settings-btn { display: none; } }

/* Money charts (0.72.3) */
.mo-year__head .seg { flex-wrap: wrap; }
.mo-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.mo-split > .card { padding: 16px 18px; }
.mo-split h3 { margin: 0 0 12px; font-size: 15px; }
.mo-split p { margin: 0; }
.mo-stack { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 2px; background: var(--well); margin-bottom: 12px; }
.mo-stack i { display: block; min-width: 3px; }
.mo-dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 3px; }
.mo-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mo-legend li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.mo-legend li[data-mo-client] { cursor: pointer; }
.mo-legend__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-legend em { font-style: normal; width: 38px; text-align: right; }
.mo-legend--row { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.mo-legend--row li { flex: none; }
.mo-legend--row .mo-legend__name { flex: none; }
.mo-vs { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 10px; }
.mo-vs li { cursor: pointer; }
.mo-vs__name { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.mo-vs__name em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 12px; margin-left: auto; }
.mo-vs li.is-over .mo-vs__name em { color: var(--err); }
.mo-vs__bars { display: grid; gap: 3px; margin-top: 4px; }
.mo-vs__bars i { display: block; height: 5px; border-radius: 99px; min-width: 2px; }
.mo-vs__bars i.t { background: #38bdf8; } .mo-vs__bars i.n { background: var(--coral); }
.mo-vs li.is-over .mo-vs__bars i.t { background: var(--err); }
.adm-key.mo-key-time { background: #38bdf8; }
.mo-div { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.mo-div li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.mo-div__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-div__track { position: relative; height: 10px; border-radius: 99px; background: var(--well); }
.mo-div__track::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line-strong); }
.mo-div__track i { position: absolute; left: 50%; top: 0; bottom: 0; border-radius: 0 99px 99px 0; background: var(--ok); }
.mo-div__track i.is-neg { left: auto; right: 50%; border-radius: 99px 0 0 99px; background: var(--err); }
.mo-div b { white-space: nowrap; text-align: right; min-width: 70px; }
.mo-ychart__stack { display: flex; flex-direction: column-reverse; width: 46%; max-width: 40px; min-height: 2px; border-radius: 5px 5px 0 0; overflow: hidden; gap: 1px; }
.mo-ychart__stack i { display: block; min-height: 2px; }
.mo-ychart--stack .mo-ychart__col.is-future .mo-ychart__stack { opacity: .38; }
.mo-run { position: relative; }
.mo-run svg { display: block; width: 100%; height: 220px; }
.mo-run__in, .mo-run__out, .mo-run__pro { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.mo-run__in { stroke: color-mix(in srgb, var(--accent) 85%, transparent); }
.mo-run__out { stroke: color-mix(in srgb, var(--err) 80%, transparent); }
.mo-run__pro { stroke: var(--ok); stroke-width: 3; }
.mo-run__area { fill: color-mix(in srgb, var(--ok) 14%, transparent); stroke: none; }
.mo-run__zero { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 4 4; }
.mo-run__ahead { fill: color-mix(in srgb, var(--bg) 45%, transparent); }
.mo-run__labels { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.mo-run__labels button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 11.5px; padding: 4px 0; cursor: pointer; border-radius: 6px; }
.mo-run__labels button:hover { background: var(--well); color: var(--ink); }
.adm-key.mo-key-pro { background: var(--ok); margin-left: 10px; }
@media (max-width: 1100px) { .mo-split { grid-template-columns: 1fr 1fr; } .mo-split > .card:last-child { grid-column: 1 / -1; } }
@media (max-width: 700px) { .mo-split { grid-template-columns: 1fr; } .mo-run svg { height: 170px; } }
.mo-vs__name { flex-wrap: nowrap; }
.mo-vs__nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-vs__name em { flex: none; white-space: nowrap; }
.mo-h-sub { display: block; margin-top: 3px; font: 500 12px var(--font, inherit); color: var(--muted); }
.pf__fields .pf__lang { grid-column: 1 / -1; max-width: 380px; }
.pf__lang small { line-height: 1.4; }

/* 0.73.3: room for the scrollbar always (no sideways jump between short and long pages); long dropdown options cut with … */
html { scrollbar-gutter: stable; }
.sel__menu { max-width: min(560px, calc(100vw - 16px)); }
.sel__opt span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cl-more { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0 24px; }

/* Maintenance and coming soon screens (0.74) */
.scr { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.scr__prev { display: grid; gap: 10px; }
.scr__frame { position: relative; width: 100%; aspect-ratio: 1280 / 800; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--well); }
.scr__frame iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform: scale(var(--k, .4)); transform-origin: 0 0; pointer-events: none; }
.scr__form { display: grid; gap: 14px; }
.scr__form label { display: grid; gap: 4px; }
.scr__form label.inline-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.scr__grow { flex: 1; min-width: 200px; }
.scr__words { display: grid; gap: 12px; }
.scr__link { display: grid; gap: 4px; }
.seg--sm button { padding: 4px 9px; font-size: 12.5px; }
@media (max-width: 1100px) { .scr { grid-template-columns: 1fr; } .scr__prev { position: static; } }

/* Social images, version 2 (0.75): layouts, photo, fonts, a look per post type, real pages to preview. */
.og2 .scr__prev { gap: 12px; }
.og2__for { display: grid; gap: 6px; }
.og2__types { flex-wrap: wrap; height: auto; }
.og2__dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; vertical-align: middle; margin-left: 2px; background: currentColor; }
.og2__set { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 14px; transition: opacity .15s; }
.og2__set:disabled { opacity: .45; }
.og2__layouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; --a: #F59E0B; --b: #0F172A; }
.og2__layout { display: grid; gap: 6px; justify-items: center; padding: 8px 6px 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: border-color .15s, box-shadow .15s, color .15s; }
.og2__layout svg { width: 100%; max-width: 92px; aspect-ratio: 60 / 32; border-radius: 5px; background: var(--b); fill: var(--f, rgba(255, 255, 255, .85)); }
.og2__layout[data-og-style="gradient"] svg { background: linear-gradient(135deg, var(--b) 0%, var(--a) 120%); fill: #fff; }
.og2__layout:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--ink); }
.og2__layout[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); color: var(--ink); }
.og2__layout:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.og2__set:disabled .og2__layout { cursor: default; }
.og2__samples { display: grid; gap: 6px; }
.og2__samples:empty { display: none; }
.og2__chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.og2__chip { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; max-width: 230px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; font-size: 12.5px; cursor: pointer; }
.og2__chip img, .og2__noimg { width: 34px; height: 34px; border-radius: 5px; object-fit: cover; flex: 0 0 auto; }
.og2__noimg { display: grid; place-items: center; background: var(--well); color: var(--muted); }
.og2__chip > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og2__chip[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.og2__fonts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: -4px; }
.og2__form input[type="range"] { width: 140px; accent-color: var(--accent); }
.og2__col > label { justify-self: start; }
.og2__col > label:has(input[type="url"]), .og2__col .scr__grow { justify-self: stretch; }
.og2.scr { grid-template-columns: 1fr; gap: 18px; }
.og2__form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; align-items: start; }
.og2__form > *, .og2__set > * { min-width: 0; }
.og2__form > .og2__set { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; align-items: start; }
.og2__col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.og2__form > :not(.og2__set) { grid-column: 1 / -1; }
.og2__set .og-form__row { flex-wrap: wrap; }
.og2__set .og-form__row select { min-width: 0; }
@media (max-width: 760px) { .og2__form > .og2__set { grid-template-columns: 1fr; } }

/* Modules (0.76): a module switched off in Settings, Modules is hidden wherever it shows. */
html[data-off~="clients"] [data-module~="clients"],
html[data-off~="tasks"] [data-module~="tasks"],
html[data-off~="time"] [data-module~="time"],
html[data-off~="money"] [data-module~="money"],
html[data-off~="portal"] [data-module~="portal"],
html[data-off~="reports"] [data-module~="reports"],
html[data-off~="status"] [data-module~="status"],
html[data-off~="social"] [data-module~="social"],
html[data-off~="screens"] [data-module~="screens"],
html[data-off~="visual"] [data-module~="visual"],
html[data-off~="staging"] [data-module~="staging"],
html[data-off~="insights"] [data-module~="insights"],
html[data-off~="recommended"] [data-module~="recommended"] { display: none !important; }

/* Settings, Modules (0.76). */
.mods { display: grid; gap: 16px; }
.mods__core { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.mods__core > svg { flex: none; color: var(--ok); }
.mods__core div { display: grid; gap: 2px; }
.mods__list { display: grid; padding: 6px 8px 10px; }
.mods__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px; border-radius: 10px; cursor: pointer; transition: background .12s; }
.mods__row + .mods__row { box-shadow: 0 -1px 0 var(--line); }
.mods__row:hover { background: var(--well); }
.mods__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--well); color: var(--muted); transition: background .15s, color .15s; }
.mods__row.is-on .mods__icon { background: color-mix(in srgb, var(--coral) 14%, transparent); color: var(--coral); }
.mods__text { display: grid; gap: 2px; min-width: 0; }
.mods__text strong { font-size: 14.5px; }
.mods__text strong em { font-style: normal; font-weight: 500; margin-left: 4px; }
.mods__text .muted { line-height: 1.45; }
.mods__use { color: var(--ink); font-weight: 600; margin-top: 2px; }
.mods__row:not(.is-on) .mods__text strong { color: var(--muted); }

/* Recommended tools (0.76): search and filters, badges, the Partner ribbon, the filter drawer. */
body.role-viewer [data-not-viewer] { display: none !important; }
.rtb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 1120px; margin: -14px auto 14px; }
.rtb__search { position: relative; flex: 1 1 280px; max-width: 420px; }
.rtb__search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.rtb__search input { width: 100%; padding-left: 38px; }
.rtb__spacer { flex: 1; }
.rtb__admin { display: inline-flex; gap: 8px; }
.rtb__admin[hidden] { display: none; }
.rtb__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 11.5px; font-weight: 700; }
.rtb__cats { max-width: 1120px; margin: 0 auto 12px; }
.rtb__cats:empty { display: none; }
.rtb__active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 1120px; margin: 0 auto 14px; }
.rtb__active[hidden] { display: none; }
.rtb__chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.rtb__chip span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--well); color: var(--muted); font-size: 14px; line-height: 1; }
.rtb__chip:hover span { background: var(--coral); color: #fff; }
.rtb__active .link-btn { margin-left: 4px; font-size: 12.5px; }
.rec-grid { max-width: 1120px; margin: 0 auto; }
.rec { position: relative; overflow: hidden; }
.rec__title { min-width: 0; }
.rec__title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rec__badges .pill { display: inline-flex; align-items: center; gap: 4px; }
.rec__by { background: color-mix(in srgb, var(--coral) 14%, transparent); color: var(--coral); }
.rec__mine { background: color-mix(in srgb, var(--sky) 18%, transparent); color: var(--ink); }
.rec__ribbon { position: absolute; top: 14px; right: -34px; width: 120px; padding: 3px 0; transform: rotate(45deg); background: var(--coral); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-align: center; text-transform: uppercase; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.rec--partner .rec__head { padding-right: 34px; }
.rec--hidden { opacity: .6; }
.rec__acts { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
.rec__acts > span { display: inline-flex; gap: 2px; }
.rec-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; padding: 40px 0; }
.rec-empty p { margin: 0; }
.rfs { display: flex; flex-direction: column; }
.rfs > div[data-rec-sheet-body] { flex: 1; }
.rfs__opts { display: grid; gap: 6px; }
.rfs__opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .12s, background .12s; }
.rfs__opt:hover { border-color: var(--line-strong); }
.rfs__opt.is-on { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 8%, transparent); }
.rfs__opt input { accent-color: var(--coral); }
.rfs__opt span { flex: 1; font-weight: 600; }
.rfs__opt em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.rfs__foot { position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: 10px; padding: 14px 22px; background: var(--card); border-top: 1px solid var(--line); }
@media (max-width: 700px) { .rtb { margin-top: -20px; } .rtb__search { max-width: none; } .rtb__spacer { display: none; } }
.pill.sky { background: color-mix(in srgb, var(--sky) 22%, transparent); color: var(--ink); }
.rfs__sec .sel { display: flex; width: 100%; }
.rfs__sec .sel__btn { flex: 1; justify-content: space-between; }

/* Value for clients (0.79): the price of each premium plugin for one site. */
.lv__price { display: flex; gap: 8px; align-items: center; max-width: 340px; }
.lv__price input { width: 110px; flex: none; }
.lv__price .sel { flex: 1; min-width: 150px; }
.lv__state { width: 70px; }

/* A client's premium plugins and what they save (0.79). */
.clp { list-style: none; margin: 0; padding: 4px 14px; display: grid; }
.clp li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.clp li > div { flex: 1; min-width: 0; display: grid; } .clp li b { white-space: nowrap; }
.clp__total { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 10px 14px 4px; font-size: 13.5px; }
.clp__total span { color: var(--muted); } .clp__total b:first-of-type { font-size: 16px; color: var(--ok); }
.clp__share { display: grid; gap: 10px; padding: 12px 14px 14px; margin-top: 8px; border-top: 1px solid var(--line); }
.clp__link { display: grid; gap: 6px; justify-items: start; } .clp__link .status-link { width: 100%; }

/* Settings, Client pages (0.80). */
.sx-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.sx-row2 textarea { min-height: 170px; }
@media (max-width: 760px) { .sx-row2 { grid-template-columns: 1fr; } }
.clp__h { margin: 12px 14px 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.clp__xfer { margin: 0 14px 14px; border: 1px solid var(--line); border-radius: 10px; }
.clp__xfer summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--muted); list-style: none; }
.clp__xfer summary::-webkit-details-marker { display: none; } .clp__xfer[open] summary { color: var(--ink); border-bottom: 1px solid var(--line); }
.clp__xfer > div { display: grid; gap: 10px; padding: 12px; justify-items: start; } .clp__xfer .status-link { width: 100%; }
.clp__date { display: grid; gap: 4px; } .clp__date input { width: 190px; }

/* Screens: the default design or the site's own (0.82). */
.scr__src { display: grid; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.scr__src .seg { justify-self: start; }

/* The website checklist (0.83). */
.ess { list-style: none; margin: 0; padding: 4px 14px 12px; display: grid; }
.ess__row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ess__row:last-child { border-bottom: 0; }
.ess__row > svg { flex: none; margin-top: 2px; }
.ess__row.is-ok > svg { color: var(--ok); } .ess__row.is-warn > svg { color: var(--warn); } .ess__row.is-bad > svg { color: var(--err); } .ess__row.is-unknown > svg { color: var(--muted); }
.ess__row div { display: grid; gap: 1px; min-width: 0; } .ess__row strong { font-size: 14px; } .ess__row span { color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.ess-card h3 .muted.small { font-weight: 500; margin-right: 6px; }

.bellp__clear { margin-left: 10px; color: var(--muted) !important; }
.lv__url { width: 100%; min-width: 220px; }

/* Social profiles (0.86). */
.soc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
@media (max-width: 900px) { .soc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .soc-grid { grid-template-columns: 1fr; } }

/* A card placed straight in a Settings page with a plain heading: the heading's spacing (0.87). */
.sx-pane > .card > h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px 20px; font-size: 15px; border-bottom: 1px solid var(--line); }
.sx-pane > .card > .set-card__body { padding: 16px 20px 20px; }

/* Settings, Client emails (0.88). */
.em { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.em__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.em__item { display: grid; gap: 3px; justify-items: start; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.em__item[aria-selected="true"] { border-color: var(--coral); box-shadow: 0 0 0 1px var(--coral); }
.em__item .pill { margin-top: 4px; }
.em__edit { overflow: hidden; }
.em__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.em__head h3 { margin: 0; font-size: 15px; }
.em__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; padding: 16px 18px 18px; align-items: start; }
.em__form { display: grid; gap: 12px; }
.em__form textarea { resize: vertical; }
.em__vars { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.em__var { cursor: pointer; border: 1px solid var(--line); font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.em__foot { display: flex; align-items: center; gap: 10px; }
.em__prev { display: grid; gap: 8px; }
.em__subject { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--well); }
.em__frame { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #f1f6fa; min-height: 200px; }
.em__frame iframe { position: absolute; top: 0; left: 0; width: 600px; height: 520px; border: 0; transform: scale(var(--k, 1)); transform-origin: 0 0; }
@media (max-width: 1000px) { .em__grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .em__list { grid-template-columns: 1fr; } }

/* Cards that fold to their title, in the site panel (0.90). */
.drawer .is-foldable > h3 { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 8px; }
.drawer .is-foldable > h3::after { content: ''; flex: none; width: 16px; height: 16px; margin-left: auto; background: var(--muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .15s; }
.drawer .is-foldable > h3:has(.spacer)::after { margin-left: 8px; }
.drawer .is-foldable.is-folded > h3::after { transform: rotate(-90deg); }
.drawer .is-foldable > h3:hover::after { background: var(--ink); }
.drawer .is-foldable.is-folded > :not(h3) { display: none !important; }
.drawer .is-foldable.is-folded > h3 { border-bottom: 0; }
.drawer .is-foldable > h3:focus-visible { outline: 2px solid var(--coral); outline-offset: -2px; border-radius: 8px; }
.fold-bar { display: flex; justify-content: flex-end; gap: 6px; align-items: center; color: var(--muted); font-size: 12.5px; margin: -4px 2px 2px; }
.fold-bar .link-btn { font-size: 12.5px; color: var(--muted); margin: 0; padding: 0; }
.fold-bar .link-btn:hover { color: var(--ink); }

.ess__row.is-okrow { display: none; } .ess-card.show-ok .ess__row.is-okrow { display: flex; }
.ess__more { padding: 0 14px 12px; } .ess__more .link-btn { font-size: 13px; }
.tasks-more { padding: 4px 14px 12px; } .tasks-more .link-btn { font-size: 13px; }

/* At a glance, on a site's Overview (0.91). */
.glance { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.glance__t { display: grid; justify-items: start; gap: 1px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; min-width: 0; transition: border-color .15s; position: relative; }
.glance__t:hover { border-color: var(--line-strong); }
.glance__t > svg { position: absolute; top: 10px; right: 10px; color: var(--muted); }
.glance__l { font-size: 11.5px; font-weight: 600; color: var(--muted); padding-right: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.glance__t strong { font: 700 19px/1.25 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.glance__t strong small { font-size: 12px; color: var(--muted); font-weight: 600; }
.glance__s { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.glance__t.is-ok > svg { color: var(--ok); } .glance__t.is-warn > svg { color: var(--warn); } .glance__t.is-bad > svg { color: var(--err); }
.glance__t.is-bad { border-color: color-mix(in srgb, var(--err) 45%, var(--line)); }
@media (max-width: 1100px) { .glance { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Snippets (0.92): the library on the left, the open snippet on the right ---------- */
.snip { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
.snip--empty { display: block; }
.snip__list { display: grid; gap: 6px; position: sticky; top: 74px; max-height: calc(100vh - 96px); overflow: auto; padding: 2px; }
.snip-item { display: grid; gap: 3px; text-align: left; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.snip-item:hover { border-color: var(--line-strong); }
.snip-item.is-open { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.snip-item__top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.snip-item__top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.snip-item__meta { font-size: 12px; color: var(--muted); }
.snip-item__line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 12px; color: var(--muted); }
.snip-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; background: var(--muted); }
.snip-dot--ok { background: var(--ok); } .snip-dot--warn { background: var(--warn); } .snip-dot--bad { background: var(--err); }
.snip-dot:not(:first-child) { margin-left: 8px; }
.kbadge { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; padding: 1px 6px; border-radius: 6px; font: 700 10.5px/1.6 ui-monospace, Menlo, monospace; letter-spacing: .04em; }
.kbadge--php { background: #e9e6fb; color: #4f46a5; } .kbadge--css { background: #dff0fb; color: #1d6a9a; } .kbadge--js { background: #fbf3cf; color: #7a5a00; }
:root[data-theme="dark"] .kbadge--php { background: rgba(129,120,230,.2); color: #b9b2ff; } :root[data-theme="dark"] .kbadge--css { background: rgba(80,170,230,.18); color: #9fd3f5; } :root[data-theme="dark"] .kbadge--js { background: rgba(240,200,60,.16); color: #f2d675; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kbadge--php { background: rgba(129,120,230,.2); color: #b9b2ff; } :root:not([data-theme="light"]) .kbadge--css { background: rgba(80,170,230,.18); color: #9fd3f5; } :root:not([data-theme="light"]) .kbadge--js { background: rgba(240,200,60,.16); color: #f2d675; } }
.snip__main { padding: 18px 18px 14px; min-width: 0; }
.snip__head { display: flex; align-items: flex-start; gap: 14px; }
.snip__title { flex: 1; min-width: 0; }
.snip__title h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.snip__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12.5px; color: var(--muted); }
.snip__notes { margin: 10px 0 0; font-size: 13.5px; max-width: 70ch; white-space: pre-line; }
.snip__acts { display: flex; gap: 6px; flex: none; }
.snip__tabs { margin: 16px 0 12px; }
.snip-count { display: inline-flex; min-width: 18px; justify-content: center; padding: 0 5px; border-radius: 99px; background: color-mix(in srgb, currentColor 14%, transparent); font-size: 11px; }
.snip-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 12px; margin-bottom: 8px; background: var(--well); border-radius: 10px; }
.snip-bar .link-btn { font-size: 13px; }
.snip-sites td { vertical-align: top; padding-top: 11px; padding-bottom: 11px; }
.snip-sites td.snip-cb { width: 30px; padding-right: 0; }
.snip-sites td.snip-cb input { margin-top: 3px; }
.snip-sites tr.is-na { opacity: .62; }
.snip-st { min-width: 200px; }
.snip-st .pill { margin-right: 8px; }
.snip-st__t { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.snip-sites .actions { justify-content: flex-end; flex-wrap: wrap; }
.snip-res { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 7px; font-size: 12.5px; }
.snip-res .spinner { color: var(--coral); margin-right: 2px; }
.snip-res--bad > span:last-child { color: var(--err); font-weight: 600; overflow-wrap: anywhere; }
.snip-steps-line { display: inline-flex; flex-wrap: wrap; gap: 3px 10px; }
.snip-steps-line > span { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); }
.snip-steps-line > span.ok svg { color: var(--ok); } .snip-steps-line > span.bad { color: var(--err); font-weight: 600; }
.snip-how { display: flex; gap: 7px; align-items: flex-start; margin: 12px 2px 2px; font-size: 12.5px; max-width: 80ch; }
.snip-how svg { flex: none; margin-top: 2px; color: var(--ok); }
.snip-code { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.snip-code__bar { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 12px; border-bottom: 1px solid var(--line); background: var(--well); font-size: 12.5px; color: var(--muted); }
.snip-pre { margin: 0; padding: 12px 0; max-height: 520px; overflow: auto; background: var(--card); font: 12.5px/1.6 ui-monospace, Menlo, monospace; counter-reset: ln; tab-size: 4; }
.snip-pre code { display: block; min-width: max-content; }
.snip-pre code > span { display: block; padding-right: 16px; white-space: pre; }
.snip-pre code > span::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 3.2em; padding-right: 1em; margin-right: .8em; text-align: right; color: var(--muted); opacity: .6; border-right: 1px solid var(--line); user-select: none; }
.snip-vers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.snip-vers > li { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.snip-vers__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 9px 10px 9px 13px; font-size: 13px; }
.snip-vers > li.is-open .snip-vers__row { border-bottom: 1px solid var(--line); background: var(--well); }
.snip-vers .snip-pre { max-height: 360px; }
.snip-empty { max-width: 640px; margin: 8px auto 0; padding: 30px 30px 26px; text-align: center; }
.snip-empty__icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: var(--well); color: var(--accent); }
.snip-empty h2 { margin: 14px 0 6px; font-size: 22px; }
.snip-empty > p { margin: 0 auto; max-width: 52ch; color: var(--muted); }
.snip-steps { counter-reset: st; list-style: none; text-align: left; margin: 20px 0 22px; padding: 0; display: grid; gap: 10px; }
.snip-steps li { counter-increment: st; display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 13.5px; }
.snip-steps li::before { content: counter(st); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 12px; }
.snip-dlg { width: min(860px, calc(100vw - 32px)); }
.snip-form { display: grid; gap: 14px; }
.snip-form h2 { margin: 0; }
.snip-form .sx-field { max-width: none; }
.snip-form__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: end; }
.snip-form__row .sel, .snip-form__row select { width: 100%; }
.snip-form__fixed { display: flex; align-items: center; gap: 8px; min-height: 36px; font-weight: 600; }
.snip-form textarea[name=code] { min-height: 300px; font: 12.5px/1.6 ui-monospace, Menlo, monospace; tab-size: 4; white-space: pre; overflow: auto; resize: vertical; }
.snip-form small { font-size: 12px; line-height: 1.45; }
.snip-code-in { max-width: 220px; margin-top: 4px; }
.snip-code-in input { font: 600 18px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .12em; }
@media (max-width: 900px) {
    .snip { grid-template-columns: 1fr; }
    .snip__list { position: static; max-height: none; }
    .snip__main { scroll-margin-top: 70px; }
}
@media (max-width: 640px) {
    .snip__main { padding: 14px 12px; }
    .snip__head { flex-direction: column; gap: 10px; }
    .snip-sites, .snip-sites tbody, .snip-sites tr, .snip-sites td { display: block; }
    .snip-sites tr { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); }
    .snip-sites td { padding: 2px 0 !important; border: 0 !important; }
    .snip-sites td.snip-cb { position: absolute; left: 0; top: 10px; width: auto; }
    .snip-sites .actions { justify-content: flex-start; margin-top: 6px; }
    .snip-st { min-width: 0; }
    .snip-form__row { grid-template-columns: 1fr; }
    .snip-empty { padding: 22px 16px; }
}

/* ---------- Lighthouse in depth (0.93): the Speed card ---------- */
.lh { padding: 4px 14px 12px; }
.lh-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.lh-pages { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.lh-pages button { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
.lh-gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lh-g { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 4px 8px; border-radius: 12px; background: var(--well); text-align: center; }
.lh-g svg { width: 62px; height: 62px; transform: rotate(-90deg); }
.lh-g__bg { fill: none; stroke: color-mix(in srgb, var(--muted) 22%, transparent); stroke-width: 5; }
.lh-g__fg { fill: none; stroke-width: 5; stroke-linecap: round; stroke: currentColor; }
.lh-g b { position: absolute; top: 10px; left: 0; right: 0; height: 62px; display: grid; place-items: center; font-family: var(--font-head); font-size: 20px; }
.lh-g > span { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.lh-g small { font-size: 11px; }
.lh-g.is-good { color: #16a34a; } .lh-g.is-ok { color: #d97706; } .lh-g.is-bad { color: var(--err); } .lh-g.is-none { color: var(--muted); }
.lh-g__d.up { color: var(--ok); } .lh-g__d.down { color: var(--err); font-weight: 700; }
.lh-lab { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 2px 0; font-size: 12.5px; }
.lh-lab b { color: var(--ink); font-weight: 600; margin-right: 3px; }
.lh-field { margin-top: 14px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; }
.lh-field__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; }
.lh-field__head .muted { font-size: 12px; flex-basis: 100%; }
.lh-field__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.lh-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; background: var(--well); cursor: help; }
.lh-chip b { font-size: 11px; letter-spacing: .03em; color: var(--muted); }
.lh-chip.is-ok { background: var(--ok-bg); color: var(--ok); } .lh-chip.is-warn { background: var(--warn-bg); color: var(--warn); } .lh-chip.is-bad { background: var(--err-bg); color: var(--err); }
.lh-chip.is-ok b, .lh-chip.is-warn b, .lh-chip.is-bad b { color: inherit; opacity: .75; }
.lh-nofield { font-size: 12.5px; margin: 12px 2px 0; }
.lh-trend { margin-top: 14px; }
.lh-trend__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: center; margin-bottom: 4px; }
.lh-trend__key { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--muted); }
.lh-trend__key i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: 3px; }
.lh-trend svg { width: 100%; height: 90px; display: block; }
.lh-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 4; }
.lh-t--0, .lh-k--0 { stroke: var(--coral); background: var(--coral); } .lh-t--1, .lh-k--1 { stroke: #3b82f6; background: #3b82f6; } .lh-t--2, .lh-k--2 { stroke: #a855f7; background: #a855f7; } .lh-t--3, .lh-k--3 { stroke: #14b8a6; background: #14b8a6; }
.lh-trend__dates { display: flex; justify-content: space-between; font-size: 11px; margin-top: 2px; }
.lh-fixes { margin-top: 14px; }
.lh-fixes > p { margin: 0 0 6px; }
.lh-fixes ul { list-style: none; margin: 0; padding: 0; display: grid; }
.lh-fixes li { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 0; border-top: 1px solid var(--line); }
.lh-fixes li strong { display: block; font-size: 13.5px; }
.lh-fixes li .muted { display: block; font-size: 12.5px; margin-top: 1px; }
.lh-cat { justify-self: start; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; background: var(--well); color: var(--muted); margin-top: 2px; }
.lh-cat--performance { background: color-mix(in srgb, var(--coral) 15%, transparent); color: var(--coral); }
.lh-cat--accessibility { background: color-mix(in srgb, #3b82f6 15%, transparent); color: #3b82f6; }
.lh-cat--best_practices { background: color-mix(in srgb, #a855f7 15%, transparent); color: #a855f7; }
.lh-cat--seo { background: color-mix(in srgb, #14b8a6 15%, transparent); color: #0d9488; }
.lh-save { font-size: 12px; color: var(--muted); white-space: nowrap; margin-top: 2px; }
.lh-empty { font-size: 13px; margin: 6px 2px 4px; }
.lh-foot { font-size: 12px; margin: 12px 2px 0; }
.lh-drop { display: flex; align-items: flex-start; gap: 10px; margin: 2px 14px 12px; padding: 10px 12px; border-radius: 11px; background: var(--warn-bg); color: var(--warn); }
.lh-drop > svg { flex: none; margin-top: 1px; }
.lh-drop > div { flex: 1; display: grid; gap: 2px; font-size: 13px; }
.lh-drop span { color: var(--ink); }
.lh-drop .btn { flex: none; }
@media (max-width: 560px) {
    .lh-gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lh-fixes li { grid-template-columns: minmax(0, 1fr) auto; }
    .lh-fixes li .lh-cat { grid-column: 1 / -1; }
}
.spam-note { color: var(--accent); }

/* ---------- Payments to tick off (0.97): the month's costs as a to-do list ---------- */
.pay { padding: 18px 18px 10px; margin-bottom: 14px; }
.pay__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pay__head h3 { margin: 0 0 2px; padding: 0; font-size: 17px; }
.pay__head p { margin: 0; }
.pay__count { display: flex; align-items: baseline; gap: 6px; flex: none; }
.pay__count b { font-family: var(--font-head); font-size: 26px; line-height: 1; color: var(--accent); }
.pay__count span { color: var(--muted); font-size: 13px; }
.pay__count.is-done b { color: var(--ok); }
.pay__bar { height: 8px; margin: 14px 0 8px; border-radius: 99px; background: var(--well); overflow: hidden; }
.pay__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #16a34a, #22c55e); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.pay__sums { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.pay__sums span { display: inline-flex; align-items: center; gap: 6px; }
.pay__sums i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.pay__sums i.is-paid { background: #22c55e; }
.pay__all { color: var(--ok); font-weight: 600; }
.pay__late { color: var(--err); font-weight: 700; }
.pay__list { list-style: none; margin: 0 -8px; padding: 0; }
.pay__row { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; transition: background .2s; }
.pay__row + .pay__row { border-top: 1px solid var(--line); }
.pay__row:hover { background: color-mix(in srgb, var(--well) 70%, transparent); }
.pay__main { min-width: 0; display: grid; }
.pay__main strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.pay__main .small { font-size: 12px; }
.pay__amt { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; text-align: right; min-width: 72px; }
.pay__tick { position: relative; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--card); cursor: pointer; display: grid; place-items: center; transition: border-color .15s, background .2s, transform .15s, box-shadow .15s; }
.pay__tick:hover { border-color: #22c55e; box-shadow: 0 0 0 4px color-mix(in srgb, #22c55e 16%, transparent); }
.pay__tick:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.pay__tick:active { transform: scale(.9); }
.pay__tick svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; }
.pay__tick[aria-checked="true"] { background: #16a34a; border-color: #16a34a; }
.pay__tick[aria-checked="true"] svg { stroke-dashoffset: 0; }
.pay__row.is-just .pay__tick { animation: payPop .35s cubic-bezier(.2, .9, .3, 1.4); }
.pay__row.is-just .pay__tick svg { transition: stroke-dashoffset .3s .08s ease-out; animation: payDraw .35s .05s ease-out both; }
@keyframes payPop { 0% { transform: scale(.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes payDraw { from { stroke-dashoffset: 22; } to { stroke-dashoffset: 0; } }
.pay__row.is-paid .pay__main strong { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); text-decoration-thickness: 1.5px; }
.pay__row.is-paid .pay__amt { color: var(--muted); }
.pay__row.is-overdue::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--err); }
.pay__row.is-overdue .pay__tick { border-color: color-mix(in srgb, var(--err) 55%, var(--line-strong)); }
.pay__chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--well); color: var(--muted); }
.pay__chip.is-paid { background: var(--ok-bg); color: var(--ok); }
.pay__chip.is-due { background: var(--warn-bg); color: var(--warn); }
.pay__chip.is-overdue { background: var(--err-bg); color: var(--err); }
.pay__empty { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; }
.pay__note { display: flex; align-items: center; gap: 7px; margin: 10px 0 6px; padding: 8px 10px; border-radius: 9px; background: var(--err-bg); color: var(--err); font-size: 12.5px; font-weight: 600; }
@media (max-width: 600px) {
    .pay { padding: 14px 12px 8px; }
    .pay__row { grid-template-columns: 30px minmax(0, 1fr) auto; row-gap: 4px; }
    .pay__row .pay__chip { grid-column: 2; justify-self: start; grid-row: 2; }
    .pay__row .pay__amt { grid-row: 1; grid-column: 3; }
}
@media (prefers-reduced-motion: reduce) { .pay__tick, .pay__tick svg, .pay__bar span { transition: none; animation: none !important; } }

/* ---------- Money in two tabs (0.98): Overview, and Clients and costs ---------- */
.mo-tabs { display: flex; gap: 4px; margin: 4px 0 16px; border-bottom: 1px solid var(--line); }
.mo-tabs button { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 12px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.mo-tabs button:hover { color: var(--ink); }
.mo-tabs button[aria-selected="true"] { color: var(--ink); }
.mo-tabs button[aria-selected="true"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--coral); }
.mo-tabs__badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--well); color: var(--muted); font-size: 11.5px; }
.mo-tabs__badge.is-bad { background: var(--err); color: #fff; }
/* What to do first: the payments, and what renews next to them. */
.mo-act { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 14px; align-items: start; margin-bottom: 14px; }
.mo-act > .card { margin-bottom: 0; }
.mo-act .mo-renew h3 { padding: 18px 18px 12px; border-bottom: 0; font-size: 17px; }
.mo-act .mo-renew ul { padding: 0 18px 12px; }
.mo-act .mo-renew li { flex-wrap: wrap; row-gap: 2px; }
@media (max-width: 980px) { .mo-act { grid-template-columns: minmax(0, 1fr); } }
/* The next 12 months: two bars a month, what is left above. */
.mo-fc { padding: 18px; }
.mo-fc h3 { margin: 0 0 14px; padding: 0; font-size: 15px; }
.mo-fc__chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 200px; }
.mo-fc__col { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 4px; text-align: center; min-width: 0; }
.mo-fc__col em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--ok); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-fc__col em.is-neg { color: var(--err); }
.mo-fc__col small { font-size: 11px; color: var(--muted); }
.mo-fc__bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; border-bottom: 1px solid var(--line); }
.mo-fc__bars span { width: 38%; max-width: 16px; border-radius: 4px 4px 0 0; transition: height .4s; }
.mo-fc__bars .is-in, .mo-fc__key.is-in, .mo-cl__tb .is-in { background: #38bdf8; }
.mo-fc__bars .is-out, .mo-fc__key.is-out, .mo-cl__tb .is-out { background: var(--coral); }
.mo-fc__key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin: 0 4px 0 8px; }
.mo-fc__key:first-child { margin-left: 0; }
.adm-legend strong.is-neg { color: var(--err); }
@media (max-width: 600px) { .mo-fc__col em { display: none; } .mo-fc__chart { gap: 3px; height: 160px; } }
/* A client's month, in a window. */
.mo-cl { width: min(920px, calc(100vw - 32px)); }
.mo-cl .dialog__box { padding: 22px; }
.mo-cl__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-right: 36px; }
.mo-cl__head > div { flex: 1; min-width: 0; }
.mo-cl__head h2 { margin: 0; font-size: 22px; }
.mo-cl__head p { margin: 2px 0 0; }
.mo-cl__dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.mo-cl__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.mo-cl__tiles > div { padding: 12px 14px; border-radius: 12px; background: var(--well); display: grid; gap: 2px; min-width: 0; }
.mo-cl__tiles span { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.mo-cl__tiles b { font-family: var(--font-head); font-size: 22px; }
.mo-cl__tiles em { font-style: normal; font-size: 12px; color: var(--muted); }
.mo-cl__tiles .is-neg b { color: var(--err); }
.mo-cl__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.mo-cl__grid h3 { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 8px; padding: 0; font-size: 14px; }
.mo-cl__grid h3:not(:first-child) { margin-top: 18px; }
.mo-cl__list, .mo-cl__costs, .mo-cl__sites { list-style: none; margin: 0; padding: 0; }
.mo-cl__list li, .mo-cl__costs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.mo-cl__costs li { grid-template-columns: 70px minmax(0, 1fr) auto; }
.mo-cl__list li:first-child, .mo-cl__costs li:first-child { border-top: 0; }
.mo-cl__list li > div, .mo-cl__costs li > div { display: grid; min-width: 0; }
.mo-cl__list strong, .mo-cl__costs strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-cl__list b, .mo-cl__costs b { font-size: 13.5px; text-align: right; white-space: nowrap; }
.mo-cl__list li.is-off { opacity: .6; }
.mo-cl__list .pill { margin-left: 6px; }
.mo-cl__kind { justify-self: start; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; background: var(--well); color: var(--muted); }
.mo-cl__kind.is-own { background: color-mix(in srgb, var(--coral) 15%, transparent); color: var(--coral); }
.mo-cl__kind.is-shared { background: color-mix(in srgb, #38bdf8 16%, transparent); color: #0284c7; }
.mo-cl__kind.is-licence { background: color-mix(in srgb, #eab308 18%, transparent); color: #a16207; }
.mo-cl__kind.is-time { background: color-mix(in srgb, #a855f7 15%, transparent); color: #9333ea; }
:root[data-theme="dark"] .mo-cl__kind.is-shared { color: #7dd3fc; } :root[data-theme="dark"] .mo-cl__kind.is-licence { color: #fde047; } :root[data-theme="dark"] .mo-cl__kind.is-time { color: #d8b4fe; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mo-cl__kind.is-shared { color: #7dd3fc; } :root:not([data-theme="light"]) .mo-cl__kind.is-licence { color: #fde047; } :root:not([data-theme="light"]) .mo-cl__kind.is-time { color: #d8b4fe; } }
.mo-cl__hours p { margin: 6px 0 0; } .mo-cl__hours p + p { margin-top: 2px; }
.mo-cl__hbar { height: 8px; border-radius: 99px; background: var(--well); overflow: hidden; }
.mo-cl__hbar span { display: block; height: 100%; border-radius: inherit; background: #38bdf8; }
.mo-cl__hbar span.is-over { background: var(--coral); }
.mo-cl__sites { display: grid; gap: 4px; }
.mo-cl__sites .link-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.mo-cl__up { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.mo-cl__up.is-down { background: var(--err); }
.mo-cl__trend { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; height: 110px; }
.mo-cl__trend > div { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 4px; text-align: center; }
.mo-cl__tb { display: flex; align-items: flex-end; justify-content: center; gap: 3px; border-bottom: 1px solid var(--line); }
.mo-cl__tb span { width: 34%; max-width: 14px; border-radius: 3px 3px 0 0; }
.mo-cl__trend small { font-size: 11px; color: var(--muted); }
.mo-cl__trend small.is-neg { color: var(--err); font-weight: 700; }
@media (max-width: 720px) { .mo-cl .dialog__box { padding: 18px 16px; } .mo-cl__head { flex-wrap: wrap; } .mo-cl__head > div { flex: 1 1 calc(100% - 30px); } .mo-cl__head .btn { margin-left: 26px; } .mo-cl__tiles { grid-template-columns: 1fr 1fr; } .mo-cl__tiles b { font-size: 19px; } .mo-cl__grid { grid-template-columns: minmax(0, 1fr); } }
.mo-rates-form { display: grid; gap: 14px; }
.mo-rates-form h2 { margin: 0; }
.mo-rates-form .sx-field { max-width: none; }
.mo-rates-form small { font-size: 12px; }
/* Rows that open the client window. */
[data-mo-client] { cursor: pointer; }

/* ---------- Money (0.99): a toolbar that stays, the costs grouped, the paid date ---------- */
.mo-toolbar { position: sticky; top: var(--top-h, 62px); z-index: 6; margin: 0 -24px 14px; padding: 10px 24px; background: var(--bg); transition: box-shadow .2s, border-color .2s; border-bottom: 1px solid transparent; }
.mo-toolbar.is-stuck { box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .45); border-bottom-color: var(--line); }
.mo-toolbar .mo-month strong { min-width: 130px; text-align: center; }
@media (max-width: 720px) { .mo-toolbar { margin: 0 -16px 12px; padding: 8px 16px; gap: 6px; } .mo-toolbar .btn { padding: 7px 10px; } }
.mo-act:has(> .card:only-child) { grid-template-columns: minmax(0, 1fr); }
.mo-costs .adm-bar h3 { display: flex; align-items: baseline; gap: 10px; }
.mo-costs .adm-bar h3 .muted { font-size: 13px; font-weight: 600; }
.mo-costs .adm-bar .btn { margin-left: auto; }
.mo-costs table { border-collapse: separate; border-spacing: 0; }
.mo-grp th { padding: 16px 16px 8px; text-align: left; font-size: 12.5px; font-weight: 800; letter-spacing: .03em; color: var(--ink); background: var(--card); border-bottom: 1px solid var(--line); text-transform: none; }
.mo-grp th em { font-style: normal; font-weight: 500; font-size: 12px; letter-spacing: 0; margin-left: 4px; }
.mo-grp th.num { color: var(--muted); font-weight: 700; }
.mo-costs__grp + .mo-costs__grp .mo-grp th { border-top: 6px solid var(--bg); }
.mo-costs__row { cursor: pointer; transition: background .15s; }
.mo-costs__row:hover, .mo-costs__row:focus-visible { background: color-mix(in srgb, var(--well) 70%, transparent); outline: none; }
.mo-costs__go { width: 32px; color: var(--muted); text-align: right; }
.mo-costs__row:hover .mo-costs__go { color: var(--ink); }
button.pay__chip { border: 0; font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
button.pay__chip .icon:last-child { opacity: 0; margin-left: 2px; transition: opacity .15s; }
button.pay__chip:hover .icon:last-child, button.pay__chip:focus-visible .icon:last-child { opacity: .8; }
.pay-dlg { width: min(380px, calc(100vw - 32px)); }
.pay-dlg form { display: grid; gap: 12px; }
.pay-dlg h2, .pay-dlg p { margin: 0; }
.pay-dlg .sx-field { max-width: none; }
.mo-form-note { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; padding: 9px 11px; border-radius: 9px; background: var(--well); }
@media (max-width: 760px) {
    .mo-costs table, .mo-costs tbody { display: block; }
    .mo-costs thead { display: none; }
    .mo-costs tr.mo-grp { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 14px 6px; border-bottom: 1px solid var(--line); }
    .mo-costs tr.mo-grp th { padding: 0; border: 0; background: none; }
    .mo-costs tr.mo-grp th:empty { display: none; }
    .mo-costs__grp + .mo-costs__grp tr.mo-grp { border-top: 6px solid var(--bg); }
    .mo-costs__grp + .mo-costs__grp .mo-grp th { border-top: 0; }
    .mo-costs tr.mo-costs__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
    .mo-costs tr.mo-costs__row td { padding: 0 !important; border: 0 !important; }
    .mo-costs tr.mo-costs__row td:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
    .mo-costs tr.mo-costs__row td:nth-child(2) { grid-column: 2; grid-row: 1; }
    .mo-costs tr.mo-costs__row td:nth-child(3), .mo-costs tr.mo-costs__row td:nth-child(5) { display: none; }
    .mo-costs tr.mo-costs__row td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; font-size: 12px; color: var(--muted); }
}
.mo-late { color: var(--err); font-weight: 700; }

/* ---------- Money (0.100): invoices from the invoicing software, read only ---------- */
.mo-inv { margin-bottom: 14px; }
.mo-inv .adm-bar h3 { display: flex; align-items: baseline; gap: 8px; }
.mo-inv .adm-bar h3 .muted { font-weight: 600; }
.mo-inv__sync { display: inline-flex; align-items: center; gap: 2px; }
.mo-inv__sync .mo-late { display: inline-flex; align-items: center; gap: 5px; margin-right: 4px; max-width: 420px; }
.mo-inv__sync .btn { padding: 5px 7px; }
.mo-inv__sync .btn.is-busy .icon { animation: spin .8s linear infinite; }
.mo-inv__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 16px; }
.mo-inv__tiles > div { padding: 12px 14px; border-radius: 12px; background: var(--well); display: grid; gap: 2px; min-width: 0; align-content: start; }
.mo-inv__tiles span { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.mo-inv__tiles b { font-family: var(--font-head); font-size: 22px; }
.mo-inv__tiles em { font-style: normal; font-size: 12px; color: var(--muted); }
.mo-inv__tiles .mo-bar { margin-top: 6px; }
.mo-inv__tiles .is-bad { background: var(--err-bg); }
.mo-inv__tiles .is-bad b, .mo-inv__tiles .is-bad span { color: var(--err); }
.mo-inv__sec { padding: 4px 16px 10px; border-top: 1px solid var(--line); }
.mo-inv__sec h4 { display: flex; align-items: center; gap: 7px; margin: 12px 0 4px; font-size: 13.5px; }
.mo-inv__sec > p { margin: 0 0 6px; }
.mo-inv__list { list-style: none; margin: 0; padding: 0; }
.mo-inv__list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.mo-inv__list li:first-child { border-top: 0; }
.mo-inv__list li > div { flex: 1; min-width: 0; display: grid; }
.mo-inv__list li > div strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-inv__list li > b { white-space: nowrap; font-size: 14px; min-width: 84px; text-align: right; }
.mo-inv__list li.is-link { cursor: pointer; border-radius: 8px; transition: background .15s; }
.mo-inv__list li.is-link:hover { background: var(--well); }
.mo-inv__acts { display: inline-flex; gap: 2px; }
.mo-inv__acts .btn { padding: 5px 7px; }
.mo-inv__link { display: inline-flex; gap: 6px; align-items: center; }
.mo-inv__link select { max-width: 190px; }
.mo-inv__hid { margin: 0; padding: 0 16px 10px; }
.mo-inv__none { margin: 0; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.mo-inv__all { border-top: 1px solid var(--line); }
.mo-inv__all summary { padding: 12px 16px; cursor: pointer; font-weight: 700; font-size: 13.5px; }
.mo-inv__all[open] summary { border-bottom: 1px solid var(--line); }
.mo-inv__all a { font-weight: 600; }
.mo-inv--off .mo-inv__off { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.mo-inv--off .mo-inv__off > .icon { color: var(--accent); }
.mo-inv--off h3 { margin: 0 0 2px; font-size: 15px; }
.mo-inv--off p { margin: 0; max-width: 680px; }
.mo-inv--off .btn { margin-left: auto; flex: none; }
.mo-cl__owed { display: flex; align-items: center; gap: 6px; margin: 10px 0 4px; color: var(--err); }
.mo-cl__list a { font-weight: 700; font-size: 13.5px; }
/* The connection window. */
.mo-inv-dlg { width: min(560px, calc(100vw - 32px)); }
.mo-inv-dlg .dialog__box { display: grid; gap: 14px; }
.mo-inv-dlg h2 { display: flex; align-items: center; gap: 10px; margin: 0; }
.mo-inv-dlg p { margin: 0; }
.mo-inv-dlg .sx-field { max-width: none; }
.mo-inv-steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 13.5px; }
.mo-inv-file { position: relative; display: block; }
.mo-inv-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mo-inv-file span { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 18px; border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 12px; background: var(--well); color: var(--ink); }
.mo-inv-file:hover span, .mo-inv-file input:focus-visible + span { border-color: var(--accent); }
.mo-inv-manual summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.mo-inv-manual[open] { display: grid; gap: 10px; }
.mo-inv-dlg [data-inv-off] { margin-right: auto; }
.mo-inv-dlg .dialog__actions { flex-wrap: wrap; }
@media (max-width: 760px) {
    .mo-inv__tiles { grid-template-columns: 1fr 1fr; padding: 12px; }
    .mo-inv__tiles b { font-size: 19px; }
    .mo-inv__list li { flex-wrap: wrap; row-gap: 6px; }
    .mo-inv__list li > div { flex-basis: calc(100% - 100px); }
    .mo-inv__link { width: 100%; } .mo-inv__link select { flex: 1; max-width: none; }
    .mo-inv--off .mo-inv__off { flex-wrap: wrap; } .mo-inv--off .btn { margin-left: 36px; }
}
.mo-inv__older { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--well); }
.mo-inv__older > span { flex: 1; min-width: 0; }
.mo-inv__older .btn { flex: none; }
.mo-inv__morebtn { margin: 4px 0 8px; font-weight: 600; }
@media (max-width: 760px) { .mo-inv__older { flex-wrap: wrap; } }
@media (max-width: 760px) { .mo-inv__list li > b { margin-left: auto; } }
/* Purchases (0.101): the same card, with suppliers to sort. */
.mo-pur__tk { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 600; }
.mo-pur .mo-inv__link { flex-wrap: wrap; justify-content: flex-end; }
.mo-pur__cost { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.mo-pur__sup { padding: 4px 16px 8px; }
.pay__inv { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 11.5px; font-weight: 600; color: var(--accent); }
@media (max-width: 760px) { .mo-pur .mo-inv__link { justify-content: flex-start; } .mo-pur .mo-inv__link select { flex: 1 1 100%; } .mo-pur .mo-inv__link .btn-ghost { margin-left: auto; } }

/* ---------- Money (0.102): five tabs, kinds of cost, the invoicing connection in Integrations ---------- */
.mo-costs .adm-bar .btn + .btn { margin-left: 0; }
.mo-tabs { overflow-x: auto; scrollbar-width: none; }
.mo-tabs::-webkit-scrollbar { display: none; }
.mo-tabs button { flex: none; white-space: nowrap; }
@media (max-width: 760px) { .mo-tabs { margin-left: -16px; margin-right: -16px; padding: 0 12px; gap: 0; } .mo-tabs button { padding: 10px 10px 12px; font-size: 13.5px; gap: 6px; } }
.mo-kinds-dlg { width: min(640px, calc(100vw - 32px)); }
.mo-kinds-dlg .dialog__box { display: grid; gap: 12px; }
.mo-kinds-dlg h2 { display: flex; align-items: center; gap: 10px; margin: 0; }
.mo-kinds-dlg p { margin: 0; }
.mo-kinds__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: min(56vh, 520px); overflow: auto; }
.mo-kinds__row { display: grid; grid-template-columns: minmax(0, 1fr) 170px 74px 34px; gap: 8px; align-items: center; }
.mo-kinds__row input, .mo-kinds__row select { min-width: 0; }
.mo-kinds__n { text-align: right; white-space: nowrap; }
.mo-kinds__keep { display: grid; place-items: center; color: var(--muted); }
.mo-kinds__row.is-removed input { text-decoration: line-through; opacity: .55; }
.mo-kinds__move { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--err-bg); font-size: 13px; }
.mo-kinds__move select { flex: 1; min-width: 0; }
.mo-kinds-dlg .dialog__actions { align-items: center; }
.mo-kinds-dlg [data-kind-reset] { margin-right: auto; font-size: 13px; }
.mo-kinds-dlg [data-kind-add] { justify-self: start; }
@media (max-width: 600px) { .mo-kinds__row { grid-template-columns: minmax(0, 1fr) 34px; } .mo-kinds__row select[name=group] { grid-column: 1; } .mo-kinds__n { grid-column: 2; grid-row: 2; text-align: center; font-size: 11px; } .mo-kinds__row > :nth-child(4) { grid-column: 2; grid-row: 1; } }
.sh-inv-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.adm-plan-sel { padding: 4px 8px; font-size: 13px; }
/* Send feedback (0.104). */
.fb-dlg { width: min(520px, calc(100vw - 32px)); }
.fb-dlg .dialog__box { display: grid; gap: 12px; }
.fb-dlg h2 { display: flex; align-items: center; gap: 10px; margin: 0; }
.fb-dlg p { margin: 0; }
.fb-dlg textarea { width: 100%; resize: vertical; min-height: 130px; }
.fb-list { list-style: none; margin: 0; padding: 0; }
.fb-row { padding: 12px 16px; border-top: 1px solid var(--line); }
.fb-row:first-child { border-top: 0; }
.fb-row.is-done { opacity: .6; }
.fb-row__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fb-row__head .btn { margin-left: auto; }
.fb-row p { margin: 6px 0 0; white-space: normal; overflow-wrap: anywhere; }
/* New agency: email the link (0.105). */
.adm-form label.adm-check { display: flex; align-items: center; gap: 9px; }
.adm-form label.adm-check > span:first-of-type { font-size: 13.5px; font-weight: 500; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.adm-check select { padding: 3px 8px; font-size: 13px; }
/* Two-factor later (0.106). */
.account-2fa__qr { width: 168px; padding: 10px; background: #fff; border-radius: 10px; }
.account-2fa__qr svg { display: block; width: 100%; height: auto; }
.account-2fa__row { display: flex; gap: 8px; max-width: 320px; }
.account-codes { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 18px; font-size: 14px; }
.plan-note__acts { display: inline-flex; gap: 6px; margin-left: auto; flex: none; }
/* A firewall blocking Pitwall (0.106). */
.fw-card { padding: 16px 18px; border-color: color-mix(in srgb, var(--err) 45%, var(--line)); }
.fw-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 0; font-size: 15px; color: var(--err); }
.fw-card p { margin: 0 0 10px; }
.fw-msg { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 0 0 10px; }
.fw-msg__bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--well); flex-wrap: wrap; }
.fw-msg__bar .btn { margin-left: auto; }
.fw-msg pre { margin: 0; padding: 12px 14px; white-space: pre-wrap; font: 13px/1.55 ui-monospace, Menlo, monospace; max-height: 260px; overflow: auto; }

/* ---------- PitwallWP's own mark (0.107): the dark one on light screens, the light one on dark ---------- */
.pw-mark--light { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pw-mark--dark { display: none; } :root:not([data-theme="light"]) .pw-mark--light { display: inline-block; } }
:root[data-theme="dark"] .pw-mark--dark { display: none; } :root[data-theme="dark"] .pw-mark--light { display: inline-block; }
.welcome__icon { background: none; box-shadow: none; width: auto; height: auto; }
.welcome__icon img { width: 64px; height: auto; }
.app-foot__brand { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
.app-foot__brand img { width: 17px; height: auto; }
.app-foot__brand strong { text-transform: none; letter-spacing: .01em; font-size: 13.5px; }
.app-foot__brand:hover strong { color: var(--coral); }
