/* The client area, on top of the website's own stylesheet.
 *
 * Everything reuses the variables the site already defines, so the two stay
 * the same colour without a second palette to keep in step.
 *
 * There are no inline styles anywhere in the templates, and there must not
 * be: the security policy on this site is style-src 'self', which means a
 * style attribute is silently ignored. Forty eight of them were doing
 * nothing at all before this file was written properly.
 */

body.client {
    /* The two colours the site has no word for. */
    --bad: #ff8a78;
    --bad-soft: rgba(255, 107, 87, 0.12);
    --bad-line: rgba(255, 107, 87, 0.45);
    --warn: #ffd27a;

    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
}
body.client.in { display: grid; grid-template-columns: 244px minmax(0, 1fr); }

.c-ico { width: 18px; height: 18px; flex: none; }
.c-logo { display: block; width: 132px; height: 21px; color: var(--text); }

/* ------------------------------------------------------------- side menu */

.c-side {
    position: sticky; top: 0; align-self: start;
    height: 100vh; overflow-y: auto; box-sizing: border-box;
    display: flex; flex-direction: column;
    padding: 22px 14px 16px;
    border-right: 1px solid var(--line);
    background: var(--bg2);
}
.c-side .c-brand { padding: 2px 10px; margin: 0 0 22px; }

.c-side-new {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; margin: 0 2px 8px; border-radius: 11px;
    background: var(--accent); color: var(--on-accent);
    font-size: 14px; font-weight: 700; text-decoration: none;
    transition: background 0.14s, transform 0.12s;
}
.c-side-new:hover { background: var(--accent-hover, var(--accent)); transform: translateY(-1px); }
.c-side-new .c-ico { width: 17px; height: 17px; }

.c-side-head { margin: 22px 10px 7px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text3); font-weight: 700; }
.c-side-nav { display: flex; flex-direction: column; gap: 2px; }
.c-side-nav a {
    position: relative; display: flex; align-items: center; gap: 11px;
    padding: 9px 10px; border-radius: 10px;
    font-size: 14.5px; font-weight: 600; color: var(--text2);
    text-decoration: none; transition: background 0.14s, color 0.14s;
}
.c-side-nav a:hover { background: var(--hover); color: var(--text); }
.c-side-nav a.on { background: var(--surface); color: var(--text); }
.c-side-nav a.on::before {
    content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px;
    width: 3px; border-radius: 0 3px 3px 0; background: var(--accent);
}
.c-side-nav a.on .c-ico { color: var(--accent); }

.c-side-foot {
    display: flex; align-items: center; gap: 10px;
    margin-top: auto; padding: 14px 6px 0; border-top: 1px solid var(--line);
}
.c-side-foot form { margin: 0 0 0 auto; }
.c-avatar {
    width: 32px; height: 32px; flex: none; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent-text);
    font-size: 13px; font-weight: 800;
}
.c-who { min-width: 0; font-size: 12.5px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-out {
    display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
    border: 1px solid transparent; border-radius: 9px; background: none;
    color: var(--text2); cursor: pointer; transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.c-out:hover { background: var(--surface); border-color: var(--line); color: var(--text); }

.c-body { display: flex; flex-direction: column; min-width: 0; }
.c-body .c-wrap { width: min(1220px, 92%); }

/* ----------------------------------------------------------------- shell */

.c-wrap { width: min(1140px, 94vw); margin: 0 auto; }
.c-narrow { width: min(560px, 92vw); }

.c-top { border-bottom: 1px solid var(--line); background: var(--bg2); }
.c-top .c-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.c-brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; }

.c-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.c-nav a {
    text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--text2);
    padding: 7px 12px; border-radius: 9px; transition: background 0.15s, color 0.15s;
}
.c-nav a:hover { color: var(--text); background: var(--surface); }
.c-nav a.c-btn { color: var(--on-accent); }
.c-nav a.c-btn:hover { background: var(--accent-hover, var(--accent)); }

.c-main { flex: 1; padding: 34px 0 64px; }
.c-main > .c-wrap > h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -0.02em; }
.c-main h2 { font-size: 19px; margin: 34px 0 14px; letter-spacing: -0.01em; }
.c-main h2:first-of-type { margin-top: 0; }
.c-lede { color: var(--text2); margin: 0 0 26px; font-size: 15.5px; }

/* A page title with its main button beside it. */
.c-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 0 0 26px; }
.c-head h1 { font-size: 28px; margin: 0 0 5px; letter-spacing: -0.02em; }
.c-head .c-lede { margin: 0; }

.c-foot { border-top: 1px solid var(--line); padding: 22px 0 32px; font-size: 13px; color: var(--text3); }
.c-foot p { margin: 0 0 7px; }
.c-foot a { color: var(--text2); margin-right: 16px; }

/* ---------------------------------------------------------------- pieces */

.c-btn, a.c-btn, button.c-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 42px; padding: 0 18px; border-radius: 11px;
    background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
    font: inherit; font-size: 14.5px; font-weight: 650; text-decoration: none;
    cursor: pointer; white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.c-btn:hover { background: var(--accent-hover, var(--accent)); transform: translateY(-1px); }
.c-btn .c-ico { width: 17px; height: 17px; }
.c-btn.ghost { background: transparent; border-color: var(--line2); color: var(--text); }
.c-btn.ghost:hover { background: var(--surface); }
.c-btn.sm { height: 34px; padding: 0 13px; font-size: 13.5px; border-radius: 9px; }
.c-btn[disabled] { opacity: 0.45; cursor: default; transform: none; }

.c-link { background: none; border: 0; padding: 0; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--text2); cursor: pointer; }
.c-link:hover { color: var(--text); }

.c-note { padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); margin: 0 0 18px; font-size: 14.5px; }
.c-note.c-ok   { border-color: var(--ok-line); background: var(--ok-wash); }
.c-note.c-bad  { border-color: var(--bad-line); background: var(--bad-soft); }
.c-note.c-warn { border-color: var(--warn-line); background: var(--warn-soft); }

/* The one thing on a page that needs doing, with the button to do it. */
.c-alert {
    display: flex; align-items: center; gap: 14px;
    padding: 13px 14px 13px 16px; margin: 0 0 22px;
    border: 1px solid var(--accent-line); border-radius: 14px;
    background: var(--accent-wash);
}
.c-alert > .c-ico { width: 20px; height: 20px; color: var(--accent); }
.c-alert p { margin: 0; flex: 1; font-size: 14.5px; color: var(--text2); }
.c-alert p b { color: var(--text); font-weight: 700; margin-right: 4px; }

.c-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin: 0 0 16px; }
.c-card > :first-child { margin-top: 0; }
.c-card > :last-child { margin-bottom: 0; }
.c-main .c-card h2 { margin: 0 0 14px; font-size: 17px; }
.c-card h3 { margin: 0 0 4px; font-size: 16.5px; }

.c-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }

/* ------------------------------------------------------- numbers at a glance */

.c-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 22px; }
.c-stat {
    display: flex; flex-direction: column; gap: 2px; min-width: 0;
    padding: 17px 18px 16px; border: 1px solid var(--line); border-radius: 16px;
    background: var(--surface); color: inherit; text-decoration: none;
    transition: border-color 0.14s, transform 0.12s;
}
a.c-stat:hover { border-color: var(--line2); transform: translateY(-1px); }
.c-stat-ico {
    width: 36px; height: 36px; margin: 0 0 14px; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--surface2); color: var(--text2);
}
.c-stat-ico .c-ico { width: 18px; height: 18px; }
.c-stat em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--text2); }
.c-stat b { font-size: 25px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-stat b small { margin-left: 5px; font-size: 12.5px; font-weight: 650; letter-spacing: 0; color: var(--text2); }
.c-stat > small { font-size: 12.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-stat.ok .c-stat-ico { background: var(--ok-soft); color: var(--ok); }
.c-stat.warn { border-color: var(--accent-line); background: linear-gradient(160deg, var(--accent-soft), transparent 62%), var(--surface); }
.c-stat.warn .c-stat-ico { background: var(--accent-soft); color: var(--accent); }

/* The older, plainer tiles, still used on the service page. */
.c-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 22px; }
.c-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.c-tile em { font-style: normal; display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text2); margin: 0 0 7px; }
.c-tile b { display: block; font-size: 25px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.c-tile small { display: block; margin-top: 5px; font-size: 12.5px; color: var(--text2); }
.c-tile.warn { border-color: var(--accent-line); }

/* ---------------------------------------------------------- panels and rows */

.c-dash { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.c-dash > div { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* Written with .c-main in front on purpose: the website styles every
   section inside main as a tall page band with its own background, and
   this has to win over that. */
.c-main .c-panel { padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 0 0 16px; }
.c-main .c-dash .c-panel { margin: 0; }
.c-panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.c-main .c-panel-head h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 0; }
.c-panel-head a { font-size: 13px; font-weight: 600; color: var(--text2); text-decoration: none; }
.c-panel-head a:hover { color: var(--accent-text); }
.c-panel-body { padding: 18px; }
.c-panel-empty { margin: 0; padding: 26px 18px; text-align: center; font-size: 14px; color: var(--text2); }
.c-panel-intro { margin: 0; padding: 16px 18px 0; font-size: 14px; color: var(--text2); }
.c-panel-foot { margin: 0; padding: 12px 18px 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text3); }

/* A row that opens something. The whole row is the link. */
.c-item {
    display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto 14px;
    align-items: center; gap: 14px;
    padding: 12px 18px; border-bottom: 1px solid var(--line);
    color: inherit; text-decoration: none; transition: background 0.14s;
}
.c-item:last-child { border-bottom: 0; }
a.c-item:hover { background: var(--hover); }
a.c-item:hover .c-item-go { color: var(--accent); transform: translateX(2px); }
.c-item-ico {
    width: 38px; height: 38px; border-radius: 11px;
    display: grid; place-items: center;
    background: var(--surface2); color: var(--text2);
}
.c-item-ico.on { background: var(--accent-soft); color: var(--accent); }
.c-item-ico .c-ico { width: 18px; height: 18px; }
.c-item-main { min-width: 0; }
.c-item-main b { display: block; font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-item-main small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-item-main small.c-mono { font-size: 12px; letter-spacing: 0.01em; }
.c-item-host { margin-left: 7px; font-style: normal; font-size: 13px; font-weight: 500; color: var(--text2); }
.c-item-meta { font-size: 12.5px; color: var(--text3); white-space: nowrap; text-align: right; }
.c-item-sum { font-size: 14px; font-weight: 700; white-space: nowrap; text-align: right; }
.c-item-sum small { font-size: 11.5px; font-weight: 600; color: var(--text3); }
.c-item .c-item-go { width: 14px; height: 14px; color: var(--text3); transition: color 0.14s, transform 0.14s; }
.c-item.compact { grid-template-columns: minmax(0, 1fr) auto auto; padding: 12px 18px; }

/* Where to start, on an account with nothing in it yet. */
.c-start { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 18px 18px; }
.c-start a {
    display: flex; flex-direction: column; gap: 3px; padding: 16px;
    border: 1px solid var(--line); border-radius: 14px; background: var(--bg2);
    color: inherit; text-decoration: none; transition: border-color 0.14s, transform 0.12s;
}
.c-start a:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.c-start .c-item-ico { margin: 0 0 10px; }
.c-start b { font-size: 15px; }
.c-start small { font-size: 12.5px; color: var(--text2); }
.c-start .from { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--accent-text); }

.c-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.c-quick a {
    display: flex; align-items: center; gap: 10px; padding: 12px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--bg2);
    color: inherit; text-decoration: none; font-size: 13.5px; font-weight: 650;
    transition: border-color 0.14s, background 0.14s;
}
.c-quick a:hover { border-color: var(--accent-line); background: var(--accent-wash); }
.c-quick .c-ico { color: var(--accent); }

