/* uPress panel. One theme, right-to-left first: every spacing uses logical properties,
   so the English layout is the same sheet mirrored. */

/* The font of the existing panel, served from here. */
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('/static/fonts/rubik/iJWKBXyIfDnIV7nDrXyi0A.woff2') format('woff2'); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('/static/fonts/rubik/iJWKBXyIfDnIV7nPrXyi0A.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('/static/fonts/rubik/iJWKBXyIfDnIV7nBrXw.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f8f9fd;
  --surface: #ffffff;
  --ink: #0b1b33;
  --ink-soft: #33435c;
  --muted: #5d6d86;
  --line: #e1e8f4;
  --blue: #4c82f5;
  --blue-hover: #3b6fe0;
  --blue-ink: #2f5fd0;
  --blue-soft: #edf2fe;
  --green-ink: #17753a;
  --green-soft: #e6f6ec;
  --red-ink: #b42323;
  --red-soft: #fdecec;
  --radius: 8px;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1 { font-size: 1.7rem; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; line-height: 1.3; font-weight: 700; }
html[lang="he"] h1 { letter-spacing: 0; }

a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
img { display: block; max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid rgba(13, 105, 240, .4); outline-offset: 2px; border-radius: 6px; }

/* ---------- controls ---------- */

.form { display: grid; gap: 18px; }
/* a form's fields as one set, so a page that only shows can switch them all off */
.form > fieldset.form-set { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 18px; }
/* a place's row: the short name is short, the name takes the rest */
.inline-form.place-row { grid-template-columns: 120px minmax(0, 1fr); }

.field { display: grid; gap: 7px; font-size: .92rem; font-weight: 600; color: var(--ink-soft); }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field-head a { font-weight: 500; font-size: .86rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="url"], select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #cfd9ea;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[dir="ltr"] { text-align: start; }
html[dir="rtl"] input[dir="ltr"] { text-align: right; }
input:hover, select:hover { border-color: #b7c5dc; }
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(13, 105, 240, .15); }
select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 40px; background-repeat: no-repeat; background-size: 12px 8px; background-position: right 14px center; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.500 6 6.500l5-5' fill='none' stroke='%235d6d86' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html[dir="rtl"] select { background-position: left 14px center; }
/* a table of rules to fill in: the rule itself gets most of the row */
.table-form td { vertical-align: top; }
.table-form td:first-child { width: 50%; min-width: 180px; }
.table-form select { min-width: 130px; }
/* a list to choose several from is a box of rows, not a drop-down */
select[multiple] { height: auto; min-height: 180px; padding: 6px; background-image: none; cursor: default; }
select[multiple] option { padding: 6px 10px; border-radius: 6px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.inline-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.inline-form .btn { justify-self: stretch; }

.code-input { font-size: 1.6rem; font-weight: 700; letter-spacing: .4em; text-align: center !important; height: 60px; }
/* the code a customer reads to the team on the phone, at the bottom of the profile page */
.phone-code-live { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.phone-code-digits { font-size: 1.6rem; font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }

.check { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink-soft); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }

.hint { font-size: .84rem; font-weight: 400; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 8px;
  font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-primary { background: #dbeafe; color: #1d4ed8; }
.btn-primary:hover { background: #bfdbfe; color: #1d4ed8; }
.btn-secondary { background: #fff; color: var(--blue-ink); border-color: var(--line); }
.btn-secondary:hover { border-color: #c5d3ea; }
.btn-small { height: 34px; padding: 0 16px; font-size: .88rem; font-weight: 400; background: #dbeafe; color: #1d4ed8; }
.btn-small:hover { background: #bfdbfe; }

.link-button { padding: 0; border: 0; background: none; color: var(--blue-ink); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--blue-hover); }
.text-link { font-weight: 600; }

.alert { padding: 12px 16px; border-radius: 10px; font-size: .93rem; border: 1px solid transparent; }
.alert-ok { background: var(--green-soft); color: var(--green-ink); border-color: #c8ebd4; }
.alert-error { background: var(--red-soft); color: var(--red-ink); border-color: #f7cfcf; }

.pill { display: inline-block; white-space: nowrap; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; vertical-align: middle; }
.pill-ok { background: var(--green-soft); color: var(--green-ink); }
.pill-warn { background: #fff4e0; color: #8a5200; }
.pill-off { background: #eef1f6; color: var(--muted); }
/* secure through Cloudflare, with no certificate on the server: a state of its own, not a fault */
.pill-cloud { background: #e8f1fe; color: #1d4f91; }
.pill-staff { background: var(--ink); color: #fff; letter-spacing: .02em; }
.kicker { font-size: .8rem; font-weight: 700; color: var(--blue-ink); margin-bottom: -10px; }

/* two-step sign-in: set-up steps, the QR code, the key and the recovery codes */
.steps { margin: 0; padding-inline-start: 22px; display: grid; gap: 12px; color: var(--ink-soft); }
.steps li::marker { font-weight: 700; color: var(--blue-ink); }
.qr { margin: 12px 0 10px; padding: 10px; width: max-content; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.qr img { image-rendering: pixelated; }
.secret { display: block; padding: 10px 12px; border-radius: 8px; background: #f4f7fc; font: 600 .95rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; overflow-wrap: anywhere; text-align: left; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.codes li { padding: 10px 12px; border-radius: 8px; background: #f4f7fc; text-align: center; }
.codes code { font: 600 1rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; }
.narrow { max-width: 560px; }
.fold { border-top: 1px solid var(--line); padding-top: 12px; }
.fold summary { cursor: pointer; font-weight: 600; font-size: .93rem; color: var(--blue-ink); }
.fold[open] summary { margin-bottom: 14px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 2px; }
.stats dt { font-size: .84rem; color: var(--muted); }
.stats dd { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.admin .side { background: #0b1b33; border-inline-end-color: #0b1b33; }
.admin .side .brand img { filter: brightness(0) invert(1); }
.admin .nav a { color: #c9d4e6; }
.admin .nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin .nav a[aria-current="page"] { background: rgba(255, 255, 255, .14); color: #fff; }
.admin .side-foot { border-top-color: rgba(255, 255, 255, .14); }
.admin .who-text strong { color: #fff; }
.admin .who-text small { color: #9fb0c9; }
.admin .side .link-button { color: #cfe0ff; }
.admin .pill-staff { background: #fff; color: #0b1b33; }

.confirm-value { padding: 14px 16px; border-radius: 10px; background: var(--blue-soft); color: var(--ink); font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; text-align: center; }

/* ---------- sign-in shell ---------- */

.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 100vh; min-height: 100dvh; }

.auth-main { display: flex; flex-direction: column; padding: 28px clamp(20px, 6vw, 72px); background: var(--surface); }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: 40px; width: auto; }

.auth-card { width: 100%; max-width: 420px; margin: auto; padding-block: 40px; display: grid; gap: 18px; }
.auth-card .lead { color: var(--muted); margin-top: -8px; }
.auth-card .btn-primary { width: 100%; margin-top: 4px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; font-size: .92rem; }
.auth-foot { font-size: .8rem; color: var(--muted); text-align: center; }

.error-code { font-size: 3.4rem; line-height: 1; font-weight: 800; color: var(--blue); letter-spacing: -.03em; }

.auth-hero {
  position: relative; overflow: hidden; display: flex; align-items: center;
  padding: clamp(32px, 6vw, 88px);
  color: #fff;
  background:
    radial-gradient(90% 70% at 85% 10%, rgba(120, 190, 255, .55) 0%, rgba(120, 190, 255, 0) 60%),
    radial-gradient(70% 60% at 10% 100%, rgba(8, 40, 120, .65) 0%, rgba(8, 40, 120, 0) 65%),
    linear-gradient(150deg, #0d69f0 0%, #0a4fc0 55%, #0a3f9c 100%);
}
.hero-inner { position: relative; max-width: 480px; display: grid; gap: 14px; }
.hero-kicker { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
html[lang="he"] .hero-kicker { letter-spacing: 0; }
.auth-hero h2 { font-size: clamp(1.7rem, 1.1rem + 1.8vw, 2.5rem); line-height: 1.15; font-weight: 700; }
.auth-hero p { font-size: 1.06rem; opacity: .9; }

.hero-art { position: relative; margin-top: 34px; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-a { width: 150px; height: 150px; inset-block-start: -46px; inset-inline-end: -30px; background: radial-gradient(circle at 30% 30%, #9fd0ff, rgba(159, 208, 255, 0) 70%); }
.orb-b { width: 110px; height: 110px; inset-block-end: -36px; inset-inline-start: -24px; background: radial-gradient(circle at 60% 40%, #5aa6ff, rgba(90, 166, 255, 0) 70%); }
.hero-window { position: relative; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); display: grid; gap: 12px; }
.hero-dots { display: flex; gap: 6px; }
.hero-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.hero-row { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .28); }
.w70 { width: 70%; } .w60 { width: 60%; } .w45 { width: 45%; }
.hero-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-tiles b { height: 62px; border-radius: 10px; background: rgba(255, 255, 255, .18); }
.hero-tiles b:first-child { background: rgba(255, 255, 255, .34); }

.lang { margin: 0; }

@media (max-width: 880px) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-main { background: var(--bg); padding: 20px 16px; }
  .auth-card { background: var(--surface); padding: 28px 22px; border-radius: 18px; box-shadow: var(--shadow); margin-block: 28px auto; }
}

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

.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

.side { position: sticky; top: 0; align-self: start; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 8px; padding: 22px 16px 18px; background: var(--surface); border-inline-end: 1px solid var(--line); }
/* on a screen lower than the menu the side scrolls by itself, so the account and sign-out
   at its foot can always be reached (the page's own scrolling does not move it) */
.side { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.side .brand { padding-inline: 8px; }
.side .brand img { height: 36px; }
.side-label { padding: 0 8px; margin-top: 2px; font-size: .78rem; font-weight: 600; color: var(--muted); }

.nav { display: grid; gap: 4px; margin-top: 18px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #1e3a8a; font-weight: 600; font-size: .95rem; text-decoration: none; }
.nav a:hover { background: #eff6ff; color: #1e3a8a; }
.nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-ink); }
.nav svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.side-foot { margin-top: auto; display: grid; gap: 12px; padding: 14px 8px 0; border-top: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; text-transform: uppercase; }
.who-text { display: grid; min-width: 0; }
.who-text strong { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-text small { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
html[dir="rtl"] .who-text small { text-align: right; }
.side-actions { display: flex; justify-content: space-between; gap: 12px; }
.side-actions form { margin: 0; }

.main { padding: clamp(20px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.main-foot { margin-top: auto; padding-top: 18px; font-size: .8rem; color: var(--muted); }

.page-head { display: grid; gap: 6px; }
.page-head p { color: var(--muted); max-width: 62ch; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; }

.card { background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; display: grid; gap: 14px; }
.card p { color: var(--ink-soft); }
.card .btn { justify-self: start; }
.card-note { background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%); }

.facts { display: grid; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts > div:first-child { padding-top: 0; }
.facts dt { color: var(--muted); font-size: .92rem; flex: none; }
.facts dd { font-weight: 600; text-align: end; overflow-wrap: anywhere; min-width: 0; }

.sessions { display: grid; }
.sessions li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sessions li:first-child { padding-top: 0; }
.sessions li:last-child { border-bottom: 0; padding-bottom: 0; }
.sessions form { margin: 0; flex: none; }
.session-main { display: grid; gap: 4px; min-width: 0; }
.session-main strong { font-size: .97rem; }
.session-main .pills { display: flex; flex-wrap: wrap; gap: 6px; }
.session-main .pills:empty { display: none; }
.devices li { align-items: flex-start; }
.fold-inline { border-top: 0; padding-top: 2px; }
.fold-inline summary { font-weight: 500; font-size: .86rem; }
.fold-inline[open] summary { margin-bottom: 10px; }
.card-action { display: grid; gap: 8px; justify-items: start; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
html[dir="rtl"] .session-main strong[dir="ltr"] { text-align: right; }
.session-main .pill { justify-self: start; }
.session-main small { color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.search { display: flex; gap: 8px; flex: 0 1 380px; }
.search input { height: 40px; }
.search .btn { height: 40px; padding: 0 16px; }
.site-link { font-weight: 600; unicode-bidi: isolate; white-space: nowrap; }
.sub-mark { color: var(--muted); margin-inline-end: 6px; }
.domain-title { text-align: start; overflow-wrap: anywhere; }
html[dir="rtl"] .domain-title { text-align: right; }
.meter { display: block; width: 120px; max-width: 100%; height: 6px; margin-bottom: 4px; border: 0; border-radius: 999px; background: #e6ecf6; overflow: hidden; appearance: none; -webkit-appearance: none; }
.meter::-webkit-progress-bar { background: #e6ecf6; border-radius: 999px; }
.meter::-webkit-progress-value { background: var(--blue); border-radius: 999px; }
.meter::-moz-progress-bar { background: var(--blue); border-radius: 999px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: .88rem; color: var(--muted); }
.plain-list { display: grid; gap: 6px; text-align: left; }
.stats dd a { text-decoration: none; }
.stats .stat-text { font-size: 1rem; font-weight: 600; padding-top: 6px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }
.btn-compact { height: 36px; padding: 0 16px; font-size: .88rem; box-shadow: none; }
.contact { display: grid; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact:first-of-type { padding-top: 0; }
.contact:last-of-type { border-bottom: 0; padding-bottom: 0; }
.checks { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; min-width: 0; }
.checks legend { padding: 0; margin-bottom: 8px; font-size: .92rem; font-weight: 600; color: var(--ink-soft); }
.card form { margin: 0; }
.card > *, .stack > *, .grid > * { min-width: 0; }
.table-wrap { overflow-x: auto; margin-inline: -6px; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { padding: 8px 6px; text-align: start; font-size: .8rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table td[dir="ltr"] { white-space: nowrap; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
html[dir="rtl"] .table td[dir="ltr"] { text-align: right; }
html[dir="rtl"] .table small[dir="ltr"] { text-align: right; }
.table td small { display: block; color: var(--muted); font-size: .8rem; }
/* a sentence under a value that does not wrap (why a server refuses a redirect): it wraps, and does not widen the column */
.table td small.cell-why { white-space: normal; max-width: 44ch; }

@media (max-width: 1020px) {
  .grid { grid-template-columns: 1fr; }
}

/* On a wide screen the menu is as wide as in the existing panel. */
@media (min-width: 1280px) {
  .shell { grid-template-columns: 320px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; min-width: 0; overflow: visible; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .side-label, .nav-group { display: none; }
  .nav { order: 3; flex: 1 0 100%; min-width: 0; max-width: 100%; display: flex; gap: 6px; margin-top: 0; overflow-x: auto; scrollbar-width: none; }
  .nav a { flex: none; }
  .nav a { padding: 8px 12px; white-space: nowrap; font-size: .9rem; }
  .side-foot { margin-top: 0; margin-inline-start: auto; padding: 0; border-top: 0; }
  .who { display: none; }
  .side-actions { gap: 16px; }
  .sessions li { flex-direction: column; align-items: stretch; }
  .sessions .btn-small { width: 100%; }
  .pair, .inline-form { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div { flex-direction: column; gap: 2px; }
  .facts dd { text-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* invoices and support tickets */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs a { padding: 5px 14px; border-radius: 999px; font-size: .95rem; color: var(--ink); text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.tabs a:hover, .tabs a[aria-current="page"] { background: var(--blue); color: #fff; }
.pill-bad { background: var(--red-soft); color: var(--red-ink); }
.pre { white-space: pre-line; overflow-wrap: anywhere; }
.ticket-link { font-weight: 600; overflow-wrap: anywhere; }
.ticket-title { overflow-wrap: anywhere; }
.message-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.message-head small { color: var(--muted); font-size: .82rem; margin-inline-start: auto; }
.message-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.message-staff { border-inline-start: 3px solid var(--blue); }
.show-narrow { display: none !important; }
@media (max-width: 640px) {
  .hide-narrow { display: none; }
  .table td small.show-narrow { display: block !important; }
  span.show-narrow { display: inline !important; }
}
textarea { width: 100%; min-height: 120px; padding: 12px 14px; border: 1px solid #cfd9ea; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; line-height: 1.6; resize: vertical; }
textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 101, 255, .14); }
input[type="file"] { width: 100%; padding: 10px 12px; border: 1px dashed #cfd9ea; border-radius: 10px; background: #f9fbff; font: inherit; font-size: .88rem; color: var(--ink-soft); }
input[type="file"]::file-selector-button { margin-inline-end: 12px; padding: 6px 14px; border: 1px solid #cfd9ea; border-radius: 8px; background: #fff; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.inline-form select { width: auto; min-width: 120px; }
.message-text a { overflow-wrap: anywhere; }
/* a message written in Markdown (markdown.go): its own paragraphs and lists, not the text's line ends */
.message-md { white-space: normal; }
.message-md > :first-child { margin-top: 0; }
.message-md > :last-child { margin-bottom: 0; }
.message-md p, .message-md ul, .message-md ol, .message-md pre, .message-md blockquote, .message-md table { margin: 0 0 .7em; }
.message-md ul, .message-md ol { padding-inline-start: 1.4em; }
.message-md h1, .message-md h2, .message-md h3, .message-md h4, .message-md h5, .message-md h6 { font-size: 1.05em; margin: .9em 0 .4em; }
.message-md code { direction: ltr; unicode-bidi: embed; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: rgba(15, 23, 42, .06); padding: .1em .35em; border-radius: 5px; }
.message-md pre { direction: ltr; text-align: left; overflow-x: auto; background: rgba(15, 23, 42, .06); padding: .7em .9em; border-radius: 8px; }
.message-md pre code { background: none; padding: 0; }
.message-md blockquote { border-inline-start: 3px solid rgba(15, 23, 42, .18); padding-inline-start: .8em; color: #475569; }
.message-md table { border-collapse: collapse; }
.message-md th, .message-md td { border: 1px solid rgba(15, 23, 42, .15); padding: .25em .6em; }
.message-md hr { border: 0; border-top: 1px solid rgba(15, 23, 42, .15); margin: .9em 0; }

/* file manager */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; font-size: .92rem; overflow-wrap: anywhere; text-align: left; }
.crumbs span { color: var(--muted); }
.file-link { font-weight: 600; overflow-wrap: anywhere; unicode-bidi: isolate; }
.file-dir { color: var(--ink); }
textarea.code { font-weight: 400; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; line-height: 1.5; min-height: 420px; white-space: pre; overflow: auto; tab-size: 4; text-align: left; }
textarea[readonly] { background: #f6f8fc; }
/* the colored editor that takes a code text's place (static/editor.js); its own look is
   in the editor, in a shadow root of its own */
.code-editor { display: block; width: 100%; min-width: 0; }
/* an example in an empty field must not read as a value that was entered */
textarea::placeholder, input::placeholder { color: #9aa6ba; font-weight: 400; opacity: 1; }
.btn-danger, .btn-small.btn-danger { background: #fce7f3; color: #be185d; }
.btn-danger:hover, .btn-small.btn-danger:hover { background: #fbcfe8; }
.log { margin: 0; padding: 14px 16px; max-height: 620px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: #0f1b2d; color: #d9e4f5; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; }
/* The mail log in columns: an address, a subject or a path breaks inside its cell instead of making the table wider than the screen. */
.mail-log td { overflow-wrap: anywhere; }
.mail-log .mail-part { display: block; unicode-bidi: isolate; }
.mail-log .mail-part[dir="ltr"] { font-size: .86rem; color: var(--ink-soft); }
/* every piece of a row keeps to the page's side, whatever direction its own text has */
html[dir="rtl"] .mail-log .mail-part, html[dir="rtl"] .mail-log td small { text-align: right; }
html:not([dir="rtl"]) .mail-log .mail-part, html:not([dir="rtl"]) .mail-log td small { text-align: left; }
.stats .mail-top { grid-column: 1 / -1; }
.mail-log .mail-part[dir="ltr"] { min-width: 15ch; }
/* five columns need a wide screen: under it the sender and the file move under the subject, as on a phone */
@media (max-width: 1180px) {
  .mail-log .hide-narrow { display: none; }
  .table.mail-log td small.show-narrow { display: block !important; }
}
/* on a phone each mail is a block of its own: the time, the recipients, the subject, and under it the sender and the file */
@media (max-width: 640px) {
  .mail-log thead { display: none; }
  .mail-log, .mail-log tbody, .mail-log tr, .mail-log td:not(.hide-narrow) { display: block; }
  .table-wrap .table.mail-log tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .table-wrap .table.mail-log tr:last-child { border-bottom: 0; }
  .table-wrap .table.mail-log td { padding-block: 2px; border-bottom: 0; }
  .table-wrap .table.mail-log td[dir="ltr"] { font-size: .8rem; color: var(--muted); }
}
/* The error log and the access log in columns (site_logs.html): the summary, the serious lines in red and the
   warnings in orange, the notes in grey; what a line holds breaks inside its cell, as in the mail log. */
.log-summary { display: grid; gap: 8px; margin-bottom: 14px; }
.log-counts { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 0; }
.log-critical { margin: 6px 0 0; padding-inline-start: 18px; display: grid; gap: 6px; }
.log-tips { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.log-tip-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.log-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.log-filter .field { min-width: 160px; }
.log-table td { overflow-wrap: anywhere; vertical-align: top; }
.log-table .log-msg, .log-table .log-file, .log-table .log-url, .log-table .log-agent { display: block; unicode-bidi: isolate; }
.log-table .log-file, .log-table .log-url, .log-table .log-agent { font-size: .84rem; color: var(--ink-soft); }
html[dir="rtl"] .log-table .log-msg, html[dir="rtl"] .log-table bdi, html[dir="rtl"] .log-table td small { text-align: right; }
.log-times { font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.log-table td.log-when, .log-table td.log-ip { white-space: nowrap; overflow-wrap: normal; }
.log-table td.log-comp { overflow-wrap: normal; min-width: 9ch; }
.log-row.log-fatal td, .log-row.log-parse td, .log-row.log-5xx td { background: var(--red-soft); }
.log-row.log-warning td, .log-row.log-4xx td { background: #fff8ec; }
.log-row.log-notice td, .log-row.log-deprecated td { color: var(--muted); }
.log-raw { margin-top: 6px; }
.log-raw summary { font-size: .8rem; }
.log-raw .log { margin-top: 6px; max-height: 320px; }
.log-codes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.log-tops { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.log-tops h4 { font-size: .9rem; margin: 0 0 4px; }
.log-tops ol { margin: 0; padding-inline-start: 22px; }
@media (max-width: 1180px) {
  .log-table .hide-narrow { display: none; }
  .table.log-table td small.show-narrow { display: block !important; }
}
/* What a site's account sent today, above the mail log and on the e-mail tab; under it the staff's own forms. */
.mail-usage { display: grid; gap: 10px; }
.mail-usage-sent { font-size: 1.08rem; font-weight: 600; }
.card .mail-usage-sent { color: var(--ink); }
.mail-usage-staff { display: grid; gap: 10px; justify-items: start; padding-top: 12px; border-top: 1px solid var(--line); }
.mail-usage-staff .fold[open] { justify-self: stretch; }
.table td.mail-sent { white-space: nowrap; }
.table form.row-actions { flex-wrap: nowrap; }
@media (max-width: 640px) {
  .table form.row-actions { flex-wrap: wrap; justify-content: flex-end; }
  .table .pill { margin-bottom: 2px; }
}
.check span { display: grid; gap: 2px; }
.check small { color: var(--muted); font-size: .82rem; font-weight: 400; }
/* a choice's name with a pill beside it (the direct PHP access setting) */
.check-head { font-weight: inherit; }
.check-head .pill { font-style: normal; margin-inline-start: 6px; vertical-align: 1px; }
.checks .check { align-items: flex-start; }
.checks .check input { margin-top: 3px; flex: none; }

/* A card of actions, as on the existing panel's tabs: a name and a line about it on
   one side, the way in on the other. */
.rows { display: grid; }
.rowline { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rowline:first-child { padding-top: 4px; }
.rowline:last-child { border-bottom: 0; padding-bottom: 4px; }
.rowline > div:first-child { min-width: 0; }
.rowline strong { display: block; font-weight: 600; }
.rowline small { display: block; color: var(--muted); font-size: .84rem; }
.rowline .row-actions { align-items: center; flex-wrap: nowrap; }
.rowline select { width: auto; min-width: 120px; }
.rowline > .fold { border-top: 0; padding-top: 0; }
.cron-fields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cron-fields .field span { direction: rtl; text-align: start; }
html[dir="ltr"] .cron-fields .field span { direction: ltr; }
textarea.code.pem { min-height: 0; font-size: .78rem; }
/* a field that continues a fixed beginning: the beginning is shown, the rest is typed */
.affix { display: flex; align-items: stretch; min-width: 0; }
.affix > span { flex: 0 1 auto; min-width: 0; max-width: 62%; display: flex; align-items: center; padding: 0 12px; border: 1px solid #cfd9ea; border-right: 0; border-radius: 10px 0 0 10px; background: #f6f8fc; color: var(--muted); font: 400 .84rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; unicode-bidi: plaintext; }
.affix > span + input { flex: 1 1 0; min-width: 96px; border-radius: 0 10px 10px 0; text-align: left !important; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }
/* a row of filters above a list: the search takes what is left, the choices their own width */
.form.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.form.filters .field { flex: 0 1 190px; min-width: 150px; }
.form.filters .field:first-of-type { flex: 1 1 240px; }
.form.filters .btn { flex: none; }
/* the name of a backup point, as a restore asks for it */
.setname { display: block; white-space: nowrap; color: var(--muted); font: 400 .76rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-align: right; }
html[dir="ltr"] .setname { text-align: left; }
/* what nginx said about a configuration it refused */
.nginx-rejected { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.nginx-said { margin: 8px 0; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, .7); font: 400 .82rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; }
.cron-task { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cron-task:first-child { padding-top: 4px; }
.cron-task:last-child { border-bottom: 0; padding-bottom: 4px; }
.cron-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.cron-when code { white-space: nowrap; font: 600 .95rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.cron-words { color: var(--muted); font-size: .84rem; }
.cron-command { text-align: left; }
.cron-command code { white-space: pre-wrap; overflow-wrap: anywhere; font: 400 .84rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink-soft); }
.cron-task .row-actions { align-items: center; }
.cron-task .fold { border-top: 0; padding-top: 0; }
.cron-task .fold[open] { flex-basis: 100%; }
@media (max-width: 640px) { .cron-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rowline > .fold summary { white-space: nowrap; }
@media (max-width: 640px) {
  .rowline { flex-direction: column; align-items: stretch; }
  .rowline .row-actions { flex-wrap: wrap; }
  .rowline .row-actions > .btn:only-of-type { flex: 1; }
}

/* The main menu in the groups of the existing panel. */
.nav-group { margin: 14px 10px 2px; font-size: .74rem; font-weight: 600; color: var(--muted); }

/* The staff's servers pages. */
.alert-info { background: var(--blue-soft); color: var(--ink-soft); border-color: #d5e1fb; }
h3.sub { margin: 6px 0 0; font-size: .92rem; font-weight: 600; color: var(--ink-soft); }
.stats dd small { font-size: .9rem; font-weight: 400; color: var(--muted); }
.spark { display: block; width: 100%; height: 90px; border-bottom: 1px solid var(--line); }
.spark polyline { fill: none; stroke: var(--blue); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark-mark { stroke: #d9a03c; stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }

/* A staff member looking at the panel in a customer's name. */
.staff-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 16px; border-radius: 10px; background: #fff4e0; color: #6b3f00; border: 1px solid #f1d49a; font-size: .93rem; font-weight: 600; }
.staff-banner form { margin: 0; }

/* A plain list of links. */
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

/* The firewall tab: a bar beside each count. */
.meter-cell { width: 45%; }
.meter-cell meter { width: 100%; height: 10px; }

/* A folding form inside a table row: the row's own line is enough, and its title stays on one line. */
.table .fold { border-top: 0; padding-top: 0; }
.table .fold + .fold, .table .fold + form { margin-top: 10px; }
.table .fold summary { white-space: nowrap; }
.table .fold[open] { min-width: 240px; }
.table meter.usage { display: block; width: 150px; max-width: 100%; height: 8px; margin-top: 6px; }

/* A long value in a table (a DNS text record) wraps anywhere instead of pushing the table wide. */
.table td.wrap-any[dir="ltr"] { white-space: normal; overflow-wrap: anywhere; max-width: 420px; }
/* how a DNS record is served at Cloudflare: a line of its own under the record's value */
.table td .served { display: block; margin-top: 6px; }
/* its switch may break into two lines, so that it does not widen the table on a phone */
.table form.served-switch .btn { white-space: normal; text-align: center; }
.table td.nowrap { white-space: nowrap; }
/* The actions of a table row side by side; a form that was opened takes the row's width. */
.cell-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.cell-actions .fold + form { margin-top: 0; }
.cell-actions .fold[open] { flex-basis: 100%; }
.page-head h1 small { font-size: .6em; font-weight: 500; color: var(--muted); margin-inline-start: 8px; }
pre.pre { margin: 0; font-size: .85rem; }
/* What goes with a deletion: a plain list in the page's own direction. */
.goes { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }

/* Messages: the count in the menu, an unread line, and the body of a message as its sender shaped it. */
.nav-count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .74rem; font-weight: 600; line-height: 20px; text-align: center; }
.table tr.unread td a { font-weight: 700; }
.message-body { line-height: 1.7; overflow-wrap: anywhere; }
.message-body p { margin: 0 0 12px; }
.message-body table { border-collapse: collapse; }
.message-body td, .message-body th { padding: 4px 8px; border: 1px solid var(--line); }
.message-body pre, .message-body code { direction: ltr; text-align: left; white-space: pre-wrap; }

/* the security scan: a suspected file with the lines that drew the attention */
.scan-suspect { flex: 1 1 auto; }
.scan-why { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; flex: none; max-width: 50%; }
.scan-file { overflow-wrap: anywhere; text-align: left; }
.scan-lines { display: grid; gap: 4px; margin-top: 8px; }
.scan-lines code { display: block; direction: ltr; text-align: left; padding: 6px 10px; border-radius: 8px; background: #f4f7fc; font: .8rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

/* the firewall's log: an event opens to show why it was stopped */
.events { display: grid; }
.event { border-bottom: 1px solid var(--line); padding: 12px 0; }
.event:first-child { padding-top: 0; }
.event:last-child { border-bottom: 0; padding-bottom: 0; }
.event summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; list-style: none; }
.event summary::-webkit-details-marker { display: none; }
.event summary::after { content: "⌄"; flex: none; color: var(--muted); font-size: 1.1rem; line-height: 1; transition: transform .15s; }
.event[open] summary::after { transform: rotate(180deg); }
.event summary .pill { margin-inline-start: auto; flex: none; }
.event-main { display: grid; gap: 2px; min-width: 0; }
.event-main strong { font-weight: 600; overflow-wrap: anywhere; text-align: start; }
.event-main small { color: var(--muted); font-size: .84rem; }
.event[open] summary { margin-bottom: 12px; }
.event .facts dd { font-weight: 500; font-size: .9rem; }
.event-request { max-height: 320px; overflow: auto; padding: 10px 12px; border-radius: 8px; background: #f4f7fc; white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; }

/* a message a customer wrote, in a table: its lines kept, never wider than its cell */
.mail-text { white-space: pre-line; overflow-wrap: anywhere; max-width: 28rem; }

/* the agents screen: a command to copy, and a channel's form in one row */
.command { direction: ltr; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; background: #0f1b33; color: #e8eefb; border-radius: 10px; padding: 14px 16px; font-size: .86rem; line-height: 1.55; user-select: all; }
.command code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.channel-form { grid-template-columns: 90px minmax(0, 1fr) 130px auto auto; align-items: end; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.channel-form h3 { align-self: center; margin: 0; }
@media (max-width: 760px) { .channel-form { grid-template-columns: 1fr; } }

/* ====================================================================================
   The interface as it works with app.js: a site's head, tabs that change in place,
   drawers, toasts. Everything here also reads well without the script.
   ==================================================================================== */

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

:root {
  --radius: 12px;
  --shadow: 0 1px 2px rgba(11, 27, 51, .06), 0 2px 8px -2px rgba(11, 27, 51, .08);
  --shadow-lg: 0 12px 32px -8px rgba(11, 27, 51, .22), 0 4px 10px -4px rgba(11, 27, 51, .12);
  --green: #34d399;
  --pink: #f9a8d4;
}

/* ---------- the page ---------- */

.main { max-width: 1280px; width: 100%; }
.card { border: 1px solid #edf1f8; padding: 22px 24px; }
.card > h2 { display: flex; align-items: center; gap: 10px; }
/* StarkGate's shield, as at the top of starkgate.ai, beside what StarkGate serves */
.sg-mark { flex: none; display: inline-block; width: 18px; height: 22px; }
.sg-mark-sm { width: 13px; height: 16px; vertical-align: -3px; margin-inline-end: 6px; }
.btn { height: 44px; border-radius: 10px; }
.btn svg, .tabs svg, .site-avatar svg, .tile svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn svg { width: 16px; height: 16px; }
.btn-small { border-radius: 8px; font-weight: 500; }
.btn-quiet, .btn-small.btn-quiet { background: #fff; color: var(--ink-soft); border-color: var(--line); }
.btn-quiet:hover, .btn-small.btn-quiet:hover { background: #fff; border-color: #c5d3ea; color: var(--ink); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="url"], select { height: 44px; }

/* a button whose form is on its way */
.btn.is-working { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-working::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #1d4ed8; border-inline-end-color: transparent; animation: spin .7s linear infinite; }
form.is-sending { opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- a tab on its way out of the panel (the WordPress sign-in) ---------- */
/* One card in the middle of the tab, from the click to the moment the site is there:
   what is happening, for which site, and a ring that turns. No menu and no site head:
   the tab is not another page of the panel. */
body.transit { display: grid; place-items: center; padding: 24px 16px; }
.transit-main { width: 100%; max-width: 460px; display: grid; gap: 22px; justify-items: center; }
.transit-brand { height: 40px; width: auto; }
.transit-card { width: 100%; background: var(--surface); border: 1px solid #edf1f8; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 36px 28px 32px; display: grid; gap: 10px; justify-items: center; text-align: center; }
.transit-card h1 { font-size: 1.4rem; line-height: 1.3; margin: 6px 0 0; }
.transit-mark { position: relative; width: 84px; height: 84px; display: grid; place-items: center; color: var(--blue-ink); }
.transit-mark svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.transit-spin { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--blue-soft); border-top-color: var(--blue); animation: spin .9s linear infinite; }
.transit-mark-bad { border-radius: 50%; background: #fdecea; color: #b42318; font-size: 2.2rem; font-weight: 700; line-height: 1; }
.transit-site { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.transit-text { margin: 0; color: var(--muted); max-width: 36ch; }
.transit-card .hint { margin: 0; }
.transit-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }
.transit-actions form { margin: 0; }
/* the way in by hand shows only when the browser has not left by itself after a while */
.transit-late { display: grid; gap: 8px; justify-items: center; margin-top: 10px; opacity: 0; visibility: hidden; animation: transit-late .3s 4s forwards; }
.transit-late small { color: var(--muted); max-width: 40ch; }
@keyframes transit-late { to { opacity: 1; visibility: visible; } }
@media (prefers-reduced-motion: reduce) {
  .transit-late { opacity: 1; visibility: visible; animation: none; }
  .transit-spin { animation-duration: 2.4s; }
}

/* ---------- a site's head ---------- */

.site-head { display: flex; align-items: center; gap: 16px 18px; flex-wrap: wrap; }
.site-avatar { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #fff; color: var(--blue); box-shadow: 0 0 0 3px var(--blue), var(--shadow); }
.site-avatar.is-secure { color: #059669; box-shadow: 0 0 0 3px var(--green), var(--shadow); }
.site-avatar svg { width: 26px; height: 26px; }
/* a site's picture from the screenshot service, in the avatar's place: the top of the page */
.site-avatar.has-shot { overflow: hidden; background: var(--line); }
.site-avatar.has-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.backup-shot { float: inline-end; margin-inline-start: 10px; }
.backup-shot img { display: block; width: 64px; height: 40px; object-fit: cover; object-position: top center; border-radius: 6px; border: 1px solid var(--line); }
.site-title { display: grid; gap: 4px; min-width: 0; flex: 1 1 320px; }
.site-back { font-size: .82rem; }
.site-back a { color: var(--muted); text-decoration: none; }
.site-back a:hover { color: var(--blue-ink); text-decoration: underline; }
.site-title h1 { font-size: 1.7rem; font-weight: 600; }
.site-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .86rem; color: var(--muted); }
.site-sub { color: var(--muted); }
.site-sub::before { content: "•"; margin-inline-end: 8px; color: #b7c2d6; }
.site-server { font-size: .86em; white-space: nowrap; }
/* the SSL tab's one sentence about the last attempt (ssl_attempts.go, sslWhy) */
.ssl-why { margin: 0; padding: 10px 12px; border-radius: 10px; background: #f6f8fc; color: var(--ink-soft); font-size: .92rem; }
/* "make a strong password" under a form's password fields */
.pw-gen { display: grid; gap: 8px; justify-items: start; }
.pw-gen .btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-made { display: grid; gap: 6px; justify-items: start; max-width: 100%; }
.pw-made[hidden] { display: none; }
.pw-value { font-size: .95rem; letter-spacing: .02em; overflow-wrap: anywhere; user-select: all; }
.pw-made .hint { margin: 0; }
a.site-server { color: var(--muted); text-decoration: none; }
a.site-server:hover, a.site-server:focus-visible { color: var(--blue-ink); text-decoration: underline; }
.site-actions { display: flex; align-items: center; gap: 8px; flex: none; margin-inline-start: auto; }

/* a menu that opens from a button */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; user-select: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary svg { transform: rotate(180deg); }
.menu-list { position: absolute; z-index: 20; inset-block-start: calc(100% + 6px); inset-inline-end: 0; min-width: 230px; padding: 6px; display: grid; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.menu-list a, .menu-list button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: .92rem; text-align: start; text-decoration: none; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: var(--blue-soft); color: var(--blue-ink); }
.menu-list .menu-danger { color: #be185d; }
.menu-list .menu-danger:hover { background: #fce7f3; color: #be185d; }

/* ---------- a site's tabs ---------- */

.site-tabs { position: sticky; top: 0; z-index: 10; margin: 0; padding: 6px; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; background: #fff; border: 1px solid #edf1f8; border-radius: 14px; box-shadow: var(--shadow); }
.site-tabs::-webkit-scrollbar { display: none; }
.site-tabs a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; font-size: .93rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.site-tabs svg { width: 17px; height: 17px; opacity: .65; }
.site-tabs a:hover { background: var(--blue-soft); color: var(--blue-ink); }
.site-tabs a[aria-current="page"] { background: var(--blue); color: #fff; box-shadow: 0 2px 6px -1px rgba(76, 130, 245, .55); }
.site-tabs a[aria-current="page"] svg { opacity: 1; }

/* a row of an action: a name and a line about it, and the way in */
.rowline { padding: 14px 10px; margin-inline: -10px; border-radius: 10px; transition: background-color .12s ease; }
.rowline:hover { background: #f8faff; }
.rowline strong { display: flex; align-items: center; gap: 8px; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }
.dot-ok { background: var(--green); }

/* ---------- drawers ---------- */

dialog.drawer { position: fixed; inset-block: 0; inset-inline: 0 auto; margin: 0; padding: 0; border: 0; width: min(760px, 100vw); max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; background: var(--bg); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; transition: transform .2s ease; }
dialog.drawer[open] { display: flex; flex-direction: column; }
dialog.drawer[data-size="sm"] { width: min(540px, 100vw); }
dialog.drawer[data-size="lg"] { width: min(1080px, 100vw); }
html[dir="rtl"] dialog.drawer { transform: translateX(100%); }
html[dir="ltr"] dialog.drawer { transform: translateX(-100%); }
html dialog.drawer.is-open { transform: none; }
dialog.drawer::backdrop { background: rgba(11, 27, 51, .34); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.drawer-head { position: relative; flex: none; display: flex; align-items: center; gap: 14px; padding: 16px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.drawer-head h2 { flex: 1; min-width: 0; font-size: 1.25rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-page { flex: none; font-size: .82rem; color: var(--muted); text-decoration: none; }
.drawer-page:hover { color: var(--blue-ink); text-decoration: underline; }
.drawer-close { flex: none; position: relative; width: 38px; height: 38px; border: 0; border-radius: 10px; background: #f1f4f9; cursor: pointer; transition: background-color .12s ease; }
.drawer-close:hover { background: #e3e9f3; }
.drawer-close::before, .drawer-close::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 2px; border-radius: 2px; background: var(--ink-soft); }
.drawer-close::before { transform: rotate(45deg); }
.drawer-close::after { transform: rotate(-45deg); }
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 24px 40px; display: grid; gap: 18px; align-content: start; }
.drawer-body > * { min-width: 0; }
.drawer.is-loading .drawer-head::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: -1px; height: 3px; background: linear-gradient(90deg, transparent, var(--blue), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: slide 1s linear infinite; }
.drawer.is-loading .drawer-body { opacity: .55; pointer-events: none; }
.drawer-body .grid { grid-template-columns: 1fr; }
@keyframes slide { from { background-position: -40% 0; } to { background-position: 140% 0; } }

/* ---------- something is being fetched ---------- */

.busy-bar { position: fixed; z-index: 70; inset-block-start: 0; inset-inline: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--blue), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: slide 1s linear infinite; }
.is-busy main.main { cursor: progress; }

/* ---------- toasts ---------- */

.toasts { position: fixed; z-index: 80; inset-block-start: 16px; inset-inline: 0; margin-inline: auto; width: min(520px, calc(100vw - 32px)); display: grid; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--green); box-shadow: var(--shadow-lg); font-size: .93rem; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-in { opacity: 1; transform: none; }
.toast-error { border-inline-start-color: #ef4444; }
.toast-info { border-inline-start-color: var(--blue); }
.toast-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast-close { flex: none; position: relative; width: 24px; height: 24px; border: 0; border-radius: 6px; background: none; cursor: pointer; }
.toast-close:hover { background: #f1f4f9; }
.toast-close::before, .toast-close::after { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 2px; border-radius: 2px; background: var(--muted); }
.toast-close::before { transform: rotate(45deg); }
.toast-close::after { transform: rotate(-45deg); }

/* ---------- a value to copy ---------- */

.copy { justify-self: start; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--blue-ink); font: inherit; font-size: .82rem; font-weight: 500; cursor: pointer; }
.copy:hover { border-color: #c5d3ea; }
.copy.is-done { color: var(--green-ink); border-color: #c8ebd4; background: var(--green-soft); }

@media (max-width: 760px) {
  .site-avatar { width: 46px; height: 46px; }
  .site-avatar svg { width: 20px; height: 20px; }
  .site-title h1 { font-size: 1.3rem; }
  .site-title { flex: 1 1 0; }
  .site-actions { margin-inline-start: 0; flex: 1 0 100%; }
  .site-tabs { border-radius: 12px; margin-inline: -4px; }
  .drawer-head { padding: 12px 16px; }
  .drawer-body { padding: 16px 16px 32px; }
  .drawer-page { display: none; }
  .menu-list { inset-inline: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  dialog.drawer, .toast { transition: none; }
  .busy-bar, .drawer.is-loading .drawer-head::after, .btn.is-working::after { animation-duration: 2s; }
}

/* ---------- a tab's layout: a wide column and a narrow one ---------- */

.split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }

/* tools of a site: a tile each, the whole of it the way in */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease; }
.tile:hover { color: var(--ink); border-color: #b9cdfb; box-shadow: 0 4px 14px -6px rgba(76, 130, 245, .45); transform: translateY(-1px); }
.tile-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--blue-soft); color: var(--blue-ink); }
.tile-icon svg { width: 21px; height: 21px; }
.tile-text { display: grid; gap: 2px; min-width: 0; }
.tile-text strong { font-weight: 600; font-size: .97rem; }
.tile-text small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.tile:hover .tile-icon { background: var(--blue); color: #fff; }

/* a setting that is on or off: a switch */
.check input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 40px; height: 22px; margin: 0; border-radius: 999px; background: #c3ccdb; cursor: pointer; transition: background-color .15s ease; }
.check input[type="checkbox"]::after { content: ""; position: absolute; inset-block-start: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(11, 27, 51, .3); transition: transform .15s ease; }
.check input[type="checkbox"]:checked { background: var(--blue); }
html[dir="rtl"] .check input[type="checkbox"]:checked::after { transform: translateX(-18px); }
html[dir="ltr"] .check input[type="checkbox"]:checked::after { transform: translateX(18px); }
.check input[type="checkbox"]:disabled { opacity: .5; cursor: default; }
.checks .check input, .check input[type="checkbox"] { margin-top: 1px; }
.check { align-items: flex-start; }
/* fields that matter only while a tick is on (the invoice made out to another name) */
.reveal-on-check:has(> .check input[type="checkbox"]:not(:checked)) .reveal-body { display: none; }

/* the tabs fill their bar */
@media (min-width: 761px) {
  .site-tabs a { flex: 1 0 auto; justify-content: center; padding-inline: 10px; }
}

/* the figures of a site, in a row over its details */
.stats > div { border-color: #edf1f8; border-radius: var(--radius); box-shadow: var(--shadow); }
.site-stats dd { font-size: 1.35rem; }
.site-stats .stat-text { font-size: 1.05rem; padding-top: 4px; }
.site-stats small { font-size: .78rem; color: var(--muted); font-weight: 400; }
.site-stats dd small { display: block; }
/* a size's parts (sites.Size): files, databases, staging copies, when it was read */
.size-parts { display: block; font-size: .82rem; font-weight: 400; color: var(--muted); }
.facts dd .size-parts { margin-top: 2px; }
.facts dd .row-actions { margin-top: 6px; justify-content: flex-end; }
@media (max-width: 760px) { .facts dd .row-actions { justify-content: flex-start; } }
html[dir="rtl"] .site-stats dd[dir="ltr"] { text-align: right; }

/* ---------- a window that is part of the page: its name, a line about it, and the way in ---------- */

details.pop > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; cursor: pointer; }
details.pop > summary::-webkit-details-marker { display: none; }
.pop-title { display: grid; gap: 3px; min-width: 0; }
.pop-title strong { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.pop-title small { color: var(--muted); font-size: .86rem; line-height: 1.45; }
details.pop > summary .btn { flex: none; }
details.pop[open] > summary { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pop-body { display: grid; gap: 14px; }
.drawer-body > .pop-body { background: var(--surface); border: 1px solid #edf1f8; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }

/* in a row of actions the window's button sits where a link would */
.rowline > details.pop { flex: none; }
.rowline > details.pop[open] { flex: 1 0 100%; }
.rowline:has(> details.pop[open]) { flex-wrap: wrap; }

/* switches side by side where the column is wide */
@media (min-width: 1300px) { .split .checks.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; } }

/* on a narrow screen the column that leads comes first */
@media (max-width: 1100px) { .split > .lead { order: -1; } }

.tile-danger .tile-icon { background: #fce7f3; color: #be185d; }
.tile-danger:hover { border-color: #f9a8d4; box-shadow: 0 4px 14px -6px rgba(190, 24, 93, .35); }
.tile-danger:hover .tile-icon { background: #be185d; color: #fff; }
.card > .tiles + .hint, .card > .rows + .hint { margin-top: 2px; }
.tile-off { opacity: .7; }
.tile-off:hover { transform: none; box-shadow: none; border-color: var(--line); }
.tile-off:hover .tile-icon { background: var(--blue-soft); color: var(--blue-ink); }
/* the kinds of a list (automatic and manual backups): a small switch over the list */
.stack > nav.tabs:not(.site-tabs) { padding: 4px; gap: 4px; width: max-content; max-width: 100%; background: #e9eef7; border-radius: 12px; }
.stack > nav.tabs:not(.site-tabs) a { padding: 6px 16px; border-radius: 9px; font-size: .9rem; font-weight: 500; color: var(--ink-soft); }
.stack > nav.tabs:not(.site-tabs) a:hover { background: #fff; color: var(--ink); }
.stack > nav.tabs:not(.site-tabs) a[aria-current="page"] { background: #fff; color: var(--blue-ink); box-shadow: var(--shadow); }
/* in the narrow column of a tab two fields do not fit side by side */
.split > .stack + .stack .pair { grid-template-columns: 1fr; }
.split > .stack + .stack .inline-form { grid-template-columns: 1fr; }

/* ---------- a page's head with its main action beside it ---------- */

.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; }
.head-row > div { display: grid; gap: 6px; min-width: 0; }
.btn-solid { background: var(--blue); color: #fff; box-shadow: 0 2px 8px -2px rgba(76, 130, 245, .6); }
.btn-solid:hover { background: var(--blue-hover); color: #fff; }
.section-title { font-size: .86rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; }

/* ---------- subscriptions: a card each ---------- */

.sub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sub-card { display: grid; gap: 6px; align-content: start; padding: 16px 18px; border: 1px solid #edf1f8; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: border-color .12s ease, box-shadow .12s ease; }
.sub-card:hover { color: var(--ink); border-color: #b9cdfb; box-shadow: 0 4px 14px -6px rgba(76, 130, 245, .45); }
.sub-card.is-current { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(76, 130, 245, .25); }
.sub-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.sub-name strong { font-weight: 600; overflow-wrap: anywhere; }
.sub-card small { color: var(--muted); font-size: .82rem; }
.sub-figures { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; font-size: .84rem; color: var(--muted); }
.sub-figures b { color: var(--ink); font-weight: 600; }
.sub-card .meter { width: 100%; margin: 0; }

/* ---------- a list of sites: a row each ---------- */

.site-rows { display: grid; }
/* domain, subscription, WordPress, disk, the month's traffic, and the buttons. Every row
   is a grid of its own, so no column may take its width from what it holds: the last one
   is as wide as its widest content (the WordPress button and the visit icon) */
.site-rows-head, .site-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) 64px 80px 84px 160px; align-items: center; gap: 14px; }
.site-rows-head { padding: 0 10px 8px; font-size: .78rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.site-row { padding: 10px; margin-inline: 0; border-bottom: 1px solid var(--line); border-radius: 10px; transition: background-color .12s ease; }
.site-row:last-child { border-bottom: 0; }
.site-row:hover { background: #f8faff; }
.site-row-main { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); text-decoration: none; }
.site-row.is-copy .site-row-main { padding-inline-start: 26px; }
.site-avatar-small { width: 36px; height: 36px; box-shadow: 0 0 0 2px var(--blue); }
.site-avatar-small.is-secure { box-shadow: 0 0 0 2px var(--green); }
.site-avatar-small svg { width: 17px; height: 17px; }
.site-row-name { display: grid; gap: 3px; min-width: 0; }
.site-row-name .site-link { font-weight: 600; white-space: normal; overflow-wrap: anywhere; }
html[dir="rtl"] .site-row-name .site-link { text-align: right; }
.site-row-main:hover .site-link { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.site-row-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.site-row-pills:empty { display: none; }
.site-row-meta { min-width: 0; font-size: .88rem; color: var(--ink-soft); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
html[dir="rtl"] .site-row-meta[dir="ltr"] { text-align: right; }
.site-row-end { justify-self: end; display: flex; align-items: center; gap: 8px; }
/* in the list the domain is the way in; the button that says so again stays for the short rows */
.site-rows:not(.site-rows-short) .site-row-open { display: none; }
.site-row-sub small { display: block; color: var(--muted); font-size: .8rem; }
.site-row-id { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.site-row-sub a { color: var(--ink-soft); }
.site-row-sub a:hover { color: var(--blue-ink); }
/* opens the site itself in a new tab, at the row's far end */
.site-row-visit { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); border: 1px solid var(--line); background: #fff; }
.site-row-visit:hover { color: var(--blue-ink); border-color: #c5d3ea; }
.site-row-visit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* "sign in to WordPress" by each WordPress site in the list, as the legacy panel had it */
.site-row-wp { display: inline-flex; align-items: center; gap: 6px; }
/* the sign-in is a form of one button that opens in a tab of its own: the form takes no room of its own */
.wp-signin { display: contents; }
.site-row-wp svg, .site-actions .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.site-rows-short .site-row { grid-template-columns: minmax(0, 1fr) auto; }
.site-rows-short .site-row-meta { display: none; }
.tiles-one { grid-template-columns: 1fr; }
.card-head .search { flex: 0 1 420px; }
/* a site field that shows the matching sites while one types (the sites list, a new ticket) */
.livesearch { position: relative; }
.sites-search .livesearch { flex: 1 1 auto; min-width: 0; }
.sites-search .livesearch-field { width: 100%; height: 40px; }
.sites-search select { height: 40px; flex: 0 0 auto; max-width: 11rem; }
.livesearch .topsearch-results { max-height: min(50vh, 420px); min-width: min(340px, 86vw); inset-inline-end: auto; overflow-x: hidden; }
.card-head .sites-search { flex: 0 1 580px; }
.sites-export { margin: 0 0 8px; }
.site-row-date { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
.card-head .search .btn { height: 40px; }

@media (max-width: 860px) {
  .site-rows-head { display: none; }
  .site-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .site-row-main { grid-column: 1; grid-row: 1; }
  .site-row-meta { font-size: .82rem; color: var(--muted); }
  .site-row-meta:empty { display: none; }
  .site-row-open { display: none; }
  /* on a phone the visit icon stands beside the site's name */
  .site-row-end { grid-column: 2; grid-row: 1; align-self: start; }
  .site-row-size:not(:empty)::before { content: attr(data-label) " "; }
  .head-row .btn-solid { width: 100%; }
}
/* on a phone the subscriptions are one row that scrolls sideways, so the sites stay near the top */
@media (max-width: 760px) {
  .sub-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: none; }
  .sub-cards::-webkit-scrollbar { display: none; }
  .sub-card { scroll-snap-align: start; }
}

/* ====================================================================================
   What every page and every drawer shares: tables, choices, folding forms, figures
   inside a card, notes.
   ==================================================================================== */

h1 { font-size: 1.6rem; font-weight: 600; }
.page-head p { font-size: .95rem; }

/* links in lists and tables read as names, not as underlined text */
.table a:not(.btn), .ticket-link, .file-link, .plain-list a, ul.plain a { text-decoration: none; font-weight: 600; }
.table a:not(.btn):hover, .ticket-link:hover, .file-link:hover, .plain-list a:hover, ul.plain a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* tables */
.table-wrap { margin-inline: 0; border: 1px solid var(--line); border-radius: 10px; }
.table th { padding: 10px 12px; background: #f6f8fc; font-size: .78rem; }
.table th:first-child { border-start-start-radius: 10px; }
.table th:last-child { border-start-end-radius: 10px; }
.table td { padding: 11px 12px; }
.table tbody tr:hover td { background: #fafcff; }
.table .btn-small { height: 30px; padding: 0 12px; font-size: .84rem; }

/* figures inside a card are details, not headlines */
.card .stats { gap: 10px; }
.card .stats > div { padding: 12px 14px; background: #f8faff; border-color: #e9eef8; box-shadow: none; border-radius: 10px; }
.card .stats dt { font-size: .78rem; }
.card .stats dd { font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }

/* one of several: a radio button drawn like the switches */
input[type="radio"] { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border: 2px solid #b7c2d6; border-radius: 50%; background: #fff; cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease; }
input[type="radio"]:hover { border-color: var(--blue); }
input[type="radio"]:checked { border-color: var(--blue); box-shadow: inset 0 0 0 4px #fff; background: var(--blue); }
input[type="radio"]:disabled { opacity: .5; cursor: default; }
label.check:has(input[type="radio"]) { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; transition: border-color .12s ease, background-color .12s ease; }
label.check:has(input[type="radio"]:checked) { border-color: #b9cdfb; background: #f6f9ff; }
label.check:has(input:disabled) { cursor: default; }
/* the form that begins a cloud server: only the fields of the kind that is chosen */
#server-new:has(input[name="kind"][value="shared"]:checked) .only-private,
#server-new:has(input[name="kind"][value="private"]:checked) .only-shared { display: none; }

/* a form that opens from its own line */
.fold { border-top: 0; padding-top: 0; }
.fold > summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; padding: 5px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .86rem; font-weight: 500; color: var(--blue-ink); user-select: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: ""; width: 7px; height: 7px; border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.fold[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.fold > summary:hover { border-color: #c5d3ea; }
.fold[open] > summary { margin-bottom: 12px; background: var(--blue-soft); border-color: #d5e1fb; }
.fold[open] { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcff; }

/* fields */
.field > span, .field > label { color: var(--ink); }
.field .hint, .field + .hint { margin-top: -2px; }
textarea { min-height: 96px; }

/* notes */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-inline-start-width: 4px; }
.alert > * { min-width: 0; }
.alert-ok { border-inline-start-color: var(--green); }
.alert-error { border-inline-start-color: #ef4444; }
.alert-info { border-inline-start-color: var(--blue); }
.alert:has(> p + *), .alert:has(> code) { display: grid; }
.card-note { background: #f8fbff; border-color: #dbe7fd; }

/* a list of what a customer holds (devices, invitations) */
.sessions li { padding: 12px 0; }
/* a form that opens from a row of actions takes the row's width */
.rowline > .fold { flex: none; }
/* closed, it stands where the row's button stands and looks like one */
.rowline > .fold:not([open]) > summary { height: 44px; padding: 0 16px; border-color: transparent; border-radius: 8px; background: #dbeafe; color: #1d4ed8; font-size: .88rem; font-weight: 500; white-space: nowrap; }
.rowline > .fold:not([open]) > summary:hover { background: #bfdbfe; border-color: transparent; }
.rowline > .fold[open] { flex: 1 0 100%; }
.rowline:has(> .fold[open]) { flex-wrap: wrap; }
.fold[open] > form, .fold[open] > .form { display: grid; gap: 12px; }
/* on a phone a row of actions is a column: a form that opens in it must not start a second column */
@media (max-width: 640px) {
  .rowline:has(> .fold[open]), .rowline:has(> details.pop[open]) { flex-wrap: nowrap; }
  .rowline > .fold[open], .rowline > details.pop[open] { flex: none; }
}
/* ... and the menu of a site opens across the row of its buttons, inside the page */
@media (max-width: 760px) {
  .site-actions { position: relative; }
  .site-actions .menu { position: static; }
  .site-actions .menu-list { inset-inline: 0; min-width: 0; }
}
/* a name written left to right (a server, a domain) as a page's title keeps to the page's side */
html[dir="rtl"] .page-head h1[dir="ltr"] { text-align: right; }

/* =====================================================================
   A drawer is one window: white, with its parts divided by a line and
   not each in a card of its own. Three widths: a short form, a form,
   a table.
   ===================================================================== */
dialog.drawer { width: min(640px, 100vw); background: var(--surface); }
dialog.drawer:focus { outline: none; }
dialog.drawer[data-size="sm"] { width: min(500px, 100vw); }
dialog.drawer[data-size="lg"] { width: min(940px, 100vw); }
.drawer-body { padding: 4px 28px 40px; gap: 0; }
.drawer-body .stack:has(> .card), .drawer-body .stack:has(> form > .card) { gap: 0; }
.drawer-body .card, .drawer-body > .pop-body { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 22px 0; }
.drawer-body > .card:first-child:not(.card-note), .drawer-body > .pop-body:first-child, .drawer-body > .stack:first-child > .card:first-child:not(.card-note),
.drawer-body > .stack:first-child > form:first-child > .card:first-child:not(.card-note), .drawer-body > form:first-child > .card:first-child:not(.card-note) { border-top: 0; }
.drawer-body .card > h2 { font-size: 1.02rem; }
/* a note stays a box of its own */
.drawer-body .card.card-note { margin-block: 16px; padding: 16px 18px; background: #f8fbff; border: 1px solid #dbe7fd; border-radius: 12px; }
.drawer-body .card.card-note + .card { border-top: 0; }
.drawer-body > .alert, .drawer-body > .stack > .alert { margin-top: 18px; }
@media (max-width: 720px) {
  .drawer-body { padding: 0 16px 32px; }
}

/* a list whose values are written left to right keeps its arrow clear of them */
html[dir="rtl"] select[dir="ltr"] { background-position: right 14px center; }

/* nine tabs in one row: tighter, and below a wide screen only the open tab keeps its icon */
.site-tabs a { padding: 8px 12px; gap: 6px; font-size: .9rem; }
@media (min-width: 901px) and (max-width: 1480px) {
  .site-tabs a:not([aria-current="page"]) svg { display: none; }
}

/* two fields side by side each start at the top, whatever their heights */
.pair { align-items: start; row-gap: 18px; }
/* what an action does, as a list with a mark before each line */
.goes { list-style: none; padding: 0; }
.goes li { position: relative; padding-inline-start: 20px; }
.goes li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* the actions of a table row stay on one line; a form that was opened takes the row's width */
.cell-actions { flex-wrap: nowrap; }
.cell-actions:has(> .fold[open]) { flex-wrap: wrap; }
.table td:has(> .cell-actions) { width: 1%; }
@media (max-width: 720px) {
  .cell-actions { flex-wrap: wrap; }
}

/* the customer's servers, in the same rows as the sites */
.server-rows-head, .server-rows .site-row { grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)) 84px; }
.site-row-ip { font-size: .8rem; color: var(--muted); }
@media (max-width: 860px) {
  .server-rows .site-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* plans to choose from, as cards: the name, the monthly price, what the plan holds */
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.plan { position: relative; display: grid; gap: 12px; align-content: start; padding: 18px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease, background-color .12s ease; }
.plan:hover { border-color: #b7c5dc; }
.plan:has(input:checked) { border-color: var(--blue); background: #f8fbff; box-shadow: 0 0 0 3px rgba(13, 105, 240, .14); }
.plan:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(13, 105, 240, .25); }
.plan > input[type="radio"] { position: absolute; inset-block-start: 18px; inset-inline-end: 16px; margin: 0; }
.plan-name { font-size: 1.05rem; font-weight: 700; padding-inline-end: 30px; }
.plan-price { display: grid; gap: 2px; }
.plan-price small { font-size: .78rem; color: var(--muted); }
.plan-price b { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
html[dir="rtl"] .plan-price b[dir="ltr"] { text-align: right; }
.plan-facts { display: grid; gap: 7px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
.plan-facts > span { display: flex; justify-content: space-between; gap: 12px; }
.plan-facts b { font-weight: 600; color: var(--ink); }
.plan-year { font-size: .84rem; color: var(--muted); }

/* a field with its unit beside it */
.with-unit { display: flex; align-items: center; gap: 8px; }
.with-unit input { flex: 1; min-width: 0; }
.with-unit .hint { flex: none; min-width: 1.8em; }
div.plan { cursor: default; }
.plan.is-current { border-color: #b5e3cd; background: #f6fcf9; }
.plan.is-off { opacity: .62; }
.plan.is-current:hover, .plan.is-off:hover, div.plan:hover { border-color: var(--line); }
.plan.is-current:hover { border-color: #b5e3cd; }

/* a row of figures that takes as many as it is given */
.stats.stats-auto { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }

/* ---------- the staff area: one search, the first page, a customer ---------- */

.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; margin: calc(-1 * clamp(20px, 3.4vw, 44px)) calc(-1 * clamp(20px, 3.4vw, 44px)) 0; padding: 12px clamp(20px, 3.4vw, 44px); background: rgba(248, 249, 253, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topsearch { position: relative; flex: 1 1 auto; max-width: 620px; margin: 0; }
.topsearch > svg { position: absolute; inset-inline-start: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.topsearch input[type="search"] { width: 100%; height: 44px; padding: 0 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: .95rem; box-shadow: var(--shadow); -webkit-appearance: none; appearance: none; }
.topsearch input[type="search"]::placeholder { color: var(--muted); }
.topsearch input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.topsearch input[type="search"]:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.topsearch kbd { position: absolute; inset-inline-end: 12px; top: 50%; margin-top: -11px; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: #f6f8fc; color: var(--muted); font: 600 .76rem/20px var(--font); text-align: center; pointer-events: none; }
.topsearch input:focus ~ kbd { display: none; }
.topsearch-results { position: absolute; z-index: 40; top: calc(100% + 6px); inset-inline: 0; max-height: min(70vh, 560px); overflow-y: auto; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
/* a field that offers what it may mean while one types (the server of the staff's SSH form) */
.suggest { position: relative; display: block; }
.suggest > input { width: 100%; }
.suggest-list { position: absolute; z-index: 30; top: calc(100% + 6px); inset-inline: 0; display: grid; gap: 1px; max-height: min(50vh, 340px); overflow-y: auto; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 400; }
.suggest-list[hidden] { display: none; }
.suggest-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 10px; border-radius: 8px; color: var(--ink); cursor: pointer; }
.suggest-item.is-active { background: var(--blue-soft); }
.suggest-main { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-side { flex: 0 1 auto; min-width: 0; max-width: 55%; font-size: .84rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-none { padding: 10px; color: var(--muted); font-size: .9rem; }
.hits { display: grid; gap: 1px; }
.hits-kind { padding: 8px 10px 4px; font-size: .74rem; font-weight: 600; color: var(--muted); }
.hits-none { padding: 14px 10px; color: var(--muted); font-size: .92rem; }
.hit { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.hit:hover, .hit.is-active { background: var(--blue-soft); color: var(--ink); }
.hit-main { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit-side { flex: 0 1 auto; min-width: 0; max-width: 55%; font-size: .84rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit-all { justify-content: center; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; color: var(--blue-ink); font-weight: 600; font-size: .9rem; }

.count { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 999px; background: #eef1f6; color: var(--muted); font-size: .76rem; font-weight: 600; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }

.admin .nav { overflow-y: auto; min-height: 0; scrollbar-width: thin; }
.admin .nav a { padding: 8px 12px; }
.admin .nav-group { color: #8fa1bd; }
.admin .nav .nav-count { margin-inline-start: auto; }

/* what waits for someone */
.watch { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.watch-item { position: relative; display: grid; align-content: start; gap: 2px; padding: 18px 18px 14px; background: var(--surface); border: 1px solid #edf1f8; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; overflow: hidden; }
.watch-item::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--green); }
.watch-item:hover { border-color: #c5d3ea; color: var(--ink); }
.watch-item strong { font-size: 1.9rem; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.watch-item span { font-size: .92rem; font-weight: 600; }
.watch-item small { font-size: .8rem; color: var(--muted); }
.watch-item.is-warn::before { background: #f5a524; }
.watch-item.is-warn strong { color: #8a5200; }
.watch-item.is-bad::before { background: #e5484d; }
.watch-item.is-bad strong { color: var(--red-ink); }
@media (max-width: 1400px) { .watch { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .watch { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.switches { display: grid; }
.switches li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.switches li:last-child { border-bottom: 0; }
.switches small { color: var(--muted); font-size: .8rem; }

.linklist { display: grid; }
.linklist li + li { border-top: 1px solid var(--line); }
.linklist a, .linklist .linkrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; text-decoration: none; min-width: 0; }
.linklist a > span:first-child, .linklist .linkrow > span:first-child { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.linklist .linkrow > span:first-child { font-weight: 500; color: var(--ink); }
.linklist small { flex: none; font-size: .8rem; font-weight: 400; color: var(--muted); }
.linklist .linkrow > span:first-child small { display: block; }
.linklist .linkrow > .pill { flex: none; }
.table td small a:not(.btn) { font-weight: 500; }
.linklist a:hover > span:first-child { text-decoration: underline; text-underline-offset: 3px; }

.split.split-side { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
@media (max-width: 1100px) { .split.split-side { grid-template-columns: 1fr; } }
.table-tight td { padding: 8px 12px; font-size: .88rem; }
.table tr.is-over td { color: var(--muted); }

/* the request to have a site moved over: the fields of the way that was chosen */
.migration-form .only-panel, .migration-form .only-backup { display: none; }
.migration-form:has(input[name="kind"][value="panel"]:checked) .only-panel,
.migration-form:has(input[name="kind"][value="backup"]:checked) .only-backup { display: grid; }
/* words somebody typed, shown as they were typed */
.said { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #f8faff; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .93rem; }
.card form + form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

/* a part of a staff page that an address points at stays clear of the search bar */
.admin .main [id] { scroll-margin-top: 84px; }

/* an action on the staff's site page that takes a value */
.rowline.rowline-form { flex-direction: column; align-items: stretch; gap: 10px; }
.rowform { display: flex; gap: 8px; margin: 0; }
.rowform input[type="text"] { flex: 1; min-width: 0; height: 36px; }
.rowform .btn { flex: none; }
.card > .rows + .rows { border-top: 1px solid var(--line); }
.card > .rows + .rows .rowline:first-child { padding-top: 14px; }
.card > .rows + .hint { margin-top: 8px; }

/* a customer, at the head of their page */
.who-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 18px; }
.who-avatar { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); font-size: 1.4rem; font-weight: 700; text-transform: uppercase; }
.who-title { flex: 1 1 320px; min-width: 0; display: grid; gap: 6px; }
.who-title h1 { overflow-wrap: anywhere; }
.who-line { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.who-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.who-actions form { margin: 0; }
@media (max-width: 760px) {
  .topbar { position: static; }
  .topsearch kbd { display: none; }
  .who-actions { flex: 1 0 100%; }
  .who-actions form, .who-actions > .btn { flex: 1; }
  .who-actions form .btn { width: 100%; }
}

/* the arguments of a call in the MCP server's log (staff pages) */
code.args { font-size: .8125rem; white-space: normal; word-break: break-all; }

/* ---------- the assistant's drawer (assistant.js, docs/MIMO.md) ----------
   The drawer is an element of its own at the far edge of the page, with a sheet of
   its own inside (assistant.css). Here is only how the page gives way to it: by the
   width of the closed strip, and by the drawer's width when it is open. */
#mimo { position: fixed; z-index: 60; inset-block: 0; inset-inline-end: 0; width: 56px; }
html.mimo-open #mimo { width: 400px; }
html.mimo-rail .shell { margin-inline-end: 56px; transition: margin .25s ease; }
html.mimo-open .shell { margin-inline-end: 400px; }
@media (max-width: 900px) {
  /* a phone: a round button in the corner, and the open drawer takes the screen */
  html.mimo-rail .shell, html.mimo-open .shell { margin-inline-end: 0; }
  #mimo { inset-block: auto 18px; inset-inline-end: 18px; width: 52px; height: 52px; }
  html.mimo-open #mimo { inset: 0; width: 100%; height: 100%; }
  html.mimo-open body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { html.mimo-rail .shell { transition: none; } }

/* ---------- the quick menu of a site (site_quick.go, the "quickbar" template) ----------
   A bar of round buttons at the far edge of a site's pages, by the assistant's strip.
   It waits behind the edge with only its handle in sight, and comes out when the pointer
   or the keyboard reaches it, as the legacy panel's bar did. On a narrow screen it is
   not there: the edge is where the page is scrolled. */
.quickbar { display: none; }
@media (min-width: 1024px) {
  .quickbar { position: fixed; z-index: 55; inset-block-start: 50%; inset-inline-end: 0; display: block; padding-inline-end: 12px; transform: translate(calc(var(--quick-out) * 100%), -50%); transition: transform .22s ease .3s, inset-inline-end .25s ease; }
  html[dir="rtl"] .quickbar { --quick-out: -1; }
  html[dir="ltr"] .quickbar { --quick-out: 1; }
  html.mimo-rail .quickbar { inset-inline-end: 56px; }
  html.mimo-open .quickbar { inset-inline-end: 400px; }
  .quickbar:hover, .quickbar:focus-within, .quickbar.is-open, .quickbar.is-peek { transform: translate(0, -50%); transition-delay: 0s; }
  .quickbar:has(.is-sending) { transform: translate(0, -50%); transition-delay: 0s; }
}
@media print { .quickbar { display: none; } }
@media (prefers-reduced-motion: reduce) { .quickbar { transition: none; } }
.quickbar svg, .quick-pick svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* the handle: what is left in sight of a bar that waits, on its inner side */
.quickbar-handle { position: absolute; inset-inline-end: 100%; inset-block-start: 50%; width: 12px; height: 92px; margin-block-start: -46px; padding: 0; border: 0; border-start-start-radius: 10px; border-end-start-radius: 10px; background: var(--blue); box-shadow: 0 4px 14px -4px rgba(55, 117, 237, .55); cursor: pointer; transition: opacity .15s ease, background-color .12s ease; }
.quickbar-handle::before { content: ""; position: absolute; inset-block: -28px; inset-inline: -16px 0; }
.quickbar-handle::after { content: ""; position: absolute; inset: 0; margin: auto; width: 2px; height: 26px; border-radius: 2px; background: rgba(255, 255, 255, .8); }
.quickbar-handle:hover { background: var(--blue-hover); }
.quickbar:hover .quickbar-handle, .quickbar:focus-within .quickbar-handle, .quickbar.is-peek .quickbar-handle { opacity: 0; }
.quickbar.is-open .quickbar-handle, .quickbar .quickbar-handle:focus-visible { opacity: 1; }
/* a bar that waits holds nothing the keyboard can land on but its handle */
.quickbar-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); visibility: hidden; transition: visibility 0s linear .52s; }
.quickbar:hover .quickbar-card, .quickbar:focus-within .quickbar-card, .quickbar.is-open .quickbar-card, .quickbar.is-peek .quickbar-card { visibility: visible; transition-delay: 0s; }
.quickbar-list { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.quickbar-list li[hidden], .quickbar-edit[hidden] { display: none; }
.quickbar-list form { margin: 0; }
.quickbar-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: #8793a8; font: inherit; text-decoration: none; cursor: pointer; transition: background-color .12s ease, color .12s ease, box-shadow .12s ease; }
.quickbar-btn svg { width: 22px; height: 22px; }
.quickbar-btn:hover, .quickbar-btn:focus-visible { background: var(--blue); color: #fff; box-shadow: 0 6px 16px -6px rgba(55, 117, 237, .65); }
/* a button says what it is beside it, on the page's side */
.quickbar-tip { position: absolute; inset-inline-end: calc(100% + 16px); inset-block-start: 50%; transform: translateY(-50%); padding: 6px 11px; border-radius: 9px; background: var(--ink); color: #fff; font-size: .84rem; font-weight: 500; line-height: 1.35; white-space: nowrap; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .12s ease; }
.quickbar-btn:hover .quickbar-tip, .quickbar-btn:focus-visible .quickbar-tip { opacity: 1; }
.quickbar-btn.is-working { background: var(--blue-soft); color: transparent; box-shadow: none; pointer-events: none; }
.quickbar-btn.is-working::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--blue); border-inline-end-color: transparent; animation: spin .7s linear infinite; }
.quickbar-btn.is-working .quickbar-tip { opacity: 0; }
/* the way to choosing the buttons: the bar's own top */
.quickbar-edit { align-self: stretch; margin: -8px -8px 2px; }
.quickbar-edit > summary.quickbar-btn { display: grid; width: 100%; height: 42px; padding: 0; border-radius: 17px 17px 0 0; background: var(--blue); color: #fff; list-style: none; }
.quickbar-edit > summary.quickbar-btn:hover, .quickbar-edit > summary.quickbar-btn:focus-visible { background: var(--blue-hover); box-shadow: none; }
.quickbar-edit > summary.quickbar-btn svg { width: 20px; height: 20px; }
@media (min-width: 1024px) and (max-height: 720px) {
  .quickbar-card, .quickbar-list { gap: 2px; }
  .quickbar-btn { width: 36px; height: 36px; }
  .quickbar-btn svg { width: 19px; height: 19px; }
  .quickbar-edit > summary.quickbar-btn { height: 34px; }
}
/* a button that leads to a place in a tab lands with a little air above the place */
.client-ui .main .card[id] { scroll-margin-top: 18px; }
/* a form's result that the page brings into view after it was sent (app.js arrive), below the sticky tabs */
.client-ui .main [data-arrive] { scroll-margin-top: 84px; }
/* choosing the buttons, in the window the bar's top opens */
.quick-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.quick-pick { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: .93rem; line-height: 1.35; cursor: pointer; transition: border-color .12s ease, background-color .12s ease; }
.quick-pick input { position: absolute; inset-inline-start: 0; inset-block-start: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.quick-pick-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eef1f6; color: #8793a8; transition: background-color .12s ease, color .12s ease; }
.quick-pick-icon svg { width: 18px; height: 18px; }
.quick-pick:hover { border-color: #b9cdfb; }
.quick-pick input:checked + .quick-pick-icon { background: var(--blue); color: #fff; }
.quick-pick input:checked ~ span:last-child { font-weight: 600; }
.quick-pick input:disabled ~ span { opacity: .45; }
.quick-pick:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.quick-pick:has(input:disabled) { cursor: default; border-color: var(--line); }
.quick-pick:has(input:focus-visible) { outline: 3px solid #6398ff; outline-offset: 2px; }

/* ---------- the customer's own tags on sites (site_tags.go) ----------
   A tag is drawn by the number of its colour: whatever shows it takes its three shades
   from the class of that number. */
.tag-c1 { --tag: #3775ed; --tag-soft: #e8f0ff; --tag-ink: #1f4fb8; }
.tag-c2 { --tag: #16a34a; --tag-soft: #e3f6ea; --tag-ink: #166534; }
.tag-c3 { --tag: #d97706; --tag-soft: #fdf0d8; --tag-ink: #92400e; }
.tag-c4 { --tag: #dc2626; --tag-soft: #fde8e8; --tag-ink: #991b1b; }
.tag-c5 { --tag: #7c3aed; --tag-soft: #efe8ff; --tag-ink: #5b21b6; }
.tag-c6 { --tag: #db2777; --tag-soft: #fde7f1; --tag-ink: #9d174d; }
.tag-c7 { --tag: #0d9488; --tag-soft: #dcf5f2; --tag-ink: #115e59; }
.tag-c8 { --tag: #64748b; --tag-soft: #eef1f5; --tag-ink: #334155; }
.tag-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--tag, #94a3b8); }
.tagbar svg, .tag-add svg, .tags-intro svg, .tag-picker svg, .tag-check svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* a tag on a site: a chip that leads to the sites that carry it */
.tag { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 10px; border-radius: 999px; background: var(--tag-soft); color: var(--tag-ink); font-size: .78rem; font-weight: 600; line-height: 1.55; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: box-shadow .12s ease; }
.tag::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--tag); }
.tag:hover { color: var(--tag-ink); box-shadow: inset 0 0 0 1px var(--tag); }
/* the way to a site's tags */
.tag-add { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border: 1px dashed #c4cedd; border-radius: 999px; background: none; color: var(--muted); font-size: .78rem; font-weight: 500; line-height: 1.45; text-decoration: none; transition: border-color .12s ease, background-color .12s ease, color .12s ease; }
.tag-add svg { width: 13px; height: 13px; }
.tag-add:hover, .tag-add[aria-expanded="true"] { border-style: solid; border-color: var(--blue); background: var(--blue-soft); color: var(--blue-ink); }
.site-row-first { display: grid; gap: 7px; min-width: 0; }
/* a row's marks: a staging copy of its own, its manual backups (websites.go) */
.site-mark { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid #dfe5ef; border-radius: 999px; background: #f7f9fc; color: var(--muted); font-size: .78rem; line-height: 1.45; text-decoration: none; transition: border-color .12s ease, background-color .12s ease, color .12s ease; }
.site-mark svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.site-mark b { font-weight: 600; }
.site-mark:hover, .site-mark:focus-visible { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-ink); }
.site-mark-waf.is-pro { border-color: #c9d8f6; background: var(--blue-soft); color: var(--blue-ink); }
.site-mark-waf.is-off { border-style: dashed; background: transparent; color: #9aa4b2; }
.site-mark-waf.is-off svg { opacity: .6; }
/* the list's filters of marks, beside the tags */
.markbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.markchip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.site-row-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding-inline-start: 56px; }
.site-row.is-copy .site-row-tags { padding-inline-start: 82px; }
.site-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 0; }
/* the row of chips that filters the list */
.tagbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 2px 16px; }
.tagchip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-soft); font-size: .88rem; font-weight: 500; line-height: 1.3; text-decoration: none; transition: border-color .12s ease, background-color .12s ease, color .12s ease; }
.tagchip b { padding: 1px 7px; border-radius: 999px; background: #f1f4f9; color: var(--muted); font-size: .74rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tagchip:hover { border-color: var(--tag, var(--blue)); color: var(--tag-ink, var(--blue-ink)); }
.tagchip.is-current { border-color: var(--tag, var(--blue)); background: var(--tag-soft, var(--blue-soft)); color: var(--tag-ink, var(--blue-ink)); font-weight: 600; box-shadow: inset 0 0 0 1px var(--tag, var(--blue)); }
.tagchip.is-current b { background: #fff; color: inherit; }
.tagbar-end { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; }
/* the list, or the same sites tag by tag */
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: #eef1f6; }
.seg a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; color: var(--muted); font-size: .84rem; font-weight: 500; text-decoration: none; }
.seg a svg { width: 15px; height: 15px; }
.seg a:hover { color: var(--ink); }
.seg a.is-current { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(23, 39, 65, .14); }
/* the tags themselves: a name and a colour for each */
.tag-manage > summary { list-style: none; cursor: pointer; }
.tag-manage > summary::-webkit-details-marker { display: none; }
.tag-manage > summary svg { width: 15px; height: 15px; }
.tag-manage[open] { flex: 1 0 100%; order: 9; display: grid; gap: 10px; }
.tag-manage[open] > summary { justify-self: end; background: var(--blue-soft); color: var(--blue-ink); }
.tag-manage-body { display: grid; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fafbfe; }
.tag-manage-body > .hint { margin: 0; }
.tag-edit-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-edit { display: flex; align-items: center; gap: 8px; }
.tag-edit-form { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.tag-edit-form input[type="text"], .tag-new-form input[type="text"], .tags-intro input[type="text"] { flex: 1 1 160px; width: auto; max-width: 280px; min-width: 0; }
.tag-edit-count { min-width: 72px; color: var(--muted); font-size: .8rem; }
.tag-delete svg { width: 15px; height: 15px; }
.tag-new-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.swatches { display: inline-flex; align-items: center; gap: 6px; }
.swatch { position: relative; display: block; cursor: pointer; }
.swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.swatch i { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--tag); transition: box-shadow .12s ease; }
.swatch input:checked + i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--tag); }
.swatch input:focus-visible + i { outline: 3px solid #6398ff; outline-offset: 4px; }
/* a customer with no tag yet: what tags are, and the first one */
.tags-intro { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block: 2px 16px; padding: 12px 14px; border: 1px dashed #c9d5ea; border-radius: 14px; background: #fafcff; }
.tags-intro-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-ink); }
.tags-intro-icon svg { width: 18px; height: 18px; }
.tags-intro-text { flex: 1 1 260px; display: grid; gap: 1px; min-width: 0; }
.tags-intro-text strong { font-size: .95rem; }
.tags-intro-text small { color: var(--muted); font-size: .84rem; line-height: 1.5; }
/* the sites tag by tag */
.tag-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); align-items: start; gap: 14px; }
.tag-card { display: grid; align-content: start; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-top: 3px solid var(--tag, #cbd5e1); border-radius: 14px; background: #fff; }
.tag-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tag-card-title { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); text-decoration: none; }
.tag-card-title strong { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-card-title:hover strong { color: var(--tag-ink, var(--blue-ink)); text-decoration: underline; text-underline-offset: 3px; }
.tag-card-count { flex: none; padding: 1px 9px; border-radius: 999px; background: var(--tag-soft, #f1f4f9); color: var(--tag-ink, var(--muted)); font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tag-card-sites { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.tag-card-sites a { display: flex; align-items: center; gap: 10px; min-width: 0; margin-inline: -8px; padding: 6px 8px; border-radius: 9px; color: var(--ink); text-decoration: none; }
.tag-card-sites a:hover { background: #f5f8ff; }
.tag-board .tag-card-sites .site-avatar { flex: none; width: 32px; height: 32px; border-radius: 9px; box-shadow: none; }
.tag-board .tag-card-sites .site-avatar svg { width: 15px; height: 15px; }
.tag-card-site { min-width: 0; font-size: .92rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-card-more { font-size: .84rem; font-weight: 500; }
.tag-card > .hint { margin: 0; }
/* the chooser of one site's tags, by the site in the list (app.js) */
.tag-picker { position: absolute; z-index: 70; width: 268px; max-width: calc(100vw - 24px); padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); transition: opacity .12s ease; }
.tag-picker[hidden], .tag-picker-new[hidden], .tag-picker-list li[hidden] { display: none; }
.tag-picker.is-busy { opacity: .65; pointer-events: none; }
.tag-picker-field { width: 100%; }
.tag-picker-list { display: grid; gap: 2px; max-height: 248px; margin: 8px 0 0; padding: 0; list-style: none; overflow-y: auto; overscroll-behavior: contain; }
.tag-picker-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; border: 0; border-radius: 9px; background: none; color: var(--ink); font: inherit; font-size: .9rem; text-align: start; cursor: pointer; }
.tag-picker-item:hover, .tag-picker-item:focus-visible { background: #f3f6fc; }
.tag-picker-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-picker-item svg { width: 16px; height: 16px; stroke-width: 2.4; color: var(--tag-ink); opacity: 0; }
.tag-picker-item[aria-pressed="true"] { background: var(--tag-soft); color: var(--tag-ink); font-weight: 600; }
.tag-picker-item[aria-pressed="true"] svg { opacity: 1; }
.tag-picker-new { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 6px; padding: 8px 9px; border: 1px dashed #b9cdfb; border-radius: 9px; background: var(--blue-soft); color: var(--blue-ink); font: inherit; font-size: .88rem; font-weight: 500; text-align: start; cursor: pointer; }
.tag-picker-new svg { width: 16px; height: 16px; }
.tag-picker-new b { font-weight: 700; }
.tag-picker-empty { margin: 8px 4px 2px; }
/* the window of one site's tags */
.tag-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-check { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .92rem; cursor: pointer; transition: border-color .12s ease, background-color .12s ease; }
.tag-check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tag-check svg { width: 15px; height: 15px; stroke-width: 2.4; color: var(--tag-ink); opacity: 0; }
.tag-check input:checked ~ svg { opacity: 1; }
.tag-check input:checked ~ span { font-weight: 600; color: var(--tag-ink); }
.tag-check:hover { border-color: var(--tag); }
.tag-check:has(input:checked) { border-color: var(--tag); background: var(--tag-soft); }
.tag-check:has(input:focus-visible) { outline: 3px solid #6398ff; outline-offset: 2px; }
@media (max-width: 700px) {
  .site-row-tags, .site-row.is-copy .site-row-tags { padding-inline-start: 0; }
  .tagbar-end { margin-inline-start: 0; }
}
.code-area { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; line-height: 1.5; text-align: left; white-space: pre; overflow-wrap: normal; overflow-x: auto; tab-size: 2; }

/* a team notice's controls: take it, mark it handled, let it go on one line, and giving
   it to someone on the next (the cards' line between two forms is not wanted here) */
.notice-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.notice-actions form, .notice-actions form + form { margin: 0; padding-top: 0; border-top: 0; }
.notice-assign { flex-basis: 100%; display: flex; gap: 6px; align-items: center; min-width: 15rem; }
.notice-assign select { height: 34px; flex: 1 1 auto; min-width: 0; max-width: 13rem; font-size: .88rem; }
.notice-state small { white-space: nowrap; }
/* a long address in a notice's lines may break anywhere, so the table fits a narrow card;
   the words of the title and of the labels stay whole */
.notice-what { min-width: 12rem; }
.notice-what small bdi, .notice-what small a { overflow-wrap: anywhere; }
.notice-state-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 6px; }
.notice-state-inline small { display: inline; }
.notice-job { margin-top: 6px; }
.notice-job details { margin-top: 4px; }
.notice-job summary { cursor: pointer; font-size: .88rem; }
.notice-sites ul { margin: 4px 0; padding-inline-start: 1.2rem; font-size: .85rem; overflow-wrap: anywhere; }
.notice-report-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .88rem; max-height: 32rem; overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 6px; margin-top: 4px; }

/* ---------- the firewall tab: the summary, the map, the bars ---------- */
.waf-kpis .waf-kpi-total dd { color: var(--red-ink); }
.waf-hero-body { display: grid; gap: 20px; }
.waf-map { margin: 0; border-radius: var(--radius); background: linear-gradient(180deg, #f7f9fe 0%, #edf2fb 100%); border: 1px solid #edf1f8; overflow: hidden; }
.waf-map svg { display: block; width: 100%; height: auto; }
.waf-heat path { stroke: #ffffff; stroke-width: .6; stroke-linejoin: round; }
.waf-heat .heat1 { fill: #fbdcdc; }
.waf-heat .heat2 { fill: #f6baba; }
.waf-heat .heat3 { fill: #ee9292; }
.waf-heat .heat4 { fill: #e26a6a; }
.waf-heat .heat5 { fill: #cc4040; }
.waf-line-base { fill: none; stroke: #e05252; stroke-opacity: .2; stroke-width: 1.2; }
.waf-line { fill: none; stroke: #e05252; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 14 100; stroke-dashoffset: 14; opacity: 0; animation: waf-fly 2.8s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes waf-fly { 0% { stroke-dashoffset: 14; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { stroke-dashoffset: -100; opacity: 0; } }
.waf-dot { fill: #e05252; fill-opacity: .92; stroke: #ffffff; stroke-width: 1.2; }
.waf-ring { fill: none; stroke: #e05252; stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: waf-pulse 2.8s ease-out infinite; }
@keyframes waf-pulse { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(2.8); opacity: 0; } }
.waf-target-dot { fill: var(--blue); stroke: #ffffff; stroke-width: 1.6; }
.waf-target-ring { fill: var(--blue); fill-opacity: .28; transform-box: fill-box; transform-origin: center; animation: waf-target 2.4s ease-out infinite; }
.waf-target-ring2 { animation-delay: 1.2s; }
@keyframes waf-target { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.waf-map .d1 { animation-delay: .35s; }
.waf-map .d2 { animation-delay: .7s; }
.waf-map .d3 { animation-delay: 1.05s; }
.waf-map .d4 { animation-delay: 1.4s; }
.waf-map .d5 { animation-delay: 1.75s; }
.waf-map .d6 { animation-delay: 2.1s; }
.waf-map .d7 { animation-delay: 2.45s; }
.waf-map .d8 { animation-delay: .5s; }
.waf-map .d9 { animation-delay: 1.6s; }
.waf-map-key { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 8px 14px 10px; font-size: .82rem; color: var(--muted); border-top: 1px solid #edf1f8; background: var(--surface); }
.waf-key-site, .waf-key-attack { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 6px; }
.waf-key-site { background: var(--blue); }
.waf-key-attack { background: #e05252; }
.waf-guard { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 500; color: var(--green-ink); background: var(--green-soft); border-radius: 999px; padding: 4px 12px; }
.waf-guard-dot { width: 8px; height: 8px; border-radius: 50%; background: #22a55a; animation: waf-guard 2s ease-out infinite; }
@keyframes waf-guard { 0% { box-shadow: 0 0 0 0 rgba(34, 165, 90, .5); } 70% { box-shadow: 0 0 0 7px rgba(34, 165, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 165, 90, 0); } }
.waf-legend h3 { font-size: .95rem; margin: 2px 0 12px; }
.waf-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.waf-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; align-items: baseline; }
.waf-bar-name { font-size: .92rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.waf-bar-num { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.waf-bar-num small { color: var(--muted); font-weight: 400; margin-inline-start: 4px; }
.waf-bar { grid-column: 1 / -1; display: block; width: 100%; height: 6px; }
[dir="rtl"] .waf-bar { transform: scaleX(-1); }
.waf-bar-bg { fill: #eef2f9; }
.waf-bar-fill { fill: var(--blue); }
.waf-bar-red { fill: #e05252; }
.waf-events { list-style: none; margin: 0; padding: 0; }
.waf-events li { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.waf-events li:first-child { border-top: 0; padding-top: 2px; }
.waf-event-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pill-attack { flex: none; background: var(--red-soft); color: var(--red-ink); }
.waf-event-url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; color: var(--ink-soft); }
.waf-event-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .84rem; color: var(--muted); }
.waf-legend .waf-bars { display: block; columns: 3 210px; column-gap: 32px; }
.waf-legend .waf-bars li { break-inside: avoid; margin-bottom: 12px; }
@media (prefers-reduced-motion: reduce) {
  .waf-line, .waf-ring, .waf-target-ring { display: none; }
  .waf-line-base { stroke-opacity: .5; }
  .waf-guard-dot { animation: none; }
}

/* ---------- the file manager: the boxes, the actions of a row, the selected items ---------- */
.table .file-pick { width: 2.2rem; padding-inline-end: 0; }
.file-pick input { width: 1.05rem; height: 1.05rem; }
.file-actions { justify-content: flex-end; flex-wrap: nowrap; align-items: center; }
/* a large file's download, and a plugin's own buttons in the plugins folder, are forms beside the row's actions */
.file-actions form, .file-actions form + form { margin: 0; padding-top: 0; border-top: 0; }
.files-bulk { margin: 4px 0 14px; }
.files-bulk .fold > summary { font-weight: 600; }
.files-bulk-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.files-bulk-row:first-of-type { border-top: 0; }
.files-bulk-row .field { flex: 1 1 220px; margin: 0; }
.files-bulk-row .check { align-self: center; }

/* ---------- the file manager: the toolbar, the drawings, the menu ---------- */
.js-only { display: none !important; }
html.js .js-only { display: revert !important; }
html.js label.js-only, html.js p.js-only { display: block !important; }
html.js input.js-only { display: inline-block !important; }
.files-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.files-head .crumbs { margin: 0; }
.files-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.files-tools details.pop > summary { display: inline-flex; }
.files-tools .btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-inline-end: 6px; vertical-align: -2px; }
/* the WordPress users' table: a search and a role to narrow it by, for a site with many users */
.wpusers-tools { align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 12px; }
html.js .wpusers-tools.js-only { display: flex !important; }
.wpusers-tools select { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: .9rem; background: var(--surface); }
.files-filter input { width: 200px; max-width: 100%; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: .9rem; background: var(--surface); }
.files-filter input:focus { outline: 2px solid var(--blue-soft); border-color: var(--blue); }
.files-readonly a { font-weight: 600; }
.file-link { display: inline-flex; align-items: center; gap: 8px; }
.file-icon { display: inline-flex; flex: none; width: 18px; height: 18px; color: var(--muted); }
.file-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.file-icon-folder { color: #e0a526; }
.file-icon-folder svg { fill: #fbe7b5; }
.file-icon-image { color: #2f9e6e; }
.file-icon-code { color: var(--blue-ink); }
.file-icon-archive { color: #8a5cd6; }
.table.files tbody tr[data-file]:has(.file-pick input:checked) { background: var(--blue-soft); }
.table.files tbody tr.is-menu { background: #f3f6fd; box-shadow: inset 3px 0 0 var(--blue); }
.files-tip { margin-top: 10px; }
.files-picked { color: var(--blue-ink); }
.ctx-menu { position: fixed; z-index: 60; min-width: 220px; max-width: calc(100vw - 16px); padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(11, 27, 51, .18), 0 2px 6px rgba(11, 27, 51, .08); }
.ctx-menu[hidden] { display: none; }
.ctx-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .93rem; white-space: nowrap; }
.ctx-menu a[hidden] { display: none; }
.ctx-menu a:hover, .ctx-menu a:focus { background: var(--blue-soft); color: var(--blue-ink); outline: none; }
.ctx-menu a svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ctx-menu .ctx-danger { color: var(--red-ink); }
.ctx-menu .ctx-danger:hover, .ctx-menu .ctx-danger:focus { background: var(--red-soft); color: var(--red-ink); }
.ctx-sep { display: block; height: 1px; margin: 5px 4px; background: var(--line); }
.ctx-sep[hidden] { display: none; }
@media (max-width: 760px) {
  .files-head { flex-direction: column; align-items: stretch; }
  .files-filter input { width: 100%; }
}
/* the tip names a right press and a double press: not on a touch screen */
@media (hover: none), (max-width: 760px) { html.js p.files-tip { display: none !important; } }

/* ---------- choices of a form: boxes to tick, not switches ----------
   A switch reads as "this is on now". What a form will do when it is sent is a box. */
.check.check-box { align-items: flex-start; }
.check.check-box input[type="checkbox"] { appearance: auto; -webkit-appearance: checkbox; width: 18px; height: 18px; margin-top: 2px; border-radius: 4px; background: none; accent-color: var(--blue); transition: none; }
.check.check-box input[type="checkbox"]::after { content: none; }
.check.check-box input[type="checkbox"]:checked { background: none; }
.choices { margin: 0; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 12px; min-width: 0; }
.choices legend { padding: 0 6px; font-size: .86rem; font-weight: 600; color: var(--ink-soft); }

/* ---------- names, addresses and paths read left to right ----------
   The file manager's table and its path, and the firewall's last attacks, are laid out
   left to right: what they hold is file names and addresses. Hebrew in them (a column's
   name, a kind of attack, a country) is set apart and reads as it should. */
.files-head[dir="ltr"] .files-tools { direction: rtl; }
.waf-events[dir="ltr"] .waf-event-meta bdi:not([dir]) { unicode-bidi: isolate; }
.flag { display: inline-block; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: .95em; line-height: 1; margin-inline-end: 6px; vertical-align: -1px; filter: saturate(.85); }
html.no-flags .flag { display: none; }
.table-wrap[dir="ltr"] .table td small, .table-wrap[dir="ltr"] .table td small[dir="ltr"] { text-align: left; }
/* a table that is left to right in both languages (a server's disks and services: what the
   server reports, in English): its cells line up on the left in Hebrew too, as in English */
html[dir="rtl"] .table-wrap[dir="ltr"] .table td[dir="ltr"] { text-align: left; }

/* ---------- the sites page: cards of one height, copies under their site ----------
   The subscriptions' figures and bars sit on one line across a row of cards, whatever
   each card says above them; a site's development copies are drawn hanging from it. */
.sub-card { display: flex; flex-direction: column; gap: 6px; }
.sub-card .sub-figures { margin-top: auto; padding-top: 6px; }
.sub-card .meter, .sub-card .meter-space { flex: none; display: block; height: 6px; }
.site-row.is-copy .site-row-main { position: relative; padding-inline-start: 34px; }
.site-row.is-copy .site-row-main::before { content: ""; position: absolute; inset-inline-start: 16px; top: -14px; width: 12px; height: calc(50% + 14px); border-inline-start: 2px solid #d3ddef; border-bottom: 2px solid #d3ddef; border-end-start-radius: 8px; }

/* ---------- the staff's sign-in: unlike the customers' at a glance ----------
   Staff took the customers' page for theirs (and the other way round) and thought they
   were locked out: this shell is dark and amber, carries a staff badge, and says on top
   whose page it is, with the way to the customers' one. */
.auth-staff .auth-main { background: #fbfaf6; border-top: 5px solid #f2b33d; }
.brand-staff { display: inline-flex; align-items: center; gap: 12px; }
.staff-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #1a2232; color: #ffd27a; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.staff-badge svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.staff-notice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 10px; background: #fff7e3; border: 1px solid #f3d48a; color: #5b4310; font-size: .9rem; line-height: 1.55; }
.staff-notice p { margin: 0; }
.staff-notice a { color: #7a4e00; font-weight: 700; }
.staff-notice-icon { flex: none; display: inline-flex; width: 22px; height: 22px; color: #b07a10; }
.staff-notice-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-staff .auth-card .btn-primary { background: #1a2232; border-color: #1a2232; color: #fff; }
.auth-staff .auth-card .btn-primary:hover { background: #2a3550; border-color: #2a3550; }
.staff-hero {
  background:
    radial-gradient(80% 60% at 85% 8%, rgba(242, 179, 61, .28) 0%, rgba(242, 179, 61, 0) 60%),
    radial-gradient(70% 60% at 10% 100%, rgba(76, 130, 245, .22) 0%, rgba(76, 130, 245, 0) 65%),
    linear-gradient(155deg, #182031 0%, #111827 60%, #0b111c 100%);
}
.staff-hero .hero-kicker { color: #ffd27a; opacity: 1; }
.staff-art { margin-top: 30px; display: grid; gap: 22px; }
.staff-shield { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 22px; background: rgba(242, 179, 61, .14); border: 1px solid rgba(242, 179, 61, .4); color: #ffd27a; }
.staff-shield svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.staff-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.staff-facts li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: .95rem; }
.staff-facts svg { flex: none; width: 20px; height: 20px; fill: none; stroke: #ffd27a; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* the rows take the narrow form by the room the list has, not by the screen: beside the
   menu on a small laptop a list is as narrow as on a phone */
.site-list, .site-rows-short { container-type: inline-size; }
@container (max-width: 820px) {
  .site-rows-head { display: none; }
  /* the name and the visit button on one line, the details on the next, under the name */
  .site-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
  .site-row-main { flex: 1 1 calc(100% - 64px); min-width: 0; }
  .site-row-end { flex: none; align-self: flex-start; }
  .site-row-meta { order: 3; flex: none; font-size: .82rem; color: var(--muted); }
  .site-row-meta:first-of-type { padding-inline-start: 48px; }
  .site-row.is-copy .site-row-meta:first-of-type { padding-inline-start: 82px; }
  .site-row-sub small { display: inline; margin-inline-start: 6px; }
  /* without the head row two sizes side by side say which is which */
  .site-row-size:not(:empty)::before { content: attr(data-label) " "; }
  .site-row-meta:empty { display: none; }
  .site-row-open { display: none; }
}

/* ---------- the firewall's attacks: tables that read left to right ----------
   Times, addresses and paths line up in columns; the address takes what is left and is
   cut with an ellipsis (its whole text is in its title). */
.waf-table { min-width: 640px; }
.waf-table th, .waf-table td { white-space: nowrap; text-align: left; vertical-align: middle; }
.waf-table .waf-when, .waf-table .waf-src { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.waf-table .waf-url { width: 100%; max-width: 0; }
.waf-table .waf-url code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; color: var(--ink); }
.events[dir="ltr"] { container-type: inline-size; }
.event-head, .event summary { display: grid; grid-template-columns: 9.5rem 8.5rem 9rem minmax(0, 1fr) 6.5rem 1rem; align-items: center; gap: 12px; text-align: left; }
.event-head { padding: 0 0 8px; border-bottom: 1px solid var(--line); font-size: .78rem; font-weight: 600; color: var(--muted); }
.event-head::after { content: ""; }
.event summary { justify-content: initial; }
.event summary .pill { margin-inline-start: 0; }
.event-when, .event-src { font-size: .86rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-where { font-size: .86rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-main strong { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.event[open] .event-main strong { white-space: normal; overflow-wrap: anywhere; }
.event-status { justify-self: start; }
.events[dir="ltr"] .facts dt, .events[dir="ltr"] .facts dd { text-align: left; }
.events[dir="ltr"] .event-request { text-align: left; }
@container (max-width: 720px) {
  .event-head { display: none; }
  /* the request and its state on one line; when, from where and which country under it */
  .event summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
  .event-main { order: 0; flex: 1 1 calc(100% - 10rem); min-width: 0; }
  .event-status { order: 1; flex: none; }
  .event summary::after { order: 2; }
  .event-when, .event-src, .event-where { order: 3; flex: none; font-size: .8rem; }
}
/* an entry's details: each value next to its label, left to right */
.events[dir="ltr"] .facts > div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); justify-content: start; }
.events[dir="ltr"] .facts dd { text-align: left; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; font-weight: 500; }
@container (max-width: 720px) { .events[dir="ltr"] .facts > div { grid-template-columns: 1fr; gap: 2px; } }
.events[dir="ltr"] .facts dd bdi { font-family: var(--font); font-size: .9rem; }

/* ---------- the customers' search: its results as a page ---------- */
.hits-page { gap: 2px; }
.hits-page .hit { padding: 10px 12px; border: 1px solid transparent; }
.hits-page .hit:hover { border-color: #d6e2fb; }
.hits-sites { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 12px; }
.hits-sites .hit-main { text-align: left; }
.search-examples { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.search-examples li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.search-examples code { padding: 2px 10px; border-radius: 6px; background: var(--blue-soft); color: var(--blue-ink); font-size: .9rem; }
.search-examples span { color: var(--ink-soft); font-size: .92rem; }

/* the file manager's other pages: a picture of a file, the search's choices, a path in a table */
.file-picture { margin: 14px 0 0; text-align: center; }
.file-picture img { max-width: 100%; max-height: 420px; border: 1px solid var(--line); border-radius: 10px; background: repeating-conic-gradient(#f3f5f9 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
.files-search-by { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.files-fetch { border-top: 1px solid var(--line); padding-top: 14px; }
td.file-path { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; overflow-wrap: anywhere; text-align: left; }
.diff { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; line-height: 1.55; border: 1px solid var(--line); border-radius: 10px; overflow: auto; max-height: 520px; text-align: left; tab-size: 4; }
.diff > div { white-space: pre; padding: 0 12px; min-width: max-content; }
.diff-add { background: var(--green-soft); color: var(--green-ink); }
.diff-del { background: var(--red-soft); color: var(--red-ink); }
.diff-skip { color: var(--muted); text-align: center; background: #f6f8fb; }
.files-goto { display: flex; gap: 6px; align-items: center; }
.files-goto input { height: 34px; width: 170px; font-size: .86rem; }
.files-total { margin-top: 10px; }
/* a listing in pages: where the page stands and how many a page shows above it, the ways to the other pages under it */
.pagebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 12px; font-size: .9rem; color: var(--muted); }
.pagebar p { margin: 0; }
.pagebar .pagebar-sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-inline-start: auto; }
.pagebar-sizes a { padding: 2px 9px; border-radius: 999px; }
.pagebar-sizes a[aria-current] { background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; text-decoration: none; }
.pager-numbers { flex-wrap: wrap; margin-top: 14px; }
.pager-pages { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; }
.pager-pages > * { min-width: 2.1rem; padding: 5px 8px; border-radius: 8px; text-align: center; }
.pager-pages a:hover { background: var(--blue-soft); }
.pager-pages strong { background: var(--blue-soft); color: var(--blue-ink); }
.is-file-drag .files-card { outline: 2px dashed var(--blue); outline-offset: 4px; background: var(--blue-soft); }
.upload-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.upload-list li { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 2px 10px; align-items: center; font-size: .9rem; }
.upload-list .upload-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.upload-list progress { width: 100%; height: 8px; }
.upload-list small { grid-column: 1 / -1; color: var(--muted); }
.upload-list .is-ok small { color: var(--green-ink); }
.upload-list .is-failed small { color: var(--red-ink); }
.files-smart { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--blue-soft); }
.files-smart p { margin: 0; flex: 1 1 320px; font-size: .92rem; }
.files-smart-state { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: 10px; white-space: nowrap; vertical-align: middle; }
.files-smart-version { color: var(--muted); font-size: .82rem; }
table.files td:has(.files-smart-state) { white-space: nowrap; }
/* on a phone the plugins folder keeps "emergency off" on the screen: what WordPress says of a plugin goes under its name, and the row's buttons one under the other */
@media (max-width: 640px) {
  table.files td:has(.files-smart-state) { white-space: normal; overflow-wrap: anywhere; }
  table.files .files-smart-state { display: flex; flex-wrap: wrap; margin: 4px 0 0; }
  table.files .file-actions:has(form) { flex-direction: column; align-items: stretch; }
  table.files .file-actions:has(form) .btn { width: 100%; justify-content: center; }
}
.verify-files { list-style: none; margin: 6px 0 0; padding: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; text-align: left; overflow-wrap: anywhere; }
.verify-files li { padding: 2px 0; }
.verify-files .verify-more { color: var(--muted); font-family: var(--font); }

/* the records of a DNS import, each in a row of fields */
.import-table td { vertical-align: top; }
.import-table input[type="text"], .import-table select { width: 100%; min-width: 9em; height: 38px; padding: 6px 10px; font-size: .88rem; }
.import-table input[type="checkbox"] { margin-top: 11px; }
.import-table .import-value { display: flex; gap: 6px; min-width: 13em; }
.import-table .import-value .import-num { flex: none; width: 4.6em; min-width: 0; }
.import-table .import-note, .import-table .import-problem { display: block; margin-top: 4px; color: var(--muted); }
.import-table .import-problem { color: var(--red-ink); min-width: 12em; max-width: 18em; }
.import-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.import-list code { white-space: pre-wrap; word-break: break-all; }

/* the panel's connections: what each is, where its key is kept, what the last check found */
.conn-table td { vertical-align: top; }
.conn-table td small { display: block; color: var(--muted); font-size: .82rem; }
.conn-table .conn-env { display: block; font-size: .78rem; white-space: normal; word-break: break-word; }
.conn-table .conn-note { max-width: 26em; white-space: normal; word-break: break-word; text-align: left; }
.conn-table tr.conn-edit td { border-top: 0; padding-top: 0; }
.conn-table .conn-forget { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
/* a form under a row is as wide as the screen shows, not as wide as the table scrolls */
.conn-table tr.conn-edit .fold { max-width: calc(100vw - 7.5rem); }

/* Bot protection on the staff's site page: what each of StarkGate's four levels does
   with each kind of client, as a matrix of dots that fits the page's narrow column.
   The word of each dot is in its label and in the legend under the table. */
.bot-matrix th { white-space: normal; text-align: center; padding-inline: 2px; font-size: .74rem; }
.bot-matrix th:first-child { text-align: start; }
.bot-matrix td { padding-inline: 4px; }
.bot-matrix td:first-child { overflow-wrap: anywhere; }
.bot-matrix .bot-cell { text-align: center; vertical-align: middle; width: 2.7rem; padding-inline: 2px; }
.bot-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; }
.bot-pass { background: var(--green-ink); }
.bot-check { background: #d98a00; border-radius: 3px; }
.bot-refuse { background: var(--red-ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; }
.bot-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .85rem; margin-top: 8px; }
.bot-legend > span { white-space: nowrap; }

/* the firewall's switches on the staff's site page: a row of small forms that has to
   wrap in the page's narrow column, or the whole page scrolls sideways */
.rowline-form .stack > .row-actions { flex-wrap: wrap; }

/* ---------- the DNS tab ---------- */
/* where the records are kept: a strip above the table */
.dns-where { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; }
.dns-where-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-soft); color: var(--blue-ink); }
.dns-where-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dns-where.is-cloudflare .dns-where-icon { background: #fff1e2; color: #d9660b; }
.dns-where-text { flex: 1 1 320px; min-width: 0; display: grid; gap: 4px; }
.dns-where-text strong { font-size: 1.02rem; line-height: 1.45; }
.dns-where-text strong .pill { margin-inline-start: 6px; }
.dns-where-text small { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.dns-where-ns { display: grid; gap: 4px; justify-items: start; font-size: .8rem; color: var(--muted); }
.dns-where-ns code { font: 500 .8rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink-soft); background: #f6f8fc; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }

/* the records: the tools above the table, the kinds to show, the table */
.dns-head { margin-bottom: 14px; }
.dns-head h2 { margin: 0; }
.dns-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dns-tools .menu { position: relative; }
.dns-tools details.pop > summary, .dns-table details.pop > summary { display: inline-flex; padding: 0; border: 0; }
.dns-tools .btn svg, .dns-table .btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; }
.dns-tools .btn svg, .dns-table .btn:not(.btn-danger) svg { margin-inline-end: 6px; }

.dns-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.dns-kind { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-soft); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.dns-kind span { color: var(--muted); font-weight: 500; font-size: .78rem; }
.dns-kind:hover { border-color: var(--blue); color: var(--blue-ink); }
.dns-kind[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.dns-kind[aria-pressed="true"] span { color: rgba(255, 255, 255, .82); }

.dns-type { display: inline-block; min-width: 56px; padding: 3px 8px; border-radius: 6px; background: #eef1f6; color: var(--ink-soft); font: 700 .74rem/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; text-align: center; }
.dns-type-a, .dns-type-aaaa { background: var(--blue-soft); color: var(--blue-ink); }
.dns-type-cname { background: #f1ebfe; color: #6a3fc7; }
.dns-type-mx { background: var(--green-soft); color: var(--green-ink); }
.dns-type-txt { background: #fff4d6; color: #8a5a00; }
.dns-type-srv { background: #e2f6f5; color: #0f6e68; }

/* the names that are only read aloud (.sr-only) stand out of the flow: the table's frame holds
   them, or on a phone they would widen the whole page past the table that scrolls */
.dns-card .table-wrap { position: relative; }
.dns-table td { vertical-align: middle; }
.dns-table td.dns-name { font-weight: 600; color: var(--ink); }
/* a value breaks anywhere when it is long (a key); it still keeps a width one can read, and on a
   phone the table scrolls sideways within its frame */
.dns-table td.dns-value { min-width: 190px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .83rem; }
.dns-table .dns-acts { width: 1%; white-space: nowrap; }
.dns-table .cell-actions { justify-content: flex-end; gap: 6px; flex-wrap: nowrap; }
.dns-table .btn-small.btn-danger { padding-inline: 9px; }
.dns-none { margin: 14px 0 0; }

/* how a record is served at Cloudflare: through it (the orange cloud) or around it */
.dns-proxy { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: .8rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.dns-proxy svg { width: 18px; height: 18px; fill: #c4cbd8; stroke: none; }
.dns-proxy.is-on { border-color: #f6c391; background: #fff6ec; color: #b4530a; }
.dns-proxy.is-on svg { fill: #f48120; }
button.dns-proxy:hover { border-color: var(--blue); }
.dns-proxy.is-still { cursor: default; }

/* a mail service's own fields show when that service is the one chosen */
.dns-mail-form .mail-extra { display: none; }
.dns-mail-form:has(option[value="zoho"]:checked) .mail-extra-zoho,
.dns-mail-form:has(option[value="office365"]:checked) .mail-extra-office365 { display: grid; }
/* the review of a mail service's change */
.alert-warn { background: #fff4e0; color: #6b4100; border-color: #f5d9a8; border-inline-start-color: #e08a00; }
.mail-review-table td, .mail-review-change dd { font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: .86rem; }
.mail-review-change del { text-decoration: none; background: var(--red-soft); color: var(--red-ink); border-radius: 4px; padding: 1px 4px; }
.mail-review-change ins { text-decoration: none; background: var(--green-soft); color: var(--green-ink); border-radius: 4px; padding: 1px 4px; }
.mail-review-change + .mail-review-change { margin-top: 14px; }

/* a record's form, in the window that opens from the table */
html .dns-form [hidden], html.js .dns-form [hidden] { display: none !important; }
.dns-host { display: flex; align-items: stretch; min-width: 0; }
/* what is typed stands against the domain that follows it, so that the two read as one name */
.dns-host input { flex: 1 1 0; min-width: 90px; border-radius: 10px 0 0 10px; text-align: right !important; }
.dns-host > span { flex: 0 1 auto; max-width: 60%; display: flex; align-items: center; padding: 0 12px; border: 1px solid #cfd9ea; border-left: 0; border-radius: 0 10px 10px 0; background: #f6f8fc; color: var(--muted); font: 400 .84rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.js .no-js-only { display: none !important; }
@media (max-width: 720px) {
  .dns-tools { width: 100%; }
  .dns-tools .files-filter { flex: 1 1 100%; }
}

/* a site that is being restored from a backup: the note at the top of each of its pages */
.site-restoring { margin-bottom: 16px; border-inline-start-color: #f59e0b; background: #fff8eb; border-color: #f6dfb3; color: var(--ink); }
.site-restoring p { margin: 0; }
.site-restoring p + p { margin-top: 4px; color: var(--ink-soft); }
/* a site that waits for its deletion: said at the top of every page of the site, with the way back beside it */
.site-held { margin-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; color: var(--ink); }
.site-held p { margin: 0; }
.site-held p + p { margin-top: 4px; color: var(--ink-soft); }
.site-held-act { flex: 0 1 auto; max-width: 100%; }
.site-held-act .btn, a.site-held-act { white-space: normal; height: auto; min-height: 44px; text-align: center; }
/* a site whose domain does not lead to it yet: the note at the top of each of its pages, with "check again" beside it */
.site-pointing { margin-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; color: var(--ink); }
.site-pointing p { margin: 0; }
.site-pointing p + p { margin-top: 4px; color: var(--ink-soft); }
.site-pointing code { overflow-wrap: anywhere; }
.site-pointing a[dir="ltr"] { white-space: nowrap; }
/* the site's temporary address under its name, in full, with copy and open beside it */
.site-temp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .9rem; color: var(--ink-soft); }
.site-temp code { overflow-wrap: anywhere; color: var(--ink); }
.site-temp .copy, .site-temp .btn { height: 30px; }

/* the fleet's firewall lists: a comment is changed in its row; the field keeps a width a phone can type in */
.inline-edit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.inline-edit input[type="text"] { flex: 1 1 12rem; min-width: 12rem; }
/* the hidden header text is placed within the table's own scroll frame, not the page's */
.fleetfw-table { position: relative; }

/* the panel's own card form (pay_card.html) */
.pay-card { max-width: 560px; }
.pay-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 14px 16px; border-radius: 12px; background: var(--blue-soft); }
.pay-total strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.pay-total small { flex-basis: 100%; color: var(--muted); font-size: .84rem; }
.pay-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
@media (max-width: 560px) { .pay-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pay-row .field:last-child { grid-column: 1 / -1; } }

/* ---------- a site's visitor statistics (site_stats.html) ---------- */
.stats-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 10px; }
.stats-figures div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: #f6f8fc; }
.stats-figures b { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.stats-figures span { font-size: .82rem; color: var(--muted); }
.stats-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stats-chart { margin: 0; min-width: 0; }
.stats-chart figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: .88rem; color: var(--ink-soft); }
.stats-chart figcaption b { color: var(--ink); font-variant-numeric: tabular-nums; }
.stats-chart svg { display: block; width: 100%; height: 120px; background: #f8faff; border-radius: 8px; }
.stats-chart rect { fill: #3b6fd8; }
.stats-chart rect:hover { fill: #1f4fb4; }
.stats-axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: 4px; }
.stats-table { margin-top: 14px; }
.stats-table summary { cursor: pointer; color: var(--blue-ink); }
@media (max-width: 860px) {
  .stats-charts { grid-template-columns: minmax(0, 1fr); }
  .stats-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ====================================================================================
   Uptime monitoring: the customer's list of monitors and a monitor's own page. The
   colour of a monitor is its state: green up, red down, amber blocked, blue new, grey
   paused. A day's bar is green without a fall, amber at 99% or more, red below.
   ==================================================================================== */

.mon-stats .mon-stat-up dd, .mon-stats .fig-ok dd { color: var(--green-ink); }
.mon-stats .mon-stat-trouble.is-on { border-color: #f7cfcf; background: #fff8f8; }
.mon-stats .mon-stat-trouble.is-on dd, .mon-stats .fig-bad dd { color: var(--red-ink); }
.mon-stats .fig-warn dd { color: #8a5200; }
.mon-stats .fig-none dd { color: var(--muted); }
html[dir="rtl"] .mon-stats dd[dir="ltr"] { text-align: right; }

.mon-list { display: grid; gap: 12px; }
.mon {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "dot main figs acts" ". hist hist hist";
  gap: 14px 16px; align-items: start; padding: 18px 20px;
  background: var(--surface); border: 1px solid #edf1f8; border-inline-start: 4px solid #c3ccdb; border-radius: 12px; box-shadow: var(--shadow);
}
.mon.mon-up { border-inline-start-color: #22c55e; }
.mon.mon-down { border-inline-start-color: #ef4444; background: #fffafa; border-color: #f7dede; }
.mon.mon-blocked { border-inline-start-color: #f59e0b; }
.mon.mon-new { border-inline-start-color: var(--blue); }
.mon.mon-paused .mon-main, .mon.mon-paused .mon-history { opacity: .65; }

.mon > .mon-dot { grid-area: dot; }
.mon-dot { position: relative; display: inline-block; flex: none; width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; background: #c3ccdb; }
.mon-up .mon-dot { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .16); }
.mon-down .mon-dot { background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .18); }
.mon-down .mon-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #ef4444; animation: mon-pulse 1.6s ease-out infinite; }
.mon-blocked .mon-dot { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, .18); }
.mon-new .mon-dot { background: var(--blue); box-shadow: 0 0 0 4px rgba(76, 130, 245, .18); }
@keyframes mon-pulse { from { transform: scale(1); opacity: .55; } to { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mon-down .mon-dot::after { animation: none; } }

.mon-main { grid-area: main; display: grid; gap: 4px; min-width: 0; }
.mon-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 1.08rem; font-weight: 600; line-height: 1.35; }
.mon-name a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.mon-name a:hover { color: var(--blue-ink); text-decoration: underline; }
.mon-url { font-size: .86rem; color: var(--muted); overflow-wrap: anywhere; }
html[dir="rtl"] .mon-url { text-align: right; }
.mon-meta { display: flex; flex-wrap: wrap; row-gap: 2px; font-size: .86rem; color: var(--ink-soft); }
.mon-meta > * + *::before { content: "·"; margin-inline: 8px; color: #b7c5dc; }
.mon-meta q { font-weight: 600; }
.mon-reason { margin-top: 4px; font-size: .88rem; font-weight: 600; color: var(--red-ink); }
.mon-blocked .mon-reason { color: #8a5200; }

.mon > .mon-figures { grid-area: figs; }
.mon-figures { display: flex; gap: 8px; }
.mon-figures .fig { display: grid; gap: 1px; min-width: 80px; padding: 8px 12px; border-radius: 10px; background: #f6f8fc; text-align: center; }
.mon-figures dt { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.mon-figures dd { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
.mon-figures .fig-ok dd { color: var(--green-ink); }
.mon-figures .fig-warn dd { color: #8a5200; }
.mon-figures .fig-bad dd { color: var(--red-ink); }
.mon-figures .fig-none dd { color: var(--muted); }
.mon-figures-off { align-self: center; }

/* a field of the form that the chosen kind of check does not use (data-switch) */
html .mon-form [hidden] { display: none !important; }

.mon > .mon-actions { grid-area: acts; }
.mon-actions, .head-row > .mon-actions { display: flex; align-items: center; gap: 6px; }
.mon-actions details.pop > summary, .mon-add > summary { display: inline-flex; padding: 0; border: 0; }
.mon-more { width: 34px; padding: 0; }
.mon-more svg { width: 18px; height: 18px; }

.mon > .mon-history { grid-area: hist; }
.mon-history { display: grid; gap: 6px; min-width: 0; }
.mon-days { display: flex; align-items: stretch; gap: 3px; height: 30px; }
.mon-days .day { flex: 1 1 0; min-width: 2px; border-radius: 3px; transition: transform .1s ease; }
.mon-days .day:hover { transform: scaleY(1.12); }
.day-ok { background: #34d399; }
.day-warn { background: #fbbf24; }
.day-bad { background: #ef4444; }
.day-none { background: #e5e9f0; }
.mon-days-scale { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); }
.mon-history-lg .mon-days { height: 46px; gap: 2px; }
.mon-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: .8rem; color: var(--muted); }
.mon-legend li { display: inline-flex; align-items: center; gap: 6px; }
.mon-legend .day { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }

.mon-empty { display: grid; justify-items: center; gap: 10px; padding: 48px 24px; text-align: center; }
.mon-empty p { max-width: 56ch; color: var(--muted); }
.mon-empty .mon-add { margin-top: 8px; }
.mon-empty-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--blue-soft); color: var(--blue-ink); }
.mon-empty-icon svg, .mon-none svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mon-empty-icon svg { width: 28px; height: 28px; }

.mon-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; overflow-wrap: anywhere; }
.mon-title .mon-dot { margin-top: 0; width: 14px; height: 14px; }
.mon-head .mon-url a { color: var(--muted); }
.mon-head .mon-actions { align-self: center; }
.mon-none { display: flex; align-items: center; gap: 8px; color: var(--green-ink); font-weight: 500; }
.mon-none svg { width: 20px; height: 20px; }
.mon-falls td { vertical-align: top; }

@media (max-width: 960px) {
  .mon { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "dot main acts" ". figs figs" ". hist hist"; }
}
@media (max-width: 560px) {
  .mon { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "dot main" ". figs" ". hist" ". acts"; padding: 16px 14px; column-gap: 12px; }
  .mon-head .mon-actions { width: 100%; }
  .mon-figures { gap: 6px; }
  .mon-figures .fig { flex: 1 1 0; min-width: 0; padding: 8px 6px; }
  .mon-days { height: 26px; gap: 2px; }
  .mon-history-lg .mon-days { gap: 1px; height: 38px; }
}

/* the staff's shutdown of the monitoring: its form and the button that ends it, side by side */
.mute-forms { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 24px; margin-top: 14px; }
.mute-forms .form.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }

/* the students' programme: a school's sign-up page (school_join.html); the school's own
   colour comes from /school/<uid>/theme.css, since the pages allow no inline style */
.school-brand { border-inline-start: 4px solid var(--school, var(--blue)); padding-inline-start: 14px; margin-bottom: 16px; }
.school-brand .school-logo { display: block; max-height: 56px; max-width: 220px; margin-bottom: 10px; }
.school-brand h1 { margin: 0; }
.school-brand .lead { margin: 4px 0 0; }
.school-welcome { margin: 0 0 16px; }
.school-welcome > :first-child { margin-top: 0; }
.school-link { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.school-link code { white-space: nowrap; }

/* the students' path (schools_path.go): its bar and its tasks */
.path-bar { width: 100%; height: 10px; margin: 6px 0 14px; accent-color: var(--blue); }
.path-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.path-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.path-item.is-done { background: #f3fbf6; }
.path-item p { margin: 6px 0 0; }
.path-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.path-mark { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); align-items: center; justify-content: center; }
.path-item.is-done .path-mark { border-color: #16a34a; color: #16a34a; }
.path-mark svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.path-links { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------- a new site: three steps, and what will be made ---------- */
.newsite { display: grid; gap: 16px; }
.newsite-clone { margin: 0; }
.newsite-step { gap: 18px; }
.newsite-head { display: flex; align-items: flex-start; gap: 14px; }
.newsite-head h2 { margin: 0; font-size: 1.08rem; }
.newsite-head .hint { margin: 3px 0 0; }
.newsite-num { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }

/* the subscriptions: a card each, with the server the new site goes to and a site it has */
.newsite-filter { position: relative; display: block; }
.newsite-filter svg { position: absolute; inset-inline-start: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.newsite-filter input { width: 100%; height: 42px; padding-inline: 40px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; font: inherit; font-size: .92rem; color: var(--ink); }
.newsite-filter input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(13, 105, 240, .15); }
.newsite-subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.newsite-subs.is-long { max-height: 452px; overflow-y: auto; padding: 3px; margin: -3px; overscroll-behavior: contain; }
.newsite-sub, .newsite-kind, .newsite-ending { position: relative; border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease, background-color .12s ease; }
.newsite-sub:hover, .newsite-kind:hover, .newsite-ending:hover { border-color: #b7c5dc; }
.newsite-sub:has(input:checked), .newsite-kind:has(input:checked), .newsite-ending:has(input:checked) { border-color: var(--blue); background: #f8fbff; box-shadow: 0 0 0 3px rgba(76, 130, 245, .14); }
.newsite-sub:has(input:focus-visible), .newsite-kind:has(input:focus-visible), .newsite-ending:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(76, 130, 245, .3); }
.newsite-sub input, .newsite-kind input, .newsite-ending input { margin: 0; width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; }
.newsite-sub { display: grid; gap: 8px; align-content: start; padding: 14px 16px; border-radius: 12px; }
.newsite-sub[hidden] { display: none; }
.newsite-sub > input, .newsite-kind > input { position: absolute; inset-block-start: 15px; inset-inline-end: 14px; }
.newsite-sub-top { display: flex; align-items: center; gap: 8px; min-width: 0; padding-inline-end: 28px; }
.newsite-sub-top strong { font-size: .98rem; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.newsite-sub-top .pill { flex: none; }
.newsite-sub-plan { margin-top: -4px; font-size: .84rem; color: var(--muted); }
.newsite-sub-id { flex: none; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.newsite-sub-owner { display: flex; align-items: center; gap: 6px; margin-top: -2px; font-size: .84rem; font-weight: 500; color: #8a4b00; }
.newsite-sub-owner svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.newsite-choose { margin: 0 0 12px; padding: 10px 14px; border: 1px solid #dbe7fd; border-radius: 10px; background: #f8fbff; font-size: .9rem; font-weight: 500; color: var(--ink); }
.newsite-choose[hidden] { display: none; }
.newsite-choose.is-asked { border-color: #f0b35a; background: #fff8ec; }
.newsite-sub-facts { display: grid; gap: 5px; font-size: .86rem; color: var(--ink-soft); }
.newsite-sub-facts > span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.newsite-sub-facts bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.newsite-sub-facts small { flex: none; font-size: .8rem; color: var(--muted); }
.newsite-sub-facts svg, .newsite-kind-icon svg, .newsite-go .btn svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.newsite-sub-facts svg { width: 15px; height: 15px; color: var(--muted); }
.newsite-sub-facts .is-muted { color: var(--muted); }
.newsite-sub-usage { padding-top: 8px; border-top: 1px dashed var(--line); font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.newsite-nomatch { margin: 0; }

/* the address: one's own domain, or a temporary one of uPress */
.newsite-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.newsite-kind { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px; }
.newsite-kind-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--blue-soft); color: var(--blue-ink); transition: background-color .12s ease, color .12s ease; }
.newsite-kind-icon svg { width: 20px; height: 20px; }
.newsite-kind:has(input:checked) .newsite-kind-icon { background: var(--blue); color: #fff; }
.newsite-kind-text { display: grid; gap: 3px; padding-inline-end: 26px; }
.newsite-kind-text strong { font-size: .96rem; font-weight: 600; color: var(--ink); }
.newsite-kind-text small { font-size: .84rem; line-height: 1.45; color: var(--muted); }
.newsite-panel { display: grid; gap: 16px; }
html.js .newsite-panel[hidden] { display: none; }
.newsite-checks { display: grid; gap: 12px; }
.newsite-address { display: flex; align-items: stretch; height: 44px; border: 1px solid #d5deec; border-radius: 10px; background: #fff; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.newsite-address:hover { border-color: #b7c5dc; }
.newsite-address:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(13, 105, 240, .15); }
.field .newsite-address input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.field .newsite-address input:focus { box-shadow: none; }
.newsite-address-end { flex: none; display: flex; align-items: center; max-width: 60%; padding: 0 14px; border-inline-start: 1px solid var(--line); background: #f5f8fd; color: var(--ink-soft); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.newsite-endings { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; min-width: 0; }
.newsite-endings legend { padding: 0; margin-bottom: 10px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.newsite-endings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
@media (max-width: 640px) { .newsite-endings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .newsite-endings-grid .newsite-ending { gap: 8px; padding: 10px; font-size: .9rem; } }
.newsite-ending { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: .93rem; color: var(--ink); }
.newsite-ending > input { flex: none; width: 16px; height: 16px; }
.newsite-ending bdi { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.newsite-ending-lock { flex: none; display: grid; place-items: center; color: var(--green-ink); }
.newsite-ending-lock svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.newsite-ending-plain { background: #fcfdfe; }
.newsite-ending-plain .pill { flex: none; }
.newsite-ending.is-off { cursor: not-allowed; background: #f7f9fc; color: var(--muted); }
.newsite-ending.is-off:hover { border-color: var(--line); }
.newsite-ending.is-off .newsite-ending-lock { color: var(--muted); }
.newsite-ending input:disabled { cursor: not-allowed; }
.newsite-ending-off { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 12px; border-radius: 10px; background: #fff7e8; color: #8a5200; font-size: .86rem; }
.newsite-ending-off svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.newsite-summary .pill svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.newsite-summary .pill { display: inline-flex; align-items: center; gap: 4px; }

/* what will be made, and the button that makes it */
.newsite-go { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%); }
.newsite-summary { margin: 0; display: grid; gap: 8px; flex: 1 1 320px; min-width: 0; }
.newsite-summary > div { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.newsite-summary dt { flex: none; min-width: 52px; font-size: .84rem; color: var(--muted); }
.newsite-summary dd { margin: 0; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .98rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.newsite-summary dd .pill[hidden] { display: none; }
.card .newsite-submit { justify-self: auto; height: 48px; padding: 0 26px; font-size: 1rem; }
.newsite-closed { gap: 10px; }
.newsite-closed summary { cursor: pointer; font-weight: 600; color: var(--ink-soft); }
.newsite-closed ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
/* what the script hides in the form, also where a class gives a display of its own */
.newsite [hidden] { display: none !important; }
@media (max-width: 640px) {
  .newsite-subs { grid-template-columns: 1fr; }
  .newsite-go { flex-direction: column; align-items: stretch; }
  .card .newsite-submit { width: 100%; }
}

/* ---------- installing WordPress: the site, then its administrator ---------- */
.wpinstall-title svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--blue-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wpinstall { display: grid; gap: 24px; }
.wpinstall-part { margin: 0; padding: 0; border: 0; display: grid; gap: 14px; min-width: 0; }
.wpinstall-part legend { padding: 0; margin-bottom: 12px; font-size: .95rem; font-weight: 700; color: var(--ink); }
.wpinstall-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; align-items: start; }
.wpinstall .row-actions { padding-top: 4px; }
@media (max-width: 640px) { .wpinstall-grid { grid-template-columns: 1fr; } }

/* ---------- the affiliate program, the customer's page (affiliate.html) ---------- */
.aff-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aff-stats dd { font-size: 1.5rem; font-weight: 600; margin: 0; }
.aff-stats small { color: var(--muted); font-size: .8rem; }
.aff-points { margin: 0 0 14px; padding-inline-start: 20px; display: grid; gap: 4px; color: var(--ink-soft); }
.aff-withdraw fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.aff-withdraw legend { font-weight: 500; margin-bottom: 4px; }
.aff-bank { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.aff-bank[hidden] { display: none; }
.aff-bank .hint { grid-column: 1 / -1; margin: 0; }
tr.is-history td { color: var(--ink-soft); }
@media (max-width: 720px) {
  .aff-stats { grid-template-columns: 1fr; }
  .aff-bank { grid-template-columns: 1fr; }
}


/* ---------- the firewall tab: the offer, the control, the first steps, the tiles (site_waf.html) ---------- */
.waf-offer { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.waf-offer-main { display: flex; gap: 18px; align-items: flex-start; }
.waf-offer-text h2 { margin: 0 0 6px; }
.waf-offer-text p { margin: 0 0 12px; color: var(--ink-soft); line-height: 1.6; }
.waf-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.waf-points li { position: relative; padding-inline-start: 26px; color: var(--ink); }
.waf-points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%2317753a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.waf-offer-buy { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg, #f8f9fd); }
.waf-offer-buy .hint { margin: 0; }
.waf-price { display: flex; align-items: baseline; gap: 8px; }
.waf-price strong { font-size: 2rem; font-weight: 700; line-height: 1; color: var(--ink); }
.waf-price small { color: var(--muted); }
.btn-wide { width: 100%; justify-content: center; }
.waf-offer-form { display: grid; gap: 8px; }
.waf-offer-wait { display: none; }
.waf-offer-form.is-sending .waf-offer-wait { display: block; }
.waf-mark { flex: none; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; }
.waf-mark svg { width: 30px; height: 30px; }
.waf-mark-on { color: var(--green-ink); background: var(--green-soft); }
.waf-mark-off { color: var(--muted); background: #eef1f7; }
.waf-mark-off .waf-mark-check { display: none; }
.waf-control { padding-block: 18px; }
/* the first steps lead to cards below the sticky tabs: they arrive in view under them */
.client-ui .main .waf-desk .card[id] { scroll-margin-top: 84px; }
.waf-control.is-on { border-inline-start: 4px solid #22a55a; }
.waf-control.is-off { border-inline-start: 4px solid #f0b35a; }
.waf-control-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.waf-control-text { flex: 1 1 320px; min-width: 0; }
.waf-control-text h2 { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.waf-control-text p { margin: 0; color: var(--ink-soft); }
.waf-facts { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; color: var(--muted); }
.waf-facts li + li::before { content: "·"; margin-inline-end: 16px; color: var(--line); }
.waf-control-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.waf-control .alert { margin: 14px 0 0; }
.waf-first { background: linear-gradient(180deg, #f4f8ff, var(--surface)); }
.waf-first h2 { margin: 0 0 4px; }
.waf-first > p { margin: 0 0 12px; color: var(--ink-soft); }
.waf-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; counter-reset: waf-step; }
.waf-steps li { counter-increment: waf-step; }
.waf-steps a { position: relative; display: grid; gap: 4px; height: 100%; padding: 12px 14px 12px 14px; padding-inline-start: 46px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; }
.waf-steps a:hover { border-color: var(--blue); }
.waf-steps a::before { content: counter(waf-step); position: absolute; inset-inline-start: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 600; color: var(--blue-ink); background: var(--blue-soft); }
.waf-steps small { color: var(--muted); line-height: 1.5; }
.waf-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.waf-tile { display: grid; gap: 6px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.waf-tile.is-on { border-color: #bfe5cc; background: #f6fcf8; }
.waf-tile-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.waf-tile small { color: var(--muted); line-height: 1.5; }
.waf-tile-form { display: flex; gap: 8px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.waf-tile-form select { flex: 1; min-width: 0; }
.waf-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.waf-danger summary { list-style: none; }
@media (max-width: 860px) {
  .waf-offer { grid-template-columns: 1fr; }
  .waf-offer-main { flex-direction: column; }
  .waf-control-actions { width: 100%; }
}

/* ---------- the WordPress tab: its own tabs, and a row's actions ---------- */
.wp-panes { display: grid; gap: 18px; }
.wp-panes-nav { display: flex; flex-wrap: nowrap; gap: 4px; padding: 4px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: #e9eef7; border-radius: 12px; }
.wp-panes-nav::-webkit-scrollbar { display: none; }
.wp-panes-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 9px; font-size: .92rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.wp-panes-nav a b { font-weight: 600; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.wp-panes-nav a:hover { background: #fff; color: var(--ink); }
.wp-panes-nav a[aria-current="true"] { background: #fff; color: var(--blue-ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
.wp-panes-nav a[aria-current="true"] b { color: var(--blue-ink); }
.wp-pane-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #f59e0b; color: #fff; font-size: .72rem; font-weight: 700; line-height: 1; }
/* with the script one part is shown at a time; without it, all of them */
html.js .wp-pane:not(.is-shown) { display: none; }
.wp-pane { scroll-margin-top: 16px; }

.wp-attention { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wp-attention li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.wp-attention li > span:not(.pill) { flex: 1; min-width: 0; }
.wp-attention li .btn { flex: none; }
.wp-attention-none { display: flex; align-items: center; gap: 8px; color: var(--green-ink); }
.wp-attention-none svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wp-table td { vertical-align: middle; }
.wp-table td.wp-name strong { display: block; font-weight: 600; }
.wp-table td.wp-name small { display: block; color: var(--muted); font-size: .8rem; }
.wp-pills { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.wp-row-actions { align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 8px; }
.wp-row-actions > form.row-actions { flex-wrap: nowrap; gap: 8px; }
.btn-icon { width: 34px; padding: 0; }
.btn-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.wp-row-actions details.pop > summary { display: inline-flex; padding: 0; border: 0; }
.wp-row-actions details.pop[open] > summary { padding: 0; border: 0; }
.wp-table td:last-child { width: 1%; white-space: nowrap; }
@media (max-width: 640px) {
  .wp-panes-nav { width: 100%; }
  /* on a phone each row is a block: the name, and the buttons on one line under it */
  .wp-table thead { display: none; }
  .wp-table, .wp-table tbody, .wp-table tr, .wp-table td:not(.hide-narrow) { display: block; }
  .table-wrap .table.wp-table tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .table-wrap .table.wp-table tr:last-child { border-bottom: 0; }
  .table-wrap .table.wp-table td { padding: 0; border-bottom: 0; }
  .wp-table td:last-child { width: auto; }
  .wp-table td:last-child:not(:empty) { margin-top: 8px; }
  .wp-table td:last-child .wp-row-actions { justify-content: flex-start; }
  .wp-attention li { flex-wrap: wrap; }
}

/* a word for a member of the staff (staff-alerts.js): on the staff area's pages, and on the customer's while a member works in the customer's name */
.staff-alerts { position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 36px)); pointer-events: none; }
.staff-alert { pointer-events: auto; background: #fff; border: 1px solid #dfe6fb; border-inline-start: 4px solid #2f5bea; border-radius: 14px; box-shadow: 0 12px 32px rgba(15, 23, 42, .18); padding: 12px 14px; }
.staff-alert strong { display: block; font-size: 15px; margin-bottom: 4px; }
.staff-alert p { margin: 0 0 10px; font-size: 13px; color: #3b4a61; overflow-wrap: anywhere; }
.staff-alert .row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.staff-alert .staff-alert-enable { font-size: 12px; }

/* a word for a customer, that the team wrote to them in a ticket (customer-alerts.js): a note in the corner of the customer area's pages, never beside a member's (a member in the customer's name is given none) */
.customer-alerts { position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 36px)); pointer-events: none; }
.customer-alert { pointer-events: auto; background: #fff; border: 1px solid #dfe6fb; border-inline-start: 4px solid #2f5bea; border-radius: 14px; box-shadow: 0 12px 32px rgba(15, 23, 42, .18); padding: 12px 14px; }
.customer-alert strong { display: block; font-size: 15px; margin-bottom: 4px; }
.customer-alert p { margin: 0 0 10px; font-size: 13px; color: #3b4a61; overflow-wrap: anywhere; }
.customer-alert .row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- a customer's rating of an answer (tickets_rating.go) ---------- */
/* the picker: the inputs stand from five down to one, shown from one up to five, and the
   chosen star lights every star before it */
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; direction: ltr; vertical-align: middle; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { color: #cbd5e1; font-size: 1.7rem; line-height: 1; padding: 0 2px; cursor: pointer; margin: 0; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #f59e0b; }
.stars input:focus-visible + label { outline: 2px solid var(--brand, #2563eb); outline-offset: 2px; border-radius: 4px; }
.stars-shown { color: #f59e0b; letter-spacing: 1px; white-space: nowrap; }
.stars-shown.rating-low, .rating-low .stars-shown { color: #dc2626; }
.rating-form .field textarea { width: 100%; }
#rating-form .stars { margin: 2px 0 14px; }
#rating-form .field { display: block; margin: 0 0 14px; }
#rating-form .hint { margin-top: 10px; }
.rating-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(15, 23, 42, .08); }
.rating-inline .rating-ask { color: #475569; font-size: .92em; }
.rating-inline .rating-more { flex: 1 1 220px; }
.rating-inline .rating-more summary { cursor: pointer; color: #475569; font-size: .9em; }
.rating-inline .rating-more textarea { width: 100%; margin-top: 6px; }
.rating-line { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid rgba(15, 23, 42, .08); }
.rating-line .rating-comment { color: #334155; }
.rating-chip { white-space: nowrap; }
.ratings-total { margin: 12px 0 0; font-size: 1.05em; }
.ratings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 16px 0; }
.ratings-grid .card { margin: 0; }

/* the staff's page of the cloud (2.12.2026): packages and locations as cards with what
   they cost and where they are offered, and a new server chosen by its location first,
   StarkLayer's own Proxmox in Israel first and chosen */
.cloud-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.cloud-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; min-width: 0; }
.cloud-card.is-sold { border-color: #cfe8d7; background: linear-gradient(180deg, #f6fbf7 0, #fff 90px); }
.cloud-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cloud-card-head strong { font-size: 16px; font-weight: 600; margin-inline-end: auto; }
.cloud-card > .hint { margin: 0; }
.cloud-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.cloud-specs span { font-size: 12.5px; line-height: 18px; padding: 3px 9px; border-radius: 999px; background: #eef2f8; color: var(--ink); }
.cloud-prices { display: grid; gap: 2px; margin: 0; padding: 6px 10px; border-radius: 12px; background: #f7f9fc; }
.cloud-prices div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 3px 0; }
.cloud-prices div + div { border-top: 1px solid #e8edf5; }
.cloud-prices dt { font-size: 12.5px; color: var(--muted); }
.cloud-prices dd { margin: 0; font-weight: 600; font-size: 14px; }
.cloud-edit > summary { cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--blue-ink); }
.cloud-edit[open] > summary { margin-bottom: 10px; }
.cloud-edit .form { gap: 10px; }
.cloud-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cloud-places .place-card { cursor: default; align-items: start; }
.cloud-places .place-card:hover { border-color: var(--line); }
.cloud-places .place-card.is-israel:hover { border-color: #cddcfb; }
.cloud-place .cloud-place-meta, .cloud-place .cloud-edit { grid-column: 1 / -1; }
.cloud-place-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.cloud-place.is-unsold { background: #fafbfd; }
.cloud-more { margin-top: 14px; }
.cloud-more > summary { cursor: pointer; font-weight: 500; color: var(--blue-ink); margin-bottom: 12px; }
.cloud-new .cloud-step { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.cloud-new .cloud-step > legend { font-weight: 600; font-size: 15px; margin-bottom: 12px; padding: 0; color: var(--ink); }
.cloud-pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.cloud-pkg { padding: 16px 16px 14px; gap: 8px; }
.cloud-pkg-name { font-size: 16px; font-weight: 600; color: var(--ink); margin-inline-end: 28px; }
.cloud-pkg-price { color: var(--muted); font-size: 12.5px; }
.cloud-pkg .place-off { display: none; font-size: 12px; color: var(--muted); }
.cloud-pkg.is-off { cursor: not-allowed; opacity: .5; }
.cloud-pkg.is-off .place-off { display: block; }
.cloud-pkg:has(> input:checked) .place-tick, .cloud-pkg.is-checked .place-tick { display: inline-grid; }
.cloud-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.cloud-flag-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 5px; border-radius: 999px; background: #f3f6fb; font-size: 13px; }
.place-flag.place-flag-sm, .place-flag.place-flag-sm .flag { width: 21px; height: 14px; border-radius: 3px; }
@media (max-width: 560px) { .cloud-two { grid-template-columns: 1fr; } .cloud-server-head .pill { display: none; } .cloud-steps li { font-size: 11.5px; } .cloud-danger { margin-inline-start: 0; } }
/* the cloud page's tabs and its servers (2.12.2026: the active servers were a table, with
   a form to remove each one and one to choose it, one after another under the set-ups) */
.cloud-panel { display: grid; gap: 16px; }
.cloud-panel[hidden] { display: none !important; }
.cloud-panel > .hint, .cloud-panel > .alert { margin: 0; }
/* fit to the tabs, and wrap on a phone instead of widening the page */
.stack > nav.tabs.cloud-tabs { width: auto; justify-self: start; min-width: 0; }
.cloud-tabs a { display: inline-flex; align-items: center; gap: 6px; }
.cloud-tabs svg { width: 16px; height: 16px; }
.tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #dfe6f3; color: var(--ink-soft); font-size: 12px; font-weight: 600; line-height: 1; }
.tab-count.is-busy { background: #fff4e0; color: #8a5200; }
.cloud-empty { justify-items: start; }
.cloud-empty p { margin: 0; color: var(--muted); }
.cloud-server { gap: 16px; border-inline-start: 4px solid transparent; }
.cloud-server.is-default { border-inline-start-color: #8fd1a5; }
.cloud-server.is-setup { border-inline-start-color: #f3c36b; }
.cloud-server-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cloud-server-head .place-flag { flex: none; }
.cloud-server-title { display: grid; gap: 2px; min-width: 0; margin-inline-end: auto; }
.cloud-server-title h3 { margin: 0; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; text-align: start; }
.cloud-server-title small { color: var(--muted); font-size: 13px; }
.cloud-server-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cloud-server-tags .pill { display: inline-flex; align-items: center; gap: 4px; }
.cloud-server-tags svg { width: 13px; height: 13px; stroke-width: 2.4; }
.cloud-server-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .cloud-server-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cloud-server-facts > div, .cloud-server-facts > div:first-child, .cloud-server-facts > div:last-child { flex-direction: column; justify-content: start; gap: 2px; padding: 10px 12px; border: 0; border-radius: 10px; background: #f7f9fc; }
.cloud-server-facts dt { font-size: 12.5px; }
.cloud-server-facts dd { margin: 0; text-align: start; font-size: 14.5px; }
.cloud-server-size { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.cloud-server-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-soft); }
.cloud-server-checks li { display: inline-flex; align-items: center; gap: 6px; }
.cloud-server-checks svg { width: 15px; height: 15px; stroke-width: 2.4; }
.cloud-server-checks .is-ok svg { color: var(--green-ink); }
.cloud-server-checks .is-warn { color: #8a5200; }
.cloud-server-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.cloud-default { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.cloud-default .hint { margin: 0; }
.cloud-danger { margin-inline-start: auto; }
.cloud-danger > summary { cursor: pointer; list-style: none; font-size: 13px; color: var(--muted); padding: 4px 2px; }
.cloud-danger > summary::-webkit-details-marker { display: none; }
.cloud-danger > summary::after { content: " ▾"; font-size: 11px; }
.cloud-danger[open] { flex-basis: 100%; margin-inline-start: 0; }
.cloud-danger[open] > summary { margin-bottom: 10px; }
.cloud-danger .form { gap: 10px; max-width: 460px; padding: 14px; border-radius: 12px; background: #fdf6f8; }
.cloud-agent { display: grid; gap: 8px; padding: 14px; border-radius: 12px; background: #f7f9fc; }
.cloud-agent h4 { margin: 0; font-size: 15px; }
.cloud-agent .hint { margin: 0; }
.cloud-agent .btn { justify-self: start; }

/* the staff's page of cancellations (admin_cancellations.html) */
.cancel-search { align-items: end; }
.cancel-search .field { flex: 1 1 260px; min-width: 0; }
.cancel-tab-hint { margin: -6px 0 0; }
.cancel-case { gap: 14px; border-inline-start: 4px solid transparent; min-width: 0; }
.cancel-case.is-stuck { border-inline-start-color: #e8a0ad; }
.cancel-case.is-running { border-inline-start-color: #f3c36b; }
.cancel-case.is-done { border-inline-start-color: #8fd1a5; }
.cancel-head { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.cancel-title { display: grid; gap: 2px; min-width: 0; margin-inline-end: auto; }
.cancel-title h2 { margin: 0; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.cancel-title small { color: var(--muted); font-size: 13px; }
.cancel-head .pill { flex: none; }
.cancel-problems { display: grid; gap: 4px; margin: 0; padding: 10px 14px; padding-inline-start: 30px; border-radius: 10px; background: var(--red-soft); color: var(--red-ink); font-size: 14px; }
.cancel-facts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 8px; }
.cancel-facts > div, .cancel-facts > div:first-child, .cancel-facts > div:last-child { flex-direction: column; justify-content: start; gap: 2px; padding: 8px 12px; border: 0; border-radius: 10px; background: #f7f9fc; min-width: 0; }
.cancel-facts dt { font-size: 12.5px; }
.cancel-facts dd { margin: 0; text-align: start; font-size: 14px; }
.cancel-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px 18px; min-width: 0; }
.cancel-part { min-width: 0; }
.cancel-part h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.cancel-part .hint { margin: 0; }
.cancel-rows { display: grid; margin: 0; padding: 0; list-style: none; }
.cancel-row { display: grid; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.cancel-row:last-child { border-bottom: 0; }
.cancel-row-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; min-width: 0; }
.cancel-row-name { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; min-width: 0; }
.cancel-row-main .pill { flex: none; font-size: 12px; }
.cancel-row-note { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.cancel-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cancel-acts form, .cancel-acts form + form { margin: 0; padding-top: 0; border-top: 0; }
.cancel-row-error { display: block; color: var(--red-ink); font-size: 12.5px; overflow-wrap: anywhere; text-align: start; }
.cancel-act-off { font-size: 12.5px; }
.cancel-foot .cloud-danger .form h4 { margin: 0; font-size: 15px; }
.cancel-foot .cloud-danger .form .hint { margin: 0; }
.cloud-steps { display: flex; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.cloud-steps li { position: relative; flex: 1 1 0; display: grid; justify-items: center; gap: 6px; padding: 0 4px; font-size: 12.5px; color: var(--muted); text-align: center; counter-increment: step; }
.cloud-steps li::before { content: counter(step); position: relative; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #eef1f6; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.cloud-steps li + li::after { content: ""; position: absolute; top: 13px; inset-inline-end: 50%; width: 100%; height: 2px; background: #e4e9f2; }
.cloud-steps li.is-done::before { content: "✓"; background: var(--green-soft); color: var(--green-ink); }
.cloud-steps li.is-done + li::after, .cloud-steps li.is-now::after { background: #9fd8b1; }
.cloud-steps li.is-now { color: var(--ink); font-weight: 600; }
.cloud-steps li.is-now::before { background: var(--blue); color: #fff; box-shadow: 0 0 0 4px var(--blue-soft); }
.cloud-gone { margin-top: 4px; }

