/* cmdPost — shared application styles based on the approved HTML reference. */
:root {
  --pink: #cf2877;
  --plum: #9d2569;
  --text: #302a38;
  --muted: #8b8193;
  --border: #eeebf1;
  --panel: #fff;
  --panel-2: #faf7fb;
  --accent: #cf2877;
  --accent-2: #9d2569;
  --danger: #d34b60;
  --warning: #b47635;
  --green: #199b79;
  --radius: 8px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: #fff; color: var(--text); font: 19.5px/1.6 var(--font); }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .35; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #eaa3c8; outline-offset: 3px; }
[hidden] { display: none !important; }
.icon { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; top: 0; left: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -60px; left: 20px; padding: 10px; background: white; z-index: 100; }
.skip-link:focus { top: 12px; }

/* Gradient workspace sidebar */
.sidebar { width: 280px; position: fixed; inset: 0 auto 0 0; background: linear-gradient(155deg,#cd226a 0%,#a72777 40%,#6a2b78 73%,#30214f 100%); color: #fff; display: flex; flex-direction: column; padding: 35px 22px 24px; z-index: 20; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; color: inherit; font-size: 37.5px; font-weight: 800; letter-spacing: -1.4px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; background: white; color: #ba2871; border-radius: 10px; box-shadow: 0 4px 14px #5e0b4d20; }
.brand-mark .icon { width: 31.5px; height: 31.5px; stroke-width: 2.2; }
.brand > span:last-child { font-weight: 400; }
.workspace { display: flex; align-items: center; gap: 11px; margin: 37px 8px 30px; color: white; min-width: 0; }
.workspace:hover { text-decoration: none; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #ffffff19; border: 1px solid #ffffff30; font-size: 16.5px; font-weight: 700; flex-shrink: 0; }
.workspace > span:nth-child(2) { min-width: 0; }
.workspace strong { display: block; font-size: 18px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace small { display: block; font-size: 15px; color: #ebc8dd; margin-top: 4px; }
.workspace > .icon { margin-left: auto; width: 19.5px; height: 19.5px; opacity: .7; }
.nav { display: flex; flex-direction: column; gap: 5px; }
.nav a, .nav button { border: 0; background: transparent; text-align: left; color: #f0d9eb; display: flex; align-items: center; gap: 12px; padding: 12px 13px; border-radius: 7px; font-size: 18px; width: 100%; transition: background .18s; }
.nav a:hover, .nav button:hover { background: #ffffff0b; text-decoration: none; }
.nav a.active { background: #ffffff18; color: white; font-weight: 700; box-shadow: inset 2px 0 0 white; }
.nav .icon { width: 25.5px; height: 25.5px; opacity: .85; }
.nav-label { font-size: 13.5px; letter-spacing: 1.6px; color: #e7c5dc; padding: 27px 13px 9px; font-weight: 650; }
.nav form { margin: 0; }
.bottom-nav { margin-top: auto; padding-top: 40px; }
.side-footer { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; padding: 26px 12px 0; color: #dcc6da; font-size: 13.5px; letter-spacing: .4px; }
.side-footer span:last-child { color: #ffffff8a; }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 19; border: 0; background: #24132e55; }

/* Main content and supporting pages */
.container { max-width: 1800px; margin-left: 280px; min-height: 100vh; padding: 43px 55px 32px; }
.topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 46px; gap: 20px; }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: 15px; color: #615c6a; min-width: 0; }
.breadcrumb a { color: #9e99a6; }
.breadcrumb > span { overflow-wrap: anywhere; }
.breadcrumb > .icon { width: 18px; height: 18px; color: #b9b2c0; }
.top-right { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.top-right .icon { width: 19.5px; height: 19.5px; }
.mobile-menu { display: none; }
h1 { font-size: 39px; line-height: 1.3; letter-spacing: -1px; margin: 0 0 24px; font-weight: 750; overflow-wrap: anywhere; }
h2 { font-size: 25.5px; letter-spacing: -.4px; margin: 0 0 12px; }
p { line-height: 1.9; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; }
.intro h1 { margin-bottom: 10px; }
.subtitle { font-size: 18px; color: #8a8492; margin: 0; line-height: 1.9; }
.subtitle strong { color: #514956; font-weight: 650; }
.muted { color: var(--muted); }
.small { font-size: 16.5px; }
.good { color: var(--green); }
.bad, .error-text { color: var(--danger); }
.warn { color: var(--warning); }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; background: var(--panel); overflow-x: auto; }
.danger-zone { border-color: #f1c8d0; }
.grid2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.grid2 > * { min-width: 0; }
.chart { width: 100%; overflow: hidden; }
code { background: var(--panel-2); padding: 2px 6px; border-radius: 4px; font-size: .9em; overflow-wrap: anywhere; }
ul, ol { padding-left: 20px; }
li { margin-bottom: 7px; }
.flash { padding: 12px 15px; border-radius: 6px; margin-bottom: 18px; }
.flash.ok { background: #eff9f5; border: 1px solid #c7eade; color: #187d63; }
.flash.err { background: #fff3f5; border: 1px solid #f1c8d0; color: var(--danger); }

/* Forms and buttons */
.stack { display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 18px; font-weight: 600; }
input, select, textarea { background: #fff; color: var(--text); border: 1px solid #e9e2ed; border-radius: 6px; padding: 11px 12px; width: 100%; min-width: 0; }
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: #d45b99; box-shadow: 0 0 0 3px #d45b9915; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: white; color: var(--text); border: 1px solid #e9e2ed; border-radius: 6px; padding: 10px 15px; font-size: 16.5px; font-weight: 600; cursor: pointer; }
.btn:hover { border-color: #d4bdce; text-decoration: none; background: #fdfafd; }
.btn.primary { border-color: var(--pink); background: var(--pink); color: white; padding: 11px 17px; font-weight: 650; box-shadow: 0 3px 6px #cf287712; white-space: nowrap; }
.btn.primary:hover { background: #b82069; }
.btn .icon { width: 22.5px; height: 22.5px; }
.btn.danger { border-color: #efbcc7; color: var(--danger); }
.btn.small { padding: 6px 10px; font-size: 15px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: #f6f2f7; }
/* ---- servers (S2) ---- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.callout { border-radius: 8px; padding: 10px 14px; margin: 10px 0; border: 1px solid; font-size: 15px; }
.callout.warn { background: #fdf4e5; border-color: #f0dcb8; color: #8a5a1e; }
.callout.ok { background: #e9f7ef; border-color: #c6e8d3; color: #1d7a54; }
.snippet { position: relative; background: #f7f4f8; border: 1px solid var(--border); border-radius: 8px; margin: 8px 0 14px; }
.snippet pre { margin: 0; padding: 12px 14px; overflow-x: auto; font-size: 13.5px; line-height: 1.5; }
.snippet .copy-btn { position: absolute; top: 8px; right: 8px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0; }
.kv dt { color: var(--muted); font-size: 14.5px; }
.kv dd { margin: 0; }
.status-line { font-size: 16px; font-weight: 600; }
.radio { display: block; padding: 4px 0; }
.srv-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: baseline; }
.srv-dot.fresh { background: #2e9e6b; box-shadow: 0 0 0 3px #2e9e6b22; }
.srv-dot.stale { background: #e9a23b; }
.srv-dot.waiting { background: #cfc7d4; }
.rename { margin-top: 10px; }
.rename-form { display: flex; gap: 8px; margin-top: 8px; max-width: 420px; }
.rename-form input { flex: 1; }
.range { display: inline-flex; gap: 6px; }
.chart-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); margin: 10px 0 16px; }
.chart-cell { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.chart-title { font-size: 14.5px; font-weight: 600; margin-bottom: 6px; }
.chart-picker { display: flex; gap: 28px; align-items: center; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.pick-label { flex: 0 0 auto; }
.pick-items { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; flex: 1 1 auto; }
.pick-items .btn { margin-left: auto; }
.chart-picker .pick { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; font-size: 14.5px; line-height: 18px; white-space: nowrap; }
.chart-picker .pick input[type="checkbox"] { width: 15px; height: 15px; padding: 0; box-sizing: border-box; margin: 0; flex: 0 0 auto; accent-color: var(--accent, #cf2877); }
.inline-form { display: inline; }
.linkish { border: 0; background: none; color: var(--muted); cursor: pointer; }
.or { text-align: center; color: var(--muted); margin: 16px 0; }
.turnstile { margin: 4px 0 10px; }

/* Workspace overview */
.overview { display: flex; border: 1px solid var(--border); border-radius: 8px; padding: 23px 0; margin-bottom: 34px; background: linear-gradient(110deg,#fff 40%,#fcfafc); }
.overview .stat { padding: 0 27px; flex: 1; border-right: 1px solid var(--border); }
.overview .stat:last-child { border: 0; }
.stat-top { display: flex; align-items: center; gap: 7px; font-size: 15px; color: #88818f; margin-bottom: 10px; }
.stat-top .icon { width: 21px; height: 21px; }
.stat-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.stat-line strong { font-size: 39px; line-height: 1.3; letter-spacing: -1px; font-weight: 700; white-space: nowrap; }
.stat-line small { font-size: 13.5px; color: var(--muted); }
.score-unit { font-size: 21px; color: #b9aebf; font-weight: 400; letter-spacing: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 14px; margin-bottom: 20px; }
.stat-grid .stat { background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-num { font-size: 39px; font-weight: 700; }
.stat-label { color: var(--muted); font-size: 16.5px; }

/* Website filters */
.tabbar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); margin-bottom: 22px; gap: 15px; }
.tabs { display: flex; gap: 25px; align-self: stretch; }
.tab { padding: 0 0 15px; position: relative; color: #98909d; font-size: 16.5px; white-space: nowrap; display: flex; align-items: center; }
.tab:hover { text-decoration: none; color: var(--plum); }
.tab.active { color: var(--plum); font-weight: 700; }
.tab.active::after { content: ""; position: absolute; height: 2px; background: var(--pink); bottom: -1px; left: 0; right: 0; }
.tab span { font-size: 13.5px; padding: 2px 6px; background: #f4f1f5; border-radius: 4px; margin-left: 5px; color: #8e8594; }
.tab.active span { color: #aa2871; background: #f9edf3; }
.search { position: relative; margin-bottom: 12px; width: 220px; flex-shrink: 0; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 21px; height: 21px; color: #b9b2c0; }
.search input { height: 40px; border-color: var(--border); border-radius: 5px; padding: 0 12px 0 43px; font-size: 15px; }
.search input::placeholder { color: #aaa3b0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; gap: 10px; }
.selects { display: flex; gap: 8px; flex-wrap: wrap; }
.select-wrap { position: relative; }
.select-wrap .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 19.5px; height: 19.5px; pointer-events: none; color: #8f8595; }
.select-wrap select { height: 40px; padding: 0 25px 0 40px; border-color: var(--border); border-radius: 5px; color: #6f6776; font-size: 15px; cursor: pointer; }
.results { font-size: 15px; color: #938699; white-space: nowrap; }

/* Tables */
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0 7px; }
.table th { text-align: left; font-weight: 500; font-size: 13.5px; letter-spacing: .15px; color: #948b9b; padding: 0 13px 7px; }
.table td { padding: 13px 12px; border-block: 1px solid var(--border); font-size: 16.5px; }
.table td:first-child { border-left: 1px solid var(--border); border-radius: 6px 0 0 6px; }
.table td:last-child { border-right: 1px solid var(--border); border-radius: 0 6px 6px 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: #fdfafd; }
/* offline site: whole row red + contact-support pill (owner spec 2026-11-16) */
.table tbody tr.row-down { background: #fdecec; }
.table tbody tr.row-down:hover { background: #fbdcdc; }
.btn-support { margin-left: auto; background: #d92d20; color: #fff; font-size: 12px; font-weight: 650; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.btn-support:hover { background: #b42318; color: #fff; }
/* offline detail page: red banner section (owner spec 2026-11-16) */
.down-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fdecec; border: 1px solid #f3b7b1; color: #b42318; font-weight: 650; border-radius: 8px; padding: 14px 16px; margin: 16px 0; }
.down-banner .icon { color: #d92d20; }
.down-banner a:hover { color: #fff; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.table .actions .inline-form { display: inline-flex; align-items: center; gap: 6px; }
/* Admin user rows: one control-group per line, input + button on a shared baseline */
.table .actions.stack { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
.table .actions.stack .inline-form { display: flex; }
.table .actions.stack input[type="number"] { flex: 1; width: auto; min-width: 4.5rem; padding: 6px 10px; font-size: 15px; }
.table .actions .btn { white-space: nowrap; }
.website-table { white-space: nowrap; min-width: 1160px; }
/* SSL renewal countdown bar (site detail) */
.ssl-count-num { font-size: 26px; font-weight: 800; line-height: 1.15; }
.ssl-count-num.good { color: #1d7a54; }
.ssl-count-num.warn { color: #b26a00; }
.ssl-count-num.bad { color: #b42318; }
.ssl-bar { position: relative; height: 14px; border: 1px solid var(--border); border-radius: 8px; background: #f4eef7; margin: 12px 0 6px; overflow: hidden; }
.ssl-bar-fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 8px 0 0 8px; }
.ssl-bar-fill.good { background: #2e9e6b; }
.ssl-bar-fill.warn { background: #e9a23b; }
.ssl-bar-fill.bad { background: #d92d20; }
.upd-strip { display: flex; gap: 2px; margin-top: 10px; }
.upd-strip i { flex: 1 1 0; min-width: 2px; height: 12px; border-radius: 2px; background: #d5dbe2; }
.upd-strip .z0 { background: #2e9e6b; }
.upd-strip .z1 { background: #e9a23b; }
.upd-strip .z2 { background: #d92d20; }
.upd-log { list-style: none; margin: 10px 0 0; padding: 0; }
.upd-log li { color: var(--muted); padding: 2px 0; }
.ssl-tick { position: absolute; top: -1px; bottom: -1px; width: 2px; background: #ffffffb0; border-right: 1px solid #00000018; z-index: 1; }
.ssl-bar-scale { position: relative; height: 16px; color: #8f8595; }
.ssl-bar-scale span { position: absolute; transform: translateX(-50%); }
.ssl-bar-scale span:first-child { transform: none; }
.ssl-bar-scale span:last-child { left: auto; right: 0; transform: none; }
.spark-cell { text-align: left !important; }
.spark-row { display: flex; align-items: center; gap: 7px; margin-bottom: 2px; }
.spark-row:last-child { margin-bottom: 0; }
.spark-label { font-size: 11px; letter-spacing: .4px; color: var(--muted); width: 42px; flex-shrink: 0; }
.spark-tip { position: fixed; z-index: 60; background: #24132ef2; color: #fff; font-size: 12.5px; line-height: 1.45; padding: 7px 10px; border-radius: 6px; pointer-events: none; box-shadow: 0 6px 18px #00000030; max-width: 240px; }
.spark-tip strong { font-size: 12px; letter-spacing: .3px; }
.spark-cell .spark { display: block; margin-bottom: 3px; }
.spark-cell .spark:last-child { margin-bottom: 0; }
/* Public status page */
.status-table { width: 100%; border-collapse: collapse; display: table; }
.status-wrap { overflow-x: auto; }
.status-table th { text-align: left; font-size: 13px; color: var(--plum); padding: 10px 22px; border-bottom: 1px solid var(--border); }
.status-table td { padding: 16px 22px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.status-table th:first-child, .status-table td:first-child { padding-left: 4px; }
.status-table th:last-child, .status-table td:last-child { padding-right: 4px; }
.status-table tr:last-child td { border-bottom: none; }
.status-table .spark { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.status-table .spark-row { justify-content: center; }
.status-table .svc { min-width: 200px; }
.status-table .mono { white-space: nowrap; }
@media (max-width: 780px) {
  /* reclaim width so the table fits without internal scrolling */
  .status-table th, .status-table td { padding-left: 12px; padding-right: 12px; }
  .status-table .svc { min-width: 120px; }
  .status-table .mono { white-space: normal; word-break: break-all; }
}
.spark { shape-rendering: crispEdges; }
.spark path { shape-rendering: geometricPrecision; }
.website-table th:not(:first-child) { text-align: center; }
.website-table td { font-size: 15px; }
.website-table td:first-child { width: 39%; }
.website-table td:last-child { width: 40px; }
.website-cell { display: flex; gap: 11px; align-items: center; }
.favicon { height: 36px; width: 36px; border-radius: 6px; display: grid; place-items: center; font-weight: 750; font-size: 16.5px; flex-shrink: 0; position: relative; }
.favicon img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 6px; object-fit: contain; background: #fff; }
.color-0 { background: #f5eaf2; color: #aa5489; }
.color-1 { background: #fbefe7; color: #cb8a53; }
.color-2 { background: #eaf3e9; color: #71976a; }
.color-3 { background: #eeeaf7; color: #8972b4; }
.color-4 { background: #faf4df; color: #b8a147; }
.color-5 { background: #e9f0f8; color: #7396be; }
.site-name { font-size: 16.5px; font-weight: 700; letter-spacing: -.15px; color: var(--text); }
.site-name:hover { color: var(--pink); text-decoration: none; }
.client-name { display: block; color: #9a8fa1; font-size: 13.5px; margin-top: 4px; }
.status { display: flex; align-items: center; justify-content: center; gap: 6px; color: #6e6675; font-size: 15px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.dot.down { background: var(--danger); }
.dot.pending, .dot.unknown { background: #c7b0ca; }
.metric { display: flex; align-items: center; justify-content: center; gap: 6px; color: #645d6a; }
.metric.bad { color: var(--danger); }
.metric .icon { width: 19.5px; height: 19.5px; color: #a39aa9; }
.score { font-weight: 650; }
.metric small { color: #a298aa; font-size: 13.5px; margin-left: -4px; }
.wp { display: inline-grid; place-items: center; border: 1.2px solid #9d94a5; border-radius: 50%; width: 22px; height: 22px; color: #8d8396; font-size: 12px; font-family: Georgia,serif; font-weight: bold; }
.updates { border-radius: 4px; padding: 2px 5px; background: #f5f2f7; color: #8f819a; font-size: 13.5px; min-width: 19px; text-align: center; }
.open-site { color: #9e92a6; padding: 4px; display: grid; place-items: center; }
.open-site:hover { color: var(--pink); }
.open-site .icon { width: 21px; height: 21px; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 5px; font-size: 15px; font-weight: 600; }
.badge.up, .badge.approved { background: #e9f7f0; color: #188567; }
.badge.down, .badge.invalid, .badge.disabled, .badge.critical { background: #fff0f3; color: var(--danger); }
.badge.warning { background: #fdf4e5; color: var(--warning); }
.badge.unknown, .badge.pending { background: #f4eff7; color: #8d789a; }
.empty { text-align: center; padding: 55px 20px; color: var(--muted); }
.empty strong { display: block; color: var(--text); margin: 15px 0 8px; font-size: 22.5px; }
.empty p { font-size: 16.5px; margin-bottom: 20px; }
.empty-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; background: #fcf0f6; color: var(--pink); border-radius: 14px; }
.empty-icon .icon { width: 36px; height: 36px; }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: 15px; color: #938699; gap: 15px; }
.pages { display: flex; gap: 5px; align-items: center; }
.pages a, .pages button { width: 36px; height: 36px; background: white; border: 1px solid var(--border); border-radius: 4px; display: grid; place-items: center; color: #83778e; padding: 0; }
.pages a:hover { background: #faf3f7; text-decoration: none; }
.pages .icon { width: 19.5px; height: 19.5px; }
.reverse { display: flex; transform: rotate(180deg); }
.page-label { margin: 0 12px; color: #665b70; font-size: 15px; white-space: nowrap; }
.refresh-note { display: flex; align-items: start; gap: 6px; font-size: 13.5px; color: #a298aa; margin-top: 28px; }
.refresh-note .icon { margin-top: 4px; width: 16.5px; height: 16.5px; }
.footnote { flex-wrap: wrap; margin-top: 35px; padding-top: 20px; border-top: 1px solid #f5f2f6; display: flex; justify-content: space-between; gap: 15px; font-size: 13.5px; color: #a298aa; }
.footnote span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.footnote span:last-child { gap: 16px; }
.footnote .icon { width: 16.5px; height: 16.5px; }
.footnote a { color: inherit; }
.footnote a:hover { color: var(--pink); }

/* Public and sign-in pages share the same typography and colors. */
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 24px 35px; color: var(--plum); border-bottom: 1px solid var(--border); }
.topbar .brand-mark { background: var(--pink); color: white; }
.topbar .brand > span:last-child { color: var(--plum); }
.topbar nav { display: flex; gap: 20px; font-size: 18px; }
.public-shell .container { margin: 0 auto; min-height: auto; max-width: 1000px; }
.container.narrow { margin: 65px auto; min-height: auto; max-width: 480px; padding: 30px; }
.sign-in-card h1 { font-size: 34.5px; }
.footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 15px; padding: 20px; }

@media (min-width:1550px) {
  .app-shell .container { padding: 55px 85px; }
  .intro { margin-top: 50px; }
  .website-table td { padding-block: 18px; }
  .overview { margin-top: 40px; margin-bottom: 45px; }
}
@media (max-width:1180px) {
  .sidebar { width: 260px; padding-inline: 15px; }
  .app-shell .container { margin-left: 260px; padding: 35px 30px; }
  .overview .stat { padding-inline: 18px; }
  .stat-line small { display: none; }
  .tabs { gap: 18px; }
  .topline { margin-bottom: 38px; }
}
@media (max-width:900px) {
  .sidebar { width: 240px; padding-inline: 12px; }
  .brand { font-size: 33px; gap: 7px; padding-inline: 5px; }
  .brand-mark { width: 38px; height: 38px; }
  .workspace { margin-inline: 5px; }
  .workspace > .icon { display: none; }
  .nav a, .nav button { padding-inline: 10px; font-size: 16.5px; }
  .app-shell .container { margin-left: 240px; padding: 30px 23px; }
  .overview { padding-block: 20px; }
  .overview .stat { padding-inline: 14px; }
  .stat-line strong { font-size: 34.5px; }
  .stat-top { font-size: 13.5px; gap: 5px; }
  .intro { align-items: center; }
  .tabbar { flex-wrap: wrap; }
  .search { width: 100%; order: -1; margin-bottom: 8px; }
  .tabs { gap: 25px; }
  .top-right { display: none; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width:640px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; width: 280px; }
  .sidebar.show { transform: translateX(0); box-shadow: 20px 0 80px #36204440; }
  .brand { font-size: 37.5px; }
  .workspace > .icon { display: block; }
  .app-shell .container { margin-left: 0; padding: 22px 20px; }
  .mobile-menu { display: grid; border: 0; background: #faf4f8; padding: 7px; border-radius: 5px; color: var(--pink); margin-right: 9px; }
  .breadcrumb { gap: 7px; }
  .topline { margin-bottom: 35px; }
  .intro { align-items: start; gap: 12px; flex-wrap: wrap; }
  h1 { font-size: 34.5px; }
  .subtitle { font-size: 15px; max-width: 210px; }
  .intro .btn.primary { font-size: 15px; padding: 10px 12px; gap: 5px; }
  .overview { display: grid; grid-template-columns: 1fr 1fr; padding: 0; margin-bottom: 28px; }
  .overview .stat { padding: 18px 20px; border-bottom: 1px solid var(--border); }
  .overview .stat:nth-child(2) { border-right: 0; }
  .overview .stat:nth-child(3) { border-bottom: 0; }
  .stat-top { font-size: 15px; }
  .stat-line small { display: block; font-size: 12px; }
  .stat-line strong { font-size: 37.5px; }
  .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
  .tab { display: block; white-space: normal; font-size: 15px; }
  .tab span { font-size: 12px; margin-left: 3px; }
  .results { display: none; }
  .pagination { align-items: start; flex-wrap: wrap; }
  .pagination > span { font-size: 13.5px; max-width: 140px; line-height: 1.6; }
  .pages { gap: 3px; }
  .pages a, .pages button { width: 30px; height: 32px; }
  .page-label { margin-inline: 7px; font-size: 13.5px; }
  .footnote { line-height: 1.6; margin-top: 30px; flex-wrap: wrap; }
  .footnote span { align-items: start; }
  .card { padding: 20px; }
  .topbar { padding: 20px; }
  .container.narrow { max-width: calc(100% - 32px); margin-block: 35px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* Custom time-range dropdown (CloudWatch-style) */
.range-custom { position: relative; display: inline-block; }
.range-custom summary { list-style: none; cursor: pointer; }
.range-custom summary::-webkit-details-marker { display: none; }
.range-custom[open] > summary { background: var(--accent, #c026d3); color: #fff; border-color: transparent; }
.custom-form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; background: #fff;
  border: 1px solid var(--line, #e5e0ec); border-radius: 8px; box-shadow: 0 10px 28px #00000022;
  padding: 10px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; width: max-content; }
.custom-form input[type="number"] { width: 84px; }
.custom-form p { flex-basis: 100%; margin: 2px 0 0; }

/* Servers list: compact identity columns on the left, Trends column soaks up the rest */
.servers-table .col-tight { width: 1%; white-space: nowrap; }
/* Metrics column: sparklines stretch to the end of the row */
.servers-table .spark-cell { width: auto; }
.servers-table .spark-row svg.spark { width: calc(100% - 52px); height: 22px; }

/* Servers list: centered status + instant hover tooltip on the dot */
.servers-table .center { text-align: center; }
.dot-hit { position: relative; display: inline-block; padding: 7px 12px; cursor: default; }
.dot-hit .srv-dot, .dot-hit .dot { display: block; }
.dot-hit::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 2px);
  transform: translateX(-50%); background: #24132ef2; color: #fff; font-size: 12px; line-height: 1.3;
  padding: 5px 9px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.08s; z-index: 50; box-shadow: 0 4px 14px #00000030; }
.dot-hit:hover::after { opacity: 1; }

/* Notification checkboxes: beside text, ticks aligned like the metric picker */
.check-list { display: flex; flex-direction: column; gap: 10px; max-width: 460px; margin-bottom: 14px; }
.check-row { font-weight: 500; display: inline-flex; flex-direction: row; gap: 9px; align-items: center; }
.check-row input[type="checkbox"] { width: 15px; height: 15px; padding: 0; box-sizing: border-box; margin: 0; flex: 0 0 auto; accent-color: var(--accent); }