.c-facts { padding: 6px 18px; }
.c-facts p { display: flex; justify-content: space-between; gap: 14px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.c-facts p:last-child { border-bottom: 0; }
.c-facts span { color: var(--text2); flex: none; }
.c-facts b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }

/* ---------------------------------------------------------------- tables */

table.c-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.c-table th, .c-table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.c-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); font-weight: 700; }
.c-table tr:last-child td { border-bottom: 0; }
.c-table td small { display: block; color: var(--text2); font-size: 12.5px; margin-top: 2px; }

/* Status, as a coloured pill with a dot. */
.c-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px 3px 8px; border-radius: 999px;
    border: 1px solid var(--line2); background: var(--surface2); color: var(--text2);
    font-size: 12px; font-weight: 650; line-height: 1.5; white-space: nowrap;
}
.c-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.c-tag.paid, .c-tag.active, .c-tag.answered, .c-tag.running { border-color: var(--ok-line); background: var(--ok-soft); color: var(--ok); }
.c-tag.unpaid, .c-tag.pending, .c-tag.building, .c-tag.setup, .c-tag.rebuild, .c-tag.open, .c-tag.suspended { border-color: var(--warn-line); background: var(--warn-soft); color: var(--warn); }
.c-tag.failed { border-color: var(--bad-line); background: var(--bad-soft); color: var(--bad); }
.c-tag.cancelled, .c-tag.closed, .c-tag.deleted, .c-tag.stopped { color: var(--text3); }

/* ----------------------------------------------------------------- forms */

.c-form { max-width: 440px; }
.c-form.wide { max-width: 660px; }
.c-form label { display: block; margin: 0 0 6px; font-size: 13.5px; font-weight: 650; }
.c-form input[type=email], .c-form input[type=password], .c-form input[type=text],
.c-form textarea, .c-form select {
    width: 100%; box-sizing: border-box; padding: 11px 13px; margin: 0 0 16px;
    background: var(--bg2); color: inherit;
    border: 1px solid var(--line); border-radius: 11px; font: inherit; font-size: 14.5px;
}
.c-form input:focus, .c-form textarea:focus, .c-form select:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.c-form textarea { resize: vertical; min-height: 120px; }
.c-form .hint { font-size: 12.5px; color: var(--text2); margin: -10px 0 16px; }
.c-form .hint.tight { margin: -10px 0 14px; }

/* Monthly or yearly, as two pills. Radios, so it works without JavaScript. */
.c-cycle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 16px; }
.c-cycle label { display: block; cursor: pointer; }
.c-cycle input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.c-cycle span {
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    padding: 9px 6px 10px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--bg2);
    transition: border-color 0.15s, background 0.15s;
}
.c-cycle em { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text2); }
.c-cycle b { font-size: 15px; font-weight: 700; }
.c-cycle i { font-style: normal; font-size: 11px; color: var(--text2); }
.c-cycle input:checked + span { border-color: var(--accent); }
.c-cycle input:checked + span em, .c-cycle input:checked + span i { color: var(--accent-text); }
.c-cycle input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ----------------------------------------------------------- the payment */

.c-field { margin: 0 0 18px; }
.c-field > span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text2); margin: 0 0 6px; }
.c-amount { font: 800 26px/1.2 var(--mono); word-break: break-all; margin: 0; letter-spacing: -0.01em; }
.c-address { font: 600 14.5px/1.55 var(--mono); word-break: break-all; background: var(--bg2); border: 1px solid var(--line); border-radius: 11px; padding: 13px; margin: 0; }
.c-warnbox { border: 1px solid var(--bad-line); background: var(--bad-soft); border-radius: 13px; padding: 15px; margin: 0 0 18px; font-size: 14.5px; }
.c-warnbox p { margin: 7px 0 0; }

/* ----------------------------------------------------------- the catalog */

/* Tabs per product and one switch for the billing period. Both are plain
   links, so the whole thing works with JavaScript switched off. */
/* The chosen one is lifted rather than painted orange: a lighter surface,
   white text and an orange icon. Solid orange is kept for the buttons that
   actually order something, so the eye goes there and not to a filter. */
.c-tabs {
    display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 14px; padding: 5px;
    background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
}
.c-tabs a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 15px; border: 1px solid transparent; border-radius: 10px;
    font-size: 14px; font-weight: 650; color: var(--text2); text-decoration: none;
    transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.c-tabs a .c-ico { width: 16px; height: 16px; color: var(--text3); transition: color 0.14s; }
.c-tabs a:hover { color: var(--text); background: var(--hover); }
.c-tabs a.on {
    background: var(--surface2); border-color: var(--line2); color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 14px -8px rgba(20, 14, 10, 0.7);
}
.c-tabs a.on .c-ico { color: var(--accent); }

.c-switch {
    display: inline-flex; gap: 3px; padding: 4px; margin: 0 0 26px;
    background: var(--bg2); border: 1px solid var(--line); border-radius: 999px;
}
.c-switch a {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 17px; border: 1px solid transparent; border-radius: 999px;
    font-size: 14px; font-weight: 650; color: var(--text2); text-decoration: none;
    transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.c-switch a:hover { color: var(--text); }
.c-switch a.on {
    background: var(--surface2); border-color: var(--line2); color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 14px -8px rgba(20, 14, 10, 0.7);
}
/* How long to pay for: one menu rather than seven buttons, so it stays a
   single line on a phone. The browser's own arrow is swapped for ours. */
.c-period { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin: 0 0 26px; }
.c-period-label { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 650; color: var(--text2); }
.c-period-label .c-ico { width: 16px; height: 16px; color: var(--text3); }
.c-select { position: relative; display: inline-flex; min-width: 240px; }
.c-select select {
    appearance: none; -webkit-appearance: none; width: 100%; height: 42px; padding: 0 40px 0 14px;
    border: 1px solid var(--line2); border-radius: 11px; background: var(--surface2); color: var(--text);
    font: inherit; font-size: 14.5px; font-weight: 650; cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.c-select select:hover { border-color: var(--line3); }
.c-select select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.c-select .c-ico { position: absolute; right: 13px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%) rotate(90deg); color: var(--accent); pointer-events: none; }
.js .c-nojs { display: none; }
.c-plan-label { display: block; margin: 0 0 6px; font-size: 12px; font-weight: 650; color: var(--text2); }
.c-select.c-plan-select { display: flex; min-width: 0; margin: 0 0 10px; }
.c-plan-select select { height: 38px; font-size: 13.5px; background: var(--bg2); }

/* The saving, in green, the colour this site uses for good news. */
.c-switch i {
    font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0.01em;
    padding: 2px 8px; border: 1px solid var(--ok-line); border-radius: 999px;
    background: var(--ok-soft); color: var(--ok);
}

.c-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 16px; }
.c-plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.c-plan.picked, .c-plan.featured { border-color: var(--accent); }
.c-flag { position: absolute; top: -10px; right: 16px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.c-plan h3 { margin: 0 0 4px; font-size: 17px; }
.c-plan .who { color: var(--text2); font-size: 13.5px; margin: 0 0 13px; }
.c-plan .price { font-size: 27px; font-weight: 800; margin: 0 0 2px; letter-spacing: -0.02em; }
.c-plan .price span { font-size: 13px; font-weight: 500; color: var(--text2); }
.c-plan .per { margin: 0 0 14px; font-size: 12.5px; color: var(--text2); }
.c-plan input[type=text] {
    width: 100%; box-sizing: border-box; padding: 9px 12px; margin: 0 0 10px;
    background: var(--bg2); color: inherit;
    border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 13.5px;
}
.c-plan ul { list-style: none; padding: 0; margin: 0 0 16px; font-size: 13.5px; }
.c-plan li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.c-plan li:last-child { border-bottom: 0; }
.c-plan li span:first-child { color: var(--text2); }
.c-plan form { margin: 0; }
.c-plan .c-btn { width: 100%; }

/* Tiles that open a tool in the hosting panel. */
.c-tool { display: flex; flex-direction: column; gap: 3px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; color: inherit; transition: border-color 0.14s, transform 0.12s; }
.c-tool:hover { border-color: var(--accent); transform: translateY(-1px); }
.c-tool .c-ico { width: 20px; height: 20px; color: var(--accent); margin: 0 0 6px; }
.c-tool b { font-size: 14.5px; }
.c-tool small { font-size: 12.5px; color: var(--text2); }

/* ---------------------------------------------------------- the services */

.c-svc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin: 0 0 16px; }
.c-svc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 16px; }
.c-svc-top h2 { margin: 0 0 3px; font-size: 18px; }
.c-svc-plan { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text2); margin: 0 0 5px; }
.c-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.c-acts form { display: inline; margin: 0; }
.c-svc-note { margin: 14px 0 0; font-size: 13px; color: var(--text2); }

/* -------------------------------------------------------------- messages */

