/* ── Client-area console (hero illustration) ──────────────
   Built by console.js inside <div class="cx" id="cx">. Uses the dark theme tokens from site.css. */
.cx{ --bg:#000; --surface:#0A0A0A; --raise:#161616; --line:rgba(255,255,255,.09); --line-2:rgba(255,255,255,.16); --text:#EDEDED; --muted:#A1A1A1; --faint:#6E6E6E; --blue:#EDEDED; --on-blue:#000; color-scheme:dark;
  position:relative; border:1px solid #0A0A0A; border-bottom:0; border-radius:14px 14px 0 0; background:var(--surface); overflow:hidden; font-size:13.5px; color:var(--text); }
.cx button{ font:inherit; color:inherit; }
.cx svg{ flex:none; }

/* Top bar */
.cx-top{ height:48px; display:grid; grid-template-columns:210px 1fr auto; align-items:center; border-bottom:1px solid var(--line); }
.cx-dots{ display:flex; gap:7px; padding:0 16px; }
.cx-dots i{ width:10px; height:10px; border-radius:50%; background:var(--line-2); }
.cx-crumb{ display:flex; align-items:center; gap:8px; padding:0 20px; color:var(--faint); font-size:13px; min-width:0; }
.cx-crumb b{ color:var(--text); font-weight:500; white-space:nowrap; }
.cx-search{ display:flex; align-items:center; gap:10px; height:30px; width:min(340px, 34vw); margin-left:auto; padding:0 8px 0 12px; border:1px solid var(--line); border-radius:8px; background:var(--bg); color:var(--faint); font-size:12.5px; }
.cx-search svg{ width:13px; height:13px; }
.cx-search span{ flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cx-search kbd{ font:11px var(--mono); color:var(--muted); border:1px solid var(--line-2); border-radius:5px; padding:1px 6px; }
.cx-me{ display:flex; align-items:center; gap:14px; padding:0 16px 0 20px; color:var(--muted); }
.cx-me svg{ width:16px; height:16px; }
.cx-av{ width:28px; height:28px; border-radius:50%; background:var(--raise); border:1px solid var(--line-2); display:grid; place-items:center; font:500 11px var(--sans); color:var(--text); }

/* Body */
.cx-body{ display:grid; grid-template-columns:210px 1fr; height:540px; }
.cx-side{ border-right:1px solid var(--line); padding:14px 10px; display:flex; flex-direction:column; gap:2px; }
.cx-brand{ display:flex; align-items:center; gap:10px; padding:4px 10px 16px; font-weight:500; font-size:14px; }
.cx-brand img{ width:20px; height:20px; }
.cx-nav{ display:flex; align-items:center; gap:10px; width:100%; padding:7px 10px; border:0; border-radius:7px; background:none; color:var(--muted); cursor:pointer; text-align:left; font-size:13.5px; transition:background .15s, color .15s; }
.cx-nav svg{ width:15px; height:15px; }
.cx-nav small{ margin-left:auto; font:11px var(--mono); color:var(--faint); }
.cx-nav:hover{ color:var(--text); }
.cx-nav[aria-current="page"]{ background:var(--raise); color:var(--text); }
.cx-status{ margin-top:auto; padding:12px 10px 4px; border-top:1px solid var(--line); font-size:12px; color:var(--muted); display:grid; gap:4px; }
.cx-status b{ display:flex; align-items:center; gap:8px; color:var(--text); font-weight:500; }
.cx-main{ position:relative; min-width:0; overflow:hidden; }
.cx-view{ position:absolute; inset:0; overflow:hidden; display:none; }
.cx-view.on{ display:block; }
@media (prefers-reduced-motion:no-preference){
  .cx-view.on{ animation:cxin .35s ease; }
  @keyframes cxin{ from{ opacity:0; transform:translateY(5px); } }
}
.cx-h{ display:flex; justify-content:space-between; align-items:center; gap:12px; height:56px; padding:0 20px; border-bottom:1px solid var(--line); }
.cx-h h3{ font-size:15px; font-weight:500; letter-spacing:-0.01em; margin:0; }
.cx-h span{ font:12px var(--mono); color:var(--faint); }
.cx-btn{ display:inline-flex; align-items:center; gap:7px; height:28px; padding:0 11px; border:1px solid var(--line-2); border-radius:7px; background:none; font-size:12.5px; cursor:pointer; white-space:nowrap; transition:border-color .15s, background .15s; }
.cx-btn:hover{ border-color:var(--muted); }
.cx-btn svg{ width:13px; height:13px; color:var(--muted); }
.cx-btn.pri{ background:var(--text); color:var(--bg); border-color:var(--text); }
.cx-btn.pri:hover{ background:#fff; }
.cx-pill{ display:inline-flex; align-items:center; gap:6px; height:22px; padding:0 9px; border-radius:999px; font-size:11.5px; color:var(--muted); border:1px solid var(--line-2); white-space:nowrap; }
.cx-pill.ok{ color:var(--green); border-color:rgba(47,180,99,.35); }
.cx-pill.due{ color:#E9B949; border-color:rgba(233,185,73,.35); }
.cx-dot{ width:7px; height:7px; border-radius:50%; background:var(--green); flex:none; }

/* Services view: list + detail */
.cx-svc{ display:grid; grid-template-columns:1fr 380px; height:100%; }
.cx-list{ border-right:1px solid var(--line); min-width:0; }
.cx-row{ display:grid; grid-template-columns:auto 1fr auto; gap:3px 12px; align-items:center; width:100%; padding:13px 20px; border:0; border-bottom:1px solid var(--line); background:none; text-align:left; cursor:pointer; transition:background .15s; }
.cx-row:hover{ background:var(--raise); }
.cx-row[aria-pressed="true"]{ background:var(--raise); box-shadow:inset 2px 0 0 var(--blue); }
.cx-ico{ width:30px; height:30px; border-radius:8px; border:1px solid var(--line-2); display:grid; place-items:center; grid-row:span 2; color:var(--muted); }
.cx-ico svg{ width:14px; height:14px; }
.cx-row b{ font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cx-row small{ grid-column:2; color:var(--faint); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cx-row .cx-pill{ grid-row:span 2; }
.cx-det{ padding:16px 20px; display:flex; flex-direction:column; gap:14px; min-width:0; overflow:hidden; }
.cx-det-h{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.cx-det-h h4{ margin:0; font-size:15px; font-weight:500; letter-spacing:-0.01em; }
.cx-det-h p{ margin:2px 0 0; font-size:12px; color:var(--faint); }
.cx-acts{ display:flex; gap:6px; flex-wrap:wrap; }
.cx-chart{ display:grid; gap:8px; }
.cx-chart .row{ display:flex; justify-content:space-between; font-size:12px; color:var(--muted); }
.cx-chart .row b{ color:var(--text); font-weight:500; }
.cx-bars{ display:flex; align-items:flex-end; gap:3px; height:54px; }
.cx-bars i{ flex:1; background:var(--line-2); border-radius:2px 2px 0 0; height:var(--h); transform-origin:bottom; }
.cx-bars i:last-child{ background:var(--blue); }
@media (prefers-reduced-motion:no-preference){
  .cx-view.on .cx-bars i{ animation:cxbar .6s cubic-bezier(.2,.7,.2,1) both; animation-delay:calc(var(--k) * 12ms); }
  @keyframes cxbar{ from{ transform:scaleY(.08); } }
}
.cx-meter{ display:grid; gap:6px; }
.cx-meter .row{ display:flex; justify-content:space-between; font-size:12px; color:var(--muted); }
.cx-meter .row b{ color:var(--text); font-weight:500; }
.cx-meter .bar{ height:4px; border-radius:2px; background:var(--line); overflow:hidden; }
.cx-meter .bar i{ display:block; height:100%; width:var(--w); background:var(--blue); border-radius:2px; }
.cx-checks{ border-top:1px solid var(--line); }
.cx-checks div{ display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid var(--line); font-size:12.5px; color:var(--muted); }
.cx-checks b{ display:flex; align-items:center; gap:7px; color:var(--text); font-weight:500; }

.cx-add{ display:flex; align-items:center; gap:12px; padding:16px 20px; font-size:12px; color:var(--faint); }

/* Overview */
.cx-tiles{ display:grid; grid-template-columns:repeat(4, 1fr); border-bottom:1px solid var(--line); }
.cx-tiles div{ padding:16px 20px 18px; }
.cx-tiles div + div{ border-left:1px solid var(--line); }
.cx-tiles span{ display:block; font-size:12px; color:var(--muted); }
.cx-tiles b{ display:block; margin-top:6px; font-size:24px; font-weight:500; letter-spacing:-0.03em; }
.cx-ov{ display:grid; grid-template-columns:1fr 1fr; }
.cx-ov > div{ padding:16px 20px; min-width:0; }
.cx-ov > div + div{ border-left:1px solid var(--line); }
.cx-ov h5{ margin:0 0 14px; font-size:13px; font-weight:500; display:flex; justify-content:space-between; }
.cx-ov h5 span{ font:12px var(--mono); color:var(--faint); font-weight:400; }
.cx-up{ display:flex; gap:3px; height:34px; }
.cx-up i{ flex:1; border-radius:2px; background:var(--green); opacity:.85; }
.cx-up-l{ display:flex; justify-content:space-between; margin-top:8px; font:11px var(--mono); color:var(--faint); }
.cx-feed{ display:grid; }
.cx-feed div{ display:grid; grid-template-columns:16px 1fr auto; gap:10px; align-items:start; padding:9px 0; border-bottom:1px solid var(--line); font-size:12.5px; color:var(--muted); }
.cx-feed div:first-child{ padding-top:0; }
.cx-feed svg{ width:14px; height:14px; margin-top:2px; color:var(--muted); }
.cx-feed b{ color:var(--text); font-weight:500; }
.cx-feed time{ font:11px var(--mono); color:var(--faint); white-space:nowrap; }

/* Tables (domains, backups, invoices) */
.cx-tbl{ width:100%; border-collapse:collapse; }
.cx-tbl th{ text-align:left; font:500 11.5px var(--mono); color:var(--faint); padding:10px 20px; border-bottom:1px solid var(--line); }
.cx-tbl td{ padding:12px 20px; border-bottom:1px solid var(--line); color:var(--muted); white-space:nowrap; }
.cx-tbl td:first-child{ color:var(--text); font-weight:500; }
.cx-tbl .r{ text-align:right; }
.cx-tog{ position:relative; width:30px; height:18px; border-radius:999px; border:0; background:var(--line-2); cursor:pointer; padding:0; vertical-align:middle; transition:background .2s; }
.cx-tog::after{ content:""; position:absolute; top:2px; left:2px; width:14px; height:14px; border-radius:50%; background:var(--bg); transition:transform .2s; }
.cx-tog[aria-checked="true"]{ background:var(--blue); }
.cx-tog[aria-checked="true"]::after{ transform:translateX(12px); }
.cx-prog{ display:inline-block; width:70px; height:4px; border-radius:2px; background:var(--line); overflow:hidden; vertical-align:middle; margin-right:8px; }
.cx-prog i{ display:block; height:100%; width:100%; background:var(--blue); transform:scaleX(0); transform-origin:left; transition:transform 1.4s ease; }
.cx-prog.go i{ transform:scaleX(1); }

/* Support */
.cx-banner{ display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 20px; border-bottom:1px solid var(--line); font-size:12.5px; color:var(--muted); }
.cx-banner b{ color:var(--text); font-weight:500; }
.cx-thread{ padding:16px 20px; display:grid; gap:14px; }
.cx-msg{ display:grid; grid-template-columns:28px 1fr; gap:12px; }
.cx-msg .cx-av{ width:28px; height:28px; }
.cx-msg .cx-av.dz{ background:var(--blue); border-color:var(--blue); color:var(--on-blue); }
.cx-msg header{ display:flex; gap:10px; align-items:baseline; font-size:12.5px; }
.cx-msg header b{ font-weight:500; }
.cx-msg header time{ font:11px var(--mono); color:var(--faint); }
.cx-msg p{ margin:4px 0 0; color:var(--muted); font-size:13px; line-height:1.55; max-width:44em; }
.cx-reply{ margin:0 20px; display:flex; align-items:center; gap:10px; height:40px; padding:0 8px 0 14px; border:1px solid var(--line-2); border-radius:9px; color:var(--faint); font-size:12.5px; }
.cx-reply span{ flex:1; }

/* Phone: nav becomes a scrolling strip, panes stack */
@media (max-width:1023px){
  .cx-top{ grid-template-columns:auto 1fr auto; }
  .cx-search{ display:none; }
  .cx-body{ grid-template-columns:1fr; height:auto; }
  .cx-side{ flex-direction:row; overflow-x:auto; border-right:0; border-bottom:1px solid var(--line); padding:8px 10px; scrollbar-width:none; }
  .cx-side::-webkit-scrollbar{ display:none; }
  .cx-brand, .cx-status{ display:none; }
  .cx-nav{ width:auto; flex:none; }
  .cx-nav small{ display:none; }
  .cx-main{ height:520px; }
  .cx-svc{ grid-template-columns:1fr 300px; }
}
@media (max-width:719px){
  .cx-crumb{ padding:0 12px; }
  .cx-me .bell{ display:none; }
  .cx-main{ height:600px; }
  .cx-svc{ grid-template-columns:1fr; grid-template-rows:auto 1fr; }
  .cx-list{ border-right:0; border-bottom:1px solid var(--line); }
  .cx-list .cx-row:nth-of-type(n+3), .cx-add{ display:none; }
  .cx-acts .cx-btn:nth-child(n+3), .cx-checks div:nth-child(n+3), .cx-meter + .cx-meter{ display:none; }
  .cx-tiles{ grid-template-columns:1fr 1fr; }
  .cx-tiles div:nth-child(3){ border-left:0; }
  .cx-tiles div:nth-child(n+3){ border-top:1px solid var(--line); }
  .cx-ov{ grid-template-columns:1fr; }
  .cx-ov > div + div{ border-left:0; border-top:1px solid var(--line); }
  .cx-tbl .hide-s{ display:none; }
  .cx-tbl th, .cx-tbl td{ padding-left:14px; padding-right:14px; }
  .cx-h, .cx-thread, .cx-banner{ padding-left:14px; padding-right:14px; }
  .cx-reply{ margin:0 14px; }
}

/* Support view: reply box sits at the bottom */
.cx-view[data-v="support"].on{ display:flex; flex-direction:column; }
.cx-view[data-v="support"] .cx-reply{ margin-top:auto; margin-bottom:16px; }
