:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: #e8f1f8;
  background: #07121f;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bg: #07121f;
  --bg-deep: #050d17;
  --surface: rgba(14, 29, 45, 0.92);
  --surface-raised: rgba(19, 39, 58, 0.94);
  --surface-soft: rgba(21, 45, 65, 0.56);
  --border: rgba(136, 176, 201, 0.18);
  --border-strong: rgba(69, 208, 223, 0.34);
  --text: #e8f1f8;
  --text-soft: #a6b8c8;
  --text-muted: #778da0;
  --cyan: #42d5df;
  --cyan-bright: #72e7eb;
  --cyan-dark: #072e3c;
  --green: #61dfa6;
  --green-dark: rgba(32, 139, 103, 0.17);
  --amber: #f5c66b;
  --amber-dark: rgba(176, 116, 23, 0.16);
  --red: #ff8d91;
  --red-dark: rgba(173, 52, 65, 0.17);
  --shadow: 0 24px 70px rgba(0, 4, 11, 0.38);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% -10%, rgba(35, 174, 193, 0.12), transparent 33rem),
    radial-gradient(circle at 100% 8%, rgba(27, 114, 154, 0.12), transparent 34rem),
    linear-gradient(155deg, var(--bg-deep) 0%, var(--bg) 48%, #091827 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(117, 182, 205, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 182, 205, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.hidden {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  min-height: 44px;
  padding: 11px 16px;
  color: #031115;
  background: var(--cyan-bright);
  border-radius: var(--radius-sm);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 13, 23, 0.84);
  box-shadow: 0 12px 40px rgba(0, 5, 12, 0.18);
  backdrop-filter: blur(18px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1440px);
  min-height: 72px;
  margin: 0 auto;
  padding: 0 28px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  gap: 12px;
}

.brand__mark {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(79, 224, 233, 0.36);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 213, 223, 0.18) 0 22%, transparent 24% 48%, rgba(66, 213, 223, 0.18) 50% 52%, transparent 54%);
  box-shadow: inset 0 0 22px rgba(66, 213, 223, 0.12), 0 0 24px rgba(66, 213, 223, 0.08);
}

.brand__mark::before,
.brand__mark::after {
  position: absolute;
  content: "";
  background: rgba(100, 225, 232, 0.22);
}

.brand__mark::before {
  width: 1px;
  height: 100%;
}

.brand__mark::after {
  width: 100%;
  height: 1px;
}

.brand__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 14px rgba(114, 231, 235, 0.84);
}

.brand__copy {
  display: grid;
  gap: 1px;
}

.brand__copy strong {
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand__copy span {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.2;
}

.topbar__actions,
.session-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switch,
.segmented {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 31, 47, 0.74);
}

.language-switch__button,
.segmented__button {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.language-switch__button {
  min-width: 48px;
  padding: 0 10px;
  font-size: 12px;
}

.language-switch__button[aria-pressed="true"],
.segmented__button[aria-selected="true"] {
  color: #e8fdff;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.55), rgba(37, 99, 235, 0.45));
  box-shadow:
    inset 0 0 0 1px rgba(114, 231, 235, 0.28),
    0 8px 22px rgba(34, 185, 205, 0.14);
}

.account-chip {
  display: grid;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(15, 31, 47, 0.72);
  gap: 1px;
}

.account-chip__label {
  color: var(--text-muted);
  font-size: 10px;
}

.account-chip strong {
  max-width: 180px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-content {
  width: min(100%, 1440px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 58px 28px 72px;
  outline: none;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  min-height: calc(100vh - 202px);
  gap: clamp(42px, 8vw, 128px);
}

.auth-intro {
  position: relative;
  max-width: 680px;
}

.auth-intro__orb {
  position: absolute;
  top: -48px;
  left: -36px;
  z-index: -1;
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 40% 40%, rgba(66, 213, 223, 0.18), transparent 42%),
    radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.12), transparent 48%);
  filter: blur(8px);
  animation: orb-breathe 7s ease-in-out infinite;
}

@keyframes orb-breathe {
  0%, 100% { opacity: 0.72; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: normal;
  text-transform: none;
  gap: 8px;
}

html[lang="en"] .eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(66, 213, 223, 0.7);
}