.c-msg { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 0 0 14px; }
.c-msg.staff { border-left: 3px solid var(--accent); }
.c-msg-who { margin: 0 0 9px; font-size: 12.5px; color: var(--text2); }
.c-msg-who b { color: var(--text); }
.c-msg-body { white-space: pre-wrap; word-break: break-word; font-size: 14.5px; }

/* ------------------------------------------------------- choosing a coin */

.c-coins { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.c-coins label { display: block; cursor: pointer; }
.c-coins input { position: absolute; opacity: 0; width: 0; height: 0; }
.c-coins span {
    display: block; padding: 15px 17px; border: 1px solid var(--line);
    border-radius: 13px; background: var(--surface); transition: border-color 0.12s, background 0.12s;
}
.c-coins span:hover { border-color: var(--line2); }
.c-coins b { display: block; font-size: 15px; letter-spacing: 0.01em; }
.c-coins small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text2); line-height: 1.45; }
.c-coins input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.c-coins input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------- the small */

.c-empty { color: var(--text2); font-size: 14.5px; }
.c-after { margin-top: 24px; }
.c-under { margin: 16px 0 0; }
.c-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.c-inline { display: inline; margin: 0; }
.c-mono { font-family: var(--mono); }

/* ------------------------------------------------------- one service */

.c-crumbs { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; font-size: 13px; color: var(--text3); }
.c-crumbs a { color: var(--text2); text-decoration: none; }
.c-crumbs a:hover { color: var(--text); }
.c-crumbs .c-ico { width: 13px; height: 13px; }

.c-main .c-hero { margin: 0 0 18px; }
.c-hero-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 22px; }
.c-item-ico.lg { width: 50px; height: 50px; border-radius: 14px; }
.c-item-ico.lg .c-ico { width: 23px; height: 23px; }
.c-hero-name { flex: 1; min-width: 0; }
.c-main .c-hero-name h1 { margin: 0 0 3px; font-size: 24px; letter-spacing: -0.02em; }
.c-hero-name p { margin: 0; font-size: 13.5px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-hero-state { display: flex; gap: 8px; flex-wrap: wrap; }
.c-hero-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.c-hero-facts p { margin: 0; min-width: 0; padding: 14px 22px; border-right: 1px solid var(--line); }
.c-hero-facts p:last-child { border-right: 0; }
.c-hero-facts span { display: block; margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text3); }
.c-hero-facts b { display: block; font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Login details: a label and a value, the value in a code box. */
.c-creds { padding: 4px 18px; }
.c-cred { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.c-cred:last-child { border-bottom: 0; }
.c-cred > span { font-size: 13px; color: var(--text2); }
.c-cred code {
    justify-self: start; max-width: 100%; box-sizing: border-box;
    padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2);
    font-family: var(--mono); font-size: 13px; word-break: break-all;
}
.c-cred details { min-width: 0; }
.c-cred summary {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer; list-style: none;
    padding: 6px 11px; border: 1px dashed var(--line2); border-radius: 8px;
    font-size: 13px; font-weight: 650; color: var(--accent-text);
}
.c-cred summary::-webkit-details-marker { display: none; }
.c-cred summary .c-ico { width: 15px; height: 15px; }
.c-cred details[open] summary { margin: 0 0 8px; border-style: solid; color: var(--text2); }
.c-cred details code { display: inline-block; }

.c-panel-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 16px; }
.c-panel-acts form { margin: 0; }
.c-panel-body > :first-child { margin-top: 0; }
.c-panel-body > :last-child { margin-bottom: 0; }
.c-panel-body + .c-panel-acts { padding-top: 0; }

.c-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.c-tools .c-tool { background: var(--bg2); }

.c-dns td code { font-family: var(--mono); font-size: 13px; }

/* ------------------------------------------------------------- funds */

.c-balance-top { display: flex; align-items: center; gap: 16px; padding: 22px; }
.c-balance-label { margin: 0 0 2px; font-size: 13px; font-weight: 650; color: var(--text2); }
.c-balance-sum { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }

/* The amounts offered as one click, radios drawn as pills. */
.c-amounts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }
.c-amounts label { display: block; cursor: pointer; }
.c-amounts input { position: absolute; opacity: 0; width: 0; height: 0; }
.c-amounts span {
    display: block; padding: 12px 6px; text-align: center;
    border: 1px solid var(--line); border-radius: 12px; background: var(--bg2);
    font-size: 15px; font-weight: 750; transition: border-color 0.14s, background 0.14s;
}
.c-amounts span:hover { border-color: var(--line2); }
.c-amounts input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.c-amounts input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.c-amount-other { max-width: 340px; }

/* "Pay from your balance": one row with what it is and the button. */
.c-main .c-paybal {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px;
    border-color: var(--ok-line); background: linear-gradient(160deg, var(--ok-wash), transparent 70%), var(--surface);
}
.c-paybal .c-item-ico.on { background: var(--ok-soft); color: var(--ok); }
.c-paybal-text { flex: 1; min-width: 200px; }
.c-paybal-text b { display: block; font-size: 15px; }
.c-paybal-text small { display: block; margin-top: 2px; font-size: 13px; color: var(--text2); }
.c-paybal form { margin: 0; }

.c-or { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); }
.c-or::before, .c-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.c-item-sum.c-in { color: var(--ok); }
.c-ledger .c-item-meta { min-width: 84px; }
.c-toggle-state { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-weight: 650; }

/* ------------------------------------------------------------- checkout */

/* Each coin in its own colour, as on the website. Classes rather than a
   style attribute, which the security policy would silently drop. */
.c-coin { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.c-coin svg { width: 20px; height: 20px; }
.c-coin.lg { width: 48px; height: 48px; }
.c-coin.lg svg { width: 26px; height: 26px; }
.c-coin-btc { background: #F7931A; }
.c-coin-ltc { background: #345D9D; }
.c-coin-eth { background: #627EEA; }
.c-coin-usdt { background: #26A17B; }
.c-coin-usdc { background: #2775CA; }
.c-coin-sol { background: #9945FF; }
.c-coin-xrp { background: #f3efe9; }

/* Where in the payment the customer is. */
.c-steps { display: flex; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; counter-reset: none; }
.c-steps li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 13.5px; font-weight: 650; color: var(--text3); }
.c-steps b { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--surface2); color: var(--text2); font-size: 12px; }
.c-steps li.on { border-color: var(--accent-line); color: var(--text); background: linear-gradient(160deg, var(--accent-wash), transparent 70%), var(--surface); }
.c-steps li.on b { background: var(--accent); color: var(--on-accent); }
.c-steps li.done { color: var(--text2); }
.c-steps li.done b { background: var(--ok-soft); color: var(--ok); }

/* Choosing a coin: a card per coin with its mark. */
.c-coinpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.c-coinpick label { display: block; cursor: pointer; }
.c-coinpick input { position: absolute; opacity: 0; width: 0; height: 0; }
.c-coinpick label > span {
    display: flex; align-items: center; gap: 12px; padding: 13px 14px;
    border: 1px solid var(--line); border-radius: 13px; background: var(--bg2);
    transition: border-color 0.14s, background 0.14s, transform 0.12s;
}
.c-coinpick label > span:hover { border-color: var(--line2); transform: translateY(-1px); }
.c-coinpick input:checked + span { border-color: var(--accent); background: linear-gradient(160deg, var(--accent-soft), transparent 75%), var(--bg2); }
.c-coinpick input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.c-coinpick-text b { display: block; font-size: 14.5px; }
.c-coinpick-text b i { font-style: normal; font-weight: 600; font-size: 12px; color: var(--text3); margin-left: 4px; }
.c-coinpick-text small { display: block; margin-top: 1px; font-size: 12px; color: var(--text2); }
.c-coinpick + .c-btn .c-ico { width: 15px; height: 15px; }

.c-panel-note { font-size: 12.5px; color: var(--text3); }
.c-facts p.c-facts-total { padding-top: 13px; }
.c-facts p.c-facts-total b { font-size: 18px; font-weight: 800; }
.c-howto { margin: 0; padding: 14px 18px 16px 36px; display: grid; gap: 10px; font-size: 13.5px; color: var(--text2); line-height: 1.5; }
.c-howto b { color: var(--text); }

/* The payment itself: details on the left, the code on the right. */
.c-pay { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr); gap: 18px; align-items: start; margin: 0 0 18px; }
.c-main .c-pay .c-panel { margin: 0; }
.c-pay-coin { display: flex; align-items: center; gap: 11px; }
.c-pay-coin b { display: block; font-size: 15px; }
.c-pay-coin small { display: block; font-size: 12px; color: var(--text2); }
.c-timer { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; font-weight: 650; color: var(--text2); white-space: nowrap; }
.c-timer .c-ico { width: 14px; height: 14px; color: var(--accent); }

.c-paydetails { display: grid; gap: 18px; }
.c-copyfield > span { display: block; margin: 0 0 7px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text3); }
.c-copyfield > div { display: flex; align-items: stretch; gap: 8px; }
.c-copyfield code {
    flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px;
    background: var(--bg2); font: 600 14px/1.5 var(--mono); word-break: break-all; color: var(--text);
}
.c-copyfield code.c-big { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.c-copyfield > small { display: block; margin-top: 7px; font-size: 12.5px; color: var(--text2); }
.c-copyfield.c-must code { border-color: var(--bad-line); background: var(--bad-soft); }
.c-copyfield.c-must > span { color: var(--bad); }
.c-copy {
    display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 0 13px;
    border: 1px solid var(--line2); border-radius: 11px; background: var(--surface2); color: var(--text);
    font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; transition: border-color 0.14s, background 0.14s;
}
.c-copy:hover { border-color: var(--line3); }
.c-copy .c-ico { width: 15px; height: 15px; }
.c-copy.done { border-color: var(--ok-line); background: var(--ok-soft); color: var(--ok); }
.c-jsonly { display: none; }
.c-offscreen { position: fixed; top: 0; left: -9999px; opacity: 0; }
.js .c-jsonly { display: inline-flex; }

.c-main .c-qrbox { padding: 18px; text-align: center; }
.c-qrframe { display: grid; place-items: center; padding: 18px 0 6px; }
.c-qr { display: block; width: 100%; height: auto; max-width: 236px; margin: 0 auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--line2), 0 18px 40px -22px rgba(10, 8, 6, 0.9); }
.c-qrbox p { margin: 14px 4px 2px; font-size: 13px; color: var(--text2); line-height: 1.5; }
.c-qrbox p b { display: block; margin-bottom: 2px; color: var(--text); font-size: 14px; }

/* What the network says, at the top of the page. */
.c-status { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 14px; }
.c-status-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); animation: c-pulse 1.6s ease-in-out infinite; }
.c-status-pending_confirmation, .c-status-paid { border-color: var(--ok-line); }
.c-status-pending_confirmation .c-status-dot, .c-status-paid .c-status-dot { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.c-status-underpaid { border-color: var(--bad-line); }
.c-status-underpaid .c-status-dot { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); animation: none; }
@keyframes c-pulse { 50% { opacity: 0.35; } }

/* A payment seen on the network, waiting for its confirmation. */
.c-main .c-detected { padding: 34px 26px 28px; text-align: center; border-color: var(--ok-line); background: linear-gradient(180deg, var(--ok-wash), transparent 60%), var(--surface); }
.c-loader { position: relative; display: block; width: 64px; height: 64px; margin: 0 auto 16px; }
.c-loader::before, .c-loader::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.c-loader::before { border: 4px solid var(--ok-soft); }
.c-loader::after { border: 4px solid transparent; border-top-color: var(--ok); border-right-color: var(--ok); animation: c-spin 1s linear infinite; }
.c-loader i { position: absolute; inset: 21px; border-radius: 50%; background: var(--ok); animation: c-pulse 1.6s ease-in-out infinite; }
.c-main .c-detected h2 { margin: 0 0 8px; font-size: 22px; }
.c-detected p { max-width: 520px; margin: 0 auto 10px; color: var(--text2); line-height: 1.6; }
.c-detected p b { color: var(--text); }
.c-detected .c-bar { position: relative; height: 4px; max-width: 320px; margin: 18px auto 16px; border-radius: 99px; background: var(--line); overflow: hidden; }
.c-detected .c-bar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 38%; border-radius: inherit; background: var(--ok); animation: c-slide 1.6s ease-in-out infinite; }
@keyframes c-spin { to { transform: rotate(360deg); } }
@keyframes c-slide { 0% { left: -38%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .c-loader::after, .c-loader i, .c-detected .c-bar::after { animation: none; } }
@media (prefers-reduced-motion: reduce) { .c-status-dot { animation: none; } }

.c-main .c-receipt { padding: 34px 22px 28px; text-align: center; }
.c-receipt-mark { display: inline-grid; place-items: center; width: 64px; height: 64px; margin: 0 0 14px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); box-shadow: 0 0 0 8px var(--ok-wash); }
.c-receipt-mark .c-ico { width: 30px; height: 30px; }
.c-main .c-receipt h2 { margin: 0 0 6px; font-size: 22px; }
.c-receipt p { margin: 0 0 6px; color: var(--text2); }
.c-receipt-tx { font-size: 13px; }
.c-receipt-tx a { color: var(--accent-text); font-family: var(--mono); }
.c-receipt .c-row { margin-top: 20px; }
.c-center { justify-content: center; }
.c-expired .c-receipt-mark { background: var(--warn-soft); color: var(--warn); box-shadow: 0 0 0 8px var(--warn-soft); }

.c-main details.c-txhelp { padding: 0; }
.c-txhelp summary { display: flex; align-items: center; gap: 9px; padding: 14px 18px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 650; }
.c-txhelp summary::-webkit-details-marker { display: none; }
.c-txhelp summary .c-ico { color: var(--text3); }
.c-txhelp form { padding: 0 18px 18px; }
.c-txhelp .c-empty { margin: 0 0 14px; font-size: 13.5px; }

/* Three steps across, used where an account has nothing in it yet. */
.c-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 16px 18px 18px; list-style: none; }
.c-flow li { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px dashed var(--line2); border-radius: 14px; }
.c-flow .c-item-ico { margin: 0 0 8px; }
.c-flow b { font-size: 14.5px; }
.c-flow small { font-size: 12.5px; color: var(--text2); line-height: 1.5; }

