/* Page-layout glue for cpanel-web. */

/* Border-box reset so a width:100% padded container includes its padding */
*, *::before, *::after { box-sizing: border-box; }

/* Global anchor reset: no stylesheet resets <a>, so links underline without it */
a { text-decoration: none; }

/* A checkbox (the Terms box, terms.js) drawn with the design system's field edge (cui .c-input: --c-faint, 3:1 on the field and the
   card in both themes, SC 1.4.11), at the native box's 13 px so nothing beside it moves; the native box drew no edge of its own on
   the dark card (ui-assert: field edge 1.00). Ticked: the brand's fill and its ink's tick, a mask so forced colours keep it. */
input[type="checkbox"] { appearance: none; -webkit-appearance: none; display: inline-grid; place-content: center; width: 13px; height: 13px; margin: 0;
  border: 1px solid var(--c-faint); border-radius: 3px; background: var(--c-surface-2); cursor: pointer; }
input[type="checkbox"]::before { content: ""; width: 9px; height: 9px; background-color: var(--c-on-brand); scale: 0;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.6 2.6L10 3.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
input[type="checkbox"]:checked { border-color: var(--c-brand); background-color: var(--c-brand); }
input[type="checkbox"]:checked::before { scale: 1; }
input[type="checkbox"]:focus-visible { outline: none; box-shadow: var(--c-focus); }
@media (forced-colors: active) { input[type="checkbox"]::before { background-color: CanvasText; } }

/* Invisible scrollbars everywhere (operator directive): hidden chrome, still scrollable */
* { scrollbar-width: none !important; -ms-overflow-style: none !important; }
*::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }

.cw-cluster { display: flex; align-items: center; gap: var(--c-s-6); min-width: 0; }
.cw-mark { display: inline-flex; }

.cw-mono { font-family: var(--c-font-mono); font-size: 12px; color: var(--c-text); word-break: break-all; }
.cw-idcell { display: inline-flex; align-items: center; gap: var(--c-s-2); min-width: 0; }
/* A long id in a kv row (a 44-char wallet at 390 px overflowed its card by 59 px): the value shrinks and the id truncates with an ellipsis
   while its copy button stays whole. Scoped to kv rows: the one-time key reveal shows its key in full. */
.c-kv > .c-v:has(> .cw-idcell) { flex: 0 1 auto; min-width: 0; }
.c-v > .cw-idcell { max-width: 100%; }
.c-v > .cw-idcell > .cw-mono { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cw-stack { display: flex; flex-direction: column; gap: var(--c-s-8); }
.cw-stack--tight { display: flex; flex-direction: column; gap: var(--c-s-5); }
.cw-row { display: flex; align-items: center; gap: var(--c-s-6); flex-wrap: wrap; }
.cw-between { display: flex; align-items: center; justify-content: space-between; gap: var(--c-s-6); }
.cw-actions { display: flex; gap: var(--c-s-5); flex-wrap: wrap; }
.cw-empty { border: 1px dashed var(--c-line-2); border-radius: var(--c-r-card); padding: 40px; text-align: center; color: var(--c-muted); font-family: var(--c-font-body); font-size: 13px; }

.cw-kicker-rule { display: flex; align-items: center; gap: 14px; margin-bottom: var(--c-s-4); }
.cw-kicker-rule::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.cw-kicker-n { color: var(--c-faint); }
.cw-kicker-rule .is-p { color: var(--c-brand); }
.cw-kicker-rule .is-r { color: var(--c-danger); }

.cw-sol { display: inline-flex; align-items: center; gap: 7px; font-family: var(--c-font-mono); font-weight: 500; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-faint); }
.cw-sol svg { opacity: .7; }

.cw-center { height: 100dvh; display: grid; place-items: center; grid-template-rows: minmax(0, 1fr) auto; padding: var(--c-s-10); box-sizing: border-box; overflow: hidden; }
.cw-center > .cw-authcard { max-height: 100%; overflow-y: auto; }   /* one screen: a tall card scrolls inside itself */
.cw-authcard { width: 100%; max-width: 380px; }
/* the I agree card above the sign-in card (login-panel.js, item 76): the card's width, centred in the modal and on /login; on /login
   the stack is capped at its row and the sign-in card scrolls inside it, so the agreement stays in view */
.cw-authstack { width: 100%; max-width: 380px; margin: auto; display: flex; flex-direction: column; }
.cw-center > .cw-authstack { max-height: 100%; }
.cw-center .cw-authstack > .cw-authcard { min-height: 0; overflow-y: auto; }
.cw-pause { height: 30px; padding: 0 var(--c-s-5); }   /* the pause button (chrome.js) is this size in a footer and under a sign-in card: a ghost button alone stood 23 px, under the 24 px target */

.cw-shell { display: grid; grid-template-rows: auto 1fr auto; height: 100dvh; min-height: 0; overflow: hidden; }