.auth-intro h1,
.workspace-hero h1 {
  margin: 0;
  color: #f3f9fc;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.auth-intro > p,
.workspace-hero > div > p {
  max-width: 630px;
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.75;
}

.feature-list {
  display: grid;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  gap: 14px;
}

.feature-list li {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-soft);
  background: linear-gradient(135deg, rgba(14, 32, 48, 0.72), rgba(8, 20, 32, 0.55));
  font-size: 14px;
  gap: 13px;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.feature-list li:hover {
  border-color: rgba(66, 213, 223, 0.28);
  background: linear-gradient(135deg, rgba(18, 42, 60, 0.82), rgba(10, 26, 40, 0.7));
  transform: translateX(2px);
}

.feature-list__icon {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(66, 213, 223, 0.07);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 10px;
  box-shadow: inset 0 0 12px rgba(66, 213, 223, 0.08);
}

.panel-surface {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(17, 35, 52, 0.96), rgba(10, 24, 38, 0.94));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.025);
}

.panel-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6, #8b5cf6, #06b6d4);
  background-size: 200% 100%;
  animation: accent-flow 8s linear infinite;
}

@keyframes accent-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.auth-card {
  width: 100%;
  max-width: 500px;
  justify-self: end;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
}

.segmented {
  width: 100%;
}

.segmented__button {
  padding: 0 18px;
  font-size: 14px;
}

.auth-card__heading {
  margin: 30px 0 26px;
}

.auth-card__heading h2,
.modal__header h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  letter-spacing: -0.02em;
}

.auth-card__heading p,
.modal__panel > p,
.section-heading p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.form-field {
  display: grid;
  margin-bottom: 20px;
  gap: 8px;
}

.form-field label {
  color: #c7d5df;
  font-size: 13px;
  font-weight: 700;
}

.form-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: none;
  color: var(--text);
  background: rgba(4, 14, 24, 0.64);
  caret-color: var(--cyan);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.form-field input:hover {
  border-color: rgba(136, 176, 201, 0.32);
}

.form-field input:focus {
  border-color: var(--cyan);
  background: rgba(6, 20, 31, 0.86);
  box-shadow: 0 0 0 3px rgba(66, 213, 223, 0.11);
}

.form-field input[aria-invalid="true"] {
  border-color: rgba(255, 141, 145, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 141, 145, 0.08);
}

.field-help {
  min-height: 18px;
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.field-help--accent {
  color: #9ecfd4;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.button {
  padding: 0 18px;
  border: 1px solid transparent;
  gap: 8px;
  font-size: 13px;
}

.button--primary {
  position: relative;
  overflow: hidden;
  color: #041215;
  background: linear-gradient(135deg, var(--cyan-bright), #34c3d2 48%, #3b9fe8);
  box-shadow: 0 10px 28px rgba(41, 185, 199, 0.18), 0 0 0 1px rgba(114, 231, 235, 0.12);
}

.button--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #8bedee, #49d1db 48%, #54b0f0);
  box-shadow: 0 14px 34px rgba(41, 185, 199, 0.28), 0 0 0 1px rgba(114, 231, 235, 0.22);
}

.button--glow::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 620ms ease;
}

.button--glow:hover:not(:disabled)::after {
  transform: translateX(120%);
}

.button--ghost {
  border-color: var(--border);
  color: #c5d4df;
  background: rgba(20, 41, 59, 0.54);
}

.button--ghost:hover:not(:disabled) {
  border-color: rgba(66, 213, 223, 0.4);
  color: var(--cyan-bright);
  background: rgba(23, 53, 72, 0.78);
  box-shadow: 0 0 0 1px rgba(66, 213, 223, 0.08), 0 10px 24px rgba(0, 10, 20, 0.18);
}

.button--danger {
  border-color: rgba(255, 141, 145, 0.24);
  color: var(--red);
  background: var(--red-dark);
}

.button--danger:hover:not(:disabled) {
  border-color: rgba(255, 141, 145, 0.52);
  background: rgba(173, 52, 65, 0.26);
}

.button--block {
  width: 100%;
  min-height: 50px;
  margin-top: 7px;
}

.button--compact {
  min-height: 44px;
  padding: 0 14px;
}

.button:disabled,
.icon-button:disabled,
.segmented__button:disabled,
.language-switch__button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.button__loader {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.notice {
  width: 100%;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  background: var(--surface-soft);
  font-size: 13px;
  line-height: 1.55;
}

.notice--error {
  border-color: rgba(255, 141, 145, 0.25);
  color: #ffb1b4;
  background: var(--red-dark);
}

.notice--success {
  border-color: rgba(97, 223, 166, 0.24);
  color: #9debc8;
  background: var(--green-dark);
}

.workspace {
  min-height: calc(100vh - 202px);
}

.workspace-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 34px;
  gap: 24px;
}