/* The invoices page: three numbers, a filter, and one row per invoice. */
.c-stats.c-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c-tabs.c-tabs-sm { display: inline-flex; margin: 0 0 14px; }
.c-tabs a i { margin-left: 7px; padding: 1px 7px; border-radius: 999px; background: var(--surface2); font-style: normal; font-size: 11px; font-weight: 700; color: var(--text2); }
.c-tabs a.on i { background: var(--bg2); color: var(--text); }
.c-invoice .c-coin { width: 38px; height: 38px; }
.c-invoice .c-coin svg { width: 20px; height: 20px; }
.c-invoice.due { background: linear-gradient(90deg, var(--accent-wash), transparent 40%); }

/* ------------------------------------------------- service dashboards */

/* Three small charts across: CPU, memory, network. */
.c-graphs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 18px 18px; }
.c-graph { padding: 14px 14px 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--bg2); }
.c-graph p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 8px; }
.c-graph span { width: 100%; font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text3); }
.c-graph b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.c-graph small { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text3); }
.c-spark { display: block; width: 100%; height: 64px; overflow: visible; }
.c-spark-area { fill: var(--accent-soft); stroke: none; }
.c-spark-line { fill: none; stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.c-spark-0 { stroke: var(--accent); }
.c-spark-1 { stroke: var(--ok); }
.c-key-in, .c-key-out { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.c-key-in { background: var(--accent); }
.c-key-out { background: var(--ok); margin-left: 4px; }

/* Used against the limit, as a bar. Widths in steps of five, as classes,
   because a style attribute would be dropped by the security policy. */
.c-meters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; padding: 16px 18px 18px; }
.c-meter { padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--bg2); }
.c-meter p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; margin: 0 0 10px; }
.c-meter span { width: 100%; font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text3); }
.c-meter b { font-size: 18px; font-weight: 800; }
.c-meter small { font-size: 12px; color: var(--text3); }
.c-meter i { display: block; height: 6px; border-radius: 999px; background: var(--surface2); overflow: hidden; }
.c-meter s { display: block; height: 100%; border-radius: 999px; background: var(--accent); text-decoration: none; }
.c-meter.full s { background: var(--bad); }
.c-meter-0 { width: 0%; }
.c-meter-5 { width: 5%; }
.c-meter-10 { width: 10%; }
.c-meter-15 { width: 15%; }
.c-meter-20 { width: 20%; }
.c-meter-25 { width: 25%; }
.c-meter-30 { width: 30%; }
.c-meter-35 { width: 35%; }
.c-meter-40 { width: 40%; }
.c-meter-45 { width: 45%; }
.c-meter-50 { width: 50%; }
.c-meter-55 { width: 55%; }
.c-meter-60 { width: 60%; }
.c-meter-65 { width: 65%; }
.c-meter-70 { width: 70%; }
.c-meter-75 { width: 75%; }
.c-meter-80 { width: 80%; }
.c-meter-85 { width: 85%; }
.c-meter-90 { width: 90%; }
.c-meter-95 { width: 95%; }
.c-meter-100 { width: 100%; }

.c-site .c-btn { flex: none; }
.c-item.c-site { grid-template-columns: 38px minmax(0, 1fr) auto auto; }

/* Picking the system for a rebuild. */
.c-oslist { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 0 0 16px; }
.c-oslist label { display: block; cursor: pointer; }
.c-oslist input { position: absolute; opacity: 0; width: 0; height: 0; }
.c-oslist label > span { display: flex; align-items: center; gap: 9px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); transition: border-color 0.14s; }
.c-oslist label > span .c-ico { color: var(--text3); }
.c-oslist b { font-size: 14px; }
.c-oslist small { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--ok); }
.c-oslist input:checked + span { border-color: var(--accent); background: linear-gradient(160deg, var(--accent-soft), transparent 75%), var(--bg2); }
.c-oslist input:checked + span .c-ico { color: var(--accent); }
.c-oslist input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.c-confirm { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; font-size: 13.5px; color: var(--text2); cursor: pointer; }
.c-confirm input { margin-top: 3px; accent-color: var(--accent); }

/* Keys on the account page. */
.c-item.c-keyrow { grid-template-columns: 38px minmax(0, 1fr) auto auto; }
.c-main details.c-addkey { border-top: 1px solid var(--line); }
.c-addkey summary { display: flex; align-items: center; gap: 8px; padding: 14px 18px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 650; color: var(--accent-text); }
.c-addkey summary::-webkit-details-marker { display: none; }
.c-addkey form { padding: 0 18px 18px; }
.c-addkey textarea { font-family: var(--mono); font-size: 12.5px; }

/* Domain search. */
.c-domainsearch { display: flex; gap: 10px; align-items: stretch; }
.c-domainsearch .a-input { flex: 1; margin: 0; }
.c-domainsearch input { width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px 0 42px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg2); color: inherit; font: inherit; font-size: 15px; }
.c-domainsearch input:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.c-domainsearch .c-btn { height: 46px; }
.c-domainresult { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 18px 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); }
.c-domainresult.c-dr-available { border-color: var(--ok-line); background: linear-gradient(160deg, var(--ok-wash), transparent 70%), var(--bg2); }
.c-domainresult.c-dr-available .c-item-ico.on { background: var(--ok-soft); color: var(--ok); }
.c-dr-text { flex: 1; min-width: 200px; }
.c-dr-text b { display: block; font-size: 18px; font-family: var(--mono); }
.c-dr-text small { display: block; margin-top: 3px; font-size: 13px; color: var(--text2); }
.c-note.c-inset { margin: 0 18px 18px; }

/* -------------------------------------------------------------- support */

.c-new { font-style: normal; font-weight: 700; color: var(--accent-text); }
.c-empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 18px; }
.c-empty-state b { color: var(--text); font-size: 15px; }
.c-empty-state span:not(.c-item-ico) { max-width: 34em; }
.c-empty-state .c-btn { margin-top: 8px; }

/* A ticket reads like a conversation: us on the left, the customer on the
   right, each message in its own bubble. */
.c-thread { display: flex; flex-direction: column; gap: 14px; margin: 0 0 18px; }
.c-say { display: flex; align-items: flex-start; gap: 12px; max-width: 88%; }
.c-say.you { flex-direction: row-reverse; align-self: flex-end; }
.c-avatar.brand { background: var(--accent); color: var(--on-accent); }
.c-bubble { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.c-say.staff .c-bubble { border-top-left-radius: 5px; border-color: var(--accent-line); background: linear-gradient(160deg, var(--accent-wash), transparent 60%), var(--surface); }
.c-say.you .c-bubble { border-top-right-radius: 5px; background: var(--surface2); }
.c-bubble-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 7px; font-size: 12px; color: var(--text3); }
.c-bubble-who b { font-size: 13px; color: var(--text); }
.c-bubble .c-msg-body { font-size: 14.5px; line-height: 1.6; }

