:root {
  color-scheme: light;
  --bg: #eef5fb;
  --panel: #ffffff;
  --panel-soft: #f7fbff;
  --text: #0e2b45;
  --muted: #678095;
  --line: #dbe8f2;
  --blue: #0c7cd5;
  --blue-dark: #07599d;
  --green: #14a66d;
  --red: #dd3b4b;
  --shadow: 0 24px 70px rgba(15, 63, 105, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: radial-gradient(circle at 16% 12%, #d6efff 0, transparent 30%),
    linear-gradient(135deg, #edf7ff 0%, #f8fbff 50%, #e9f5ff 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

input,
select,
button {
  font: inherit;
}

a {
  color: inherit;
}

.public-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-wrap {
  width: min(1040px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-hero {
  padding: 54px;
  color: #fff;
  background:
    radial-gradient(circle at 76% 20%, rgba(91, 194, 255, 0.95), transparent 26%),
    linear-gradient(155deg, #0357a6 0%, #0588df 48%, #49c7f3 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  isolation: isolate;
}

.login-hero::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 360px;
  height: 360px;
  border: 48px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  z-index: -1;
}

.hero-logo,
.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-dot {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: linear-gradient(135deg, #ffffff, #9ce8ff);
  box-shadow: inset 0 -8px 18px rgba(6, 111, 185, 0.18);
}

.hero-logo strong {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo img {
  display: block;
  height: auto;
  object-fit: contain;
}

.brand-logo .logo-dark,
.brand-logo .logo-white {
  display: none;
}

html[data-theme="dark"] .brand-logo .logo-light {
  display: none;
}

html[data-theme="dark"] .brand-logo .logo-dark {
  display: block;
}

html[data-theme="light"] .brand-logo .logo-light {
  display: block;
}

html[data-theme="light"] .brand-logo .logo-dark {
  display: none;
}

.login-logo img {
  width: min(340px, 72vw);
  filter: drop-shadow(0 12px 22px rgba(0, 22, 70, 0.18));
}

.login-hero .brand-logo .logo-light,
.login-hero .brand-logo .logo-dark {
  display: none !important;
}

.login-hero .brand-logo .logo-white {
  display: block !important;
}

.default-logo img {
  width: 178px;
}

.login-hero h1 {
  max-width: 480px;
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.login-hero p {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.55;
}

.login-hero .login-tagline {
  margin: 28px 0 auto;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pills span {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.login-card {
  padding: 62px 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-kicker,
.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-card h2,
.page-head h1,
.panel h1,
.panel h2 {
  margin: 8px 0 10px;
  letter-spacing: -0.045em;
}

.login-card h2 {
  font-size: 36px;
}

.muted {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.5;
}

.muted-small {
  color: var(--muted);
  font-size: 13px;
}

label {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  color: #24435d;
  font-size: 14px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--text);
  outline: none;
  padding: 10px 14px;
  transition: 160ms ease;
}

input:focus,
select:focus {
  border-color: #79c5f7;
  box-shadow: 0 0 0 4px rgba(12, 124, 213, 0.12);
}

button,
.primary-btn,
.primary-link {
  border: 0;
  border-radius: 15px;
  padding: 12px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #16b7ed);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(12, 124, 213, 0.22);
}

button:hover,
.primary-btn:hover,
.primary-link:hover {
  background: linear-gradient(135deg, var(--blue-dark), #0aa6db);
}

.form-error,
.flash {
  margin: 0 0 18px;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff1f3;
  color: #9c2031;
}

.flash {
  background: #eaf8ff;
  color: #0c5f94;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px;
  border-right: 1px solid rgba(12, 124, 213, 0.1);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
}

.brand-mark {
  margin: 0 0 38px;
}

.brand-dot {
  background: linear-gradient(135deg, var(--blue), #4bd2f4);
}

.brand-title {
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
}

.sidebar nav {
  display: grid;
  gap: 8px;
}

.sidebar nav a,
.logout-form button {
  display: block;
  width: 100%;
  border-radius: 14px;
  padding: 12px 14px;
  color: #264760;
  background: transparent;
  text-align: left;
  text-decoration: none;
  box-shadow: none;
}

.sidebar nav a.active,
.sidebar nav a:hover {
  color: var(--blue-dark);
  background: #e7f5ff;
}

.logout-form {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 24px;
}

.main {
  padding: 34px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin: 0 0 24px;
}

.page-head h1 {
  font-size: clamp(30px, 4vw, 44px);
}

.user-chip,
.role-badge,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
}

.pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.pool-card,
.panel,
.empty-state {
  border: 1px solid rgba(12, 124, 213, 0.11);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(15, 63, 105, 0.09);
}

.pool-card {
  padding: 22px;
}

.pool-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
}

.pool-card h2 {
  margin: 2px 0 0;
  letter-spacing: -0.04em;
}

.status.ok {
  color: #087349;
  background: #e8fff5;
  border-color: #b7f0d8;
}

.status.danger {
  color: #a12131;
  background: #fff0f2;
  border-color: #ffd0d7;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-grid div {
  border-radius: 18px;
  background: var(--panel-soft);
  padding: 14px;
}

.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.pool-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.panel,
.empty-state {
  padding: 24px;
  margin: 0 0 20px;
}

.panel.narrow {
  max-width: 680px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  align-items: end;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-form select {
  min-width: 190px;
}

.inline-form button {
  min-height: 42px;
  padding: 9px 12px;
  box-shadow: none;
}

@media (max-width: 820px) {
  .login-wrap,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .login-hero {
    min-height: 360px;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .logout-form {
    position: static;
    margin-top: 20px;
  }

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

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .public-shell {
    display: block;
    min-height: 100dvh;
    width: 100%;
    padding: 0;
  }

  .login-wrap {
    width: 100%;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    overflow: hidden;
  }

  .login-hero {
    min-height: 360px;
    padding: 38px 28px 34px;
  }

  .login-hero::after {
    inset: -24px -110px auto auto;
    width: 360px;
    height: 360px;
    border-width: 48px;
  }

  .login-logo img {
    width: min(100%, 340px);
  }

  .login-hero .login-tagline {
    max-width: 300px;
    margin-top: 32px;
    font-size: 24px;
  }

  .hero-pills {
    gap: 8px;
  }

  .hero-pills span {
    padding: 8px 12px;
    font-size: 14px;
  }

  .login-card {
    width: 100%;
    min-width: 0;
    padding: 38px 28px 34px;
  }

  .login-card h2 {
    font-size: 32px;
  }

  input,
  select {
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .public-shell {
    padding: 0;
  }

  .login-wrap {
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .login-hero {
    min-height: 330px;
    padding: 34px 24px 30px;
  }

  .login-logo img {
    width: 100%;
  }

  .login-hero .login-tagline {
    font-size: 22px;
  }

  .login-card {
    padding: 34px 24px 32px;
  }

  .login-card h2 {
    font-size: 30px;
  }
}

/* Operator dashboard */

.operator-body {
  --op-bg: #15161b;
  --op-sidebar: #1d1d23;
  --op-main: #17181d;
  --op-panel: #28292f;
  --op-panel-2: #22232a;
  --op-card: #292a30;
  --op-card-soft: #30323a;
  --op-text: #f5f6fb;
  --op-muted: #92939d;
  --op-faint: #696b74;
  --op-line: rgba(255, 255, 255, 0.065);
  --op-blue: #3d5afe;
  --op-blue-2: #5271ff;
  --op-pink: #ef5d9d;
  --op-yellow: #ffd858;
  --op-green: #1aff73;
  --op-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
  min-height: 100vh;
  margin: 0;
  background: var(--op-bg);
  color: var(--op-text);
}

html[data-theme="light"] .operator-body {
  --op-bg: #edf3fb;
  --op-sidebar: #ffffff;
  --op-main: #f4f7fb;
  --op-panel: #ffffff;
  --op-panel-2: #f7f9fd;
  --op-card: #ffffff;
  --op-card-soft: #eef4ff;
  --op-text: #162033;
  --op-muted: #657087;
  --op-faint: #8a94a8;
  --op-line: rgba(31, 52, 82, 0.09);
  --op-shadow: 0 18px 42px rgba(30, 63, 103, 0.12);
}

.operator-body a {
  text-decoration: none;
}

.operator-shell {
  display: grid;
  grid-template-columns: 280px minmax(560px, 1fr) 292px;
  min-height: 100vh;
}

.operator-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--op-line);
  background: var(--op-sidebar);
  padding: 26px 20px 18px;
}

.operator-logo {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  min-height: 46px;
}

.operator-logo-img img {
  width: 190px;
}

.logo-cube {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #7895ff, #3156ff);
  color: #dbe4ff;
  box-shadow: 0 12px 22px rgba(61, 90, 254, 0.35);
}

.operator-clock {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--op-text);
  font-size: 14px;
}

.operator-clock span {
  color: var(--op-blue-2);
}

.pool-list-title {
  margin-bottom: 12px;
  color: var(--op-muted);
  font-size: 13px;
}

.pool-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.pool-list::-webkit-scrollbar,
.events-list::-webkit-scrollbar {
  width: 4px;
}

.pool-list::-webkit-scrollbar-thumb,
.events-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--op-blue);
}

.pool-list-item {
  display: grid;
  grid-template-columns: 36px 1fr 14px;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  border-radius: 18px;
  padding: 9px 12px;
  color: var(--op-text);
  transition: 0.16s ease;
}

.pool-list-item:hover,
.pool-list-item.active {
  background: var(--op-blue);
  box-shadow: 0 16px 30px rgba(61, 90, 254, 0.26);
}

.pool-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(61, 90, 254, 0.18);
  color: #6d85ff;
}

.pool-icon.alarm {
  background: rgba(239, 93, 157, 0.2);
  color: var(--op-pink);
}

.pool-list-item.active .pool-icon {
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
}

.pool-list-item small,
.pool-list-item em {
  display: block;
  color: var(--op-muted);
  font-size: 11px;
  font-style: normal;
}

.pool-list-item.active small,
.pool-list-item.active em {
  color: rgba(255, 255, 255, 0.74);
}

.pool-list-item strong {
  display: block;
  margin: 2px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

.pool-list-empty {
  color: var(--op-muted);
  padding: 18px;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 18px;
}

.theme-caption {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.theme-switch {
  display: inline-flex;
  gap: 3px;
  border-radius: 8px;
  background: var(--op-card-soft);
  padding: 3px;
}

.theme-switch button {
  min-height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--op-muted);
  box-shadow: none;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

html[data-theme="dark"] [data-theme-choice="dark"],
html[data-theme="light"] [data-theme-choice="light"] {
  background: var(--op-blue);
  color: #fff;
}

.operator-logout {
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--op-line);
  background: transparent;
  color: var(--op-muted);
  box-shadow: none;
}

.operator-main {
  min-width: 0;
  background: var(--op-main);
  padding: 22px;
}

.operator-topbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: start;
  gap: 24px;
  margin-bottom: 20px;
}

.operator-tabs {
  display: flex;
  align-items: center;
  gap: 26px;
}

.operator-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--op-muted);
  font-size: 18px;
  font-weight: 800;
}

.operator-tab span {
  color: inherit;
  font-size: 19px;
}

.operator-tab.active {
  color: var(--op-blue-2);
}

.operator-sync {
  display: grid;
  gap: 6px;
  color: var(--op-muted);
  font-size: 12px;
  text-align: right;
}

.operator-sync strong {
  color: var(--op-text);
  margin-left: 8px;
}

.operator-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.operator-user .avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff, #a9d7ff);
  color: #172033;
  font-weight: 900;
}

.operator-user span {
  display: block;
  color: var(--op-muted);
  font-size: 12px;
}

.operator-user strong {
  display: block;
  color: var(--op-text);
  font-size: 14px;
}

.operator-admin-links {
  display: flex;
  gap: 8px;
}

.operator-admin-links a {
  border: 1px solid var(--op-line);
  border-radius: 10px;
  color: var(--op-muted);
  padding: 6px 9px;
  font-size: 12px;
}

.operator-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.setting-card {
  min-height: 150px;
  border: 1px solid var(--op-line);
  border-radius: 14px;
  background: var(--op-card);
  box-shadow: var(--op-shadow);
  padding: 16px;
}

.setting-card.wide {
  grid-column: span 2;
}

.setting-card header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.setting-card header span {
  color: #fff;
  opacity: 0.92;
}

.setting-card h3 {
  flex: 1;
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.setting-card header i {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  border: 1px solid var(--op-pink);
  color: var(--op-pink);
  font-size: 11px;
  font-style: normal;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 8px 0;
  color: var(--op-muted);
  font-size: 14px;
}

.setting-row strong {
  color: var(--op-text);
  font-weight: 700;
  text-align: right;
}

.attraction-grid .setting-card {
  min-height: 132px;
}

.history-panel {
  min-height: calc(100vh - 120px);
  border: 1px solid var(--op-line);
  border-radius: 14px;
  background: var(--op-card);
  box-shadow: var(--op-shadow);
  padding: 22px 20px;
}

.history-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.history-head h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.history-head p {
  margin: 0;
  color: var(--op-muted);
  font-size: 13px;
}

.history-head a {
  color: var(--op-blue-2);
  font-size: 13px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 22px 0 20px;
  color: var(--op-muted);
  font-size: 12px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend b {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--c);
}

.chart-wrap {
  overflow-x: auto;
}

.history-svg {
  width: 100%;
  min-width: 980px;
  height: auto;
}

.history-svg rect:first-child {
  fill: transparent;
}

.history-svg .grid line {
  stroke: var(--op-line);
  stroke-width: 1;
}

.history-svg .line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.history-svg .chlorine {
  stroke: #1aff73;
}

.history-svg .ph {
  stroke: #24d4ff;
}

.history-svg .temp {
  stroke: #ff2ebc;
}

.chart-label,
.chart-value,
.time-label {
  fill: var(--op-text);
  font-size: 13px;
}

.chart-value,
.time-label {
  fill: var(--op-muted);
}

.status-line {
  stroke-width: 3;
  stroke-linecap: round;
}

.status-line.pump {
  stroke: #ff4d2e;
}

.status-line.alarm {
  stroke: #3d7cff;
}

.status-line.filter {
  stroke: #ff9f24;
}

.cursor-line {
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1;
  stroke-dasharray: 9 9;
}

html[data-theme="light"] .cursor-line {
  stroke: rgba(31, 52, 82, 0.45);
}

.cursor-dot {
  fill: #1aff73;
}

.tooltip rect {
  fill: var(--op-panel-2);
  stroke: var(--op-line);
}

.tooltip text {
  fill: var(--op-text);
  font-size: 13px;
}

.operator-right {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-left: 1px solid var(--op-line);
  background: var(--op-bg);
  padding: 76px 14px 20px;
}

.events-panel,
.map-card {
  border: 1px solid var(--op-line);
  border-radius: 16px;
  background: var(--op-card);
  box-shadow: var(--op-shadow);
}

.events-panel {
  min-height: 450px;
  padding: 18px 16px 12px;
}

.events-panel > header > div {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.events-panel nav {
  display: flex;
  gap: 22px;
  margin-bottom: 14px;
  color: var(--op-muted);
  font-size: 14px;
}

.events-panel nav .active {
  color: var(--op-blue-2);
}

.events-list {
  display: grid;
  gap: 12px;
  max-height: 525px;
  overflow: auto;
  padding-right: 3px;
}

.event-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  border-radius: 14px;
  background: var(--op-panel);
  padding: 14px 12px;
}

.event-item > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.event-item.alarm > span {
  background: var(--op-pink);
}

.event-item.warn > span {
  background: #f3bd45;
}

.event-item.info > span {
  background: #8d65e8;
}

.event-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.event-item time {
  color: var(--op-faint);
  font-size: 12px;
}

.event-item p {
  margin: 0;
  color: var(--op-text);
  font-size: 13px;
  line-height: 1.35;
}

.event-actions {
  display: grid;
  grid-template-columns: 1fr 38px 38px;
  gap: 8px;
  margin-top: 12px;
}

.event-actions button {
  min-height: 38px;
  border: 0;
  border-radius: 14px;
  background: var(--op-blue);
  color: #fff;
  box-shadow: none;
  padding: 8px;
  font-size: 13px;
  font-weight: 800;
}

.map-card {
  flex: 1;
  min-height: 180px;
  overflow: hidden;
}

.fake-map {
  position: relative;
  height: 100%;
  min-height: 210px;
  background:
    radial-gradient(circle at 54% 55%, rgba(61, 90, 254, 0.7) 0 4px, transparent 5px),
    linear-gradient(135deg, transparent 0 18%, rgba(61, 90, 254, 0.22) 18% 19%, transparent 19% 45%, rgba(36, 212, 255, 0.18) 45% 46%, transparent 46%),
    linear-gradient(20deg, rgba(80, 150, 96, 0.34), transparent 34%),
    #1d2533;
}

html[data-theme="light"] .fake-map {
  background:
    radial-gradient(circle at 54% 55%, rgba(61, 90, 254, 0.7) 0 4px, transparent 5px),
    linear-gradient(135deg, transparent 0 18%, rgba(61, 90, 254, 0.22) 18% 19%, transparent 19% 45%, rgba(36, 212, 255, 0.2) 45% 46%, transparent 46%),
    linear-gradient(20deg, rgba(80, 150, 96, 0.22), transparent 34%),
    #dbe6f4;
}

.fake-map span,
.fake-map b {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
}

.fake-map span {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(61, 90, 254, 0.24);
}

.fake-map b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--op-blue);
  color: #fff;
}

.operator-empty {
  border-radius: 18px;
  background: var(--op-card);
  padding: 34px;
}

@media (max-width: 1080px) {
  .operator-shell {
    grid-template-columns: 280px 1fr;
  }

  .operator-right {
    grid-column: 1 / -1;
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    padding: 20px;
  }
}

@media (max-width: 900px) {
  .operator-shell,
  .operator-right {
    grid-template-columns: 1fr;
  }

  .operator-sidebar {
    position: static;
    height: auto;
  }

  .operator-topbar {
    grid-template-columns: 1fr;
  }

  .operator-cards {
    grid-template-columns: 1fr;
  }

  .setting-card.wide {
    grid-column: span 1;
  }
}