.workspace-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 42px;
  gap: 14px;
}

.summary-card {
  display: flex;
  align-items: center;
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(18, 38, 56, 0.83), rgba(10, 25, 39, 0.86));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.02);
  gap: 16px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.summary-card:hover {
  border-color: rgba(66, 213, 223, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 8, 18, 0.22), inset 0 1px rgba(255, 255, 255, 0.04);
}

.summary-card__icon {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--cyan);
  background: rgba(66, 213, 223, 0.07);
  font-family: ui-monospace, monospace;
}

.summary-card--online .summary-card__icon {
  color: var(--green);
  background: var(--green-dark);
}

.summary-card--offline .summary-card__icon {
  color: var(--text-muted);
  background: rgba(119, 141, 160, 0.08);
}

.summary-card > div:last-child {
  display: grid;
  gap: 4px;
}

.summary-card span {
  color: var(--text-muted);
  font-size: 12px;
}

.summary-card strong {
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.refresh-icon {
  font-size: 18px;
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.station-card,
.station-skeleton,
.empty-state {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, rgba(18, 38, 56, 0.91), rgba(9, 23, 36, 0.92));
  box-shadow: 0 18px 46px rgba(0, 5, 12, 0.16), inset 0 1px rgba(255, 255, 255, 0.018);
}

.station-card {
  min-width: 0;
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.station-card:hover {
  border-color: rgba(66, 213, 223, 0.32);
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(0, 6, 14, 0.28), inset 0 1px rgba(255, 255, 255, 0.03);
}

.station-card__actions .button--primary {
  min-height: 44px;
}

.station-card__body {
  padding: 20px;
}

.station-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.station-card__identity {
  min-width: 0;
}

.station-card__identity h3 {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.station-code {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin-top: 8px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-muted);
  background: rgba(3, 12, 21, 0.34);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 11px;
}

.status-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  gap: 6px;
}

.status-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
}

.status-badge--online {
  border-color: rgba(97, 223, 166, 0.21);
  color: #91e9c1;
  background: var(--green-dark);
}

.status-badge--online::before {
  background: var(--green);
  box-shadow: 0 0 9px rgba(97, 223, 166, 0.65);
}

.status-badge--offline {
  border-color: rgba(119, 141, 160, 0.18);
  color: #94a7b7;
  background: rgba(119, 141, 160, 0.08);
}

.status-badge--offline::before {
  background: #73899c;
}

.station-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
  background: rgba(4, 14, 24, 0.32);
}

.station-metric {
  display: grid;
  min-width: 0;
  padding: 12px;
  gap: 5px;
}

.station-metric + .station-metric {
  border-left: 1px solid var(--border);
}

.station-metric span {
  color: var(--text-muted);
  font-size: 10px;
}

.station-metric strong {
  overflow: hidden;
  color: #cbd9e2;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station-card__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.station-details {
  border-top: 1px solid var(--border);
  background: rgba(4, 14, 24, 0.3);
}

.station-details__inner {
  padding: 18px 20px 20px;
}

.station-details__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.station-details__heading h4,
.danger-zone h4 {
  margin: 0;
  color: #cbd9e2;
  font-size: 12px;
}

.station-details__heading span {
  color: var(--text-muted);
  font-size: 11px;
}

.device-list {
  display: grid;
  gap: 9px;
}

.device-card {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(14, 32, 47, 0.7);
}

.device-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.device-card__header strong {
  min-width: 0;
  overflow: hidden;
  color: #d8e4eb;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-card__meta {
  display: grid;
  margin: 11px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.55;
  gap: 3px;
}

.device-card__danger {
  display: flex;
  justify-content: flex-end;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 141, 145, 0.12);
}

.device-card__danger .button {
  min-height: 44px;
}

.details-state {
  padding: 17px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.details-state--error {
  border-color: rgba(255, 141, 145, 0.22);
  color: #ffb1b4;
}

.danger-zone {
  margin-top: 14px;
  border: 1px solid rgba(255, 141, 145, 0.14);
  border-radius: 11px;
  background: rgba(94, 29, 39, 0.08);
}

.danger-zone summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  color: #dca1a4;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  list-style: none;
}