.c-main .c-composer { margin: 0; }
.c-composer-label { display: block; margin: 0 0 8px; font-size: 13.5px; font-weight: 650; }
.c-composer textarea {
    width: 100%; box-sizing: border-box; min-height: 110px; margin: 0 0 12px; padding: 12px 14px; resize: vertical;
    border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); color: inherit; font: inherit; font-size: 14.5px;
}
.c-composer textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }

/* What a new ticket is about, as four cards rather than a menu. */
.c-form-label { display: block; margin: 0 0 8px; font-size: 13.5px; font-weight: 650; }
.c-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.c-kinds label { display: block; margin: 0; cursor: pointer; }
.c-kinds input { position: absolute; opacity: 0; width: 0; height: 0; }
.c-kinds label > span { display: flex; align-items: flex-start; gap: 12px; height: 100%; box-sizing: border-box; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--bg2); transition: border-color 0.14s, background 0.14s; }
.c-kinds label > span:hover { border-color: var(--line2); }
.c-kinds b { display: block; font-size: 14px; font-weight: 650; }
.c-kinds small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; line-height: 1.45; color: var(--text2); }
.c-kinds input:checked + span { border-color: var(--accent); background: linear-gradient(160deg, var(--accent-soft), transparent 75%), var(--bg2); }
.c-kinds input:checked + span .c-item-ico { background: var(--accent-soft); color: var(--accent); }
.c-kinds input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.c-main .c-ticketform { max-width: none; }

/* ------------------------------------------------- signing in and signing up */

/* The brand and what it promises on the left, over a photo, and a plain
   form on the right. Below 960 pixels the left side goes and three of its
   promises come back as a short row under the form. */
body.client.auth { display: block; }
.a-shell { display: grid; grid-template-columns: minmax(400px, 46%) minmax(0, 1fr); min-height: 100vh; }

.a-side {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
    padding: 40px clamp(32px, 4vw, 60px) 32px;
    background: var(--bg2); border-right: 1px solid var(--line);
}
.a-photo { position: absolute; inset: 0; z-index: -2; }
.a-photo img {
    display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
    filter: saturate(0.7) sepia(0.2) brightness(1.05) contrast(1.05);
}
/* Dark enough under the words to read them, light enough at the top to
   see the racks. */
.a-side::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(120% 55% at 0% 100%, var(--accent-soft), transparent 70%),
        linear-gradient(180deg,
            color-mix(in srgb, var(--bg) 30%, transparent) 0%,
            color-mix(in srgb, var(--bg) 62%, transparent) 38%,
            color-mix(in srgb, var(--bg) 88%, transparent) 64%,
            color-mix(in srgb, var(--bg) 96%, transparent) 100%);
}
.a-side .c-logo { width: 150px; height: 24px; }

.a-kicker { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.a-pitch h2 { margin: 0 0 30px; max-width: 15em; font-size: clamp(26px, 2.5vw, 34px); line-height: 1.16; letter-spacing: -0.025em; }
.a-points { display: grid; gap: 18px; max-width: 31em; margin: 0; padding: 0; list-style: none; }
.a-points li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 13.5px; line-height: 1.5; color: var(--text2); }
.a-points b { display: block; margin: 1px 0 2px; font-size: 15px; color: var(--text); }
.a-legal { margin: 0; font-size: 12.5px; }
.a-legal a { margin-right: 18px; color: var(--text3); text-decoration: none; }
.a-legal a:hover { color: var(--text); }

.a-main { display: flex; flex-direction: column; min-width: 0; padding: 26px clamp(20px, 4vw, 48px) 24px; }
.a-top { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.a-top .c-brand { display: none; margin-right: auto; }
.a-back { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text2); text-decoration: none; transition: color 0.14s, border-color 0.14s; }
.a-back:hover { color: var(--text); border-color: var(--line2); }
.a-back .c-ico { width: 15px; height: 15px; }

.a-card { width: min(410px, 100%); margin: auto; padding: 44px 0; }
.a-card h1 { margin: 0 0 8px; font-size: 31px; letter-spacing: -0.025em; }
.a-card .c-lede { margin: 0 0 28px; font-size: 15px; }
.a-card .c-form { max-width: none; }
.a-card .c-note { margin-bottom: 22px; }

.a-input { position: relative; margin: 0 0 16px; }
.a-input .c-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text3); pointer-events: none; }
.c-form .a-input input { height: 48px; margin: 0; padding-left: 42px; }
.c-form .a-input input::placeholder { color: var(--text3); }
.c-form .a-input + .hint { margin: -8px 0 18px; }
.a-wide { width: 100%; }
.c-btn.a-wide { height: 48px; margin-top: 6px; font-size: 15px; }

.a-switch { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--text2); }
.a-switch a, .a-terms a { color: var(--accent-text); font-weight: 650; text-decoration: none; }
.a-switch a:hover, .a-terms a:hover { text-decoration: underline; }
.a-terms { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: var(--text3); }
.a-terms a { font-weight: 600; }

.a-help { margin: 26px 0 0; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 13.5px; color: var(--text2); }
.a-help summary { cursor: pointer; font-weight: 650; color: var(--text); }
.a-help p { margin: 9px 0 2px; line-height: 1.55; }
.a-help a { color: var(--accent-text); }

.a-mini { display: none; }

/* --------------------------------------------------------- smaller screens */

@media (max-width: 960px) {
    .a-shell { grid-template-columns: minmax(0, 1fr); }
    .a-side { display: none; }
    .a-top { justify-content: space-between; }
    .a-top .c-brand { display: inline-flex; }
    .a-card { padding: 34px 0 26px; }
    .a-mini {
        display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px;
        margin: 0; padding: 18px 0 4px; border-top: 1px solid var(--line); list-style: none;
    }
    .a-mini li { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text2); }
    .a-mini .c-ico { width: 15px; height: 15px; color: var(--accent); }
}

@media (max-width: 1180px) {
    .c-dash { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
    /* The code goes first on a phone: most people pay by scanning it. */
    .c-pay { grid-template-columns: minmax(0, 1fr); }
    .c-pay .c-qrbox { order: -1; }
    .c-qr { max-width: 220px; }
}

@media (max-width: 1000px) {
    .c-stats, .c-stats.c-stats-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    /* On a phone the side menu splits in two, the way apps do it: the
       logo and the new order button along the top, and the places to go
       in a bar along the bottom, where a thumb reaches them. */
    body.client.in { display: block; padding-bottom: 66px; }
    .c-side {
        position: sticky; top: 0; z-index: 20; height: auto; overflow: visible;
        flex-direction: row; align-items: center; gap: 8px; padding: 10px 4vw;
        border-right: 0; border-bottom: 1px solid var(--line);
    }
    .c-side .c-brand { margin: 0 auto 0 0; padding: 0; }
    .c-side-new { width: 38px; height: 38px; margin: 0; padding: 0; }
    .c-side-new span { display: none; }
    .c-side-foot { margin: 0; padding: 0; border: 0; }
    .c-who, .c-avatar { display: none; }

    .c-side-navs {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
        display: flex; justify-content: space-around; gap: 2px;
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
        background: var(--bg2); border-top: 1px solid var(--line);
    }
    .c-side-head, .c-side-nav a.c-wide-only { display: none; }
    .c-side-nav { display: contents; }
    .c-side-nav a {
        flex: 1; flex-direction: column; justify-content: center; gap: 3px;
        padding: 6px 2px; font-size: 10.5px; font-weight: 650; text-align: center;
    }
    .c-side-nav a .c-ico { width: 20px; height: 20px; }
    .c-side-nav a.on { background: none; color: var(--accent-text); }
    .c-side-nav a.on::before { display: none; }

    .c-main { padding: 24px 0 40px; }
}

@media (max-width: 640px) {
    .c-top .c-wrap { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 0; }
    .c-nav { gap: 2px; }
    .c-nav a { padding: 6px 9px; font-size: 13.5px; }
    .c-head h1, .c-main > .c-wrap > h1 { font-size: 24px; }
    .c-stats { gap: 10px; }
    .c-stat { padding: 14px; }
    .c-stat-ico { margin-bottom: 10px; }
    .c-stat b { font-size: 21px; }
    .c-item { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; }
    .c-item-meta, .c-item .c-item-go { display: none; }
    .c-item.compact { grid-template-columns: minmax(0, 1fr) auto auto; }
    .c-start { grid-template-columns: minmax(0, 1fr); }
    .c-flow { grid-template-columns: minmax(0, 1fr); }
    .c-hero-top { padding: 16px; }
    .c-hero-facts { grid-template-columns: 1fr 1fr; }
    .c-hero-facts p { padding: 12px 16px; }
    .c-hero-facts p:nth-child(2) { border-right: 0; }
    .c-hero-facts p:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .c-creds { padding: 4px 14px; }
    .c-cred { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .c-tools { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
    .c-quick { gap: 8px; padding: 12px; }
    .c-amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .c-steps li { padding: 9px 10px; font-size: 12px; gap: 7px; }
    .c-steps li b { width: 20px; height: 20px; }
    .c-copyfield code.c-big { font-size: 17px; }
    .c-copy span { display: none; }
    .c-kinds { grid-template-columns: minmax(0, 1fr); }
    .c-graphs { grid-template-columns: minmax(0, 1fr); }
    .c-item.c-site { grid-template-columns: 38px minmax(0, 1fr) auto; }
    .c-site .c-tag { display: none; }
    .c-say { max-width: 100%; }
    .c-period { gap: 8px; }
    /* The product tabs scroll sideways on a phone rather than stacking
       three rows deep above the plans. */
    .c-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .c-tabs::-webkit-scrollbar { display: none; }
    .c-tabs a { flex: none; }
    .c-select { flex: 1; min-width: 0; }
    .c-balance-sum { font-size: 28px; }
    .c-quick a { padding: 11px 10px; font-size: 13px; }
    .c-tiles { grid-template-columns: 1fr 1fr; }
}

/* ===================================================== the control panel
 *
 * One service: a header with its status and main buttons, a menu of its
 * sections, and cards. Everything here starts with sv-, so none of it can
 * collide with the rest of the client area.
 *
 * Widths that change with data (bars) are classes p0 to p100 in steps of
 * five, because the security policy ignores style attributes.
 */

.sv { --sv-r: 18px; --sv-r-sm: 12px; }
.sv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sv-mono { font-family: var(--mono); font-size: 0.94em; }
.sv-nocaps { text-transform: none; letter-spacing: 0; }
.sv-muted { color: var(--text3); }
.sv-small { font-size: 13px; }
.sv-wrap { word-break: break-all; }
.sv-soon { color: var(--warn); }
.sv-inline { display: inline-flex; margin: 0; }
.sv-gap { margin-top: 16px; }

/* ---------------------------------------------------------- the header */

.sv-back {
    display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px;
    color: var(--text3); font-size: 13.5px; font-weight: 600; text-decoration: none;
}
.sv-back:hover { color: var(--text); }
.sv-back .c-ico { width: 16px; height: 16px; }

.sv-head {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--sv-r);
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg2) 100%);
}
.sv-ico {
    width: 54px; height: 54px; flex: none; display: grid; place-items: center;
    border-radius: 15px; background: var(--surface2); color: var(--text2);
    border: 1px solid var(--line2);
}
.sv-ico.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.sv-ico .c-ico { width: 26px; height: 26px; }
.sv-title { min-width: 0; flex: 1 1 320px; }
.sv-name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.c-main .sv-name h1 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.sv-sub { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 6px 0 0; color: var(--text3); font-size: 13.5px; }
.sv-sub > span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 10px 3px; border-radius: 50%; background: var(--line3); }
.sv-host { margin: 4px 0 0; font-family: var(--mono); font-size: 13px; color: var(--text2); overflow-wrap: anywhere; }
.sv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }

