/* Pluvio — hoja de estilos unica (sin build, sin dependencias) */

:root {
  --bg: #060b14;
  --bg-2: #0a1322;
  --panel: #0d1727;
  --panel-2: #111f34;
  --line: #1b2b45;
  --line-2: #263a58;
  --text: #e9eff9;
  --muted: #94a8c5;
  --faint: #61758f;
  --accent: #38bdf8;
  --accent-2: #818cf8;
  --rain: #5b9cf8;
  --ok: #35d399;
  --warn: #f5b544;
  --danger: #fb7185;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 28px 60px -34px rgba(0, 0, 0, 0.95);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

html {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  background:
    radial-gradient(1100px 720px at 8% -18%, #14294b 0%, transparent 56%),
    radial-gradient(900px 620px at 98% 2%, #171f45 0%, transparent 52%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(56, 189, 248, 0.3);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #1b2b45;
  border-radius: 99px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-track {
  background: transparent;
}

a {
  color: var(--accent);
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

/* ---------------------------------------------------------------- arranque */

.boot {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: var(--muted);
}
.boot-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid #16304d;
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.boot-text {
  font-size: 14px;
  letter-spacing: 0.01em;
}

/* ------------------------------------------------------------------ topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 11, 20, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  margin-right: 4px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #0ea5e9, #6366f1);
  box-shadow: 0 10px 24px -10px #0ea5e9;
  flex: none;
}
.brand-mark svg {
  width: 19px;
  height: 19px;
}
.brand-text {
  line-height: 1.05;
}
.brand-name {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 16px;
}
.brand-sub {
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px 0 4px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12.5px;
  color: var(--muted);
  max-width: 230px;
  min-width: 0;
}
.user-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #1f3b63, #312e81);
  color: #cfe6ff;
  font-size: 11px;
  font-weight: 700;
  flex: none;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ layout */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 22px 64px;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 13px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.16s ease;
  white-space: nowrap;
}
.chip:hover {
  border-color: var(--line-2);
  color: var(--text);
}
.chip.on {
  background: rgba(56, 189, 248, 0.13);
  border-color: rgba(56, 189, 248, 0.55);
  color: #cdefff;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.07);
}
.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--faint);
  flex: none;
}
.chip-dot.live {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(53, 211, 153, 0.12);
}
.chip-dot.stale {
  background: var(--warn);
}

.panel-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ------------------------------------------------------------------ botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.15s ease;
  text-decoration: none;
}
.btn:hover {
  background: #17273f;
  border-color: var(--line-2);
}
.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.28);
}
.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.btn-primary {
  background: linear-gradient(180deg, #43c4fa, #0ea5e9);
  border-color: #5cc9fa;
  color: #03141f;
  box-shadow: 0 10px 24px -14px #38bdf8;
}
.btn-primary:hover {
  background: linear-gradient(180deg, #63cffb, #22aef0);
  border-color: #7fd8fc;
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn-ghost:hover {
  background: var(--panel-2);
  color: var(--text);
}
.btn-danger {
  background: #2a1220;
  border-color: #4a2230;
  color: #ffb4c1;
}
.btn-danger:hover {
  background: #361626;
  border-color: #5f2a3c;
}
.btn-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 12.5px;
  border-radius: 8px;
}
.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}
.icon-btn {
  width: 38px;
  padding: 0;
}

/* -------------------------------------------------------------------- cards */

.card {
  background: linear-gradient(180deg, rgba(17, 31, 52, 0.86), rgba(11, 20, 35, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.card-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.card-sub {
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 4px;
}

/* --------------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 18px;
}

.hero-main {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}
.hero-main::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -110px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, transparent 62%);
  pointer-events: none;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
}

.station-name {
  font-size: clamp(22px, 3.4vw, 29px);
  letter-spacing: -0.03em;
  margin: 6px 0 10px;
  font-weight: 800;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}
.badge.ok {
  color: #9ef0cd;
  border-color: #17493a;
  background: #0c2a22;
}
.badge.off {
  color: #f7c6ce;
  border-color: #4b2230;
  background: #2a1219;
}
.badge.warn {
  color: #f8d79a;
  border-color: #4a3a18;
  background: #2a2410;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: currentColor;
  flex: none;
}
.dot.live {
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(53, 211, 153, 0.14);
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.bignum {
  font-size: clamp(48px, 8vw, 74px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  margin: 22px 0 2px;
}
.bignum span {
  font-size: 0.3em;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 8px;
}
.hero-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.hero-sub b {
  color: var(--text);
}
.hero-meta {
  margin-top: 16px;
  font-size: 12px;
  color: var(--faint);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}

.hero-art {
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 132px;
  height: 132px;
  opacity: 0.9;
  pointer-events: none;
}
.hero-art svg {
  width: 100%;
  height: 100%;
}

/* -------------------------------------------------------------------- stats */

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}

.stat {
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 104px;
}
.stat-label {
  font-size: 11px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
}
.stat-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-top: 8px;
}
.stat-value small {
  font-size: 12px;
  color: var(--faint);
  font-weight: 600;
  margin-left: 3px;
}
.stat-sub {
  font-size: 11.5px;
  color: var(--faint);
  margin-top: 4px;
}
.stat.hot {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.06);
}

/* -------------------------------------------------------------------- chart */

.chart-card {
  margin-top: 18px;
}
.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.chart-total {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.chart-total b {
  color: var(--text);
  font-size: 15px;
}

.tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: #091323;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.chart-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.14s ease;
  white-space: nowrap;
}
.tab:hover {
  color: var(--text);
}
.tab.on {
  background: #17273f;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.chart-host {
  position: relative;
  width: 100%;
  min-height: 250px;
}
.chart-host svg {
  display: block;
  width: 100%;
  overflow: visible;
}
.chart-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  background: #0a1424;
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  padding: 7px 9px;
  border-radius: 8px;
  box-shadow: 0 14px 30px -18px #000;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.1s ease, transform 0.1s ease;
  white-space: nowrap;
  max-width: 240px;
}
.chart-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}
.chart-tooltip b {
  color: #bfe9ff;
}
.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  color: var(--faint);
  font-size: 13px;
  pointer-events: none;
}
.chart-empty strong {
  color: var(--muted);
  font-size: 14px;
}

