:root { color-scheme:dark; --fg:#e6edf3; --muted:#9198a1; --bg:#000; --card:#0b0b09; --line:#2a2822; --accent:#d9b64a; --danger:#f85149; --ok:#3fb950; }
* { box-sizing: border-box; }
body { margin:0; font:16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color:var(--fg); background:var(--bg); }
a { color:var(--accent); }
main { max-width:1200px; margin:0 auto; padding:24px 16px; }
.bar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 16px; background:var(--card); border-bottom:1px solid var(--line); }
.bar nav { display:flex; align-items:center; gap:16px; }
.bar form { margin:0; }
.brand { font-weight:600; text-decoration:none; color:var(--fg); }
.who { color:var(--muted); }
.card { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:24px; }
.narrow { max-width:420px; margin:40px auto; }
h1 { margin:0 0 12px; font-size:1.5rem; }
.muted { color:var(--muted); }
label { display:block; margin:12px 0; font-weight:500; }
label.check { display:flex; gap:8px; align-items:center; font-weight:400; }
input:not([type=checkbox]), select { display:block; width:100%; margin-top:4px; padding:8px 10px; font:inherit; color:var(--fg); background:var(--bg); border:1px solid var(--line); border-radius:6px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline:2px solid #c9a227; outline-offset:1px; }   /* gold focus ring (brand v3) instead of the browser's blue */
fieldset { border:1px solid var(--line); border-radius:6px; margin:16px 0; padding:4px 12px 8px; }
button, .button { display:inline-block; padding:9px 20px; font:inherit; font-weight:600; color:#fff; background:linear-gradient(90deg,#2f7a52,#1f5c3d); border:0; border-radius:999px; text-align:center; cursor:pointer; text-decoration:none; transition:filter .15s; }
button:hover:not(:disabled), .button:hover { filter:brightness(1.14); }
button:disabled { opacity:.55; cursor:not-allowed; }
button.link { padding:0; background:none; color:var(--accent); font-weight:400; border-radius:0; filter:none; }
button.danger, .danger { color:var(--danger); }
.flash { padding:8px 12px; border-radius:6px; border:1px solid; }
.flash.ok { color:var(--ok); border-color:var(--ok); }
.flash.err { color:var(--danger); border-color:var(--danger); }
.row { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.scroll { overflow-x:auto; }
table { width:100%; border-collapse:collapse; margin-top:12px; }
th, td { text-align:left; padding:8px; border-bottom:1px solid var(--line); white-space:nowrap; }
td.actions { display:flex; gap:12px; }
form.inline { display:inline; margin:0; }
.filters { display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; margin:8px 0; }
.filters label { margin:0; }
.filters input, .filters select { min-width:140px; }
.tag { display:inline-block; padding:1px 8px; border-radius:999px; font-size:.85em; border:1px solid var(--line); }
.tag-success { color:var(--ok); border-color:var(--ok); }
.tag-failed, .tag-locked, .tag-throttled { color:var(--danger); border-color:var(--danger); }
.tag-logout { color:var(--muted); }
td.ua { color:var(--muted); font-size:.9em; }
.pager { display:flex; gap:16px; align-items:center; }
.notice { max-width:640px; margin:8px auto 0; padding:12px 16px; text-align:center; border:1px solid var(--danger); border-radius:8px; color:var(--fg); background:var(--card); }
.notice strong { color:var(--danger); }
.logo { max-width:640px; margin:0 auto 12px; }
.logo img { display:block; width:100%; height:auto; border-radius:20px; box-shadow:0 8px 30px rgba(20,64,42,.35); }

/* logged-in homepage */
.home { max-width:960px; margin:0 auto; padding:32px 16px; text-align:center; }
.home-logo { max-width:640px; margin:8px auto 28px; }
.home-logo img { display:block; width:100%; height:auto; border-radius:20px; box-shadow:0 0 0 1px #2a2822, 0 10px 40px rgba(217,182,74,.25); }
.home-actions { display:flex; justify-content:center; gap:12px; flex-wrap:wrap; }
.btn-big { padding:12px 22px; font-size:1.05rem; font-weight:600; border-radius:999px; background:linear-gradient(90deg,#2f7a52,#1f5c3d); color:#fff; text-decoration:none; }
.btn-big:hover { filter:brightness(1.15); }
/* homepage buttons stacked: Network devices below Webmin */
.home-actions.stack { flex-direction:column; align-items:center; }
.home-actions.stack .btn-big { min-width:260px; text-align:center; }
.btn-big.alt { background:linear-gradient(90deg,#7a5c12,#9c7a1e); }
/* network page */
.stats { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:8px; margin:12px 0 16px; }
.stats div { background:var(--bg); border:1px solid var(--line); border-radius:8px; padding:8px 12px; }
.stats .k { display:block; font-size:.8rem; color:var(--muted); }
.stats .v { font-family:ui-monospace, Menlo, Consolas, monospace; }
.devices td { vertical-align:top; white-space:normal; }
.devices tr.offline td { opacity:.55; }
.mono { font-family:ui-monospace, Menlo, Consolas, monospace; }
.small { font-size:.85rem; }
.dot { display:inline-block; width:10px; height:10px; border-radius:50%; margin-top:6px; }
.dot.on { background:var(--ok); box-shadow:0 0 6px var(--ok); }
.dot.off { background:var(--muted); }
details summary { cursor:pointer; color:var(--accent); }
details dl { display:grid; grid-template-columns:max-content 1fr; gap:2px 12px; margin:8px 0; font-size:.85rem; min-width:320px; }
details dt { color:var(--muted); }
details dd { margin:0; }
table.ports { margin-top:4px; font-size:.85rem; }
table.ports td, table.ports th { padding:3px 6px; }
/* ---- network page v2: header, summary, toolbar, device cards ---- */
[hidden] { display:none !important; }
.net-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; margin-bottom:16px; }
.net-head h1 { margin:0 0 4px; }
.net-head p { margin:0; }
.pill { display:inline-block; padding:1px 10px; border-radius:999px; font-size:.78rem; border:1px solid var(--line); color:var(--muted); white-space:nowrap; }
.pill.accent { color:#e3c24f; border-color:#1f5c3d; background:rgba(31,92,61,.12); }
.pill.pending { color:#fbbf24; border-color:#b45309; margin-left:6px; }
.net-summary { display:flex; gap:12px; flex-wrap:wrap; align-items:stretch; margin-bottom:16px; }
.net-summary .big { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:12px 20px; min-width:110px; text-align:center; }
.net-summary .big .v { display:block; font-size:2rem; font-weight:700; line-height:1.1; background:linear-gradient(90deg,#e3c24f,#d9b64a); -webkit-background-clip:text; background-clip:text; color:transparent; }
.net-summary .big .k { color:var(--muted); font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; }
.net-summary .facts { flex:1; min-width:280px; display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:8px 18px;
  background:var(--card); border:1px solid var(--line); border-radius:12px; padding:12px 16px; font-size:.9rem; }
.facts .k { display:block; font-size:.72rem; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; }
.facts .v { font-family:ui-monospace, Menlo, Consolas, monospace; }
.net-toolbar { position:sticky; top:0; z-index:5; display:flex; gap:10px; flex-wrap:wrap; align-items:center;
  padding:10px 0; margin-bottom:8px; background:var(--bg); border-bottom:1px solid var(--line); }
.net-toolbar input[type=search] { flex:1; min-width:220px; margin:0; }
.net-toolbar select { width:auto; margin:0; }
.seg { display:inline-flex; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.seg-btn { background:transparent; color:var(--muted); border:0; border-right:1px solid var(--line); border-radius:0; padding:7px 12px; font-weight:500; }
.seg-btn:last-child { border-right:0; }
.seg-btn.active { background:#14402a; color:#f4eedc; }
.seg-btn .n { font-size:.75rem; opacity:.7; margin-left:2px; }
.dev-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:14px; margin-top:12px; }
.dev { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px 16px; display:flex; flex-direction:column; gap:10px;
  transition:border-color .15s; scroll-margin-top:80px; }
.dev:hover { border-color:#3b3b55; }
.dev:target { border-color:#c9a227; box-shadow:0 0 0 2px rgba(201,162,39,.35); }
.dev.is-offline { opacity:.6; }
.dev.is-offline:hover { opacity:.9; }
.dev header { display:flex; align-items:flex-start; gap:10px; }
.dev header .dot { flex:none; margin-top:7px; }
.dev-title { flex:1; min-width:0; }
.dev-title h2 { margin:0; font-size:1.05rem; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dev-sub { color:var(--muted); font-size:.85rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dev .ip { flex:none; font-family:ui-monospace, Menlo, Consolas, monospace; font-size:.85rem; padding:2px 8px; border-radius:6px;
  background:#201e18; border:1px solid #312f25; color:#ebddb0; }
.dev-meta { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.chips { display:flex; gap:6px; flex-wrap:wrap; }
.chip { font-size:.75rem; padding:2px 8px; border-radius:999px; border:1px solid var(--line); color:var(--muted); white-space:nowrap; }
.chip.svc { color:#ebddb0; border-color:#14402a; background:rgba(20,64,42,.15); }
.chip.port { color:#ebddb0; border-color:#14402a; background:rgba(21,94,117,.15); font-family:ui-monospace, Menlo, Consolas, monospace; }
.note textarea { display:block; width:100%; margin:0; resize:vertical; min-height:2.6em; font-size:.9rem; line-height:1.4;
  background:#0a0a08; border:1px solid var(--line); border-radius:8px; padding:8px 10px; }
.note textarea:focus { outline:none; border-color:#c9a227; box-shadow:0 0 0 2px rgba(201,162,39,.25); }
.note.dirty textarea { border-color:#b45309; }
.note.just-saved textarea { border-color:var(--ok); }
.note-bar { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:6px; }
.btn-sm { padding:5px 14px; font-size:.82rem; }
.note.dirty .note-status { color:#fbbf24; }
.dev details { border-top:1px solid var(--line); padding-top:8px; }
.dev details summary { font-size:.85rem; }
dl.kv { display:grid; grid-template-columns:max-content 1fr; gap:3px 12px; margin:8px 0; font-size:.83rem; min-width:0; }
dl.kv dt { color:var(--muted); }
dl.kv dd { margin:0; overflow-wrap:anywhere; }
@media (max-width:420px) { .dev-grid { grid-template-columns:1fr; } .seg-btn { padding:7px 8px; } }
/* ---- card overflow fixes: long service/version strings wrap instead of widening the card ---- */
.dev, .dev > *, .dev details { min-width:0; max-width:100%; }
.dev table.ports { width:100%; table-layout:fixed; border-collapse:collapse; }
.dev table.ports th, .dev table.ports td { white-space:normal; overflow-wrap:anywhere; vertical-align:top; padding:4px 6px; }
.dev table.ports th:nth-child(1), .dev table.ports td:nth-child(1) { width:5.5em; white-space:nowrap; }
.dev table.ports th:nth-child(2), .dev table.ports td:nth-child(2) { width:5.5em; }
.dev table.ports td:nth-child(3) { color:var(--muted); }
.dev dl.kv { grid-template-columns:minmax(6.5em, max-content) minmax(0, 1fr); }
.dev dl.kv dt { overflow-wrap:anywhere; }
.dev .chip { max-width:100%; overflow:hidden; text-overflow:ellipsis; }
.dev-meta > span { overflow-wrap:anywhere; }
/* ---- homepage third button ---- */
.btn-big.alt2 { background:linear-gradient(90deg,#059669,#2f7a52); }
/* ---- network tools page ---- */
.jump { display:flex; gap:12px; flex-wrap:wrap; }
h2.sec { font-size:1.1rem; margin:26px 0 10px; padding-bottom:6px; border-bottom:1px solid var(--line); color:#ebddb0; scroll-margin-top:16px; }
.tool-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(360px,1fr)); gap:14px; }
.tool { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px 16px; min-width:0; display:flex; flex-direction:column; gap:8px; scroll-margin-top:16px; }
.tool header h3 { margin:0; font-size:1rem; }
.tool header p { margin:2px 0 0; }
.tool .fields { display:flex; flex-wrap:wrap; gap:8px 10px; align-items:flex-end; }
.tool .fields label { margin:0; font-size:.82rem; font-weight:500; color:var(--muted); }
.tool .fields label.grow { flex:1 1 200px; }
.tool .fields input:not([type=checkbox]), .tool .fields select { margin-top:3px; font-size:.9rem; padding:6px 8px; }
.tool .fields input[type=number] { width:6.5em; }
.tool .fields label.check { display:flex; align-items:center; gap:6px; padding-bottom:6px; }
.tool .fields p { margin:0; }
.tool-bar { display:flex; align-items:center; gap:10px; margin-top:8px; }
.tool-bar button { padding:6px 16px; }
.tool.running { border-color:#c9a227; }
.tool.running .tool-status { color:#e3c24f; }
pre.tool-out { margin:0; max-height:420px; overflow:auto; background:#090806; border:1px solid var(--line); border-radius:8px; padding:10px 12px;
  font:12.5px/1.45 ui-monospace, Menlo, Consolas, monospace; color:#d1d5db; white-space:pre-wrap; overflow-wrap:anywhere; }
pre.tool-out.err { color:var(--danger); border-color:#7f1d1d; }
@media (max-width:420px) { .tool-grid { grid-template-columns:1fr; } }
/* clickable web chips on device cards */
a.chip.link { text-decoration:none; cursor:pointer; }
a.chip.link:hover { filter:brightness(1.35); border-color:currentColor; }
/* card title + subtitle wrap instead of being cut off with "…" */
.dev-title h2, .dev-sub { white-space:normal; overflow:visible; text-overflow:clip; overflow-wrap:anywhere; }
.dev-sub { line-height:1.35; margin-top:2px; }
.dev .chip { white-space:normal; overflow-wrap:anywhere; text-overflow:clip; }
/* ---- 2FA / account ---- */
.card.wide { max-width:640px; margin-top:20px; }
.h2 { margin:0; font-size:1.2rem; }
.pill.ok { color:var(--ok); border-color:var(--ok); }
input.otp { font-family:ui-monospace, Menlo, Consolas, monospace; font-size:1.3rem; letter-spacing:.2em; text-align:center; max-width:220px; }
.inline-form { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:8px 0; }
.inline-form input { margin:0; }
ol.steps li { margin:10px 0; }
.qr { margin:10px 0; }
.qr img { display:block; width:240px; height:240px; border-radius:8px; background:#fff; }
.secret { display:inline-block; margin-top:4px; padding:6px 10px; border:1px dashed var(--line); border-radius:6px; font-size:1.05rem; letter-spacing:.06em; user-select:all; }
ol.codes { columns:2; gap:24px; font-size:1.1rem; padding:12px 12px 12px 36px; background:var(--bg); border:1px solid var(--line); border-radius:8px; user-select:all; }
details.action { margin:12px 0; border-top:1px solid var(--line); padding-top:10px; }
details.action summary.danger { color:var(--danger); }
.danger-btn { background:var(--danger); }
.bar .who { text-decoration:none; color:var(--muted); }
.bar .who:hover { color:var(--fg); }
/* tools page: clear buttons */
.btn-clear { padding:6px 12px; background:transparent; color:var(--muted); border:1px solid var(--line); }
.btn-clear:hover { color:var(--fg); border-color:#4b5563; }
.head-actions { display:flex; gap:10px; align-items:center; }
.btn-clear-all { background:#1c1c26; color:var(--fg); border:1px solid #33334a; padding:6px 14px; font-size:.9rem; }
/* login history failure summary */
.fail-summary { margin:10px 0 4px; padding:10px 14px; border:1px solid var(--line); border-radius:8px; background:var(--bg); }
.fail-summary.has-fails { border-color:var(--danger); }
.fail-summary.has-fails strong { color:var(--danger); }
.fail-summary .small { display:block; margin-top:2px; }
/* tools log */
.filters label { margin:0; }
table.toollog td.target { max-width:340px; white-space:normal; overflow-wrap:anywhere; }
.tag-ok { color:var(--ok); border-color:var(--ok); }
.tag-nonzero { color:#fbbf24; border-color:#b45309; }
.tag-error, .tag-rejected { color:var(--danger); border-color:var(--danger); }
a.danger { color:var(--danger); }
dl.wide-kv { grid-template-columns:max-content 1fr; max-width:none; font-size:.92rem; }
/* ---- collapsible device cards ---- */
.dev { padding:0; gap:0; }
.dev-card > summary { list-style:none; }
.dev-card > summary::-webkit-details-marker { display:none; }
.dev-head { display:flex; align-items:center; gap:10px; padding:12px 14px; cursor:pointer; border-radius:12px; user-select:none; }
.dev-head:hover { background:rgba(201,162,39,.07); }
.dev-head:focus-visible { outline:2px solid #c9a227; outline-offset:-2px; }
.dev-head .dot { margin-top:0; }
.dev-title { flex:1; min-width:0; display:flex; flex-direction:column; }
.dev-name { font-size:1rem; font-weight:600; overflow-wrap:anywhere; }
.dev-state.on { color:var(--ok); }
.dev-state.off { color:var(--muted); }
.has-note { color:#fbbf24; }
.chev { flex:none; width:8px; height:8px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:rotate(45deg); margin:0 4px 4px 2px; transition:transform .15s; }
.dev-card[open] > summary .chev { transform:rotate(-135deg); margin-bottom:-4px; }
.dev-card[open] > summary { border-bottom:1px solid var(--line); border-radius:12px 12px 0 0; }
.dev-body { display:flex; flex-direction:column; gap:10px; padding:12px 16px 14px; }
.dev-body .dev-sub { white-space:normal; overflow-wrap:anywhere; }
.dev-grid { align-items:start; }
.btn-sm.ghost { background:transparent; color:var(--muted); border:1px solid var(--line); margin-left:4px; }
.btn-sm.ghost:hover { color:var(--fg); }
.expand-btns { display:inline-flex; }
/* ---- collapsible tool groups ---- */
details.tool-group { margin:18px 0 0; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.015); scroll-margin-top:16px; }
details.tool-group > summary { list-style:none; display:flex; align-items:center; gap:12px; margin:0; padding:12px 16px; border:0;
  cursor:pointer; user-select:none; border-radius:12px; font-size:1.1rem; font-weight:600; color:#ebddb0; }
details.tool-group > summary::-webkit-details-marker { display:none; }
details.tool-group > summary:hover { background:rgba(201,162,39,.08); }
details.tool-group > summary:focus-visible { outline:2px solid #c9a227; outline-offset:-2px; }
details.tool-group[open] > summary { border-bottom:1px solid var(--line); border-radius:12px 12px 0 0; }
.sec-title { flex:1; }
.sec-count { font-size:.8rem; font-weight:400; color:var(--muted); }
details.tool-group[open] > summary .chev { transform:rotate(-135deg); margin-bottom:-4px; }
details.tool-group > .tool-grid { padding:14px; }
.head-actions .btn-sm.ghost { margin-left:0; }
/* ---- collapsible tool cards ---- */
.tool { padding:0; gap:0; }
details.tool-card > summary { list-style:none; }
details.tool-card > summary::-webkit-details-marker { display:none; }
.tool-head { display:flex; align-items:center; gap:10px; padding:12px 14px; cursor:pointer; user-select:none; border-radius:12px; }
.tool-head:hover { background:rgba(201,162,39,.07); }
.tool-head:focus-visible { outline:2px solid #c9a227; outline-offset:-2px; }
.tool-head-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.tool-name { font-weight:600; font-size:1rem; }
.tool-desc { overflow-wrap:anywhere; }
details.tool-card:not([open]) .tool-desc { display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
details.tool-card[open] > summary { border-bottom:1px solid var(--line); border-radius:12px 12px 0 0; }
details.tool-card[open] > summary .chev { transform:rotate(-135deg); margin-bottom:-4px; }
.tool-body { display:flex; flex-direction:column; gap:8px; padding:12px 16px 14px; }
.tool-badge { padding:1px 8px; border-radius:999px; border:1px solid var(--ok); color:var(--ok); }
.tool-badge.err { border-color:var(--danger); color:var(--danger); }
.tool.running .tool-head { box-shadow:inset 3px 0 0 #c9a227; }
.tool-grid { align-items:start; }
/* ---- logo v2: transparent emblem + wordmark (no card frame) ---- */
.logo, .home-logo { max-width:560px; margin-left:auto; margin-right:auto; }
.logo img, .home-logo img { display:block; width:100%; height:auto; border-radius:0; box-shadow:none; background:none; }
.logo { margin-top:12px; margin-bottom:8px; }
.home-logo { margin-top:16px; margin-bottom:30px; }
@media (max-width:420px) { .logo, .home-logo { max-width:100%; } }
.btn-big.alt3 { background:linear-gradient(90deg,#d97706,#9c7a1e); }

/* =====================================================================
   Mobile / responsive pass
   ===================================================================== */
/* never let a grid column be wider than the screen */
.dev-grid  { grid-template-columns:repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.tool-grid { grid-template-columns:repeat(auto-fill, minmax(min(360px, 100%), 1fr)); }
.stats     { grid-template-columns:repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.net-summary .facts { grid-template-columns:repeat(auto-fill, minmax(min(220px, 100%), 1fr)); min-width:0; }
img, svg, pre, table { max-width:100%; }
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body { padding-left:env(safe-area-inset-left); padding-right:env(safe-area-inset-right); }
button, .button, a.chip.link, .seg-btn, summary { touch-action:manipulation; }

@media (max-width: 720px) {
  /* header bar: brand on top, links in a swipeable row underneath */
  .bar { flex-wrap:wrap; gap:6px 12px; padding:8px 12px; padding-top:max(8px, env(safe-area-inset-top)); }
  .bar nav { width:100%; gap:16px; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; padding:2px 0 4px; }
  .bar nav::-webkit-scrollbar { display:none; }
  .bar nav a, .bar nav .who, .bar nav button { white-space:nowrap; padding:4px 0; }
  .bar nav form { margin-left:auto; }

  main { padding:14px 12px 28px; }
  .card { padding:16px; border-radius:10px; }
  .narrow { margin:16px auto; }
  .card.wide { margin-top:14px; }
  h1 { font-size:1.3rem; }
  .row { gap:8px; }

  /* 16px inputs: stops iPhone Safari from zooming in when a field is tapped */
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size:16px !important; }
  input.otp { font-size:1.3rem !important; max-width:100%; }

  /* comfortable tap targets */
  button, .button { min-height:40px; }
  .btn-sm { min-height:34px; }

  /* filter rows stack */
  .filters { flex-direction:column; align-items:stretch; }
  .filters label, .filters input, .filters select { width:100%; }

  /* ---------- tables become cards ---------- */
  table.rtable { border:0; margin-top:8px; }
  table.rtable thead { display:none; }
  table.rtable, table.rtable tbody, table.rtable tr, table.rtable td { display:block; width:100%; }
  table.rtable tr { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:8px 12px; margin-bottom:10px; }
  table.rtable td { display:flex; gap:12px; align-items:baseline; padding:5px 0; border:0; white-space:normal; overflow-wrap:anywhere; text-align:left; max-width:none; }
  table.rtable td::before { content:attr(data-label); flex:0 0 34%; color:var(--muted); font-size:.78rem; text-transform:uppercase; letter-spacing:.04em; }
  table.rtable td[data-label=""]::before { content:none; }
  table.rtable td[data-label=""] { justify-content:flex-end; border-top:1px solid var(--line); margin-top:4px; padding-top:8px; }
  table.rtable td[colspan] { display:block; }
  table.rtable td.actions { gap:18px; }
  .scroll { overflow:visible; }

  /* ---------- homepage ---------- */
  .home { padding:16px 12px 28px; }
  .home-actions.stack .btn-big { width:100%; min-width:0; max-width:420px; }
  .btn-big { padding:14px 18px; }

  /* ---------- network devices ---------- */
  .net-head { gap:10px; }
  .net-head form button { width:100%; }
  .net-summary .big { flex:1 1 120px; }
  .net-toolbar { gap:8px; padding:8px 0; }
  .net-toolbar input[type=search] { min-width:0; flex:1 1 100%; }
  .seg { width:100%; overflow-x:auto; scrollbar-width:none; }
  .seg::-webkit-scrollbar { display:none; }
  .seg-btn { flex:1 0 auto; padding:9px 10px; }
  .expand-btns { flex:1 1 auto; }
  .net-toolbar select { flex:1 1 auto; }
  .dev-head { padding:12px; }
  .dev-body { padding:12px; }
  .note-bar { flex-wrap:wrap; }
  .note-bar .btn-sm { margin-left:auto; }
  details dl, dl.kv { min-width:0; }

  /* ---------- network tools ---------- */
  .head-actions { flex-wrap:wrap; width:100%; }
  .head-actions > * { flex:1 1 auto; text-align:center; }
  .jump { gap:8px 14px; }
  details.tool-group > summary { padding:12px; font-size:1rem; }
  details.tool-group > .tool-grid { padding:10px; }
  .tool .fields { flex-direction:column; align-items:stretch; }
  .tool .fields label, .tool .fields label.grow { flex:1 1 auto; width:100%; }
  .tool .fields input[type=number] { width:100%; }
  .tool-bar { flex-wrap:wrap; }
  .tool-bar button[type=submit] { flex:1 1 auto; }
  pre.tool-out { font-size:12px; max-height:60vh; }

  /* ---------- account / 2FA ---------- */
  ol.codes { columns:1; }
  .inline-form { flex-direction:column; align-items:stretch; }
  .inline-form input.otp { max-width:none; }
  .qr img { width:min(240px, 70vw); height:auto; }
  .secret { font-size:.95rem; word-break:break-all; }
}

@media (max-width: 380px) {
  .net-summary .big .v { font-size:1.6rem; }
  table.rtable td::before { flex-basis:40%; }
}

/* ---- network page: desktop defaults for the new wrappers ---- */
.bigs { display:flex; gap:12px; }
.ip-inline { display:none; }
.hide-sm { display:inline; }

/* ---- network page: phone layout ---- */
@media (max-width: 720px) {
  .hide-sm { display:none; }

  /* title row: heading + compact Scan button side by side, scan info underneath */
  .net-head { flex-wrap:nowrap; align-items:flex-start; margin-bottom:12px; }
  .net-head > div { min-width:0; flex:1; }
  .net-head h1 { font-size:1.25rem; margin-bottom:2px; }
  .net-head form button { width:auto; min-height:36px; padding:6px 12px; font-size:.9rem; white-space:nowrap; }
  #scan-info { line-height:1.35; }

  /* summary: counters as one compact row, network facts in a 2-column grid */
  .net-summary { flex-direction:column; gap:8px; margin-bottom:10px; }
  .bigs { gap:8px; }
  .net-summary .big { flex:1 1 0; display:flex; align-items:baseline; justify-content:center; gap:8px; padding:8px 10px; min-width:0; border-radius:10px; }
  .net-summary .big .v { display:inline; font-size:1.5rem; }
  .net-summary .big .k { font-size:.72rem; }
  .net-summary .facts { grid-template-columns:1fr 1fr; gap:8px 12px; padding:10px 12px; font-size:.8rem; border-radius:10px; }
  .facts .k { font-size:.65rem; }
  .facts .v { overflow-wrap:anywhere; line-height:1.3; }
  .facts .v .muted { display:block; }

  /* toolbar: not sticky (it was eating the screen); search / filters / sort+expand in three tidy rows */
  .net-toolbar { position:static; display:grid; grid-template-columns:1fr auto; gap:8px; padding:0 0 10px; margin-bottom:4px; }
  .net-toolbar input[type=search] { grid-column:1 / -1; width:100%; }
  .net-toolbar .seg { grid-column:1 / -1; display:grid; grid-template-columns:repeat(4, 1fr); width:100%; overflow:visible; }
  .net-toolbar .seg-btn { padding:8px 2px; font-size:.82rem; text-align:center; white-space:nowrap; min-height:38px; }
  .net-toolbar .seg-btn .n { display:block; font-size:.7rem; margin:0; }
  .net-toolbar select { grid-column:1; width:100%; min-width:0; }
  .net-toolbar .expand-btns { grid-column:2; display:flex; gap:6px; }
  .net-toolbar .expand-btns .btn-sm { margin:0; padding:4px 10px; }

  /* cards: one column, roomy header; IP moves into the status line so long names get the full width */
  .dev-grid { grid-template-columns:1fr; gap:10px; margin-top:6px; }
  .dev { border-radius:10px; }
  .dev-head { padding:11px 12px; gap:10px; }
  .dev-head .ip { display:none; }
  .ip-inline { display:inline; font-family:ui-monospace, Menlo, Consolas, monospace; color:#ebddb0; }
  .dev-name { font-size:.98rem; line-height:1.25; }
  .dev-state { margin-top:2px; }
  .dev-body { padding:10px 12px 12px; gap:8px; }
  .dev-meta { gap:6px; }
  .dev-meta .mono { font-size:.8rem; }
  .chips { gap:5px; }
  .chip { font-size:.72rem; }
  .note textarea { font-size:16px; }
  .dev details summary { padding:4px 0; }
  .dev dl.kv { grid-template-columns:minmax(0, 40%) minmax(0, 1fr); font-size:.8rem; }
  .dev table.ports th:nth-child(1), .dev table.ports td:nth-child(1) { width:4.8em; }
  .dev table.ports th:nth-child(2), .dev table.ports td:nth-child(2) { width:4.5em; }
  .dev table.ports { font-size:.78rem; }
}
/* ---- failed-login alert in the header ---- */
.sec-alert { display:flex; align-items:flex-start; gap:10px; padding:10px 16px; background:#2a0d0f; border-bottom:1px solid #7f1d1d;
  color:#fecaca; font:14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
.sec-alert strong { color:#fca5a5; }
.sec-alert a { color:#fda4af; font-weight:600; margin-left:4px; }
.sec-alert-icon { font-size:1.15rem; line-height:1.2; color:#f87171; }
.sec-alert-text { flex:1; min-width:0; overflow-wrap:anywhere; }
.sec-alert-dismiss { margin:0; }
.sec-alert-dismiss button { padding:4px 12px; min-height:0; font-size:.85rem; background:transparent; color:#fecaca; border:1px solid #7f1d1d; border-radius:999px; }
.sec-alert-dismiss button:hover { background:#3f1215; }
@media (max-width:720px) { .sec-alert { flex-wrap:wrap; padding:10px 12px; } .sec-alert-dismiss { margin-left:auto; } }

/* ---- network tools page: phone layout ---- */
@media (max-width: 720px) {
  /* header: title, then a 2x2 grid of equal buttons; jump links hidden (the group headers are right below) */
  .net-head.tools-head { flex-direction:column; flex-wrap:nowrap; align-items:stretch; gap:10px; margin-bottom:6px; }
  .tools-head h1 { font-size:1.25rem; margin-bottom:2px; }
  .tools-head .head-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; width:100%; }
  .tools-head .head-actions > * { width:100%; min-height:38px; margin:0; display:flex; align-items:center; justify-content:center;
                                  padding:6px 8px; font-size:.88rem; font-weight:500; border-radius:8px; text-align:center;
                                  background:#14141c; color:var(--fg); border:1px solid #33334a; text-decoration:none; }
  .tools-head .head-actions > [hidden] { display:none; }
  .tools-head .jump { display:none; }

  /* groups + cards: tighter, full width */
  details.tool-group { margin-top:10px; border-radius:10px; }
  details.tool-group > summary { padding:12px; font-size:1rem; gap:8px; }
  details.tool-group[open] > summary { border-radius:10px 10px 0 0; }
  details.tool-group > .tool-grid { padding:8px; gap:8px; grid-template-columns:1fr; }
  .tool { border-radius:10px; }
  .tool-head { padding:11px 12px; gap:8px; }
  .tool-name { font-size:.95rem; }
  .tool-desc { font-size:.78rem; }
  details.tool-card[open] > summary { border-radius:10px 10px 0 0; }
  .tool-body { padding:10px 12px 12px; }

  /* fields stacked full width */
  .tool .fields { flex-direction:column; align-items:stretch; gap:8px; }
  .tool .fields label, .tool .fields label.grow { width:100%; flex:none; font-size:.8rem; }
  .tool .fields input:not([type=checkbox]), .tool .fields select { width:100%; margin-top:3px; padding:9px 10px; }
  .tool .fields label.check { flex-direction:row; padding:4px 0; font-size:.9rem; color:var(--fg); }

  /* Run takes the row, Clear beside it, status text on its own line underneath */
  .tool-bar { flex-wrap:wrap; gap:8px; margin-top:10px; }
  .tool-bar button[type=submit] { flex:1 1 auto; min-height:42px; }
  .tool-bar .btn-clear { flex:0 0 auto; min-height:42px; }
  .tool-bar .tool-status { flex:1 1 100%; order:3; }

  /* command output keeps its columns: scroll sideways instead of wrapping mid-column */
  pre.tool-out { white-space:pre; overflow-wrap:normal; overflow:auto; -webkit-overflow-scrolling:touch;
                 font-size:11.5px; line-height:1.45; max-height:60vh; padding:8px 10px; }
}
/* ---- passkeys ---- */
.passkey-box { margin:8px 0 4px; }
.passkey-btn { width:100%; display:flex; align-items:center; justify-content:center; gap:10px; padding:12px 16px; font-size:1rem;
  background:linear-gradient(90deg,#2f7a52,#1f5c3d); border-radius:999px; min-height:46px; }
.passkey-btn:disabled { opacity:.7; cursor:progress; }
.passkey-status { margin:8px 0 0; text-align:center; }
.err-text { color:var(--danger); }
.or-divider { display:flex; align-items:center; gap:10px; margin:18px 0 6px; color:var(--muted); font-size:.82rem; }
.or-divider::before, .or-divider::after { content:""; flex:1; border-top:1px solid var(--line); }
.pk-list { list-style:none; margin:12px 0; padding:0; border:1px solid var(--line); border-radius:8px; }
.pk-list li { display:flex; align-items:center; gap:12px; padding:10px 12px; border-bottom:1px solid var(--line); }
.pk-list li:last-child { border-bottom:0; }
.pk-main { flex:1; min-width:0; display:flex; flex-direction:column; overflow-wrap:anywhere; }
.pk-add-fields { display:grid; grid-template-columns:1fr 1fr; gap:0 12px; }
@media (max-width:720px) { .pk-add-fields { grid-template-columns:1fr; } }
/* login history: method badges */
a.method { text-decoration:none; font-size:.85em; padding:1px 8px; border-radius:999px; border:1px solid var(--line); color:var(--muted); white-space:nowrap; }
a.method-passkey { color:#ebddb0; border-color:#14402a; }
a.method-passwordtotp, a.method-passwordrecovery { color:#ebddb0; border-color:#14402a; }
a.method-password { color:#fbbf24; border-color:#92400e; }
.method-summary { margin:6px 0 0; }
/* login history: full browser string, wrapped */
table td.ua { white-space:normal; overflow-wrap:anywhere; word-break:break-word; min-width:220px; max-width:420px; line-height:1.35; font-size:.82rem; }
@media (max-width:720px) { table.rtable td.ua { min-width:0; max-width:none; } }
/* ---- site footer ---- */
.site-footer { max-width:820px; margin:40px auto 0; padding:18px 16px calc(22px + env(safe-area-inset-bottom)); border-top:1px solid var(--line);
  color:var(--muted); font-size:.78rem; line-height:1.55; text-align:center; }
.site-footer p { margin:0 0 6px; }
.site-footer .sf-copy { color:var(--fg); font-weight:500; font-size:.82rem; }
.site-footer strong { color:#fca5a5; font-weight:600; }
@media (max-width:720px) { .site-footer { margin-top:24px; font-size:.75rem; padding-left:14px; padding-right:14px; } }
/* ---- homepage admin guide (admins only) ---- */
.admin-guide { max-width:1040px; margin:36px auto 0; text-align:left; }
.admin-guide h2 { font-size:1.15rem; margin:0 0 14px; display:flex; align-items:center; gap:10px; justify-content:center; flex-wrap:wrap; }
.guide-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap:12px; }
.guide-card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px 16px; }
.guide-card h3 { margin:0 0 6px; font-size:.98rem; display:flex; align-items:center; gap:8px; }
.guide-card p { margin:0; color:#c9d1d9; font-size:.88rem; line-height:1.5; }
.guide-card a { white-space:nowrap; }
.dot-ico { width:10px; height:10px; border-radius:50%; flex:none; }
.dot-ico.c1 { background:linear-gradient(90deg,#2f7a52,#1f5c3d); }
.dot-ico.c2 { background:linear-gradient(90deg,#7a5c12,#9c7a1e); }
.dot-ico.c3 { background:linear-gradient(90deg,#059669,#2f7a52); }
.dot-ico.c4 { background:linear-gradient(90deg,#d97706,#9c7a1e); }
.dot-ico.c5 { background:#d9b64a; }
.dot-ico.c6 { background:#e3c24f; }
.guide-note { text-align:center; margin:14px auto 0; max-width:720px; }
@media (max-width:720px) { .admin-guide { margin-top:24px; } .guide-card { padding:12px 14px; } }
/* ---- homepage welcome for regular users ---- */
.user-welcome { max-width:960px; margin:12px auto 0; text-align:left; }
.user-welcome h2 { font-size:1.3rem; margin:0 0 6px; text-align:center; }
.welcome-lead { text-align:center; color:#c9d1d9; margin:0 auto 18px; max-width:620px; line-height:1.55; }
.guide-card.coming-soon { border-style:dashed; border-color:#14402a; background:linear-gradient(135deg, rgba(122,92,18,.10), rgba(219,39,119,.06)); }
/* ---- homepage: "secure your account" card for users without passkey/2FA ---- */
.secure-nudge { display:flex; align-items:center; gap:16px; margin:14px auto 18px; padding:16px 18px; border-radius:12px;
  border:1px solid #d97706; background:linear-gradient(135deg, rgba(217,119,6,.18), rgba(219,39,119,.10)); text-align:left;
  box-shadow:0 0 0 1px rgba(217,119,6,.15), 0 8px 30px rgba(217,119,6,.12); }
.nudge-icon { flex:none; width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:#fbbf24; background:rgba(251,191,36,.12); border:1px solid rgba(251,191,36,.4); }
.nudge-body { flex:1; min-width:0; }
.nudge-body h3 { margin:0 0 4px; font-size:1.02rem; color:#fde68a; }
.nudge-body p { margin:0; font-size:.9rem; line-height:1.5; color:#f5f5f4; }
.nudge-btn { flex:none; padding:11px 18px; border-radius:999px; font-weight:600; text-decoration:none; color:#1c1917;
  background:linear-gradient(90deg,#fbbf24,#f59e0b); white-space:nowrap; }
.nudge-btn:hover { filter:brightness(1.08); }
.nudge-btn:focus-visible { outline:2px solid #fde68a; outline-offset:2px; }
@media (max-width:720px) {
  .secure-nudge { flex-direction:column; align-items:stretch; text-align:left; gap:12px; padding:14px; }
  .nudge-icon { width:44px; height:44px; }
  .nudge-btn { text-align:center; padding:12px; }
}
/* ---- admin "view as user" preview ---- */
.viewas-toggle { display:inline; margin:0; }
.viewas-toggle button.link { color:#fbbf24; font:inherit; padding:0; background:none; border:0; cursor:pointer; min-height:0; }
.viewas-toggle button.link:hover { text-decoration:underline; }
.viewas-banner { position:sticky; top:0; z-index:50; display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:10px 16px;
  background:repeating-linear-gradient(135deg, #3b2a05 0 14px, #4a3407 14px 28px); border-bottom:2px solid #f59e0b;
  color:#fef3c7; font:14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
.viewas-eye { font-size:1.2rem; }
.viewas-text { flex:1; min-width:200px; }
.viewas-text strong { color:#fde68a; }
.viewas-form { margin:0; }
.viewas-form button { background:linear-gradient(90deg,#fbbf24,#f59e0b); color:#1c1917; font-weight:600; border:0; border-radius:999px; padding:7px 14px; min-height:0; cursor:pointer; }
@media (max-width:720px) { .viewas-banner { padding:10px 12px; } .viewas-form, .viewas-form button { width:100%; } }
/* ---- homepage: client projects ---- */
.my-projects { margin:6px 0 20px; }
.my-projects h3 { font-size:1.05rem; margin:0 0 10px; color:#ebddb0; text-align:center; }
.project-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap:12px; }
.project-card { background:var(--card); border:1px solid #14402a; border-radius:12px; padding:16px; display:flex; flex-direction:column; gap:8px;
  box-shadow:0 0 0 1px rgba(201,162,39,.15), 0 8px 28px rgba(201,162,39,.12); }
.project-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.project-head h4 { margin:0; font-size:1.05rem; overflow-wrap:anywhere; }
.project-card p { margin:0; color:#c9d1d9; font-size:.9rem; line-height:1.5; }
.project-open { margin-top:auto; align-self:flex-start; padding:10px 16px; border-radius:8px; font-weight:600; text-decoration:none; color:#fff;
  background:linear-gradient(90deg,#2f7a52,#1f5c3d); }
.project-open:hover { filter:brightness(1.12); }
textarea { display:block; width:100%; margin-top:4px; padding:8px 10px; font:inherit; color:var(--fg); background:var(--bg); border:1px solid var(--line); border-radius:6px; resize:vertical; }
@media (max-width:720px) { .project-open { align-self:stretch; text-align:center; } }
/* account: required email */
.card.needs-email { border-color:#d97706; box-shadow:0 0 0 1px rgba(217,119,6,.25); }
.pill.pending { color:#fbbf24; border-color:#b45309; }
/* ---- project discussion ---- */
.project-actions { margin-top:auto; display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.project-discuss { display:inline-block; padding:9px 16px; border-radius:8px; font-weight:600; font-size:.92rem; text-decoration:none; color:var(--fg);
                   background:transparent; border:1px solid var(--accent); }
.project-discuss:hover { background:rgba(255,255,255,.06); border-color:var(--accent); filter:brightness(1.15); }
.project-discuss .count-badge { margin-left:4px; }
@media (max-width:720px) { .project-discuss { text-align:center; } }
.count-badge { display:inline-block; margin-left:4px; padding:0 8px; border-radius:999px; background:#b45309; color:#fff; font-size:.75rem; font-weight:600; }
.warn-text { color:#fbbf24; }
ol.thread { list-style:none; margin:14px 0; padding:0; display:flex; flex-direction:column; gap:10px; }
.post { border:1px solid var(--line); border-radius:10px; padding:10px 14px; background:var(--bg); }
.post.from-admin { border-color:#14402a; background:rgba(31,92,61,.08); }
.post.kind-change { border-left:4px solid #d97706; }
.post-head { display:flex; align-items:center; flex-wrap:wrap; gap:6px 8px; margin-bottom:6px; }
.post-time { margin-left:auto; }
.post-body { line-height:1.55; overflow-wrap:anywhere; white-space:normal; }
.pill.cr { color:#fbbf24; border-color:#b45309; }
.pill.st-open { color:#fca5a5; border-color:#991b1b; }
.pill.st-in_progress { color:#ebddb0; border-color:#14402a; }
.pill.st-done { color:var(--ok); border-color:var(--ok); }
.pill.st-declined { color:var(--muted); }
.status-form { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:8px; }
.status-form label { margin:0; display:flex; align-items:center; gap:6px; }
.status-form select { width:auto; margin:0; padding:4px 8px; }
.post-form { margin-top:16px; border-top:1px solid var(--line); padding-top:14px; }
.kind-choice { display:flex; gap:18px; margin-bottom:6px; }
.kind-choice label { display:flex; align-items:center; gap:6px; margin:0; font-weight:500; }
@media (max-width:720px) { .post-time { margin-left:0; width:100%; } .project-actions { align-items:stretch; } }
.btn-big.alt4 { background:linear-gradient(90deg,#1f5c3d,#2f7a52); }
.btn-big.alt6 { background:linear-gradient(90deg,#2f7a52,#e3c24f 45%,#1f5c3d); }
.btn-big.alt5 { background:linear-gradient(90deg,#0f766e,#65a30d); }
.flash { overflow-wrap:anywhere; }
/* ---- project status popup (hover / focus / tap) ---- */
.status-pill { position:relative; cursor:help; display:inline-flex; align-items:center; gap:6px; outline:none; }
.status-pill:focus-visible { box-shadow:0 0 0 2px #c9a227; }
.tip-i { display:inline-flex; align-items:center; justify-content:center; width:14px; height:14px; border-radius:50%; font:700 10px/1 Georgia, serif;
  font-style:italic; border:1px solid currentColor; opacity:.75; }
.status-tip { display:none; position:absolute; z-index:80; top:calc(100% + 10px); left:50%; transform:translateX(-50%);
  width:max-content; max-width:min(300px, 86vw); padding:12px 14px; border-radius:10px; text-align:left; white-space:normal;
  background:#201e18; border:1px solid #3b3b55; box-shadow:0 12px 32px rgba(0,0,0,.55);
  font:400 .84rem/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; color:#e5e7eb; letter-spacing:0; text-transform:none; }
.status-tip::before { content:""; position:absolute; top:-6px; left:50%; width:10px; height:10px; transform:translateX(-50%) rotate(45deg);
  background:#201e18; border-left:1px solid #3b3b55; border-top:1px solid #3b3b55; }
.status-pill:hover .status-tip, .status-pill:focus .status-tip, .status-pill:focus-within .status-tip { display:flex; flex-direction:column; gap:4px; }
.status-tip .tip-title { font-weight:700; color:#fff; margin-bottom:2px; }
.status-tip .tip-lead { color:#c9d1d9; margin-bottom:2px; }
.status-tip .tip-yes { color:#86efac; }
.status-tip .tip-no { color:#fca5a5; }
.scroll.tips-ok { overflow:visible; }
/* near the right edge (table cells, card corners): open leftwards so it stays on screen */
td .status-tip, .project-head .status-tip, .row > .status-pill .status-tip { left:auto; right:-8px; transform:none; }
td .status-tip::before, .project-head .status-tip::before, .row > .status-pill .status-tip::before { left:auto; right:22px; transform:rotate(45deg); }
@media (max-width:720px) { .status-tip { max-width:min(280px, 82vw); } }
/* ---- disabled projects ---- */
.pill.st-disabled { color:#fff; background:#b91c1c; border-color:#ef4444; font-weight:700; }
.disabled-alert { margin:12px 0; padding:12px 16px; border-radius:10px; border:2px solid #ef4444; background:rgba(185,28,28,.18); color:#fecaca; line-height:1.5; }
.disabled-alert strong { color:#fff; }
.disabled-alert .inline-form { margin:10px 0 0; }
.enable-btn { background:linear-gradient(90deg,#059669,#2f7a52); }
.disable-card { border-color:#7f1d1d; }
tr.row-disabled td { background:rgba(185,28,28,.14); }
tr.row-disabled td:first-child { box-shadow:inset 4px 0 0 #ef4444; }
.row-alert { display:block; margin-bottom:4px; color:#fca5a5; font-weight:700; font-size:.78rem; letter-spacing:.02em; }
.project-card:has(.st-disabled) { border-color:#ef4444; box-shadow:0 0 0 1px rgba(239,68,68,.35); }
.disabled-note { color:#fca5a5 !important; font-weight:500; }
@media (max-width:720px) { table.rtable tr.row-disabled { border-color:#ef4444; background:rgba(185,28,28,.14); } table.rtable tr.row-disabled td { background:none; box-shadow:none; } }
/* admin-only notes */
.post.internal { border:1px dashed #b45309; background:repeating-linear-gradient(135deg, rgba(180,83,9,.08) 0 12px, rgba(180,83,9,.03) 12px 24px); }
.pill.internal-pill { color:#fbbf24; border-color:#b45309; background:rgba(180,83,9,.15); }
.internal-choice { color:#fbbf24; }
/* ---- client projects dashboard ---- */
.proj-page { display:flex; flex-direction:column; gap:14px; }
.proj-head { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; }
.proj-head h1 { margin:0 0 4px; }
.proj-head p { margin:0; }
.proj-chips { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.chip-count { font-size:.8rem; padding:3px 10px; border-radius:999px; border:1px solid var(--line); color:var(--muted); background:var(--card); }
.chip-count strong { color:var(--fg); }
.chip-active { border-color:#166534; } .chip-completed { border-color:#166534; }
.chip-on_hold, .chip-paused { border-color:#92400e; }
.chip-disabled { border-color:#ef4444; color:#fca5a5; }
.new-proj-btn { white-space:nowrap; }
details.new-project { padding:0; }
details.new-project > summary { list-style:none; cursor:pointer; padding:14px 18px; font-weight:600; display:flex; align-items:center; gap:10px; }
details.new-project > summary::-webkit-details-marker { display:none; }
details.new-project[open] > summary { border-bottom:1px solid var(--line); }
.np-plus { display:inline-flex; width:22px; height:22px; border-radius:50%; align-items:center; justify-content:center; background:linear-gradient(135deg,#2f7a52,#1f5c3d); color:#fff; font-weight:700; }
details.new-project .flash { margin:12px 18px 0; }
.np-form { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; padding:6px 18px 16px; }
.np-form .np-wide { grid-column:1 / -1; }
.np-actions { grid-column:1 / -1; display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.np-actions p { margin:0; }
.empty-state { text-align:center; padding:32px 20px; }
.proj-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(440px, 100%), 1fr)); gap:14px; align-items:start; }
.proj-card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px 18px; display:flex; flex-direction:column; gap:12px; min-width:0; }
.proj-card:hover { border-color:#3b3b55; }
.proj-card.status-on_hold, .proj-card.status-paused { border-left:3px solid #d97706; }
.proj-card.status-completed { border-left:3px solid var(--ok); }
.proj-card.status-archived { opacity:.7; }
.proj-card.is-disabled { border:2px solid #ef4444; background:linear-gradient(180deg, rgba(185,28,28,.16), var(--card) 60%); }
.proj-disabled-bar { margin:-16px -18px 0; padding:8px 18px; border-radius:10px 10px 0 0; background:#b91c1c; color:#fff; font-weight:700; font-size:.82rem; letter-spacing:.02em; }
.proj-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.proj-card-head h2 { margin:0; font-size:1.08rem; line-height:1.3; overflow-wrap:anywhere; }
.proj-card-head h2 a { color:var(--fg); text-decoration:none; }
.proj-card-head h2 a:hover { color:#e3c24f; }
.proj-desc { margin:0; color:#c9d1d9; font-size:.9rem; line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.proj-meta { margin:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(130px, 1fr)); gap:10px 16px; padding:12px 14px; border-radius:8px; background:var(--bg); border:1px solid var(--line); }
.proj-meta div { min-width:0; }
.proj-meta dt { font-size:.68rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin-bottom:2px; }
.proj-meta dd { margin:0; font-size:.86rem; overflow-wrap:anywhere; }
.proj-actions { display:flex; gap:8px; flex-wrap:wrap; }
.proj-actions .button { text-decoration:none; display:inline-flex; align-items:center; }
a.button.ghost { background:transparent; color:var(--fg); border:1px solid var(--line); }
a.button.ghost:hover { border-color:#c9a227; }
@media (max-width:720px) {
  .proj-head { align-items:stretch; }
  .new-proj-btn { width:100%; text-align:center; }
  .np-form { grid-template-columns:1fr; }
  .proj-meta { grid-template-columns:1fr 1fr; }
  .proj-actions .button { flex:1 1 auto; justify-content:center; }
}
.disabled-reason { margin:8px 0 0; padding:8px 12px; border-radius:8px; background:rgba(0,0,0,.25); border:1px dashed #b45309; color:#fde68a; line-height:1.5; overflow-wrap:anywhere; }
.proj-card .disabled-reason { margin:0; }
/* ---- threaded discussion ---- */
.threads { display:flex; flex-direction:column; gap:14px; margin:14px 0; }
.thread-group { border:1px solid var(--line); border-radius:12px; padding:12px; background:rgba(255,255,255,.015); }
.thread-group.change-thread { border-left:4px solid #d97706; }
.thread-group.internal-thread { border:1px dashed #b45309; }
.thread-group > .post.top { border:0; background:none; padding:2px 4px 6px; }
.thread-group > .post.top.kind-change { border-left:0; }
.thread-meta { padding:0 4px 8px; }
.replies { display:flex; flex-direction:column; gap:8px; margin:2px 0 8px 18px; padding-left:14px; border-left:2px solid #2d2d40; }
.post.reply { padding:8px 12px; }
.post.reply.from-admin { border-color:#14402a; }
.reply-box { margin:4px 4px 2px; }
.reply-box > summary { cursor:pointer; color:var(--accent); font-size:.88rem; list-style:none; display:inline-block; }
.reply-box > summary::-webkit-details-marker { display:none; }
.reply-box[open] > summary { margin-bottom:6px; }
.reply-form textarea { margin:0; }
.reply-actions { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-top:6px; }
.reply-actions .check { margin:0; }
.new-thread-label { align-self:center; }
@media (max-width:720px) { .replies { margin-left:6px; padding-left:10px; } .thread-group { padding:10px; } }
/* ---- manage project page ---- */
.mp-page { display:flex; flex-direction:column; gap:14px; }
.mp-head { display:flex; flex-direction:column; gap:10px; }
.mp-head.is-disabled { border-color:#ef4444; }
.mp-crumb { margin:0; }
.mp-title { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.mp-title h1 { margin:0; }
.mp-desc { margin:0; color:#c9d1d9; max-width:760px; line-height:1.5; }
.mp-quick { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.mp-quick .button { text-decoration:none; display:inline-flex; align-items:center; gap:4px; }
.mp-facts { margin:4px 0 0; display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:10px 18px; padding:12px 14px;
  border-radius:10px; background:var(--bg); border:1px solid var(--line); }
.mp-facts div { min-width:0; }
.mp-facts .mp-files { grid-column:span 2; }
.mp-facts dt { font-size:.68rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin-bottom:2px; }
.mp-facts dd { margin:0; font-size:.88rem; overflow-wrap:anywhere; }
.mp-cols { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:14px; align-items:start; }
.mp-section { display:flex; flex-direction:column; gap:10px; }
.mp-section .h2 { margin:0; }
.mp-form label { margin:8px 0; }
.mp-two { display:grid; grid-template-columns:1fr 1fr; gap:0 12px; }
.mp-status-help { display:flex; flex-direction:column; gap:3px; padding:10px 12px; border-radius:8px; background:var(--bg); border:1px solid var(--line); font-size:.84rem; margin:6px 0 4px; }
.mp-status-help .tip-title { font-weight:600; color:var(--fg); margin-bottom:2px; }
.mp-status-help .tip-yes { color:#86efac; } .mp-status-help .tip-no { color:#fca5a5; } .mp-status-help .tip-lead { color:#c9d1d9; }
.mp-save { display:flex; justify-content:flex-end; margin-top:6px; }
.mp-members { list-style:none; margin:0; padding:0; border:1px solid var(--line); border-radius:10px; }
.mp-members li { display:flex; align-items:center; gap:12px; padding:10px 12px; border-bottom:1px solid var(--line); }
.mp-members li:last-child { border-bottom:0; }
.avatar { flex:none; width:34px; height:34px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-weight:700;
  color:#fff; background:linear-gradient(135deg,#2f7a52,#7a5c12); }
.mm-main { flex:1; min-width:0; display:flex; flex-direction:column; overflow-wrap:anywhere; }
.mm-name { font-weight:600; color:var(--fg); text-decoration:none; }
.mm-name:hover { color:#e3c24f; }
.mm-actions { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.mm-actions form { margin:0; }
.btn-xs { padding:4px 10px; font-size:.78rem; min-height:0; border-radius:999px; background:#1c1c26; color:var(--fg); border:1px solid #33334a; }
.btn-xs:hover { border-color:#c9a227; }
.btn-xs.danger-outline { color:#fca5a5; border-color:#7f1d1d; background:transparent; }
.btn-xs.danger-outline:hover { background:rgba(185,28,28,.2); }
.mp-empty { margin:0; }
.mp-fold { border:1px solid var(--line); border-radius:10px; padding:0 12px; }
.mp-fold > summary { cursor:pointer; padding:10px 0; list-style:none; color:#ebddb0; font-weight:500; }
.mp-fold > summary::-webkit-details-marker { display:none; }
.mp-fold[open] > summary { border-bottom:1px solid var(--line); margin-bottom:6px; }
.mp-fold .mp-form { padding-bottom:10px; }
.mp-subfold { margin:4px 0 10px; }
.mp-subfold > summary { cursor:pointer; color:var(--accent); }
.mp-danger { border-color:#7f1d1d; display:flex; flex-direction:column; gap:10px; }
.mp-danger .h2 { margin:0; color:#fca5a5; }
.mp-danger .mp-fold { border-color:#7f1d1d; }
.mp-danger .mp-fold > summary { color:var(--fg); }
.mp-danger .inline-form { margin-bottom:10px; }
@media (max-width:900px) { .mp-cols { grid-template-columns:1fr; } }
@media (max-width:720px) {
  .mp-two { grid-template-columns:1fr; }
  .mp-facts { grid-template-columns:1fr 1fr; }
  .mp-members li { flex-wrap:wrap; }
  .mm-actions { width:100%; justify-content:flex-start; padding-left:46px; }
  .mp-quick .button { flex:1 1 auto; justify-content:center; }
}
/* ---- edit user page ---- */
.uf-new { max-width:760px; }
.uf-title { display:flex; align-items:center; gap:14px; }
.uf-title h1 { margin:0 0 4px; }
.avatar-lg { width:52px; height:52px; font-size:1.3rem; }
.uf-badges { display:flex; gap:6px; flex-wrap:wrap; }
.uf-enabled { align-self:end; padding-bottom:10px; }
.uf-block { display:flex; flex-direction:column; gap:6px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:var(--bg); }
.uf-block p { margin:0; }
.uf-block form { margin:2px 0 0; }
.uf-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; }
.uf-list li { display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:space-between; font-size:.88rem; }
.uf-list li .tag { min-width:7.5em; text-align:center; }
.uf-projects { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.uf-projects li { display:flex; align-items:center; gap:8px; padding:6px 10px; border:1px solid var(--line); border-radius:8px; background:var(--bg); }
.uf-projects a { color:var(--fg); text-decoration:none; font-weight:500; }
.uf-projects a:hover { color:#e3c24f; }
.ok-text { color:var(--ok); }
/* ---- comments & change requests page ---- */
.dp-page { max-width:900px; margin:0 auto; width:100%; }
.chip-open { border-color:#991b1b; } .chip-progress { border-color:#14402a; } .chip-notes { border-color:#b45309; color:#fbbf24; }
.dp-composer .h2 { margin:0 0 10px; }
.dp-composer textarea, .dp-replybox textarea { margin:0; }
.dp-types { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.dp-type { margin:0; position:relative; }
.dp-type input { position:absolute; opacity:0; pointer-events:none; }
.dp-type span { display:inline-block; padding:7px 14px; border-radius:999px; border:1px solid var(--line); background:var(--bg); cursor:pointer; font-weight:500; font-size:.9rem; }
.dp-type input:checked + span { border-color:#c9a227; background:rgba(201,162,39,.18); color:#f4eedc; }
.dp-type input:focus-visible + span { outline:2px solid #c9a227; outline-offset:2px; }
.dp-type-internal input:checked + span { border-color:#b45309; background:rgba(180,83,9,.2); color:#fde68a; }
.dp-composer-foot { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-top:8px; }
.dp-composer-foot .check { margin:0; }
.dp-tabs { display:flex; gap:6px; flex-wrap:wrap; border-bottom:1px solid var(--line); padding-bottom:8px; }
.dp-tab { padding:6px 12px; border-radius:8px; text-decoration:none; color:var(--muted); font-size:.9rem; }
.dp-tab:hover { color:var(--fg); background:var(--card); }
.dp-tab.active { color:#fff; background:#14402a; }
.dp-tab .n { font-size:.75rem; opacity:.75; margin-left:2px; }
.dp-threads { display:flex; flex-direction:column; gap:12px; }
.dp-thread { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px 16px 10px; scroll-margin-top:16px; }
.dp-thread.change-thread { border-left:4px solid #d97706; }
.dp-thread.change-thread.st-in_progress { border-left-color:#2f7a52; }
.dp-thread.change-thread.st-done { border-left-color:var(--ok); }
.dp-thread.change-thread.st-declined { border-left-color:#6b7280; }
.dp-thread.internal-thread { border:1px dashed #b45309; background:repeating-linear-gradient(135deg, rgba(180,83,9,.06) 0 12px, transparent 12px 24px), var(--card); }
.dp-post { scroll-margin-top:16px; }
.dp-head { display:flex; align-items:flex-start; gap:10px; }
.dp-who { flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.dp-who .pill { margin-left:4px; }
.avatar-sm { width:26px; height:26px; font-size:.8rem; }
.avatar-team { background:linear-gradient(135deg,#1f5c3d,#7a5c12); }
.dp-status { flex:none; }
.dp-status-form { display:flex; gap:6px; align-items:center; margin:0; }
.dp-status-form select { width:auto; margin:0; padding:4px 8px; font-size:.85rem; }
.dp-body { margin:8px 0 0 44px; line-height:1.6; overflow-wrap:anywhere; }
.dp-setby { margin:4px 0 0 44px; }
.dp-replies { margin:12px 0 0 44px; padding-left:14px; border-left:2px solid #2d2d40; display:flex; flex-direction:column; gap:12px; }
.dp-reply .dp-body { margin-left:36px; margin-top:4px; }
.dp-reply.internal { padding:8px 10px; border:1px dashed #b45309; border-radius:8px; background:rgba(180,83,9,.08); }
.dp-thread-foot { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; flex-wrap:wrap; margin:10px 0 0 44px; padding-top:8px; border-top:1px solid var(--line); }
.dp-replybox { flex:1 1 100%; }
.dp-replybox > summary { cursor:pointer; color:var(--accent); font-size:.88rem; list-style:none; display:inline-block; }
.dp-replybox > summary::-webkit-details-marker { display:none; }
.dp-replybox[open] > summary { margin-bottom:8px; }
.dp-thread-foot > .muted { order:-1; }
@media (max-width:720px) {
  .dp-body, .dp-setby, .dp-thread-foot { margin-left:0; }
  .dp-replies { margin-left:6px; padding-left:10px; }
  .dp-reply .dp-body { margin-left:0; }
  .dp-head { flex-wrap:wrap; }
  .dp-status { width:100%; }
  .dp-thread { padding:12px; }
}
/* edit user: email fact gets a double-width cell and never breaks mid-address */
.mp-facts .uf-email { grid-column:span 2; }
.mp-facts .uf-email dd { overflow-wrap:normal; word-break:normal; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mp-facts .uf-email dd a { white-space:nowrap; }
/* ---- admin in charge ---- */
.lead-chip { display:inline-block; padding:1px 8px; border-radius:999px; border:1px solid #1f5c3d; color:#ebddb0; background:rgba(31,92,61,.15); font-size:.85em; white-space:nowrap; }
.lead-chip.is-me { border-color:#2f7a52; color:#a5f3fc; background:rgba(47,122,82,.15); }
.lead-name { color:#ebddb0; }
.proj-head-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.proj-scope { border-bottom:0; padding-bottom:0; }
@media (max-width:720px) { .proj-head-actions { width:100%; } .proj-scope { flex:1 1 100%; } }
/* header: brand + HOME link */
.brand-wrap { display:flex; align-items:center; gap:14px; }
.home-link { font-size:.8rem; font-weight:700; letter-spacing:.08em; text-decoration:none; color:#ebddb0; padding:4px 10px;
  border:1px solid #14402a; border-radius:999px; background:rgba(31,92,61,.15); }
.home-link:hover { color:#fff; border-color:#c9a227; background:rgba(201,162,39,.3); }
.home-link:focus-visible { outline:2px solid #c9a227; outline-offset:2px; }
/* ---- database backups ---- */
.bk-list { display:flex; flex-direction:column; gap:10px; }
.bk-row { display:flex; flex-direction:column; gap:10px; padding:14px 16px; }
.bk-row.bk-ok { border-left:4px solid var(--ok); }
.bk-row.bk-warning { border-left:4px solid #d97706; }
.bk-row.bk-failed { border:2px solid #ef4444; background:linear-gradient(180deg, rgba(185,28,28,.14), var(--card) 70%); }
.bk-main { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.bk-when { display:flex; flex-direction:column; }
.bk-when strong { font-size:1.02rem; }
.bk-row .status-tip { left:auto; right:-8px; transform:none; }
.bk-row .status-tip::before { left:auto; right:22px; transform:rotate(45deg); }
.bk-issue { margin:0; padding:8px 12px; border-radius:8px; background:rgba(217,119,6,.12); border:1px solid #92400e; color:#fde68a; font-size:.88rem; }
.bk-failed .bk-issue { background:rgba(185,28,28,.18); border-color:#ef4444; color:#fecaca; }
.bk-facts { margin:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:10px 18px; padding:12px 14px; border-radius:8px; background:var(--bg); border:1px solid var(--line); }
.bk-facts dt { font-size:.68rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin-bottom:2px; }
.bk-facts dd { margin:0; font-size:.88rem; overflow-wrap:anywhere; }
.bk-facts .bk-dbs, .bk-facts .bk-loc { grid-column:1 / -1; }
.bk-dbs .chip { display:inline-block; margin:0 4px 4px 0; }
.bk-check { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.bk-row.bk-pending { border-left:4px solid #d97706; }
.bk-enc { font-size:.68rem; vertical-align:middle; }
.bk-cloud dd .ok-text, .bk-cloud dd .err-text { font-weight:600; }
.bk-co-list { list-style:none; margin:8px 0 0; padding:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:6px 16px; }
.bk-co-list li { display:flex; justify-content:space-between; gap:8px; padding:6px 10px; border:1px solid var(--line); border-radius:8px; background:var(--bg); }
/* ---- build with Claude Code ---- */
.cc-card { border-left:4px solid #d97757; }
.cc-steps { margin-top:12px; padding:12px 14px; border-radius:8px; background:var(--bg); border:1px solid var(--line); }
.cc-steps ol { margin:6px 0 8px; padding-left:20px; display:flex; flex-direction:column; gap:10px; }
.cc-copy { display:flex; align-items:center; gap:8px; margin-top:4px; flex-wrap:wrap; }
.cc-copy code { flex:1 1 220px; min-width:0; padding:6px 8px; border-radius:6px; background:var(--card); border:1px solid var(--line); overflow-wrap:anywhere; font-size:.82rem; }
/* ---- Claude change log ---- */
.cl-list { list-style:none; margin:8px 0 0; padding:0; display:flex; flex-direction:column; }
.cl-item { display:grid; grid-template-columns:130px 1fr; gap:4px 16px; padding:10px 0 10px 14px; border-left:2px solid var(--line); position:relative; }
.cl-item::before { content:''; position:absolute; left:-6px; top:15px; width:10px; height:10px; border-radius:50%; background:#d97757; }
.cl-item.cl-unlogged::before { background:var(--muted); }
.cl-when { display:flex; flex-direction:column; }
.cl-summary { margin:0 0 6px; overflow-wrap:anywhere; }
.cl-files { display:flex; flex-wrap:wrap; gap:4px; }
.cl-files .chip { font-size:.72rem; overflow-wrap:anywhere; }
@media (max-width:600px) { .cl-item { grid-template-columns:1fr; } .cl-when { flex-direction:row; gap:8px; align-items:baseline; } }
.cl-item.cl-detected::before { background:#d97706; }
/* ---- project version ---- */
.ver-badge { display:inline-block; margin-left:6px; padding:1px 7px; border-radius:999px; font:600 .7rem/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;
  background:rgba(201,162,39,.14); color:#ebddb0; border:1px solid rgba(201,162,39,.45); vertical-align:middle; letter-spacing:.02em; white-space:nowrap; }
.button .ver-badge, .project-open .ver-badge { background:rgba(255,255,255,.16); color:inherit; border-color:rgba(255,255,255,.35); }
.ver-badge.ver-lg { margin-left:0; font-size:.82rem; padding:2px 9px; }
.ver-fact { grid-column:span 2; }
.cl-item.cl-version::before { background:#e3c24f; }
@media (max-width:600px) { .ver-fact { grid-column:1 / -1; } }
.cl-more { margin-top:4px; }
.cl-more > summary { cursor:pointer; list-style:none; display:inline-flex; gap:8px; align-items:baseline; padding:6px 12px; margin:4px 0 0 0;
  border:1px solid var(--line); border-radius:999px; font-size:.85rem; color:var(--accent, #ebddb0); }
.cl-more > summary::-webkit-details-marker { display:none; }
.cl-more > summary:hover { border-color:currentColor; }
.cl-more .cl-close, .cl-more[open] .cl-open { display:none; }
.cl-more[open] .cl-close { display:inline; }
.cl-more[open] > summary { margin-bottom:6px; }
/* ---- deleted-project cleanup ---- */
.cu-card { margin:12px 0; }
.cu-list { list-style:none; margin:6px 0; padding:0; display:flex; flex-direction:column; gap:10px; }
.cu-steps { list-style:none; margin:4px 0 0 4px; padding:0; font-size:.84rem; }
.cu-steps li { overflow-wrap:anywhere; }
.cu-card > summary { cursor:pointer; }
.cu-card .cu-list { margin-top:10px; gap:8px; }
.cu-more { display:inline; margin-left:6px; }
.cu-more > summary { display:inline; cursor:pointer; }
.cu-more[open] > summary { display:block; margin-top:4px; }

/* ---- "Site status" bubbles card on a client's project ---- */
.status-card { margin:10px 0; padding:12px 14px; border:1px solid #4e4a3a; border-left:4px solid #e3c24f; border-radius:12px;
  background:#201f19; box-shadow:0 2px 8px rgba(0,0,0,.3); }
.status-card-title { display:block; text-align:center; margin-bottom:8px; font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#ebddb0; }
.status-bubbles { display:flex; flex-wrap:wrap; gap:6px; }
.status-bubbles .pill { margin:0; font-size:.84rem; padding:4px 11px; background:#333026; color:#f1f5f9; border-color:#475569; }
.status-bubbles .pill.ok { color:#86efac; border-color:#22c55e; background:#0f2e1d; }
.status-bubbles .pill.cr { color:#fcd34d; border-color:#d97706; background:#33230a; }
.status-bubbles .pill.accent { color:#ebddb0; border-color:#c9a227; background:#14402a; }
.status-bubbles .pill.st-disabled { color:#fff; background:#b91c1c; border-color:#ef4444; }
.status-bubbles .pill:empty { display:none; }
.project-item { display:flex; flex-direction:column; gap:8px; }
.project-item .status-card { margin:0; }
.status-bubbles .status-pill { cursor:help; text-decoration:none; position:static; }
.status-bubbles a.status-pill { cursor:pointer; }
.status-bubbles a.status-pill:hover, .status-bubbles a.status-pill:focus-visible { background:rgba(255,255,255,.08); }
/* the hover tip hangs under the whole Site status card (full width), so it can never run off the screen or get clipped */
.status-card { position:relative; }
.status-bubbles .status-tip { top:calc(100% + 8px); left:0; right:0; transform:none; width:auto; max-width:none; box-sizing:border-box;
  white-space:normal; font-weight:400; text-decoration:none; }
.status-bubbles .status-tip::before { display:none; }
.status-card .status-bubbles { position:static; }
.live-sites { margin:12px 0; }
.ls-list { list-style:none; margin:8px 0 0; padding:0; display:flex; flex-direction:column; gap:8px; }
.ls-list li { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; }
.mp-col { display:flex; flex-direction:column; gap:14px; min-width:0; }
.cl-refresh { display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; margin-left:6px; border:1px solid var(--line); border-radius:50%; font-size:1rem; line-height:1; color:var(--muted); text-decoration:none; vertical-align:middle; }
.cl-refresh:hover, .cl-refresh:focus-visible { color:var(--fg); border-color:var(--accent); }
.acct-status { margin:10px 0 6px; }
.acct-nav { margin-top:8px; }
.acct-nav a { text-decoration:none; }
.rev-list { list-style:none; margin:10px 0 6px; padding:0; display:flex; flex-direction:column; gap:8px; }
.rev-open { display:flex; align-items:center; gap:12px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; text-decoration:none; color:var(--fg); background:rgba(255,255,255,.03); }
.rev-open:hover, .rev-open:focus-visible { border-color:var(--accent); background:rgba(255,255,255,.07); }
.rev-ver { flex:none; padding:2px 10px; border-radius:999px; font:600 .82rem ui-monospace, SFMono-Regular, Menlo, monospace; color:#ebddb0; background:#14402a; border:1px solid #c9a227; }
.rev-main { flex:1; display:flex; flex-direction:column; gap:2px; min-width:0; overflow-wrap:anywhere; }
.rev-go { flex:none; font-weight:600; color:#ebddb0; }
/* ---- Home dashboard ---- */
.ha-page { max-width:1240px; margin:0 auto; padding:0 4px 24px; }
.ha-ic { flex:none; vertical-align:-4px; }
.ha-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:16px; align-items:stretch; margin:6px 0 14px; }
.ha-hero-main { padding:20px 22px; border:1px solid #474436; border-radius:16px; background:linear-gradient(135deg, #2b2920 0%, #37352a 55%, #403d30 100%); }
.ha-hero h1 { display:flex; align-items:center; gap:12px; margin:0 0 8px; font-size:1.7rem; letter-spacing:-.01em; }
.ha-logo { display:inline-flex; width:42px; height:42px; align-items:center; justify-content:center; border-radius:12px; background:rgba(201,162,39,.18); color:#ebddb0; }
.ha-sub { display:flex; flex-wrap:wrap; gap:4px 14px; margin:4px 0 0; font-size:.84rem; color:#9fb6d0; }
.ha-sub .ha-ic { vertical-align:-3px; }
.ha-live { color:#4ade80; font-weight:600; } .ha-off { color:#f87171; font-weight:600; }
.ha-weather { padding:18px 22px; border:1px solid #474436; border-radius:16px; background:#22211a; display:flex; flex-direction:column; gap:12px; }
.ha-wmain { display:flex; align-items:center; gap:14px; }
.ha-wicon { display:inline-flex; width:64px; height:64px; align-items:center; justify-content:center; border-radius:16px; background:rgba(201,162,39,.14); color:#ebddb0; }
.ha-wtemp { display:block; font-size:2.3rem; font-weight:700; line-height:1; }
.ha-wcond { color:#9fb6d0; font-size:.95rem; }
.ha-wgrid { display:grid; grid-template-columns:repeat(auto-fit, minmax(90px,1fr)); gap:8px 14px; margin:0; }
.ha-wgrid div { display:flex; flex-direction:column; }
.ha-wgrid dt { font-size:.7rem; letter-spacing:.06em; text-transform:uppercase; color:#7a8ea6; }
.ha-wgrid dd { margin:0; font-weight:600; }
.ha-stats { display:grid; grid-template-columns:repeat(auto-fit, minmax(135px, 1fr)); gap:10px; margin:0 0 14px; }
.ha-stat { position:relative; display:flex; flex-direction:column; gap:2px; padding:14px 14px 12px; border:1px solid #3d3a2e; border-radius:14px; background:#22211a; }
.ha-stat-ic { display:inline-flex; width:32px; height:32px; align-items:center; justify-content:center; border-radius:9px; background:rgba(255,255,255,.06); color:#8aa0bb; margin-bottom:6px; }
.ha-stat-val { font-size:1.25rem; font-weight:700; }
.ha-stat-lab { font-size:.76rem; color:#7a8ea6; }
.ha-stat.hot { border-color:rgba(201,162,39,.5); }
.ha-stat.hot .ha-stat-ic { background:rgba(201,162,39,.2); color:#ebddb0; }
.ha-board { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(360px,100%), 1fr)); gap:14px; align-items:start; }
.ha-card { padding:16px 18px; border:1px solid #3d3a2e; border-radius:16px; background:#22211a; }
.ha-wide { grid-column:1 / -1; }
.ha-h { display:flex; align-items:center; gap:9px; margin:0 0 12px; font-size:1rem; font-weight:700; }
.ha-h .ha-ic { color:#ebddb0; }
.ha-hsub { margin-left:auto; font-size:.76rem; font-weight:500; color:#7a8ea6; }
.ha-h3 { margin:16px 0 6px; font-size:.7rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#7a8ea6; }
.ha-rooms { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(250px,100%), 1fr)); gap:12px; }
.ha-room { padding:10px 12px 6px; border:1px solid #353228; border-radius:12px; background:#1b1914; }
.ha-roomhead { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:4px; }
.ha-roomcount { font-size:.74rem; color:#7a8ea6; } .ha-roomcount.on { color:#ebddb0; }
.ha-form { margin:0; }
.ha-row { display:flex; align-items:center; gap:10px; width:100%; box-sizing:border-box; padding:9px 0; border:0; border-top:1px solid #2e2b22; background:none; color:var(--fg); font:inherit; text-align:left; border-radius:0; min-height:0; }
.ha-form:first-of-type .ha-row, .ha-roomhead + .ha-form .ha-row { border-top:1px solid #2e2b22; }
button.ha-row { cursor:pointer; } button.ha-row:hover .ha-rowname { color:#ebddb0; }
.ha-row.is-dead { opacity:.5; }
.ha-rowname { flex:1; font-size:.9rem; }
.ha-rowval { font-size:.78rem; color:#7a8ea6; min-width:64px; text-align:right; }
.ha-row.is-on .ha-rowval { color:#ebddb0; }
.ha-sw { flex:none; position:relative; width:40px; height:23px; border-radius:999px; background:#474335; transition:background .18s; }
.ha-sw::after { content:""; position:absolute; top:3px; left:3px; width:17px; height:17px; border-radius:50%; background:#cbd5e1; transition:transform .18s, background .18s; }
.ha-row.is-on .ha-sw { background:#2f7a52; }
.ha-row.is-on .ha-sw::after { transform:translateX(17px); background:#fff; }
.ha-row.busy { opacity:.6; cursor:progress; }
.ha-row.ha-fail .ha-rowval { color:#fca5a5; }
.ha-row.ha-fail .ha-sw { background:#7f1d1d; }
.ha-climate { display:grid; grid-template-columns:repeat(auto-fit, minmax(100px,1fr)); gap:10px; }
.ha-clim { display:flex; flex-direction:column; gap:2px; padding:12px; border-radius:12px; background:#1b1914; border:1px solid #353228; }
.ha-clim-place { font-size:.76rem; color:#7a8ea6; }
.ha-clim-temp { font-size:1.7rem; font-weight:700; line-height:1.1; }
.ha-clim-hum { font-size:.8rem; color:#ebddb0; }
.ha-note { margin:12px 0 0; font-size:.8rem; color:#7a8ea6; }
.ha-person { display:flex; align-items:center; gap:12px; margin-bottom:8px; }
.ha-avatar { display:inline-flex; width:42px; height:42px; align-items:center; justify-content:center; border-radius:50%; background:linear-gradient(135deg,#2f7a52,#1f5c3d); font-weight:700; }
.ha-kv { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 0; border-top:1px solid #2e2b22; font-size:.88rem; }
.ha-kv > span:first-child { color:#c4d0e0; }
.ha-kv > span:last-child { text-align:right; color:#e5edf7; }
.ha-kv small { font-size:.74rem; }
.ha-pill { display:inline-block; padding:2px 10px; border-radius:999px; font-size:.74rem; font-weight:600; background:#343127; color:#9fb6d0; border:1px solid #474335; }
.ha-pill.ok { background:rgba(34,197,94,.13); color:#4ade80; border-color:rgba(34,197,94,.4); }
.ha-pill.bad { background:rgba(239,68,68,.13); color:#f87171; border-color:rgba(239,68,68,.4); }
.ha-meter { display:grid; grid-template-columns:minmax(90px,1fr) 2fr 42px; align-items:center; gap:10px; padding:5px 0; font-size:.85rem; }
.ha-meter b { text-align:right; font-weight:600; }
.ha-bar { height:7px; border-radius:999px; background:#343127; overflow:hidden; }
.ha-bar span { display:block; height:100%; border-radius:999px; }
.ha-bar .ok { background:#22c55e; } .ha-bar .mid { background:#f59e0b; } .ha-bar .low { background:#ef4444; }
.ha-vacstate { display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.ha-vacbat { display:inline-flex; align-items:center; gap:4px; color:#9fb6d0; }
.ha-tag { display:inline-block; padding:0 7px; border-radius:6px; font-size:.68rem; text-transform:uppercase; letter-spacing:.05em; background:#343127; color:#8aa0bb; }
.ha-runbtn { display:inline-flex; align-items:center; gap:6px; padding:6px 14px; border-radius:999px; border:1px solid #575241; background:#353228; color:#bfe3fb; font:inherit; font-size:.82rem; font-weight:600; cursor:pointer; min-height:0; }
.ha-runbtn:hover { background:#494537; } .ha-runbtn:disabled { opacity:.6; cursor:progress; }
.ha-foot { text-align:center; margin:18px 0 4px; font-size:.84rem; }
@media (max-width:820px) { .ha-hero { grid-template-columns:1fr; } .ha-hero h1 { font-size:1.4rem; } }
@media (max-width:480px) { .ha-meter { grid-template-columns:1fr 42px; } .ha-meter .ha-bar { grid-column:1 / -1; order:3; } }
/* ---- Home dashboard cameras ---- */
.ha-camgrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(380px,100%), 1fr)); gap:12px; }
.ha-cam { position:relative; margin:0; border-radius:14px; overflow:hidden; background:#0b0b09; border:1px solid #353228; aspect-ratio:16/9; cursor:zoom-in; }
.ha-cam-img { display:block; width:100%; height:100%; object-fit:cover; background:#0b0b09; }
.ha-cam figcaption { position:absolute; left:0; right:0; bottom:0; padding:22px 14px 10px; font-weight:600; font-size:.92rem; background:linear-gradient(transparent, rgba(0,0,0,.75)); }
.ha-cam-badge { position:absolute; top:10px; left:10px; padding:2px 10px; border-radius:999px; font-size:.72rem; font-weight:700; letter-spacing:.05em; background:rgba(0,0,0,.6); color:#cbd5e1; }
.ha-cam-badge.on { color:#f87171; }
.ha-cam-time { position:absolute; top:10px; right:10px; padding:2px 8px; border-radius:6px; font-size:.72rem; background:rgba(0,0,0,.6); color:#cbd5e1; }
.ha-cam.nosignal .ha-cam-time { color:#fca5a5; }
.ha-cam.is-big { position:fixed; inset:3vh 3vw; z-index:1000; aspect-ratio:auto; cursor:zoom-out; box-shadow:0 0 0 100vmax rgba(0,0,0,.82); }
.ha-cam.is-big .ha-cam-img { object-fit:contain; }
/* ---- user form: page access ---- */
.uf-pages { margin:14px 0 4px; border:1px solid var(--line); border-radius:12px; padding:0 14px; }
.uf-pages > summary { display:flex; align-items:center; gap:10px; padding:12px 0; cursor:pointer; list-style:none; }
.uf-pages > summary::-webkit-details-marker { display:none; }
.uf-pages > summary::before { content:"▸"; color:var(--muted); transition:transform .15s; }
.uf-pages[open] > summary::before { transform:rotate(90deg); }
.uf-pagefilter { width:100%; box-sizing:border-box; margin:6px 0 10px; }
.uf-group { margin:10px 0 14px; border:1px solid #353228; border-radius:10px; overflow:hidden; }
.uf-grouphead { display:flex; align-items:center; justify-content:space-between; padding:8px 12px; background:rgba(255,255,255,.04); font-size:.88rem; }
.uf-groupbtns { display:inline-flex; gap:6px; }
.uf-page { display:flex; align-items:flex-start; gap:10px; padding:9px 12px; border-top:1px solid #2e2b22; cursor:pointer; }
.uf-page:hover { background:rgba(255,255,255,.03); }
.uf-page input { margin-top:3px; }
.uf-page.is-off { opacity:.55; cursor:default; }
.uf-page[hidden], .uf-group[hidden] { display:none; }
.ha-upd { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; padding:10px 0; border-top:1px solid #2e2b22; }
.ha-upd-main { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px; min-width:0; }
.ha-upd-status { color:#ebddb0; } .ha-upd-status.ok { color:#4ade80; }
.ha-upd .ha-form { display:flex; align-items:center; gap:12px; }
.ha-bk { display:inline-flex; align-items:center; gap:6px; font-size:.78rem; color:#9fb6d0; }
.ha-checkform { margin:0 0 6px; }
.ha-update { margin:0; }
.ha-power { display:flex; flex-wrap:wrap; gap:8px; }
.ha-powerform { margin:0; }
.ha-runbtn.ha-danger { border-color:#7f1d1d; background:#3b1212; color:#fca5a5; }
.ha-runbtn.ha-danger:hover { background:#5a1717; }
.ha-tag.risk { background:#3b1212; color:#fca5a5; }
/* ---- users list: Edit / Delete buttons ---- */
td.actions { align-items:center; gap:8px; }
.act-btn { display:inline-flex; align-items:center; gap:6px; padding:6px 14px; border-radius:999px; font:inherit; font-size:.84rem; font-weight:600; line-height:1.2; text-decoration:none; cursor:pointer; min-height:0; white-space:nowrap; }
.act-edit { color:#ebddb0; background:rgba(201,162,39,.14); border:1px solid rgba(201,162,39,.55); }
.act-edit:hover { background:rgba(201,162,39,.28); border-color:#d9b64a; }
.act-delete { color:#fca5a5; background:rgba(185,28,28,.12); border:1px solid rgba(239,68,68,.5); }
.act-delete:hover { background:rgba(185,28,28,.3); border-color:#ef4444; }
/* ---- users list (card layout) ---- */
.ul-page { max-width:1100px; margin:0 auto; }
.ul-head { margin-bottom:14px; }
.ul-headrow { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.ul-headrow h1 { margin:0 0 2px; }
.ul-headrow .button { display:inline-flex; align-items:center; gap:6px; }
.ul-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.ul-links a { display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border:1px solid var(--line); border-radius:999px; font-size:.84rem; text-decoration:none; color:var(--fg); background:rgba(255,255,255,.03); }
.ul-links a:hover { border-color:var(--accent); }
.ul-filter { width:100%; box-sizing:border-box; margin-top:12px; }
.ul-list { display:flex; flex-direction:column; gap:10px; }
.ul-card { display:grid; grid-template-columns:minmax(220px,1.5fr) minmax(280px,2fr) auto; gap:16px; align-items:center; padding:14px 16px; border:1px solid var(--line); border-radius:14px; background:var(--card); }
.ul-card.is-off { opacity:.7; border-style:dashed; }
.ul-card[hidden] { display:none; }
.ul-who { display:flex; align-items:center; gap:12px; min-width:0; }
.ul-id { min-width:0; }
.ul-name { display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; }
.ul-mail { margin-top:3px; overflow-wrap:anywhere; }
.ul-facts { display:grid; grid-template-columns:repeat(4, auto); gap:6px 18px; margin:0; justify-content:start; }
.ul-facts div { display:flex; flex-direction:column; gap:3px; }
.ul-facts dt { font-size:.68rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.ul-facts dd { margin:0; font-size:.86rem; }
.ul-actions { display:flex; align-items:center; gap:8px; }
.ul-actions form { margin:0; }
@media (max-width:900px) { .ul-card { grid-template-columns:1fr; gap:12px; } .ul-facts { grid-template-columns:repeat(2, minmax(0,1fr)); } .ul-actions { justify-content:flex-end; border-top:1px solid var(--line); padding-top:10px; } }
/* ---- home page launcher ---- */
/* two newspaper columns: each group follows the one above it with the same spacing (a grid left gaps under short groups) */
.launcher { width:100%; max-width:900px; margin:6px auto 18px; display:block; column-count:2; column-gap:16px; text-align:left; }
.launcher > .launch-group { break-inside:avoid; margin:0 0 18px; }
@media (max-width:700px) { .launcher { column-count:1; } }
.launch-title { margin:0 0 8px; font-size:.72rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); }
.launch-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(250px,100%), 1fr)); gap:10px; }
.launch { display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid var(--line); border-radius:14px; background:var(--card); color:var(--fg); text-decoration:none; transition:border-color .15s, transform .15s, background .15s; }
.launch:hover, .launch:focus-visible { border-color:var(--c); background:rgba(255,255,255,.04); transform:translateY(-1px); }
.launch-ic { flex:none; display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:12px; color:var(--c); background:color-mix(in srgb, var(--c) 16%, transparent); }
.launch-txt { display:flex; flex-direction:column; min-width:0; flex:1; }
.launch-txt strong { font-size:.98rem; font-weight:600; }
.launch-txt span { font-size:.78rem; color:var(--muted); line-height:1.3; }
.launch-note { font-style:normal; color:#f87171; }   /* a warning inside a tile's description, e.g. Notes App is private */
.launch-go { flex:none; color:var(--muted); font-size:1rem; }
.launch:hover .launch-go { color:var(--c); }
.launch-stack { display:flex; flex-direction:column; gap:4px; min-width:0; }
.launch-sub { align-self:flex-start; margin-left:14px; padding:3px 10px; border-radius:999px; font-size:.8rem; color:var(--c); text-decoration:none; border:1px solid transparent; }
.launch-sub:hover, .launch-sub:focus-visible { border-color:var(--c); background:color-mix(in srgb, var(--c) 12%, transparent); }
.guide-card { border-top:2px solid var(--c, var(--line)); }
.guide-ic { flex:none; display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:9px; color:var(--c); background:color-mix(in srgb, var(--c) 16%, transparent); }
/* ---- "2FA required" pop-up ---- */
.modal2fa { position:fixed; inset:0; margin:auto; width:min(440px, calc(100vw - 32px)); padding:26px 26px 22px; border:1px solid #7f1d1d; border-radius:18px; background:#201e18; color:var(--fg); text-align:center; box-shadow:0 20px 60px rgba(0,0,0,.6); }
.modal2fa::backdrop { background:rgba(0,0,0,.72); backdrop-filter:blur(2px); }
.modal2fa-ic { display:inline-flex; align-items:center; justify-content:center; width:64px; height:64px; border-radius:50%; color:#fca5a5; background:rgba(239,68,68,.15); margin-bottom:10px; }
.modal2fa h2 { margin:0 0 10px; font-size:1.2rem; }
.modal2fa p { margin:0 0 18px; color:#cbd5e1; font-size:.95rem; line-height:1.5; }
.modal2fa-btns { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.modal2fa-btns .button { text-decoration:none; }
.forgot-link { margin:14px 0 0; text-align:center; }

.user-guide-title { font-size:1.15rem; margin:30px 0 14px; text-align:center; }

/* ---- regular-user "Your projects": one tidy card per project (header, details, status, actions) ---- */
.my-projects .project-grid { grid-template-columns:repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap:16px; }
.my-projects .project-card { padding:0; gap:0; overflow:visible; border-radius:14px; text-align:left; }
.my-projects .project-head { padding:14px 18px; border-bottom:1px solid #2e2c24; background:linear-gradient(90deg, rgba(47,122,82,.14), rgba(201,162,39,.14)); border-radius:14px 14px 0 0; }
.my-projects .project-head h4 { font-size:1.15rem; }
.my-projects .project-card > p { padding:12px 18px 0; }
.my-projects .project-card > p.muted { padding-top:6px; }
.my-projects .project-card .status-card { margin:14px 18px 0; border-left-width:1px; border-radius:10px; background:rgba(15,23,42,.55); }
.my-projects .project-card .status-card-title { text-align:left; }
.my-projects .project-actions { margin-top:0; padding:14px 18px 18px; display:grid; grid-template-columns:1fr 1fr; gap:8px; align-items:stretch; }
.my-projects .project-actions > p { grid-column:1 / -1; }
.my-projects .project-open { grid-column:1 / -1; align-self:stretch; text-align:center; margin:0; padding:12px 16px; font-size:1rem; }
.my-projects .project-discuss { text-align:center; padding:9px 10px; font-size:.88rem; border-color:#4a4126; background:rgba(255,255,255,.03); }
.my-projects .project-discuss:not(.project-comments):nth-last-child(1):nth-child(odd) { grid-column:1 / -1; }   /* a lone small button fills its row */
/* Comments & change requests: the main way clients talk to us, so it stands out (full width, amber, with a one-line explanation) */
.my-projects .project-comments { grid-column:1 / -1; display:flex; align-items:center; gap:12px; text-align:left; padding:12px 16px; font-size:1rem;
  border:1px solid #b45309; background:linear-gradient(90deg, rgba(245,158,11,.16), rgba(245,158,11,.05)); color:#fde68a; box-shadow:0 0 0 1px rgba(245,158,11,.08) inset; }
.my-projects .project-comments:hover, .my-projects .project-comments:focus-visible { border-color:#f59e0b; background:linear-gradient(90deg, rgba(245,158,11,.26), rgba(245,158,11,.1)); filter:none; }
.pc-ic { flex:none; width:38px; height:38px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; font-size:1.2rem; background:rgba(245,158,11,.18); }
.pc-txt { flex:1; min-width:0; display:flex; flex-direction:column; }
.pc-txt strong { font-weight:700; color:#fef3c7; }
.pc-txt small { font-weight:400; font-size:.8rem; color:#d6b97a; line-height:1.35; }
.project-comments .count-badge { flex:none; }
.pc-go { flex:none; font-size:1.1rem; color:#fbbf24; }
.project-comments:hover .pc-go { transform:translateX(2px); }
/* the change log and previous versions use the same card style, in their own colours (the comments button stays amber) */
.my-projects .project-comments.pc-log { border-color:#1f5c3d; background:linear-gradient(90deg, rgba(201,162,39,.13), rgba(201,162,39,.04)); color:#cffafe; box-shadow:0 0 0 1px rgba(201,162,39,.06) inset; }
.my-projects .project-comments.pc-log:hover, .my-projects .project-comments.pc-log:focus-visible { border-color:#e3c24f; background:linear-gradient(90deg, rgba(201,162,39,.22), rgba(201,162,39,.08)); }
.pc-log .pc-ic { background:rgba(201,162,39,.16); } .pc-log .pc-txt strong { color:#ecfeff; } .pc-log .pc-txt small { color:#8ecfdc; } .pc-log .pc-go { color:#e3c24f; }
.my-projects .project-comments.pc-versions { border-color:#7a5c12; background:linear-gradient(90deg, rgba(217,182,74,.14), rgba(217,182,74,.04)); color:#f4eedc; box-shadow:0 0 0 1px rgba(217,182,74,.06) inset; }
.my-projects .project-comments.pc-versions:hover, .my-projects .project-comments.pc-versions:focus-visible { border-color:#d9b64a; background:linear-gradient(90deg, rgba(217,182,74,.24), rgba(217,182,74,.08)); }
.pc-versions .pc-ic { background:rgba(217,182,74,.18); } .pc-versions .pc-txt strong { color:#f5f3ff; } .pc-versions .pc-txt small { color:#b9addb; } .pc-versions .pc-go { color:#d9b64a; }
.my-projects .disabled-note { margin:14px 18px 18px; }
@media (max-width:560px) { .my-projects .project-actions { grid-template-columns:1fr; } }

.launch-stat { display:inline-flex; align-items:center; gap:6px; font-style:normal; font-size:.74rem; font-weight:600; margin:3px 0 1px; color:var(--muted); }
.launch-stat::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--muted); }
.launch-stat.on { color:#4ade80; } .launch-stat.on::before { background:#22c55e; box-shadow:0 0 6px #22c55e; }
.launch-stat.off { color:#f87171; } .launch-stat.off::before { background:#ef4444; }

/* ---- admin home: live server status gauges ---- */
.srv-card { max-width:1040px; margin:26px auto 0; padding:16px 18px 14px; border:1px solid #2e2c24; border-radius:14px; background:var(--card); text-align:left; }
.srv-card h2 { font-size:1.05rem; margin:0 0 12px; display:flex; align-items:center; justify-content:center; gap:12px; }
.srv-live { font-size:.72rem; font-weight:700; color:#4ade80; letter-spacing:.04em; } .srv-live.bad { color:#f87171; }
.srv-gauges { display:grid; grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:14px; }
.srv-g { position:relative; text-align:center; padding:8px 8px 6px; border-radius:12px; background:rgba(255,255,255,.025); border:1px solid #24231d; }
.srv-svg { width:100%; max-width:200px; height:auto; display:block; margin:0 auto; }
.srv-track, .srv-arc { fill:none; stroke-width:10; stroke-linecap:round; }
.srv-track { stroke:#3f3c30; }
.srv-arc { stroke:#22c55e; }
.srv-knob { fill:#22c55e; stroke:#0b0b09; stroke-width:1.6; filter:drop-shadow(0 0 3px rgba(255,255,255,.35)); }
.srv-val { margin-top:-38px; line-height:1; }
.srv-val b { font-size:1.9rem; font-weight:700; } .srv-val span { font-size:.9rem; color:var(--muted); margin-left:2px; }
.srv-lab { margin-top:12px; font-size:.78rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#ebddb0; }
.srv-sub { font-size:.76rem; color:var(--muted); min-height:1.1em; }
.srv-spark { width:100%; height:22px; margin-top:4px; }
.srv-cores { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:6px 18px; margin-top:14px; }
.srv-core { display:flex; align-items:center; gap:8px; font-size:.76rem; color:var(--muted); }
.srv-core i { flex:1; height:7px; border-radius:4px; background:#3f3c30; overflow:hidden; display:block; }
.srv-core b { display:block; height:100%; border-radius:4px; }
.srv-core em { font-style:normal; width:2.6em; text-align:right; color:var(--fg); }
.srv-foot { margin-top:10px; text-align:center; }
.srv-actions { margin-top:12px; text-align:center; }
.srv-reboot { display:inline-flex; align-items:center; gap:7px; padding:7px 16px; border-radius:999px; border:1px solid #7f1d1d; background:#3b1212; color:#fca5a5; font:inherit; font-size:.85rem; font-weight:600; cursor:pointer; min-height:0; }
.srv-reboot:hover { background:#4d1717; }
.srv-confirm { padding:9px 18px; border-radius:999px; border:1px solid #ef4444; background:#b91c1c; color:#fff; font:inherit; font-weight:700; cursor:pointer; }
.srv-confirm:hover { background:#dc2626; } .srv-confirm:disabled { opacity:.6; cursor:progress; }
.reboot-pw { display:block; text-align:left; margin:0 0 16px; font-size:.82rem; color:#cbd5e1; font-weight:600; }
.reboot-pw[hidden] { display:none; }
.reboot-pw input { display:block; width:100%; margin-top:6px; padding:10px 12px; border-radius:8px; border:1px solid #475569; background:#191712; color:#fff; font:inherit; }

/* ---- mail server dashboard ---- */
.mail-page { display:flex; flex-direction:column; gap:14px; }
.mail-page .card { margin:0; }
.mail-banner { display:flex; align-items:center; gap:14px; padding:14px 18px; border-radius:12px; border:1px solid #166534; background:rgba(22,101,52,.18); }
.mail-banner.warn { border-color:#b45309; background:rgba(180,83,9,.18); } .mail-banner.bad { border-color:#b91c1c; background:rgba(185,28,28,.2); }
.mail-banner strong { display:block; font-size:1.05rem; }
.mail-dot { width:12px; height:12px; border-radius:50%; flex:none; background:#22c55e; box-shadow:0 0 8px #22c55e; display:inline-block; }
.mail-banner.warn .mail-dot, .mail-port.warn .mail-dot { background:#f59e0b; box-shadow:0 0 8px #f59e0b; } .bad > .mail-dot, .mail-banner.bad .mail-dot, .mail-svc.bad .mail-dot, .mail-port.bad .mail-dot { background:#ef4444; box-shadow:0 0 8px #ef4444; }
.mail-grid3 { display:grid; grid-template-columns:repeat(auto-fit, minmax(230px, 1fr)); gap:12px; }
.mail-svc-h { display:flex; align-items:center; gap:10px; margin-bottom:4px; } .mail-svc-h .pill { margin-left:auto; }
.mail-kv { display:flex; justify-content:space-between; font-size:.86rem; padding:3px 0; border-top:1px solid #24231d; margin-top:4px; } .mail-kv span { color:var(--muted); }
.mail-h { font-size:1.02rem; margin:0 0 10px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; } .mail-h3 { font-size:.95rem; margin:18px 0 8px; }
.mail-inline { display:inline; margin-left:auto; }
.mail-ports { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:10px; }
.mail-port { display:flex; align-items:center; gap:8px; padding:8px 12px; border:1px solid #24231d; border-radius:10px; background:rgba(255,255,255,.02); } .mail-port em { margin-left:auto; font-style:normal; font-size:.78rem; color:#4ade80; } .mail-port.bad em { color:#f87171; }
.mail-tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:10px; }
.mail-tile { padding:12px 14px; border:1px solid #2e2c24; border-radius:12px; background:var(--card); display:flex; flex-direction:column; gap:2px; }
.mail-tile span { font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color:#ebddb0; font-weight:700; } .mail-tile b { font-size:1.6rem; line-height:1.2; } .mail-tile em { font-style:normal; font-size:.76rem; color:var(--muted); }
.mail-tile.warn { border-color:#b45309; } .mail-tile.warn b { color:#fbbf24; } .mail-tile.bad { border-color:#b91c1c; } .mail-tile.bad b { color:#f87171; }
.mail-warn { border-color:#b45309 !important; background:rgba(180,83,9,.14); }
.mail-warn code { display:block; margin-top:6px; word-break:break-all; }
.mail-scroll { overflow-x:auto; }
.mail-table { width:100%; border-collapse:collapse; font-size:.86rem; } .mail-table th, .mail-table td { text-align:left; padding:7px 8px; border-bottom:1px solid #24231d; vertical-align:top; } .mail-table th { font-size:.72rem; text-transform:uppercase; color:var(--muted); letter-spacing:.05em; }
.mail-log { max-height:340px; overflow:auto; font-size:.78rem; border:1px solid #24231d; border-radius:10px; background:#13120e; }
.mail-ev { display:flex; gap:10px; padding:5px 10px; border-bottom:1px solid #23211a; word-break:break-word; } .mail-ev time { flex:none; width:8.2em; color:var(--muted); } .mail-ev span { font-family:ui-monospace, monospace; }
.mail-ev.ok span { color:#86efac; } .mail-ev.warn span { color:#fcd34d; } .mail-ev.bad span { color:#fca5a5; }
.mail-accts { display:flex; flex-direction:column; gap:10px; }
.mail-acct { display:flex; gap:14px; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; padding:12px 14px; border:1px solid #2e2c24; border-radius:12px; background:rgba(255,255,255,.02); }
.mail-acct.mail-acct-sys { border-left:4px solid #38bdf8; background:rgba(56,189,248,.06); }
.mail-ic.mail-ic-sys { color:#38bdf8; } .mail-sys-svg { display:block; }
.pill.sys { color:#38bdf8; border-color:#38bdf8; background:rgba(56,189,248,.08); font-weight:600; }
.blk-info { display:inline-block; } .blk-chip { cursor:help; } .blk-chip:focus-visible { outline:2px solid #c9a227; outline-offset:2px; }
.blk-tip { position:fixed; z-index:300; display:none; flex-direction:column; gap:5px; width:min(360px, calc(100vw - 16px)); padding:12px 14px; border:1px solid #403d30; border-radius:12px; background:#201e18; box-shadow:0 12px 32px rgba(0,0,0,.55); font-size:.84rem; font-weight:400; text-align:left; white-space:normal; color:var(--fg); }
.blk-tip.show { display:flex; } .blk-tip .muted { color:var(--muted); }
.mail-acct-addr { display:flex; align-items:center; gap:8px; font-size:1.02rem; } .mail-ic { color:#fbbf24; display:inline-flex; }
.mail-acct-meta { display:flex; gap:6px 16px; flex-wrap:wrap; margin-top:4px; align-items:center; }
.mail-chip { padding:1px 8px; border-radius:99px; border:1px solid #4a4126; font-size:.76rem; }
.mail-acct-act { display:flex; gap:10px; align-items:flex-start; flex-wrap:wrap; }
.mail-edit summary { cursor:pointer; list-style:none; } .mail-edit summary::-webkit-details-marker { display:none; }
.mail-edit[open] { flex-basis:100%; } .mail-del { display:flex; gap:10px; align-items:center; margin:0; }
.mail-form { display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; margin-top:10px; } .mail-form label { display:flex; flex-direction:column; gap:4px; font-size:.78rem; color:var(--muted); font-weight:600; min-width:180px; flex:1; }
.mail-form input, .mail-form select { padding:9px 10px; }
.mail-addr { display:flex; gap:6px; } .mail-addr input { flex:1; min-width:100px; }
.mail-checks { display:flex; flex-direction:column; gap:6px; } .mail-check { display:flex; gap:10px; align-items:baseline; flex-wrap:wrap; font-size:.88rem; padding:7px 10px; border-radius:8px; border:1px solid #24231d; }
.mail-check b { width:1.4em; text-align:center; } .mail-check span { color:var(--muted); font-size:.82rem; word-break:break-word; flex-basis:100%; padding-left:2.4em; margin-top:-2px; }
.mail-check.ok b { color:#4ade80; } .mail-check.warn b { color:#fbbf24; } .mail-check.bad b { color:#f87171; } .mail-check.bad { border-color:#7f1d1d; } .mail-check.warn { border-color:#78350f; }
.mail-doms { display:flex; gap:8px; flex-wrap:wrap; } .mail-dom { display:inline-flex; align-items:baseline; gap:8px; padding:6px 12px; border:1px solid #4a4126; border-radius:10px; background:rgba(255,255,255,.03); } .mail-dom em { font-style:normal; font-size:.76rem; color:var(--muted); }
.mail-dns { margin-top:10px; } .mail-dns ul { margin:6px 0 6px 18px; padding:0; } .mail-dns li { margin:3px 0; }
.mail-domlist { display:flex; flex-direction:column; gap:8px; } .mail-domrow { display:flex; align-items:flex-start; gap:12px; flex-wrap:wrap; justify-content:space-between; padding:8px 12px; border:1px solid #2e2c24; border-radius:10px; background:rgba(255,255,255,.02); }
.mail-domrow .mail-dom { border:0; padding:0; background:none; } .mail-main { color:#e3c24f !important; border:1px solid #1f5c3d; border-radius:99px; padding:0 8px; }
.mail-domrow .mail-edit { flex-basis:auto; } .mail-domrow .mail-edit[open] { flex-basis:100%; }
.danger-sum { color:#f87171 !important; border-color:#7f1d1d !important; } .mail-dangertxt { flex-basis:100%; margin:0; color:#fca5a5; }

/* ---- webmail ---- */
.wm-body { background:var(--bg); }
.wm-bar { display:flex; align-items:center; gap:14px; padding:10px 16px; border-bottom:1px solid var(--line); background:var(--card); flex-wrap:wrap; }
.wm-brand { display:flex; align-items:center; gap:8px; color:var(--fg); text-decoration:none; font-size:1.05rem; } .wm-brand b { color:#e3c24f; }
.wm-search { flex:1; min-width:160px; max-width:420px; margin:0; } .wm-search input { width:100%; margin:0; padding:7px 12px; border-radius:99px; }
.wm-who { margin-left:auto; font-size:.8rem; color:var(--muted); }
.wm-shell { display:flex; gap:0; align-items:flex-start; min-height:calc(100vh - 56px); }
.wm-side { width:220px; flex:none; padding:14px 12px; border-right:1px solid var(--line); min-height:calc(100vh - 56px); }
.wm-compose-btn { display:block; text-align:center; padding:11px; border-radius:999px; font-weight:700; text-decoration:none; color:#fff; background:linear-gradient(90deg,#2f7a52,#1f5c3d); margin-bottom:14px; }
.wm-folders { display:flex; flex-direction:column; gap:2px; } .wm-folders a { display:flex; justify-content:space-between; align-items:center; padding:8px 10px; border-radius:8px; color:var(--fg); text-decoration:none; font-size:.92rem; }
.wm-folders a:hover { background:rgba(255,255,255,.05); } .wm-folders a.on { background:rgba(201,162,39,.22); font-weight:600; } .wm-folders b { font-size:.74rem; background:#c9a227; color:#fff; border-radius:99px; padding:1px 8px; }
.wm-main { flex:1; min-width:0; padding:16px 20px; max-width:none; margin:0; text-align:left; } .wm-solo { max-width:460px; margin:0 auto; padding-top:20px; }
.wm-head h1 { font-size:1.15rem; margin:0 0 10px; } .wm-head { margin-bottom:8px; }
.wm-tools { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:8px; } .wm-all { font-size:.82rem; color:var(--muted); display:flex; gap:6px; align-items:center; }
.wm-list { border:1px solid var(--line); border-radius:12px; overflow:hidden; background:var(--card); }
.wm-row { display:grid; grid-template-columns:24px 190px 1fr auto; gap:10px; align-items:center; padding:9px 12px; border-bottom:1px solid #2b2920; font-size:.9rem; } .wm-row:last-child { border-bottom:0; } .wm-row:hover { background:rgba(255,255,255,.035); }
.wm-row a { color:var(--fg); text-decoration:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .wm-row.unread a { font-weight:700; } .wm-row.unread { background:rgba(201,162,39,.07); }
.wm-from { color:#ebddb0 !important; } .wm-date { font-size:.78rem; color:var(--muted); white-space:nowrap; }
.wm-pager { display:flex; justify-content:center; gap:14px; align-items:center; margin-top:12px; }
.wm-newbar { margin-bottom:10px; padding:9px 14px; border-radius:10px; background:rgba(34,197,94,.15); border:1px solid #166534; } .wm-newbar a { color:#86efac; text-decoration:none; font-weight:600; }
.wm-msg h1 { font-size:1.3rem; margin:0 0 10px; word-break:break-word; }
.wm-hdr { display:grid; grid-template-columns:auto 1fr; gap:3px 14px; margin:0 0 12px; font-size:.88rem; } .wm-hdr dt { color:var(--muted); } .wm-hdr dd { margin:0; word-break:break-word; }
.wm-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin:10px 0 14px; } .wm-actions form.inline { display:inline-flex; gap:8px; margin:0; }
.wm-body-text { line-height:1.6; word-break:break-word; padding:12px 0; border-top:1px solid var(--line); }
.wm-frame { width:100%; min-height:560px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.wm-atts { margin-top:14px; padding-top:12px; border-top:1px solid var(--line); display:flex; gap:8px; flex-wrap:wrap; align-items:center; } .wm-atts a { text-decoration:none; color:var(--fg); }
.wm-compose label { display:block; margin:0 0 10px; font-size:.8rem; color:var(--muted); font-weight:600; } .wm-compose input, .wm-compose textarea { width:100%; margin-top:4px; }
.wm-login { margin-top:6px; } .wm-login label { display:block; margin:0 0 12px; text-align:left; } .wm-login input { width:100%; }
@media (max-width:760px) { .wm-shell { flex-direction:column; } .wm-side { width:100%; min-height:0; border-right:0; border-bottom:1px solid var(--line); } .wm-folders { flex-direction:row; flex-wrap:wrap; }
  .wm-row { grid-template-columns:24px 1fr auto; } .wm-from { grid-column:2; font-size:.8rem; } .wm-subj { grid-column:2 / 4; grid-row:2; } .wm-who { display:none; } }
.mail-clear { margin:0 0 0 auto; } .mail-ev.acked span { color:var(--muted); opacity:.65; }
.mail-livebar { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; padding:6px 12px; border:1px solid #24231d; border-radius:10px; background:rgba(255,255,255,.02); } #mail-livestate { color:#4ade80; font-weight:600; } #mail-livestate.paused { color:#fbbf24; }

/* ---- mail server page: one consistent button system ---- */
.mail-page button, .mail-page a.button, .mail-page summary.button { display:inline-flex; align-items:center; justify-content:center; gap:6px; box-sizing:border-box; min-height:36px; padding:0 16px;
  font:inherit; font-size:.86rem; font-weight:600; line-height:1; border:1px solid transparent; border-radius:999px; background:linear-gradient(90deg,#2f7a52,#1f5c3d); color:#fff; cursor:pointer; text-decoration:none; white-space:nowrap; list-style:none; transition:background .15s, border-color .15s, color .15s; }
.mail-page button:hover, .mail-page a.button:hover { background:linear-gradient(90deg,#2f7a52,#1f5c3d); filter:brightness(1.14); }
.mail-page summary.button::-webkit-details-marker { display:none; }
.mail-page .sm { min-height:30px; padding:0 12px; font-size:.8rem; border-radius:999px; }
.mail-page button.ghost, .mail-page a.button.ghost, .mail-page summary.button.ghost { background:transparent; color:var(--fg); border-color:#403d30; }
.mail-page button.ghost:hover, .mail-page a.button.ghost:hover, .mail-page summary.button.ghost:hover { background:rgba(201,162,39,.14); border-color:#c9a227; }
.mail-page button.danger, .mail-page summary.button.danger { background:transparent; color:#fca5a5; border-color:#7f1d1d; }
.mail-page button.danger:hover, .mail-page summary.button.danger:hover { background:rgba(185,28,28,.25); border-color:#ef4444; color:#fff; }
.mail-page button.danger.solid { background:#b91c1c; color:#fff; border-color:#ef4444; } .mail-page button.danger.solid:hover { background:#dc2626; }
.mail-page .mail-edit[open] > summary.button { background:rgba(201,162,39,.2); border-color:#c9a227; }
.mail-page .mail-form button { align-self:flex-end; }
.mail-page .mail-acct-act { align-items:center; gap:8px; } .mail-page .mail-acct-act form { margin:0; }
.mail-page .mail-del { gap:10px; } .mail-page .mail-del label { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.mail-page .mail-h button { margin-left:auto; } .mail-page .mail-h .mail-inline { margin-left:auto; } .mail-page .mail-h .mail-inline button { margin-left:0; }
.mail-page .mail-clear { margin:0 0 0 auto; }
.mail-page .mail-livebar button { flex:none; }
.mail-page .act form { display:inline; margin:0; }

/* ---- mail page: tidy forms (equal-height controls, aligned buttons, clear sections) ---- */
.mail-page .mail-form { display:flex; flex-wrap:wrap; gap:14px; align-items:flex-end; margin-top:12px; }
.mail-page .mail-form label { display:flex; flex-direction:column; gap:6px; flex:1 1 220px; min-width:0; margin:0; font-size:.78rem; font-weight:600; color:var(--muted); line-height:1.2; }
.mail-page .mail-form label small { font-weight:400; opacity:.8; }
.mail-page .mail-form input:not([type=checkbox]):not([type=hidden]), .mail-page .mail-form select { box-sizing:border-box; height:40px; padding:0 12px; margin:0; width:100%; }
.mail-page .mail-addr { display:flex; gap:8px; } .mail-page .mail-addr input { flex:1 1 auto; min-width:90px; } .mail-page .mail-addr select { flex:0 0 auto; width:auto; }
.mail-page .mail-form > button { height:40px; min-height:40px; flex:0 0 auto; padding:0 20px; }
.mail-page .mail-h3 { margin:24px 0 4px; padding-top:18px; border-top:1px solid #24231d; font-size:.98rem; }
.mail-page .mail-h3:first-of-type { }
.mail-page .mail-dns { margin-top:14px; border:1px solid #24231d; border-radius:10px; padding:8px 14px; background:rgba(255,255,255,.02); }
.mail-page .mail-dns summary { cursor:pointer; padding:4px 0; } .mail-page .mail-dns ul { margin:8px 0 8px 18px; padding:0; } .mail-page .mail-dns li { margin:4px 0; }
.mail-page .mail-del label { font-size:.8rem; color:var(--muted); font-weight:400; }
.mail-page button.sm, .mail-page a.button.sm, .mail-page summary.button.sm { min-height:32px; padding:0 13px; font-size:.8rem; border-radius:999px; }
#mail-live { display:flex; flex-direction:column; gap:14px; }
.mail-page .mail-acct-act { flex-direction:column; align-items:flex-start; gap:10px; }
.mail-page .mail-acct-act .mail-del { width:100%; }
.mail-page .mail-group { margin:6px 0 18px; }
.mail-page .mail-grouphead { display:flex; align-items:center; gap:10px; margin:0 0 8px; padding:7px 12px; border-radius:9px; background:linear-gradient(90deg, rgba(47,122,82,.16), rgba(201,162,39,.14)); border:1px solid #2e2c24; font-size:.95rem; }
.mail-page .mail-grouphead .pill { margin-left:auto; } .mail-page .mail-empty { margin:4px 2px 0; }
.mail-page details.mail-group > summary.mail-grouphead { cursor:pointer; list-style:none; user-select:none; } .mail-page details.mail-group > summary::-webkit-details-marker { display:none; }
.mail-page details.mail-group > summary:hover { border-color:#c9a227; }
.mail-page .mail-chev { display:inline-block; width:1em; color:#e3c24f; transition:transform .15s; } .mail-page details.mail-group:not([open]) .mail-chev { transform:rotate(-90deg); }
.mail-page details.mail-group[open] > summary { margin-bottom:10px; } .mail-page details.mail-group:not([open]) { margin-bottom:10px; }
.mail-page .mail-sub { font-size:.82rem; text-transform:uppercase; letter-spacing:.06em; color:#ebddb0; margin:16px 0 8px; }
.mail-page details.mail-group { padding:0 0 4px; } .mail-page details.mail-group[open] { margin-bottom:22px; padding-bottom:6px; border-bottom:1px solid #24231d; }
.mail-page .mail-at { display:inline-flex; align-items:center; height:40px; padding:0 12px; border:1px solid #2e2c24; border-radius:8px; background:rgba(255,255,255,.03); font-family:ui-monospace,monospace; font-size:.85rem; color:var(--muted); white-space:nowrap; }
.mail-page .mail-grouphead .pill { margin-left:0; } .mail-page .mail-grouphead .pill:first-of-type { margin-left:auto; }
.mail-page .mail-grouphead, .mail-page .mail-grouphead .mono { color:var(--fg); font-weight:600; }

/* ---- webmail: one consistent button system ---- */
.wm-body button:not(.link), .wm-body a.button { display:inline-flex; align-items:center; justify-content:center; gap:6px; box-sizing:border-box; min-height:38px; padding:0 18px;
  font:inherit; font-size:.88rem; font-weight:600; line-height:1; border:1px solid transparent; border-radius:999px; background:linear-gradient(90deg,#2f7a52,#1f5c3d); color:#fff; cursor:pointer; text-decoration:none; white-space:nowrap; transition:filter .15s, border-color .15s, color .15s; }
.wm-body button:not(.link):hover, .wm-body a.button:hover { background:linear-gradient(90deg,#2f7a52,#1f5c3d); filter:brightness(1.14); }
.wm-body button.sm, .wm-body a.button.sm { min-height:32px; padding:0 13px; font-size:.8rem; border-radius:999px; }
.wm-body button.ghost, .wm-body a.button.ghost { background:transparent; color:var(--fg); border-color:#403d30; }
.wm-body button.ghost:hover, .wm-body a.button.ghost:hover { background:rgba(201,162,39,.14); border-color:#c9a227; }
.wm-body button.danger, .wm-body a.button.danger { background:transparent; color:#fca5a5; border-color:#7f1d1d; }
.wm-body button.danger:hover, .wm-body a.button.danger:hover { background:rgba(185,28,28,.25); border-color:#ef4444; color:#fff; }
.wm-body button.link { background:none; border:0; padding:4px 8px; color:var(--accent); font:inherit; font-size:.85rem; cursor:pointer; }
.wm-bar button.link:hover { text-decoration:underline; }
/* toolbars and rows of actions */
.wm-tools { gap:8px; padding:8px 10px; border:1px solid var(--line); border-radius:10px; background:var(--card); margin-bottom:10px; }
.wm-tools .wm-all { margin-right:6px; padding-right:12px; border-right:1px solid var(--line); }
.wm-tools button:last-of-type { margin-left:0; }
.wm-actions { gap:8px; align-items:center; } .wm-actions form.inline { display:inline-flex; gap:8px; align-items:center; margin:0; padding-left:8px; border-left:1px solid var(--line); }
.wm-compose .wm-actions { margin-top:6px; } .wm-compose .wm-actions button, .wm-compose .wm-actions a.button { min-width:110px; }
.wm-login button[type=submit] { width:100%; min-height:44px; font-size:.95rem; margin-top:4px; }
.wm-compose-btn { display:flex !important; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:0 14px; border-radius:999px; font-weight:700; font-size:.92rem; box-sizing:border-box; }
.wm-pager { gap:12px; } .wm-pager a.button { min-width:96px; }
.wm-error .button, .wm-solo .button { margin-top:4px; }

/* webmail compose: Bcc drop-down + tidy send bar */
.wm-compose .wm-bcc { margin:0 0 12px; border:1px solid var(--line); border-radius:8px; background:rgba(255,255,255,.02); }
.wm-compose .wm-bcc > summary { cursor:pointer; list-style:none; padding:8px 12px; font-size:.85rem; font-weight:600; color:var(--fg); user-select:none; }
.wm-compose .wm-bcc > summary::-webkit-details-marker { display:none; }
.wm-compose .wm-bcc > summary::before { content:'▸'; display:inline-block; width:1.1em; color:#e3c24f; transition:transform .15s; }
.wm-compose .wm-bcc[open] > summary::before { transform:rotate(90deg); }
.wm-compose .wm-bcc label { margin:0; padding:0 12px 12px; }
.wm-sendbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }
.wm-sendbar .wm-send { min-width:150px; min-height:42px; font-size:.95rem; }
.wm-sendbar a.button { min-height:42px; min-width:110px; }
.wm-sendbar .wm-sendnote { margin-left:auto; }
.wm-sendbar button:disabled { opacity:.6; cursor:progress; }

/* webmail compose: Send / Discard — two identical-size buttons, explicit sizing so nothing inherits oddly */
.wm-body .wm-sendbar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:18px 0 0; padding:16px 0 0; border-top:1px solid var(--line); }
.wm-body .wm-sendbar .wm-btn { appearance:none; -webkit-appearance:none; display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; margin:0;
  height:44px; min-height:44px; width:140px; padding:0 18px; font:inherit; font-size:.95rem; font-weight:600; line-height:1; letter-spacing:.01em; border-radius:999px; border:1px solid transparent; cursor:pointer; text-decoration:none; white-space:nowrap; }
.wm-body .wm-sendbar .wm-btn-send { background:linear-gradient(90deg,#2f7a52,#1f5c3d); color:#fff; border-color:transparent; }
.wm-body .wm-sendbar .wm-btn-send:hover { filter:brightness(1.12); }
.wm-body .wm-sendbar .wm-btn-send:disabled { opacity:.6; cursor:progress; filter:none; }
.wm-body .wm-sendbar .wm-btn-discard { background:transparent; color:var(--fg); border-color:#403d30; }
.wm-body .wm-sendbar .wm-btn-discard:hover { background:rgba(185,28,28,.18); border-color:#ef4444; color:#fca5a5; }
.wm-body .wm-sendbar .wm-sendnote { margin-left:auto; }
@media (max-width:560px) { .wm-body .wm-sendbar .wm-btn { flex:1 1 0; width:auto; } .wm-body .wm-sendbar .wm-sendnote { flex-basis:100%; margin:0; text-align:center; } }
.wm-body button.good, .wm-body a.button.good { background:#15803d; color:#fff; border-color:#22c55e; } .wm-body button.good:hover { background:#16a34a; }
.wm-setlink { color:var(--muted); text-decoration:none; font-size:.85rem; } .wm-setlink:hover { color:var(--fg); }
.wm-settings label { display:flex; flex-direction:column; gap:4px; margin-bottom:10px; } .wm-settings textarea { width:100%; font-family:inherit; }
.wm-sigprev { margin:12px 0; padding:10px 14px; border:1px dashed var(--line); border-radius:10px; } .wm-sigprev pre { margin:6px 0 0; white-space:pre-wrap; font:inherit; color:var(--fg); }

/* webmail: 2FA + recovery codes */
.wm-body .wm-btn { appearance:none; display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; margin:0; height:44px; min-width:140px; padding:0 18px; font:inherit; font-size:.95rem; font-weight:600; line-height:1; border-radius:999px; border:1px solid transparent; cursor:pointer; text-decoration:none; white-space:nowrap; }
.wm-body .wm-btn-send { background:linear-gradient(90deg,#2f7a52,#1f5c3d); color:#fff; } .wm-body .wm-btn-send:hover { filter:brightness(1.12); }
.wm-body .wm-btn-discard { background:transparent; color:var(--fg); border-color:#403d30; } .wm-body .wm-btn-discard:hover { background:rgba(201,162,39,.14); border-color:#c9a227; }
.wm-body .wm-btn-danger { color:#fca5a5; border-color:#7f1d1d; } .wm-body .wm-btn-danger:hover { background:rgba(185,28,28,.25); border-color:#ef4444; color:#fff; }
.wm-inlineform { display:flex; gap:12px; align-items:flex-end; flex-wrap:wrap; margin-top:10px; } .wm-inlineform label { display:flex; flex-direction:column; gap:6px; flex:1 1 200px; font-size:.78rem; font-weight:600; color:var(--muted); } .wm-inlineform input { height:44px; box-sizing:border-box; }
.wm-qr { display:inline-block; background:#fff; padding:8px; border-radius:12px; margin:8px 0; } .wm-qr svg { display:block; width:200px; height:200px; }
.wm-codes { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:8px; margin:12px 0 16px; } .wm-codes span { padding:8px 12px; border:1px solid var(--line); border-radius:8px; background:rgba(255,255,255,.03); text-align:center; font-size:1rem; letter-spacing:.04em; }
.wm-settings + .wm-settings { margin-top:14px; } .wm-settings h1 { display:flex; align-items:center; gap:10px; font-size:1.15rem; }
.wm-pwform { display:flex; flex-direction:column; gap:12px; max-width:420px; } .wm-pwform label { display:flex; flex-direction:column; gap:6px; font-size:.78rem; font-weight:600; color:var(--muted); } .wm-pwform input { height:44px; box-sizing:border-box; width:100%; }

/* webmail settings: three matching cards */
.wm-body .wm-head h1 { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin-top:6px; }
.wm-setgrid { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap:16px; align-items:start; max-width:1100px; }
.wm-setcard { display:flex; flex-direction:column; gap:14px; padding:18px 20px !important; margin:0 !important; }
.wm-sethead { display:flex; gap:12px; align-items:flex-start; }
.wm-setic { flex:none; width:40px; height:40px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; font-size:1.15rem; background:rgba(201,162,39,.16); border:1px solid #4a4126; }
.wm-settitle { flex:1; min-width:0; } .wm-settitle h2 { margin:0 0 3px; font-size:1.05rem; } .wm-settitle p { margin:0; font-size:.84rem; color:var(--muted); line-height:1.45; }
.wm-sethead .pill { flex:none; }
.wm-setcard textarea { width:100%; box-sizing:border-box; font:inherit; resize:vertical; margin:0; }
.wm-hint { margin:6px 0 0; }
.wm-fields { display:flex; flex-direction:column; gap:12px; }
.wm-fields label { display:flex; flex-direction:column; gap:6px; font-size:.78rem; font-weight:600; color:var(--muted); } .wm-fields label small { font-weight:400; opacity:.85; margin-left:6px; }
.wm-fields input { height:44px; box-sizing:border-box; width:100%; margin:0; }
.wm-cardbtns { display:flex; gap:10px; flex-wrap:wrap; margin-top:2px; } .wm-cardbtns .wm-btn { min-width:130px; }
.wm-steps { margin:0; padding-left:20px; color:var(--muted); } .wm-steps li { margin:3px 0; }
.wm-qrrow { display:flex; gap:16px; align-items:center; flex-wrap:wrap; } .wm-qrrow .wm-qr { margin:0; } .wm-key { word-break:break-all; font-size:.9rem; letter-spacing:.05em; }
.wm-sigprev { margin-top:12px; } 

.wm-notice { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:10px 16px; background:rgba(217,119,6,.16); border-bottom:1px solid #b45309; color:#fde68a; font-size:.88rem; }
.wm-notice strong { color:#fff; } .wm-notice-ic { font-size:1.1rem; }
.wm-notice > span:nth-child(2) { flex:1 1 320px; }
.wm-notice-btn { flex:none; display:inline-flex; align-items:center; height:34px; padding:0 16px; border-radius:999px; background:#d97706; color:#fff; font-weight:700; text-decoration:none; font-size:.85rem; }
.wm-notice-btn:hover { background:#f59e0b; color:#111; }

.wm-pkbox { margin-top:14px; } .wm-pkbtn { width:100%; } .wm-pkbox p { text-align:center; margin:8px 0 0; }
.wm-or { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:.78rem; margin-bottom:12px; } .wm-or::before, .wm-or::after { content:''; flex:1; height:1px; background:var(--line); }
.wm-pkrow { display:flex; align-items:center; gap:12px; justify-content:space-between; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.02); }
.wm-pkname { display:flex; flex-direction:column; gap:2px; min-width:0; } .wm-pkrow form { margin:0; }
.wm-body .wm-btn-sm { height:34px; min-width:0; padding:0 14px; font-size:.82rem; }
.wm-evt { display:inline-block; padding:2px 10px; border-radius:99px; font-size:.78rem; border:1px solid #403d30; } .wm-evt.ok { color:#86efac; border-color:#166534; } .wm-evt.warn { color:#fcd34d; border-color:#78350f; } .wm-evt.bad { color:#fca5a5; border-color:#7f1d1d; background:rgba(185,28,28,.12); }
.wm-logfilter { margin:0 0 12px; }

/* ---- admin Logs page ---- */
.lg-sources { display:flex; flex-direction:column; gap:12px; } .lg-group { display:flex; gap:14px; align-items:flex-start; flex-wrap:wrap; } .lg-grouptitle { flex:0 0 150px; font-size:.72rem; text-transform:uppercase; letter-spacing:.07em; color:#ebddb0; font-weight:700; padding-top:7px; }
.lg-chips { display:flex; gap:8px; flex-wrap:wrap; flex:1; }
.lg-chip { display:inline-flex; align-items:center; gap:7px; padding:6px 12px; border:1px solid #2e2c24; border-radius:99px; color:var(--fg); text-decoration:none; font-size:.84rem; background:rgba(255,255,255,.02); } .lg-chip:hover { border-color:#c9a227; background:rgba(201,162,39,.12); } .lg-chip.on { background:rgba(201,162,39,.28); border-color:#c9a227; font-weight:700; }
.lg-ic { display:inline-flex; color:#e3c24f; }
.lg-bar { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin:6px 0 12px; } .lg-bar input[type=search] { flex:1 1 220px; min-width:160px; height:36px; box-sizing:border-box; } .lg-bar select { height:36px; box-sizing:border-box; } .lg-spacer { flex:1; } #lg-state { color:#4ade80; font-weight:600; } #lg-state.paused { color:#fbbf24; }
.lg-stats { display:flex; gap:18px; flex-wrap:wrap; align-items:center; margin:0 0 8px; font-size:.86rem; } .lg-e b { color:#f87171; } .lg-w b { color:#fbbf24; } .lg-upd { margin-left:auto; }
.lg-box { max-height:62vh; overflow:auto; border:1px solid #24231d; border-radius:10px; background:#13120e; font:12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.lg-line { padding:2px 12px; border-bottom:1px solid #1f1d17; white-space:pre-wrap; word-break:break-all; color:#cbd5e1; } .lg-line:hover { background:rgba(255,255,255,.04); } .lg-line.error { color:#fca5a5; background:rgba(185,28,28,.08); } .lg-line.warn { color:#fcd34d; } .lg-line mark { background:#facc15; color:#111; border-radius:2px; }
@media (max-width:700px) { .lg-grouptitle { flex-basis:100%; padding-top:0; } }
.lg-bar input[type=search], .lg-bar select { width:auto; margin:0; } .lg-bar input[type=search] { flex:1 1 240px; } .lg-bar select { flex:0 0 auto; min-width:150px; }
.lg-bar button, .lg-bar a.button { flex:none; }

/* webmail settings v3: one tidy column, grouped sections, equal buttons */
.wm-setgrid { display:flex !important; flex-direction:column; gap:14px; max-width:780px; }
.wm-secttitle { margin:22px 0 8px; font-size:.74rem; text-transform:uppercase; letter-spacing:.09em; color:#e3c24f; font-weight:700; max-width:780px; }
.wm-secttitle:first-of-type { margin-top:8px; }
.wm-setcard { max-width:780px; margin:0 0 14px !important; }
.wm-sethead { padding-bottom:14px; border-bottom:1px solid var(--line); }
.wm-rowform { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px 12px; align-items:end; } .wm-rowform .wm-fullrow { grid-column:1 / -1; margin:0; }
.wm-rowform .wm-cardbtns { margin:0; flex-wrap:nowrap; }
.wm-pwgrid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px; align-items:end; } .wm-pwgrid .wm-cardbtns { grid-column:1 / -1; }
@media (max-width:760px) { .wm-pwgrid { grid-template-columns:1fr; } .wm-rowform { grid-template-columns:1fr; } .wm-rowform .wm-cardbtns { flex-wrap:wrap; } }
.wm-cardbtns { align-items:center; } .wm-cardbtns .wm-btn { min-width:150px; }
/* make the outlined / danger variants win over the generic indigo button rule */
.wm-body button.wm-btn.wm-btn-discard, .wm-body a.wm-btn.wm-btn-discard { background:transparent; color:var(--fg); border-color:#403d30; }
.wm-body button.wm-btn.wm-btn-discard:hover, .wm-body a.wm-btn.wm-btn-discard:hover { background:rgba(201,162,39,.14); border-color:#c9a227; }
.wm-body button.wm-btn.wm-btn-danger, .wm-body a.wm-btn.wm-btn-danger { color:#fca5a5; border-color:#7f1d1d; background:transparent; }
.wm-body button.wm-btn.wm-btn-danger:hover { background:rgba(185,28,28,.25); border-color:#ef4444; color:#fff; }
.wm-body button.wm-btn.wm-btn-send, .wm-body a.wm-btn.wm-btn-send { background:linear-gradient(90deg,#2f7a52,#1f5c3d); color:#fff; border-color:transparent; }
.wm-body button.wm-btn.wm-btn-send:hover, .wm-body a.wm-btn.wm-btn-send:hover { filter:brightness(1.12); background:linear-gradient(90deg,#2f7a52,#1f5c3d); }
.wm-body .wm-btn.wm-btn-sm { height:34px; min-width:0; min-height:34px; padding:0 14px; font-size:.82rem; }
.wm-setgrid > .wm-setcard, .wm-setgrid > .wm-secttitle { width:100%; box-sizing:border-box; align-self:stretch; }
.wm-setcard { width:100% !important; box-sizing:border-box; }
.wm-fields label small { margin-left:4px; }
.wm-fields label { margin:0 !important; } .wm-rowform { align-items:end; }

/* ---- SSL certificates page ---- */
.cert-list { display:flex; flex-direction:column; gap:12px; }
.cert { padding:14px 16px; border:1px solid #2e2c24; border-radius:12px; background:rgba(255,255,255,.02); display:flex; flex-direction:column; gap:10px; } .cert.warn { border-color:#78350f; } .cert.bad { border-color:#7f1d1d; background:rgba(185,28,28,.06); }
.cert-head { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; } .cert-name { font-size:1.05rem; }
.cert-names { display:flex; gap:6px; flex-wrap:wrap; }
.cert-bar { height:6px; border-radius:4px; background:#3f3c30; overflow:hidden; } .cert-bar i { display:block; height:100%; background:#22c55e; } .cert.warn .cert-bar i { background:#f59e0b; } .cert.bad .cert-bar i { background:#ef4444; }
.cert-meta { display:flex; gap:6px 22px; flex-wrap:wrap; color:var(--muted); } .cert-meta b { color:#ebddb0; font-weight:600; margin-right:4px; }
.cert-act { display:flex; gap:14px; align-items:center; flex-wrap:wrap; padding-top:8px; border-top:1px solid #24231d; } .cert-inline { display:flex; gap:10px; align-items:center; margin:0; } .cert-inline label { display:inline-flex; gap:6px; align-items:center; color:var(--muted); margin:0; }
.cert-ok { border-color:#166534 !important; background:rgba(22,101,52,.15); }
.cert-detail { margin-top:6px; } .cert-detail pre { margin:6px 0 0; padding:10px 12px; border:1px solid #24231d; border-radius:8px; background:#13120e; font-size:.78rem; white-space:pre-wrap; word-break:break-word; color:#cbd5e1; }
.cert-checkrow { display:flex; align-items:center; gap:8px; height:40px; font-weight:400; font-size:.85rem; color:var(--fg); } .cert-checkrow input { width:auto; height:auto; }

/* SSL certificates: tidy two-column cards */
.cert-list { display:grid !important; grid-template-columns:repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap:14px; align-items:stretch; }
.cert { padding:16px 18px; gap:12px; }
.cert-head { gap:8px; } .cert-badges { display:flex; gap:6px; align-items:center; }
.cert-life { display:flex; flex-direction:column; gap:5px; } .cert-bar { height:7px; } .cert-dates { display:flex; justify-content:space-between; }
.cert-facts { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:10px 14px; margin:0; padding:10px 0 2px; border-top:1px solid #24231d; }
.cert-facts > div { min-width:0; } .cert-facts .wide { grid-column:1 / -1; }
.cert-facts dt { font-size:.68rem; text-transform:uppercase; letter-spacing:.07em; color:#e3c24f; font-weight:700; margin:0 0 3px; } .cert-facts dd { margin:0; font-size:.88rem; word-break:break-word; display:flex; flex-wrap:wrap; gap:6px; }
.cert-use { padding:2px 10px; border:1px solid #4a4126; border-radius:99px; font-size:.78rem; background:rgba(201,162,39,.1); }
.cert-act { margin-top:auto; justify-content:space-between; padding-top:12px; }
.cert-lock { color:var(--muted); display:inline-flex; align-items:center; gap:4px; padding:4px 10px; border:1px solid #2e2c24; border-radius:99px; }
@media (max-width:520px) { .cert-facts { grid-template-columns:1fr 1fr; } }
.mail-page .cert-group .cert-list { margin:0 0 4px; } .mail-page .cert-group .mail-grouphead .pill:first-of-type { margin-left:auto; }
.cert-facts { grid-template-columns:repeat(4, minmax(0,1fr)) !important; } @media (max-width:760px) { .cert-facts { grid-template-columns:1fr 1fr !important; } }
.cert-facts { grid-template-columns:0.6fr 1fr 1.35fr 0.8fr !important; } @media (max-width:760px) { .cert-facts { grid-template-columns:1fr 1fr !important; } }

/* certificates: collapsible "about" card */
.mail-page details.cert-about { padding:0; } .mail-page details.cert-about > summary { cursor:pointer; list-style:none; padding:16px 20px; font-size:1.02rem; font-weight:600; display:flex; align-items:center; gap:10px; user-select:none; color:var(--fg); }
.mail-page details.cert-about > summary::-webkit-details-marker { display:none; } .mail-page details.cert-about > summary:hover { background:rgba(201,162,39,.08); border-radius:12px; }
.mail-page details.cert-about:not([open]) .mail-chev { transform:rotate(-90deg); }
.cert-about-body { padding:0 20px 18px; }
.cert-about-body .mail-sub { margin:20px 0 8px; }
.cert-points { margin:0 0 4px 18px; padding:0; color:var(--muted); line-height:1.55; } .cert-points li { margin:5px 0; } .cert-points b, .cert-points em { color:var(--fg); }
.cert-mine td { background:rgba(34,197,94,.07); }
.cert-about-body td { vertical-align:top; }
.cert-about-body .cert-note { font-weight:400; margin-top:3px; max-width:340px; line-height:1.4; } .cert-about-body table { table-layout:auto; }
.cert-about-body .mail-table th, .cert-about-body .mail-table td { white-space:normal; word-break:normal; overflow-wrap:anywhere; }
.cert-about-body .mail-table th:nth-child(1) { width:30%; } .cert-about-body .mail-table th:last-child { width:90px; }

/* webmail: format toggle, rich editor, read tabs */
.wm-modebar { display:flex; gap:16px; align-items:center; flex-wrap:wrap; margin:2px 0 10px; } .wm-modebar label { display:inline-flex !important; flex-direction:row !important; align-items:center; gap:6px; margin:0 !important; font-size:.88rem !important; color:var(--fg) !important; font-weight:500 !important; cursor:pointer; } .wm-modebar input { width:auto !important; margin:0 !important; }
.wm-lbl { display:block; font-size:.8rem; color:var(--muted); font-weight:600; margin-bottom:4px; }
.wm-toolbar { display:flex; gap:4px; flex-wrap:wrap; align-items:center; padding:6px; border:1px solid var(--line); border-bottom:0; border-radius:8px 8px 0 0; background:rgba(255,255,255,.03); }
.wm-body .wm-toolbar button { min-height:30px; height:30px; padding:0 10px; font-size:.82rem; background:transparent; color:var(--fg); border:1px solid transparent; border-radius:999px; } .wm-body .wm-toolbar button:hover { background:rgba(201,162,39,.18); border-color:#c9a227; }
.wm-sep { width:1px; height:20px; background:var(--line); margin:0 4px; }
.wm-editor { min-height:300px; max-height:60vh; overflow:auto; padding:12px 14px; border:1px solid var(--line); border-radius:0 0 8px 8px; background:#13120e; color:var(--fg); line-height:1.55; outline:none; } .wm-editor:focus { border-color:#c9a227; }
.wm-editor blockquote { margin:8px 0; padding:2px 12px; border-left:3px solid #1f5c3d; color:var(--muted); } .wm-editor a { color:#ebddb0; }
.wm-viewtabs { display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin:6px 0 10px; padding-top:12px; border-top:1px solid var(--line); } .wm-viewtabs a { padding:5px 14px; border:1px solid #403d30; border-radius:99px; color:var(--fg); text-decoration:none; font-size:.84rem; } .wm-viewtabs a.on { background:rgba(201,162,39,.28); border-color:#c9a227; font-weight:700; }
.wm-imgbar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:8px 12px; margin:0 0 10px; border:1px solid #78350f; border-radius:10px; background:rgba(217,119,6,.1); font-size:.86rem; } .wm-imgbar.loaded { border-color:#166534; background:rgba(22,101,52,.12); } .wm-imgbar span { flex:1 1 260px; }
#wm-imgdlg .modal2fa-btns .wm-btn { height:42px; }

.wm-linkcard { max-width:640px; margin:30px auto !important; text-align:left; border-color:#b45309 !important; }
.wm-linkicon { width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.8rem; background:rgba(217,119,6,.18); color:#fbbf24; margin-bottom:8px; }
.wm-linkcard h1 { margin:0 0 8px; font-size:1.3rem; }
.wm-linkurl { margin:14px 0; padding:12px 14px; border:1px solid #403d30; border-radius:10px; background:#13120e; display:flex; flex-direction:column; gap:6px; }
.wm-linkhost { font-size:1.15rem; color:#fde68a; word-break:break-all; } .wm-linkfull { font-size:.8rem; color:var(--muted); word-break:break-all; background:none; padding:0; }
.wm-linkflag { margin:8px 0 !important; }
.mail-page .mail-sec { display:inline-flex; gap:6px; flex-wrap:wrap; margin-left:6px; } .mail-page .mail-sec .pill { font-size:.72rem; padding:2px 9px; }
.mail-page .mail-alcount { color:#ebddb0; font-weight:700; }
.mail-deldlg { width:min(520px, calc(100vw - 32px)); text-align:left; } .mail-deldlg .modal2fa-ic { margin-left:0; } .mail-delwho { font-size:1.05rem; color:#fde68a; margin:0 0 10px; word-break:break-all; }
.mail-dellist { margin:0 0 12px 18px; padding:0; color:#cbd5e1; line-height:1.5; } .mail-dellist li { margin:6px 0; } .mail-delwarn { margin:0 0 16px; color:#fca5a5; }
.mail-deldlg .modal2fa-btns { justify-content:flex-end; }
.mail-page .srv-confirm, .srv-confirm { padding:0 18px; min-height:40px; }
.mail-page .mail-deldlg button.srv-confirm { background:#b91c1c; border-color:#ef4444; color:#fff; } .mail-page .mail-deldlg button.srv-confirm:hover { background:#dc2626; }
.mail-page .mail-deldlg button.ghost { min-height:40px; }

/* mail health checks: grouped rows */
.mail-page .mail-checks { display:flex; flex-direction:column; gap:14px; }
.hc-sum { display:flex; gap:8px; align-items:center; flex-wrap:wrap; } .hc-time { margin-left:auto; }
.hc-chip { padding:3px 12px; border-radius:99px; font-size:.8rem; font-weight:600; border:1px solid #403d30; } .hc-chip.ok { color:#86efac; border-color:#166534; } .hc-chip.warn { color:#fcd34d; border-color:#78350f; } .hc-chip.bad { color:#fca5a5; border-color:#7f1d1d; }
.hc-group { border:1px solid #24231d; border-radius:12px; overflow:hidden; } .hc-title { margin:0; padding:8px 14px; font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; color:#ebddb0; background:rgba(201,162,39,.1); border-bottom:1px solid #24231d; }
.hc-row { display:grid; grid-template-columns:84px 170px 1fr; gap:12px; align-items:center; padding:10px 14px; border-bottom:1px solid #29271f; font-size:.88rem; } .hc-row:last-child { border-bottom:0; }
.hc-row.bad { background:rgba(185,28,28,.07); } .hc-label { font-weight:600; } .hc-text { color:var(--muted); font-size:.84rem; word-break:break-word; }
.hc-badge { justify-self:start; padding:2px 10px; border-radius:99px; font-size:.74rem; font-weight:700; border:1px solid; } .hc-badge.ok { color:#86efac; border-color:#166534; background:rgba(22,101,52,.15); } .hc-badge.warn { color:#fcd34d; border-color:#78350f; background:rgba(120,53,15,.2); } .hc-badge.bad { color:#fecaca; border-color:#ef4444; background:rgba(185,28,28,.3); }
@media (max-width:700px) { .hc-row { grid-template-columns:84px 1fr; } .hc-text { grid-column:1 / -1; } }
.lg-clearname { font-size:1.05rem; color:#fde68a; margin:0 0 8px; } .lg-clearlist { margin:0 0 14px 18px; padding:0; color:#cbd5e1; line-height:1.5; text-align:left; } .lg-clearlist li { margin:6px 0; }
#lg-cleardlg .modal2fa-btns { margin:0; } .mail-page #lg-cleardlg button.srv-confirm { background:#b91c1c; border-color:#ef4444; color:#fff; } .mail-page #lg-cleardlg button.ghost { min-height:40px; }

/* webmail header: aliases info with a hover card */
.wm-aliasinfo { position:relative; display:inline-flex; }
.wm-body .wm-infobtn { min-height:30px !important; height:30px; padding:0 12px !important; font-size:.8rem !important; background:transparent !important; color:var(--fg) !important; border:1px solid #403d30 !important; border-radius:99px !important; } .wm-body .wm-infobtn:hover, .wm-body .wm-infobtn:focus-visible { border-color:#c9a227 !important; background:rgba(201,162,39,.14) !important; }
.wm-infobtn b { margin-left:4px; padding:0 7px; border-radius:99px; background:#c9a227; color:#fff; font-size:.72rem; }
.wm-tip { position:absolute; right:0; top:calc(100% + 8px); z-index:60; min-width:260px; max-width:340px; padding:12px 14px; border:1px solid #403d30; border-radius:12px; background:#201e18; box-shadow:0 12px 32px rgba(0,0,0,.55); display:none; flex-direction:column; gap:5px; font-size:.84rem; text-align:left; }
.wm-tip::before { content:''; position:absolute; right:22px; top:-6px; width:10px; height:10px; background:#201e18; border-left:1px solid #403d30; border-top:1px solid #403d30; transform:rotate(45deg); }
.wm-aliasinfo:hover .wm-tip, .wm-aliasinfo:focus-within .wm-tip { display:flex; }
.wm-tipnote { color:var(--muted); font-size:.78rem; } .wm-tipitem { padding:3px 9px; border:1px solid #2e2c24; border-radius:7px; background:rgba(255,255,255,.04); word-break:break-all; }
@media (max-width:760px) { .wm-who { display:none; } }
.wm-compose select { width:100%; margin-top:4px; height:40px; box-sizing:border-box; padding:0 10px; }

/* ---- public landing page ---- */
.pub-body { background:radial-gradient(1200px 500px at 50% -120px, rgba(201,162,39,.22), transparent), var(--bg); color:var(--fg); }
.pub-top { max-width:1040px; margin:0 auto; padding:16px 18px; display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.pub-brand { display:flex; align-items:center; gap:9px; color:var(--fg); text-decoration:none; font-size:1.1rem; font-weight:700; } .pub-brand b { color:#e3c24f; }
.pub-top nav { display:flex; gap:18px; align-items:center; flex-wrap:wrap; } .pub-top nav a:not(.pub-btn) { color:var(--muted); text-decoration:none; font-size:.92rem; } .pub-top nav a:not(.pub-btn):hover { color:var(--fg); }
.pub-body main { max-width:1040px; margin:0 auto; padding:0 18px 20px; text-align:center; }
.pub-hero { padding:30px 0 40px; } .pub-logo { width:min(560px, 100%); height:auto; margin:0 auto 18px; display:block; }
.pub-hero h1 { font-size:clamp(1.7rem, 4vw, 2.6rem); line-height:1.15; margin:8px 0 14px; }
.pub-lead { max-width:720px; margin:0 auto 20px; color:#c9d1d9; font-size:1.08rem; line-height:1.6; }
.pub-btn { display:inline-flex; align-items:center; justify-content:center; height:46px; padding:0 24px; border-radius:999px; font-weight:700; font-size:1rem; text-decoration:none; color:#fff; background:linear-gradient(90deg,#2f7a52,#1f5c3d); margin:4px 6px; } .pub-btn:hover { filter:brightness(1.12); }
.pub-btn-sm { height:36px; padding:0 18px; font-size:.9rem; margin:0; } .pub-btn-ghost { background:transparent; border:1px solid #403d30; } .pub-btn-ghost:hover { background:rgba(201,162,39,.14); border-color:#c9a227; filter:none; }
.pub-section { padding:34px 0; border-top:1px solid var(--line); } .pub-section h2 { font-size:1.5rem; margin:0 0 18px; }
.pub-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:16px; text-align:left; }
.pub-card { padding:20px; border:1px solid #2e2c24; border-radius:14px; background:var(--card); } .pub-card h3 { margin:0 0 8px; font-size:1.05rem; color:#ebddb0; } .pub-card p { margin:0; color:#c9d1d9; line-height:1.6; }
.pub-list { display:inline-block; text-align:left; margin:0 auto; padding-left:20px; color:#c9d1d9; line-height:1.9; }
.pub-contact a:not(.pub-btn) { color:#ebddb0; }

/* Security check card (admin home) */
.sec-card { max-width:1040px; margin:18px auto 0; padding:16px 18px 12px; border:1px solid #2e2c24; border-radius:14px; background:var(--card); text-align:left; }
.sec-card h2 { font-size:1.05rem; margin:0 0 12px; display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap; }
.sec-badge { font-size:.72rem; font-weight:700; letter-spacing:.04em; padding:3px 10px; border-radius:99px; background:#3f3c30; color:var(--muted); }
.sec-badge.pass { background:#12331f; color:#4ade80; } .sec-badge.warn { background:#3a2c0e; color:#fbbf24; } .sec-badge.fail { background:#3b1212; color:#f87171; }
.sec-top { display:flex; align-items:center; gap:16px; justify-content:center; margin-bottom:12px; flex-wrap:wrap; }
.sec-score { font-size:.95rem; color:var(--muted); } .sec-score b { font-size:2.4rem; font-weight:700; color:var(--fg); }
.sec-score.pass b { color:#4ade80; } .sec-score.warn b { color:#fbbf24; } .sec-score.fail b { color:#f87171; }
.sec-sum { color:var(--muted); font-size:.88rem; }
.sec-groups { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:10px; align-items:start; }
.sec-grp { border:1px solid #24231d; border-radius:10px; background:rgba(255,255,255,.025); }
.sec-grp summary { display:flex; align-items:center; gap:10px; padding:9px 12px; cursor:pointer; list-style:none; font-weight:600; }
.sec-grp summary::-webkit-details-marker { display:none; }
.sec-gname { flex:1; } .sec-gcount { font-size:.75rem; color:var(--muted); font-weight:500; }
.sec-dot { flex:none; width:20px; height:20px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-style:normal; font-size:.72rem; font-weight:800; }
.sec-dot.pass { background:#12331f; color:#4ade80; } .sec-dot.warn { background:#3a2c0e; color:#fbbf24; } .sec-dot.fail { background:#3b1212; color:#f87171; }
.sec-row { display:flex; gap:10px; padding:8px 12px; border-top:1px solid #24231d; }
.sec-txt { display:flex; flex-direction:column; gap:2px; min-width:0; font-size:.82rem; overflow-wrap:anywhere; }
.sec-txt span { color:var(--muted); } .sec-txt code { font-size:.74rem; color:#ebddb0; background:#29271f; padding:2px 6px; border-radius:5px; width:fit-content; max-width:100%; }
.sec-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; flex-wrap:wrap; }
.sec-run { min-height:0; padding:6px 14px; }
.sec-note { margin:6px 0 0; text-align:center; }
.sec-card.busy .sec-badge { opacity:.6; }

/* Mobile polish: readable labels, comfortable tap targets, no horizontal overflow */
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
@media (max-width:720px) {
  .bar { flex-wrap:wrap; row-gap:6px; }
  .bar nav { flex-wrap:wrap; gap:6px 14px; }
  .bar .brand, .bar .who, .bar button.link, .bar .home-link { display:inline-flex; align-items:center; min-height:40px; }
  .site-footer a, .forgot-link a { display:inline-block; padding:8px 4px; }
  .mail-page .mail-grouphead, .cert-group > summary { flex-wrap:wrap; }
  .cert-group .pill { white-space:normal; }
  .ul-facts dt, .proj-meta dt, .mp-facts dt, .bk-facts dt, .cert-facts dt, .facts .k, .ha-tag, .bk-enc { font-size:.74rem; }
  .net-sub .k, .net-info .k, span.k { font-size:.74rem; }
}
.sec-mailfail { margin:0 0 12px; padding:9px 12px; border-radius:9px; border:1px solid #7f1d1d; background:#3b1212; color:#fca5a5; font-size:.85rem; }
.sec-mailfail[hidden] { display:none; }
.bar .wm-link { text-decoration:none; color:#ebddb0; font-weight:600; }
.bar .wm-link:hover { color:#fff; }
.mail-fwd { margin:6px 0 2px; padding:7px 11px; border-radius:8px; border:1px solid #b45309; background:rgba(180,83,9,.16); color:#fcd34d; font-size:.84rem; overflow-wrap:anywhere; }
.wm-check { display:flex; align-items:center; gap:8px; }
.wm-check input { width:auto; }
/* mail dashboard: aliases chip on each account (same look as the webmail header chip) */
.mail-page .mail-aliasinfo .wm-infobtn { display:inline-flex; align-items:center; height:26px; padding:0 11px; font:inherit; font-size:.78rem; background:transparent; color:var(--fg); border:1px solid #403d30; border-radius:99px; cursor:pointer; min-height:0; }
.mail-page .mail-aliasinfo .wm-infobtn:hover, .mail-page .mail-aliasinfo .wm-infobtn:focus-visible { border-color:#c9a227; background:rgba(201,162,39,.14); }
.mail-page .mail-aliasinfo .wm-tip { right:auto; left:0; }
.mail-page .mail-aliasinfo .wm-tip::before { right:auto; left:22px; }

/* webmail settings: tidy-ups */
.wm-fields .wm-check { flex-direction:row; align-items:center; gap:10px; font-size:.88rem; font-weight:500; color:var(--fg); cursor:pointer; }
.wm-fields .wm-check input { width:18px; height:18px; margin:0; flex:none; accent-color:#c9a227; }
.wm-status { margin:0; padding:9px 12px; border-radius:9px; border:1px solid #14532d; background:rgba(34,197,94,.1); color:#86efac; font-size:.86rem; overflow-wrap:anywhere; }
.wm-note { margin:0 !important; padding-top:10px; border-top:1px solid var(--line); line-height:1.45; }
.wm-sethead .wm-settitle { padding-right:6px; }
.wm-setcard .wm-hint { margin:0; }
.wm-setcard .wm-pkrow { margin:0; }
.wm-secttitle { padding-bottom:6px; border-bottom:1px solid var(--line); }
@media (max-width:760px) { .wm-cardbtns .wm-btn { flex:1 1 140px; } .wm-sethead { flex-wrap:wrap; } .wm-sethead .pill { order:3; } }
/* mail dashboard: change-password pop-up */
.mail-pwdlg { max-width:440px; width:calc(100% - 32px); }
.mail-pwdlg form { display:flex; flex-direction:column; gap:12px; text-align:left; }
.mail-pwlabel { display:flex; flex-direction:column; gap:6px; font-size:.82rem; font-weight:600; }
.mail-pwrow { display:flex; gap:8px; } .mail-pwrow input { flex:1; min-width:0; height:42px; box-sizing:border-box; margin:0; font-family:ui-monospace,monospace; }
.mail-pwtools { display:flex; gap:8px; flex-wrap:wrap; }
.mail-pwnote { margin:0; line-height:1.45; }
.mail-pwdlg .modal2fa-btns { margin-top:4px; }
/* one-time password page */
.pw-card { text-align:center; }
.pw-secret { margin:14px 0; padding:14px 12px; border:1px dashed #c9a227; border-radius:10px; background:rgba(201,162,39,.1); font-size:1.35rem; letter-spacing:.04em; overflow-wrap:anywhere; user-select:all; }
/* mail dashboard pop-up: email-the-password option */
.mail-pwmail { display:flex; flex-direction:column; gap:6px; font-size:.82rem; font-weight:600; padding-top:10px; border-top:1px solid var(--line); }
.mail-pwmail input { height:42px; box-sizing:border-box; margin:0; width:100%; }

/* Client tutorial (/help) */
.hp { max-width:860px; margin:0 auto; padding:8px 4px 40px; }
.hp-hero { text-align:center; padding:26px 8px 18px; }
.hp-kicker { margin:0; font-size:.78rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#e3c24f; }
.hp-hero h1 { margin:6px 0 8px; font-size:2.1rem; line-height:1.15; }
.hp-lead { margin:0 auto 18px; max-width:600px; color:var(--muted); font-size:1.02rem; }
.hp-toc { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.hp-toc a { padding:7px 14px; border:1px solid #403d30; border-radius:99px; text-decoration:none; color:var(--fg); font-size:.86rem; }
.hp-toc a:hover { border-color:#c9a227; background:rgba(201,162,39,.14); }
.hp-sec { margin:26px 0 0; padding:22px 24px; border:1px solid #2e2c24; border-radius:14px; background:var(--card); scroll-margin-top:16px; }
.hp-sec h2 { margin:0 0 12px; font-size:1.4rem; display:flex; align-items:center; gap:12px; }
.hp-sec h3 { margin:22px 0 6px; font-size:1.05rem; color:#ebddb0; }
.hp-num { flex:none; width:34px; height:34px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:1rem; background:linear-gradient(135deg,#2f7a52,#1f5c3d); color:#fff; }
.hp-sec p, .hp-sec li, .hp-sec dd { line-height:1.6; }
.hp-fig { margin:16px 0 18px; }
.hp-fig svg { width:100%; height:auto; display:block; border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,.45); }
.hp-fig figcaption { margin-top:8px; text-align:center; font-size:.8rem; color:var(--muted); }
.hp-steps { counter-reset:s; list-style:none; padding:0; margin:14px 0; display:flex; flex-direction:column; gap:10px; }
.hp-steps > li { counter-increment:s; position:relative; padding:10px 14px 10px 52px; border:1px solid #24231d; border-radius:10px; background:rgba(255,255,255,.025); }
.hp-steps li ul { margin:6px 0; padding-left:20px; list-style:disc; } .hp-steps li li { margin:4px 0; }   /* a plain bullet list inside a numbered step */
.hp-steps > li::before { content:counter(s); position:absolute; left:14px; top:10px; width:26px; height:26px; border-radius:50%; background:#1f5c3d; color:#fff; font-weight:700; font-size:.85rem; display:inline-flex; align-items:center; justify-content:center; }
.hp-list { margin:12px 0; padding-left:22px; display:flex; flex-direction:column; gap:7px; }
.hp-alert { margin:10px 0 12px; padding:12px 16px; border:1px solid #b45309; border-left-width:4px; border-radius:10px; background:rgba(245,158,11,.08); }
.hp-alert p { margin:0; }
.hp-chip { display:inline-block; padding:1px 9px; border-radius:7px; border:1px solid; font-size:.88rem; font-weight:600; white-space:nowrap; }
.hp-chip-amber { color:#fde68a; border-color:#b45309; background:rgba(245,158,11,.12); }
.hp-chip-sky { color:#cffafe; border-color:#1f5c3d; background:rgba(201,162,39,.1); }
.hp-chip-violet { color:#f4eedc; border-color:#7a5c12; background:rgba(217,182,74,.12); }
.hp-compare { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:12px 0 4px; }
.hp-cmp { border:1px solid #2e2c24; border-top-width:4px; border-radius:12px; padding:14px 16px; background:rgba(255,255,255,.02); }
.hp-cmp-talk { border-top-color:#c9a227; } .hp-cmp-self { border-top-color:#facc15; }
.hp-cmp h4 { margin:0; font-size:1.02rem; }
.hp-cmp-sub { margin:2px 0 8px; color:var(--muted); font-size:.86rem; }
.hp-cmp ul { margin:0; padding-left:18px; } .hp-cmp li { margin:6px 0; font-size:.92rem; }
.hp-compare-3 { grid-template-columns:repeat(3, 1fr); }
.hp-cmp-admin { border-top-color:#d9b64a; }
@media (max-width:980px) { .hp-compare-3 { grid-template-columns:1fr; } }
@media (max-width:720px) { .hp-compare { grid-template-columns:1fr; } }
.hp-tip { margin:14px 0 0; padding:11px 14px; border-radius:10px; border:1px solid #4a4126; background:rgba(201,162,39,.1); }
.hp-table { width:100%; border-collapse:collapse; margin:10px 0 16px; }
.hp-table th, .hp-table td { text-align:left; padding:10px 12px; border:1px solid #2e2c24; vertical-align:top; }
.hp-table th { width:34%; background:rgba(255,255,255,.03); font-size:.88rem; }
.hp-faq dt { font-weight:700; margin-top:14px; } .hp-faq dd { margin:3px 0 0; color:var(--muted); }
.hp-back { display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
@media (max-width:720px) { .hp-hero h1 { font-size:1.6rem; } .hp-sec { padding:16px 14px; } .hp-steps > li { padding-left:48px; } .hp-table th, .hp-table td { display:block; width:auto; } }
/* link to the tutorial on the regular users' home page */
.tutorial-link { display:flex; align-items:center; gap:14px; max-width:760px; margin:14px auto 30px; padding:14px 18px; border:1px solid #4a4126; border-radius:14px; text-decoration:none; color:var(--fg); background:linear-gradient(90deg, rgba(47,122,82,.16), rgba(201,162,39,.16)); text-align:left; }
.tutorial-link:hover, .tutorial-link:focus-visible { border-color:#c9a227; background:linear-gradient(90deg, rgba(47,122,82,.26), rgba(201,162,39,.26)); }
.tutorial-ic { flex:none; width:44px; height:44px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; font-size:1.4rem; background:rgba(201,162,39,.22); border:1px solid #4a4126; }
.tutorial-txt { flex:1; display:flex; flex-direction:column; gap:2px; min-width:0; } .tutorial-txt span { color:var(--muted); font-size:.86rem; }
.tutorial-go { flex:none; font-weight:700; color:#ebddb0; }
.tutorial-inline { font-size:.85rem; font-weight:500; margin-left:6px; }
@media (max-width:560px) { .tutorial-link { flex-wrap:wrap; } .tutorial-go { width:100%; text-align:right; } }
.hp .mono { overflow-wrap:anywhere; word-break:break-word; }
@media (max-width:720px) { .hp-table, .hp-table tbody, .hp-table tr { display:block; width:100%; } .hp-table th { border-bottom:0; } }
.hp-table th, .hp-table td { white-space:normal; overflow-wrap:anywhere; }

/* DDNS dashboard */
.dd-hero { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1.4fr) auto; gap:16px 22px; align-items:center; }
.dd-ipbox { display:flex; flex-direction:column; gap:4px; } .dd-label { font-size:.74rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#e3c24f; }
.dd-ip { font-size:2rem; line-height:1.1; overflow-wrap:anywhere; } .dd-sub { font-size:.8rem; color:var(--muted); }
.dd-state { display:flex; gap:12px; align-items:center; padding:12px 14px; border-radius:12px; border:1px solid #2e2c24; background:rgba(255,255,255,.03); }
.dd-state div { display:flex; flex-direction:column; gap:2px; } .dd-state span { font-size:.84rem; color:var(--muted); }
.dd-dot { flex:none; width:14px; height:14px; border-radius:50%; background:#64748b; box-shadow:0 0 0 4px rgba(100,116,139,.25); }
.dd-state.ok .dd-dot { background:#22c55e; box-shadow:0 0 0 4px rgba(34,197,94,.25); } .dd-state.warn .dd-dot { background:#f59e0b; box-shadow:0 0 0 4px rgba(245,158,11,.25); } .dd-state.bad .dd-dot { background:#ef4444; box-shadow:0 0 0 4px rgba(239,68,68,.25); }
.dd-actions { display:flex; gap:8px; flex-wrap:wrap; } .dd-inline { display:inline-flex; gap:8px; align-items:center; margin:0; flex-wrap:wrap; }
.dd-btn { background:linear-gradient(90deg,#2f7a52,#1f5c3d); color:#fff; border:0; }
.dd-facts { grid-column:1 / -1; display:grid; grid-template-columns:repeat(auto-fit, minmax(150px,1fr)); gap:10px; margin:0; }
.dd-facts > div { padding:10px 12px; border:1px solid #24231d; border-radius:10px; background:rgba(255,255,255,.025); }
.dd-facts dt, .dd-rec-facts dt { font-size:.68rem; letter-spacing:.07em; text-transform:uppercase; color:#e3c24f; font-weight:700; margin:0 0 3px; }
.dd-facts dd, .dd-rec-facts dd { margin:0; font-weight:600; overflow-wrap:anywhere; } .dd-facts small { display:block; font-weight:400; color:var(--muted); font-size:.76rem; }
.dd-stamp { grid-column:1 / -1; margin:0; }
.dd-recs { display:flex; flex-direction:column; gap:12px; margin-top:12px; }
.dd-rec { padding:14px 16px; border:1px solid #2e2c24; border-left:4px solid #22c55e; border-radius:12px; background:rgba(255,255,255,.025); display:flex; flex-direction:column; gap:10px; }
.dd-rec.out { border-left-color:#f59e0b; } .dd-rec.missing { border-left-color:#ef4444; }
.dd-rec-head { display:flex; gap:8px; align-items:center; flex-wrap:wrap; } .dd-rec-head strong { font-size:1.02rem; margin-right:4px; overflow-wrap:anywhere; }
.dd-rec-facts { display:grid; grid-template-columns:repeat(auto-fit, minmax(140px,1fr)); gap:10px; margin:0; }
.dd-resolvers { display:flex; flex-wrap:wrap; gap:6px; } .dd-res { padding:3px 10px; border-radius:99px; border:1px solid #403d30; font-size:.76rem; color:var(--muted); }
.dd-res.ok { border-color:#14532d; background:rgba(34,197,94,.1); color:#86efac; } .dd-res.old { border-color:#78350f; background:rgba(245,158,11,.1); color:#fcd34d; } .dd-res.none { border-color:#7f1d1d; color:#fca5a5; }
.dd-rec-act { display:flex; gap:14px; align-items:flex-start; flex-wrap:wrap; justify-content:space-between; }
.dd-form { display:flex; flex-wrap:wrap; gap:12px 16px; align-items:flex-end; margin-top:10px; }
.dd-form label { display:flex; flex-direction:column; gap:5px; font-size:.8rem; font-weight:600; color:var(--muted); } .dd-form input:not([type=checkbox]), .dd-form select, .dd-form textarea { min-width:170px; box-sizing:border-box; }
.dd-form textarea { width:100%; min-width:260px; } .dd-add label:first-child { flex:1 1 280px; } .dd-add input { width:100%; }
.dd-check { flex-direction:row !important; align-items:center; gap:8px !important; font-weight:500 !important; color:var(--fg) !important; } .dd-check input { width:auto !important; min-width:0 !important; }
.dd-settings { flex-direction:column; align-items:stretch; } .dd-settings fieldset { border:1px solid #24231d; border-radius:12px; padding:12px 16px 14px; display:flex; flex-wrap:wrap; gap:12px 22px; align-items:center; margin:0; }
.dd-settings legend { padding:0 8px; font-size:.78rem; font-weight:700; color:#e3c24f; letter-spacing:.05em; text-transform:uppercase; }
.dd-formbtns { margin-top:12px; display:flex; gap:10px; flex-wrap:wrap; }
.dd-hist td { vertical-align:top; white-space:normal; } .dd-msg { min-width:240px; overflow-wrap:anywhere; } .dd-bad { color:#f87171; }
.dd-tech > summary { cursor:pointer; list-style:none; font-weight:700; } .dd-tech > summary::-webkit-details-marker { display:none; }
.dd-techgrid { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px,1fr)); gap:18px; margin-top:12px; } .dd-techgrid h3 { margin:0 0 8px; font-size:.95rem; color:#ebddb0; }
.dd-kv { display:grid; grid-template-columns:auto 1fr; gap:6px 14px; margin:0; } .dd-kv dt { color:var(--muted); font-size:.82rem; } .dd-kv dd { margin:0; overflow-wrap:anywhere; }
@media (max-width:900px) { .dd-hero { grid-template-columns:1fr; } .dd-ip { font-size:1.6rem; } }
.uf-pwrow { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:2px 0; }
/* Site Users password pop-up: same button look as the mail server's */
#user-pwdlg button.ghost, .uf-pwrow button.ghost { background:transparent; color:var(--fg); border:1px solid #403d30; min-height:0; cursor:pointer; }
#user-pwdlg button.ghost:hover, .uf-pwrow button.ghost:hover { border-color:#c9a227; background:rgba(201,162,39,.14); }
#user-pwdlg .mail-pwrow button, #user-pwdlg .mail-pwtools button { height:auto; padding:7px 14px; font:inherit; font-size:.85rem; border-radius:999px; }
#ha-pwdlg button.ghost { background:transparent; color:var(--fg); border:1px solid #403d30; cursor:pointer; min-height:0; }
#ha-pwdlg button.ghost:hover { border-color:#c9a227; background:rgba(201,162,39,.14); }

/* webmail: 2FA grace-period banner */
.wm-notice .wm-count { flex:none; display:inline-flex; flex-direction:column; align-items:center; justify-content:center; min-width:64px; padding:4px 10px; border-radius:12px; background:rgba(0,0,0,.3); border:1px solid #b45309; line-height:1.05; }
.wm-notice .wm-count b { font-size:1.6rem; color:#fff; } .wm-notice .wm-count small { font-size:.68rem; letter-spacing:.04em; text-transform:uppercase; color:#fcd34d; }
.wm-notice-urgent { background:rgba(220,38,38,.18); border-bottom-color:#dc2626; color:#fecaca; } .wm-notice-urgent .wm-count { border-color:#dc2626; } .wm-notice-urgent .wm-count small { color:#fca5a5; } .wm-notice-urgent .wm-notice-btn { background:#dc2626; }
.wm-notice-lock { background:rgba(185,28,28,.3); border-bottom-color:#ef4444; color:#fee2e2; } .wm-notice-lock .wm-notice-btn { background:#dc2626; }
/* mail dashboard: grace badges + reset */
.mail-grace { display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap; }
.pill.grace-ok { color:#fcd34d; border-color:#b45309; } .pill.grace-urgent { color:#fca5a5; border-color:#991b1b; } .pill.grace-lock { color:#fff; background:#b91c1c; border-color:#ef4444; font-weight:700; }
/* mail dashboard: webmail 2FA status */
.w2-bar { display:block; width:100%; height:12px; border-radius:99px; overflow:hidden; margin:12px 0; }
.w2-seg { display:block; width:calc(var(--w) * 1%); } .w2-ok { background:#22c55e; } .w2-grace { background:#f59e0b; } .w2-lock { background:#ef4444; } .w2-new { background:#64748b; }
.w2-tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px,1fr)); gap:10px; margin-bottom:12px; }
.w2-tile { padding:10px 14px; border:1px solid #24231d; border-radius:12px; background:rgba(255,255,255,.025); display:flex; flex-direction:column; gap:2px; }
.w2-tile b { font-size:1.8rem; line-height:1.1; } .w2-tile span { font-size:.84rem; font-weight:600; } .w2-tile small { color:var(--muted); font-size:.74rem; }
.w2-tile.ok b { color:#4ade80; } .w2-tile.grace b { color:#fbbf24; } .w2-tile.lock b { color:#f87171; } .w2-tile.new b { color:#94a3b8; }
.w2-table td { vertical-align:middle; } .w2-act { display:flex; gap:6px; flex-wrap:wrap; }

/* ---- header: every item is a button, like HOME ---- */
.bar nav { gap:8px; }
.bar .viewas-toggle { display:inline-flex; margin:0; }
.bar .viewas-toggle button.link, .bar .wm-link, .bar .who, .bar form button.link {
  display:inline-flex; align-items:center; gap:6px; height:32px; min-height:0; padding:0 14px; box-sizing:border-box;
  border:1px solid #403d30; border-radius:999px; background:rgba(255,255,255,.04); color:var(--fg);
  font:inherit; font-size:.84rem; font-weight:600; text-decoration:none; cursor:pointer; white-space:nowrap; transition:border-color .15s, background .15s, color .15s;
}
.bar .viewas-toggle button.link:hover, .bar .wm-link:hover, .bar .who:hover, .bar form button.link:hover { text-decoration:none; color:#fff; border-color:#c9a227; background:rgba(201,162,39,.22); }
.bar .viewas-toggle button.link:focus-visible, .bar .wm-link:focus-visible, .bar .who:focus-visible, .bar form button.link:focus-visible { outline:2px solid #c9a227; outline-offset:2px; }
.bar .viewas-toggle button.link { color:#fbbf24; border-color:#92400e; background:rgba(245,158,11,.1); }
.bar .viewas-toggle button.link:hover { color:#fde68a; border-color:#f59e0b; background:rgba(245,158,11,.22); }
.bar .viewas-toggle button.link::before { content:'👁'; font-size:.9em; }
.bar .wm-link { color:#ebddb0; border-color:#14402a; background:rgba(31,92,61,.15); }
.bar .wm-link::before { content:'✉'; }
.bar .who { color:var(--fg); } .bar .who::before { content:'👤'; font-size:.9em; }
.bar form button.link { color:#fca5a5; border-color:#7f1d1d; background:rgba(185,28,28,.12); }
.bar form button.link:hover { color:#fff; border-color:#ef4444; background:rgba(185,28,28,.35); }
.bar form button.link::before { content:'⏻'; font-size:.9em; }
.bar .viewas-toggle button.link::before, .bar form button.link::before { opacity:.9; }
@media (max-width:720px) {
  .bar nav { gap:6px; padding:2px 0 6px; flex-wrap:nowrap; overflow-x:auto; }
  .bar .viewas-toggle button.link, .bar .wm-link, .bar .who, .bar form button.link { padding:0 10px; font-size:.78rem; gap:5px; }
  .bar nav a, .bar nav .who, .bar nav button { padding:0 10px; }
  .bar nav form { margin-left:0; }
  .bar .brand, .bar .home-link { min-height:0; }
}
@media (max-width:720px) {
  .bar .viewas-toggle button.link::before, .bar .wm-link::before, .bar .who::before, .bar form button.link::before { display:none; }
  .bar .viewas-toggle button.link, .bar .wm-link, .bar .who, .bar form button.link { padding:0 9px; }
}
/* mail dashboard: account badges wrap instead of overflowing on phones */
.mail-acct-addr { flex-wrap:wrap; } .mail-sec { display:inline-flex; flex-wrap:wrap; gap:6px; align-items:center; }
.mail-acct-main { min-width:0; }

/* ---- webmail: 2FA grace banner — a compact, centred red box ---- */
.wm-grace { display:flex; flex-direction:column; align-items:center; text-align:center; gap:8px; width:calc(100% - 32px); max-width:480px; box-sizing:border-box; margin:18px auto 0; padding:16px 22px 18px; border-radius:16px; border:2px solid #dc2626; color:#f87171; background:linear-gradient(180deg, rgba(220,38,38,.28), rgba(127,29,29,.34)); box-shadow:0 0 0 4px rgba(220,38,38,.12), 0 10px 28px rgba(0,0,0,.45); }
.wm-grace-urgent, .wm-grace-lock { border-color:#ef4444; background:linear-gradient(180deg, rgba(239,68,68,.36), rgba(153,27,27,.45)); box-shadow:0 0 0 4px rgba(239,68,68,.2), 0 10px 28px rgba(0,0,0,.5); }
.wm-ring { flex:none; position:relative; display:flex; flex-direction:column; align-items:center; gap:2px; }
.wm-ring svg { display:block; width:52px; height:52px; }
.wm-ring-lab { font-size:.6rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#fecaca; }
.wm-grace-txt { display:flex; flex-direction:column; gap:4px; min-width:0; color:var(--fg); }
.wm-grace-txt strong { font-size:1rem; color:#fff; } .wm-grace-txt span { font-size:.84rem; color:#fecaca; line-height:1.45; overflow-wrap:anywhere; } .wm-grace-txt b { color:#fff; }
.wm-grace-btn { flex:none; display:inline-flex; align-items:center; justify-content:center; gap:8px; height:38px; padding:0 22px; margin-top:4px; border-radius:999px; font-weight:700; text-decoration:none; color:#fff; background:linear-gradient(90deg,#b91c1c,#ef4444); box-shadow:0 4px 14px rgba(220,38,38,.5); }
.wm-grace-btn:hover { filter:brightness(1.12); transform:translateY(-1px); }
@media (max-width:640px) { .wm-grace { width:calc(100% - 20px); margin-top:12px; padding:14px 14px 16px; } .wm-grace-btn { width:100%; } }

/* ---- account page: uniform cards ---- */
.ac-card { padding:20px 22px !important; margin-bottom:16px !important; }
.ac-head { display:flex; align-items:flex-start; gap:14px; padding-bottom:14px; margin-bottom:16px; border-bottom:1px solid var(--line); }
.ac-ic { flex:none; width:42px; height:42px; border-radius:11px; display:inline-flex; align-items:center; justify-content:center; font-size:1.2rem; background:rgba(201,162,39,.16); border:1px solid #4a4126; }
.ac-title { flex:1; min-width:0; } .ac-title h2 { margin:0 0 3px; font-size:1.1rem; } .ac-title p { margin:0; font-size:.86rem; color:var(--muted); line-height:1.5; }
.ac-head .pill { flex:none; margin-top:2px; }
.ac-hero { display:flex; flex-direction:column; gap:14px; background:linear-gradient(120deg, rgba(47,122,82,.12), rgba(201,162,39,.12)); }
.ac-profile { display:flex; align-items:center; gap:16px; }
.ac-avatar { flex:none; width:60px; height:60px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:1.6rem; font-weight:800; color:#fff; background:linear-gradient(135deg,#2f7a52,#1f5c3d); }
.ac-who h1 { margin:0; font-size:1.5rem; } .ac-who p { margin:2px 0 0; overflow-wrap:anywhere; }
.ac-hero .acct-status { margin:0; }
.ac-tabs { display:flex; flex-wrap:wrap; gap:8px; }
.ac-tabs a { padding:6px 14px; border:1px solid #403d30; border-radius:99px; text-decoration:none; color:var(--fg); font-size:.84rem; background:rgba(255,255,255,.03); }
.ac-tabs a:hover { border-color:#c9a227; background:rgba(201,162,39,.16); }
.ac-current { margin:0 0 12px; padding:10px 14px; border:1px solid #24231d; border-radius:10px; background:rgba(255,255,255,.025); }
.ac-card label { display:flex; flex-direction:column; gap:6px; font-size:.8rem; font-weight:600; color:var(--muted); margin:0 0 12px; }
.ac-card label input:not([type=checkbox]) { height:44px; box-sizing:border-box; width:100%; margin:0; }
.ac-card form button[type=submit]:not(.link):not(.btn-sm) { min-width:150px; }
.ac-card .pk-list { margin:0 0 16px; }
.ac-card .pk-add-fields { gap:0 14px; }
.ac-card #passkey-add { padding-top:4px; }
.ac-card details.action { border-top:0; padding-top:0; margin:0 0 12px; }
.ac-card details.action > summary { display:inline-flex; align-items:center; gap:8px; padding:9px 16px; border:1px solid #403d30; border-radius:10px; background:rgba(255,255,255,.03); cursor:pointer; list-style:none; font-weight:600; color:var(--fg); }
.ac-card details.action > summary::-webkit-details-marker { display:none; }
.ac-card details.action > summary:hover { border-color:#c9a227; background:rgba(201,162,39,.14); }
.ac-card details.action > summary.danger { color:#fca5a5; border-color:#7f1d1d; background:rgba(185,28,28,.1); }
.ac-card details.action[open] > summary { margin-bottom:12px; border-color:#c9a227; }
.ac-card .email-form, .ac-card details.action > form { max-width:520px; }
.ac-card .inline-form { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.ac-card .inline-form .otp { max-width:170px; height:44px; box-sizing:border-box; }
.ac-card ol.steps { padding-left:22px; display:flex; flex-direction:column; gap:12px; }
@media (max-width:720px) { .ac-card { padding:16px 14px !important; } .ac-head { gap:10px; } .ac-avatar { width:50px; height:50px; font-size:1.3rem; } .ac-who h1 { font-size:1.25rem; } }
/* DDNS: collapsible managed records */
.dd-sec > summary { list-style:none; cursor:pointer; } .dd-sec > summary::-webkit-details-marker { display:none; }
.dd-sechead { display:flex; align-items:center; gap:10px; flex-wrap:wrap; } .dd-sechead h2 { margin:0; flex:1 1 auto; }
.dd-sec[open] > .dd-sechead { margin-bottom:10px; }
.dd-sec > summary .mail-chev, .dd-rec > summary .mail-chev { transition:transform .15s; display:inline-block; } .dd-sec:not([open]) > summary .mail-chev, .dd-rec:not([open]) > summary .mail-chev { transform:rotate(-90deg); }
.dd-rec > summary { list-style:none; cursor:pointer; } .dd-rec > summary::-webkit-details-marker { display:none; }
.dd-rec[open] > summary { margin-bottom:10px; } .dd-rec-ip { margin-left:auto; font-size:.84rem; }
.dd-expandbar { display:flex; gap:8px; margin:8px 0 0; }
.dd-rec { display:block !important; } .dd-rec > *:not(summary) { margin-top:10px; } .dd-rec > .dd-rec-act { margin-top:12px; }
/* DDNS: managed records grouped by domain (one fold per domain) */
.dd-group { border:1px solid #2e2c24; border-radius:12px; padding:10px 14px; margin-top:12px; background:rgba(255,255,255,.02); }
.dd-group.out { border-color:#7a5d12; }
.dd-group > summary { list-style:none; cursor:pointer; display:flex; align-items:center; gap:10px; flex-wrap:wrap; min-height:32px; }
.dd-group > summary::-webkit-details-marker { display:none; }
.dd-group > summary strong { font-size:1rem; }
.dd-group > summary .mail-chev { transition:transform .15s; display:inline-block; } .dd-group:not([open]) > summary .mail-chev { transform:rotate(-90deg); }
.dd-group[open] > summary { margin-bottom:8px; }
.dd-group > p { margin:6px 0 4px; }
@media (max-width:560px) { .dd-group { padding:8px 10px; } }
.idle-dlg .idle-count { font-size:1.15rem; font-variant-numeric:tabular-nums; }
.idle-dlg button.ghost { background:transparent; color:var(--fg); border:1px solid #403d30; cursor:pointer; min-height:0; }

/* ---- webmail header: same pill buttons as the main site's header ---- */
.wm-bar { gap:8px; }
.wm-bar .wm-who, .wm-bar .wm-setlink, .wm-bar form button.link, .wm-body .wm-bar .wm-infobtn {
  display:inline-flex; align-items:center; gap:6px; height:32px; min-height:0; padding:0 14px; box-sizing:border-box;
  border:1px solid #403d30; border-radius:999px; background:rgba(255,255,255,.04); color:var(--fg);
  font:inherit; font-size:.84rem; font-weight:600; text-decoration:none; cursor:pointer; white-space:nowrap; transition:border-color .15s, background .15s, color .15s;
}
.wm-bar .wm-who { margin-left:auto; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.8rem; font-weight:500; }
.wm-bar .wm-who:hover, .wm-bar .wm-who:focus-visible { color:#fff; border-color:#c9a227; background:rgba(201,162,39,.22); }
.wm-bar .wm-who::before { content:'👤'; font-size:.9em; font-family:system-ui,sans-serif; }
.wm-body .wm-bar .wm-infobtn { color:#ebddb0; border-color:#14402a; background:rgba(31,92,61,.15); }
.wm-body .wm-bar .wm-infobtn:hover, .wm-body .wm-bar .wm-infobtn:focus-visible { color:#fff; border-color:#c9a227; background:rgba(201,162,39,.3); }
.wm-bar .wm-setlink:hover, .wm-bar .wm-setlink:focus-visible { color:#fff; border-color:#c9a227; background:rgba(201,162,39,.22); }
.wm-bar form { margin:0; display:inline-flex; }
.wm-bar form button.link { color:#fca5a5; border-color:#7f1d1d; background:rgba(185,28,28,.12); }
.wm-bar form button.link::before { content:'⏻'; font-size:.9em; opacity:.9; }
.wm-bar form button.link:hover, .wm-bar form button.link:focus-visible { text-decoration:none; color:#fff; border-color:#ef4444; background:rgba(185,28,28,.35); }
.wm-bar .wm-setlink:focus-visible, .wm-bar form button.link:focus-visible { outline:2px solid #c9a227; outline-offset:2px; }
@media (max-width:760px) {
  .wm-bar .wm-setlink, .wm-bar form button.link, .wm-body .wm-bar .wm-infobtn { padding:0 11px; font-size:.78rem; }
  .wm-bar form button.link::before { display:none; }
}

/* ---- header logos: websystems.ca + websystems Mail, left side of every header ---- */
.hl-wrap { display:flex; align-items:center; gap:12px; }
.hl { display:flex; align-items:center; gap:9px; color:var(--fg); text-decoration:none; font-size:1.05rem; font-weight:500; line-height:1; border-radius:10px; padding:3px 6px 3px 3px; transition:background .15s; }
.hl img { display:block; width:30px; height:30px; flex:none; }
.hl b { color:#d9b64a; font-weight:700; }   /* the seal's gold (brand v3, deploy/make_seal.py) */
.hl:hover, .hl:focus-visible { background:rgba(201,162,39,.16); }
.hl:focus-visible { outline:2px solid #c9a227; outline-offset:2px; }
.hl.is-current { background:rgba(201,162,39,.1); }
.hl-sep { width:1px; height:24px; background:#2e2c24; }
.bar .brand-wrap { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.wm-bar .hl-wrap { flex:none; }
@media (max-width:560px) {
  .hl { font-size:.95rem; } .hl-wrap { gap:8px; }
}

/* ---- header: live status button (hover / focus / tap shows the details) ---- */
.stat-wrap { position:relative; display:inline-flex; }
.stat-btn { display:inline-flex; align-items:center; gap:7px; height:30px; min-height:0; padding:0 12px; box-sizing:border-box; border:1px solid #403d30; border-radius:999px; background:rgba(255,255,255,.04); color:var(--fg); font:inherit; font-size:.8rem; font-weight:600; cursor:pointer; }
.stat-btn:hover, .stat-btn:focus-visible { border-color:#c9a227; background:rgba(201,162,39,.16); }
.stat-btn:focus-visible { outline:2px solid #c9a227; outline-offset:2px; }
.stat-dot { flex:none; width:9px; height:9px; border-radius:50%; background:#64748b; display:inline-block; }
.stat-ok { border-color:#14532d; background:rgba(34,197,94,.1); color:#86efac; } .stat-ok .stat-dot { background:#22c55e; position:relative; }
.stat-ok .stat-dot::after { content:''; position:absolute; inset:-3px; border-radius:50%; background:rgba(34,197,94,.25); z-index:-1; animation:stat-pulse 2.4s ease-in-out infinite; will-change:transform, opacity; }   /* transform + opacity only, so the GPU animates it without repainting (PageSpeed) */
.stat-degraded { border-color:#78350f; background:rgba(245,158,11,.12); color:#fcd34d; } .stat-degraded .stat-dot { background:#f59e0b; box-shadow:0 0 0 3px rgba(245,158,11,.28); }
.stat-down { border-color:#7f1d1d; background:rgba(239,68,68,.14); color:#fca5a5; } .stat-down .stat-dot { background:#ef4444; box-shadow:0 0 0 3px rgba(239,68,68,.3); }
@keyframes stat-pulse { 0%,100% { transform:scale(1); opacity:1; } 50% { transform:scale(1.4); opacity:.32; } }
@media (prefers-reduced-motion: reduce) { .stat-ok .stat-dot::after { animation:none; } }
.stat-pop { position:absolute; left:0; top:calc(100% + 10px); z-index:80; width:300px; max-width:calc(100vw - 24px); padding:14px 16px; border:1px solid #403d30; border-radius:14px; background:#201e18; box-shadow:0 14px 36px rgba(0,0,0,.6); display:none; flex-direction:column; gap:10px; text-align:left; font-size:.84rem; }
.stat-pop::before { content:''; position:absolute; left:26px; top:-6px; width:10px; height:10px; background:#201e18; border-left:1px solid #403d30; border-top:1px solid #403d30; transform:rotate(45deg); }
.stat-wrap:hover .stat-pop, .stat-wrap:focus-within .stat-pop { display:flex; }
.stat-title { font-size:.95rem; color:#fff; } .stat-rows { display:flex; flex-direction:column; gap:10px; } .stat-note { color:var(--muted); }
.stat-row { display:flex; flex-direction:column; gap:5px; padding:10px 12px; border:1px solid #24231d; border-radius:10px; background:rgba(255,255,255,.03); }
.stat-rowhead { display:flex; align-items:center; gap:8px; } .stat-rowhead b { flex:1; } .stat-rowhead em { font-style:normal; font-size:.78rem; color:var(--muted); }
.stat-r-ok .stat-dot { background:#22c55e; } .stat-r-degraded .stat-dot { background:#f59e0b; } .stat-r-down .stat-dot { background:#ef4444; }
.stat-r-ok .stat-rowhead em { color:#86efac; } .stat-r-degraded .stat-rowhead em { color:#fcd34d; } .stat-r-down .stat-rowhead em { color:#fca5a5; }
.stat-parts { display:flex; flex-direction:column; gap:2px; padding-left:17px; font-size:.78rem; } .stat-p-ok { color:#9ca3af; } .stat-p-bad { color:#fca5a5; font-weight:600; }
.stat-foot { color:var(--muted); font-size:.74rem; }
@media (max-width:560px) { .stat-btn .stat-lab { display:none; } .stat-btn { padding:0 10px; } }
.stat-live { margin-left:8px; font-style:normal; font-size:.66rem; font-weight:800; letter-spacing:.1em; color:#4ade80; vertical-align:middle; }

/* status card: no hover gap (the card no longer closes while you move the pointer onto it), and no layout jumps */
.stat-pop::after { content:''; position:absolute; left:0; right:0; top:-12px; height:12px; }
.stat-rowhead em { min-width:5.5em; text-align:right; } .stat-offline { color:#fca5a5; font-size:.8rem; line-height:1.4; }

/* ---- live status button: identical in webmail (webmail's generic button styles must not touch it) ---- */
.wm-body .stat-wrap .stat-btn { display:inline-flex; align-items:center; justify-content:flex-start; gap:7px; height:30px; min-height:0; padding:0 12px; box-sizing:border-box; border:1px solid #403d30; border-radius:999px; background:rgba(255,255,255,.04); color:var(--fg); font:inherit; font-size:.8rem; font-weight:600; line-height:1; cursor:pointer; box-shadow:none; }
.wm-body .stat-wrap .stat-btn:hover, .wm-body .stat-wrap .stat-btn:focus-visible { border-color:#c9a227; background:rgba(201,162,39,.16); color:var(--fg); }
.wm-body .stat-wrap .stat-btn.stat-ok { border-color:#14532d; background:rgba(34,197,94,.1); color:#86efac; }
.wm-body .stat-wrap .stat-btn.stat-degraded { border-color:#78350f; background:rgba(245,158,11,.12); color:#fcd34d; }
.wm-body .stat-wrap .stat-btn.stat-down { border-color:#7f1d1d; background:rgba(239,68,68,.14); color:#fca5a5; }
.wm-body .stat-wrap .stat-btn.stat-ok:hover, .wm-body .stat-wrap .stat-btn.stat-degraded:hover, .wm-body .stat-wrap .stat-btn.stat-down:hover { border-color:#c9a227; }
.wm-body .stat-wrap .stat-btn .stat-dot { width:9px; height:9px; }
@media (max-width:560px) { .wm-body .stat-wrap .stat-btn { padding:0 10px; } }

/* colour accents for launcher tiles and guide cards (replaces inline style attributes, which the CSP blocks) */
.cc-000000{--c:#000000}.cc-22d3ee{--c:#e3c24f}.cc-34d399{--c:#34d399}.cc-38bdf8{--c:#e3c24f}.cc-4ade80{--c:#4ade80}.cc-818cf8{--c:#d9b64a}.cc-94a3b8{--c:#94a3b8}.cc-a3e635{--c:#a3e635}.cc-a78bfa{--c:#d9b64a}.cc-c084fc{--c:#d9b64a}.cc-f472b6{--c:#c9a227}.cc-f59e0b{--c:#f59e0b}.cc-fb7185{--c:#fb7185}.cc-fb923c{--c:#fb923c}.cc-fbbf24{--c:#fbbf24}.cc-fdba74{--c:#fdba74}

/* width / spacing helpers (inline style attributes are blocked by the CSP) */
.pw-0{width:0%}.pw-1{width:1%}.pw-2{width:2%}.pw-3{width:3%}.pw-4{width:4%}.pw-5{width:5%}.pw-6{width:6%}.pw-7{width:7%}.pw-8{width:8%}.pw-9{width:9%}.pw-10{width:10%}.pw-11{width:11%}.pw-12{width:12%}.pw-13{width:13%}.pw-14{width:14%}.pw-15{width:15%}.pw-16{width:16%}.pw-17{width:17%}.pw-18{width:18%}.pw-19{width:19%}.pw-20{width:20%}.pw-21{width:21%}.pw-22{width:22%}.pw-23{width:23%}.pw-24{width:24%}.pw-25{width:25%}.pw-26{width:26%}.pw-27{width:27%}.pw-28{width:28%}.pw-29{width:29%}.pw-30{width:30%}.pw-31{width:31%}.pw-32{width:32%}.pw-33{width:33%}.pw-34{width:34%}.pw-35{width:35%}.pw-36{width:36%}.pw-37{width:37%}.pw-38{width:38%}.pw-39{width:39%}.pw-40{width:40%}.pw-41{width:41%}.pw-42{width:42%}.pw-43{width:43%}.pw-44{width:44%}.pw-45{width:45%}.pw-46{width:46%}.pw-47{width:47%}.pw-48{width:48%}.pw-49{width:49%}.pw-50{width:50%}.pw-51{width:51%}.pw-52{width:52%}.pw-53{width:53%}.pw-54{width:54%}.pw-55{width:55%}.pw-56{width:56%}.pw-57{width:57%}.pw-58{width:58%}.pw-59{width:59%}.pw-60{width:60%}.pw-61{width:61%}.pw-62{width:62%}.pw-63{width:63%}.pw-64{width:64%}.pw-65{width:65%}.pw-66{width:66%}.pw-67{width:67%}.pw-68{width:68%}.pw-69{width:69%}.pw-70{width:70%}.pw-71{width:71%}.pw-72{width:72%}.pw-73{width:73%}.pw-74{width:74%}.pw-75{width:75%}.pw-76{width:76%}.pw-77{width:77%}.pw-78{width:78%}.pw-79{width:79%}.pw-80{width:80%}.pw-81{width:81%}.pw-82{width:82%}.pw-83{width:83%}.pw-84{width:84%}.pw-85{width:85%}.pw-86{width:86%}.pw-87{width:87%}.pw-88{width:88%}.pw-89{width:89%}.pw-90{width:90%}.pw-91{width:91%}.pw-92{width:92%}.pw-93{width:93%}.pw-94{width:94%}.pw-95{width:95%}.pw-96{width:96%}.pw-97{width:97%}.pw-98{width:98%}.pw-99{width:99%}.pw-100{width:100%}
.fs-lg{font-size:1.1rem}.w-240{width:240px;max-width:100%}.ha-pw-mid{margin:10px 0}.ha-pw-b{margin-bottom:10px}

/* ---- phone polish from the audit: no overflow in tiles, readable labels, bigger tap targets ---- */
.mail-tile { min-width:0; } .mail-tile b, .mail-tile em, .mail-tile span { overflow-wrap:anywhere; }
@media (max-width:720px) {
  .dd-facts dt, .dd-rec-facts dt, .stat-live { font-size:.72rem; }
  .chip.link, a.chip, .chip.port, .chip.svc { display:inline-flex; align-items:center; min-height:32px; padding-top:4px; padding-bottom:4px; }
  .dev a[href^="http"], .dev .ports a { display:inline-block; padding:6px 0; }
  .wm-row .wm-from, .wm-row .wm-subj { padding-top:5px; padding-bottom:5px; }
  .pub-top nav a:not(.pub-btn) { padding:9px 7px; display:inline-flex; align-items:center; }
}

/* ---- tap targets: at least ~32px high for anything you press (phones and touch screens) ---- */
input[type=checkbox], input[type=radio] { width:20px; height:20px; min-width:20px; flex:none; accent-color:#c9a227; }
label:has(> input[type=checkbox]), label:has(> input[type=radio]) { min-height:32px; }
.btn-xs { min-height:32px; }
.wm-infobtn { min-height:32px; }
summary { padding-top:7px; padding-bottom:7px; }
@media (max-width:720px), (pointer:coarse) {
  td > a, th > a, li > a:not(.button), .guide-card p a, .guide-card a, .small > a, p.small a, .muted a, .forgot-link a, .site-footer a {
    display:inline-block; padding:7px 3px; line-height:1.3; }
  td > a.pill, td > a.chip, td > a.method, .hp-sec p a, .hp-sec li a, .hp-faq a, .hp-tip a, .hp-lead a { padding:0; display:inline; }     /* running text keeps its natural flow */
  .btn-xs, .btn-sm, button.sm, a.sm { min-height:36px; }
}
input[type=checkbox], input[type=radio] { width:22px; height:22px; min-width:22px; }
.hp-sec p a.button, .hp-sec li a.button, .hp-back a { display:inline-flex !important; padding:0 18px !important; min-height:40px; align-items:center; }
.mail-page .mail-aliasinfo .wm-infobtn { height:32px; }
@media (max-width:720px), (pointer:coarse) {
  /* every link that stands on its own (not inside a sentence) gets a comfortable touch area */
  main a:not(p a):not(.button):not(.pill):not(.chip):not(.hl):not(.pub-btn):not(.tutorial-link):not(.launch):not(.stat-btn),
  a.small, a.method { display:inline-block; padding:7px 3px; line-height:1.3; }
  a.method { padding:5px 6px; }
}
.dd-check input[type=checkbox], .wm-check input[type=checkbox] { width:22px !important; height:22px !important; min-width:22px !important; }
.ha-card a:not(.button):not(.ha-runbtn), .ha-foot a { display:inline-block; padding:7px 3px; }
.sf-ver { margin-left:8px; padding:1px 8px; border:1px solid #403d30; border-radius:99px; font-size:.72rem; color:var(--muted); white-space:nowrap; }

/* ---- "What you can do here" boxes: title, one-line summary, short checklist, link button ---- */
.guide-grid { grid-template-columns:repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap:14px; align-items:stretch; }
.guide-card { display:flex; flex-direction:column; gap:8px; padding:16px 18px 16px; }
.guide-card h3 { margin:0; font-size:1.02rem; }
.guide-card .guide-sum { margin:0; color:var(--muted); font-size:.86rem; line-height:1.45; padding-bottom:8px; border-bottom:1px solid var(--line); }
.guide-list { list-style:none; margin:2px 0 0; padding:0; display:flex; flex-direction:column; gap:7px; }
.guide-list li { position:relative; padding-left:22px; font-size:.86rem; line-height:1.45; color:#d1d5db; }
.guide-list li::before { content:'✓'; position:absolute; left:0; top:0; width:16px; text-align:center; font-weight:800; color:var(--c, #c9a227); }
.guide-card .guide-link { margin-top:auto; align-self:flex-start; display:inline-flex; align-items:center; gap:6px; padding:7px 14px; border:1px solid color-mix(in srgb, var(--c, #c9a227) 55%, #2e2c24); border-radius:99px; background:color-mix(in srgb, var(--c, #c9a227) 12%, transparent); color:var(--fg); font-weight:600; font-size:.84rem; text-decoration:none; white-space:nowrap; }
.guide-card .guide-link:hover, .guide-card .guide-link:focus-visible { background:color-mix(in srgb, var(--c, #c9a227) 28%, transparent); }
.guide-list + .guide-link { margin-top:10px; }
.guide-card:has(.guide-link) .guide-list { margin-bottom:6px; }
.guide-card.coming-soon .guide-sum { border-bottom-color:#14402a; }
@media (max-width:720px) { .guide-card { padding:14px 14px; } .guide-card .guide-link { padding:9px 16px; } }

/* the header frame on the phpMyAdmin page grows while the status card is open: everything except the bar and the card must be see-through */
html:has(body.chrome-embed) { color-scheme:normal !important; background:transparent !important; }
body.chrome-embed { background:transparent !important; margin:0; }
body.chrome-embed .bar { margin:0; }

/* ---- client projects page: "+ New project" and the All / Only mine switch use the same pill buttons as the header ---- */
.proj-head-actions { gap:12px; }
.proj-scope { gap:6px; padding:3px; border:1px solid #403d30; border-radius:999px; background:rgba(255,255,255,.04); }
.proj-scope .dp-tab { display:inline-flex; align-items:center; height:30px; padding:0 14px; border-radius:999px; font-size:.84rem; font-weight:600; color:var(--muted); }
.proj-scope .dp-tab:hover { color:#fff; background:rgba(201,162,39,.2); }
.proj-scope .dp-tab.active { color:#fff; background:linear-gradient(90deg,#2f7a52,#1f5c3d); }
.new-proj-btn { display:inline-flex; align-items:center; gap:8px; height:38px; padding:0 18px 0 8px; border-radius:999px; border:1px solid #1f5c3d; background:linear-gradient(90deg, rgba(47,122,82,.28), rgba(31,92,61,.38)); color:#fff; font-weight:700; font-size:.9rem; text-decoration:none; white-space:nowrap; transition:filter .15s, border-color .15s; }
.new-proj-btn:hover, .new-proj-btn:focus-visible { filter:brightness(1.25); border-color:#d9b64a; color:#fff; }
.new-proj-btn:focus-visible { outline:2px solid #c9a227; outline-offset:2px; }
.new-proj-btn .np-ic { flex:none; width:24px; height:24px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:1.2rem; line-height:1; font-weight:800; background:linear-gradient(135deg,#2f7a52,#1f5c3d); color:#fff; }
@media (max-width:720px) { .new-proj-btn { width:100%; justify-content:center; padding:0 18px; } }

/* DMARC dashboard */
.dm-range { margin-left:auto; display:inline-flex; gap:4px; }
.dm-range .btn-sm.is-on { color:var(--fg); border-color:var(--accent, #c9a227); }
.dm-chart { width:100%; max-width:640px; height:auto; margin-top:12px; color:var(--muted); }
.dm-notes { margin:6px 0 0; padding-left:18px; display:flex; flex-direction:column; gap:8px; }
.dm-sub td { border-top:0; padding-top:0; }
.wm-folders a.wm-manage { margin-top:8px; color:var(--muted); font-size:.84rem; }
.wm-move { max-width:11rem; padding:4px 8px; font-size:.85rem; }
/* webmail Manage folders: one rounded row per folder — handle · name and counts · ▲▼, with the rename / delete controls on a second line for your own folders */
.wm-folder-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.wm-folder-list li { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px 10px; padding:10px 12px; border:1px solid #2e2c24; border-radius:14px; background:rgba(255,255,255,.025); }
.wm-folder-list li:hover { border-color:#1f5c3d; }
.wm-fmain { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start; column-gap:8px; min-width:0; font-size:1rem; }
.wm-ficon { line-height:1.5; }
.wm-ftext { display:flex; align-items:baseline; gap:2px 10px; flex-wrap:wrap; min-width:0; }
.wm-ftext a { font-weight:600; overflow-wrap:anywhere; }
.wm-fbadge { font-size:.72rem; color:var(--muted); border:1px solid #403d30; border-radius:999px; padding:0 8px; white-space:nowrap; }
.wm-folder-list .wm-fedit { grid-column:2 / -1; margin:0; }
.wm-folder-list .wm-fedit input[type=text] { flex:1 1 12rem; min-width:0; }
.wm-folder-form { display:flex; gap:8px; align-items:center; flex-wrap:wrap; } .wm-folder-form input[type=text] { min-width:10rem; }
.wm-rulelist { list-style:decimal; margin:0 0 12px; padding-left:22px; } .wm-rulelist li { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; padding:6px 0; border-bottom:1px solid var(--line); }
.wm-ruleform { display:flex; flex-direction:column; gap:8px; }
.pub-top nav a.pub-mail { display:inline-flex; align-items:center; gap:6px; color:var(--fg); text-decoration:none; font-size:.92rem; } .pub-top nav a.pub-mail:hover { color:#d9b64a; }
.pub-left { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }

/* ---- header logos: icon only until hovered/focused, then the name slides out (header_logos() on every page + the public homepage) ---- */
.hl { gap:0; }
.hl span, .pub-brand span, .pub-top nav a.pub-mail span { display:inline-block; max-width:0; opacity:0; overflow:hidden; white-space:nowrap; padding-left:0; transition:max-width .28s ease, opacity .2s ease, padding-left .28s ease; }
.hl:hover span, .hl:focus-visible span, .pub-brand:hover span, .pub-brand:focus-visible span, .pub-top nav a.pub-mail:hover span, .pub-top nav a.pub-mail:focus-visible span { max-width:12em; opacity:1; padding-left:9px; }
.pub-brand, .pub-top nav a.pub-mail { gap:0; }
.pub-top nav a.pub-mail { padding:3px; border-radius:10px; } .pub-top nav a.pub-mail:hover { background:rgba(201,162,39,.16); }
@media (prefers-reduced-motion: reduce) { .hl span, .pub-brand span, .pub-top nav a.pub-mail span { transition:none; } }

/* ---- status button: just the dot until hovered/focused, then the label slides out ---- */
.stat-btn { gap:0; }
.stat-btn .stat-lab { display:inline-block; max-width:0; opacity:0; overflow:hidden; white-space:nowrap; padding-left:0; transition:max-width .28s ease, opacity .2s ease, padding-left .28s ease; }
.stat-wrap:hover .stat-lab, .stat-wrap:focus-within .stat-lab { max-width:12em; opacity:1; padding-left:7px; }
@media (prefers-reduced-motion: reduce) { .stat-btn .stat-lab { transition:none; } }
.hp-list li.hp-red, .hp-list li.hp-red strong, .hp-list li.hp-red em { color:#f87171; font-weight:700; }
.hp-ok { color:#4ade80; font-weight:700; } .hp-warn { color:#fbbf24; font-weight:700; } .hp-bad { color:#f87171; font-weight:700; }
html { scroll-behavior:smooth; } @media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } }
.hp-totop { margin:14px 0 0; text-align:right; } .hp-totop a { font-size:.85rem; color:var(--muted); text-decoration:none; padding:4px 10px; border:1px solid #403d30; border-radius:99px; } .hp-totop a:hover { color:#fff; border-color:#c9a227; background:rgba(201,162,39,.2); }
.hp-top-btn { position:fixed; right:18px; bottom:18px; z-index:60; display:inline-flex; align-items:center; gap:4px; height:40px; padding:0 16px; border-radius:99px; border:1px solid #c9a227; background:linear-gradient(90deg,#2f7a52,#1f5c3d); color:#fff; font-weight:700; font-size:.92rem; text-decoration:none; box-shadow:0 6px 18px rgba(0,0,0,.45); }
.hp-top-btn:hover, .hp-top-btn:focus-visible { filter:brightness(1.15); outline:2px solid #e3c24f; outline-offset:2px; }
@media (max-width:560px) { .hp-top-btn span { display:none; } .hp-top-btn { width:44px; height:44px; padding:0; justify-content:center; font-size:1.2rem; } }
.wm-runrules { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 14px; }
/* backups: collapsible list and rows */
.bk-all > summary, .bk-det > summary { cursor:pointer; list-style:none; } .bk-all > summary::-webkit-details-marker, .bk-det > summary::-webkit-details-marker { display:none; }
.bk-all-sum { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; font-weight:700; font-size:1.05rem; padding:6px 2px 10px; }
.bk-all-sum::before { content:'▾'; margin-right:8px; color:var(--muted); } .bk-all:not([open]) > .bk-all-sum::before { content:'▸'; }
.bk-all-sum > span:first-child { flex:1; }
.bk-det > summary.bk-main { position:relative; padding-left:22px; }
.bk-det > summary.bk-main::before { content:'▾'; position:absolute; left:0; top:50%; transform:translateY(-50%); color:var(--muted); }
.bk-det:not([open]) > summary.bk-main::before { content:'▸'; }
.bk-det > .bk-issue, .bk-det > .bk-facts { margin-top:10px; }
.bk-det > summary:focus-visible, .bk-all > summary:focus-visible { outline:2px solid #c9a227; outline-offset:2px; border-radius:8px; }
.bot-trap { position:absolute !important; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }

/* ---- confirmation / error toasts (replace the plain bordered message boxes at the top of pages) ---- */
.toasts { position:fixed; top:14px; left:50%; transform:translateX(-50%); z-index:1000; width:min(640px, calc(100vw - 24px)); display:flex; flex-direction:column; gap:10px; pointer-events:none; }
.toast { pointer-events:auto; position:relative; display:flex; align-items:center; gap:12px; padding:13px 12px 16px 14px; border-radius:14px; border:1px solid; overflow:hidden;
  box-shadow:0 14px 34px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03) inset; animation:toast-in .38s cubic-bezier(.2,.9,.3,1.2); transition:opacity .4s ease, transform .4s ease; }
.toast.ok { color:#d1fae5; border-color:rgba(74,222,128,.55); background:linear-gradient(90deg, rgba(22,101,52,.55), rgba(10,20,15,.97) 62%); }
.toast.err { color:#fee2e2; border-color:rgba(248,113,113,.6); background:linear-gradient(90deg, rgba(153,27,27,.6), rgba(24,10,10,.97) 62%); }
.toast-ic { flex:none; width:28px; height:28px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-weight:800; font-size:.95rem; }
.toast.ok .toast-ic { background:#22c55e; color:#052e16; } .toast.err .toast-ic { background:#ef4444; color:#fff; }
.toast-msg { flex:1; font-size:.95rem; line-height:1.4; overflow-wrap:anywhere; }
.toast .toast-x { flex:none; width:28px; height:28px; min-height:0; padding:0; border:0; border-radius:50%; background:transparent; color:inherit; opacity:.65; font-size:.85rem; line-height:1; cursor:pointer; }
.toast .toast-x:hover, .toast .toast-x:focus-visible { opacity:1; background:rgba(255,255,255,.12); filter:none; }
.toast-bar { position:absolute; left:0; bottom:0; height:3px; width:100%; background:#4ade80; transform-origin:left; animation:toast-bar 5s linear forwards; }
.toast.paused .toast-bar { animation-play-state:paused; }
.toast.out { opacity:0; transform:translateY(-10px); }
@keyframes toast-in { from { opacity:0; transform:translateY(-14px) scale(.97); } to { opacity:1; transform:none; } }
@keyframes toast-bar { to { transform:scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .toast { animation:none; } .toast-bar { animation-duration:5s; } }
@media print { .toasts { display:none; } }

/* ---- inline messages inside pages and forms (sign-in errors, "check your email", results on a page …): same look as the toasts ---- */
.flash { padding:11px 14px; border-radius:12px; line-height:1.45; box-shadow:0 6px 18px rgba(0,0,0,.28); }
.flash.ok { color:#d1fae5; border-color:rgba(74,222,128,.55); background:linear-gradient(90deg, rgba(22,101,52,.5), rgba(10,20,15,.9) 70%); }
.flash.err { color:#fee2e2; border-color:rgba(248,113,113,.6); background:linear-gradient(90deg, rgba(153,27,27,.55), rgba(24,10,10,.9) 70%); }
.flash strong { color:#fff; }

/* forgot-password human check: pick the picture with the number */
.pick-box { margin:30px 0 8px; padding:14px 14px 10px; border:1px solid #2e2c24; border-radius:14px; background:rgba(255,255,255,.02); }
.pick-box legend { padding:0 8px; font-weight:700; font-size:.95rem; }
.pick-q { margin:2px 0 10px; font-size:1.02rem; color:var(--fg); }
.pick-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; }
.pick { position:relative; display:block; cursor:pointer; border-radius:12px; border:2px solid #2e2c24; overflow:hidden; background:#0b0b09; transition:border-color .15s, transform .15s, box-shadow .15s; }
.pick:hover { border-color:#c9a227; transform:translateY(-1px); }
.pick input { position:absolute; opacity:0; inset:0; width:100%; height:100%; margin:0; cursor:pointer; }
.pick img { display:block; width:100%; height:auto; }
.pick-tick { position:absolute; right:6px; top:6px; width:24px; height:24px; border-radius:50%; background:#22c55e; color:#052e16; font-weight:800; font-size:.85rem; display:none; align-items:center; justify-content:center; }
.pick:has(input:checked) { border-color:#4ade80; box-shadow:0 0 0 3px rgba(74,222,128,.25); } .pick:has(input:checked) .pick-tick { display:inline-flex; }
.pick:has(input:focus-visible) { outline:2px solid #e3c24f; outline-offset:2px; }
@media (max-width:420px) { .pick-grid { gap:6px; } }

/* public home: what we build / clients big and small */
.pub-grid-4 { grid-template-columns:repeat(auto-fit, minmax(230px, 1fr)); }
.pub-type { transition:border-color .15s, transform .15s, background .15s; } .pub-type:hover { border-color:#c9a227; transform:translateY(-2px); background:linear-gradient(180deg, rgba(201,162,39,.12), var(--card)); }
.pub-ic { display:block; margin:0 0 12px; padding:8px; box-sizing:content-box; border-radius:12px; border:1px solid #4a4126; color:#e3c24f; background:linear-gradient(135deg, rgba(47,122,82,.22), rgba(201,162,39,.22)); }
.pub-type:nth-child(3n+2) .pub-ic { color:#c9a227; } .pub-type:nth-child(3n) .pub-ic { color:#e3c24f; }
.pub-more { margin:18px 0 0; text-align:center; color:var(--muted); }
/* public pages besides the home page (app/public_pages.php) */
.pub-top nav a[aria-current="page"] { color:var(--fg); text-decoration:underline; text-underline-offset:6px; text-decoration-color:#c9a227; }
.pub-crumbs { margin:6px 0 0; font-size:.85rem; color:var(--muted); text-align:left; }
.pub-crumbs ol { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:6px; }
.pub-crumbs li:not(:last-child)::after { content:"›"; margin-left:6px; color:#4b5068; }
.pub-crumbs a { color:var(--muted); } .pub-crumbs a:hover { color:var(--fg); }
.pub-page-hero { padding:26px 0 34px; }
.pub-page-hero h1 { font-size:clamp(1.7rem, 4vw, 2.4rem); line-height:1.15; margin:8px 0 14px; }
.pub-hero-ic { display:inline-flex; width:64px; height:64px; align-items:center; justify-content:center; border-radius:18px; background:rgba(201,162,39,.14); color:#e3c24f; }
.pub-hero-ic .pub-ic { width:40px; height:40px; margin:0; }
.pub-checks { list-style:none; margin:0 auto; padding:0; max-width:760px; display:grid; grid-template-columns:1fr 1fr; gap:10px 24px; text-align:left; }
.pub-checks li { position:relative; padding-left:28px; color:#c9d1d9; line-height:1.5; }
.pub-checks li::before { content:"✓"; position:absolute; left:0; top:0; width:20px; height:20px; border-radius:50%; background:rgba(34,197,94,.15); color:#4ade80; font-size:.75rem; font-weight:700; display:flex; align-items:center; justify-content:center; }
/* /partners (SBS Computer Logistics) */
.partner-kicker { margin:0 0 6px; color:var(--accent); font-weight:700; letter-spacing:.08em; text-transform:uppercase; font-size:.8rem; }
.partner-logo-link { display:inline-block; margin:18px auto 6px; padding:14px 22px; border:1px solid #2e2c24; border-radius:14px; background:var(--card); }
.partner-logo-link:hover { border-color:#c9a227; }
.partner-logo { display:block; width:260px; max-width:100%; height:auto; }
.partner-two { align-items:stretch; }
.partner-card { display:flex; flex-direction:column; gap:10px; }
.partner-links { list-style:none; margin:4px 0 0; padding:0; display:flex; flex-direction:column; gap:8px; }
.partner-links li { display:flex; flex-direction:column; }
.partner-links a { font-weight:600; }
.partner-links span { color:var(--muted); font-size:.9rem; }
.partner-checks { grid-template-columns:1fr; margin:12px 0 0; }
.partner-contact { max-width:820px; margin:18px auto 0; text-align:center; }
.partner-contact .partner-card { align-items:center; gap:6px; }
.partner-contact .partner-card p { margin:0; }
.partner-for { color:var(--muted); font-size:.82rem; letter-spacing:.04em; text-transform:uppercase; }
.partner-phone { font-size:1.25rem; font-weight:700; }
.partner-phone a { text-decoration:none; }
.partner-contact .pub-btn { margin:8px 0 0; }
.pub-two { display:grid; grid-template-columns:1fr 1fr; gap:24px 40px; text-align:left; }
.pub-two h2 { margin:0 0 10px; font-size:1.3rem; }
.pub-two p { color:#c9d1d9; line-height:1.65; margin:0; }
.pub-two .pub-checks { grid-template-columns:1fr; margin:0; }
.pub-faq { max-width:760px; margin:0 auto; text-align:left; display:grid; gap:10px; }
.pub-faq details { border:1px solid #2e2c24; border-radius:12px; background:var(--card); padding:0 18px; }
.pub-faq summary { cursor:pointer; padding:14px 0; font-weight:600; color:#e6edf3; }
.pub-faq details p { margin:0 0 16px; color:#c9d1d9; line-height:1.6; }
.pub-link-card { display:block; text-decoration:none; color:inherit; transition:border-color .15s, transform .15s; }
.pub-link-card:hover, .pub-link-card:focus-visible { border-color:#c9a227; transform:translateY(-2px); }
.pub-go { display:inline-block; margin-top:10px; color:#ebddb0; font-size:.9rem; font-weight:600; }
.pub-type h3 a { color:inherit; text-decoration:none; } .pub-type h3 a:hover { color:#f4eedc; text-decoration:underline; }
.pub-steps { list-style:none; counter-reset:step; margin:0 auto; padding:0; max-width:820px; text-align:left; display:grid; gap:14px; }
.pub-steps > li { counter-increment:step; position:relative; padding:18px 20px 18px 72px; border:1px solid #2e2c24; border-radius:14px; background:var(--card); }
.pub-steps > li::before { content:counter(step); position:absolute; left:18px; top:18px; width:38px; height:38px; border-radius:50%; background:linear-gradient(135deg,#2f7a52,#1f5c3d); color:#fff; font-weight:800; display:flex; align-items:center; justify-content:center; }
.pub-steps h2, .pub-steps h3 { margin:0 0 6px; font-size:1.1rem; color:#ebddb0; }
.pub-steps p { margin:0; color:#c9d1d9; line-height:1.6; }
.pub-steps a, .pub-two a, .pub-faq a, .pub-card p a { color:#ebddb0; }
.pub-cta { text-align:center; }
.pub-card-h { margin:0 0 8px; font-size:1.1rem; color:#ebddb0; }
.pub-footnav { max-width:1040px; margin:10px auto 0; padding:26px 18px 6px; border-top:1px solid var(--line); display:grid; grid-template-columns:2fr 1fr; gap:20px 40px; text-align:left; }
.pub-footnav h2 { font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin:0 0 10px; }
.pub-footnav ul { list-style:none; margin:0; padding:0; columns:2; column-gap:24px; }
.pub-footnav div:last-child ul { columns:1; }
.pub-footnav li { margin:0 0 7px; break-inside:avoid; }
.pub-footnav a { color:#c9d1d9; text-decoration:none; font-size:.92rem; } .pub-footnav a:hover { color:#fff; text-decoration:underline; }
@media (max-width:720px) {
  .pub-checks, .pub-two { grid-template-columns:1fr; }
  .pub-footnav { grid-template-columns:1fr; }
  .pub-steps > li { padding-left:64px; }
}

/* pill-style primary button (gradient, centred, soft glow) */
.btn-pill { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:48px; margin-top:30px; padding:0 28px; border:0; border-radius:999px;
  background:linear-gradient(90deg,#2f7a52,#1f5c3d); color:#fff; font-weight:700; font-size:1rem; letter-spacing:.01em; box-shadow:0 8px 22px rgba(31,92,61,.38), 0 0 0 1px rgba(255,255,255,.08) inset;
  transition:transform .15s, box-shadow .15s, filter .15s; }
.btn-pill:hover:not(:disabled) { filter:brightness(1.12); transform:translateY(-1px); box-shadow:0 12px 26px rgba(31,92,61,.48), 0 0 0 1px rgba(255,255,255,.12) inset; }
.btn-pill:active:not(:disabled) { transform:none; }
.btn-pill:focus-visible { outline:2px solid #e3c24f; outline-offset:3px; }

.flash { transition:opacity .4s ease, transform .4s ease; } .flash.out { opacity:0; transform:translateY(-6px); }
.stat-up { display:flex; flex-direction:column; gap:1px; padding-left:17px; font-size:.76rem; color:var(--muted); } .stat-up:empty { display:none; }
.stat-up-pct { color:#e6edf3; font-weight:700; } .stat-up-ok { color:#86efac; } .stat-up-bad { color:#fca5a5; font-weight:700; }

/* ===== public home: "Start your project" form (one card, step by step) ===== */
.pub-start { text-align:left; } .pub-start h2, .pub-start > .pub-lead { text-align:center; }
.inq-form { max-width:860px; margin:26px auto 0; }
.inq-card { position:relative; border-radius:22px; padding:26px 28px 28px; background:linear-gradient(180deg, #23221b 0%, #191712 55%);
  border:1px solid #4d493a; box-shadow:0 26px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03) inset, 0 0 80px rgba(31,92,61,.10); }
.inq-card::before { content:''; position:absolute; inset:0 0 auto 0; height:4px; border-radius:22px 22px 0 0; background:linear-gradient(90deg,#2f7a52,#1f5c3d,#c9a227); }

/* progress */
.inq-progress { margin:0 0 22px; }
.inq-ptext { display:flex; flex-wrap:wrap; gap:8px; align-items:baseline; margin-bottom:10px; font-size:.95rem; } .inq-ptext strong { color:#fff; } .inq-ptext span { color:#e3c24f; font-weight:600; }
.inq-bar { height:6px; border-radius:99px; background:#24231d; overflow:hidden; } .inq-bar span { display:block; height:100%; width:16%; border-radius:99px; background:linear-gradient(90deg,#2f7a52,#1f5c3d,#c9a227); transition:width .4s ease; }
.inq-dots { list-style:none; display:flex; justify-content:space-between; gap:4px; margin:12px 0 0; padding:0; font-size:.72rem; color:#7c819e; counter-reset:dot; }
.inq-dots li { flex:1; text-align:center; counter-increment:dot; line-height:1.25; } .inq-dots li::before { content:counter(dot); display:flex; width:26px; height:26px; margin:0 auto 5px; border-radius:50%; align-items:center; justify-content:center; font-weight:700; font-size:.78rem; border:1px solid #403d30; background:#13120f; color:#8b8fa8; transition:all .25s; }
.inq-dots li.on { color:#fff; } .inq-dots li.on::before { background:linear-gradient(135deg,#2f7a52,#1f5c3d); border-color:transparent; color:#fff; box-shadow:0 0 0 4px rgba(201,162,39,.22); }
.inq-dots li.done::before { content:'✓'; background:#14532d; border-color:#22c55e; color:#86efac; }

/* a step */
.inq-sec { margin:0; padding:0; border:0; min-width:0; } .inq-sec + .inq-sec { margin-top:26px; padding-top:26px; border-top:1px solid #2e2c24; }
.is-wizard .inq-sec + .inq-sec { margin-top:0; padding-top:0; border-top:0; }
.inq-head { display:flex; gap:14px; align-items:center; margin:0 0 20px; }
.inq-ic { flex:none; width:48px; height:48px; border-radius:14px; display:inline-flex; align-items:center; justify-content:center; font-size:1.5rem; background:linear-gradient(135deg, rgba(47,122,82,.30), rgba(201,162,39,.30)); border:1px solid #4a4126; }
.inq-head h3 { margin:0; font-size:1.25rem; color:#fff; line-height:1.25; } .inq-of { font-size:.8rem; font-weight:500; color:#8b8fa8; white-space:nowrap; }
.inq-head p { margin:3px 0 0; color:#a8aec7; font-size:.92rem; }

/* fields */
.inq-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:18px 20px; }
.inq-field { margin:0; padding:0; border:0; min-width:0; } .inq-wide { grid-column:1 / -1; }
.inq-field > label, .inq-checks > legend { display:block; margin:0 0 7px; padding:0; font-weight:600; font-size:.9rem; color:#efe9d8; }
.inq-field input:not([type=checkbox]):not([type=radio]), .inq-field select, .inq-field textarea { width:100%; margin:0; padding:12px 14px; min-height:46px; font:inherit; font-size:.98rem; color:#f1f3fb; background:#11100d; border:1px solid #403d30; border-radius:12px; box-sizing:border-box; transition:border-color .15s, box-shadow .15s, background .15s; }
.inq-field input::placeholder, .inq-field textarea::placeholder { color:#5f6483; }
.inq-field input:hover, .inq-field select:hover, .inq-field textarea:hover { border-color:#4b5080; }
.inq-field input:focus, .inq-field select:focus, .inq-field textarea:focus { outline:none; border-color:#d9b64a; background:#0d0d0a; box-shadow:0 0 0 4px rgba(201,162,39,.22); }
.inq-field select { appearance:none; -webkit-appearance:none; padding-right:40px; cursor:pointer;
  background-image:linear-gradient(45deg, transparent 50%, #e3c24f 50%), linear-gradient(135deg, #e3c24f 50%, transparent 50%); background-position:calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size:6px 6px, 6px 6px; background-repeat:no-repeat; }
.inq-field textarea { resize:vertical; min-height:96px; line-height:1.5; }
.inq-hint { display:block; margin-top:6px; font-size:.8rem; color:#8b8fa8; }
.inq-star { color:#fb7185; font-weight:700; }

/* choose-many chips */
.inq-chips { display:flex; flex-wrap:wrap; gap:9px; }
.inq-chip { position:relative; margin:0; } .inq-chip input { position:absolute; opacity:0; inset:0; width:100%; height:100%; margin:0; cursor:pointer; }
.inq-chip span { display:inline-flex; align-items:center; gap:7px; padding:9px 15px; border:1px solid #403d30; border-radius:99px; font-size:.9rem; background:#11100d; color:#d6dbf0; transition:background .15s, border-color .15s, transform .15s; }
.inq-chip:hover span { border-color:#d9b64a; transform:translateY(-1px); }
.inq-chip input:checked + span { background:linear-gradient(90deg, rgba(47,122,82,.45), rgba(31,92,61,.45)); border-color:#d9b64a; color:#fff; font-weight:600; }
.inq-chip input:checked + span::before { content:'✓'; font-weight:800; color:#a7f3d0; }
.inq-chip input:focus-visible + span { outline:2px solid #e3c24f; outline-offset:2px; }

/* consent */
.inq-consent { display:flex; align-items:flex-start; gap:12px; padding:14px 16px; border:1px solid #403d30; border-radius:12px; background:#11100d; font-weight:500; color:#efe9d8; cursor:pointer; }
.inq-consent input { flex:none; width:20px; height:20px; margin:1px 0 0; accent-color:#c9a227; }
.inq-consent.has-err { border-color:#ef4444; }

/* errors */
.inq-err { display:block; margin-top:6px; font-style:normal; font-size:.84rem; color:#fda4af; }
.has-err > input:not([type=checkbox]), .has-err > select, .has-err > textarea { border-color:#ef4444; }
.inq-errors { max-width:860px; margin:18px auto 0; padding:14px 18px; border:1px solid rgba(248,113,113,.6); border-radius:14px; background:linear-gradient(90deg, rgba(153,27,27,.5), rgba(24,10,10,.9)); color:#fee2e2; }
.inq-errors ul { margin:6px 0 0; padding-left:20px; }

/* navigation */
.inq-nav { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:26px; padding-top:20px; border-top:1px solid #2e2c24; }
.inq-nav[hidden], .inq-progress[hidden], .inq-sec[hidden], .inq-final[hidden] { display:none !important; }
.inq-nav .inq-next { width:auto; min-height:48px; margin-top:0; padding:0 28px; }
.inq-back { padding:11px 22px; border-radius:999px; background:transparent; color:#efe9d8; border:1px solid #403d30; font-weight:600; cursor:pointer; transition:border-color .15s, background .15s; } .inq-back:hover { border-color:#d9b64a; background:rgba(201,162,39,.16); }

/* last step: the picture check and send button */
.inq-final { margin-top:26px; padding-top:24px; border-top:1px solid #2e2c24; }
.is-wizard .inq-final { margin-top:22px; }
.inq-form .pick-box { margin:0 0 8px; padding:0; border:0; background:none; }
.inq-form .pick-box legend { padding:0; font-weight:700; font-size:.95rem; color:#efe9d8; }
.inq-form .pick-q { margin:6px 0 12px; font-size:1rem; color:#f1f3fb; }
.inq-form .pick-box.has-err .pick { border-color:#ef4444; }
.inq-form .btn-pill { margin-top:22px; }
.inq-priv { text-align:center; margin:14px 0 0; }

/* thank-you panel */
.inq-done { max-width:640px; margin:22px auto 0; text-align:center; padding:32px 24px; border:1px solid rgba(74,222,128,.5); border-radius:20px; background:linear-gradient(180deg, rgba(22,101,52,.4), rgba(10,20,15,.95)); box-shadow:0 20px 50px rgba(0,0,0,.45); }
.inq-done-ic { display:inline-flex; width:56px; height:56px; border-radius:50%; align-items:center; justify-content:center; background:#22c55e; color:#052e16; font-size:1.7rem; font-weight:800; }
.inq-done h3 { margin:14px 0 8px; font-size:1.3rem; color:#d1fae5; } .inq-done p { margin:0; color:#c9d1d9; }

.is-wizard .inq-sec:not([hidden]), .is-wizard .inq-final:not([hidden]) { animation:inq-in .3s ease; } @keyframes inq-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { .is-wizard .inq-sec, .is-wizard .inq-final, .inq-bar span { animation:none; transition:none; } }
@media (max-width:680px) {
  .inq-card { padding:20px 16px 22px; border-radius:18px; }
  .inq-grid { grid-template-columns:1fr; gap:16px; }
  .inq-dots li { font-size:0; } .inq-dots li::before { font-size:.78rem; margin-bottom:0; }
  .inq-head { gap:12px; } .inq-ic { width:42px; height:42px; font-size:1.3rem; } .inq-head h3 { font-size:1.1rem; } .inq-of { display:block; margin-top:2px; }
  .inq-nav .inq-next { padding:0 18px; font-size:.92rem; } .inq-back { padding:10px 16px; }
}
.wm-auto { display:flex; align-items:center; gap:7px; margin:4px 0 0; font-size:.8rem; color:var(--muted); }
.wm-auto-dot { width:8px; height:8px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,.22); animation:wm-pulse 2.4s ease-in-out infinite; }
@keyframes wm-pulse { 50% { box-shadow:0 0 0 6px rgba(34,197,94,0); } } @media (prefers-reduced-motion: reduce) { .wm-auto-dot { animation:none; } }

/* compose: Send / Discard as matching pills with proper icons */
.wm-body .wm-sendbar button.wm-btn.wm-pill, .wm-body .wm-sendbar a.wm-btn.wm-pill { height:48px; min-height:48px; min-width:150px; padding:0 28px; gap:9px; border-radius:999px; font-size:1rem; font-weight:700; letter-spacing:.01em; border:1px solid transparent; line-height:1; text-decoration:none; transition:transform .15s, box-shadow .15s, filter .15s, background .15s, border-color .15s; }
.wm-body .wm-sendbar .wm-pill .wm-bi { flex:none; display:block; }
.wm-body .wm-sendbar button.wm-btn-send.wm-pill { background:linear-gradient(90deg,#2f7a52,#1f5c3d) border-box; background-origin:border-box; border-color:transparent; color:#fff; box-shadow:0 8px 20px rgba(31,92,61,.35), 0 0 0 1px rgba(255,255,255,.08) inset; }
.wm-body .wm-sendbar button.wm-btn-send.wm-pill:hover:not(:disabled) { filter:brightness(1.12); transform:translateY(-1px); box-shadow:0 12px 26px rgba(31,92,61,.48), 0 0 0 1px rgba(255,255,255,.12) inset; }
.wm-body .wm-sendbar button.wm-btn-send.wm-pill:disabled { opacity:.65; cursor:progress; transform:none; }
.wm-body .wm-sendbar a.wm-btn-discard.wm-pill { background:transparent; color:#efe9d8; border-color:#403d30; box-shadow:none; }
.wm-body .wm-sendbar a.wm-btn-discard.wm-pill:hover { background:rgba(185,28,28,.16); border-color:#ef4444; color:#fecaca; transform:translateY(-1px); }
.wm-body .wm-sendbar .wm-pill:focus-visible { outline:2px solid #e3c24f; outline-offset:3px; }
@media (max-width:560px) { .wm-body .wm-sendbar .wm-pill { min-width:0; padding:0 18px; } }

/* DMARC settings */
.dm-settings h2 { margin-top:0; } .dm-form { margin:18px 0 0; padding:18px 18px 8px; border:1px solid #2e2c24; border-radius:16px; background:rgba(255,255,255,.02); }
.dm-dom { margin:0 0 12px; font-size:1.05rem; color:#ebddb0; }
.dm-fs { border:0; margin:0 0 14px; padding:0; } .dm-fs legend { padding:0; font-weight:700; margin-bottom:8px; }
.dm-opts { display:grid; grid-template-columns:repeat(auto-fit, minmax(210px, 1fr)); gap:12px; }
.dm-opt { position:relative; margin:0; cursor:pointer; } .dm-opt input { position:absolute; opacity:0; inset:0; width:100%; height:100%; margin:0; cursor:pointer; }
.dm-opt-box { display:flex; flex-direction:column; gap:5px; height:100%; box-sizing:border-box; padding:14px 14px 12px; border:2px solid #403d30; border-radius:14px; background:#11100d; transition:border-color .15s, box-shadow .15s, transform .15s; position:relative; }
.dm-opt:hover .dm-opt-box { border-color:#c9a227; transform:translateY(-1px); } .dm-opt input:checked + .dm-opt-box { border-color:#d9b64a; box-shadow:0 0 0 4px rgba(201,162,39,.22); background:linear-gradient(180deg, rgba(31,92,61,.18), #11100d); }
.dm-opt input:focus-visible + .dm-opt-box { outline:2px solid #e3c24f; outline-offset:2px; }
.dm-opt-ic { font-size:1.4rem; } .dm-opt-box code { align-self:flex-start; font-size:.78rem; color:#e3c24f; background:rgba(201,162,39,.14); padding:1px 8px; border-radius:99px; }
.dm-cur { position:absolute; top:10px; right:10px; font-style:normal; font-size:.7rem; font-weight:700; color:#86efac; border:1px solid #166534; border-radius:99px; padding:1px 8px; }
.dm-row { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:16px; margin:6px 0 12px; }
.dm-field { margin:0; font-weight:600; font-size:.9rem; } .dm-field select, .dm-field textarea { width:100%; margin-top:6px; padding:10px 12px; background:var(--bg); color:var(--fg); border:1px solid #403d30; border-radius:12px; font:inherit; box-sizing:border-box; } .dm-field span { display:block; font-weight:400; margin-top:5px; }
.dm-ready { margin:6px 0 12px; padding:10px 14px; border-radius:12px; border:1px solid; font-size:.9rem; } .dm-ready.is-ok { color:#d1fae5; border-color:rgba(74,222,128,.5); background:rgba(22,101,52,.3); } .dm-ready.is-warn { color:#fde68a; border-color:rgba(245,158,11,.5); background:rgba(120,53,15,.3); }
.dm-preview { display:flex; flex-direction:column; gap:4px; margin:6px 0 14px; } .dm-preview code { display:block; padding:10px 12px; border-radius:10px; background:#090806; border:1px solid #2e2c24; word-break:break-all; font-size:.82rem; color:#e2e8f0; }
.dm-actions { display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding-bottom:12px; } .dm-form .dm-save { width:auto; margin:0; min-width:200px; }
.dm-hist { margin-top:16px; } .dm-hist summary { cursor:pointer; font-weight:600; } .dm-hist ul { list-style:none; margin:10px 0 0; padding:0; display:flex; flex-direction:column; gap:12px; } .dm-hist li code { word-break:break-all; }

/* styled "are you sure?" dialog (confirm.js) */
.lec-confirm { text-align:center; } .lec-confirm h2 { color:#fff; }
.lec-confirm.is-info { border-color:#14402a; box-shadow:0 20px 60px rgba(0,0,0,.6), 0 0 60px rgba(31,92,61,.18); } .lec-confirm.is-info .modal2fa-ic { color:#e3c24f; background:rgba(201,162,39,.16); }
.lec-confirm.is-danger { box-shadow:0 20px 60px rgba(0,0,0,.6), 0 0 60px rgba(239,68,68,.15); }
.lec-confirm .modal2fa-ic { font-size:1.9rem; font-weight:700; }
.lec-confirm .lec-detail { display:block; margin:-6px 0 18px; padding:10px 12px; text-align:left; border-radius:10px; background:#090806; border:1px solid #2e2c24; color:#e2e8f0; font-size:.8rem; word-break:break-all; line-height:1.45; }
.lec-confirm .lec-detail[hidden] { display:none; }
.lec-confirm .modal2fa-btns button { min-width:120px; min-height:42px; }
.lec-confirm .lec-yes { background:linear-gradient(90deg,#2f7a52,#1f5c3d); color:#fff; border:0; font-weight:700; padding:0 22px; }
.lec-confirm .lec-yes.srv-confirm { background:#b91c1c; border:1px solid #ef4444; } .lec-confirm .lec-yes.srv-confirm:hover { background:#dc2626; }
.lec-confirm .modal2fa-btns .ghost { background:transparent; color:#efe9d8; border:1px solid #403d30; font-weight:600; } .lec-confirm .modal2fa-btns .ghost:hover { border-color:#d9b64a; background:rgba(201,162,39,.16); filter:none; }

/* ===== one look for EVERY pop-up on the site (confirm.js, sign-out warning, password boxes, reboot, 2FA notice, log clearing, …) ===== */
.modal2fa { border:1px solid #14402a; border-radius:20px; background:linear-gradient(180deg,#27251e 0%,#1b1914 62%); box-shadow:0 22px 64px rgba(0,0,0,.65), 0 0 60px rgba(31,92,61,.18); animation:modal-in .22s ease; }
.modal2fa::backdrop { background:rgba(3,3,10,.72); backdrop-filter:blur(3px); }
.modal2fa.is-danger { border-color:#7f1d1d; background:linear-gradient(180deg,#221018 0%,#181712 62%); box-shadow:0 22px 64px rgba(0,0,0,.65), 0 0 60px rgba(239,68,68,.15); }
.modal2fa .modal2fa-ic { width:60px; height:60px; margin-bottom:12px; color:#e3c24f; background:rgba(201,162,39,.16); font-size:1.7rem; font-weight:700; }
.modal2fa.is-danger .modal2fa-ic { color:#fca5a5; background:rgba(239,68,68,.16); }
.modal2fa h2 { color:#fff; margin:0 0 10px; font-size:1.25rem; line-height:1.3; }
.modal2fa p { color:#c9d0e6; }
.modal2fa .modal2fa-btns { gap:12px; }
.modal2fa .modal2fa-btns button, .modal2fa .modal2fa-btns a.button { min-width:120px; min-height:42px; padding:0 22px; font-weight:700; border-radius:999px; line-height:1; text-decoration:none; }
.modal2fa .modal2fa-btns button:not(.ghost):not(.srv-confirm):not(.srv-reboot), .modal2fa .lec-yes:not(.srv-confirm) { background:linear-gradient(90deg,#2f7a52,#1f5c3d); color:#fff; border:0; }
.modal2fa .modal2fa-btns .ghost, .modal2fa button.ghost { background:transparent; color:#efe9d8; border:1px solid #403d30; font-weight:600; }
.modal2fa .modal2fa-btns .ghost:hover, .modal2fa button.ghost:hover { border-color:#d9b64a; background:rgba(201,162,39,.16); filter:none; }
.modal2fa .srv-confirm, .modal2fa .lec-yes.srv-confirm { background:#b91c1c; border:1px solid #ef4444; color:#fff; } .modal2fa .srv-confirm:hover { background:#dc2626; }
.modal2fa input:not([type=checkbox]):not([type=radio]) { background:#11100d; border:1px solid #403d30; border-radius:12px; color:#f1f3fb; min-height:44px; padding:0 14px; box-sizing:border-box; width:100%; }
.modal2fa input:focus { outline:none; border-color:#d9b64a; box-shadow:0 0 0 4px rgba(201,162,39,.22); }
.lec-confirm .lec-input { display:block; margin:-4px 0 18px; text-align:left; } .lec-confirm .lec-input[hidden] { display:none; }
.modal2fa .modal2fa-btns button[hidden] { display:none; }
@keyframes modal-in { from { opacity:0; transform:translateY(10px) scale(.97); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { .modal2fa { animation:none; } }

/* footer version button + version history pop-up */
button.sf-ver-btn { cursor:pointer; background:transparent; font:inherit; font-size:.72rem; color:var(--muted); min-height:0; padding:1px 9px; } button.sf-ver-btn:hover { color:#fff; border-color:#d9b64a; background:rgba(201,162,39,.16); filter:none; }
.ver-dlg { width:min(560px, calc(100vw - 32px)); text-align:left; max-height:calc(100vh - 48px); overflow:auto; } .ver-dlg .modal2fa-ic { margin-left:0; } .ver-dlg h2 { margin-bottom:4px; }
.ver-sub { margin:0 0 12px; font-size:.9rem; }
.ver-list { list-style:none; margin:0 0 16px; padding:0; max-height:46vh; overflow:auto; border:1px solid #2e2c24; border-radius:14px; background:#11100d; }
.ver-item { display:grid; grid-template-columns:auto 1fr auto; gap:4px 12px; align-items:baseline; padding:10px 14px; border-bottom:1px solid #24231d; } .ver-item:last-child { border-bottom:0; } .ver-item[hidden] { display:none; }
.ver-v { font:700 .82rem/1.4 ui-monospace,SFMono-Regular,Menlo,monospace; padding:1px 9px; border-radius:99px; background:rgba(201,162,39,.18); color:#ebddb0; border:1px solid #4a4126; }
.ver-item.is-major .ver-v { background:linear-gradient(90deg,#2f7a52,#1f5c3d); color:#fff; border-color:transparent; } .ver-item.is-major .ver-t { font-weight:700; color:#fff; }
.ver-t { font-size:.9rem; color:#efe9d8; } .ver-d { font-size:.74rem; color:var(--muted); white-space:nowrap; }
.ver-now { font-style:normal; font-size:.68rem; font-weight:700; color:#86efac; border:1px solid #166534; border-radius:99px; padding:0 7px; margin-left:6px; }
@media (max-width:520px) { .ver-item { grid-template-columns:auto 1fr; } .ver-d { grid-column:2; } }
.mail-pwdlg { max-height:calc(100vh - 32px); overflow:auto; }
.mail-pwdlg label.pw-welcome, .mail-page .mail-pwdlg label.pw-welcome { display:flex; flex-direction:row; align-items:flex-start; gap:12px; padding:12px 14px; border:1px solid #403d30; border-radius:12px; background:#11100d; font-weight:500; color:#efe9d8; line-height:1.45; cursor:pointer; }
.mail-pwdlg label.pw-welcome input[type=checkbox] { flex:none; width:20px; height:20px; margin:2px 0 0; accent-color:#c9a227; }
.modal2fa .srv-confirm.mail-pwgo, .mail-page .modal2fa button.srv-confirm.mail-pwgo { background:linear-gradient(90deg,#2f7a52,#1f5c3d); border:0; color:#fff; }
.ver-item { cursor:default; } .ver-item:hover, .ver-item:focus-visible { background:rgba(201,162,39,.12); outline:none; }
.ver-d { text-align:right; line-height:1.35; } .ver-tm { color:#a8aec7; font-weight:600; }
.ver-tip { position:fixed; z-index:20; width:min(340px, calc(100vw - 32px)); padding:12px 14px; border-radius:14px; background:#14130f; border:1px solid #1f5c3d; box-shadow:0 14px 38px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.04) inset; text-align:left; pointer-events:none; }
.ver-tip[hidden] { display:none; } .ver-tip strong { display:block; color:#fff; font-size:.95rem; } .ver-tip .ver-tip-when { display:block; margin:2px 0 8px; font-size:.76rem; color:#e3c24f; }
.ver-tip p { margin:0; font-size:.86rem; line-height:1.5; color:#efe9d8; } .ver-tip small { display:block; margin-top:8px; font-size:.72rem; color:#8b8fa8; }
.cu-tips li { padding:8px 12px; margin:0 -12px; border-radius:12px; cursor:default; transition:background .15s; } .cu-tips li:hover, .cu-tips li:focus-visible { background:rgba(201,162,39,.12); outline:none; }
.ver-tip p + p { margin-top:6px; }
.cl-item[data-detail]:hover, .cl-item[data-detail]:focus-visible { background:rgba(201,162,39,.08); outline:none; border-radius:0 10px 10px 0; }

/* ===== hover cards (tips.js): data-tip="…" and upgraded title="…" ===== */
.lec-tip { position:fixed; inset:auto; margin:0; z-index:2147483000; width:max-content; max-width:min(340px, calc(100vw - 16px)); padding:10px 13px; border:1px solid #1f5c3d; border-radius:14px; background:#14130f; color:#efe9d8; box-shadow:0 14px 38px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.04) inset; text-align:left; font:400 .84rem/1.5 system-ui,-apple-system,"Segoe UI",sans-serif; pointer-events:none; overflow:visible; display:none; }
.lec-tip:popover-open, .lec-tip.is-open { display:block; animation:tip-in .14s ease; }
.lec-tip strong { display:block; margin-bottom:3px; color:#fff; font-size:.9rem; } .lec-tip p { margin:0; } .lec-tip p + p { margin-top:5px; }
@keyframes tip-in { from { opacity:0; transform:translateY(3px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { .lec-tip:popover-open, .lec-tip.is-open { animation:none; } }
[data-tip]:not(button):not(a):not(input):not(select):not(textarea):not(summary):not([tabindex]) { cursor:help; }

/* webmail: re-ordering folders */
.wm-grip { display:inline-grid; place-items:center; width:30px; height:36px; cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none; color:var(--muted); font-size:1.25rem; line-height:1; border-radius:10px; }
.wm-grip:hover { color:#fff; background:rgba(201,162,39,.2); }
.wm-folder-list li.wm-dragging { background:rgba(201,162,39,.2); border-color:#c9a227; box-shadow:0 8px 22px rgba(0,0,0,.45); }
.wm-folder-list li.wm-dragging .wm-grip { cursor:grabbing; }
.wm-folder-form.wm-move { gap:6px; flex-wrap:nowrap; }
.wm-folder-form.wm-move button { width:36px; min-width:36px; height:36px; min-height:0; padding:0; display:inline-grid; place-items:center; font-size:.8rem; }
.wm-folder-form.wm-move button:disabled { opacity:.3; cursor:default; }
.wm-folder-form.wm-reset { margin-top:14px; }
@media (max-width:520px) { .wm-folder-list li { padding:10px 8px; gap:8px; grid-template-columns:auto minmax(0,1fr) auto; } .wm-setcard { padding:14px 12px !important; } .wm-folder-list .wm-fedit { grid-column:1 / -1; } .wm-folder-list .wm-fedit .sm { flex:1 1 auto; } }

/* DMARC dashboard on phones: tables become cards (.rtable), nothing wider than the screen */
.table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.dm-opts { grid-template-columns:repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.dm-row { grid-template-columns:repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
@media (max-width:720px) {
  .dm-page .mp-quick { align-items:stretch; }
  .dm-page .mp-quick > .muted { flex:1 1 100%; }
  .dm-range { margin-left:0; flex:1 1 100%; }
  .dm-range .btn-sm { flex:1; text-align:center; margin:0; }
  .dm-page .mp-facts { grid-template-columns:1fr 1fr; }
  .dm-page .mp-facts .uf-email { grid-column:1 / -1; }
  .dm-page .mp-facts .uf-email dd { white-space:normal; overflow-wrap:anywhere; word-break:break-all; overflow:visible; text-overflow:clip; }
  .dm-page .table-wrap { overflow:visible; }
  .dm-page table.rtable td.mono { font-size:.78rem; }
  .dm-page table.rtable tr.dm-sub { background:transparent; border:0; padding:0 12px; margin:-6px 0 10px; }
  .dm-page table.rtable tr.dm-sub td { padding:0; }
  .dm-chart { max-width:100%; }
  .dm-notes { padding-left:16px; }
  .dm-form { padding:14px 12px 4px; border-radius:14px; }
  .dm-opts { gap:10px; }
  .dm-form .dm-save { width:100%; min-width:0; }
  .dm-actions { gap:10px; }
  .dm-hist li { overflow-wrap:anywhere; }
}

/* backups: clean-up card */
.bk-clean-form { display:flex; gap:10px; align-items:end; flex-wrap:wrap; margin-top:8px; }
.bk-clean-form label { margin:0; font-weight:600; font-size:.9rem; flex:1 1 280px; } .bk-clean-form select { width:100%; margin-top:6px; }
@media (max-width:720px) { .bk-clean-form button { width:100%; } }

/* jump-to-section bar on the manage-project page */
html { scroll-behavior:smooth; }
.mp-section, .mp-danger { scroll-margin-top:72px; }
.mp-jump { position:sticky; top:0; z-index:20; display:flex; gap:6px; flex-wrap:wrap; align-items:center; padding:8px 10px; margin:0 0 12px; background:var(--card); border:1px solid var(--line); border-radius:10px; }
.mp-jump a { padding:3px 10px; border-radius:999px; border:1px solid var(--line); text-decoration:none; font-size:.85rem; }
.mp-jump a:hover { background:#8882; }
@media (max-width:700px) { .mp-jump { flex-wrap:nowrap; overflow-x:auto; } .mp-jump a { white-space:nowrap; } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
.jump-target { scroll-margin-top:72px; }
.mp-jump a:focus-visible { outline:2px solid var(--accent); }
.mp-jump .mp-jump-top { margin-left:auto; font-weight:600; }
.rt-acts { white-space:nowrap; } .rt-acts .dd-inline { display:inline-block; margin-right:6px; }
.gh-out { white-space:pre-wrap; overflow:auto; max-height:22rem; }

/* ===== sticky site menus: the signed-in header (.bar) and the public home header (.pub-top) stay at the top while scrolling ===== */
:root { --bar-h:56px; }
html { scroll-padding-top:calc(var(--bar-h) + 12px); }
.bar { position:sticky; top:0; z-index:70; }
.pub-top { position:sticky; top:0; z-index:70; }
.pub-top::before { content:''; position:absolute; z-index:-1; top:0; bottom:0; left:50%; width:100vw; transform:translateX(-50%); background:var(--bg); border-bottom:1px solid var(--line); }   /* full-width bar drawn behind, so the status popup is no longer clipped by the header */
.pub-body { overflow-x:clip; }
.viewas-banner { top:var(--bar-h); }
.mp-jump, .net-toolbar { top:var(--bar-h); }
@media (max-width: 640px) { :root { --bar-h:96px; } }
@media print { .bar, .pub-top { position:static; } }

/* ===== cloud destinations on /admin/backups ===== */
.cl-dest { border:1px solid var(--line); border-radius:12px; padding:12px 14px; margin:12px 0; display:flex; flex-direction:column; gap:6px; }
.cl-head { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.cl-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
.cl-form { display:flex; flex-direction:column; gap:10px; margin-top:10px; max-width:560px; }
.cl-form label { display:flex; flex-direction:column; gap:4px; }
.cl-chk { display:flex; flex-direction:row !important; align-items:center; gap:8px; }
.cl-dbs { border:1px solid var(--line); border-radius:10px; padding:8px 12px; margin:10px 0; display:flex; flex-wrap:wrap; gap:6px 16px; }
.cl-add, .cl-recover { margin-top:14px; }
.cl-add > summary, .cl-recover > summary { cursor:pointer; }
.cl-pre { white-space:pre-wrap; word-break:break-all; background:rgba(255,255,255,.04); border:1px solid var(--line); border-radius:8px; padding:10px 12px; margin:8px 0; user-select:all; }
.cl-recover-body { max-width:760px; line-height:1.55; }
.cl-recover-body .h3 { margin:16px 0 4px; font-size:1rem; }
.cl-mailform { max-width:560px; }

/* the "add a destination" wizard */
.cl-wiz { margin-top:14px; display:flex; flex-direction:column; gap:0; max-width:760px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.02); }
.cl-step { padding:18px 20px; border-bottom:1px solid var(--line); }
.cl-step[hidden], .cl-foot[hidden] { display:none; }
.cl-h { margin:0 0 12px; font-size:1.02rem; display:flex; align-items:center; gap:10px; }
.cl-n { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; background:#1f5c3d; color:#fff; font-size:.8rem; font-weight:700; flex:none; }
.cl-pick { color:var(--muted); font-weight:500; font-size:.9rem; }
.cl-grp { margin:12px 0 6px; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); font-weight:600; }
.cl-grp:first-of-type { margin-top:0; }
.cl-tiles { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:8px; }
.cl-tile { position:relative; display:flex !important; flex-direction:row !important; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; cursor:pointer; background:rgba(255,255,255,.03); transition:border-color .15s, background .15s, transform .15s; }
.cl-tile:hover { border-color:#c9a227; background:rgba(201,162,39,.08); }
.cl-tile input { position:absolute; opacity:0; inset:0; margin:0; cursor:pointer; }
.cl-tile:has(input:checked) { border-color:#d9b64a; background:rgba(201,162,39,.18); box-shadow:0 0 0 1px #d9b64a inset; }
.cl-tile:has(input:focus-visible) { outline:2px solid #d9b64a; outline-offset:2px; }
.cl-badge { flex:none; width:34px; height:34px; border-radius:9px; background:var(--c, #c9a227); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:.82rem; letter-spacing:-.02em; }
.cl-tt { display:flex; flex-direction:column; min-width:0; line-height:1.25; }
.cl-tt strong { font-size:.88rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cl-tt small { color:var(--muted); font-size:.74rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cl-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px 14px; }
.cl-grid [hidden] { display:none !important; }
.cl-wide { grid-column:1 / -1; }
.cl-f { display:flex !important; flex-direction:column; gap:5px; font-size:.84rem; color:var(--muted); font-weight:600; min-width:0; }
.cl-f small { font-weight:400; color:var(--muted); }
.cl-f input[type=text], .cl-f input[type=email], .cl-f input[type=password], .cl-f select, .cl-f textarea { width:100%; box-sizing:border-box; font-weight:400; }
.cl-help { margin-top:8px; padding:10px 14px; border-left:3px solid #c9a227; background:rgba(201,162,39,.08); border-radius:0 8px 8px 0; font-size:.84rem; line-height:1.55; }
.cl-help ol { margin:6px 0 0; padding-left:20px; }
.cl-tip { margin:10px 0 0; }
.cl-sw { display:flex !important; flex-direction:row !important; align-items:flex-start; gap:12px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; cursor:pointer; }
.cl-sw:has(input:checked) { border-color:#1f5c3d; background:rgba(31,92,61,.1); }
.cl-sw input { margin-top:3px; flex:none; }
.cl-swt { display:flex; flex-direction:column; gap:2px; }
.cl-swt small { color:var(--muted); font-size:.8rem; }
.cl-step .cl-grid + .cl-grid, .cl-step .cl-sw + .cl-grid, .cl-step .cl-dbs + .cl-grid { margin-top:12px; }
.cl-foot { padding:16px 20px; display:flex; flex-wrap:wrap; align-items:center; gap:14px; border-bottom:0; }
.cl-go { padding:10px 22px; font-size:.95rem; }
@media (max-width:620px) { .cl-grid { grid-template-columns:1fr; } .cl-tiles { grid-template-columns:1fr 1fr; } .cl-step { padding:16px 14px; } }

/* ===== single-database backups, grouped by database ===== */
.sb-tools { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin:14px 0 8px; }
.sb-filter { min-width:200px; max-width:260px; }
.sb-toolbtns { margin-left:auto; display:flex; gap:6px; }
.sb-group { border:1px solid var(--line); border-radius:12px; margin:8px 0; background:rgba(255,255,255,.02); }
.sb-group[hidden] { display:none; }
.sb-group > summary { cursor:pointer; list-style:none; display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding:11px 14px; }
.sb-group > summary::-webkit-details-marker { display:none; }
.sb-group > summary::before { content:'▸'; color:var(--muted); transition:transform .15s; }
.sb-group[open] > summary::before { transform:rotate(90deg); }
.sb-group[open] > summary { border-bottom:1px solid var(--line); }
.sb-name { font-size:1rem; }
.sb-meta { margin-left:auto; }
.sb-table { margin:0; }
.sb-table td, .sb-table th { vertical-align:middle; }
.sb-file { word-break:break-all; color:var(--muted); }
.sb-acts { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.sb-acts .inline-form { margin:0; }
.sb-send { display:inline-flex; gap:4px; align-items:center; }
.sb-send select { max-width:150px; }
@media (max-width:640px) { .sb-meta { margin-left:0; width:100%; } .sb-toolbtns { margin-left:0; } }

/* ===== PIN chips for passphrase links ===== */
.cl-links { display:flex; flex-wrap:wrap; gap:8px; }
.cl-links:empty { display:none; }
.cl-chip { display:inline-flex; align-items:center; gap:8px; padding:5px 6px 5px 12px; border:1px solid #78350f; background:rgba(245,158,11,.12); color:#fcd34d; border-radius:999px; font-size:.84rem; }
.cl-chip-k { font-weight:600; }
.cl-pin { font-size:1.05rem; letter-spacing:.14em; color:#fff; background:rgba(0,0,0,.35); padding:2px 9px; border-radius:8px; user-select:all; }
.cl-chip-to { color:var(--muted); max-width:200px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cl-chip .inline-form { margin:0; }
.cl-chip-x { border:0; background:transparent; color:var(--muted); cursor:pointer; width:24px; height:24px; border-radius:50%; font-size:.8rem; line-height:1; }
.cl-chip-x:hover { background:rgba(239,68,68,.25); color:#fca5a5; }
.cl-busy { margin:10px 0; padding:10px 14px; border-left:3px solid #f59e0b; background:rgba(245,158,11,.1); border-radius:0 8px 8px 0; }

/* ===== search in the version history pop-up ===== */
.ver-searchbar { display:flex; align-items:center; gap:10px; margin:0 0 10px; }
.ver-search { flex:1; min-width:0; padding:9px 12px; border-radius:10px; border:1px solid #2e2c24; background:#11100d; color:var(--fg); font:inherit; font-size:.9rem; }
.ver-search:focus { outline:2px solid #c9a227; outline-offset:1px; border-color:#c9a227; }
.ver-count { color:var(--muted); white-space:nowrap; }
.ver-empty { padding:18px 14px; text-align:center; color:var(--muted); font-size:.9rem; }
.ver-empty[hidden], .ver-item[hidden] { display:none; }

/* ===== NEW FEATURES tutorial ===== */
.nf { max-width:760px; margin:0 auto; }
.nf-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; }
.nf-card { border:1px solid var(--line); border-radius:16px; padding:18px 20px; background:linear-gradient(180deg, rgba(201,162,39,.08), rgba(201,162,39,.02)); }
.nf-top { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.nf-title { margin:0; font-size:1.15rem; flex:1; min-width:0; }
.nf-new { font-size:.68rem; font-weight:800; letter-spacing:.1em; color:#052e16; background:#4ade80; padding:2px 9px; border-radius:99px; }
.nf-when { margin:4px 0 10px; }
.nf-text { margin:0 0 8px; line-height:1.6; }
.nf-foot { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:12px; }
.nf-soon { color:#fcd34d; }
.nf-empty { text-align:center; }
.nf-note { text-align:center; margin:18px 0 6px; }

/* ===== devices on each Wi-Fi network (router page) ===== */
.wf-toggle { background:rgba(201,162,39,.14); color:#ebddb0; border:1px solid #4a4126; border-radius:99px; padding:2px 12px; font:inherit; font-weight:700; cursor:pointer; }
.wf-toggle:hover, .wf-toggle:focus-visible { background:rgba(201,162,39,.3); outline:none; }
.wf-toggle.is-open span { display:inline-block; transform:rotate(180deg); }
.wf-devrow[hidden] { display:none; }
.wf-devrow > td { background:rgba(201,162,39,.05); padding:12px 16px; }
.wf-devhead { margin-bottom:8px; }
.wf-devtable { margin:0; }
.wf-sig { font-weight:700; padding:1px 8px; border-radius:99px; font-size:.8rem; }
.wf-ok { background:rgba(34,197,94,.14); color:#86efac; } .wf-warn { background:rgba(245,158,11,.14); color:#fcd34d; } .wf-bad { background:rgba(239,68,68,.14); color:#fca5a5; }

/* ===== "Download zip" on each daily backup ===== */
.bk-bz { margin:12px 0 4px; }
.bk-bz > summary { cursor:pointer; display:inline-block; }
.bk-bz-form { margin-top:10px; max-width:620px; display:flex; flex-direction:column; gap:10px; padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.02); }
.bk-bz-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px 14px; }
.bk-bz-grid label { display:flex; flex-direction:column; gap:4px; font-size:.84rem; color:var(--muted); font-weight:600; }
.bk-bz-grid input { width:100%; box-sizing:border-box; font-weight:400; }
.bk-bz-tools { display:flex; align-items:center; gap:14px; }
.bk-bz-show { display:inline-flex; align-items:center; gap:6px; font-size:.84rem; }
.bk-ready { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin:10px 0; padding:12px 16px; border:1px solid #166534; background:rgba(34,197,94,.1); border-radius:12px; }
@media (max-width:620px) { .bk-bz-grid { grid-template-columns:1fr; } }
.sb-ziprow[hidden] { display:none; } .sb-ziprow > td { background:rgba(201,162,39,.05); padding:12px 16px; }

/* ===== Database backups page: tidy collapsible sections ===== */
.bk-sec { padding:0; }
.bk-sec-sum { display:flex; align-items:center; flex-wrap:wrap; gap:6px 14px; padding:16px 20px; cursor:pointer; list-style:none; }
.bk-sec-sum::-webkit-details-marker { display:none; }
.bk-sec-sum::before { content:'▸'; color:var(--muted); font-size:1rem; transition:transform .15s; flex:none; }
.bk-sec[open] > .bk-sec-sum::before { transform:rotate(90deg); }
.bk-sec[open] > .bk-sec-sum { border-bottom:1px solid var(--line); }
.bk-sec-sum .h2 { margin:0; font-size:1.1rem; }
.bk-sec-meta { margin-left:auto; text-align:right; }
.bk-sec-body { padding:16px 20px 20px; }
.bk-sec-sum:hover .h2 { color:#ebddb0; }
@media (max-width:640px) { .bk-sec-meta { margin-left:0; width:100%; text-align:left; } .bk-sec-sum, .bk-sec-body { padding-left:14px; padding-right:14px; } }

/* the "Zip" form that unfolds under a saved single-database backup */
.sb-ziprow > td { white-space:normal; }
.sb-ziprow .bk-bz-form, .bk-bz .bk-bz-form { width:min(640px, 100%); box-sizing:border-box; }
.bk-bz-form p { max-width:100%; overflow-wrap:anywhere; margin:0; line-height:1.5; }
.bk-bz-grid { align-items:start; }
.bk-bz-grid label { white-space:normal; }
.bk-bz-tools { flex-wrap:wrap; }
.bk-bz-form .btn-sm[type=submit] { align-self:flex-start; padding:9px 22px; }
.cl-badge.cb-drive{--c:#1a73e8}
.cl-badge.cb-dropbox{--c:#0061ff}
.cl-badge.cb-box{--c:#0a6cff}
.cl-badge.cb-onedrive{--c:#0f78d4}
.cl-badge.cb-pcloud{--c:#17bed0}
.cl-badge.cb-mega{--c:#d9272e}
.cl-badge.cb-s3{--c:#e8912d}
.cl-badge.cb-wasabi{--c:#2f9e44}
.cl-badge.cb-r2{--c:#f6821f}
.cl-badge.cb-spaces{--c:#0080ff}
.cl-badge.cb-b2{--c:#e21e29}
.cl-badge.cb-azure{--c:#0078d4}
.cl-badge.cb-gcs{--c:#4285f4}
.cl-badge.cb-sftp{--c:#c9a227}
.cl-badge.cb-webdav{--c:#0082c9}
.cl-badge.cb-ftp{--c:#64748b}

.uf-welcome { border-color:#4a4126; background:linear-gradient(180deg, rgba(201,162,39,.10), rgba(201,162,39,0)); }
.uf-welcome-btn { align-self:flex-start; display:inline-flex; align-items:center; gap:8px; padding:9px 18px; min-height:0; border:0; border-radius:999px; cursor:pointer; font-weight:600; font-size:.9rem; color:#fff; background:linear-gradient(135deg,#1f5c3d,#9c7a1e); box-shadow:0 4px 14px rgba(201,162,39,.35); transition:transform .12s, box-shadow .12s, filter .12s; }
.uf-welcome-btn:hover { transform:translateY(-1px); box-shadow:0 6px 18px rgba(201,162,39,.5); filter:brightness(1.08); }
.uf-welcome-btn:active { transform:none; }
.dd-guide { margin-top:16px; border-top:1px solid var(--line); padding-top:12px; } .dd-guide > summary { cursor:pointer; }
.dd-guide-intro { margin:10px 0 4px; color:var(--muted); font-size:.9rem; }
.dd-stepcards { list-style:none; counter-reset:ddstep; margin:14px 0 0; padding:0; display:grid; gap:16px; }
.dd-step { counter-increment:ddstep; position:relative; padding:14px 16px 4px 58px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.02); }
.dd-step::before { content:counter(ddstep); position:absolute; left:14px; top:14px; width:30px; height:30px; border-radius:50%; display:grid; place-items:center; font-weight:700; color:#fff; background:linear-gradient(135deg,#2f7a52,#1f5c3d); }
.dd-step h4 { margin:2px 0 6px; font-size:1rem; display:flex; flex-wrap:wrap; gap:8px; align-items:center; } .dd-step p { margin:0 0 8px; line-height:1.55; }
.dd-step .dd-fig { margin:10px 0 12px; max-width:640px; } .dd-warn { padding:8px 12px; border-left:3px solid #f59e0b; background:rgba(245,158,11,.08); border-radius:6px; font-size:.9rem; }
.dd-tip { margin-top:14px; padding:10px 14px; border-radius:10px; background:rgba(201,162,39,.08); border:1px solid rgba(201,162,39,.3); font-size:.9rem; }
@media (max-width:560px) { .dd-step { padding:14px 12px 4px 12px; } .dd-step::before { position:static; margin-bottom:8px; } }
.dd-mailclient { margin-top:16px; padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.02); } .dd-mailclient h4 { margin:0 0 4px; }

/* ---- heading icons (admin pages) ---- */
.hico { width:1.15em; height:1.15em; flex:none; vertical-align:-.2em; margin-right:.5em; color:#d9b64a; }
h1 .hico { width:1.1em; height:1.1em; margin-right:.55em; color:#e3c24f; }
h3 .hico { width:1em; height:1em; margin-right:.4em; }
.mail-h .hico, .mp-title .hico { margin-right:0; }
.hp-sec h2 .hico { margin-left:.35em; }

/* client email server (project Manage page + /admin/projects/<id>/mail) */
.mp-maillog { list-style:none; padding:0; margin:4px 0 0; } .mp-maillog li { padding:3px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.pm-rcpts { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:2px 12px; margin:4px 0 8px; }
.pm-rcpts label { margin:0; overflow-wrap:anywhere; }
.pm-results li { overflow-wrap:anywhere; }
.mail-table td.pm-err { white-space:normal; overflow-wrap:anywhere; min-width:200px; max-width:460px; }
.mp-fieldset { border:1px solid var(--line); border-radius:10px; padding:4px 12px 8px; margin:8px 0; }
/* Client email server card */
.es-sum { display:grid; grid-template-columns:max-content 1fr; gap:6px 16px; margin:10px 0 14px; padding:12px 14px; border:1px solid var(--line); border-radius:10px; font-size:.88rem; }
.es-sum dt { color:var(--muted); font-size:.74rem; text-transform:uppercase; letter-spacing:.05em; padding-top:2px; }
.es-sum dd { margin:0; min-width:0; overflow-wrap:anywhere; }
.es-actions { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 10px; }
.es-actions .button { margin:0; }
.es-test { display:flex; gap:8px; align-items:center; margin:0 0 12px; }
.es-test input { flex:1; min-width:0; margin:0; }
.es-test button { margin:0; white-space:nowrap; }
.es-group { margin:12px 0 0; font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); font-weight:600; }
.es-three { display:grid; grid-template-columns:minmax(0,1fr) 80px 150px; gap:0 12px; }
.es-save { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.es-save .es-remove { margin-right:auto; }
.es-recent { margin-top:14px; }
.es-recent .row { margin-bottom:4px; }
@media (max-width:640px) {
  .es-sum { grid-template-columns:1fr; gap:0; } .es-sum dt { padding-top:8px; }
  .es-three { grid-template-columns:1fr; }
  .es-test { flex-direction:column; align-items:stretch; }
}
/* Send an email page */
.pm-page { }
.pm-from { margin:10px 0 0; }
.pm-kinds { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:8px; margin:6px 0 6px; }
.pm-kind { margin:0; cursor:pointer; }
.pm-kind input { position:absolute; opacity:0; pointer-events:none; }
.pm-kind-box { display:flex; flex-direction:column; gap:2px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; height:100%; box-sizing:border-box; }
.pm-kind-t { font-weight:600; }
.pm-kind-s { font-size:.8rem; color:var(--muted); font-weight:400; }
.pm-kind input:checked + .pm-kind-box { border-color:#d9b64a; background:rgba(217,182,74,.12); }
.pm-kind input:focus-visible + .pm-kind-box { outline:2px solid #d9b64a; outline-offset:2px; }
.pm-to-head { margin-top:6px; align-items:center; } .pm-to-head .es-group { margin:6px 0 0; }
.pm-chips { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0 10px; }
.pm-chip { display:inline-flex; align-items:center; gap:8px; margin:0; padding:6px 12px 6px 8px; border:1px solid var(--line); border-radius:999px; font-size:.86rem; font-weight:400; cursor:pointer; max-width:100%; }
.pm-chip input { margin:0; flex:none; }
.pm-chip span { overflow-wrap:anywhere; }
.pm-chip:has(input:checked) { border-color:#d9b64a; background:rgba(217,182,74,.12); }
.pm-hint { margin:-4px 0 8px; }
.pm-send { display:flex; justify-content:flex-end; align-items:center; gap:14px; margin-top:10px; }
.pm-log td { white-space:normal; }
@media (max-width:640px) { .pm-kinds { grid-template-columns:1fr; } }
/* Emails from the dev site card */
.dm-tags { display:flex; flex-wrap:wrap; gap:4px; }
.dm-tag { padding:1px 8px; border:1px solid var(--line); border-radius:999px; font-size:.8rem; }
.dm-note { margin-left:1.2em; }

/* System emails page (/admin/emails) */
.sm-page td { white-space:normal; vertical-align:top; }
.sm-head { display:flex; flex-direction:row; flex-wrap:wrap; gap:16px 24px; align-items:center; justify-content:space-between; }
.sm-head-main { flex:1 1 320px; }
.sm-head-main h1 { margin:0 0 4px; }
.sm-head-main p { margin:0; font-size:.92rem; }
.sm-stats { display:flex; gap:10px; flex-wrap:wrap; }
.sm-stat { border:1px solid var(--line); border-radius:10px; padding:8px 16px; min-width:92px; text-align:center; }
.sm-stat .v { display:block; font-size:1.6rem; font-weight:700; line-height:1.15; }
.sm-stat .k { color:var(--muted); font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; }
.sm-stat.bad .v { color:var(--danger); }
.sm-note { flex-basis:100%; margin:0; }
.sm-bar { display:flex; flex-wrap:wrap; gap:10px 16px; align-items:center; justify-content:space-between; margin-bottom:12px; }
.sm-bar .mail-h { margin:0; }
.sm-test, .sm-filter { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.sm-test input, .sm-filter input, .sm-filter select { width:auto; margin:0; padding:6px 10px; font-size:.9rem; }
.sm-test input { width:230px; max-width:100%; }
.sm-filter { padding:10px 0 14px; border-bottom:1px solid var(--line); margin-bottom:4px; }
.sm-filter input { flex:1 1 200px; }
.sm-filter button, .sm-test button, .sm-filter .button { padding:6px 14px; font-size:.9rem; }
.sm-empty { padding:18px 0 6px; margin:0; }
.sm-log th { font-size:.75rem; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); }
.sm-when { white-space:nowrap !important; font-size:.88rem; }
.sm-kind { font-weight:600; text-decoration:none; }
.sm-sub { font-size:.88rem; margin-top:2px; }
.sm-from { font-size:.78rem; margin-top:2px; }
.sm-to { font-size:.85rem; word-break:break-all; }
.sm-err { color:var(--danger); font-size:.8rem; margin-top:4px; max-width:260px; }
.sm-pager { display:flex; gap:12px; align-items:center; justify-content:center; margin:12px 0 0; font-size:.9rem; }
.sm-foot { font-size:.8rem; margin:14px 0 0; }
.sm-intro { margin:-4px 0 6px; font-size:.9rem; }
.sm-group { margin:20px 0 8px; font-size:.8rem; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); font-weight:600; }
.sm-types { display:grid; align-items:start; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:8px; }
.sm-type { border:1px solid var(--line); border-radius:8px; background:rgba(255,255,255,.015); }
.sm-type:target, .sm-type[open] { border-color:#1f5c3d; }
.sm-type summary { list-style:none; display:flex; flex-direction:column; gap:2px; padding:10px 14px; color:var(--fg); }
.sm-type summary::-webkit-details-marker { display:none; }
.sm-type summary::after { content:"▸"; position:absolute; right:14px; top:10px; color:var(--muted); }
.sm-type { position:relative; }
.sm-type[open] summary::after { content:"▾"; }
.sm-tname { font-weight:600; padding-right:18px; }
.sm-tmeta { font-size:.8rem; color:var(--muted); }
.sm-bad { color:var(--danger); font-weight:600; }
.sm-tbody { padding:0 14px 12px; font-size:.88rem; border-top:1px solid var(--line); }
.sm-tbody p { margin:10px 0 0; }
.sm-tbody dl { display:grid; grid-template-columns:max-content 1fr; gap:6px 12px; margin:10px 0 0; min-width:0; font-size:.85rem; }
.sm-tbody dt { color:var(--muted); }
.sm-tbody dd { margin:0; }
.sm-tbody .mono { font-size:.78rem; word-break:break-word; }
.sm-links { display:flex; gap:16px; }
.sm-samples { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin:4px 0 18px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:color-mix(in srgb, #c9a227 7%, transparent); }
.sm-samples .sm-sic { display:inline-flex; width:38px; height:38px; border-radius:10px; align-items:center; justify-content:center; background:color-mix(in srgb, #c9a227 18%, transparent); color:#d9b64a; flex:none; }
.sm-samples .sm-sic .hico { color:inherit; margin:0; }
.sm-samples-text { flex:1 1 280px; display:flex; flex-direction:column; gap:2px; font-size:.92rem; }
.sm-samples-text .muted { font-size:.85rem; }
.sm-samples input { width:230px; max-width:100%; margin:0; padding:6px 10px; font-size:.9rem; }
.sm-samples button { padding:6px 14px; font-size:.9rem; }
.sm-sample { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 0; }
.sm-nosample { margin:10px 0 0; }
@media (max-width:640px) { .sm-samples input, .sm-samples button { width:100%; } }
@media (max-width:640px) {
  .sm-stat { min-width:0; flex:1; padding:6px 8px; }
  .sm-test, .sm-test input { width:100%; }
  .sm-filter select, .sm-filter input { flex:1 1 100%; }
}
.sm-warn { flex-basis:100%; border:1px solid #b45309; background:rgba(245,158,11,.08); color:#fcd34d; border-radius:8px; padding:10px 14px; font-size:.9rem; }
.sm-warn ul { margin:6px 0; padding-left:18px; }
.sm-warn li { font-size:.8rem; }

/* New client & project (/admin/projects/new-client) */
.nc-page { max-width:860px; margin:0 auto; }
.nc-head h1 { margin:0 0 6px; }
.nc-head p { margin:0; }
.nc-back { font-size:.85rem; margin:0 0 6px !important; }
.nc-errors { border-color:var(--danger); color:#fca5a5; }
.nc-errors ul { margin:6px 0 0; padding-left:20px; }
.nc-form { display:flex; flex-direction:column; gap:14px; }
.nc-step h2 { display:flex; align-items:center; gap:10px; margin:0 0 14px; font-size:1.1rem; }
.nc-num { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; background:rgba(31,92,61,.25); border:1px solid #1f5c3d; color:#ebddb0; font-size:.9rem; font-weight:700; }
.nc-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px 18px; }
.nc-grid label { display:block; font-size:.92rem; }
.nc-wide { grid-column:1 / -1; }
.nc-grid textarea { display:block; width:100%; margin-top:4px; padding:8px 10px; font:inherit; color:var(--fg); background:var(--bg); border:1px solid var(--line); border-radius:6px; resize:vertical; box-sizing:border-box; }
.nc-hint { display:block; font-size:.78rem; color:var(--muted); margin-top:4px; }
.nc-pw { margin-top:14px; }
.nc-pw summary { font-size:.88rem; }
.nc-pw .nc-grid { margin-top:10px; }
.nc-check { display:flex; align-items:center; gap:8px; font-weight:600; }
.nc-what { margin:10px 0 0; padding-left:20px; font-size:.88rem; color:var(--muted); }
.nc-what li { margin:4px 0; }
.nc-what strong { color:var(--fg); }
.nc-actions { display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; margin-top:16px; }
.ul-newbtns { display:flex; gap:8px; flex-wrap:wrap; }
.new-proj-btn.np-alt { background:none; border-color:var(--line); color:var(--muted); }
@media (max-width:640px) { .nc-grid { grid-template-columns:1fr; } .nc-actions button { flex:1; } }
/* System emails: icons */
.sm-stat { position:relative; }
.sm-sic { display:block; line-height:0; margin-bottom:2px; color:#d9b64a; }
.sm-sic .hico { width:18px; height:18px; margin:0; }
.sm-stat.ok .sm-sic { color:var(--ok); }
.sm-stat.bad .sm-sic { color:var(--danger); }
.sm-group .hico { margin-right:.45em; vertical-align:-.15em; }
.sm-type summary { flex-direction:row !important; align-items:center; gap:12px !important; }
.sm-ttext { display:flex; flex-direction:column; gap:2px; min-width:0; }
.sm-tic, .sm-ic { display:inline-flex; align-items:center; justify-content:center; flex:none; border-radius:9px; }
.sm-tic { width:34px; height:34px; }
.sm-tic .hico { width:18px; height:18px; margin:0; }
.sm-ic { width:22px; height:22px; border-radius:6px; margin-right:8px; vertical-align:-6px; }
.sm-ic .hico { width:13px; height:13px; margin:0; }
.g-accounts { background:rgba(217,182,74,.15); color:#e3c24f; }
.g-clients  { background:rgba(201,162,39,.13); color:#ebddb0; }
.g-mail     { background:rgba(251,191,36,.13); color:#fcd34d; }
.g-backups  { background:rgba(163,230,53,.13); color:#bef264; }
.g-monitor  { background:rgba(244,114,182,.13); color:#f9a8d4; }
.g-public   { background:rgba(52,211,153,.13); color:#6ee7b7; }
.g-other    { background:rgba(148,163,184,.15); color:#cbd5e1; }
.sm-tic .hico, .sm-ic .hico { color:inherit; }

/* Scheduled maintenance: banner on every page + /admin/maintenance */
.maint-banner { display:flex; align-items:flex-start; gap:10px; padding:10px 16px; background:#2a2008; border-bottom:1px solid #a16207; color:#fde68a; font-size:.92rem; }
.maint-banner.is-now { background:#2a1508; border-color:#c2410c; color:#fed7aa; }
.maint-banner strong { color:#fcd34d; }
.maint-banner.is-now strong { color:#fdba74; }
.maint-banner a { color:#fde68a; font-weight:600; margin-left:6px; }
.maint-ic { font-size:1.1rem; line-height:1.3; }
.maint-text { flex:1; min-width:0; overflow-wrap:anywhere; }
.maint-when { font-weight:600; }
.maint-aff { opacity:.85; }
.mt-page { max-width:900px; margin:0 auto; }
.mt-head h1 { margin:0 0 6px; }
.mt-head p { margin:0; }
.mt-item { border:1px solid var(--line); border-radius:10px; padding:14px 16px; margin-top:12px; }
.mt-item.is-now { border-color:#c2410c; }
.mt-item-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; flex-wrap:wrap; }
.mt-title { margin:0; font-size:1.05rem; }
.mt-when { margin:2px 0 0; font-weight:600; color:#fcd34d; }
.mt-details { color:var(--muted); white-space:normal; }
.mt-steps { list-style:none; padding:0; margin:10px 0; display:flex; flex-direction:column; gap:6px; }
.mt-edit { margin-top:6px; }
.mt-form { display:grid; grid-template-columns:1fr 1fr; gap:12px 16px; margin-top:12px; }
.mt-form label { display:block; font-size:.92rem; }
.mt-wide { grid-column:1 / -1; }
.mt-form textarea { display:block; width:100%; box-sizing:border-box; margin-top:4px; padding:8px 10px; font:inherit; color:var(--fg); background:var(--bg); border:1px solid var(--line); border-radius:6px; resize:vertical; }
.mt-aff { margin:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:4px 16px; }
.mt-aff .check { display:flex; gap:8px; align-items:center; font-size:.9rem; }
.mt-what { margin:0; padding-left:20px; color:var(--muted); }
.mt-what strong { color:var(--fg); }
.mt-actions { display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; }
.mt-cancel { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:14px; padding-top:12px; border-top:1px solid var(--line); }
.mt-errors { border:1px solid var(--danger); border-radius:8px; padding:8px 14px; color:#fca5a5; margin-bottom:10px; }
.mt-errors ul { margin:0; padding-left:18px; }
.mt-past td { white-space:normal; }
@media (max-width:640px) { .mt-form { grid-template-columns:1fr; } .mt-actions button { flex:1; } }

/* Rebrand notice (websystems.ca → websystems.ca): app/views/_rebrand_notice.php, on the public and signed-in home pages */
.rb-notice { position:relative; display:grid; grid-template-columns:minmax(0, 260px) 1fr; gap:26px; align-items:center; max-width:980px; margin:0 auto 34px; padding:24px 26px; text-align:left;
  border-radius:18px; background:radial-gradient(120% 140% at 0% 0%, rgba(201,162,39,.12), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(201,162,39,.12), transparent 55%), #12110d;
  border:1px solid transparent; background-clip:padding-box; box-shadow:0 0 0 1px #2e2c24, 0 18px 50px -24px rgba(201,162,39,.55); }
.rb-notice::before { content:""; position:absolute; inset:-1px; border-radius:19px; padding:1px; background:linear-gradient(120deg,#e3c24f,#d9b64a 55%,#c9a227);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude; opacity:.55; pointer-events:none; }
.rb-art { display:flex; flex-direction:column; align-items:center; gap:10px; }
.rb-old { font-family:ui-monospace, Menlo, Consolas, monospace; color:#8b93a7; text-decoration:line-through; text-decoration-color:rgba(201,162,39,.7); font-size:1rem; }
.rb-arrow { color:#d9b64a; transform:rotate(90deg); }
.rb-new { display:inline-flex; align-items:center; gap:10px; font-weight:800; font-size:1.35rem; letter-spacing:.01em; color:#e6edf3; }
.rb-new b { color:#ebddb0; font-weight:800; }
.rb-tag { display:inline-block; margin:0 0 6px; padding:3px 10px; border-radius:999px; font-size:.72rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:#f4eedc; background:rgba(201,162,39,.16); border:1px solid rgba(217,182,74,.35); }
.rb-body h2 { margin:0 0 8px; font-size:clamp(1.25rem, 2.6vw, 1.6rem); line-height:1.25; }
.rb-grad { background:linear-gradient(90deg,#e3c24f,#d9b64a 55%,#c9a227); -webkit-background-clip:text; background-clip:text; color:transparent; }
.rb-lead { margin:0 0 12px; color:#c9d1d9; line-height:1.6; }
.rb-list { margin:0; padding:0; list-style:none; display:grid; gap:8px; }
.rb-list li { position:relative; padding-left:22px; color:#c9d1d9; line-height:1.55; font-size:.95rem; }
.rb-list li::before { content:""; position:absolute; left:4px; top:.58em; width:8px; height:8px; border-radius:50%; background:linear-gradient(135deg,#e3c24f,#c9a227); }
.rb-list strong { color:#ebddb0; }
.home .rb-notice { margin-top:6px; }
@media (max-width:720px) {
  .rb-notice { grid-template-columns:1fr; gap:16px; padding:20px 18px; text-align:left; }
  .rb-art { flex-direction:row; flex-wrap:wrap; justify-content:center; }
  .rb-arrow { transform:none; }
}

/* Proudly Canadian section (public home) + footer badge */
.pub-canada { position:relative; }
.pub-canada .ca-head { display:flex; align-items:center; justify-content:center; gap:16px; margin-bottom:10px; }
.pub-canada .ca-head h2 { margin:0; font-size:1.7rem; background:linear-gradient(90deg,#fca5a5,#f87171 35%,#ebddb0); -webkit-background-clip:text; background-clip:text; color:transparent; }
.pub-canada .ca-tag { margin:0 0 2px; font-size:.75rem; font-weight:700; letter-spacing:.22em; text-transform:uppercase; color:#f87171; text-align:left; }
.pub-canada .ca-leaf { flex:none; filter:drop-shadow(0 0 18px rgba(239,68,68,.35)); }
.pub-canada .ca-card { border-color:#3b2433; background:linear-gradient(180deg, rgba(239,68,68,.07), rgba(11,11,16,0) 60%), var(--card); border-top:3px solid #ef4444; }
.pub-canada .ca-card h3 { color:#fecaca; }
.pub-canada .ca-ic { color:#f87171; border-color:#5b2a35; background:linear-gradient(135deg, rgba(239,68,68,.2), rgba(244,114,182,.08)); }
.site-footer .sf-ca { display:flex; align-items:center; justify-content:center; gap:6px; color:#fca5a5; font-weight:500; }
.site-footer .sf-ca svg { flex:none; }
@media (max-width:720px) { .pub-canada .ca-head { gap:12px; } .pub-canada .ca-head h2 { font-size:1.4rem; } .pub-canada .ca-leaf { width:48px; height:48px; } }

/* SEO page (/admin/seo) */
.pill.warn { color:#fbbf24; border-color:#b45309; }
.seo-page td { white-space:normal; vertical-align:top; }
.seo-page th.num, .seo-page td.num { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.seo-bar { display:flex; flex-wrap:wrap; gap:10px 18px; align-items:center; }
.seo-bar .inline-form { margin:0; }
.seo-toc { margin-left:auto; }
.seo-h3 { font-size:.95rem; margin:16px 0 6px; }
.seo-two { display:grid; grid-template-columns:1fr 1fr; gap:8px 28px; }
.seo-two > * { min-width:0; }
.seo-kpis { display:grid; grid-template-columns:repeat(4, 1fr); gap:10px; margin:10px 0 4px; }
.seo-kpi { border:1px solid var(--line); border-radius:10px; padding:10px 14px; }
.seo-kpi .k { display:block; color:var(--muted); font-size:.75rem; }
.seo-kpi .v { display:block; font-size:1.5rem; font-weight:700; line-height:1.2; font-variant-numeric:tabular-nums; }
.seo-kpi.bad .v { color:var(--danger); }
a.sm-stat { color:inherit; text-decoration:none; }
a.sm-stat:hover { border-color:var(--muted); }
.seo-d { font-size:.78rem; color:var(--muted); }
.seo-d.up { color:var(--ok); }
.seo-d.down { color:var(--danger); }
.seo-chart { width:100%; height:auto; display:block; }
.seo-chart .seo-grid { stroke:var(--line); stroke-width:1; }
.seo-chart .seo-ax { fill:var(--muted); font-size:11px; }
.seo-chart .seo-fill { fill:var(--accent); }
.seo-chart .seo-hit { fill:transparent; }
.seo-chart .seo-bar:hover .seo-hit { fill:rgba(255,255,255,.05); }
.seo-chart .seo-bar:hover .seo-fill { fill:#79b8ff; }
/* on-page health: score badge, category chips, problem cards, passed checks folded away */
.seo-hh { display:flex; gap:18px; align-items:center; }
.seo-hh-main { flex:1; min-width:0; }
.seo-hh-main .mail-h { margin:0 0 2px; }
.seo-hh-main p { margin:0 0 8px; }
.seo-ring { flex:none; width:84px; height:84px; border-radius:50%; border:5px solid var(--line); display:flex; flex-direction:column; align-items:center; justify-content:center; line-height:1; }
.seo-ring .v { font-size:1.7rem; font-weight:800; font-variant-numeric:tabular-nums; }
.seo-ring .k { font-size:.68rem; color:var(--muted); margin-top:3px; }
.seo-ring.good { border-color:var(--ok); } .seo-ring.good .v { color:var(--ok); }
.seo-ring.mid { border-color:#d97706; } .seo-ring.mid .v { color:#fbbf24; }
.seo-ring.bad { border-color:var(--danger); } .seo-ring.bad .v { color:var(--danger); }
.seo-cats { display:flex; flex-wrap:wrap; gap:6px; }
.seo-cat-chip { display:inline-flex; align-items:center; gap:5px; padding:2px 10px; border:1px solid var(--line); border-radius:999px; font-size:.78rem; color:var(--muted); }
.seo-cat-chip b { color:var(--fg); font-weight:600; font-variant-numeric:tabular-nums; }
.seo-cat-chip.is-ok { color:#86efac; border-color:#14532d; }
.seo-cat-chip.is-warn { color:#fcd34d; border-color:#78350f; background:rgba(245,158,11,.08); }
.seo-cat-chip.is-fail { color:#fca5a5; border-color:#7f1d1d; background:rgba(239,68,68,.1); }
.seo-issues { display:grid; gap:10px; }
.seo-issue { border:1px solid var(--line); border-left-width:4px; border-radius:10px; padding:10px 14px; background:rgba(255,255,255,.02); }
.seo-issue.is-warn { border-left-color:#f59e0b; }
.seo-issue.is-fail { border-left-color:var(--danger); background:rgba(239,68,68,.05); }
.seo-issue-h { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.seo-issue-ic { width:20px; height:20px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:.75rem; font-weight:800; color:#111; background:#f59e0b; }
.seo-issue.is-fail .seo-issue-ic { background:var(--danger); color:#fff; }
.seo-issue-d { margin:6px 0 0; overflow-wrap:anywhere; }
.seo-issue .seo-fix { margin:4px 0 0; }
.seo-tag { font-size:.7rem; color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:0 8px; }
.seo-allgood { margin:14px 0 4px; padding:10px 14px; border:1px solid #14532d; border-radius:10px; background:rgba(34,197,94,.07); color:#86efac; }
.seo-note { margin:8px 0 0; }
.seo-passed { margin-top:14px; }
.seo-passed > summary { cursor:pointer; color:var(--accent); font-size:.9rem; }
.seo-pgrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap:4px 22px; margin-top:10px; }
.seo-pgrp h4 { margin:10px 0 4px; font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.seo-pgrp ul { list-style:none; margin:0; padding:0; }
.seo-pgrp li { display:flex; gap:8px; padding:5px 0; border-top:1px solid var(--line); font-size:.86rem; }
.seo-pgrp li:first-child { border-top:0; }
.seo-tick { color:var(--ok); flex:none; }
.seo-pd { display:block; color:var(--muted); font-size:.78rem; overflow-wrap:anywhere; }
@media (max-width:560px) { .seo-hh { align-items:flex-start; } .seo-ring { width:64px; height:64px; border-width:4px; } .seo-ring .v { font-size:1.3rem; } }
/* SEO: tracked domains switcher */
.seo-doms-list { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:8px; }
.seo-dom { display:flex; align-items:center; gap:10px; padding:8px 10px; border:1px solid var(--line); border-radius:10px; color:var(--fg); text-decoration:none; min-width:0; }
.seo-dom:hover { border-color:var(--muted); }
.seo-dom.is-on { border-color:var(--accent, #c9a227); background:rgba(201,162,39,.07); }
.seo-dom-score { flex:none; width:40px; height:40px; border-radius:50%; border:3px solid var(--line); display:flex; align-items:center; justify-content:center; font-weight:800; font-variant-numeric:tabular-nums; }
.seo-dom-score.good { border-color:var(--ok); color:var(--ok); } .seo-dom-score.mid { border-color:#d97706; color:#fbbf24; } .seo-dom-score.bad { border-color:var(--danger); color:var(--danger); }
.seo-dom-t { display:flex; flex-direction:column; min-width:0; }
.seo-dom-t strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.seo-dom-add { margin-top:10px; }
.seo-dom-form { max-width:560px; }
.seo-keys .seo-key-email { word-break:break-all; }
.seo-keys tr.is-on td { background:rgba(201,162,39,.07); }
.seo-keys td:last-child { text-align:right; white-space:nowrap; }
.seo-sitemaps { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.seo-sitemaps li { display:flex; flex-direction:column; gap:2px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; }
.seo-sm-h { display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-width:0; }
.seo-sm-h a { overflow-wrap:anywhere; }
.seo-fix { color:#fbbf24; }
.seo-gauges { display:flex; gap:10px; flex-wrap:wrap; margin:4px 0 10px; }
.seo-g { width:84px; text-align:center; border:2px solid var(--line); border-radius:12px; padding:8px 4px; }
.seo-g .v { display:block; font-size:1.5rem; font-weight:700; }
.seo-g .k { display:block; font-size:.7rem; color:var(--muted); }
.seo-g.good { border-color:var(--ok); } .seo-g.good .v { color:var(--ok); }
.seo-g.mid { border-color:#b45309; } .seo-g.mid .v { color:#fbbf24; }
.seo-g.bad { border-color:var(--danger); } .seo-g.bad .v { color:var(--danger); }
.seo-steps li { margin:4px 0; }
.seo-set { margin-top:12px; }
.seo-form { display:grid; gap:10px; max-width:640px; margin:10px 0; }
.seo-form label { display:grid; gap:4px; }
.seo-actions { display:flex; justify-content:flex-start; }
.seo-cat th { text-align:left; color:var(--muted); font-size:.75rem; text-transform:uppercase; letter-spacing:.05em; padding-top:12px; }
.seo-bots summary { cursor:pointer; }
.seo-links li { margin:4px 0; }
@media (max-width:760px) {
  .seo-two { grid-template-columns:1fr; }
  .seo-kpis { grid-template-columns:1fr 1fr; }
  .seo-toc { margin-left:0; }
}
.seo-bar .dm-range { margin-left:0; }

/* Request email for your domain (/email-request) */
.er-page { max-width:900px; }
.er-head h1 { margin:0 0 6px; }
.er-head p { margin:0 0 8px; }
.er-facts { margin:0; padding-left:18px; color:var(--muted); }
.er-facts li { margin:2px 0; }
.er-mine { padding:10px 0; border-top:1px solid var(--line); }
.er-mine:first-of-type { border-top:0; padding-top:0; }
.er-mine-h { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.er-mine p { margin:2px 0 0; }
.er-msg { margin:6px 0 0; padding:8px 12px; border-left:3px solid var(--accent); background:rgba(201,162,39,.07); border-radius:6px; }
.er-alert { padding:10px 14px; border:1px solid #7f1d1d; border-left-width:4px; border-radius:10px; background:rgba(239,68,68,.08); color:#fca5a5; margin-bottom:6px; }
.er-form { padding-top:6px; }
.er-sec { padding:18px 0 16px; border-top:1px solid var(--line); }
.er-sec:first-of-type { border-top:0; padding-top:10px; }
.er-h { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin:0 0 6px; font-size:1.05rem; }
.er-h small { font-weight:400; font-size:.82rem; color:var(--muted); }
.er-n { flex:none; align-self:center; position:relative; width:36px; height:36px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; font-size:1.15rem;
  color:#ebddb0; background:linear-gradient(135deg, rgba(47,122,82,.22), rgba(31,92,61,.22)); border:1px solid #4a4126; }
.er-n b { position:absolute; top:-6px; right:-6px; min-width:17px; height:17px; padding:0 4px; box-sizing:border-box; border-radius:999px; background:var(--accent); color:#fff; font-size:.66rem; font-weight:800; display:flex; align-items:center; justify-content:center; border:2px solid var(--card); }
.er-title { display:flex; align-items:center; gap:14px; margin-bottom:6px; }
.er-title h1 { margin:0; }
.er-hic { flex:none; width:52px; height:52px; border-radius:14px; display:inline-flex; align-items:center; justify-content:center; font-size:1.6rem; color:#fb923c; background:rgba(251,146,60,.14); border:1px solid #7c3f12; }
.er-mine-t { display:flex; align-items:center; gap:8px; }
.er-sic { display:inline-flex; color:var(--accent); }
.er-cic { flex:none; display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:8px; font-size:1rem; color:#e3c24f; background:rgba(201,162,39,.14); }
.er-choice:has(input:checked) .er-cic { color:#fff; background:var(--accent); }
.er-hic .hico, .er-n .hico, .er-cic .hico, .er-sic .hico { margin:0; color:inherit; vertical-align:0; width:1em; height:1em; }   /* centred in their boxes, in the box's colour (the general .hico rule adds a margin and its own colour) */
@media (max-width:720px) { .er-hic { width:42px; height:42px; font-size:1.3rem; } }
.er-hint { margin:0 0 10px; color:var(--muted); font-size:.86rem; line-height:1.5; }
.er-f { display:block; margin:10px 0 0; }
.er-l { display:block; margin-bottom:5px; font-size:.9rem; font-weight:600; }
.er-l small { font-weight:400; color:var(--muted); margin-left:6px; }
.er-f input, .er-f textarea { width:100%; box-sizing:border-box; }
.er-f input[type=radio], .er-f input[type=checkbox], .er-f input[type=date] { width:auto; }
.er-pick input { margin:0; }
.er-narrow { max-width:420px; }
.er-two { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
.er-two > .er-f { margin-top:10px; }
.is-bad input, .is-bad textarea, .is-bad .er-choice { border-color:var(--danger) !important; }
.is-bad .er-addr { border-color:var(--danger); }
.er-err { display:block; color:#fca5a5; font-size:.84rem; margin-top:4px; }
/* address rows */
.er-rows { display:grid; gap:8px; }
.er-row, .er-rowh { display:grid; gap:6px 10px; align-items:center; }
.er-mb { grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(0,1.2fr); }
.er-al { grid-template-columns:minmax(0,1.35fr) auto minmax(0,1.6fr); }
.er-rowh span { font-size:.7rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.er-row > .er-err, .er-row > .er-span { grid-column:1 / -1; margin:0; }
.er-addr { display:flex; align-items:center; min-width:0; border:1px solid var(--line); border-radius:8px; background:var(--card); overflow:hidden; }
.er-addr input { flex:1 1 5rem; min-width:3rem; border:0 !important; background:transparent; box-shadow:none; margin:0; }
.er-at { flex:0 1 auto; padding:0 10px 0 2px; color:var(--muted); font-size:.85rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.er-fixed { padding:0 0 0 10px; font-family:ui-monospace, Menlo, Consolas, monospace; font-size:.9rem; }
.er-arrow { color:var(--muted); }
.er-pm { margin-top:4px; padding-top:10px; border-top:1px dashed var(--line); }
.er-add { justify-self:start; margin-top:2px; }
.er-form.has-js .er-extra { display:none; }
.er-form:not(.has-js) .er-add { display:none; }
.er-form.has-js .er-more-note { display:none; }
/* choice cards */
.er-choices { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:8px; }
.er-choice { display:flex; gap:10px; align-items:flex-start; padding:10px 12px; border:1px solid var(--line); border-radius:10px; cursor:pointer; background:rgba(255,255,255,.02); }
.er-choice:hover { border-color:#403d30; }
.er-choice:has(input:checked) { border-color:var(--accent); background:rgba(201,162,39,.1); }
.er-choice input { margin-top:3px; }
.er-choice strong { display:block; font-size:.92rem; }
.er-choice small { display:block; color:var(--muted); font-size:.78rem; line-height:1.35; margin-top:2px; }
.er-inline { display:flex; flex-wrap:wrap; gap:8px 18px; align-items:center; }
.er-pick { display:inline-flex; gap:7px; align-items:center; cursor:pointer; font-size:.92rem; }
.er-inline input[type=date] { width:auto; }
/* follow-up fields appear only when they apply (browsers without :has show them all) */
@supports selector(:has(*)) {
  .er-dns:not(:has([name=dns_who][value=other]:checked)) .er-when-other { display:none; }
  .er-cur:not(:has([name=current_mail][value=other]:checked)) .er-when-curother { display:none; }
  .er-cur:not(:has([name=current_mail]:not([value=none]):checked)) .er-when-hasmail { display:none; }
  .er-time:not(:has([name=wanted][value=date]:checked)) .er-when-date { display:none; }
}
.er-submit { border-top:1px solid var(--line); padding-top:16px; }
.er-agree { display:flex; gap:10px; align-items:flex-start; padding:12px 14px; border:1px solid var(--line); border-radius:10px; font-size:.9rem; line-height:1.5; cursor:pointer; }
.er-agree input { margin-top:4px; flex:none; }
.er-actions { display:flex; gap:14px; align-items:center; flex-wrap:wrap; margin-top:14px; }
.er-actions button { padding-left:26px; padding-right:26px; }
@media (max-width:720px) {
  .er-two { grid-template-columns:1fr; }
  .er-rowh { display:none; }
  .er-mb, .er-al { grid-template-columns:1fr; padding:10px; border:1px solid var(--line); border-radius:10px; }
  .er-al .er-arrow { display:none; }
  .er-pm { border-top:1px solid var(--line); }
  .er-choices { grid-template-columns:1fr 1fr; }
}

/* Mail server → Email requests from clients */
.mr-item { border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin:12px 0; }
.mr-top { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.mr-dom { margin:0; font-size:1.15rem; }
.mr-top p { margin:2px 0 0; }
.mr-cols { display:grid; grid-template-columns:1.3fr 1fr; gap:8px 24px; margin-top:8px; }
.mr-cols > * { min-width:0; }
.mr-cols h4 { margin:8px 0 4px; font-size:.78rem; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); }
.mr-t td { white-space:normal; overflow-wrap:anywhere; }
.mr-ul { margin:0; padding-left:18px; }
.mr-dl { display:grid; grid-template-columns:auto 1fr; gap:4px 12px; margin:8px 0 0; }
.mr-dl dt { color:var(--muted); }
.mr-dl dd { margin:0; overflow-wrap:anywhere; }
.mr-help { margin:10px 0 0; }
.mr-form { display:flex; flex-wrap:wrap; gap:8px 14px; align-items:flex-end; margin-top:10px; padding-top:10px; border-top:1px solid var(--line); }
.mr-form label { display:grid; gap:3px; }
.mr-form .mr-msg { flex:1 1 280px; }
.mr-form .check { display:flex; gap:6px; align-items:center; }
.mr-closed > summary { cursor:pointer; color:var(--accent); margin-top:6px; }
@media (max-width:760px) { .mr-cols { grid-template-columns:1fr; } .mr-dl { grid-template-columns:1fr; } }

/* ===== public header on phones: logos + Sign in on one row, the menu as one compact row that scrolls sideways (was ~234px tall) ===== */
.pub-top .pub-signin { margin:0; flex:none; }
.pub-top > nav { margin-left:auto; }                          /* menu and Sign in sit together on the right */
.pub-top nav a.pub-nav-cta:not(.pub-btn) { color:#ebddb0; } .pub-top nav a.pub-nav-cta:not(.pub-btn):hover { color:#bae6fd; }
@media (max-width:720px) {
  .pub-top { display:grid; grid-template-columns:1fr auto; grid-template-areas:"left signin" "nav nav"; align-items:center; gap:6px 10px; padding:8px 14px 0; }
  .pub-top .pub-left { grid-area:left; min-width:0; }
  .pub-top .pub-signin { grid-area:signin; height:34px; padding:0 16px; font-size:.88rem; }
  .pub-top > nav { margin-left:0; }
  .pub-top nav { grid-area:nav; flex-wrap:nowrap; gap:2px; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none; margin:0 -14px; padding:0 14px 8px;
    -webkit-mask-image:linear-gradient(90deg, #000 88%, transparent); mask-image:linear-gradient(90deg, #000 88%, transparent); }
  .pub-top nav::-webkit-scrollbar { display:none; }
  .pub-top nav a:not(.pub-btn) { flex:none; white-space:nowrap; padding:6px 11px; font-size:.86rem; border-radius:999px; }
  .pub-top nav a[aria-current="page"] { text-decoration:none; background:rgba(201,162,39,.18); color:#f4eedc; }
  .pub-top nav .pub-nav-cta { margin-right:14px; }
}

/* ===== signed-in header (.bar) on phones: one row (was two, ~99px). Logos on the left; View as user, your account and
   Log out become round icon buttons on the right. Their words stay in the page (screen readers, hover title), just not drawn. ===== */
@media (max-width:720px) {
  .bar { flex-wrap:nowrap; gap:8px; padding:6px 10px; padding-top:max(6px, env(safe-area-inset-top)); }
  .bar .brand-wrap { flex:1 1 auto; min-width:0; }
  .bar nav { width:auto; flex:none; flex-wrap:nowrap; overflow:visible; gap:6px; padding:0; }
  .bar nav form { margin-left:0; }
  .bar .viewas-toggle button.link, .bar .wm-link, .bar .who, .bar form button.link {
    width:36px; height:36px; min-height:0; padding:0; gap:0; justify-content:center; border-radius:50%; font-size:0; line-height:1; }
  .bar .viewas-toggle button.link::before, .bar .wm-link::before, .bar .who::before, .bar form button.link::before { display:inline; font-size:16px; opacity:1; }
}
@media (max-width:380px) {                                  /* the smallest phones: tighter logo row and buttons so nothing overlaps */
  .bar .hl-sep { display:none; }
  .bar .hl-wrap { gap:4px; }
  .bar nav { gap:4px; }
  .bar .viewas-toggle button.link, .bar .wm-link, .bar .who, .bar form button.link { width:32px; height:32px; }
  .bar .viewas-toggle button.link::before, .bar .wm-link::before, .bar .who::before, .bar form button.link::before { font-size:14px; }
}

/* light/dark switch (theme_toggle_html(); light colours in light.css, built by deploy/make_light_css.php) */
.theme-tg { display:inline-flex; align-items:center; justify-content:center; min-width:34px; height:34px; padding:0 9px; font-size:1.05rem; font-weight:400; line-height:1; color:var(--fg); background:transparent; border:1px solid var(--line); border-radius:999px; cursor:pointer; filter:none; }
.theme-tg:hover:not(:disabled) { border-color:#c9a227; filter:none; }
.theme-tg .tg-moon { display:none; }
.theme-tg-text { height:auto; padding:4px 12px; font-size:.85rem; color:var(--muted); }
.sf-theme { margin:0 0 10px; }
.pub-right { display:flex; align-items:center; gap:10px; }
@media (max-width:720px) { .pub-top .pub-right { grid-area:signin; } }   /* Sign in + ☀/☾ share the top-right slot on phones */
/* small Delete buttons: red fill with white text (was red text on the green button, hard to read) */
button.btn-sm.danger { background:linear-gradient(90deg,#b91c1c,#8f1616); color:#fff; }

/* ---- webmail: header menu, theme switch and "More" buttons (phones get a tidier layout below) ---- */
.wm-menu { display:contents; }                         /* desktop: the account items sit in the header as before */
.wm-menubtn, .wm-morebtn { display:none !important; }
.wm-body .wm-bar button.theme-tg, .wm-body .wm-bar button.wm-menubtn { min-height:0; height:32px; min-width:34px; padding:0 10px; font-size:1rem; font-weight:400; line-height:1; color:var(--fg); background:transparent; border:1px solid #403d30; border-radius:999px; filter:none; }
.wm-body .wm-bar button.theme-tg:hover, .wm-body .wm-bar button.wm-menubtn:hover, .wm-body .wm-bar.menu-open button.wm-menubtn { background:rgba(201,162,39,.18); border-color:#c9a227; filter:none; }
@media (max-width:760px) {
  /* header: one row (icons · ☀ · ☰), search below it, account items in a drop-down */
  .wm-bar { position:relative; padding:8px 12px; gap:8px; }
  .wm-bar .hl-wrap { order:1; }
  .wm-menubtn { display:inline-flex !important; order:2; margin-left:auto; }
  .wm-bar > .theme-tg { order:3; }
  .wm-search { order:4; flex:1 1 100%; max-width:none; min-width:0; }
  .wm-menu { display:none; position:absolute; top:calc(100% - 2px); right:10px; z-index:70; flex-direction:column; align-items:stretch; gap:6px;
             width:min(290px, calc(100vw - 20px)); padding:10px; background:var(--card); border:1px solid #403d30; border-radius:14px; box-shadow:0 16px 40px rgba(0,0,0,.55); }
  .wm-bar.menu-open .wm-menu { display:flex; }
  .wm-menu .wm-who { display:flex !important; margin:0; }
  .wm-menu .wm-who, .wm-menu .wm-setlink, .wm-menu form button.link, .wm-body .wm-menu .wm-infobtn { width:100%; height:40px !important; justify-content:flex-start; padding:0 14px !important; font-size:.88rem !important; overflow:hidden; text-overflow:ellipsis; }
  .wm-menu form { display:flex; }
  .wm-menu form button.link::before { display:inline; }
  .wm-menu .wm-aliasinfo { display:flex; flex-direction:column; }
  .wm-menu .wm-tip { position:static; min-width:0; max-width:none; margin-top:6px; box-shadow:none; }
  .wm-menu .wm-tip::before { display:none; }

  /* folders: one row of chips you swipe sideways; New message becomes a round button in the corner */
  .wm-side { padding:8px 0 0; }
  .wm-folders { flex-direction:row; flex-wrap:nowrap; overflow-x:auto; gap:6px; padding:0 12px 8px; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
  .wm-folders::-webkit-scrollbar { display:none; }
  .wm-folders a { flex:none; gap:6px; padding:6px 12px; border:1px solid var(--line); border-radius:999px; font-size:.85rem; white-space:nowrap; }
  .wm-folders a.on { border-color:#c9a227; }
  .wm-folders a.wm-manage { margin-top:0; }
  .wm-body .wm-compose-btn { position:fixed; right:16px; bottom:calc(18px + env(safe-area-inset-bottom, 0px)); z-index:65; width:58px; height:58px; min-height:0; margin:0; padding:0; border-radius:50%; font-size:1.45rem; box-shadow:0 10px 28px rgba(0,0,0,.5); }
  .wm-compose-lbl { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .wm-shell:has(.wm-compose) .wm-compose-btn { display:none !important; }
  .wm-main { padding:12px 12px 90px; }

  /* toolbars: the main actions only, the rest behind "⋯ More" */
  .wm-auto { display:none; }
  .wm-tools { gap:6px; padding:6px 8px; }
  .wm-tools .wm-all { margin-right:0; padding-right:8px; font-size:0; gap:0; }   /* just the tick box (its label still names it for screen readers) */
  .wm-sec { display:none !important; }
  .is-more .wm-sec { display:inline-flex !important; }
  .is-more select.wm-sec { display:inline-block !important; }
  .wm-morebtn { display:inline-flex !important; margin-left:auto; }
  .wm-actions { gap:6px; }
  .wm-actions form.inline { display:contents; }
  .wm-body .wm-msg .wm-actions a.button, .wm-body .wm-msg .wm-actions button { min-height:36px; padding:0 12px; font-size:.85rem; }
  .wm-body .wm-msg .wm-actions button.wm-morebtn { min-width:40px; padding:0 10px; font-size:1.05rem; }
  .wm-msg.card { padding:16px 14px; }
}