/* Status as a pill with a dot. */
.sv-pill {
    display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 9px;
    border-radius: 999px; border: 1px solid var(--line2); background: var(--surface2);
    color: var(--text2); font-size: 12.5px; font-weight: 700; white-space: nowrap; line-height: 1.5;
}
.sv-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sv-pill.running, .sv-pill.active, .sv-pill.paid { color: var(--ok); border-color: var(--ok-line); background: var(--ok-soft); }
.sv-pill.running i { box-shadow: 0 0 0 3px var(--ok-soft); }
.sv-pill.pending, .sv-pill.building, .sv-pill.rebuild, .sv-pill.setup, .sv-pill.suspended, .sv-pill.unpaid { color: var(--warn); border-color: var(--warn-line); background: var(--warn-soft); }
.sv-pill.failed { color: var(--bad); border-color: var(--bad-line); background: var(--bad-soft); }
.sv-pill.stopped, .sv-pill.cancelled, .sv-pill.deleted { color: var(--text3); }

/* A line across the page that needs attention. */
.sv-banner {
    display: flex; align-items: center; gap: 14px; margin: 14px 0 0;
    padding: 12px 14px 12px 16px; border-radius: 14px;
    border: 1px solid var(--line2); background: var(--surface);
}
.sv-banner > .c-ico { width: 20px; height: 20px; flex: none; }
.sv-banner p { flex: 1; margin: 0; font-size: 14px; color: var(--text2); }
.sv-banner p b { color: var(--text); }
.sv-banner.warn { border-color: var(--accent-line); background: var(--accent-wash); }
.sv-banner.warn > .c-ico { color: var(--accent); }
.sv-banner.bad { border-color: var(--bad-line); background: var(--bad-soft); }
.sv-banner.bad > .c-ico { color: var(--bad); }
.sv-banner.ok { border-color: var(--ok-line); background: var(--ok-wash); }
.sv-banner.ok > .c-ico { color: var(--ok); }
.sv-main > .sv-banner:first-child { margin: 0 0 16px; }

/* ------------------------------------------------- the menu and the page */

.sv-body { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 22px; }
.sv-nav {
    position: sticky; top: 18px; display: flex; flex-direction: column; gap: 2px;
    padding: 8px; border: 1px solid var(--line); border-radius: var(--sv-r); background: var(--bg2);
}
.sv-nav a {
    display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px;
    color: var(--text2); font-size: 14px; font-weight: 600; text-decoration: none;
    transition: background 0.14s, color 0.14s;
}
.sv-nav a:hover { background: var(--hover); color: var(--text); }
.sv-nav a.on { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.sv-nav a.on .c-ico { color: var(--accent); }
.sv-nav .sv-nav-help { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 11px 11px; padding-top: 13px; color: var(--text3); }
.sv-main { min-width: 0; }

.sv-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.sv-flow { min-width: 0; }
.sv-rail { position: sticky; top: 18px; }

/* --------------------------------------------------------------- cards */

.sv-card { margin: 0 0 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--sv-r); background: var(--surface); }
.sv-card > :last-child { margin-bottom: 0; }
.sv-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.sv-card-head .sv-label { margin: 0; }
.c-main .sv-label, .sv-label {
    display: flex; align-items: center; gap: 8px; margin: 0 0 16px;
    font-size: 11.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text3);
}
.sv-label .c-ico { width: 16px; height: 16px; color: var(--text2); }
.sv-link { display: inline-flex; align-items: center; gap: 4px; color: var(--text2); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.sv-link:hover { color: var(--accent-text); }
.sv-link .c-ico { width: 15px; height: 15px; }
.sv-foot { margin: 14px 0 0; color: var(--text3); font-size: 13px; line-height: 1.55; }
.sv-empty { margin: 4px 0 14px; color: var(--text3); font-size: 14.5px; }
.sv-note-warn { display: flex; align-items: flex-start; gap: 9px; margin: -4px 0 14px; padding: 10px 12px; border: 1px solid var(--warn-line); border-radius: 11px; background: var(--warn-soft); color: var(--warn-text); font-size: 13.5px; line-height: 1.5; }
.sv-note-warn .c-ico { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--warn); }
.sv-empty.bad { color: var(--bad); }
.sv-card p.sv-muted { margin: -6px 0 14px; font-size: 14px; line-height: 1.55; }

/* Label and value, side by side. */
.sv-kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px 16px; align-items: center; margin: 0; }
.sv-kv dt { color: var(--text3); font-size: 13.5px; }
.sv-kv dd { margin: 0; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.sv-field { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.sv-code {
    display: inline-block; min-width: 0; max-width: 100%; padding: 7px 11px;
    border: 1px solid var(--line); border-radius: 9px; background: var(--bg2);
    font-family: var(--mono); font-size: 13.5px; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sv-code.plain { font-family: inherit; }
.sv-iconbtn {
    display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0;
    border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--text2);
    cursor: pointer; transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.sv-iconbtn:hover { background: var(--hover); color: var(--text); border-color: var(--line2); }
.sv-iconbtn .c-ico { width: 16px; height: 16px; }
.sv-iconbtn.done { color: var(--ok); border-color: var(--ok-line); }
.sv-iconbtn.off { opacity: 0.45; cursor: default; }
summary.sv-iconbtn { list-style: none; }
summary.sv-iconbtn::-webkit-details-marker { display: none; }

/* A secret shows dots until the eye is pressed. Without JavaScript it shows. */
.sv-secret .sv-val { display: none; }
.sv-secret.shown .sv-val { display: inline; }
.sv-secret.shown .sv-mask { display: none; }
html:not(.js) .sv-secret .sv-val { display: inline; }
html:not(.js) .sv-secret .sv-mask, html:not(.js) [data-reveal], html:not(.js) [data-gen], html:not(.js) [data-toggle-pw] { display: none; }
.sv-mask { letter-spacing: 0.12em; color: var(--text2); }

/* The command to copy, in its own box. */
.sv-cmd { margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); }
.sv-cmd .sv-label { margin: 0 0 10px; }
.sv-cmd-line { display: flex; align-items: center; gap: 10px; }
.sv-cmd-line code {
    flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--deep); font-family: var(--mono); font-size: 14px; overflow-x: auto; white-space: nowrap;
}
.sv-cmd small { display: block; margin: 8px 0 0; color: var(--text3); font-size: 12.5px; }

/* Numbers with a small graph or bar under them. */
.sv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sv-stats.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sv-stat {
    position: relative; display: flex; flex-direction: column; min-width: 0; padding: 14px 15px 12px;
    border: 1px solid var(--line); border-radius: 14px; background: var(--bg2);
    color: inherit; text-decoration: none; transition: border-color 0.14s;
}
a.sv-stat:hover { border-color: var(--line2); }
.sv-stat > span { font-size: 12.5px; font-weight: 650; color: var(--text3); }
.sv-stat > b { margin: 4px 0 0; font-size: 25px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.sv-stat > b small { font-size: 13px; font-weight: 650; color: var(--text3); letter-spacing: 0; }
.sv-stat > em { margin: 3px 0 0; font-style: normal; font-size: 12px; color: var(--text3); }
.sv-stat .c-spark { width: 100%; height: 34px; margin: 10px 0 0; }
.sv-bar { height: 6px; margin: 12px 0 2px; border-radius: 99px; background: var(--line); overflow: hidden; }
.sv-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); }
.sv-bar i.p0 { width: 0; } .sv-bar i.p5 { width: 5%; } .sv-bar i.p10 { width: 10%; } .sv-bar i.p15 { width: 15%; }
.sv-bar i.p20 { width: 20%; } .sv-bar i.p25 { width: 25%; } .sv-bar i.p30 { width: 30%; } .sv-bar i.p35 { width: 35%; }
.sv-bar i.p40 { width: 40%; } .sv-bar i.p45 { width: 45%; } .sv-bar i.p50 { width: 50%; } .sv-bar i.p55 { width: 55%; }
.sv-bar i.p60 { width: 60%; } .sv-bar i.p65 { width: 65%; } .sv-bar i.p70 { width: 70%; } .sv-bar i.p75 { width: 75%; }
.sv-bar i.p80 { width: 80%; background: var(--warn); } .sv-bar i.p85 { width: 85%; background: var(--warn); }
.sv-bar i.p90 { width: 90%; background: var(--bad); } .sv-bar i.p95 { width: 95%; background: var(--bad); } .sv-bar i.p100 { width: 100%; background: var(--bad); }

/* What the plan has, as tiles. */
.sv-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sv-tile { min-width: 0; padding: 14px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); }
.sv-tile span { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text3); }
.sv-tile span .c-ico { width: 15px; height: 15px; }
.sv-tile b { display: block; margin: 7px 0 0; font-size: 16.5px; overflow-wrap: anywhere; }
.sv-tile b small { font-size: 13px; color: var(--text3); font-weight: 600; }

