:root {
  --bg: #070a0f;
  --panel: rgba(14, 19, 28, .86);
  --panel2: rgba(19, 25, 36, .86);
  --line: rgba(255, 255, 255, .09);
  --text: #f2f6fc;
  --muted: #94a0b4;
  --cyan: #00bfff;
  --green: #18e38d;
  --yellow: #f5cb58;
  --red: #ff6179;
  --purple: #9b7dff;
  --shadow: 0 24px 80px rgba(0, 0, 0, .30);
  --radius: 20px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: radial-gradient(circle at 10% -10%, rgba(0, 191, 255, .13), transparent 35rem), radial-gradient(circle at 100% 35%, rgba(92, 67, 255, .10), transparent 35rem), var(--bg); color: var(--text); }
body { overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
a { color: inherit; }

.topbar { min-height: 72px; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(14px, 3vw, 30px); border-bottom: 1px solid var(--line); background: rgba(7, 10, 15, .78); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border-radius: 12px; background: linear-gradient(135deg, #00bfff, #5572ff); box-shadow: 0 10px 32px rgba(0, 191, 255, .22); font-size: 22px; }

.shell { width: min(1440px, 100%); margin: 0 auto; padding: clamp(18px, 3vw, 34px) clamp(12px, 2vw, 22px) 70px; }
.glass, .panel { width: 100%; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); border-radius: var(--radius); backdrop-filter: blur(18px); }
.panel { padding: clamp(16px, 2vw, 22px); margin-bottom: 18px; min-width: 0; }

.hero { min-height: 230px; padding: clamp(22px, 3vw, 32px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 410px); align-items: end; gap: 28px; margin-bottom: 18px; }
.hero-copy { min-width: 0; max-width: 820px; }
.eyebrow { font-size: 10px; letter-spacing: .18em; color: #718097; font-weight: 800; text-transform: uppercase; }
.status-line { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 800; font-size: 13px; }
.dot { display: inline-block; width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: #718097; box-shadow: 0 0 0 4px rgba(113, 128, 151, .08); }
.dot.green { background: var(--green); box-shadow: 0 0 0 4px rgba(24, 227, 141, .09); }
.dot.yellow { background: var(--yellow); box-shadow: 0 0 0 4px rgba(245, 203, 88, .09); }
.dot.red { background: var(--red); box-shadow: 0 0 0 4px rgba(255, 97, 121, .09); }
.hero h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.02; letter-spacing: -.04em; margin: 9px 0; overflow-wrap: anywhere; }
.hero-sub { color: var(--muted); line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
.hero-actions { display: flex; gap: 8px; margin-top: 21px; flex-wrap: wrap; }
.hero-side { min-width: 0; }
.project-age { color: #bdc8d9; font-size: 12px; line-height: 1.5; font-weight: 750; margin-bottom: 14px; }
.mini-label { font-size: 10px; letter-spacing: .18em; color: #718097; font-weight: 800; }
.uptime-big { font-size: clamp(22px, 3vw, 34px); font-weight: 850; letter-spacing: -.03em; margin-top: 10px; overflow-wrap: anywhere; }
.hero-updated { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; color: #8290a5; margin-top: 9px; }
.update-interval { text-align: center; font-size: 13px; font-weight: 850; color: #9aeeff; letter-spacing: .09em; margin-top: 14px; }

.button, .seg, select { border: 1px solid transparent; border-radius: 11px; }
.like-message { margin: 2px 0 0; max-width: 32rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; padding: 10px 13px; font-weight: 800; font-size: 13px; cursor: pointer; color: #fff; min-height: 40px; }
.button.primary { background: linear-gradient(135deg, #00bfff, #4d74ff); }
.button.ghost, .seg, select { background: #10161f; border-color: var(--line); color: #dbe4f3; }
.seg { padding: 9px 11px; cursor: pointer; }
.seg.active { color: #9aeeff; border-color: rgba(0, 191, 255, .35); background: rgba(0, 191, 255, .10); }
.button.like { background: #10161f; border-color: var(--line); }
.button.like.liked, .button.like:disabled { background: rgba(0, 191, 255, .12); border-color: rgba(0, 191, 255, .4); color: #91ecff; opacity: 1; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.section-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-bottom:18px; align-items:stretch; }
.metric-card { min-width:0; min-height:240px; padding:22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(10, 14, 21, .76); box-shadow: 0 16px 50px rgba(0,0,0,.16); }
.metric-card h3 { margin: 0; font-size: 12px; color: #8793a7; letter-spacing: .10em; text-transform: uppercase; }
.metric-big { font-size: clamp(30px, 4vw, 40px); font-weight: 900; letter-spacing: -.045em; margin-top: 8px; }
.metric-sub { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 5px; overflow-wrap: anywhere; }
.meter { height: 8px; border-radius: 999px; background: rgba(255,255,255,.055); overflow: hidden; margin-top: 15px; }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), #70e8ff); box-shadow: 0 0 20px rgba(0,191,255,.22); }
.metric-extra { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.metric-extra-row { display: flex; justify-content: space-between; gap: 10px; color: #8390a4; font-size: 11px; }
.metric-extra-row strong { color: #e7edf7; font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.network-card .network-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.network-block { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05); min-width: 0; }
.network-block span { display: block; color: #7f8ba0; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.network-speed { font-size: 22px; font-weight: 850; margin-top: 5px; overflow-wrap: anywhere; }
.network-total { color: #8995a8; font-size: 11px; margin-top: 4px; }

.ram-inline { margin-top: 10px; }
.ram-value-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ram-big { font-size: clamp(29px, 4vw, 39px); font-weight: 900; color: var(--cyan); letter-spacing: -.04em; }
.ram-sub { font-size: 13px; color: var(--muted); }
.ram-details { display: flex; flex-wrap: wrap; gap: 7px 12px; font-size: 11px; color: var(--muted); margin-top: 8px; }
.ram-bar { display: flex; width: 100%; height: 12px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .055); margin-top: 14px; }
.ram-segment { height: 100%; min-width: 0; }
.ram-segment.used { background: var(--cyan); }
.ram-segment.cached { background: var(--purple); }
.ram-segment.buffers { background: var(--yellow); }
.ram-segment.available { background: rgba(255,255,255,.19); }
.ram-legend { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 9px; color: #8390a4; font-size: 10px; }
.ram-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.ram-used { background: var(--cyan); } .ram-cached { background: var(--purple); } .ram-buffers { background: var(--yellow); } .ram-available { background: rgba(255,255,255,.20); }
.swap-line { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); color: #7f8ba0; font-size: 11px; }
.swap-line strong { color: #e7edf7; }


.metric-title { font-size:12px; color:#8793a7; letter-spacing:.12em; text-transform:uppercase; font-weight:850; }
.metric-big { font-size:clamp(30px,4vw,46px); font-weight:900; letter-spacing:-.04em; margin-top:10px; overflow-wrap:anywhere; }
.metric-sub { color:var(--muted); font-size:13px; margin-top:5px; }
.card-foot { color:#748095; font-size:11px; margin-top:12px; }
.meter-main { height:12px; margin-top:18px; }
.meter-caption { color:#8793a7; font-size:11px; margin-top:7px; }
.metric-extra { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:18px; }
.metric-extra>div { padding:11px 12px; border:1px solid rgba(255,255,255,.06); border-radius:12px; background:rgba(255,255,255,.025); }
.metric-extra span { display:block; color:#7e8b9f; font-size:10px; text-transform:uppercase; letter-spacing:.07em; }
.metric-extra strong { display:block; font-size:16px; margin-top:4px; overflow-wrap:anywhere; }
.metric-extra .metric-total { background:rgba(0,191,255,.055); border-color:rgba(0,191,255,.13); }
.ram-value-row { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin-top:8px; }
.ram-big { font-size:clamp(30px,4vw,42px); font-weight:900; color:var(--cyan); letter-spacing:-.04em; }
.ram-sub { font-size:14px; color:var(--muted); }
.ram-details { display:flex; flex-wrap:wrap; gap:8px 14px; font-size:12px; color:var(--muted); margin-top:9px; }
.ram-bar { display:flex; width:100%; height:12px; border-radius:999px; overflow:hidden; background:rgba(255,255,255,.055); margin-top:13px; }
.ram-segment { height:100%; min-width:0; }
.ram-segment.used { background:var(--cyan); } .ram-segment.cached { background:var(--purple); } .ram-segment.buffers { background:var(--yellow); } .ram-segment.available { background:rgba(255,255,255,.20); }
.ram-legend { display:flex; flex-wrap:wrap; gap:8px 13px; margin-top:8px; color:#8390a4; font-size:10px; }
.ram-legend i { display:inline-block; width:8px; height:8px; border-radius:2px; margin-right:4px; }
.ram-used{background:var(--cyan)} .ram-cached{background:var(--purple)} .ram-buffers{background:var(--yellow)} .ram-available{background:rgba(255,255,255,.20)}
.swap-line { display:flex; justify-content:space-between; gap:10px; align-items:center; margin-top:13px; padding-top:11px; border-top:1px solid var(--line); color:#7f8ba0; font-size:11px; } .swap-line strong{color:#e7edf7}
.network-card { min-height:240px; } .network-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}.network-block{padding:18px;border-radius:16px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.06);min-width:0}.network-block span{display:block;color:#7f8ba0;font-size:10px;text-transform:uppercase;letter-spacing:.10em}.network-speed{display:block;font-size:clamp(24px,3vw,34px);font-weight:900;margin-top:7px;overflow-wrap:anywhere}.network-block small{display:block;color:#778398;font-size:10px;text-transform:uppercase;letter-spacing:.08em;margin-top:12px}.network-total-big{font-size:clamp(18px,2vw,25px);font-weight:850;margin-top:3px;color:#dfe8f5}
.website-live-chip{flex:0 0 auto;text-align:right;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.025)} .website-live-chip span{display:block;color:#7e8b9f;font-size:10px;text-transform:uppercase;letter-spacing:.08em}.website-live-chip strong{display:block;font-size:30px;line-height:1;margin-top:4px}.website-footer-stat{margin-top:12px;padding-top:10px;border-top:1px solid var(--line);color:#778398;font-size:11px}

.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; min-width: 0; }
.panel-head > div { min-width: 0; }
.panel h2 { margin: 6px 0 0; font-size: 19px; overflow-wrap: anywhere; }
.muted { color: var(--muted); line-height: 1.55; }
.small { font-size: 12px; }
.controls { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.controls select, select { padding: 9px 11px; border-radius: 10px; cursor: pointer; }
.chart-wrap { width: 100%; height: clamp(260px, 38vw, 365px); border: 1px solid rgba(255, 255, 255, .06); border-radius: 17px; background: rgba(0, 0, 0, .13); overflow: hidden; }
.chart-wrap canvas { display: block; width: 100%; height: 100%; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 10px; color: #7d899d; font-size: 11px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 9px; height: 3px; border-radius: 99px; display: inline-block; }
.chart-foot { margin-top: 9px; color: #738096; font-size: 11px; }
.table-wrap { max-width: 100%; max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 15px; }
.table-wrap table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 12px; }
.table-wrap th, .table-wrap td { padding: 11px 12px; border-bottom: 1px solid rgba(255, 255, 255, .05); text-align: right; white-space: nowrap; }
.table-wrap th:first-child, .table-wrap td:first-child { text-align: left; }
.table-wrap th { position: sticky; top: 0; background: #121822; color: #8e99ac; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.two-col > * { min-width: 0; }
.coverage-card { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.coverage-card span { display: block; color: #8490a3; font-size: 11px; }
.coverage-card strong { display: block; margin-top: 6px; font-size: 28px; }
.strip-label { display: block; color: #7e8b9f; font-size: 11px; margin: 14px 0 6px; }
.uptime-strip { display: flex; gap: 3px; min-height: 42px; align-items: stretch; width: 100%; overflow: hidden; }
.u-block { flex: 1 1 0; min-width: 3px; height: 42px; border-radius: 4px; background: #2b3340; }
.u-block.green { background: linear-gradient(180deg, #22e695, #0a8f5e); }
.u-block.red { background: linear-gradient(180deg, #ff7188, #a82842); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; color: #758096; font-size: 10px; margin-top: 11px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.legend .green { background: #18e38d; } .legend .gray { background: #2b3340; } .legend .red { background: #ff6179; }

.website-list { min-width: 0; }
.website-public-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.05); min-width: 0; }
.website-public-row:last-child { border-bottom: 0; }
.website-public-main { min-width: 0; flex: 1 1 auto; }
.website-public-main strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.website-state { display: flex; align-items: center; gap: 9px; min-width: 0; }
.website-meta { margin-top: 6px; color: var(--muted); font-size: 12px; word-break: break-word; }
.website-public-status { display: grid; gap: 3px; flex: 0 0 auto; text-align: right; color: #7f8ba0; font-size: 10px; }
.website-public-status strong { color: #e7edf7; font-size: 12px; }

.website-history-status { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.website-history-status > div { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.website-history-status span { display: block; color: #7e8b9f; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.website-history-status strong { display: block; font-size: 22px; margin-top: 4px; overflow-wrap: anywhere; }
.website-history-bar { display: grid; grid-template-columns: repeat(80, minmax(0,1fr)); gap: 3px; margin-top: 14px; min-height: 44px; }
.website-history-block { min-width: 0; border-radius: 3px; background: #2b3340; }
.website-history-block.up { background: linear-gradient(180deg, #22e695, #0a8f5e); }
.website-history-block.down { background: linear-gradient(180deg, #ff7188, #a82842); }
.website-history-block.sample { background: linear-gradient(180deg, #00bfff, #3565a6); }

.logs { height: 320px; max-height: 320px; overflow-y: auto; overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; background: #070a0f; padding: 5px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; }
.log { display: grid; grid-template-columns: minmax(135px, 1fr) auto minmax(65px, 90px) minmax(0, 2fr); gap: 8px; padding: 7px 9px; border-bottom: 1px solid rgba(255,255,255,.04); min-width: 560px; }
.log-ts { color: #738096; }
.level { font-weight: 800; } .level.info { color: #78dfff; } .level.warn { color: #f5cb58; } .level.error { color: #ff7185; }
.source { color: #9b7dff; }

.core-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.core-summary > div { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.core-summary span { display: block; color: #8490a3; font-size: 11px; }
.core-summary strong { display: block; font-size: 24px; margin-top: 6px; overflow-wrap: anywhere; }
.core-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.core-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.02); }
.core-card > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.core-card span { color: #8793a7; font-size: 12px; }
.core-card strong { font-size: 19px; }

.view-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.view-grid > div { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); }
.view-grid span { display: block; color: #7e8a9f; font-size: 10px; }
.view-grid strong { display: block; font-size: 20px; margin-top: 4px; overflow-wrap: anywhere; }

.hidden { display: none !important; }
code { color: #9ceaff; }

@media (max-width: 1180px) { }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero-side { margin-top: 2px; }
  .two-col { grid-template-columns: 1fr; }
  .core-summary { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar { min-height: 64px; }
  .brand strong { font-size: 14px; }
  .brand-mark { width: 34px; height: 34px; flex-basis: 34px; font-size: 19px; border-radius: 10px; }
  .hero { padding: 20px; }
  .hero-actions .button { flex: 1 1 150px; }
  .panel-head { align-items: flex-start; flex-direction: column; }
  .controls { width: 100%; }
  .controls select, .controls .seg { flex: 1 1 130px; min-width: 0; }
  .website-public-row { align-items: flex-start; flex-direction: column; }
  .website-public-status { text-align: left; width: 100%; }
  .website-live-chip { width:100%; text-align:left; }
  .network-grid{grid-template-columns:1fr}
  .website-history-status { grid-template-columns: 1fr; }
  .logs { height: 290px; max-height: 290px; }
}
@media (max-width: 520px) {
  .section-grid { grid-template-columns: 1fr; }
  .website-history-bar { gap: 2px; }
}
@media (max-width: 420px) {
  .shell { padding-left: 9px; padding-right: 9px; }
  .hero { border-radius: 17px; }
  .panel { border-radius: 17px; }
  .uptime-strip { gap: 2px; }
  .u-block { min-width: 2px; height: 36px; }
}

/* v15.1 visual corrections */
.metric-card{display:flex;flex-direction:column;justify-content:flex-start;}
.metric-card .meter-main{height:14px;border-radius:999px;margin-top:18px;}
.metric-card .meter-main span{min-width:2px;}
.network-card{grid-column:span 2;}
.website-live-chip{min-width:150px;}
.website-history-bar{min-height:48px;}
.website-history-block{min-height:48px;}
@media (max-width:900px){.network-card{grid-column:auto;}}