.cw-brand { font-family: var(--c-font-display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; color: var(--c-text); display: inline-flex; align-items: baseline; gap: 8px; }
.cw-brand span { font-family: var(--c-font-mono); font-weight: 500; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--c-faint); }
.cw-overview { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; overflow: hidden; }

.cw-overview .c-stat { padding: var(--c-s-4) var(--c-s-7); }
.cw-overview .c-val { font-size: 17px; }
.cw-overview .c-sub { font-size: 9.5px; }
.cw-ov-lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--c-s-8); align-items: start; }
.cw-svc-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--c-s-8); align-content: start; }
.cw-svc { display: flex; align-items: center; gap: var(--c-s-4); padding: 3px 0; border-bottom: 1px dashed var(--c-line-soft); }
.cw-svc-name { font-family: var(--c-font-mono); font-size: 12px; color: var(--c-text); }
.cw-svc-rps { font-family: var(--c-font-mono); font-variant-numeric: tabular-nums; font-size: 11px; color: var(--c-muted); white-space: nowrap; }
.cw-svc-st { letter-spacing: .1em; }
.cw-svc-st.is-up { color: var(--c-ok); }
.cw-svc-st.is-down { color: var(--c-danger); }
.cw-svc-st.is-unknown { color: var(--c-faint); }
.c-dot.is-down { background: var(--c-danger); }

.cw-foot { display: flex; align-items: center; gap: var(--c-s-8); min-height: 46px; flex-shrink: 0; padding: 0 var(--c-s-10); border-top: 1px solid var(--c-line); background: rgb(from var(--c-bg) r g b / .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-family: var(--c-font-body); font-size: 12px; color: var(--c-faint); white-space: nowrap; flex-wrap: wrap; justify-content: flex-end; }   /* the pills that do not fit take a second row at any width: a scrolling row hid Privacy and Refunds off the edge */
.cw-foot-docs { color: var(--c-text); border: 1px solid var(--c-line); border-radius: var(--c-r-ctl); padding: 12px 10px; font-weight: 500; }
.cw-foot-docs:hover { border-color: var(--c-line-2); background: var(--c-surface-2); }



.cw-ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cw-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: var(--c-s-10); background: var(--c-scrim); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: c-fade var(--c-dur-2) var(--c-ease); }

/* a toast's message (ui.js): the body face in sentence case, as the landing writes prose; the tone rides the toast's edge and dot */
.cw-toast-msg { display: block; font-family: var(--c-font-body); font-size: 13px; line-height: 1.4; color: var(--c-text); }
.cw-toast-msg::first-letter { text-transform: uppercase; }

.cw-reload { position: fixed; right: var(--c-s-8); bottom: var(--c-s-8); z-index: 60; display: flex; align-items: center; gap: var(--c-s-7); animation: c-pop var(--c-dur-2) var(--c-ease); }


.cw-hero { display: flex; flex-direction: column; gap: var(--c-s-6); }

.cw-faint { color: var(--c-faint) !important; }


.cw-login { display: flex; flex-direction: column; gap: var(--c-s-5); margin-top: var(--c-s-6); }
.cw-or { display: flex; align-items: center; gap: var(--c-s-5); }
.cw-or-line { height: 1px; flex: 1; background: var(--c-line); }
.cw-social { display: flex; flex-wrap: wrap; gap: var(--c-s-5); }
@media (max-width: 900px) { .cw-social .c-btn { min-height: 44px; } }   /* a wrapped wallet row: cui lifts only the secondary button, the ghost one stood 23 px */
.cw-brandmark { display: inline-flex; align-items: center; }


.cw-spark { width: 100%; height: 90px; display: block; }

@media (max-width: 900px) {
  .cw-shell { height: auto; min-height: 100dvh; overflow: visible; }   /* the admin console's shell; the dashboard's keeps one screen (dashboard.css) */
  .cw-overview { flex: 0 0 auto; max-height: none; overflow: visible; }
  .cw-ov-lower { grid-template-columns: 1fr; }
  /* min-width:0 stops the grid/flex auto-minimum from inflating these containers */
  .c-main { min-width: 0; }
  .c-content { min-width: 0; max-width: 100%; }

}


/* fixed under the 56px bar: the bar is overflow-x:auto and would clip an absolute child */
.cw-fleetpop { position: fixed; top: 60px; left: var(--c-s-8); z-index: 90; width: min(920px, calc(100vw - 2 * var(--c-s-8))); max-height: calc(100dvh - 96px); display: none; flex-direction: column; white-space: normal; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--c-r-card); box-shadow: var(--c-shadow-pop); overflow: hidden; }
.cw-fleetpop.is-open { display: flex; animation: c-pop var(--c-dur-2) var(--c-ease); }
.cw-fleetpop .cw-overview { flex: 1 1 auto; min-height: 0; overflow-y: auto; }

@media (max-width: 900px) {
  .cw-fleetpop { left: var(--c-s-4); right: var(--c-s-4); width: auto; }

}