/* Buttons in an even grid, such as the power card. */
.sv-btngrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sv-btngrid form, .sv-btngrid .c-btn { width: 100%; }
.sv-btngrid form .c-btn { width: 100%; }
.sv-stack { display: grid; gap: 8px; margin: 16px 0 0; }
.sv-stack form, .sv-stack .c-btn { width: 100%; }

/* Rows with an icon, words, and a button at the end. */
.sv-list { display: flex; flex-direction: column; }
.sv-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.sv-list > .sv-row:first-child { border-top: 0; padding-top: 2px; }
.sv-row-top { align-items: flex-start; }
.sv-row-ico {
    width: 40px; height: 40px; flex: none; display: grid; place-items: center;
    border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); color: var(--text2);
}
.sv-row-ico.ok { color: var(--ok); border-color: var(--ok-line); background: var(--ok-wash); }
.sv-row-ico .c-ico { width: 18px; height: 18px; }
.sv-row-text { flex: 1; min-width: 0; }
.sv-row-text > b { display: block; font-size: 14.5px; }
.sv-row-text > small { display: block; margin: 2px 0 0; color: var(--text3); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.sv-row-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sv-card > .sv-row-acts { margin-top: 16px; }

/* The danger zone, in the colour for trouble. */
.sv-danger { border-color: var(--bad-line); background: linear-gradient(180deg, var(--bad-soft), transparent 70%), var(--surface); }
.sv-danger .sv-label, .sv-danger .sv-label .c-ico { color: var(--bad); }
.sv-danger .sv-row { border-top: 0; padding: 0; }
.c-btn.sv-danger-btn { background: transparent; border-color: var(--bad-line); color: var(--bad); }
.c-btn.sv-danger-btn:hover { background: var(--bad-soft); }

/* ---------------------------------------------------------------- forms */

.sv-form { display: grid; gap: 12px; }
.sv-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 650; color: var(--text2); }
.sv-form small { color: var(--text3); font-size: 12.5px; }
.sv input[type=text], .sv input[type=password], .sv input[type=email], .sv input[type=file], .sv select, .sv textarea {
    width: 100%; box-sizing: border-box; min-width: 0; padding: 9px 12px;
    border: 1px solid var(--line2); border-radius: 10px; background: var(--bg2); color: var(--text);
    font: inherit; font-size: 14px;
}
.sv textarea { font-family: var(--mono); font-size: 13px; resize: vertical; }
.sv input:focus, .sv select:focus, .sv textarea:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.sv-inlineform { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.sv-inlineform input { flex: 1 1 220px; width: auto; }
.sv-inlineform.sm { margin-top: 10px; }
.sv-check { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 500 !important; color: var(--text2); font-size: 13.5px; line-height: 1.5; }
.sv-check input { margin: 3px 0 0; accent-color: var(--accent); }
.sv form .sv-check { margin: 14px 0; }

.sv-pw { position: relative; display: flex; flex: 1 1 240px; min-width: 0; }
.sv-pw input { padding-right: 46px; }
.sv-pw .sv-iconbtn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; }
.sv-pwgroup { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sv-pwform { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.sv-suffix { display: flex; align-items: stretch; }
.sv-suffix input { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.sv-suffix em {
    display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line2); border-left: 0;
    border-radius: 0 10px 10px 0; background: var(--surface2); color: var(--text2);
    font-style: normal; font-family: var(--mono); font-size: 13px; white-space: nowrap;
}
.sv-suffix.pre em { order: -1; border-left: 1px solid var(--line2); border-right: 0; border-radius: 10px 0 0 10px; }
.sv-suffix.pre input { border-radius: 0 10px 10px 0 !important; }

/* A toggle, drawn over a real checkbox. */
.sv-switchrow { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.sv-switchrow.inline { margin: 0 0 0 auto; padding: 0; border: 0; }
.sv-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.sv-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sv-switch-ui { position: relative; width: 40px; height: 23px; flex: none; border-radius: 99px; background: var(--line2); transition: background 0.16s; }
.sv-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--text); transition: transform 0.16s; }
.sv-switch input:checked + .sv-switch-ui { background: var(--ok); }
.sv-switch input:checked + .sv-switch-ui::after { transform: translateX(17px); background: #1d3a2b; }
.sv-switch input:focus-visible + .sv-switch-ui { box-shadow: 0 0 0 3px var(--accent-soft); }
.sv-switch-text b { display: block; font-size: 14px; }
.sv-switch-text small { display: block; color: var(--text3); font-size: 12.5px; }
html.js .sv-nojs { display: none; }

/* A menu or a small form that opens in place. */
details.sv-pop { position: relative; display: inline-block; }
details.sv-pop > summary { list-style: none; }
details.sv-pop > summary::-webkit-details-marker { display: none; }
details.sv-pop > :not(summary) {
    position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(320px, 82vw);
    padding: 14px; border: 1px solid var(--line2); border-radius: 14px; background: var(--surface);
    box-shadow: var(--shadow); text-align: left;
}
details.sv-pop.right > :not(summary) { left: auto; right: 0; }
details.sv-pop p { margin: 0; color: var(--text2); font-size: 13.5px; line-height: 1.5; }
.sv-menu-body { display: grid; gap: 4px; }
.sv-menu-body > a, .sv-menu-danger {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px;
    background: none; color: var(--text); font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer;
}
.sv-menu-body > a:hover { background: var(--hover); }
.sv-menu-danger { color: var(--bad); }
.sv-menu-danger:hover { background: var(--bad-soft); }
.sv-menu-body .c-ico { width: 16px; height: 16px; }
.sv-menu-form { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); }
.sv-menu-form label { flex: 1; display: grid; gap: 4px; font-size: 12px; color: var(--text3); font-weight: 650; }
.sv-menu-form + form { border-top: 1px solid var(--line); padding-top: 4px; }

details.sv-add { margin: 16px 0 0; }
details.sv-add > summary { list-style: none; width: max-content; }
details.sv-add > summary::-webkit-details-marker { display: none; }
details.sv-add[open] > summary { margin-bottom: 14px; }
details.sv-add > form { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); max-width: 560px; }
details.sv-more > summary { list-style: none; cursor: pointer; }
details.sv-more > summary::-webkit-details-marker { display: none; }
details.sv-more > summary .sv-label { margin: 0; }
details.sv-more[open] > summary .sv-label { margin-bottom: 14px; }
details.sv-remove { display: block; }
details.sv-remove > summary { display: flex; align-items: center; gap: 14px; list-style: none; cursor: pointer; }
details.sv-remove > summary::-webkit-details-marker { display: none; }
details.sv-remove > summary .sv-row-ico { color: var(--bad); }
details.sv-remove > form { margin: 14px 0 0 54px; }

/* --------------------------------------------------------------- tables */

/* Tables scroll sideways only on a phone, where the little menus open as a
   sheet at the bottom. Anywhere else a scrolling box would cut them off. */
.sv-tablewrap { margin: 0 -4px; padding: 0 4px; }
.sv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sv-table th {
    padding: 0 12px 10px; text-align: left; white-space: nowrap;
    font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3);
}
.sv-table td { padding: 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.sv-table th:first-child, .sv-table td:first-child { padding-left: 0; }
.sv-table th:last-child, .sv-table td:last-child { padding-right: 0; }
.sv-table tbody tr:hover td { background: var(--accent-wash); }
.sv-td-acts { text-align: right; white-space: nowrap; }
.sv-td-acts > * + * { margin-left: 6px; }
.sv-table.sv-mini { margin: 12px 0; font-size: 13.5px; }
.sv-table.sv-mini th { padding-top: 6px; }
.sv-table.sv-mini td { padding: 8px 10px; }
.sv-type { display: inline-block; min-width: 46px; padding: 2px 8px; border-radius: 7px; background: var(--surface2); text-align: center; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--text2); }
.sv-perm { font-family: var(--mono); font-size: 12.5px; color: var(--text3); }

/* The file manager. */
.sv-fm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.sv-fm-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.sv-crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0; font-size: 14px; }
.sv-crumbs a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 8px; color: var(--text2); text-decoration: none; }
.sv-crumbs a:hover { background: var(--hover); color: var(--text); }
.sv-crumbs b { padding: 5px 8px; overflow-wrap: anywhere; }
.sv-crumbs > .c-ico { width: 14px; height: 14px; color: var(--text3); }
.sv-crumbs a .c-ico { width: 16px; height: 16px; }
.sv-fname { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); text-decoration: none; font-weight: 550; }
.sv-fname .c-ico { width: 18px; height: 18px; flex: none; color: var(--text3); }
.sv-fname.dir .c-ico { color: var(--accent); }
.sv-fname span { overflow-wrap: anywhere; }
.sv-fname:hover span { color: var(--accent-text); }
.sv-fname small { padding: 1px 6px; border-radius: 6px; background: var(--surface2); color: var(--text3); font-size: 11px; }
.sv-files td { padding-top: 10px; padding-bottom: 10px; }
.sv-jump { margin: 0 0 14px; }

/* The editor. */
.sv-codearea {
    display: block; width: 100%; min-height: 62vh; box-sizing: border-box; padding: 14px 16px;
    border: 1px solid var(--line2) !important; border-radius: 12px !important; background: var(--deep) !important;
    font-family: var(--mono) !important; font-size: 13.5px !important; line-height: 1.6; tab-size: 4;
    white-space: pre; overflow: auto; color: var(--text);
}

/* Little rounded labels, some of them buttons. */
.sv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.sv-chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 5px 6px 5px 11px; border-radius: 999px;
    border: 1px solid var(--line2); background: var(--bg2); color: var(--text2);
    font: inherit; font-size: 13px; text-decoration: none; cursor: default;
}
a.sv-chip, button.sv-chip { padding-right: 11px; cursor: pointer; }
a.sv-chip:hover, button.sv-chip:hover { border-color: var(--accent-line); color: var(--text); }
.sv-chip .c-ico { width: 14px; height: 14px; }
.sv-chip form button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text3); cursor: pointer; }
.sv-chip form button:hover { background: var(--bad-soft); color: var(--bad); }
.sv-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 12px; }
.sv-site { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sv-site b { display: block; font-size: 16px; overflow-wrap: anywhere; }
.sv-site small { display: block; color: var(--text3); font-size: 12.5px; }

/* Choices in a row, like a segmented control. */
.sv-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg2); }
.sv-seg a { padding: 6px 12px; border-radius: 8px; color: var(--text2); font-size: 13px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.sv-seg a:hover { color: var(--text); }
.sv-seg a.on { background: var(--surface2); color: var(--text); }
.sv-seg.wide { display: flex; flex-wrap: wrap; margin: 0 0 16px; }

/* Graphs on the usage page. */
.sv-charts { display: grid; gap: 14px; }
.sv-chart { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); }
.sv-chart-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; font-size: 13px; color: var(--text3); }
.sv-chart-head b { color: var(--text); font-size: 14px; }
.sv-chart .c-spark { width: 100%; height: 120px; }