/* --------------------------------------------------------------------- grid */

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

/* -------------------------------------------------------------- comparativa */

.cmp-row {
  display: grid;
  grid-template-columns: minmax(80px, 120px) 1fr minmax(58px, auto);
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  font-size: 13px;
}
.cmp-row + .cmp-row {
  border-top: 1px solid rgba(27, 43, 69, 0.55);
}
.cmp-name {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cmp-row.current .cmp-name {
  color: var(--text);
  font-weight: 700;
}
.cmp-bar {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: #0a1424;
  overflow: hidden;
  border: 1px solid rgba(27, 43, 69, 0.7);
}
.cmp-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  width: 0;
  transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cmp-row.current .cmp-fill {
  background: linear-gradient(90deg, #5eead4, #38bdf8);
}
.cmp-val {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
}
.cmp-val small {
  color: var(--faint);
  font-weight: 600;
  margin-left: 3px;
  font-size: 11px;
}
.cmp-note {
  margin: 14px 0 0;
  padding-top: 13px;
  border-top: 1px solid rgba(27, 43, 69, 0.65);
  font-size: 12px;
  color: var(--faint);
  line-height: 1.55;
}
.cmp-note b {
  color: var(--muted);
  font-weight: 600;
}

/* -------------------------------------------------------------------- tabla */

.table-wrap {
  overflow-x: auto;
  margin: 0 -6px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 380px;
}
.table th {
  text-align: left;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
  padding: 0 8px 9px;
  white-space: nowrap;
}
.table td {
  padding: 11px 8px;
  border-top: 1px solid rgba(27, 43, 69, 0.65);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table td.num,
.table th.num {
  text-align: right;
}
.table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.022);
}
.table .strong {
  color: var(--text);
  font-weight: 600;
}

.empty {
  padding: 26px 8px;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.6;
}
.empty strong {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 4px;
}

/* ------------------------------------------------------------------ ajustes */

.settings {
  display: grid;
  gap: 18px;
}

.section {
  background: linear-gradient(180deg, rgba(17, 31, 52, 0.86), rgba(11, 20, 35, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.section-sub {
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 4px;
  line-height: 1.5;
  max-width: 560px;
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.form-inline {
  grid-template-columns: minmax(0, 1fr) auto;
}
.form-inline .form-actions {
  grid-column: auto;
}

.calib {
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.015);
}
.calib-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.45;
}
.calib-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.calib-out {
  font-size: 11.5px;
  color: var(--faint);
  margin-top: 9px;
  line-height: 1.5;
}
.form .full {
  grid-column: 1 / -1;
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.field label {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.input,
.select {
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #091323;
  color: var(--text);
  font-size: 13.5px;
  width: 100%;
  transition: 0.14s ease;
}
.input::placeholder {
  color: #4f6480;
}
.input:focus,
.select:focus {
  outline: none;
  border-color: #2b6f9e;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.13);
}
.input.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.01em;
}
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6d84a3 50%),
    linear-gradient(135deg, #6d84a3 50%, transparent 50%);
  background-position: calc(100% - 17px) 16px, calc(100% - 12px) 16px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  grid-column: 1 / -1;
}

.list {
  display: grid;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  border-top: 1px solid rgba(27, 43, 69, 0.65);
}
.list-row:first-child {
  border-top: 0;
}
.row-main {
  min-width: 0;
  flex: 1;
}
.row-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.row-title .mono {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  font-weight: 500;
}
.row-sub {
  font-size: 12px;
  color: var(--faint);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  color: var(--faint);
}
.tag.admin {
  color: #c9c2ff;
  border-color: #3a3470;
  background: #1b1840;
}
.tag.owner {
  color: #9ef0cd;
  border-color: #17493a;
  background: #0c2a22;
}
.tag.off {
  color: #f7c6ce;
  border-color: #4b2230;
  background: #2a1219;
}

.ico {
  width: 16px;
  height: 16px;
  flex: none;
  vertical-align: -3px;
}
.btn .ico {
  width: 15px;
  height: 15px;
}

.callout {
  margin-top: 16px;
  border: 1px solid #2b5f7e;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.1), rgba(14, 165, 233, 0.04));
  border-radius: 14px;
  padding: 16px;
}
.callout-title {
  font-size: 13px;
  font-weight: 700;
  color: #bfe9ff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.callout p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 6px 0 10px;
  line-height: 1.55;
}
.copy-line {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.copy-line code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  background: #071019;
  border: 1px solid #1d3a52;
  border-radius: 9px;
  padding: 9px 11px;
  font-family: var(--mono);
  font-size: 12px;
  color: #a5e3ff;
}
.code-block {
  background: #071019;
  border: 1px solid #1d3a52;
  border-radius: 9px;
  padding: 11px 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: #9fc4dd;
  overflow-x: auto;
  white-space: pre;
  margin: 10px 0 0;
}

/* ------------------------------------------------------------------ banners */

.banner {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #3d3416;
  background: #241f0d;
  color: #f3d69a;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.4;
  margin-bottom: 16px;
}
.banner > span {
  min-width: 0;
}
.banner a {
  color: #ffe3a6;
}
.banner svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* -------------------------------------------------------------------- login */

.login {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
}

.login-art {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px;
  background:
    radial-gradient(760px 520px at 26% 18%, rgba(18, 48, 85, 0.95) 0%, transparent 62%),
    radial-gradient(600px 420px at 80% 80%, rgba(49, 46, 129, 0.5) 0%, transparent 60%),
    #070d18;
  border-right: 1px solid var(--line);
}
.login-art::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: repeating-linear-gradient(
    112deg,
    transparent 0 26px,
    rgba(96, 165, 250, 0.09) 26px 27px,
    transparent 27px 52px
  );
  animation: rain 5.5s linear infinite;
  opacity: 0.75;
}
@keyframes rain {
  to {
    transform: translate3d(-64px, 128px, 0);
  }
}
.login-art::after {
  content: "";
  position: absolute;
  left: 12%;
  top: 14%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 66%);
  filter: blur(10px);
}
.login-art > * {
  position: relative;
  z-index: 1;
}
.login-art h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  letter-spacing: -0.04em;
  margin: 0 0 14px;
  line-height: 1.04;
  max-width: 520px;
}
.login-art h2 em {
  font-style: normal;
  color: var(--accent);
}
.login-art p {
  color: var(--muted);
  max-width: 400px;
  line-height: 1.65;
  margin: 0;
  font-size: 15px;
}
.login-art .art-brand {
  margin-bottom: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 17px;
}

