/* Hostking panel. Matches hostking.host (css/site.css): DM Sans for text,
   Newsreader for page titles, Geist Mono for small labels and technical values. */
@font-face { font-family: 'Inter'; src: url('/fonts/DMSans-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/fonts/DMSans-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/fonts/Newsreader-Variable.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/fonts/Newsreader-Italic-Variable.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --font-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --blue: #1368E5; --blue-hover: #0F52B5; --navy: #0B1B3A; --side: #081633; --navy-2: #13254A; --navy-line: rgba(255,255,255,.12);
  --muted: #55637C; --border: #E5EAF2; --surface: #F7F8FB; --tint: #EEF3FC; --green: #1C7A45;
  --amber: #C77700; --amber-text: #8A4B00; --amber-bg: #FDF3E1; --red: #B42318; --red-bg: #FDECEA;
  --side-text: #B9C5DB; --side-accent: #6FAEFF;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font-sans); font-size: 16px; line-height: 1.55; color: var(--navy); background: var(--surface); }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
.mono { font-family: var(--font-mono); font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Shell */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 240px; max-width: 256px; background: var(--side); color: var(--side-text); padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 12px 30px; color: #fff; }
.brand span { font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.brand .tag { font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--side-accent); border: 1px solid var(--navy-line); border-radius: 6px; padding: 2px 8px; }
.nav-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 8px; color: var(--side-text); font-weight: 500; }
.nav-link > span { display: flex; align-items: center; gap: 12px; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav-link.active { background: var(--navy-2); color: #fff; box-shadow: inset 3px 0 0 var(--side-accent); }
.nav-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; text-align: center; }
.side-foot { margin-top: auto; padding-top: 24px; }
.main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 40px; background: #fff; border-bottom: 1px solid var(--border); }
.search { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 14px; border: 1px solid var(--border); border-radius: 8px; flex: 0 1 440px; color: var(--muted); }
.search input { border: 0; outline: none; background: none; font: 14px var(--font-sans); color: var(--navy); flex: 1; min-width: 0; }
.user-menu { display: flex; align-items: center; gap: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 999px; background: var(--tint); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.content { padding: 36px 40px 48px; display: flex; flex-direction: column; gap: 24px; }

/* Type */
h1.page { margin: 0; font-family: var(--font-serif); font-weight: 360; font-size: 38px; letter-spacing: -0.005em; line-height: 1.1; font-optical-sizing: auto; font-variation-settings: 'opsz' 36; text-rendering: geometricPrecision; }
h1.page em { font-style: italic; color: var(--blue); }
h2.section { margin: 0; font-weight: 500; font-size: 20px; letter-spacing: -0.01em; }
.card-title { font-weight: 500; font-size: 16px; }
.stat { font-weight: 300; font-size: 26px; letter-spacing: -0.01em; }
.label { color: var(--muted); font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: .04em; }

/* Building blocks */
.card { background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.card-pad { padding: 20px 24px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 20px 24px 14px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row-between { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 8px; border: 0; font: 500 15px var(--font-sans); cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--tint); color: var(--navy); }
.btn-sm { min-height: 38px; padding: 0 14px; }
.btn-link { background: none; border: 0; color: var(--side-text); font: 500 14px var(--font-sans); cursor: pointer; padding: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.s-green { color: var(--green); } .s-amber { color: var(--amber-text); } .s-red { color: var(--red); } .s-grey { color: var(--muted); }
.nav-link.btn-link { padding: 0 14px; text-align: left; font-size: 15px; }
.card { overflow: hidden; }
.pill { white-space: nowrap; display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--blue); font-size: 13px; font-weight: 500; }
.badge-readonly { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--amber-bg); color: var(--amber-text); font-size: 13px; font-weight: 500; }
.bar { height: 6px; border-radius: 3px; background: var(--tint); width: 100%; }
.bar > span { display: block; height: 6px; border-radius: 3px; background: var(--blue); }
.bar.warn > span { background: var(--amber); }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { white-space: nowrap; text-align: left; padding: 12px 20px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: .04em; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.table td { padding: 15px 20px; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.empty { padding: 28px 24px; color: var(--muted); font-size: 14px; }

/* Forms */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--surface); }
.auth-card { width: 100%; max-width: 420px; padding: 36px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 500; }
.input { min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 8px; font: 15px var(--font-sans); color: var(--navy); background: #fff; }
.input:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
.error { background: var(--red-bg); color: var(--red); border-radius: 8px; padding: 10px 14px; font-size: 14px; margin-bottom: 16px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 20px; }

/* Site cards (client home) */
.site-card { overflow: hidden; display: block; color: inherit; }
.site-shot { height: 120px; background: var(--tint); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.site-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .side { max-width: none; flex-basis: 100%; padding: 16px; }
  .brand { padding-bottom: 12px; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
}
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tool { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.tool .input { min-height: 38px; font-size: 13px; }
.tool .btn { align-self: flex-start; margin-top: auto; }
.tool .input:last-of-type { margin-bottom: 6px; }
/* Client dashboard */
.section-title { display: flex; align-items: center; gap: 10px; margin: 8px 0 -6px; font-family: var(--font-serif); font-weight: 360; font-size: 28px; letter-spacing: -0.005em; font-variation-settings: 'opsz' 36; }
.section-title svg { color: var(--blue); }
.site-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.site-tile { display: flex; align-items: stretch; overflow: hidden; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.site-tile:hover { border-color: #BFD6F8; box-shadow: 0 4px 16px rgba(19,104,229,.08); }
.site-icon { flex: 0 0 76px; display: flex; align-items: center; justify-content: center; background: var(--tint); color: var(--blue); }
.site-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; min-width: 0; }
.site-body .card-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 14px; align-items: center; }
.site-facts .warn { color: var(--amber-text); }
.count-tile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 12px; }
.count { font-family: var(--font-serif); font-weight: 360; font-size: 40px; line-height: 1; margin-bottom: 6px; }
.big-number { font-family: var(--font-serif); font-weight: 360; font-size: 40px; line-height: 1.1; margin: 14px 0 12px; letter-spacing: -0.01em; }
.chart { display: block; width: 100%; height: 150px; }
.chart-x { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.rings { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.ring-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ring-legend li { display: flex; gap: 10px; align-items: flex-start; }
.ring-legend .swatch { width: 10px; height: 10px; border-radius: 3px; margin-top: 6px; flex: none; }
.ring-label { font-weight: 500; }
@media (max-width: 640px) { .site-row { grid-template-columns: 1fr; } .count { font-size: 32px; } .big-number { font-size: 32px; } }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 22px; cursor: pointer; border-width: 1.5px; }
.plan-card input { position: absolute; opacity: 0; }
.plan-card:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(19,104,229,.12); }
.plan-card:has(input:focus-visible) { outline: 3px solid #8DB4F5; outline-offset: 2px; }
.plan-facts { display: grid; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 14px; }
.attention { list-style: none; margin: 0; padding: 4px 0; }
.attention li { display: flex; align-items: center; gap: 12px; padding: 10px 24px; border-top: 1px solid var(--border); }
.attention li:first-child { border-top: 0; }
.attention a { color: inherit; }
.attention a:hover { color: var(--blue); }
.dot { width: 9px; height: 9px; border-radius: 99px; flex: none; }
.dot-red { background: var(--red); } .dot-amber { background: var(--amber); } .dot-grey { background: #9AA6BA; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.settings-grid fieldset { margin: 0; padding: 16px; border: 1px solid var(--border); border-radius: 10px; display: grid; gap: 10px; align-content: start; }
.settings-grid legend { padding: 0 6px; }
.settings-grid label:not(.check) { display: grid; gap: 4px; font-size: 14px; font-weight: 500; }
.settings-grid .input { min-height: 38px; }
.sec-jails { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sec-jail { padding: 14px; border: 1px solid var(--border); border-radius: 10px; }
.wp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wp-row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.wp-row-actions .btn { min-height: 32px; padding: 0 12px; font-size: 13px; }
.perf-box { padding: 16px; border: 1px solid var(--border); border-radius: 10px; display: flex; flex-direction: column; gap: 6px; }
.perf-box p { margin: 4px 0 10px; }
.php-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-top: 8px; }
.php-form label { display: grid; gap: 3px; font-size: 13px; font-weight: 500; }
.php-form .input { min-height: 36px; }
.php-form .btn { grid-column: 1 / -1; justify-self: start; }
.btn-danger { background: #fff; color: var(--red); border: 1.5px solid var(--red); }
.btn-danger:hover { background: var(--red-bg); color: var(--red); }
.mail-more { position: relative; }
.mail-more > summary { list-style: none; }
.mail-more > summary::-webkit-details-marker { display: none; }
.mail-more[open] > summary { background: var(--bg, #f5f7fb); }
/* "More" opens a full-width row under the mailbox (a pop-up would be cut off by the scrolling table). */
.mail-extra { display: none; }
tr:has(.mail-more[open]) + .mail-extra { display: table-row; }
.mail-extra > td { background: var(--bg, #f7f8fb); }
.mail-pop { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: start; padding: 6px 0; text-align: left; }
.mail-form { display: grid; gap: 8px; }
.mail-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 500; }
.mail-form textarea.input { min-height: 72px; padding: 8px 10px; resize: vertical; font: 400 14px var(--font-sans); }
.mail-form .btn { justify-self: start; }
.cron-form { display: grid; grid-template-columns: 220px 1fr auto; gap: 10px; align-items: end; margin-top: 14px; }
.cron-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 500; }
.cron-form .input { min-height: 38px; }
.cron-form .cron-custom:not([hidden]) { grid-column: 1; }
@media (max-width: 760px) { .cron-form { grid-template-columns: 1fr; } }
.cron-form [hidden], .mail-form [hidden] { display: none; }
.site-layout { margin-top: 18px; }
.site-menu { display: flex; gap: 2px; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; padding-bottom: 1px; border-bottom: 1px solid var(--border); margin-bottom: 22px; scrollbar-width: none; }
.site-menu a { padding: 10px 14px; white-space: nowrap; font-weight: 500; font-size: 15px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.site-menu a:hover { color: var(--navy); }
.site-menu a.active { color: var(--navy); border-bottom-color: var(--blue); }
.site-main { min-width: 0; }
.site-main > section, .site-main > .grid { margin-bottom: 18px; }
.site-title { margin: 0 0 16px; font-family: var(--font-serif); font-weight: 360; font-size: 32px; letter-spacing: -0.005em; font-variation-settings: 'opsz' 36; }
.notice { border: 1px solid #BFD6F8; background: #EEF3FC; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }
.details-grid .mono { word-break: break-all; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tool-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px 18px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tool-card .tool-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--tint); color: var(--blue); display: grid; place-items: center; margin-bottom: 4px; }
.tool-card h3 { margin: 0; font-size: 16px; font-weight: 600; }
.tool-card p { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); }
.tool-card form, .tool-card > .btn { margin-top: auto; }
.tool-card .state { font-size: 12px; font-family: var(--font-mono); }
.details-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 24px; }
.details-grid .label { margin-bottom: 4px; }
.copy-val { display: flex; align-items: center; gap: 6px; }
.copy-val button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px 4px; border-radius: 6px; font-size: 13px; }
.copy-val button:hover { background: var(--tint); color: var(--blue); }
.danger-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--tint); border-top-color: var(--blue); border-radius: 50%; margin: 0 auto; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.usage-row { display: grid; grid-template-columns: 160px 1fr 140px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.usage-row:last-child { border-bottom: 0; }
@media (max-width: 640px) { .usage-row { grid-template-columns: 1fr; gap: 4px; } }
.recent-job { border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: 10px; background: #fff; padding: 12px 16px; margin-bottom: 18px; }
.recent-job.recent-done { border-left-color: var(--green); }
.recent-job.recent-failed { border-left-color: var(--red); }
.recent-job pre { white-space: pre-wrap; background: var(--surface); padding: 10px; border-radius: 8px; margin: 8px 0 0; font-size: 13px; }
dialog.confirm { border: 0; border-radius: 14px; padding: 0; width: min(520px, 92vw); box-shadow: 0 24px 60px rgba(8, 22, 51, .25); }
dialog.confirm::backdrop { background: rgba(8, 22, 51, .45); }
dialog.confirm .dlg-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
dialog.confirm .dlg-head h3 { margin: 0; font-size: 19px; }
dialog.confirm .dlg-body { padding: 18px 22px; }
dialog.confirm .what { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
dialog.confirm .what h4 { margin: 0 0 6px; font-size: 14px; }
dialog.confirm .what p { margin: 0; font-size: 14px; }
dialog.confirm .dlg-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.log-view { background: #081633; color: #E5EAF2; border-radius: 10px; padding: 14px; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-all; max-height: 560px; overflow: auto; margin: 0; }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.subtabs a { padding: 6px 12px; border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--navy); border: 1px solid var(--border); }
.subtabs a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.site-menu::-webkit-scrollbar { display: none; }
.rule-form { display: grid; grid-template-columns: 1fr 1.4fr 160px auto; gap: 10px; align-items: end; margin-top: 12px; }
.rule-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 500; }
.rule-form .input { min-height: 38px; }
@media (max-width: 760px) { .rule-form { grid-template-columns: 1fr; } }
.btn-google { width: 100%; background: #fff; color: var(--navy); border: 1.5px solid var(--border); font-weight: 500; }
.btn-google:hover { background: var(--surface); color: var(--navy); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.move-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.move-form > label { display: grid; gap: 4px; font-size: 13px; font-weight: 500; }
.move-form .full { grid-column: 1 / -1; }
.move-form .when { border: 0; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.move-form .when-at { display: grid; gap: 4px; font-size: 13px; font-weight: 500; }
.move-form .when-at[hidden] { display: none; }
.move-form textarea.input { min-height: 80px; padding: 8px 10px; font: 400 14px var(--font-sans); }
@media (max-width: 760px) { .move-form { grid-template-columns: 1fr; } }
.move-form > label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; font-size: 14px; }
.copy-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--tint); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.copy-box .mono { word-break: break-all; }
.list-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.list-tools .bulk-bar { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.list-tools .bulk-bar[hidden] { display: none; }
#site-table tr[hidden] { display: none; }

.staff-note{background:#FFF7E6;border:1px solid #F5D9A3;color:#7A4B00;border-radius:10px;padding:10px 14px;margin-bottom:14px;font-size:14px}
.staff-note a{color:#7A4B00;font-weight:600;text-decoration:underline}

.notice{background:#EEF3FC;border:1px solid #BFD6F8;color:#14396F;border-radius:10px;padding:10px 14px;margin-bottom:16px;font-size:14px}
.login-as-bar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:#FFF7E6;border-bottom:1px solid #F5D9A3;color:#7A4B00;padding:10px 24px;font-size:14px}
.login-as-bar .btn{background:#fff}
.login-hist td{font-size:13px}
.login-hist .bad{color:var(--red)}

/* Billing */
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.inv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; margin-top: 18px; }
@media (max-width: 960px) { .inv-layout { grid-template-columns: 1fr; } }
.inv-layout > aside { display: grid; gap: 16px; }
.inv-layout .card { margin: 0; }
.inv-doc .inv-head { display: flex; justify-content: space-between; gap: 20px; padding: 22px 20px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.inv-title { font-family: var(--font-serif); font-size: 26px; line-height: 1.1; }
.inv-meta { display: flex; justify-content: space-between; gap: 20px; padding: 16px 20px; flex-wrap: wrap; font-size: 14px; }
.inv-dates { display: grid; gap: 4px; min-width: 200px; }
.inv-dates > div { display: flex; justify-content: space-between; gap: 18px; }
.inv-items tfoot td { padding-top: 6px; padding-bottom: 6px; border-bottom: 0; }
.inv-items tfoot tr:first-child td { border-top: 1px solid var(--border); padding-top: 12px; }
.inv-items .inv-due td { font-weight: 700; font-size: 17px; border-top: 2px solid var(--navy); padding-top: 10px; }
.pay-eft { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.bill-due { background: #081633; color: #fff; border-color: #081633; border-top: 4px solid #1368E5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label { display: grid; gap: 4px; font-size: 13px; font-weight: 500; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters .input { min-height: 38px; width: auto; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.money-in { color: var(--green); } .money-out { color: var(--red); }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.domain-result { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.tld-prices { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; color: var(--muted); }
.tld-prices b { color: var(--navy); }

.plan-pick { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.plan-pick:has(input:checked) { border-color: var(--blue); background: var(--tint); }

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.dns-form { display: grid; grid-template-columns: 170px 1fr 110px 2fr 120px auto; gap: 10px; align-items: end; }
.dns-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 500; min-width: 0; }
.dns-form .input { min-height: 38px; }
.mail-extra .dns-form { display: flex; flex-wrap: wrap; } .mail-extra .dns-form label { flex: 1 1 110px; } .mail-extra .dns-form .wide { flex: 3 1 260px; }
@media (max-width: 900px) { .dns-form { grid-template-columns: 1fr 1fr; } .dns-form .wide { grid-column: 1 / -1; } }
/* File pickers: the button sits in the middle of the box like the other fields. */
input.input[type=file] { padding: 6px 8px; line-height: 30px; font-size: 14px; color: var(--muted, #55637C); }
input.input[type=file]::file-selector-button { height: 30px; margin: 0 12px 0 0; padding: 0 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg, #F7F8FB); color: var(--navy); font: 500 14px var(--font-sans); cursor: pointer; vertical-align: middle; }
input.input[type=file]::file-selector-button:hover { border-color: var(--blue); }
.spam-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.spam-form .full { grid-column: 1 / -1; }
.spam-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 500; }
.spam-form .input { min-height: 38px; }
.spam-form textarea.input { min-height: 90px; padding: 8px 10px; font-size: 13px; }
@media (max-width: 700px) { .spam-form { grid-template-columns: 1fr; } }
.ticket-img { display: block; margin: 8px 0; max-width: 100%; }
.ticket-img img { max-width: min(100%, 720px); max-height: 520px; border: 1px solid var(--border); border-radius: 8px; display: block; }
.nav-group { margin: 14px 14px 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--side-text); opacity: .72; }
.plan-usage { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 18px; }
.plan-usage .bar { height: 4px; border-radius: 4px; background: var(--border); margin-top: 4px; overflow: hidden; }
.plan-usage .bar span { display: block; height: 100%; border-radius: 4px; }

/* Public help, announcements and status pages */
body.public { background: var(--bg, #F5F7FB); }
.pub-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 24px; background: #fff; border-bottom: 1px solid var(--border); }
.pub-head nav { display: flex; gap: 18px; flex-wrap: wrap; }
.pub-head nav a { color: var(--text, #0B1B3A); font-weight: 500; }
.pub-head nav a.active { color: var(--blue); }
.pub-main { max-width: 880px; margin: 0 auto; padding: 32px 16px 64px; }
.article-body { line-height: 1.65; }
.article-body img { max-width: 100%; height: auto; }
.article-body pre, .article-body code { white-space: pre-wrap; word-break: break-word; }
.article-body table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.article-body td, .article-body th { border: 1px solid var(--border); padding: 6px 10px; }
.kb-list a { display: block; padding: 12px 0; border-top: 1px solid var(--border); }
.kb-list a:first-child { border-top: 0; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* Phones: long names (domains, subjects) wrap instead of widening the page */
h1.page, h2.section, .card-title { overflow-wrap: anywhere; }
.row-between > * { min-width: 0; max-width: 100%; }
@media (max-width: 640px) {
  h1.page { font-size: 30px; }
  .row-between > div:first-child { flex: 1 1 100%; }
}
.side-links { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .side { position: sticky; top: 0; z-index: 30; padding: 10px 16px; }
  .brand { padding: 0; justify-content: flex-start; }
  .brand img { height: 26px; width: auto; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 0 14px; background: none; color: #fff; border: 1px solid var(--navy-line); border-radius: 8px; font: 500 14px var(--font-sans); cursor: pointer; }
  .side-links { display: none; padding-top: 10px; max-height: calc(100vh - 64px); overflow-y: auto; }
  .side.open .side-links { display: flex; }
  .side-foot { padding-top: 12px; }
  .nav-link { min-height: 44px; }
  .topbar { padding-top: 10px; padding-bottom: 10px; }
  .topbar .search { flex: 1 1 auto; }
  .user-menu > span:last-child { display: none; }
}
.check-list { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.check-list legend { padding: 0; margin-bottom: 4px; }
.saved-pick { position: relative; flex: 1 1 220px; }
.saved-pick .results { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; max-height: 280px; overflow-y: auto; background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.saved-pick .results button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; font: 14px var(--font-sans); cursor: pointer; border-bottom: 1px solid var(--border); }
.saved-pick .results button:hover, .saved-pick .results button:focus { background: var(--tint); }
.saved-pick .results small { display: block; color: var(--muted); }
@media (max-width: 900px) { .shell { align-content: flex-start; } .side { align-self: flex-start; } }
/* Form fields never push past their card (grid items default to their content's width) */
.input { max-width: 100%; box-sizing: border-box; }
.move-form > *, .form-grid > *, .cron-form > *, .rule-form > *, .dns-form > *, .spam-form > *, .field-row > *, .grid-2 > *, .grid-3 > * { min-width: 0; }
.move-form label > .input, .form-grid label > .input { width: 100%; }
input[type=file].input { font-size: 13px; }
/* Phones: a table marked .stack shows each row as a small card (first cell on top, the rest underneath) */
@media (max-width: 640px) {
  .table.stack thead { display: none; }
  .table.stack, .table.stack tbody, .table.stack tr { display: block; width: 100%; }
  .table.stack tr { padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .table.stack td { display: inline-block; border: 0; padding: 2px 10px 2px 0; vertical-align: middle; }
  .table.stack td:first-child { display: block; padding: 0 0 4px; }
  .table.stack td[data-label]::before { content: attr(data-label) ' '; color: var(--muted); }
}
@media (max-width: 640px) {
  .table.stack.ticks td:first-child { display: inline-block; padding: 0 8px 0 0; vertical-align: top; }
  .table.stack.ticks td:nth-child(2) { display: inline-block; width: calc(100% - 34px); padding: 0 0 4px; }
  .table.stack td.num { text-align: left !important; }
}
.form-grid > label.check { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.form-grid > label.check input { flex: none; }
/* Staff meetings and notices (shown at the top of staff pages) */
.staff-banners{display:grid;gap:0}
.staff-banner{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:12px 24px;border-bottom:1px solid var(--border);background:#EAF2FF;color:#0B3A82}
.staff-banner.sb-soon{background:#FFF7E6;color:#7A4B00}
.staff-banner.sb-live,.staff-banner.sb-urgent{background:var(--red-bg);color:var(--red)}
.staff-banner.sb-important{background:var(--amber-bg);color:var(--amber-text)}
.staff-banner.sb-info{background:#F3F6FA;color:inherit}

/* ---- Consistent forms and tables everywhere (added after a design review) ---- */
/* A label wraps its field: the words sit above the box, both full width. */
main form label:not(.check):not(.btn):not(.nav-link):not(.inline) { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--navy); min-width: 0; }
main form label:not(.check):not(.inline) > .input, main form label:not(.check):not(.inline) > select, main form label:not(.check):not(.inline) > textarea { width: 100%; }
main form > label + label, main form > label + .grid, main form > .grid + label, main form > label + .form-grid { margin-top: 14px; }
textarea.input { min-height: 96px; padding: 10px 14px; line-height: 1.5; resize: vertical; }
textarea.input.mono, .input.mono { font-family: var(--font-mono); font-size: 13px; }
select.input { padding-right: 32px; }
.card-pad > p.muted:first-of-type, .card-pad > .card-title + p { margin: 6px 0 16px; max-width: 72ch; }
/* Links styled as buttons inside pages are blue (the light grey is only for the dark menu). */
main .btn-link { color: var(--blue); }
main .btn-link:hover { color: var(--blue-hover); text-decoration: underline; }
/* Tables: short values never wrap mid-phrase; action cells line up their buttons. */
.table td { vertical-align: middle; }
.table td.nowrap, .table td[data-label="Since"], .table td[data-label="Until"], .table td[data-label="When"], .table td[data-label="Date"], .table td[data-label="Due"], .table td[data-label="Expires"], .table td[data-label="Renews"], .table td[data-label="Issued"], .table td[data-label="Created"], .table td[data-label="Last seen"], .table td[data-label="First seen"], .table td[data-label="Sent"], .table td[data-label="Asked"], .table td[data-label="Approved"], .table td[data-label="Checked"], .table td[data-label="Changed"], .table td[data-label="Last email"], .table td[data-label="Code"] { white-space: nowrap; }
/* Long free text (reasons, notes, paths) wraps and breaks long words instead of pushing the table wider than the page. */
.table td { overflow-wrap: break-word; }
.table td.actions, .table td:last-child > form + form { white-space: nowrap; }
.table td:last-child > form { display: inline-block; vertical-align: middle; margin: 2px 0 2px 6px; }
.table td:last-child > form:first-child { margin-left: 0; }
/* Tab rows that are wider than the page scroll sideways with a soft edge instead of being cut off. */
.site-menu { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.site-menu:not(:hover) { scroll-behavior: smooth; }
@media (min-width: 1200px) { .site-menu { -webkit-mask-image: none; mask-image: none; } }
/* The sidebar: one line per entry, quieter group headings. */
.side .nav-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .nav-group { margin-top: 18px; }

/* ---- Design pass: one rhythm for every page ---- */
/* Page sections are spaced by .content's gap only; stray margins on top-level blocks are ignored. */
.content > .card, .content > section, .content > .grid, .content > .site-menu, .content > .notice, .content > .error, .content > .filters, .content > .subtabs, .content > form, .content > .tool-grid, .content > .tools-grid { margin-top: 0 !important; margin-bottom: 0 !important; }
.content > h1.page + .site-menu, .content > .row-between + .site-menu { margin-top: -6px !important; }
.content > .site-menu + .site-menu { margin-top: -10px !important; }
/* Tables inside a card line up with the card's heading (24px), not 20px in. */
.card > .table-wrap > .table th:first-child, .card > .table-wrap > .table td:first-child, .card > .table th:first-child, .card > .table td:first-child { padding-left: 24px; }
.card > .table-wrap > .table th:last-child, .card > .table-wrap > .table td:last-child, .card > .table th:last-child, .card > .table td:last-child { padding-right: 24px; }
.table th.num, .table td.num { text-align: right; }
/* Row actions: buttons sit side by side and the column takes only the room it needs. */
.table td:has(> .wp-row-actions), .table td:has(> .actions-row), .table td.actions { width: 1%; white-space: nowrap; }
.table .wp-row-actions, .table .actions-row { flex-wrap: nowrap; justify-content: flex-end; }
.table td .btn:not(.btn-sm) { min-height: 34px; padding: 0 12px; font-size: 14px; }
/* Long technical values break only where they must. */
.table td.mono, .table td .mono { overflow-wrap: break-word; word-break: normal !important; }
.table td.nowrap, .table th.nowrap, .table td .nowrap { white-space: nowrap; }
/* Labels: the words sit at the top so fields in one row line up. */
main form label:not(.check):not(.btn):not(.nav-link):not(.inline) { align-content: start; }
.form-grid { gap: 16px 16px; }
.form-grid > label.check, .form-grid > .check { grid-column: 1 / -1; }
.form-grid > :last-child:has(> .btn), .form-grid > .btn:last-child { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
/* Headings at the top of a padded card get the same space under them everywhere. */
.card-pad > h2.section:first-child, .card-pad > .card-title:first-child { margin: 0 0 6px; }
.card-pad > h2.section:first-child + p, .card-pad > .card-title:first-child + p { margin-top: 0; }
.card-head + .card-pad { padding-top: 0; }
.card-head > .muted, .card-head > .small { text-align: right; }
/* A second row of choices under the page tabs reads as filters, not as more tabs. */
.subtabs { margin-bottom: 0; }
.subtabs a { white-space: nowrap; }
.subtabs a:hover:not(.active) { background: var(--tint); }
/* Empty states: quiet, with room to breathe but no more. */
.card-head + .empty { padding-top: 4px; }
/* Tab rows: fit on wide screens, scroll sideways on narrow ones. */
@media (min-width: 1200px) { .site-menu a { padding: 10px 12px; } }
/* Phones: tighter card padding, buttons that wrap neatly, and stacked tables that read as small cards. */
@media (max-width: 640px) {
  .content { gap: 18px; padding-top: 24px; }
  .card-pad { padding: 16px 18px; }
  .card-head { padding: 16px 18px 10px; }
  .card > .table-wrap > .table.stack td:first-child, .card > .table.stack td:first-child { padding-left: 0; }
  .table.stack tr { padding: 12px 18px; }
  .table.stack td:last-child { padding-right: 0; }
  .table.stack td:has(> .wp-row-actions), .table.stack td:has(> .actions-row) { display: block; width: auto; padding-top: 6px; }
  .table.stack .wp-row-actions, .table.stack .actions-row { justify-content: flex-start; flex-wrap: wrap; }
  .row-between > .actions-row, .row-between > div:last-child { flex-wrap: wrap; }
}
/* Abuse warnings at the top of staff pages: one compact panel, colour only where it means something. */
.abuse-bar { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.abuse-line { --tone: var(--muted); --tone-bg: var(--surface); display: grid; grid-template-columns: minmax(170px, auto) 1fr auto; align-items: center; gap: 4px 16px; padding: 10px 16px 10px 14px; border-left: 4px solid var(--tone); font-size: 13.5px; line-height: 1.45; }
.abuse-line + .abuse-line { border-top: 1px solid var(--border); }
.abuse-line.tone-red { --tone: var(--red); --tone-bg: var(--red-bg); background: #FFF8F7; }
.abuse-line.tone-amber { --tone: var(--amber); --tone-bg: var(--amber-bg); background: #FFFCF5; }
.abuse-line.tone-green { --tone: var(--green); }
.abuse-label { display: inline-flex; align-items: center; gap: 8px; color: var(--tone); font-weight: 600; white-space: nowrap; }
.abuse-line.tone-amber .abuse-label { color: var(--amber-text); }
.abuse-line.tone-amber .abuse-btn { background: var(--amber-text); }
.abuse-items { min-width: 0; color: var(--navy); }
.abuse-items a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--tone) 45%, transparent); text-underline-offset: 2px; }
.abuse-items a:hover { color: var(--tone); }
.abuse-btn { justify-self: end; white-space: nowrap; padding: 4px 12px; border-radius: 6px; background: var(--tone); color: #fff; font-size: 12.5px; font-weight: 600; }
.abuse-btn:hover { color: #fff; filter: brightness(.92); }
.abuse-warn { flex: none; background: var(--red); color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .04em; padding: 2px 7px; border-radius: 4px; animation: abuse-flash 1s steps(1, end) infinite; }
@keyframes abuse-flash { 50% { background: #fff; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); } }
@media (prefers-reduced-motion: reduce) { .abuse-warn { animation: none; } }
@media (max-width: 760px) { .abuse-line { grid-template-columns: 1fr auto; } .abuse-items { grid-column: 1 / -1; grid-row: 2; } }
.abuse-stop { padding: 14px 18px; background: var(--red); color: #fff; border-radius: 12px; line-height: 1.5; }
.abuse-stop-title { font-size: 19px; font-weight: 700; }
.abuse-stop-head { font-weight: 600; }
.abuse-stop a { color: #fff; text-decoration: underline; }
.content > .abuse-bar, .content > .abuse-stop { margin: 0; }
/* Stacked forms space their fields; grid and inline forms use their own gap. */
main form:is(.form-grid, .php-form, .move-form, .spam-form, .rule-form, .cron-form, .dns-form, .mail-form, .filters, .field-row, [style*="grid"], [style*="flex"]) > :is(label, .grid, .form-grid) { margin-top: 0; }
.form-grid > .span-2, .form-grid > label.span-2 { grid-column: 1 / -1; }
.form-grid > .check, .settings-grid .check, .move-form > .check { margin: 0; }
/* DNS editor */
.card-row { margin: 0 0 6px; align-items: baseline; }
.dns-state { margin: 0 0 14px; }
.dns-state.warn { color: var(--amber-text); }
.dns-role { font-family: var(--font-sans); }
.dns-table td:first-child { max-width: 260px; }
.dns-table .pill { font-family: var(--font-mono); font-size: 12px; padding: 2px 8px; }
.dns-add { margin-top: 16px; }
.dns-form .full { grid-column: 1 / -1; margin: 0; }
.more-tools { margin-top: 16px; }
.more-tools > summary { cursor: pointer; color: var(--muted); }
.more-tools > summary:hover { color: var(--navy); }
.stack-form { display: grid; gap: 10px; margin-top: 12px; justify-items: start; }
.stack-form > label { justify-self: stretch; }
.stack-form textarea.input { min-height: 120px; font-size: 12.5px; }
@media (max-width: 640px) { .dns-table td:first-child { max-width: none; } .dns-form { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .table.stack tr.mail-extra { display: none; } .table.stack tr:has(.mail-more[open]) + tr.mail-extra { display: block; } .table.stack tr.mail-extra > td { display: block; padding: 0; } }
/* Small shared pieces */
.flush { margin: 0; }
.card-sub { margin: 0 0 16px; }
.card-foot { margin-top: 18px; }
.pin-line { margin: -6px 0 0; }
.pin-line .mono { font-size: 14px; color: var(--navy); letter-spacing: .04em; }
.count-row { gap: 16px; }
.count-tile.card { background: #fff; }
.section-title { margin: 12px 0 -8px; }
/* Getting started checklist (client home) */
.checklist-bar { margin: 4px 0 18px; height: 4px; }
.checklist-bar > span { height: 4px; background: var(--green); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .tick { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; border: 1.5px solid #CFD6E4; }
.checklist a { font-weight: 600; }
.checklist .done .tick { background: var(--green); border-color: var(--green); color: #fff; }
.checklist .done a { color: var(--muted); font-weight: 500; }
h2.section .muted { font-weight: 400; }
.strong { font-weight: 600; }
.plan-row { padding: 16px 24px; border-top: 1px solid var(--border); }
.plan-row .row-between { margin: 0; gap: 12px; align-items: center; }
.plan-usage-line { margin-top: 4px; }
.plan-row .actions-row .input { min-height: 38px; width: 260px; }
.card-error { margin: 0 24px 16px; }
.card-intro { margin: -6px 24px 14px; max-width: 72ch; }
.list-tools .input[type=search] { min-height: 38px; max-width: 260px; }
.table th.tick-col { width: 1%; }
@media (max-width: 640px) { .plan-row { padding: 14px 18px; } .plan-row .actions-row .input { width: 100%; flex: 1 1 200px; } .card-error { margin: 0 18px 14px; } .card-intro { margin: -4px 18px 12px; } }
/* Page header with meta line and actions (website, server, ticket pages) */
.page-head { align-items: flex-end; gap: 14px; }
.page-meta { margin-top: 8px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.card-danger { border-color: #F3C7C2; }
.card-pad > p:last-child { margin-bottom: 0; }
.flush-bottom { margin-bottom: 0; }
.job-line { margin: 0; gap: 10px; align-items: center; }
.job-line + .job-line { margin-top: 6px; }
.job-note { margin-top: 6px; }
.site-layout { margin-top: 0; }
.site-title { font-size: 28px; margin: 4px 0 18px; }
/* Inside a website's tabs every card uses the same title size and body text size. */
.site-main .card h2.section { font-size: 16px; font-weight: 500; letter-spacing: 0; }
.site-main .card-pad > p.muted:not(.small) { font-size: 14px; }
.page-intro { margin: -8px 0 0; max-width: 68ch; }
.content > .page-intro { margin-top: -10px; }
.section-intro { display: grid; gap: 8px; justify-items: start; max-width: 680px; margin-top: 8px; }
.section-intro p { margin: 0; }
.section-intro .copy-box { justify-self: stretch; }
.reward-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; }
.reward-head p { margin: 4px 0 0; }
.reward-head .stat { white-space: nowrap; line-height: 1.2; }
.reward-foot { margin-top: 14px; }
.reward-form { margin-top: 14px; }
/* The one-line introduction under a page title */
.content > h1.page + p.muted, .content > .row-between + p.muted, .content > h1.page + .page-intro { margin: -12px 0 0 !important; max-width: 72ch !important; font-size: 15px; }
.label + .stat, .label + .big-number { margin-top: 6px; }
.inv-dates { align-content: start; gap: 6px; }
.brand .menu-btn span { font-size: 14px; font-weight: 500; letter-spacing: 0; }
.move-form.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .move-form.two { grid-template-columns: 1fr; } }
.card-pad > h2.section + form, .card-pad > .card-title + form { margin-top: 14px; }
.crumbs { margin: 0; }
.card-summary { cursor: pointer; font-weight: 600; }
details.card > summary { list-style-position: inside; }
.table td.bar-cell { width: 110px; }
@media (max-width: 640px) { .table.stack td.bar-cell { width: 90px; } }
.attention .attn-dismiss { margin-left: auto; } .attention .attn-dismiss .btn-link { color: var(--muted); } .attention .attn-dismiss .btn-link:hover { color: var(--blue); }
/* Search box and main button on the right of a page title */
.page-tools { display: flex; gap: 10px; align-items: center; flex-wrap: nowrap; }
.page-tools .search { background: #fff; flex: 0 1 340px; min-width: 220px; }
.page-tools .btn { flex: none; }
@media (max-width: 640px) { .page-tools { flex-wrap: wrap; width: 100%; } .page-tools .search { flex: 1 1 100%; } }
.subtabs.page-meta { margin-top: 10px; gap: 6px; }
/* A row of fields with the button at the end of the row */
.inline-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.inline-form > .field { margin: 0; flex: 0 1 auto; }
.inline-form > .field:first-of-type { flex: 1 1 240px; }
.inline-form > .btn, .inline-form > button { flex: none; }
.form-note { margin: 12px 0 0; }
.inline-form > .field { min-width: 0; max-width: 100%; }
.inline-form .field > .input { width: 100%; }
@media (max-width: 640px) { .inline-form > .field { flex: 1 1 100%; } }
.stack-form > textarea.input { width: 100%; justify-self: stretch; }
.icon-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.icon-btn:hover { background: var(--red-bg); color: var(--red); }
.check-row { gap: 8px; padding: 4px 0; align-items: center; flex-wrap: nowrap; }
.check-row .check { margin: 0; }
.note-item { border-top: 1px solid var(--border); padding: 12px 0 0; margin-top: 12px; }
.note-item > div:last-child { white-space: pre-wrap; }
/* Breadcrumb line sits close to the title under it */
.content > :is(p, div).small:has(+ h1.page, + .row-between, + .page-head) { margin: 0 0 -14px !important; }
.content > h1.page + p.small, .content > h1.page + .muted.small { margin-top: -14px !important; }
@media (max-width: 900px) { .ticket-layout { grid-template-columns: 1fr !important; } }
/* Cards stacked inside a plain wrapper never touch */
:is(div, section, form, main):not(.content):not([class*="grid"]):not([style*="grid"]):not([style*="flex"]):not(.row-between):not(.actions-row) > :is(.card, .recent-job) + :is(.card, details.card) { margin-top: 16px; }
.page-head .actions-row .input, .row-between .actions-row .input { min-height: 38px; }
.card-pad > .empty { padding: 0; }
/* Page introduction: one plain sentence, with the details folded away */
.page-intro { max-width: 72ch; }
.page-intro > p { margin: 0; font-size: 15px; }
.intro-more { margin-top: 6px; font-size: 14px; color: var(--muted); }
.intro-more > summary { cursor: pointer; width: max-content; font-size: 13px; color: var(--blue); }
.intro-more > summary:hover { color: var(--blue-hover); }
.intro-more > p { margin: 6px 0 0; line-height: 1.6; }
.content > h1.page + .page-intro, .content > .row-between + .page-intro, .content > .page-head + .page-intro { margin-top: -12px !important; }
.content > .site-menu + .subtabs, .content > .subtabs + .card, .content > .subtabs + section { margin-top: -8px !important; }
.subtabs .nav-count { margin-left: 4px; }
.subtabs a.active .nav-count { background: #fff; color: var(--navy); }
.table td .btn { min-height: 32px; padding: 0 12px; font-size: 13.5px; }
.bulk-confirm { flex: 0 1 300px; min-width: 220px; }
/* Filter links drawn as pills look and behave like .subtabs */
a.pill { background: #fff; color: var(--navy); border: 1px solid var(--border); padding: 5px 12px; font-size: 14px; font-weight: 400; }
a.pill:hover { background: var(--tint); color: var(--navy); }
a.pill.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.late { color: var(--red); font-weight: 600; }
/* A tick box whose label has links or notes in it reads as one sentence, not as columns */
label.check:has(> span, > a, > b, > strong, > em) { display: block; padding-left: 26px; text-indent: -26px; line-height: 1.5; }
label.check:has(> span, > a, > b, > strong, > em) > input:is([type=checkbox],[type=radio]) { margin: 0 8px 0 0; vertical-align: -2px; }
label.check:has(> span, > a, > b, > strong, > em) > * { text-indent: 0; }
/* Filter pills on the left, search on the right */
.filter-bar { display: flex; gap: 12px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.filter-bar .filters { margin: 0; flex: 0 1 420px; }
.filter-bar .filters .input { flex: 1 1 200px; }
.filters .input[type=search] { flex: 1 1 260px; }
.card-head { flex-wrap: wrap; }
.card-head > h2.section, .card-head > .card-title { flex: 0 1 auto; }
.card-head > .muted, .card-head > .small { flex: 1 1 260px; }
.todo-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.todo-list .muted.small { margin-top: 2px; }
.card-empty { margin: 0; padding: 0 24px 20px; } .card-head + .card-empty { padding-top: 2px; } .form-actions { margin-top: 18px; }
.list-tools { padding: 14px 24px; } @media (max-width: 640px) { .list-tools { padding: 12px 18px; } }
main form[style*="flex"]:has(> label:not(.check)) { align-items: flex-end; }
.row-between > form.filters { flex-wrap: nowrap; margin: 0; } .row-between > form.filters .input { min-width: 240px; } @media (max-width: 640px) { .row-between > form.filters { width: 100%; } .row-between > form.filters .input { min-width: 0; flex: 1 1 auto; } }
@media (max-width: 760px) { .abuse-line { grid-template-columns: minmax(0, 1fr) auto; } .abuse-label { white-space: normal; flex-wrap: wrap; min-width: 0; } .abuse-items { overflow-wrap: anywhere; } }
.mono { overflow-wrap: anywhere; }
/* A search row: the box takes the room, the button sits beside it. */
.actions-row > .input[type="search"], .actions-row > input.input[name="q"] { flex: 1 1 320px; max-width: 520px; }
/* Search results */
.search-hit { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 24px; border-top: 1px solid var(--border); color: var(--navy); }
.search-hit:hover { background: var(--tint); color: var(--navy); }
.search-hit-title { font-weight: 500; overflow-wrap: anywhere; }
.topbar form.search { margin: 0; }
.filter-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.client-filters .actions-row > .input { flex: 1 1 340px; max-width: none; }
/* Paging under a list */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 20px; }
.pager-buttons { display: flex; align-items: center; gap: 10px; }
.pager .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
/* Website "More" page: plain link cards */
.more-grid .more-card { color: inherit; text-align: left; align-items: flex-start; transition: border-color .15s; }
.more-grid .more-card:hover { border-color: #BFD6F8; }
.more-grid .more-card h3 { color: var(--navy); }
.more-grid .more-card p { margin: 0; }
.site-main > .crumbs { margin: 4px 0 -12px; }
/* A second tab row straight under the first one is the page's own sections: drawn as pills, like .subtabs */
.site-menu + .site-menu { margin-top: -8px !important; border-bottom: 0; gap: 6px; flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; padding-bottom: 0; }
.site-menu + .site-menu a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; margin: 0; font-size: 14px; font-weight: 400; color: var(--navy); background: #fff; }
.site-menu + .site-menu a:hover { background: var(--tint); }
.site-menu + .site-menu a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
/* Two-way switch (Server tools → Mail) */
.seg { display: inline-flex; align-self: flex-start; padding: 3px; gap: 2px; border-radius: 10px; background: var(--tint); border: 1px solid var(--border); }
.seg a { padding: 6px 14px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.seg a:hover { color: var(--navy); }
.seg a.active { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(8, 22, 51, .12); }
.content > .site-menu + .seg { margin-top: -6px; }
.content > .seg + .subtabs { margin-top: -10px !important; }
.content > .site-menu + .subtabs { margin-top: -8px !important; }
select.input[multiple] { padding: 6px 8px; min-height: 120px; } select.input[multiple] option { padding: 3px 6px; border-radius: 4px; }

/* ServerGuard overview */
.guard-status { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--border); background: #fff; }
.guard-status.is-ok { border-color: color-mix(in srgb, var(--green) 35%, var(--border)); }
.guard-status.is-warn { border-color: color-mix(in srgb, var(--amber, #b45309) 45%, var(--border)); }
.guard-status .dot { align-self: center; }
a.tile { display: block; text-decoration: none; color: inherit; transition: border-color .15s; }
a.tile:hover { border-color: var(--blue); }
a.tile .stat { margin: 6px 0 4px; }

/* Website Doctor */
.doctor { border-left: 4px solid var(--border); }
.doctor-green { border-left-color: var(--green); } .doctor-amber { border-left-color: var(--amber); } .doctor-red { border-left-color: var(--red); }
.doctor-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.doctor-list li { display: flex; gap: 10px; align-items: flex-start; }
.doctor-list .dot { margin-top: 7px; flex: none; }
.doctor-auto { margin-left: auto; }
.doctor-uptime { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.doctor-last pre { background: var(--surface); padding: 10px; border-radius: 8px; }
details.site-details > summary { list-style: none; } details.site-details > summary::-webkit-details-marker { display: none; }
.dot-green { background: var(--green); }
.doctor-uptime .dot, p .dot { display: inline-block; margin-right: 4px; vertical-align: 1px; }

.abuse-folded { margin: 0 0 14px; padding: 6px 2px; }
.abuse-folded a { color: inherit; text-decoration: underline; text-decoration-color: var(--border); }

@media (max-width: 700px) {
  .abuse-line .abuse-items { display: none; }
  .abuse-line { padding: 6px 10px; }
  .staff-banners { font-size: 13px; }
}

.side-version { display: block; padding: 8px 14px 4px; font-size: 11px; color: rgba(255,255,255,.45); text-decoration: none; }
.side-version:hover { color: rgba(255,255,255,.8); }

/* Tiles in a grid never take the stacked-card spacing */
.site-row > .card, .grid > .card, .grid > section { margin-top: 0 !important; margin-bottom: 0 !important; }

/* A label that starts with a tick box or radio reads as one line of text */
label:has(> input:is([type=radio],[type=checkbox]):first-child):not(.check) { display: block; }
label:has(> input:is([type=radio],[type=checkbox]):first-child):not(.check) > input:first-child { margin: 0 6px 0 0; vertical-align: -2px; }

.row-action > summary { list-style: none; display: inline-flex; cursor: pointer; } .row-action > summary::-webkit-details-marker { display: none; }
.card-head .bulk-bar { display: flex; gap: 8px; align-items: center; }
.card-head .bulk-bar[hidden] { display: none; }
.tile-link { display: block; transition: border-color .15s; } .tile-link:hover { border-color: var(--blue, #1a66e8); } .tile-link .card-title { color: var(--ink, inherit); }
/* Links inside running text are underlined, so they do not rely on colour alone (WCAG 1.4.1). */
p a:not(.btn), li a:not(.btn), .notice a:not(.btn), .pin-line a, .small a:not(.btn), .empty a:not(.btn) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
nav a, .site-menu a, .subtabs a, .crumbs a, td > a, .card-title a, h1 a, h2 a, h3 a, .tile-link, .table a, .checklist a, .attention a { text-decoration: none; }

/* =====================================================================
   Client area, 26 Oct 2026: the MyKinsta look. Navy top bar with logo,
   search and account; light sidebar with a soft pill for the page you
   are on; warm off-white page; white cards with hairline borders;
   compact 14px text; navy primary buttons, light secondary ones.
   Staff pages keep the dark sidebar (body.staff-area).
   ===================================================================== */
.client-area {
  --surface: #F5F7FB; --border: #E3E8F0; --line-strong: #CED6E3; --muted: #5F6676; --tint: #EEF3FC; --pill: #E4EBF7;
  font-size: 14px; background: var(--surface);
}
.client-area .ctop { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 20px; height: 58px; padding: 0 24px; background: var(--side); color: #fff; }
.client-area .ctop-brand { display: flex; align-items: center; flex: none; width: 208px; }
.client-area .ctop-brand img { height: 28px; width: auto; }
.client-area .ctop-search { display: flex; align-items: center; gap: 10px; flex: 0 1 460px; height: 36px; padding: 0 12px; border-radius: 8px; background: rgba(255,255,255,.08); color: #9AA8C2; margin: 0; }
.client-area .ctop-search:focus-within { background: rgba(255,255,255,.14); }
.client-area .ctop-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #fff; font: 14px var(--font-sans); }
.client-area .ctop-search input::placeholder { color: #9AA8C2; }
.client-area .ctop-user { margin-left: auto; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.client-area .ctop-user .avatar { width: 30px; height: 30px; font-size: 12px; background: rgba(255,255,255,.12); color: #fff; }
.client-area .ctop-menu { display: none; margin-left: 4px; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: none; color: #fff; cursor: pointer; place-items: center; }
.client-area .shell { min-height: calc(100vh - 58px); flex-wrap: nowrap; }
.client-area .side { flex: 0 0 236px; max-width: 236px; background: transparent; color: var(--navy); padding: 22px 14px 18px; gap: 2px; position: sticky; top: 58px; align-self: flex-start; height: calc(100vh - 58px); overflow-y: auto; }
.client-area .side-links { gap: 2px; }
.client-area .nav-link { min-height: 36px; padding: 0 10px; border-radius: 8px; color: #3B4458; font-size: 14px; font-weight: 500; }
.client-area .nav-link > span { gap: 10px; }
.client-area .nav-link svg { color: #6B7385; }
.client-area .nav-link:hover { background: rgba(11,27,58,.05); color: var(--navy); }
.client-area .nav-link.active { background: var(--pill); color: var(--navy); box-shadow: none; }
.client-area .nav-link.active svg { color: var(--navy); }
.client-area .side-foot { padding-top: 18px; border-top: 1px solid var(--border); margin-top: auto; }
.client-area .side-foot .btn-link { color: #3B4458; font-size: 14px; }
.client-area .main { background: var(--surface); }
.client-area .content { padding: 28px 36px 56px; gap: 20px; width: 100%; max-width: 1280px; }

/* Type: serif page and section titles (as on MyKinsta), quiet sans everywhere else */
.client-area h1.page { font-size: 32px; }
.client-area .section-title { font-size: 24px; margin: 10px 0 -6px; }
.client-area .section-title svg { color: var(--navy); }
.client-area h2.section { font-size: 17px; font-weight: 500; }
.client-area .card-title { font-size: 15px; font-weight: 500; }
.client-area .small { font-size: 13px; }
.client-area .muted { color: var(--muted); }
.client-area .label, .client-area .table th, .client-area .chart-x, .client-area .tool-card .state { font-family: var(--font-sans); font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.client-area .mono { font-size: 13px; }
.client-area .stat { font-size: 28px; font-weight: 400; }

/* Cards, tables, fields */
.client-area .card { border-color: var(--border); border-radius: 10px; }
.client-area .card-pad { padding: 20px 22px; }
.client-area .card-head { padding: 18px 22px 14px; align-items: center; }
.client-area .card > .table-wrap > .table th:first-child, .client-area .card > .table-wrap > .table td:first-child, .client-area .card > .table th:first-child, .client-area .card > .table td:first-child { padding-left: 22px; }
.client-area .card > .table-wrap > .table th:last-child, .client-area .card > .table-wrap > .table td:last-child, .client-area .card > .table th:last-child, .client-area .card > .table td:last-child { padding-right: 22px; }
.client-area .table { font-size: 14px; }
.client-area .table th { background: #FAF9F7; padding: 10px 18px; }
.client-area .table td { padding: 13px 18px; }
.client-area .table tbody tr:hover td { background: #FCFBFA; }
.client-area .input { min-height: 38px; font-size: 14px; border-color: var(--line-strong); }
.client-area .input.mono, .client-area input.input.mono { font-family: var(--font-sans); font-size: 14px; }
.client-area textarea.input.mono { font-family: var(--font-mono); font-size: 13px; }
.client-area main form label:not(.check):not(.btn):not(.nav-link):not(.inline) { font-size: 13px; }

/* Buttons: navy primary, white secondary with a hairline border */
.client-area .btn { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 8px; }
.client-area .btn-sm, .client-area .table td .btn { min-height: 32px; padding: 0 12px; font-size: 13px; }
.client-area .btn-primary { background: var(--navy); }
.client-area .btn-primary:hover { background: #1B2D52; }
.client-area .btn-outline { border: 1px solid var(--line-strong); color: var(--navy); background: #fff; }
.client-area .btn-outline:hover { background: #FAF8F5; border-color: #BDB5AA; }
.client-area .btn-danger { border: 1px solid #EBC0BA; }
.client-area .btn-text-danger { background: none; border: 0; color: var(--red); font: 500 13px var(--font-sans); cursor: pointer; padding: 6px 8px; border-radius: 6px; }
.client-area .btn-text-danger:hover { background: var(--red-bg); }

/* Website page: tabs as on MyKinsta */
.client-area .site-menu { border-bottom-color: var(--border); margin-bottom: 20px; }
.client-area .site-menu a { font-size: 14px; padding: 9px 12px; }
.client-area .site-menu a.active { border-bottom-color: var(--navy); }
.client-area .page-meta { font-size: 14px; }

/* Home tiles */
.client-area .site-tile { border-radius: 10px; }
.client-area .site-icon { flex-basis: 64px; background: #F3EFEA; color: var(--navy); }
.client-area .site-body { padding: 14px 18px; gap: 4px; }
.client-area .site-facts { font-size: 13px; }

/* Copy buttons */
.client-area .copy-val { gap: 8px; }
.client-area .copy-val button { border: 1px solid var(--border); background: #fff; font-size: 12px; padding: 2px 8px; color: var(--muted); }
.client-area .copy-val button:hover { border-color: var(--line-strong); color: var(--navy); background: #FAF8F5; }

/* Settings tables (email app settings and similar): label column on the left */
.settings-table th[scope=row] { width: 130px; background: none; border-top: 0; color: var(--muted); font-weight: 500; font-size: 13px; white-space: nowrap; }
.settings-table thead th:first-child { width: 130px; }
.settings-table td { vertical-align: middle; }
.card-foot-note { margin: 0; padding: 12px 22px 16px; border-top: 1px solid var(--border); }
.card-head > div > p { margin-top: 2px !important; }

/* Usage bar inside a table cell */
.use { display: grid; gap: 5px; min-width: 150px; }
.use .bar { height: 5px; background: #EFECE8; }
.use .bar > span { height: 5px; background: var(--navy); }
.use .bar.warn > span { background: var(--amber); }

/* Dialogs used for "Add …" forms */
.client-area dialog.confirm { border-radius: 12px; }
dialog.confirm .dlg-body .form-stack { display: grid; gap: 14px; }
dialog.confirm .addr-field { display: flex; align-items: center; border: 1px solid var(--line-strong, #CED6E3); border-radius: 8px; overflow: hidden; }
dialog.confirm .addr-field .input { border: 0; border-radius: 0; flex: 1; min-width: 0; }
dialog.confirm .addr-field .input:focus { outline-offset: -2px; }
dialog.confirm .addr-field span { padding: 0 12px; color: var(--muted); background: #FAF9F7; align-self: stretch; display: flex; align-items: center; border-left: 1px solid var(--border); font-size: 14px; white-space: nowrap; }
.pw-row { display: flex; gap: 8px; } .pw-row .input { flex: 1; min-width: 0; }

/* Phones */
@media (max-width: 900px) {
  .client-area .ctop { gap: 12px; padding: 0 14px; }
  .client-area .ctop-brand { width: auto; }
  .client-area .ctop-search { display: none; }
  .client-area .ctop-name { display: none; }
  .client-area .ctop-menu { display: grid; }
  .client-area .shell { flex-wrap: wrap; }
  .client-area .side { display: none; position: static; height: auto; max-width: none; flex-basis: 100%; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--border); }
  .client-area .side.open { display: flex; }
  .client-area .side .side-links { display: flex; padding-top: 0; max-height: none; }
  .client-area .content { padding: 20px 16px 40px; }
  .client-area h1.page { font-size: 27px; }
}
.site-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-ico { flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #F3EFEA; color: var(--navy); font-family: var(--font-serif); font-size: 17px; }
.client-area .table td a.status, .client-area .table td .strong a, .client-area .table td > a:not(.btn) { color: var(--navy); font-weight: 500; }
.client-area .table td .strong a:hover, .client-area .table td > a:not(.btn):hover { color: var(--blue); }
.client-area .checklist a { text-decoration: none; color: var(--navy); }
.client-area .checklist a:hover { color: var(--blue); }
.client-area .side-foot form .nav-link > span { display: flex; align-items: center; gap: 10px; }
.client-area .btn-text-danger { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; }
.settings-table tbody th[scope=row] { border-top: 0; border-bottom: 1px solid var(--border); padding-left: 22px; }
.settings-table tbody tr:last-child th[scope=row], .settings-table tbody tr:last-child td { border-bottom: 0; }
.client-area .table tbody tr:hover th[scope=row] { background: #FCFBFA; }
dialog.confirm .dlg-body.form-stack { display: grid; gap: 16px; }
dialog.confirm .dlg-head > .btn { border: 0; min-height: 32px; width: 32px; padding: 0; color: var(--muted); background: none; font-size: 15px; }
dialog.confirm .dlg-head > .btn:hover { background: var(--surface); color: var(--navy); }
.client-area dialog.confirm .dlg-head h3 { font-size: 17px; font-weight: 600; }
/* Website overview: quick links and an info grid, as on MyKinsta's site info page */
.quick-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.quick-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: inherit; text-decoration: none; transition: border-color .15s; }
.quick-tile:hover { border-color: var(--line-strong, #CED6E3); color: inherit; }
.quick-tile > span:last-child { display: grid; gap: 1px; min-width: 0; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px 28px; padding-top: 4px !important; }
.info-grid .label { margin-bottom: 4px; }
.addon-list { border-top: 1px solid var(--border); display: grid; gap: 4px; }
.site-main > .quick-tiles { margin-bottom: 18px; }
.client-area .plan-usage .bar span { background: var(--navy); }
.quick-tiles > .card, .info-grid > * { margin: 0 !important; }
.catchall-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border); }
.catchall-row .card-title { display: flex; align-items: center; gap: 10px; }
.catchall-row .card-title .status { font-size: 13px; }
.client-area .card-empty { padding: 0 22px 20px; }
.client-area .bill-due .btn-primary { background: #fff; color: var(--navy); } .client-area .bill-due .btn-primary:hover { background: #EEF0F5; color: var(--navy); }
.client-area .card > .empty { padding-left: 22px; padding-right: 22px; }
@media (max-width: 640px) {
  .client-area .settings-table thead { display: none; }
  .client-area .settings-table, .client-area .settings-table tbody, .client-area .settings-table tr { display: block; width: 100%; }
  .client-area .settings-table tr { padding: 12px 18px; border-bottom: 1px solid var(--border); }
  .client-area .settings-table tr:last-child { border-bottom: 0; }
  .client-area .settings-table th[scope=row] { display: block; width: auto; padding: 0 0 6px; border: 0; }
  .client-area .settings-table td { display: block; border: 0; padding: 3px 0; }
  .client-area .settings-table td[data-label]::before { content: attr(data-label); display: inline-block; width: 46px; color: var(--muted); font-size: 12.5px; }
  .client-area .site-tile .site-icon { flex-basis: 56px; }
}
.client-area .activity-list { list-style: none; margin: 0; padding: 0; }
.client-area .activity-list li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px; padding: 12px 22px; border-bottom: 1px solid var(--border); }
.client-area .activity-list li:last-child { border-bottom: 0; }
.client-area .activity-what { display: flex; flex-direction: column; min-width: 0; }
.client-area .activity-what a { color: var(--navy); text-decoration: none; font-weight: 500; }
.client-area .activity-what a:hover { text-decoration: underline; }
@media (max-width: 640px) { .client-area .activity-list li { grid-template-columns: 34px 1fr; padding: 12px 18px; } .client-area .activity-list li > .activity-meta { grid-column: 2; } }
@media (max-width: 640px) { .client-area .settings-table th[scope=row] { padding-left: 0 !important; } .client-area .settings-table .copy-val { display: inline-flex; } }
.client-area .activity-meta { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.client-area .rule-form { grid-template-columns: 1fr 1.4fr 190px auto; }
@media (max-width: 760px) { .client-area .rule-form { grid-template-columns: 1fr; } }
.client-area .page-head { align-items: flex-start; } .client-area .page-head > .actions-row { margin-top: 6px; }
/* Overview: settings rows, invoices, calmer job notices (no coloured side bars). */
.client-area .kv-list { border-top: 1px solid var(--border); }
.client-area .kv-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 140px; align-items: center; gap: 16px; padding: 12px 22px; border-bottom: 1px solid var(--border); }
.client-area .kv-row:last-child { border-bottom: 0; }
.client-area .kv-row .label { margin: 0; }
.client-area .kv-row .kv-port { text-align: right; }
.client-area .copy-val .mono { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.client-area .copy-val button { flex: none; }
.client-area .site-cell .strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.client-area .site-cell { min-width: 0; }
.client-area .inv-mini th:nth-child(1) { width: 26%; } .client-area .inv-mini th:nth-child(2) { width: 26%; } .client-area .inv-mini th:nth-child(3) { width: 22%; }
.client-area .inv-mini td:last-child, .client-area .inv-mini th:last-child { padding-left: 48px; }
.client-area .use .bar { width: 100%; max-width: 260px; border-radius: 3px; overflow: hidden; }
.client-area .use .bar > span { display: block; border-radius: 3px; }
.client-area .recent-job, .client-area .recent-job.recent-done, .client-area .recent-job.recent-failed { border-left: 1px solid var(--border); }
.client-area .doctor, .client-area .doctor-green, .client-area .doctor-amber, .client-area .doctor-red { border-left: 1px solid var(--border); }
@media (max-width: 640px) {
  .client-area .kv-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 18px; }
  .client-area .kv-row .kv-port { text-align: left; }
}
.client-area .quick-tile .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .client-area .quick-tiles { grid-template-columns: 1fr 1fr; gap: 10px; } .client-area .quick-tile { padding: 12px; } .client-area .quick-tile .muted { display: none; } .client-area .info-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
/* Backups tab */
.client-area .backup-table td.num, .client-area .backup-table th.num { text-align: right; }
.client-area .backup-table td:first-child { width: 30%; }
.client-area .choice-list { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.client-area .choice-list legend { margin-bottom: 8px; padding: 0; }
.client-area .choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.client-area .choice:has(input:checked) { border-color: var(--navy); background: #FAF9F7; }
.client-area .choice input { margin-top: 3px; accent-color: var(--navy); }
.client-area .choice > span { display: grid; gap: 2px; }
.client-area label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.client-area label.check input { margin-top: 3px; accent-color: var(--navy); }
@media (max-width: 640px) { .client-area .backup-table td:nth-child(2), .client-area .backup-table th:nth-child(2) { display: none; } }
.client-area .choice input, .client-area label.check input { width: auto; flex: none; height: auto; margin: 3px 0 0; }
.client-area .choice { flex-direction: row; }
.client-area label.check { flex-direction: row; }
@media (min-width: 1100px) { .client-area .usage-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.client-area dialog.confirm label.choice, .client-area dialog.confirm label.check { display: flex; }
/* Website tools (caching, WordPress): boxes with the status top right and buttons along the bottom */
.client-area .tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; padding-top: 4px !important; }
.client-area .tool-box { border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.client-area .tool-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; }
.client-area .tool-head .card-title { margin: 0; }
.client-area .tool-box > p { margin: 0 0 8px; }
.client-area .tool-foot { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.client-area .tool-rows { display: grid; gap: 8px; width: 100%; }
.client-area .tool-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; }
.client-area .inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.client-area .input-sm { height: 32px; padding: 0 10px; font-size: 13px; width: auto; }
.client-area .wp-health { padding-top: 0 !important; }
.client-area .health-ok { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 10px; background: #F1F7F2; color: #1E6B3A; }
.client-area .health-list { list-style: none; margin: 0; padding: 12px 14px; border-radius: 10px; background: #FBF8F3; display: grid; gap: 8px; }
.client-area .health-list li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
.client-area .health-list .dot { position: relative; top: 1px; }
.client-area .card-head-sub { border-top: 1px solid var(--border); padding-top: 18px; padding-bottom: 10px; }
.client-area .section-sub { font-size: 15px; font-weight: 600; margin: 0; }
.client-area .wp-items td:last-child { text-align: right; }
.client-area .wp-items .wp-row-actions { justify-content: flex-end; }
.client-area .pw-reveal { background: #F1F7F2; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); display: grid; gap: 6px; }
.client-area .activity-feed { list-style: none; margin: 0; padding: 0; }
.client-area .activity-feed li { padding: 14px 22px; border-top: 1px solid var(--border); display: grid; gap: 4px; }
.client-area .activity-feed .row-between { gap: 12px; align-items: baseline; }
@media (max-width: 640px) { .client-area .activity-feed li { padding: 12px 18px; } .client-area .wp-items td:last-child { text-align: left; } }
@media (min-width: 760px) { .client-area .tool-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.client-area dialog.confirm .addr-pre span { border-left: 0; border-right: 1px solid var(--border); }
.client-area .dns-top { padding: 0 !important; margin-bottom: 18px; }
.client-area .dns-top > .card { margin: 0 !important; }
.client-area .dns-filter { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 0 !important; padding-bottom: 14px !important; }
.client-area .chip { border: 1px solid var(--border); background: #fff; border-radius: 99px; height: 30px; padding: 0 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink, #1B2333); }
.client-area .chip.active { background: var(--pill); border-color: var(--pill); font-weight: 500; }
.client-area .chip .muted { margin-left: 4px; }
.client-area .dns-table td:first-child { width: 80px; }
.client-area .app-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.client-area .app-title { display: flex; align-items: center; gap: 10px; }
.client-area .pw-reveal-card { background: #F1F7F2; border-color: #CFE5D5; }
/* Staff area: the same shell as the client area, a little denser and wider */
.client-area .ctop-brand { gap: 10px; }
.client-area .ctop-tag { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #CFD6E4; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; padding: 2px 7px; }
.client-area .nav-group { color: var(--muted); opacity: 1; margin: 18px 12px 4px; font-size: 11px; }
.client-area .side-version { color: var(--muted); }
.client-area .side-version:hover { color: var(--navy); }
.client-area .nav-count { background: var(--navy); }
.staff-area .content { max-width: 1440px; }
.staff-area .nav-link { height: 34px; }
.client-area .side { overflow-y: auto; overscroll-behavior: contain; }
.client-area .score { min-width: 44px; height: 44px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; border: 3px solid currentColor; }
.client-area .metric-list { display: grid; gap: 4px; }
.client-area .metric-list > div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--border); padding: 3px 0; }
.client-area .issue-list { margin: 0; padding-left: 18px; font-size: 13px; display: grid; gap: 3px; }
.client-area .php-settings summary { cursor: pointer; }
.client-area .php-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; align-items: end; margin-top: 12px; }
.client-area .score.s-green { color: #1E7B45; } .client-area .score.s-amber { color: #B26B00; } .client-area .score.s-red { color: #B42318; }
/* Login, sign-up, password and two-step pages: brand panel on the left, the form on the warm background */
.auth-body { background: #F5F7FB; }
.auth-body .auth { padding: 0; background: #F5F7FB; display: flex; align-items: stretch; justify-content: stretch; min-height: 100vh; }
.auth-side { flex: 0 0 42%; max-width: 560px; background: var(--side, #0B1733); color: #fff; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(131,170,45,.22), transparent 70%); }
.auth-side-body h2 { font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: 34px; line-height: 1.2; margin: 0 0 28px; max-width: 420px; color: #fff; }
.auth-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.auth-side li { display: flex; gap: 12px; align-items: center; font-size: 15px; color: #DCE3EF; }
.auth-side li svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 9px; background: rgba(255,255,255,.08); color: #fff; }
.auth-side-foot { margin: 0; font-size: 13px; color: #8E9BB3; }
.auth-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; gap: 18px; }
.auth-body .auth-card { max-width: 420px; padding: 36px; border: 1px solid #E3E8F0; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.04); font-size: 14px; }
.auth-body .auth-logo { display: none; margin-bottom: 24px; }
.auth-body .auth-card h1.page { font-size: 30px !important; }
.auth-body .input { height: 42px; border-color: #CED6E3; border-radius: 8px; }
.auth-body .input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,23,51,.08); outline: none; }
.auth-body .btn-primary { background: var(--navy); border-color: var(--navy); height: 42px; border-radius: 8px; }
.auth-body .btn-primary:hover { background: #1B2A4E; }
.auth-body .auth-card a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.auth-body .field label, .auth-body .auth-card label { font-weight: 500; }
.auth-foot { margin: 0; font-size: 13px; color: var(--muted); }
.auth-foot a { color: var(--muted); }
@media (max-width: 900px) {
  .auth-side { display: none; }
  .auth-body .auth-logo { display: block; }
  .auth-main { padding: 28px 16px; justify-content: flex-start; padding-top: 48px; }
  .auth-body .auth-card { padding: 26px 22px; }
}

/* ======================================================================
   Panel look: MyKinsta's layout and sizes, in the colours and type of the hostking.host website:
   navy ink #0E1A33 and top bar #0B1A36, Hostking blue #1A66E8 for actions, cool greys for lines
   and page, logo green for ticks. DM Sans 14px, Newsreader page titles.
   ====================================================================== */
.client-area {
  --font-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --navy: #0E1A33; --ink: #0E1A33; --side: #0B1A36; --muted: #5D6880; --border: #E3E8F0; --line-strong: #CED6E3;
  --surface: #F5F7FB; --pill: #E4EBF7; --green: #02A73A; --blue: #1A66E8; --blue-hover: #1552C2; --brand-green: #7CB82F; --tint: #EEF3FC;
  font-family: var(--font-sans); font-size: 14px; color: var(--ink); background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
.client-area body, body.client-area { background: var(--surface); }
.client-area a { color: var(--ink); }
.client-area .content a:not(.btn):not(.nav-link):not(.card):not(.site-tile):not(.quick-tile):not(.chip) { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: #B7C7E4; }
.client-area .content a:not(.btn):hover { text-decoration-color: var(--ink); }

/* Top bar: inset, rounded, near-black, icons on the right */
.client-area .ctop { margin: 8px 8px 0; height: 50px; border-radius: 8px; padding: 0 14px 0 16px; gap: 14px; top: 8px; background: var(--side); }
.client-area .ctop-brand { width: auto; min-width: 190px; }
.client-area .ctop-brand img { height: 24px; }
.client-area .ctop-account { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: 6px; max-width: 320px; }
.client-area .ctop-account span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-area .ctop-account:hover { background: rgba(255,255,255,.08); color: #fff; }
.client-area .ctop-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.client-area .ctop-icon { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; border-radius: 6px; background: none; color: #fff; cursor: pointer; position: relative; }
.client-area .ctop-icon:hover, .client-area .ctop-pop > summary:hover { background: rgba(255,255,255,.08); color: #fff; }
.client-area .ctop-search { flex: none; height: 36px; padding: 0; background: none; gap: 0; border-radius: 6px; }
.client-area .ctop-search input { width: 0; padding: 0; transition: width .15s; }
.client-area .ctop-search.open { background: rgba(255,255,255,.1); padding-right: 10px; }
.client-area .ctop-search.open input { width: 280px; }
.client-area .ctop-pop { position: relative; }
.client-area .ctop-pop > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 9px; border-radius: 6px; color: #fff; }
.client-area .ctop-pop > summary::-webkit-details-marker { display: none; }
.client-area .ctop-bell > summary { width: 36px; padding: 0; justify-content: center; position: relative; }
.client-area .ctop-dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: #F04438; box-shadow: 0 0 0 2px var(--side); }
.client-area .ctop-user { margin: 0; gap: 9px; font-size: 14px; font-weight: 500; }
.client-area .ctop-user .avatar { width: 28px; height: 28px; font-size: 11px; background: #3B4558; }
.client-area .ctop-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; background: #0B1A36; color: #fff; border-radius: 8px; padding: 6px; min-width: 200px; box-shadow: 0 12px 32px rgba(11,26,54,.25); }
.client-area .ctop-bell .ctop-panel { background: #fff; color: var(--ink); width: 400px; padding: 18px 20px 12px; border: 1px solid var(--border); }
.client-area .ctop-panel-head { display: grid; gap: 2px; margin-bottom: 8px; }
.client-area .ctop-panel-head b { font-size: 18px; font-weight: 500; }
.client-area .ctop-note { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; color: var(--ink) !important; text-decoration: none !important; font-weight: 500; border-top: 1px solid var(--border); }
.client-area .ctop-note .dot { display: inline-block; margin-right: 8px; vertical-align: 1px; }
.client-area .ctop-menu-panel a, .client-area .ctop-menu-panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; color: #fff; font: 500 14px var(--font-sans); text-decoration: none; border-radius: 6px; cursor: pointer; }
.client-area .ctop-menu-panel a:hover, .client-area .ctop-menu-panel button:hover { background: rgba(255,255,255,.08); color: #fff; }
.client-area .ctop-menu-panel hr { border: 0; border-top: 1px solid rgba(255,255,255,.14); margin: 6px 4px; }
.client-area .ctop-menu-panel form { margin: 0; }

/* Sidebar */
.client-area .shell { min-height: calc(100vh - 58px); }
.client-area .side { flex: 0 0 232px; max-width: 232px; padding: 18px 8px 18px 8px; top: 58px; height: calc(100vh - 58px); }
.client-area .nav-link { min-height: 36px; padding: 0 12px; border-radius: 6px; color: #3B4558; font-size: 14px; font-weight: 500; }
.client-area .nav-link svg { color: #3B4558; }
.client-area .nav-link:hover { background: #ECF0F7; color: var(--ink); }
.client-area .nav-link.active { background: var(--pill); color: var(--ink); }
.client-area .nav-link.active svg { color: var(--ink); }
.client-area:not(.staff-area) .side-foot { display: none; }
.client-area .side-back { display: flex; align-items: center; gap: 6px; padding: 4px 12px 10px; color: var(--muted); font-size: 13px; text-decoration: none; }
.client-area .side-back:hover { color: var(--ink); }
.client-area .side-site { padding: 2px 12px 12px; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-area .nav-group { color: var(--muted); }

/* Page */
.client-area .content { padding: 26px 32px 64px; gap: 20px; max-width: 1320px; }
.client-area h1.page { font-family: var(--font-serif); font-size: 34px; font-weight: 400; letter-spacing: -.01em; color: var(--ink); }
.client-area h1.page em { font-style: italic; color: var(--ink); }
.client-area .section-title { font-family: var(--font-serif); font-size: 26px; font-weight: 400; }
.client-area h2.section { font-family: var(--font-sans); font-size: 18px; font-weight: 500; letter-spacing: -.005em; }
.client-area .card-title { font-size: 15px; font-weight: 600; }
.client-area .muted, .client-area .page-meta { color: var(--muted); }
.client-area .small { font-size: 13px; }
.client-area .label, .client-area .table th { font-size: 14px; font-weight: 400; color: var(--muted); }
.client-area .label { font-size: 13px; }

/* Website sections live in the sidebar on wide screens (tabs stay on phones) */
@media (min-width: 901px) {
  .client-area .site-layout > .site-menu:first-child { display: none; }
}
.client-area .site-menu { gap: 4px; border-bottom: 0; margin-bottom: 20px; }
.client-area .site-menu a { font-size: 14px; color: var(--muted); padding: 8px 6px; margin-right: 18px; border-bottom: 2px solid transparent; font-weight: 500; }
.client-area .site-menu a:hover { color: var(--ink); }
.client-area .site-menu a.active { color: var(--ink); border-bottom-color: var(--ink); }

/* Cards */
.client-area .card { background: #fff; border: 1px solid #E6EBF2; border-radius: 8px; box-shadow: none; }
.client-area .card-head { padding: 22px 22px 14px; }
.client-area .card-pad { padding: 20px 22px; }
.client-area .tool-box { border-color: #E3E8F0; border-radius: 8px; padding: 22px; }
.client-area .site-icon, .client-area .site-ico { background: var(--pill) !important; color: var(--ink); }
.client-area .site-ico { border-radius: 6px; }
.client-area .site-tile { border-radius: 8px; border-color: #E6EBF2; }
.client-area .site-tile:hover { border-color: var(--line-strong); }
.client-area .site-tile .card-title { font-size: 15px; font-weight: 500; }

/* Tables: no header band, a darker rule under the header, thin rules between rows */
.client-area .table th { background: none !important; padding: 12px 18px; border-bottom: 1px solid #D3DAE6; font-weight: 400; color: var(--muted); }
.client-area .table td { padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--ink); }
.client-area .table tbody tr:last-child td { border-bottom: 0; }
.client-area .table tbody tr:hover td { background: #F9FBFE; }
.client-area .card > .table-wrap > .table, .client-area .card > .table { margin: 0; }

/* Buttons and fields */
.client-area .btn { min-height: 36px; padding: 0 14px; border-radius: 6px; font-weight: 500; font-size: 14px; }
.client-area .btn-sm, .client-area .table td .btn { min-height: 32px; padding: 0 12px; font-size: 13.5px; }
.client-area .btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.client-area .btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.client-area .btn-outline { background: #fff; border: 1px solid #D9E0EA; color: var(--ink); }
.client-area .btn-outline:hover { background: #F5F7FB; border-color: #D3DAE6; }
.client-area .btn-link { color: var(--ink); }
.client-area .input, .client-area select.input, .client-area textarea.input { border: 1px solid #C5CEDC; border-radius: 6px; background: #fff; color: var(--ink); }
.client-area .input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26,102,232,.15); outline: none; }
.client-area .copy-val button { border-color: #D9E0EA; border-radius: 5px; color: #3B4558; }
.client-area .pill { background: var(--pill); color: var(--ink); }
.client-area .chip { border-color: #D9E0EA; }
.client-area .chip.active { background: var(--pill); border-color: var(--pill); }
.client-area .notice { background: #fff; border: 1px solid #E3E8F0; color: var(--ink); border-radius: 8px; }
.client-area .use .bar, .client-area .plan-usage .bar { background: #E3E8F0; height: 5px; border-radius: 3px; }
.client-area .use .bar > span, .client-area .plan-usage .bar span { background: var(--green) !important; }
.client-area .use .bar.warn > span { background: var(--amber) !important; }
.client-area .status.s-green, .client-area .s-green { color: #02873A; }
.client-area .dot-green, .client-area .status.s-green::before { background: var(--green); }

/* Dialogs: title, rules above and below the body, Cancel + black button on the right */
.client-area dialog.confirm { border-radius: 10px; border: 0; padding: 0; }
.client-area dialog.confirm .dlg-head { padding: 22px 26px; border-bottom: 1px solid var(--border); }
.client-area dialog.confirm .dlg-head h3 { font-size: 20px; font-weight: 500; }
.client-area dialog.confirm .dlg-body { padding: 22px 26px; }
.client-area dialog.confirm .dlg-foot { padding: 16px 26px; border-top: 1px solid var(--border); gap: 10px; }
.client-area dialog.confirm .dlg-head .btn { border: 0; background: none; font-size: 18px; }
.client-area dialog::backdrop { background: rgba(11,26,54,.45); }

/* Home: tiles and the two side-by-side cards */
.client-area .activity-list li { padding: 12px 22px; }
.client-area .activity-what a { color: var(--ink) !important; text-decoration: none !important; }

/* Staff: same skin, its own groups */
.staff-area .side-foot { border-top-color: var(--border); }

@media (max-width: 900px) {
  .client-area .ctop { margin: 0; border-radius: 0; top: 0; }
  .client-area .ctop-account, .client-area .ctop-search, .client-area .ctop-name { display: none; }
  .client-area .side { top: 50px; height: calc(100vh - 50px); }
  .client-area .content { padding: 20px 16px 48px; }
  .client-area .ctop-bell .ctop-panel { width: min(360px, calc(100vw - 24px)); right: -60px; }
}
.client-area .content a:not(.btn):not(.nav-link):not(.card):not(.site-tile):not(.quick-tile):not(.chip) { text-decoration: none; }
.client-area .content p a:not(.btn), .client-area .content .notice a, .client-area .content .muted a:not(.btn), .client-area .pin-line a, .client-area .attention a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: #B7C7E4; }
.client-area .link-plain { color: var(--ink); font-weight: 500; }
.client-area .home-pair > .card { margin: 0; }
.client-area .feed { list-style: none; margin: 0; padding: 0 22px 10px; }
.client-area .feed li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--border); }
.client-area .feed li:first-child { border-top: 0; }
.client-area .feed-text { color: var(--ink); font-weight: 500; line-height: 1.4; }
.client-area .feed-text .muted { font-weight: 400; }
.client-area .ok-ring { width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid var(--green); color: var(--green); display: inline-grid; place-items: center; }
.client-area .ok-ring svg { stroke-width: 2.4; }
.client-area .checklist a { text-decoration: none !important; }
.client-area { --ring-track: #E9EEF5; }
.client-area .bill-due { background: #fff; color: var(--ink); border: 1px solid #E6EBF2; border-top: 1px solid #E6EBF2; }
.client-area .bill-due .btn-primary { background: var(--blue); color: #fff; } .client-area .bill-due .btn-primary:hover { background: var(--blue-hover); color: #fff; }
.client-area .mono { font-family: var(--font-mono); }
.client-area .card-title { font-size: 17px; font-weight: 500; letter-spacing: -.005em; }
.client-area .site-tile .card-title, .client-area .quick-tile .card-title, .client-area .count-tile .card-title { font-size: 15px; }
.client-area .tool-head .card-title { font-size: 16px; }
.client-area .checklist .card-title, .client-area h2.section { font-size: 18px; font-weight: 500; }
/* Auth pages in the same MyKinsta skin */
.auth-body { --navy: #0E1A33; --muted: #5D6880; --font-sans: 'DM Sans', system-ui, sans-serif; font-family: var(--font-sans); background: #F5F7FB; color: #0E1A33; }
.auth-body .auth { background: #F5F7FB; }
.auth-side { background: #0B1A36; }
.auth-side::after { background: radial-gradient(circle, rgba(26,102,232,.38), transparent 70%); }
.auth-side li { color: #E4EBF7; }
.auth-side-foot { color: #8C9AB3; }
.auth-body .auth-card { border-color: #E6EBF2; border-radius: 8px; }
.auth-body .btn-primary { background: #1A66E8; border-color: #1A66E8; border-radius: 6px; }
.auth-body .btn-primary:hover { background: #1552C2; }
.auth-body .input { border-color: #C5CEDC; border-radius: 6px; }
.auth-body .auth-card a { color: #0E1A33; text-decoration-color: #B7C7E4; }
.client-area .filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.client-area .tpl-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.client-area .tpl-layout > .card { margin: 0; }
.client-area .tpl-body { font-family: var(--font-mono) !important; font-size: 12.5px !important; line-height: 1.5; }
.client-area .tpl-preview { width: 100%; height: 760px; border: 0; border-top: 1px solid var(--border); border-radius: 0 0 8px 8px; display: block; background: #EEF2F8; }
@media (max-width: 1100px) { .client-area .tpl-layout { grid-template-columns: 1fr; } }

/* Brand touches from the website: blue focus and active marks, the hero's dotted navy on the sign-in side */
.client-area .input:focus { border-color: var(--blue); }
.client-area .nav-link.active svg { color: var(--blue); }
.client-area .site-menu a.active { border-bottom-color: var(--blue); }
.client-area .ok-ring { border-color: var(--brand-green); color: var(--brand-green); }
.client-area .content p a:not(.btn), .client-area .content .notice a, .client-area .pin-line a { color: var(--blue); text-decoration-color: rgba(26,102,232,.35); }
.auth-side { background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(26,102,232,.35), transparent 70%), radial-gradient(rgba(255,255,255,.07) 1.5px, transparent 1.6px) 0 0 / 22px 22px, #0B1A36; }
/* Sidebar scrolls only when it must, with a thin bar shown on hover */
.client-area .side { scrollbar-width: thin; scrollbar-color: transparent transparent; overscroll-behavior: contain; }
.client-area .side:hover { scrollbar-color: #C5CEDC transparent; }
.client-area .side::-webkit-scrollbar { width: 6px; }
.client-area .side::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
.client-area .side:hover::-webkit-scrollbar-thumb { background: #C5CEDC; }
/* Sortable table headers */
.table th a.sort { color: inherit !important; text-decoration: none !important; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.table th a.sort:hover { color: var(--ink, var(--navy)) !important; }
.table th a.sort .arr { font-size: 11px; opacity: .35; }
.table th a.sort.on { color: var(--ink, var(--navy)) !important; font-weight: 500; }
.table th a.sort.on .arr { opacity: 1; color: var(--blue); }
.auth-body .input:focus { border-color: #1A66E8; box-shadow: 0 0 0 3px rgba(26,102,232,.15); outline: none; }
/* Analytics */
.stat-row { gap: 16px; }
.stat-row > .card { margin: 0; }
.stat-num { font-size: 26px; font-weight: 500; letter-spacing: -.01em; margin: 4px 0 2px; color: var(--ink, var(--navy)); }
.share-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--border); }
.share-bar span { display: block; height: 100%; }
.rank-list { list-style: none; margin: 0; padding: 0 22px 14px; }
.rank-list li { position: relative; display: flex; justify-content: space-between; gap: 14px; padding: 9px 10px; margin-bottom: 4px; font-size: 13.5px; border-radius: 6px; overflow: hidden; }
.rank-list .rank-bar { position: absolute; inset: 0 auto 0 0; background: var(--tint); z-index: 0; border-radius: 6px; }
.rank-list .rank-key { position: relative; z-index: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rank-list .rank-val { position: relative; z-index: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .stat-row.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Home: quick actions */
.quick-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.quick-actions .quick-action { margin: 0; display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none !important; color: var(--ink, var(--navy)) !important; transition: border-color .15s, box-shadow .15s; }
.quick-actions .quick-action:hover { border-color: var(--blue); box-shadow: 0 2px 10px rgba(26,102,232,.08); }
.quick-actions .quick-action b { display: block; font-weight: 500; font-size: 14px; line-height: 1.3; }
.quick-actions .quick-action .small { display: block; line-height: 1.3; }
.quick-actions .qa-icon { flex: none; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--tint); color: var(--blue); }
@media (max-width: 1100px) { .quick-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .quick-actions { grid-template-columns: 1fr 1fr; } .quick-actions .quick-action .small { display: none; } }
/* Service information: label and value side by side, as on WHMCS */
.facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.facts > div:last-child { border-bottom: 0; }
.facts .label { margin: 0; }
/* Client Summary: WHMCS-style boxes */
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.summary-grid > .card, .summary-col > .card { margin: 0; }
.summary-col { display: grid; gap: 16px; }
.summary-small .pin-check .muted { display: none; }
.facts-tight > div { grid-template-columns: 120px minmax(0, 1fr); padding: 6px 0; font-size: 13.5px; }
.link-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.flush-feed { padding: 0; margin-top: 6px; }
@media (max-width: 1200px) { .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .summary-grid { grid-template-columns: 1fr; } }

/* ======================================================================
   Staff area in WHMCS's admin look (for now): Open Sans 13px, white header with search, a dark-blue menu bar,
   grey boxes with blue centred titles, dark-blue table headers with striped rows, grey tab buttons, Bootstrap buttons.
   ====================================================================== */
@font-face { font-family: 'Open Sans'; src: url('/fonts/OpenSans-Variable.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
body.staff-area {
  --font-sans: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; --font-serif: var(--font-sans);
  --wh-blue: #1A4D80; --wh-link: #1A4D80; --wh-btn: #337AB7; --wh-grey: #F2F2F2; --wh-line: #DDDDDD;
  --ink: #333; --navy: #333; --muted: #777; --border: #DDDDDD; --surface: #FFFFFF; --pill: #E8EEF5; --tint: #F5F8FB; --blue: #337AB7; --blue-hover: #286090;
  font-family: var(--font-sans); font-size: 13px; line-height: 1.45; color: #333; background: #fff;
}
.staff-area .wh-top { display: flex; align-items: center; gap: 20px; height: 56px; padding: 0 20px; background: #fff; border-bottom: 1px solid #E5E5E5; }
.staff-area .wh-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #777; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.staff-area .wh-logo img { height: 26px; width: auto; }
.staff-area .wh-search { flex: 0 1 460px; display: flex; margin-left: 20px; }
.staff-area .wh-search input { flex: 1; height: 30px; border: 1px solid #CCC; border-right: 0; border-radius: 3px 0 0 3px; padding: 0 10px; font: 13px var(--font-sans); }
.staff-area .wh-search input:focus { outline: none; border-color: #66AFE9; box-shadow: 0 0 0 2px rgba(102,175,233,.3); }
.staff-area .wh-search button { width: 34px; height: 30px; border: 1px solid #CCC; border-radius: 0 3px 3px 0; background: #F5F5F5; color: #555; cursor: pointer; display: grid; place-items: center; }
.staff-area .wh-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.staff-area .wh-link { color: #555 !important; text-decoration: none !important; }
.staff-area .wh-right .ctop-pop > summary { color: #555; height: 30px; }
.staff-area .wh-right .ctop-pop > summary:hover { background: #F2F2F2; color: #333; }
.staff-area .wh-right .ctop-dot { box-shadow: 0 0 0 2px #fff; }
.staff-area .wh-user { position: relative; }
.staff-area .wh-user > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px; color: #333; font-weight: 600; padding: 4px 8px; border-radius: 3px; }
.staff-area .wh-user > summary::-webkit-details-marker { display: none; }
.staff-area .wh-user > summary:hover { background: #F2F2F2; }
.staff-area .wh-drop { display: none; position: absolute; z-index: 70; top: 100%; left: 0; min-width: 210px; background: #fff; border: 1px solid rgba(0,0,0,.15); border-radius: 3px; box-shadow: 0 6px 12px rgba(0,0,0,.175); padding: 5px 0; }
.staff-area .wh-user .wh-drop { left: auto; right: 0; display: block; }
.staff-area .wh-user:not([open]) .wh-drop { display: none; }
.staff-area .wh-drop a, .staff-area .wh-drop button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 6px 18px; color: #333 !important; text-decoration: none !important; background: none; border: 0; font: 13px var(--font-sans); text-align: left; cursor: pointer; white-space: nowrap; }
.staff-area .wh-drop a:hover, .staff-area .wh-drop button:hover, .staff-area .wh-drop a.on { background: #F5F5F5; color: var(--wh-blue) !important; }
.staff-area .wh-drop form { margin: 0; }
.staff-area .wh-nav { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: stretch; min-height: 40px; padding: 0 12px; background: var(--wh-blue); }
.staff-area .wh-item { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 14px; color: #fff !important; text-decoration: none !important; font-size: 13px; cursor: pointer; outline: none; }
.staff-area .wh-item:hover, .staff-area .wh-item:focus-within, .staff-area .wh-item.on { background: rgba(0,0,0,.22); }
.staff-area .wh-menu::after { content: ''; border: 4px solid transparent; border-top-color: rgba(255,255,255,.75); margin-top: 4px; }
.staff-area .wh-menu:hover > .wh-drop, .staff-area .wh-menu:focus-within > .wh-drop { display: block; }
.staff-area .wh-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #F0AD4E; color: #fff; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; }
.staff-area .wh-drop .wh-badge { background: #D9534F; }
/* no sidebar: WHMCS's content runs the full width */
.staff-area .shell > .side { display: none; }
.staff-area .shell { min-height: 0; }
.staff-area .content { max-width: none; padding: 16px 22px 50px; gap: 14px; }
/* Type */
.staff-area h1.page { font-family: var(--font-sans); font-size: 22px; font-weight: 400; color: #333; letter-spacing: 0; margin: 0; }
.staff-area h1.page em { font-style: normal; }
.staff-area .section-title { font-family: var(--font-sans); font-size: 18px; font-weight: 400; color: #333; }
.staff-area h2.section, .staff-area .card-title { font-family: var(--font-sans); font-size: 14px !important; font-weight: 700; color: var(--wh-blue); letter-spacing: 0; }
.staff-area .muted, .staff-area .page-meta { color: #777; }
.staff-area .small { font-size: 12px; }
.staff-area a { color: var(--wh-link); }
.staff-area a:hover { color: #23527C; text-decoration: underline; }
.staff-area .label, .staff-area .table th { font-size: 12px; }
/* Boxes: WHMCS's grey panels */
.staff-area .card { background: #fff; border: 1px solid #DDD; border-radius: 3px; box-shadow: none; }
.staff-area .card-head { padding: 9px 14px; background: #F5F5F5; border-bottom: 1px solid #DDD; border-radius: 3px 3px 0 0; }
.staff-area .card-pad { padding: 12px 14px; }
.staff-area .summary-grid > .card, .staff-area .summary-col > .card { background: #EFEFEF; border-color: #E2E2E2; }
.staff-area .summary-grid .card-title { text-align: center; display: block; }
.staff-area .summary-grid .facts { background: #fff; padding: 4px 8px; margin-top: 8px !important; }
.staff-area .summary-grid .facts > div:nth-child(odd) { background: #F7F7F7; }
.staff-area .facts > div { padding: 3px 4px; font-size: 12px; border-bottom: 0; gap: 8px; }
.staff-area .facts-tight > div { grid-template-columns: 110px minmax(0, 1fr); }
.staff-area .notice { background: #D9EDF7; border: 1px solid #BCE8F1; color: #31708F; border-radius: 3px; }
.staff-area .error { background: #F2DEDE; border: 1px solid #EBCCD1; color: #A94442; border-radius: 3px; }
.staff-area .staff-note { background: #FCF8E3; border: 1px solid #FAEBCC; color: #8A6D3B; border-radius: 3px; }
/* Tabs: WHMCS's grey tab buttons */
.staff-area .site-menu, .staff-area .subtabs { display: flex; flex-wrap: wrap; gap: 3px; border-bottom: 1px solid #CCC; padding: 0 4px; margin: 4px 0 14px; }
.staff-area .site-menu a, .staff-area .subtabs a { margin: 0 0 -1px; padding: 5px 11px; border: 1px solid #CCC; border-bottom-color: #CCC; border-radius: 3px 3px 0 0; background: #EFEFEF; color: #1A4D80 !important; font-size: 12px; font-weight: 400; text-decoration: none !important; }
.staff-area .site-menu a:hover, .staff-area .subtabs a:hover { background: #E2E2E2; }
.staff-area .site-menu a.active, .staff-area .subtabs a.active { background: #fff; border-bottom-color: #fff; color: #333 !important; font-weight: 600; }
/* Tables: dark-blue header, striped rows */
.staff-area .table { font-size: 12px; border-collapse: collapse; }
.staff-area .table th { background: var(--wh-blue) !important; color: #fff !important; font-weight: 700; padding: 6px 8px; border: 1px solid #16426E !important; text-align: center; white-space: nowrap; }
.staff-area .table th a.sort, .staff-area .table th a.sort.on { color: #fff !important; }
.staff-area .table th a.sort .arr, .staff-area .table th a.sort.on .arr { color: #fff; opacity: .8; }
.staff-area .table td { padding: 5px 8px; border-bottom: 1px solid #E8E8E8; color: #333; vertical-align: middle; }
.staff-area .table tbody tr:nth-child(even) td { background: #F9F9F9; }
.staff-area .table tbody tr:hover td { background: #F1F6FB; }
.staff-area .table td .muted.small, .staff-area .table .small { font-size: 11px; }
/* Buttons and fields: Bootstrap 3, as WHMCS */
.staff-area .btn { min-height: 28px; padding: 3px 11px; border-radius: 3px; font: 400 12.5px var(--font-sans); border: 1px solid #CCC; background: #fff; color: #333; box-shadow: none; }
.staff-area .btn:hover { background: #E6E6E6; border-color: #ADADAD; color: #333; text-decoration: none; }
.staff-area .btn-sm, .staff-area .table td .btn { min-height: 24px; padding: 1px 8px; font-size: 12px; }
.staff-area .btn-primary { background: #337AB7; border-color: #2E6DA4; color: #fff; }
.staff-area .btn-primary:hover { background: #286090; border-color: #204D74; color: #fff; }
.staff-area .btn-danger { background: #D9534F; border-color: #D43F3A; color: #fff; }
.staff-area .btn-danger:hover { background: #C9302C; border-color: #AC2925; color: #fff; }
.staff-area .btn-outline { background: #fff; border-color: #CCC; color: #333; }
.staff-area .input, .staff-area select.input, .staff-area textarea.input { min-height: 30px; padding: 4px 8px; border: 1px solid #CCC; border-radius: 3px; font: 13px var(--font-sans); color: #555; box-shadow: inset 0 1px 1px rgba(0,0,0,.075); }
.staff-area .input:focus { border-color: #66AFE9; box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6); }
.staff-area label { font-size: 12.5px; font-weight: 600; color: #333; }
/* Statuses: coloured labels like WHMCS's */
.staff-area .status { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: 11px; font-weight: 700; line-height: 1.6; color: #fff !important; }
.staff-area .status::before { display: none !important; }
.staff-area .status.s-green { background: #5CB85C; }
.staff-area .status.s-amber { background: #F0AD4E; }
.staff-area .status.s-red { background: #D9534F; }
.staff-area .status.s-grey { background: #999; }
.staff-area .status.s-blue { background: #5BC0DE; }
.staff-area dialog.confirm { border-radius: 4px; }
.staff-area .feed li { padding: 6px 0; }
.staff-area .link-list a { color: var(--wh-blue); }
@media (max-width: 900px) {
  .staff-area .wh-top { flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 8px; }
  .staff-area .wh-search { order: 3; flex: 1 1 100%; margin: 0; }
  .staff-area .wh-nav { flex-wrap: nowrap; overflow-x: auto; }
  .staff-area .content { padding: 12px; }
}
.staff-area .link-list { font-size: 12.5px; gap: 4px; }
.check-columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; }
/* WHMCS (Blend), from Hostking's own WHMCS 9.1 admin: one blue bar (#1A4D80) with logo, menus and icons; grey sidebar; #F6F6F6 page */
body.staff-area { background: #F6F6F6; font-size: 13px; }
.staff-area .wh-bar { position: sticky; top: 0; z-index: 60; display: flex; align-items: stretch; height: 33px; padding: 0 12px 0 0; background: #1A4D80; }
.staff-area .wh-bar .wh-logo { display: flex; align-items: center; padding: 0 22px 0 18px; }
.staff-area .wh-bar .wh-logo img { height: 22px; }
.staff-area .wh-bar .wh-nav { position: static; display: flex; flex-wrap: nowrap; min-height: 0; padding: 0; background: none; overflow: visible; }
.staff-area .wh-bar .wh-item { padding: 0 12px; font-size: 14px; }
.staff-area .wh-bar .wh-item:hover, .staff-area .wh-bar .wh-item:focus-within, .staff-area .wh-bar .wh-item.on { background: #1B4D7F; box-shadow: inset 0 -3px 0 rgba(255,255,255,.35); }
.staff-area .wh-bar .wh-menu::after { border-top-color: #fff; }
.staff-area .wh-bar .wh-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.staff-area .wh-icon, .staff-area .wh-pop > summary, .staff-area .wh-bar .ctop-pop > summary { width: 30px; height: 30px; display: grid; place-items: center; color: #fff !important; border-radius: 3px; cursor: pointer; list-style: none; text-decoration: none !important; padding: 0; }
.staff-area .wh-pop > summary::-webkit-details-marker { display: none; }
.staff-area .wh-icon:hover, .staff-area .wh-pop > summary:hover, .staff-area .wh-bar .ctop-pop > summary:hover { background: rgba(255,255,255,.12); }
.staff-area .wh-bar .ctop-dot { box-shadow: 0 0 0 2px #1A4D80; }
.staff-area .wh-pop { position: relative; }
.staff-area .wh-pop .wh-drop { display: block; left: auto; right: 0; }
.staff-area .wh-pop:not([open]) .wh-drop { display: none; }
.staff-area .wh-avatar { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #1A4D80; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.staff-area .wh-drop-head { display: block; padding: 6px 18px 8px; font-weight: 700; color: #333; border-bottom: 1px solid #EEE; margin-bottom: 4px; }
.staff-area .wh-searchpop .wh-search { display: flex; gap: 6px; width: 420px; padding: 8px; margin: 0; }
.staff-area .wh-searchpop .wh-search input { flex: 1; height: 30px; border: 1px solid #CCC; border-radius: 3px; padding: 0 8px; font: 13px var(--font-sans); }
/* sidebar */
.staff-area .shell > .side { display: block; flex: 0 0 145px; max-width: 145px; padding: 0; background: #F6F6F6; border-right: 1px solid #DDD; position: sticky; top: 33px; height: calc(100vh - 33px); overflow-y: auto; }
.staff-area.side-min .shell > .side { display: none; }
.staff-area .wh-side { font-size: 12px; }
.staff-area .wh-side-head { display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: rgba(0,0,0,.06); color: #444; font-weight: 600; font-size: 13px; }
.staff-area .wh-side-head svg { color: #888; }
.staff-area .wh-side-body { display: grid; gap: 1px; padding: 6px 8px 10px; }
.staff-area .wh-side-body a { color: #202F60; text-decoration: underline; font-size: 12px; line-height: 1.5; }
.staff-area .wh-side-search .input { min-height: 24px; height: 24px; padding: 0 4px; font-size: 12px; margin-bottom: 4px; width: 100%; }
.staff-area .wh-side-row { display: flex; gap: 0; }
.staff-area .wh-side-row .input { border-radius: 2px 0 0 2px; margin: 0; }
.staff-area .wh-side-row .btn { min-height: 24px; height: 24px; border-radius: 0 2px 2px 0; padding: 0 6px; font-size: 12px; }
.staff-area .wh-side-min { display: block; width: 100%; padding: 3px; border: 0; background: #666; color: #fff; font: 11px var(--font-sans); cursor: pointer; }
.staff-area .content { background: #fff; min-height: calc(100vh - 33px); }
.staff-area h1.page { font-size: 19.6px; }
.staff-area a { color: #202F60; }
@media (max-width: 900px) {
  .staff-area .wh-bar { height: auto; flex-wrap: wrap; padding: 0; }
  .staff-area .wh-bar .wh-nav { order: 3; flex: 1 1 100%; overflow-x: auto; }
  .staff-area .wh-bar .wh-item { height: 33px; }
  .staff-area .shell > .side { display: none; }
}
.staff-area .client-jump { max-width: 460px; margin: 10px 0 12px; }
.staff-area .client-jump .input { width: 100%; }
.staff-area .client-jump .input::placeholder { color: #333; }
.staff-area .client-title { font-size: 17px; font-weight: 400; margin: 0; color: #333; }
.staff-area .client-head { margin-top: 0; }
.staff-area .client-flags { background: #EAF2FA; border: 1px solid #D6E4F2; border-radius: 3px; padding: 4px 10px; gap: 12px; }
.staff-area .client-flags b.yes { color: #5CB85C; text-decoration: underline; }
.staff-area .client-flags b.no { color: #D9534F; text-decoration: underline; }
.staff-area .summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1300px) { .staff-area .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* WHMCS's service form: white right-aligned labels, grey value cells */
.staff-area .wh-usage { padding: 8px 12px; margin-bottom: 8px; background: #F5F5F5; border: 1px dashed #CCC; text-align: center; font-size: 12px; }
.staff-area .wh-svc { padding: 2px; }
.staff-area .wh-form { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: 13px; }
.staff-area .wh-form td { padding: 5px 8px; vertical-align: middle; }
.staff-area .wh-form td.fl { width: 15%; text-align: right; background: #fff; color: #333; white-space: nowrap; }
.staff-area .wh-form td.fv { width: 35%; background: #EFEFEF; }
.staff-area .wh-form .input { min-height: 28px; height: 28px; padding: 2px 8px; font-size: 13px; max-width: 100%; }
.staff-area .wh-form select.input { width: auto; min-width: 220px; }
.staff-area .wh-form .w-sm { width: 140px; min-width: 0; }
.staff-area .wh-cmds { display: table-cell; }
.staff-area .wh-cmds form { display: inline-block; margin: 0 2px 2px 0; }
.staff-area .wh-cmds > .btn { margin: 0 2px 2px 0; }
.staff-area .wh-save { padding: 10px; text-align: center; }
@media (max-width: 900px) { .staff-area .wh-form, .staff-area .wh-form tbody, .staff-area .wh-form tr, .staff-area .wh-form td { display: block; width: auto !important; text-align: left !important; } }
/* WHMCS list details: record count line, status as coloured text */
.staff-area .wh-count { padding: 8px 10px 6px; font-size: 12px; color: #333; }
.staff-area .status { background: none !important; color: #333 !important; padding: 0; font-weight: 400; font-size: 12px; border-radius: 0; }
.staff-area .status.s-green, .staff-area .wh-ok { color: #3C9A1E !important; }
.staff-area .status.s-amber { color: #E68A00 !important; }
.staff-area .status.s-red, .staff-area .wh-bad { color: #CC0000 !important; }
.staff-area .status.s-grey, .staff-area .wh-off { color: #888 !important; }
.staff-area .status.s-blue { color: #2A7AB0 !important; }
.staff-area .wh-totals { background: #F5F5F5; border: 1px solid #E5E5E5; border-radius: 3px; padding: 8px 14px; text-align: center; font-size: 13px; line-height: 1.7; }
.staff-area .wh-totals b { margin-right: 4px; }
.staff-area .status.st-unpaid, .staff-area .status.st-pending { color: #CC0000 !important; } .staff-area .status.st-suspended { color: #FF6600 !important; }
.staff-area .wh-inv-head { display: grid; gap: 8px; }
.staff-area .wh-inv-head .wh-form td.fl { width: 160px; }
.staff-area .wh-inv-status { text-align: center; vertical-align: middle !important; width: 30%; font-size: 26px; font-weight: 700; background: #fff !important; }
.staff-area .wh-inv-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.staff-area .wh-inv-actions form { margin: 0; }
.staff-area .wh-tabs { margin-top: 10px; }
.staff-area .wh-tabpane { margin-top: -15px; border-top: 0; border-radius: 0 0 3px 3px; }
.staff-area .wh-tickets td { font-size: 12.5px; }
.staff-area .wh-flag { color: #F0AD4E; font-size: 14px; }
.staff-area .wh-flag.high { color: #D9534F; }
.staff-area .wh-flag.low { color: #5BC0DE; }
.staff-area .wh-tag { display: inline-block; padding: 0 4px; border-radius: 2px; font-size: 9.5px; font-weight: 700; line-height: 1.6; color: #fff; background: #BBB; vertical-align: 1px; }
.staff-area .wh-tag.owner { background: #5CB85C; }
.staff-area .wh-tst { color: #779500; }
.staff-area .wh-tst-customer_reply, .staff-area .wh-tst-customer-reply { color: #FF6600; }
.staff-area .wh-tst-answered { color: #000; }
.staff-area .wh-tst-on_hold, .staff-area .wh-tst-in_progress { color: #224488; }
.staff-area .wh-tst-closed { color: #888; }
.staff-area .wh-ticket-head { margin: 6px 0 8px; align-items: flex-start; }
.staff-area .wh-ticket-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; font-size: 16px; }
.staff-area .wh-ticket-title select { width: auto; min-height: 26px; height: 26px; padding: 0 6px; font-size: 12.5px; }
.staff-area .wh-lastreply { background: #333; color: #fff; border-radius: 3px; padding: 3px 8px; font-size: 11px; }
.staff-area .wh-reply-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.staff-area .wh-reply-row > .input { flex: 0 1 260px; }
.staff-area .wh-reply-row .saved-pick { flex: 1 1 260px; position: relative; }
.staff-area .wh-reply-row select { flex: 0 0 140px; }
.staff-area .wh-reply-row .btn-primary { margin-left: auto; min-width: 100px; }
.staff-area textarea.wh-note { background: #FFFBE6; }
.staff-area .wh-thread { margin-top: 6px; }
/* WHMCS ticket messages: author on the left, message on the right */
.staff-area .ticket-thread { gap: 0 !important; border: 1px solid #DDD; }
.staff-area .ticket-thread article { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 0 16px; margin: 0; border: 0; border-bottom: 1px solid #DDD !important; border-radius: 0; padding: 12px 14px; }
.staff-area .ticket-thread article > .row-between { grid-column: 1; grid-row: 1 / span 3; flex-direction: column; align-items: flex-end; text-align: right; margin: 0 !important; gap: 4px !important; }
.staff-area .ticket-thread article > :not(.row-between) { grid-column: 2; }
.staff-area .ticket-thread article[style*="border-left"] { background: #F3F7FB; }
@media (max-width: 900px) { .staff-area .ticket-thread article { grid-template-columns: 1fr; } .staff-area .ticket-thread article > .row-between { grid-row: auto; align-items: flex-start; text-align: left; } .staff-area .ticket-thread article > :not(.row-between) { grid-column: 1; } }
.staff-area .wh-side-info { grid-template-columns: 1fr; gap: 0; } .staff-area .wh-side-info b { margin-top: 6px; font-size: 12px; } .staff-area .wh-side-search label { font-weight: 600; font-size: 11.5px; display: grid; gap: 2px; margin-bottom: 4px; }
/* WHMCS dashboard */
.staff-area .wh-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.staff-area .wh-tile { display: flex; align-items: center; gap: 14px; height: 52px; color: #fff !important; text-decoration: none !important; border-radius: 2px; overflow: hidden; }
.staff-area .wh-tile .wh-tile-ico { width: 84px; height: 100%; display: grid; place-items: center; background: rgba(0,0,0,.1); }
.staff-area .wh-tile b { display: block; font-size: 20px; font-weight: 400; line-height: 1.1; }
.staff-area .wh-tile span:last-child { font-size: 11px; }
.staff-area .t-green { background: #5CC560; } .staff-area .t-pink { background: #E5317A; } .staff-area .t-orange { background: #EBA845; } .staff-area .t-teal { background: #79C9D2; }
.staff-area .wh-widgets { columns: 3 360px; column-gap: 10px; }
.staff-area .wh-widget { break-inside: avoid; margin: 0 0 10px !important; display: block; }
.staff-area .wh-widget .card-head { background: #fff; display: flex; justify-content: space-between; align-items: center; }
.staff-area .wh-widget .card-head .section { color: #333; font-weight: 400; font-size: 13px !important; }
.staff-area .wh-seg { display: inline-flex; }
.staff-area .wh-seg a { padding: 2px 8px; border: 1px solid #CCC; margin-left: -1px; font-size: 11px; color: #555 !important; text-decoration: none !important; background: #fff; }
.staff-area .wh-seg a.on { background: #E6E6E6; font-weight: 600; }
.staff-area .wh-chart { width: 100%; height: auto; display: block; }
.staff-area .wh-legend { font-size: 11px; color: #555; text-align: center; margin-bottom: 6px; }
.staff-area .wh-legend span { display: inline-block; width: 26px; height: 10px; margin: 0 4px 0 10px; vertical-align: -1px; }
.staff-area .lg-new { background: #E1E1E1; } .staff-area .lg-act { background: #8C9EF0; } .staff-area .lg-inc { background: #5CB85C; }
.staff-area .wh-billing { display: grid; grid-template-columns: 1fr 1fr; }
.staff-area .wh-billing > div { padding: 14px; border-bottom: 1px solid #EEE; }
.staff-area .wh-billing > div:nth-child(odd) { border-right: 1px solid #EEE; }
.staff-area .wh-billing b { display: block; font-size: 20px; font-weight: 400; }
.staff-area .wh-billing span { font-size: 11px; color: #777; }
.staff-area .c-green { color: #5CB85C; } .staff-area .c-orange { color: #EBA845; } .staff-area .c-pink { color: #E5317A; }
.staff-area .wh-activity { list-style: none; margin: 0; padding: 4px 14px 10px; max-height: 300px; overflow-y: auto; }
.staff-area .wh-activity li { padding: 6px 0; border-bottom: 1px solid #F0F0F0; font-size: 12.5px; }
@media (max-width: 900px) { .staff-area .wh-tiles { grid-template-columns: 1fr 1fr; } }
.staff-area .wh-overview .card-head { background:#fff; display:flex; justify-content:space-between; align-items:center; } .staff-area .wh-overview .card-head .section { color:#333; font-weight:400; font-size:13px !important; } .staff-area .wh-overview .wh-chart { max-height: 240px; }
/* Calendar */
.staff-area .wh-cal-filter { background: #F2F2F2; padding: 6px 10px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 12px; border-radius: 3px; }
.staff-area .wh-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid #DDD; border-top: 1px solid #DDD; }
.staff-area .wh-cal-h { text-align: center; font-weight: 600; font-size: 12px; padding: 3px; border-right: 1px solid #DDD; border-bottom: 1px solid #DDD; background: #FAFAFA; }
.staff-area .wh-cal-d { min-height: 96px; padding: 2px 3px; border-right: 1px solid #DDD; border-bottom: 1px solid #DDD; font-size: 11px; display: grid; align-content: start; gap: 1px; min-width: 0; }
.staff-area .wh-cal-d .n { text-align: right; color: #555; }
.staff-area .wh-cal-d.other .n { color: #BBB; }
.staff-area .wh-cal-d.today { background: #FCF8E3; }
.staff-area .wh-cal-d .ev { display: block; padding: 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #333 !important; text-decoration: none !important; border-radius: 2px; }
.staff-area .ev-svc { background: #FCEC9E; } .staff-area .ev-addon { background: #FDE2B4; } .staff-area .ev-domain { background: #D5E8F7; } .staff-area .ev-todo { background: #3A6FCB; color: #fff !important; }
.staff-area .wh-cal-d .more { color: #777; }

/* An email as sent, shown as readable text */
.mail-body{white-space:pre-wrap;word-break:break-word;background:#fff;border:1px solid var(--line, #ddd);padding:12px 14px;border-radius:4px;margin:8px 0 0;max-height:360px;overflow:auto;font-size:13px;line-height:1.55;max-width:760px}

/* WHMCS-style search bar and list bar (View/Search Clients and similar lists) */
.staff-area .wh-finder{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:flex-end;padding:12px 14px;margin:0 0 4px;background:#F5F5F5;border:1px solid #E2E2E2}
.staff-area .wh-finder > label{flex:1 1 140px}
.staff-area .wh-finder > .form-grid{flex:1 1 100%}
.staff-area .wh-finder label{font-weight:700;font-size:13px;display:flex;flex-direction:column;gap:4px;margin:0}
.staff-area .wh-finder-ico{width:40px;height:40px;flex:0 0 40px;border-radius:50%;background:#5CB85C;color:#fff;display:grid;place-items:center}
.staff-area .wh-listbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0 6px}
.staff-area .wh-listbar-right{display:flex;gap:12px;align-items:center}
.staff-area .wh-toggle{display:inline-flex;align-items:center;border:1px solid #ccc;border-radius:3px;font-size:12px;color:#333;text-decoration:none;padding-right:6px;background:#fff}
.staff-area .wh-toggle span{padding:2px 6px;margin-right:6px;background:#ddd;color:#555;font-weight:700}
.staff-area .wh-toggle.on span{background:#337AB7;color:#fff}
.staff-area .input-sm{padding:2px 4px;min-height:0;height:24px;width:auto;display:inline-block}
.staff-area .wh-label{display:inline-block;font-size:10px;font-weight:700;line-height:1;padding:3px 5px;border-radius:2px;color:#fff;background:#999;letter-spacing:.02em}
.staff-area .wh-label-active{background:#5CB85C}
.staff-area .wh-label-inactive{background:#999}
.staff-area .wh-label-closed{background:#555}
@media (max-width:900px){.staff-area .wh-finder-ico{display:none}}
.staff-area .wh-finder [hidden]{display:none!important}
.staff-area .wh-finder .btn{white-space:nowrap;height:30px;display:inline-flex;align-items:center;gap:5px}
.staff-area .wh-finder .input{height:30px;min-height:0;padding:4px 8px}
.staff-area table.table td a{color:#1A4D80}

/* Manage Orders */
.staff-area span.st-active, .staff-area td.st-active { color: #5CB85C; }
.staff-area span.st-pending, .staff-area span.st-unpaid, .staff-area div.st-pending { color: #CC0000; }
.staff-area span.st-cancelled { color: #888; }
.staff-area .wh-tab-btn { margin-left: auto; border: 1px solid #CCC; background: #F5F5F5; border-radius: 3px 3px 0 0; padding: 4px 10px; font: 13px var(--font-sans); cursor: pointer; }
.staff-area .wh-filterbox { background: #F5F5F5; border: 1px solid #E2E2E2; padding: 10px 14px; margin: 0 0 6px; }
.staff-area .wh-filterbox[hidden] { display: none; }
.staff-area .wh-filterbox td.label { width: 130px; text-align: right; font-weight: 400; }
.staff-area .btn-success { background: #5CB85C; border-color: #4CAE4C; color: #fff; }
.staff-area .btn-success:hover { background: #449D44; }
.staff-area .wh-mass { margin: 8px 0; display: flex; gap: 6px; align-items: center; font-size: 13px; }
.staff-area .wh-order-actions { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.staff-area .wh-order-actions form { margin: 0; }
.staff-area .wh-infobox { background: #D9EDF7; border: 1px solid #BCE8F1; color: #31708F; padding: 10px 14px; border-radius: 3px; display: flex; gap: 12px; align-items: flex-start; }
.staff-area .wh-infobox.warn { background: #FCF8E3; border-color: #FAEBCC; color: #8A6D3B; }
.staff-area .wh-infobox.bad { background: #F2DEDE; border-color: #EBCCD1; color: #A94442; }
.staff-area .wh-subrow td { background: #FAFAFA !important; font-size: 12px; }
.staff-area .wh-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 900px) { .staff-area .wh-two { grid-template-columns: 1fr; } }
.staff-area .wh-label-pending { background: #F0AD4E; }
.staff-area .wh-two > .wh-form { background: #F5F5F5; border: 1px solid #E2E2E2; padding: 6px 10px; }
.staff-area .wh-order-actions form { display: inline-flex; align-items: center; gap: 4px; }
.staff-area .wh-swatch { display: inline-block; width: 12px; height: 12px; border: 1px solid #ccc; vertical-align: middle; margin-right: 4px; }
.staff-area .wh-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.staff-area .wh-stat { background: #fff; border: 1px solid #DDD; border-radius: 3px; padding: 12px; text-align: center; }
.staff-area .wh-stat-n { font-size: 26px; color: #1A4D80; line-height: 1.2; }
.staff-area .wh-stat-l { font-size: 12px; color: #666; }
@media (max-width: 900px) { .staff-area .wh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* WHMCS menu: nested items and the wrench */
.staff-area .wh-drop .wh-sub { padding-left: 22px; }
.staff-area .wh-drop .wh-drop-head { display: block; padding: 6px 14px 2px; font-size: 12px; color: #888; }
.staff-area .wh-config-drop { display: grid; grid-template-columns: repeat(3, 96px); gap: 4px; padding: 8px; right: 0; left: auto; }
.staff-area .wh-config-drop a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 12px; padding: 8px 4px !important; color: #333; }
.staff-area .wh-config-drop a:hover { background: #F2F2F2; }
.staff-area .wh-config-head { font-size: 15px; font-weight: 600; color: #333; margin: 18px 0 8px; border-bottom: 1px solid #E5E5E5; padding-bottom: 4px; }
.staff-area .wh-config-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.staff-area .wh-config-tile { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid #DDD; border-radius: 3px; padding: 12px; color: #333 !important; text-decoration: none !important; }
.staff-area .wh-config-tile:hover { border-color: #1A4D80; background: #F7FAFD; }
.staff-area .wh-config-tile svg { color: #1A4D80; flex: 0 0 auto; }
.staff-area .wh-config-tile b { display: block; color: #1A4D80; font-weight: 600; }
.staff-area .wh-config-tile span span { display: block; font-size: 12px; color: #666; margin-top: 2px; }
.staff-area .wh-config-search .input { width: 260px; }
.staff-area .wh-reports { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.staff-area .wh-report-list { list-style: none; margin: 0; padding: 0; }
.staff-area .wh-report-list li { padding: 6px 0; border-top: 1px solid #EEE; }
.staff-area .wh-report-list li:first-child { border-top: 0; }
.staff-area .wh-label-bad { background: #D9534F; }
.staff-area .wh-www { font-size: 11px; color: #CC0000 !important; margin-left: 3px; }
.staff-area .wh-filterbox table td.label { width: 140px; text-align: right; background: #EFEFEF; }
.staff-area .wh-txhead { display: grid; grid-template-columns: 1fr 260px; gap: 12px; margin-top: 10px; }
.staff-area .wh-txtotals { display: grid; gap: 8px; }
.staff-area .wh-txtotal { background: #fff; border: 1px solid #DDD; border-radius: 3px; padding: 10px 12px; display: flex; flex-direction: column; }
.staff-area .wh-txtotal b { font-size: 20px; font-weight: 600; color: #333; }
.staff-area .wh-balances { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.staff-area .wh-balance { border: 1px solid #DDD; border-radius: 3px; padding: 8px 12px; min-width: 150px; display: flex; flex-direction: column; background: #fff; }
@media (max-width: 900px) { .staff-area .wh-txhead { grid-template-columns: 1fr; } }
.staff-area .wh-rowbtns .btn { padding: 1px 6px; font-size: 11px; margin-left: 2px; }
.staff-area .wh-btngroup { display: inline-flex; }
.staff-area .wh-btngroup .btn { border-radius: 0; margin-left: -1px; }
.staff-area .wh-btngroup .btn.active { background: #E6E6E6; box-shadow: inset 0 3px 5px rgba(0,0,0,.125); }
.staff-area textarea.wh-reason { width: 100%; background: #EEE; font-size: 12px; resize: vertical; min-height: 40px; }
/* Client Summary boxes, as WHMCS draws them */
.staff-area .wh-box { background: #fff; border: 1px solid #DDD; border-radius: 3px; margin-bottom: 12px; }
.staff-area .wh-box-head { background: #F2F2F2; border-bottom: 1px solid #DDD; text-align: center; font-weight: 700; color: #333; padding: 6px; font-size: 13px; }
.staff-area .wh-box-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.staff-area .wh-box-table td { padding: 3px 8px; border-bottom: 1px solid #F0F0F0; vertical-align: top; }
.staff-area .wh-box-table td.label { width: 42%; color: #555; }
.staff-area .wh-box-table tr:nth-child(odd) td { background: #FAFAFA; }
.staff-area .wh-box-links { padding: 6px 8px; display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.staff-area .wh-box-links form { margin: 0; }
.staff-area .wh-linkbtn { background: none; border: 0; padding: 0; color: #1A4D80; cursor: pointer; font: inherit; text-align: left; }
.staff-area .wh-linkbtn:hover, .staff-area .wh-box-links a:hover { text-decoration: underline; }
.staff-area .wh-summary .summary-col { min-width: 0; }
.staff-area .wh-pinbox .pin-check > .label { display: none; }
.staff-area .wh-tabbar-right { display: flex; justify-content: flex-end; gap: 6px; margin: 0 0 8px; }
.staff-area .wh-stats4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.staff-area .wh-stats4 > div { background: #F5F5F5; border-radius: 3px; padding: 10px 14px; display: flex; flex-direction: column; }
.staff-area .wh-stats4 b { font-size: 24px; font-weight: 400; color: #555; }
.staff-area .wh-stats4 span { font-size: 11px; text-transform: uppercase; color: #777; }
@media (max-width: 700px) { .staff-area .wh-stats4 { grid-template-columns: repeat(2, 1fr); } }
.staff-area .wh-alert-empty { max-width: 680px; margin: 40px auto; padding: 22px; background: #F2DEDE; border: 1px solid #EBCCD1; color: #333; text-align: center; border-radius: 3px; }
.staff-area tr.wh-overdue td { background: #FCF8E3; }
.staff-area .wh-infobar { display: flex; justify-content: space-between; align-items: center; background: #D9EDF7; border: 1px solid #BCE8F1; color: #31708F; padding: 8px 12px; border-radius: 3px; margin-bottom: 12px; }
.staff-area .wh-infobar form { margin: 0; }
.staff-area .wh-warnbox { background: #FCF8E3; border: 1px solid #FAEBCC; color: #8A6D3B; padding: 10px 14px; border-radius: 3px; margin-bottom: 10px; font-size: 13px; }
.staff-area .ev-event { background: #F0AD4E; color: #fff !important; }
.staff-area .wh-side-body form { margin: 0; }
.staff-area .wh-side-link { background: none; border: 0; padding: 0; font-family: inherit; font-size: 12px; line-height: 1.5; color: #202F60; text-decoration: underline; cursor: pointer; text-align: left; display: block; }
.staff-area .wh-ticket-status { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.staff-area .wh-ticket-status select { width: auto; min-width: 160px; }
.staff-area .wh-reply-sets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.staff-area .wh-reply-sets[hidden] { display: none; }
@media (max-width: 800px) { .staff-area .wh-reply-sets { grid-template-columns: 1fr 1fr; } }
.staff-area .wh-attach { cursor: pointer; }
.staff-area .wh-side-info select { width: 100%; }
.staff-area #reply-return { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; margin: 0; }
.staff-area #reply-return[hidden] { display: none; }
.staff-area .wh-side-body .pin-check form input { min-width: 0; width: 100%; }
.staff-area .wh-side-body .pin-check p { display: none; }
.staff-area .wh-side-body .pin-check .label { font-size: 12px; font-weight: 700; color: #333; }
.staff-area .ticket-thread article.wh-msg-client { background: #EEF5FB; }
.staff-area .ticket-thread article.wh-msg-staff { background: #fff; }
.staff-area .ticket-thread article[style*="border-left"].wh-msg-staff { background: #fff; }
.staff-area .wh-msg-who b { font-size: 13px; }
.staff-area .wh-msg-who .wh-tag { background: #CCC; color: #fff; font-size: 9px; padding: 1px 5px; border-radius: 2px; }
.staff-area .wh-msg-note .wh-msg-who .wh-tag { background: #F0AD4E; }
.staff-area .wh-msg-staff .wh-msg-who .wh-tag { background: #5BC0DE; }
.staff-area .wh-msg-who i { color: #555; word-break: break-all; }
.staff-area .wh-msg-when { margin-bottom: 6px; }
.staff-area .wh-reportgroups { text-align: center; }
.staff-area .wh-reportgroup { font-size: 15px; font-weight: 400; color: #333; margin: 18px 0 8px; }
.staff-area .wh-reportbtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.staff-area .wh-reportbtns .btn { background: #fff; border: 1px solid #CCC; color: #333; }
.staff-area .wh-reportbtns .wh-rb-general { background: #5BC0DE; border-color: #46B8DA; color: #fff; }
.staff-area .wh-reportbtns .wh-rb-export { background: #666; border-color: #555; color: #fff; }
.staff-area .wh-profile td.label { width: 16%; }
.staff-area .wh-profile .check { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.staff-area .wh-order { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.staff-area .wh-order-head { font-size: 15px; font-weight: 400; margin: 14px 0 6px; color: #333; }
.staff-area .wh-order .check { display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 900px) { .staff-area .wh-order { grid-template-columns: 1fr; } }
.staff-area .wh-inv-actions { text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.staff-area .wh-inv-email { display: flex; gap: 4px; }
.staff-area tr.wh-subrow td { background: #F2F2F2; }
.staff-area tr.wh-totalbar td { background: #1A4D80; color: #fff; font-weight: 700; }
.staff-area .wh-inv-head { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.staff-area .wh-inv-actions .wh-inv-status { width: auto; font-size: 22px; }
@media (max-width: 900px) { .staff-area .wh-inv-head { grid-template-columns: 1fr; } }
.staff-area .table tr.wh-totalbar td { background: #1A4D80 !important; color: #fff !important; font-weight: 700; }
.staff-area .table tr.wh-subrow td { background: #F2F2F2 !important; }
.staff-area .wh-metrics { width: 100%; border-collapse: collapse; font-size: 12px; background: #fff; }
.staff-area .wh-metrics th { text-align: left; padding: 4px 6px; border-bottom: 1px solid #DDD; font-weight: 700; }
.staff-area .wh-metrics td { padding: 3px 6px; border-bottom: 1px solid #F0F0F0; }
.staff-area .wh-svc .check { display: inline-flex; gap: 6px; align-items: center; margin: 0 8px 0 0; }
.staff-area .wh-svc .check + .input { display: inline-block; width: auto; }
.staff-area .wh-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.staff-area .wh-tagchip { display: inline-flex; align-items: center; background: #E8EEF5; border-radius: 2px; font-size: 11px; padding: 1px 2px 1px 6px; }
.staff-area .wh-tagchip a { text-decoration: none !important; }
.staff-area .wh-tagchip form { display: inline; }
.staff-area .wh-tagchip button { border: 0; background: none; cursor: pointer; color: #888; padding: 0 4px; }