/* The tools on the hosting overview. */
.sv-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.sv-tool {
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 11px; align-items: center;
    padding: 12px 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2);
    color: var(--text); text-decoration: none; transition: border-color 0.14s, transform 0.14s;
}
.sv-tool:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.sv-tool-ico { grid-row: span 2; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.sv-tool-ico .c-ico { width: 18px; height: 18px; }
.sv-tool b { font-size: 14px; }
.sv-tool small { color: var(--text3); font-size: 12px; }
.sv-wp { border-color: var(--accent-line); }

/* Operating systems, each with its mark on a light tile. */
.sv-oslogo { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px; background: #faf7f2; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.sv-oslogo svg { width: 25px; height: 25px; }
.sv-oslogo.lg { width: 52px; height: 52px; border-radius: 14px; }
.sv-oslogo.lg svg { width: 33px; height: 33px; }
.sv-oslogo.sm { width: 24px; height: 24px; border-radius: 7px; margin-right: 8px; vertical-align: -6px; }
.sv-oslogo.sm svg { width: 16px; height: 16px; }
.sv-tile-os b { display: flex !important; align-items: center; }
.sv-osb { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; font-weight: 800; font-size: 16px; color: #fff; background: var(--surface2); }
.sv-osb.debian { background: #c6094a; }
.sv-osb.ubuntu { background: #e95420; }
.sv-osb.alma { background: #0e7c86; }
.sv-oscur { display: flex; align-items: center; gap: 14px; }
.sv-oscur b { display: block; font-size: 17px; }
.sv-oscur small { display: block; color: var(--text3); font-size: 13.5px; }
.sv-osgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0 0 6px; }
.sv-oscard { cursor: pointer; }
.sv-oscard input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sv-oscard > span {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px;
    background: var(--bg2); transition: border-color 0.14s, background 0.14s;
}
.sv-oscard > span b { font-size: 14.5px; }
.sv-oscard > span small { margin-left: auto; padding: 2px 8px; border-radius: 99px; background: var(--surface2); color: var(--text3); font-size: 11.5px; }
.sv-oscard input:checked + span { border-color: var(--accent); background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent); }
.sv-oscard input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }

/* Plans to move up to. */
.sv-plannow { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.sv-plannow > div:first-child b { display: block; font-size: 17px; }
.sv-plannow > div:first-child small { color: var(--text3); font-size: 13.5px; }
.sv-plannow .sv-chips { margin: 0; }
.sv-plannow .sv-chip b { color: var(--text); margin-left: 3px; }
.sv-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.sv-plan { display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg2); transition: border-color 0.14s; }
.sv-plan:hover { border-color: var(--accent-line); }
.sv-plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.sv-plan-head > b { font-size: 18px; }
.sv-plan-head span { color: var(--text3); font-size: 13.5px; white-space: nowrap; }
.sv-plan-head span b { color: var(--text); font-size: 17px; }
.sv-plan-specs { display: grid; gap: 7px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 13.5px; }
.sv-plan-specs li { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; color: var(--text3); }
.sv-plan-specs li .c-ico { width: 15px; height: 15px; color: var(--ok); }
.sv-plan-specs li b { color: var(--text); font-weight: 650; }
.sv-plan-due { margin: auto 0 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--text2); font-size: 13px; line-height: 1.5; }
.sv-plan-due b { color: var(--text); }
.sv-plan form, .sv-plan .c-btn { width: 100%; }

/* The right hand column. */
.sv-place { display: flex; align-items: center; gap: 12px; }
.sv-flag { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; }
.sv-place b { display: block; font-size: 16px; }
.sv-place small { color: var(--text3); font-size: 13px; }
.sv-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 14px; margin: 0; font-size: 14px; }
.sv-facts dt { color: var(--text3); }
.sv-facts dd { margin: 0; text-align: right; min-width: 0; }
.sv-facts dd small { display: block; color: var(--text3); font-size: 12px; }

/* A service on its way: the steps. */
.sv-state { text-align: center; padding: 34px 26px; }
.sv-state-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; margin: 0 0 12px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); }
.sv-state.bad .sv-state-ico { background: var(--bad-soft); color: var(--bad); }
.sv-state-ico .c-ico { width: 26px; height: 26px; }
.c-main .sv-state h2 { margin: 0 0 6px; font-size: 21px; }
.sv-state > p { max-width: 520px; margin: 0 auto 12px; color: var(--text2); line-height: 1.6; }
.sv-state .sv-row-acts { justify-content: center; margin-top: 18px; }
.sv-steps { display: flex; justify-content: center; gap: 0; margin: 22px auto 0; padding: 0; list-style: none; max-width: 460px; }
.sv-steps li { position: relative; flex: 1; display: grid; justify-items: center; gap: 8px; font-size: 13px; color: var(--text3); }
.sv-steps li + li::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.sv-steps li.done + li::before, .sv-steps li.now::before { background: var(--accent); }
.sv-steps i { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line2); background: var(--surface); font-style: normal; font-weight: 800; color: var(--text3); }
.sv-steps li.done i { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.sv-steps li.now i { border-color: var(--accent); color: var(--accent); }
.sv-steps li.now span { color: var(--text); font-weight: 650; }
.sv-steps .c-ico { width: 16px; height: 16px; }

/* The DNS form, one row on a wide screen. */
.sv-dnsform { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.sv-dnsform label { display: grid; gap: 5px; flex: 1 1 120px; font-size: 12px; font-weight: 650; color: var(--text3); }
.sv-dnsform label.grow { flex: 3 1 220px; }
.sv-dnsform label.sm { flex: 0 1 90px; }
.sv-cronfields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.sv-cronfields label { font-size: 12px !important; }
.sv-cronfields input { font-family: var(--mono) !important; text-align: center; }

/* ------------------------------------------------------- smaller screens */

@media (max-width: 1240px) {
    .sv-cols { grid-template-columns: minmax(0, 1fr); }
    .sv-rail { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .sv-rail .sv-card { margin: 0; }
    .sv-rail + * { margin-top: 16px; }
}
@media (max-width: 1080px) {
    .sv-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    /* Every section in view at once: a grid of tiles, icon over name. */
    .sv-nav {
        position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
        gap: 6px; padding: 8px;
    }
    .sv-nav a {
        flex-direction: column; justify-content: center; gap: 6px; min-height: 66px; padding: 10px 6px;
        border: 1px solid var(--line); background: var(--surface);
        font-size: 12.5px; line-height: 1.25; text-align: center;
    }
    .sv-nav a .c-ico { width: 20px; height: 20px; }
    .sv-nav a.on { border-color: var(--accent-line); background: var(--accent-wash); box-shadow: none; }
    .sv-nav .sv-nav-help { margin: 0; padding: 10px 6px; border-top: 1px solid var(--line); border-radius: 11px; }
    .sv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .sv-head { padding: 16px; gap: 14px; }
    .sv-ico { width: 46px; height: 46px; border-radius: 13px; }
    .c-main .sv-name h1 { font-size: 20px; }
    .sv-actions { width: 100%; margin: 0; }
    .sv-actions > *, .sv-actions form { flex: 1; }
    .sv-actions .c-btn { width: 100%; }
    .sv-card { padding: 16px; border-radius: 16px; }
    .sv-rail { grid-template-columns: minmax(0, 1fr); }
    .sv-kv { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .sv-kv dd { margin-bottom: 10px; }
    .sv-stats, .sv-stats.six { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .sv-stat > b { font-size: 21px; }
    .sv-btngrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sv-hide-sm { display: none; }
    .sv-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sv-tool { grid-template-columns: 1fr; row-gap: 8px; }
    .sv-tool-ico { grid-row: auto; }
    .sv-cronfields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sv-banner { flex-wrap: wrap; }
    .sv-banner .c-btn, .sv-banner form { width: 100%; }
    details.sv-remove > form { margin-left: 0; }
    details.sv-pop > :not(summary) { position: fixed; left: 4vw !important; right: 4vw !important; top: auto; bottom: 12px; width: auto; }
    .sv-switchrow.inline { margin: 8px 0 0; width: 100%; }
    .sv-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 6px; }
    .sv-nav a { min-height: 62px; padding: 9px 3px; font-size: 11.5px; }
    .sv-sub { flex-direction: column; gap: 2px; }
    .sv-sub > span + span::before { display: none; }
    .sv-cmd-line { flex-wrap: wrap; }
    .sv-cmd-line code { flex-basis: 100%; }
    .sv-cmd-line .c-btn { width: 100%; }
    .sv-fm-acts { width: 100%; }
    .sv-fm-acts > details { flex: 1; }
    .sv-fm-acts > details > summary { width: 100%; }
}
@media (max-width: 980px) { .sv-hide-md { display: none; } }
@media (max-width: 760px) { .sv-tablewrap { overflow-x: auto; } }

/* Something slow is happening: a spinner, and a button that says so. */
.sv-working { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border: 1px solid var(--ok-line); border-radius: 9px; background: var(--ok-wash); color: var(--ok); font-size: 13.5px; font-weight: 650; white-space: nowrap; }
.sv-spin { width: 15px; height: 15px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: c-spin 0.8s linear infinite; }
.sv-bad { color: var(--bad) !important; }
.c-btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.c-btn.is-busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; margin: -9.5px 0 0 -9.5px; border-radius: 50%; border: 2px solid var(--on-accent); border-right-color: transparent; animation: c-spin 0.8s linear infinite; }
.c-btn.ghost.is-busy::after, .sv-iconbtn.is-busy::after { border-color: var(--text); border-right-color: transparent; }
.c-btn.is-busy .c-ico { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .sv-spin, .c-btn.is-busy::after { animation-duration: 2.4s; } }