.login-side {
  display: grid;
  place-items: center;
  padding: 34px 26px;
  background: radial-gradient(700px 520px at 72% 22%, rgba(56, 189, 248, 0.07) 0%, transparent 62%);
}
.login-card {
  width: 100%;
  max-width: 390px;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 26px;
}
.login-brand .brand-name {
  font-size: 19px;
  letter-spacing: -0.02em;
}
.login-title {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  font-weight: 800;
}
.login-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 26px;
}
.gbtn {
  min-height: 44px;
  display: flex;
  justify-content: center;
}
.login-note {
  margin-top: 18px;
  font-size: 12px;
  color: var(--faint);
  line-height: 1.6;
  text-align: center;
}
.login-note strong {
  color: var(--muted);
}
.login-error {
  margin-top: 16px;
  border: 1px solid #4b2230;
  background: #2a1219;
  color: #ffc2cc;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
}
.login-demo {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 18px 0;
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.dev-login {
  border: 1px dashed #2b3f5e;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

/* -------------------------------------------------------------------- toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(16px);
  background: #101d31;
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 11px;
  box-shadow: 0 20px 40px -18px #000;
  opacity: 0;
  pointer-events: none;
  transition: 0.22s ease;
  z-index: 100;
  max-width: min(90vw, 460px);
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.error {
  border-color: #5f2a3c;
  background: #2a1220;
  color: #ffc2cc;
}

/* ----------------------------------------------------------------- skeleton */

.skeleton {
  position: relative;
  overflow: hidden;
  background: #101c2e;
  border-radius: 8px;
  color: transparent;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.footer {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(27, 43, 69, 0.6);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
  color: var(--faint);
  font-size: 11.5px;
}
.footer a {
  color: var(--faint);
  text-decoration: none;
}
.footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .stat {
    min-height: 96px;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding: 18px 14px 56px;
  }
  .topbar-inner {
    padding: 10px 12px;
    gap: 8px;
  }
  .brand-sub {
    display: none;
  }
  .top-actions {
    gap: 6px;
  }
  .user-chip {
    padding: 0 4px;
  }
  .user-chip span:not(.avatar) {
    display: none;
  }
  .card,
  .section {
    padding: 17px;
    border-radius: 15px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
  }
  .stat {
    min-height: 92px;
    padding: 12px;
  }
  .stat-value {
    font-size: 21px;
  }
  .hero-art {
    width: 96px;
    height: 96px;
    right: 10px;
    bottom: 10px;
    opacity: 0.5;
  }
  .form {
    grid-template-columns: 1fr;
  }
  .calib-grid {
    grid-template-columns: 1fr 1fr;
  }
  .calib-grid .btn {
    grid-column: 1 / -1;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .login-side {
    min-height: 100dvh;
    padding: 28px 20px;
  }
  .panel-actions {
    margin-left: 0;
    width: 100%;
  }
  .panel-actions .btn {
    flex: 1;
  }
  .tabs {
    width: 100%;
    overflow-x: auto;
  }
  .tab {
    flex: 1;
    padding: 6px 8px;
  }
  .chart-head {
    gap: 10px;
  }
  .footer {
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
