:root {
  color-scheme: light;
  --bg: #eaf8ff;
  --card: #fbfeff;
  --text: #123247;
  --muted: #63859a;
  --button: #118fd7;
  --button-text: #fff;
  --line: #b9ddec;
  --green: #187a59;
  --green-bg: #dff5ea;
  --yellow: #9a6b0c;
  --yellow-bg: #fff3cf;
  --red: #b84444;
  --red-bg: #fdecec;
}
body {
  background:
    radial-gradient(circle at 10% 0, #fff 0 8%, transparent 32%),
    radial-gradient(circle at 92% 18%, #bfeaf8 0, transparent 34%),
    linear-gradient(150deg, #f8fdff 0, #dff4fc 55%, #ccecf8 100%);
  background-attachment: fixed;
}
.app-shell { position: relative; }
.app-head img { border: 1px solid #fff; box-shadow: 0 5px 14px #488ba51c; }
.connection-card,.summary,.menu-list {
  border-color: #acd6e7;
  box-shadow: 0 8px 24px #2a83a512;
}
.summary .rating-summary { position: relative; padding-right: 75px; }
.rating-summary b { position: absolute; right: 18px; top: 24px; color: #087da8; font-size: 13px; }
.rating-summary b span { display: inline; color: inherit; font-size: 21px; font-weight: 800; }
.statistics-link { width: 100%; display: flex; justify-content: space-between; border: 0; background: transparent; color: #087da8; padding: 1px 4px 15px; font: inherit; font-weight: 650; cursor: pointer; }
.stats-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.stats-heading h1 { margin: 4px 0 0; }
.period-tabs { display: flex; padding: 3px; border: 1px solid #acd6e7; border-radius: 9px; background: #e1f3fa; }
.period-tabs button { border: 0; border-radius: 6px; padding: 7px 8px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.period-tabs button.active { background: #fff; color: #087da8; box-shadow: 0 1px 4px #317d9a1c; }
.stats-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; color: var(--muted); }
#stats-content.loading { opacity: .55; }
.traffic-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.traffic-cards>div,.rating-card { padding: 15px; border: 1px solid #acd6e7; border-radius: 13px; background: #f8fdff; }
.traffic-cards .total { grid-column: 1/-1; }
.traffic-cards span,.traffic-cards strong { display: block; }
.traffic-cards span { color: var(--muted); font-size: 11px; }
.traffic-cards strong { margin-top: 5px; font-size: 19px; }
.traffic-cards .total strong { color: #087da8; }
.rating-card { margin-top: 10px; }
.rating-head { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; }
.rating-snow { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #d4f0fa; color: #087da8; font-size: 19px; }
.rating-head small,.rating-head strong { display: block; }
.rating-head small { color: var(--muted); font-size: 10px; }
.rating-head strong { margin-top: 2px; font-size: 14px; }
.rating-head>b { color: #087da8; font-size: 12px; }
.rating-head>b span { font-size: 23px; }
.rating-track { height: 6px; overflow: hidden; border-radius: 5px; background: #cbe8f3; margin-top: 13px; }
.rating-track i { display: block; height: 100%; width: 0; background: #159bd6; border-radius: inherit; transition: width .25s; }
.rating-card p,.stats-note { color: var(--muted); font-size: 11px; }
.traffic-chart { height: 115px; display: flex; align-items: flex-end; gap: 3px; margin-top: 16px; padding: 7px 3px 0; border-bottom: 1px solid #9bcde1; }
.traffic-chart i { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 2px; }
.traffic-chart i span { display: block; width: 100%; min-height: 3px; background: #22a7dd; border-radius: 3px 3px 0 0; }
.traffic-chart p { width: 100%; align-self: center; text-align: center; color: var(--muted); font-size: 12px; }
.stats-note { text-align: center; margin-top: 13px; }
@media (max-width: 390px) { .stats-heading { display: block; } .period-tabs { width: max-content; margin-top: 12px; } }
.env-badge { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 5px; background: #ffb020; color: #172033; font-size: 10px; line-height: 1.2; vertical-align: 2px; letter-spacing: .08em; }