.danger-zone summary::-webkit-details-marker {
  display: none;
}

.danger-zone summary::after {
  margin-left: auto;
  color: var(--text-muted);
  content: "+";
  font-size: 16px;
}

.danger-zone[open] summary::after {
  content: "−";
}

.danger-zone__content {
  padding: 0 13px 13px;
}

.danger-zone__content p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.55;
}

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

.station-skeleton {
  min-height: 284px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent, rgba(99, 167, 190, 0.07), transparent),
    linear-gradient(150deg, rgba(18, 38, 56, 0.82), rgba(9, 23, 36, 0.86));
  background-size: 220% 100%, 100% 100%;
  animation: skeleton 1.4s ease-in-out infinite;
}

@keyframes skeleton {
  from { background-position: 130% 0, 0 0; }
  to { background-position: -130% 0, 0 0; }
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  min-height: 260px;
  padding: 36px 24px;
  place-items: center;
  text-align: center;
}

.empty-state__content {
  max-width: 460px;
}

.empty-state__icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 17px;
  color: var(--cyan);
  background: rgba(66, 213, 223, 0.07);
  font-size: 25px;
}

.empty-state h3 {
  margin: 0;
  font-size: 18px;
}

.empty-state p {
  margin: 10px 0 20px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  padding: 20px;
  place-items: center;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 44px;
  border: 0;
  background: rgba(1, 7, 13, 0.76);
  cursor: default;
  backdrop-filter: blur(9px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  padding: 28px;
  overflow-y: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #132b3f, #091a2a);
  box-shadow: 0 34px 90px rgba(0, 3, 9, 0.6);
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.modal__header .eyebrow {
  margin-bottom: 9px;
}

.icon-button {
  flex: 0 0 auto;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  color: var(--text-soft);
  background: rgba(7, 19, 30, 0.5);
  font-size: 24px;
}

.icon-button:hover:not(:disabled) {
  border-color: var(--border-strong);
  color: var(--cyan-bright);
}

.modal__panel > p {
  margin-bottom: 24px;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 26px;
  gap: 10px;
}

body.modal-open {
  overflow: hidden;
}

:focus-visible {
  outline: 3px solid rgba(114, 231, 235, 0.9);
  outline-offset: 3px;
}

@media (max-width: 1119px) {
  .auth-layout {
    gap: 48px;
  }

  .station-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .main-content {
    padding-top: 42px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-intro {
    max-width: 720px;
  }

  .auth-intro h1 {
    max-width: 650px;
  }

  .auth-card {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 699px) {
  .topbar,
  .topbar__inner,
  .main-content,
  .auth-layout,
  .auth-intro,
  .auth-card {
    min-width: 0;
    max-width: 100%;
  }

  .topbar__inner {
    min-height: 64px;
    padding: 0 16px;
  }

  .brand__copy span,
  .account-chip {
    display: none;
  }

  .topbar__actions,
  .session-controls {
    gap: 7px;
  }

  .language-switch__button {
    min-width: 44px;
    padding: 0 7px;
  }

  .main-content {
    padding: 34px 16px 56px;
  }

  .auth-layout {
    gap: 34px;
  }

  .auth-intro h1 {
    font-size: clamp(34px, 11vw, 46px);
    overflow-wrap: anywhere;
  }

  .feature-list {
    margin-top: 28px;
  }

  .auth-card {
    padding: 22px;
  }

  .workspace-hero {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 26px;
  }

  .workspace-hero .button {
    width: 100%;
  }

  .summary-grid {
    grid-template-columns: 1fr;
    margin-bottom: 34px;
    gap: 10px;
  }

  .summary-card {
    min-height: 86px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading .button span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .station-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    align-items: end;
    padding: 0;
  }

  .modal__panel {
    width: 100%;
    max-height: min(90vh, 700px);
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
  }
}

@media (max-width: 430px) {
  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .brand__copy strong {
    font-size: 16px;
  }

  .topbar__actions {
    min-width: 0;
  }

  .button--compact {
    padding: 0 11px;
  }

  .station-card__actions {
    grid-template-columns: 1fr;
  }

  .station-metrics {
    grid-template-columns: 1fr;
  }

  .station-metric + .station-metric {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

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

  .auth-intro__orb,
  .panel-accent,
  .button--glow::after {
    animation: none !important;
    transition: none !important;
  }
}
