:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --text: #17202c;
  --muted: #657184;
  --line: #dde4ee;
  --accent: #0f766e;
  --accent-2: #2563eb;
  --danger: #b42318;
  --warning: #b7791f;
  --success: #12805c;
  --shadow: 0 18px 50px rgba(31, 41, 55, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

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

button {
  cursor: pointer;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background: #111827;
  color: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

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

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand span {
  color: #cbd5e1;
  font-size: 0.82rem;
  margin-top: 2px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-list a,
.sidebar-link {
  color: #d1d5db;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
}

.nav-list a:hover,
.nav-list a.is-active,
.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.sidebar-link {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
}

.workspace {
  padding: 28px;
  display: grid;
  gap: 22px;
  align-content: start;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

h2 {
  font-size: 1.1rem;
}

.connection-pill {
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  box-shadow: var(--shadow);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warning);
}

.connection-pill.is-online .dot {
  background: var(--success);
}

.connection-pill.is-offline .dot {
  background: var(--danger);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-panel,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric-panel {
  padding: 18px;
  min-height: 114px;
  display: grid;
  align-content: space-between;
}

.metric-panel span {
  color: var(--muted);
  font-size: 0.92rem;
}

.metric-panel strong {
  font-size: 2.1rem;
  line-height: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.dashboard-card h2 {
  color: #4f5661;
  font-size: 1.45rem;
  text-align: center;
}

.dashboard-value-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.dashboard-value-row strong {
  color: #555b64;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
}

.dashboard-value-row small {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
}

.dashboard-card > a,
.dashboard-value-row a,
.dashboard-foot {
  color: #555b64;
  text-decoration: none;
  font-weight: 700;
}

.dashboard-card > a,
.dashboard-foot {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.warning-card {
  background: #f8c346;
  border-color: #f8c346;
}

.warning-card h2,
.warning-card a,
.warning-card .dashboard-value-row strong {
  color: #3f3f3f;
}

.dashboard-icon {
  width: 70px;
  height: 70px;
  display: inline-block;
  border: 4px solid #4e9d8c;
  color: #4e9d8c;
  position: relative;
}

.users-icon {
  border-radius: 18px 18px 12px 12px;
}

.users-icon::before,
.users-icon::after {
  content: "";
  position: absolute;
  border: 4px solid currentColor;
  border-radius: 50%;
}

.users-icon::before {
  width: 28px;
  height: 28px;
  left: 17px;
  top: -19px;
  background: var(--surface);
}

.users-icon::after {
  width: 16px;
  height: 16px;
  right: -22px;
  top: -8px;
  background: var(--surface);
  box-shadow: -82px 0 0 -4px var(--surface), -82px 0 0 0 currentColor;
}

.charger-icon {
  border-radius: 8px;
}

.charger-icon::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 36px;
  right: -30px;
  top: 11px;
  border: 4px solid currentColor;
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.charger-icon::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 28px;
  left: 22px;
  top: 18px;
  transform: skew(-12deg);
  background: currentColor;
  clip-path: polygon(45% 0, 100% 0, 62% 42%, 100% 42%, 28% 100%, 47% 54%, 0 54%);
}

.transaction-icon {
  border: 0;
}

.transaction-icon::before,
.transaction-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  width: 64px;
  height: 4px;
  background: currentColor;
}

.transaction-icon::before {
  top: 22px;
  box-shadow: 0 26px 0 currentColor;
}

.transaction-icon::after {
  top: 12px;
  height: 24px;
  border-top: 4px solid currentColor;
  border-right: 4px solid currentColor;
  background: transparent;
  transform: rotate(45deg);
}

.energy-icon {
  border-radius: 999px 999px 14px 14px;
  border-color: #a8cf6b;
  color: #a8cf6b;
}

.energy-icon::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border-top: 4px solid currentColor;
  transform: rotate(20deg);
}

.revenue-icon {
  border-radius: 9px;
  border-color: #a8cf6b;
  color: #a8cf6b;
}

.revenue-icon::before {
  content: "";
  position: absolute;
  width: 44px;
  height: 24px;
  left: 10px;
  top: -20px;
  border: 4px solid currentColor;
  border-radius: 8px 8px 0 0;
}

.revenue-icon::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  right: -18px;
  bottom: -12px;
  border: 4px solid currentColor;
  border-radius: 50%;
  background: var(--surface);
}

.fault-icon {
  width: 78px;
  height: 68px;
  border: 0;
  color: #a8cf6b;
}

.fault-icon::before {
  content: "!";
  position: absolute;
  inset: 4px;
  display: grid;
  place-items: center;
  color: currentColor;
  font-size: 2rem;
  font-weight: 900;
  border: 4px solid currentColor;
  clip-path: polygon(50% 0, 100% 88%, 0 88%);
}

.map-panel {
  min-height: 520px;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 18px;
}

.map-stage {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(15, 118, 110, 0.06) 1px, transparent 1px),
    #f8fafc;
  background-size: 34px 34px;
}

.map-shape {
  position: absolute;
  left: 22%;
  top: 8%;
  width: 43%;
  height: 82%;
  background: #d8efe9;
  border: 1px solid #b7ddd4;
  clip-path: polygon(50% 0, 66% 8%, 73% 24%, 66% 37%, 75% 52%, 68% 69%, 58% 78%, 52% 100%, 39% 84%, 31% 68%, 22% 57%, 27% 42%, 19% 28%, 33% 14%);
}

.map-marker {
  position: absolute;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: var(--muted);
  color: #ffffff;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.22);
}

.map-marker.online {
  background: var(--success);
}

.map-marker.offline {
  background: var(--warning);
}

.map-marker.faulted {
  background: var(--danger);
}

.map-marker span {
  font-size: 0.72rem;
  font-weight: 900;
}

.map-location-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.map-location-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fbfcfe;
  display: grid;
  gap: 4px;
}

.map-location-list strong,
.map-location-list span,
.map-location-list small {
  overflow-wrap: anywhere;
}

.map-location-list span,
.map-location-list small {
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.panel {
  padding: 18px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ghost-button,
.primary-button {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0 14px;
}

.ghost-button {
  background: var(--surface);
  color: var(--text);
}

.ghost-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.primary-button {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  font-weight: 700;
}

.primary-button:hover {
  background: #0b615b;
}

.station-list {
  display: grid;
  gap: 12px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.segmented button {
  min-height: 38px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 0 11px;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.is-active {
  background: #e7f7f2;
  color: var(--accent);
  font-weight: 800;
}

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

.location-card,
.tariff-card,
.report-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.location-card {
  padding: 14px;
  display: grid;
  gap: 14px;
}

.location-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.location-card strong,
.location-card span {
  display: block;
}

.location-card header span:not(.status-badge) {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
}

.location-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.location-metrics span {
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.84rem;
  text-align: center;
}

.station-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.station-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
}

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

.station-title strong,
.station-title span {
  display: block;
}

.station-title strong {
  overflow-wrap: anywhere;
}

.station-title span {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 2px;
}

.station-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 14px 0;
}

.station-meta span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.station-card footer {
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.status-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  background: #eef2f7;
  color: var(--muted);
}

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

.status-badge.online {
  background: #e7f7f2;
  color: var(--success);
}

.status-badge.offline {
  background: #fff1f0;
  color: var(--danger);
}

.connector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding: 14px;
}

.connector {
  min-height: 98px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
  display: grid;
  gap: 6px;
}

.connector strong {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.connector span,
.connector small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.connector .available {
  color: var(--success);
}

.connector .charging {
  color: var(--accent-2);
}

.connector .faulted {
  color: var(--danger);
}

.connector .reserved,
.connector .unavailable,
.connector .unknown {
  color: var(--warning);
}

.empty-state {
  min-height: 210px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.command-form {
  display: grid;
  gap: 13px;
}

.management-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.management-form button {
  align-self: end;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 9px 10px;
}

textarea {
  resize: vertical;
  min-height: 150px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-field input {
  width: 18px;
  min-height: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.table-panel {
  overflow: hidden;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

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

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

td {
  font-size: 0.92rem;
}

.event-list {
  display: grid;
  gap: 8px;
  max-height: 440px;
  overflow: auto;
  padding-right: 2px;
}

.event-row {
  display: grid;
  grid-template-columns: 128px 120px 160px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.event-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.event-row span:first-child {
  color: var(--muted);
}

.event-kind {
  font-weight: 700;
  color: var(--accent);
}

.tag-status {
  display: inline-flex;
  min-width: 86px;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 8px;
  background: #eef2f7;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.78rem;
}

.tag-status.accepted {
  background: #e7f7f2;
  color: var(--success);
}

.tag-status.blocked {
  background: #fff1f0;
  color: var(--danger);
}

.tariff-card {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.tariff-card > span {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: #eef2ff;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
}

.tariff-card strong {
  font-size: 1.08rem;
}

.tariff-card p,
.tariff-card small {
  margin: 0;
  color: var(--muted);
}

.tariff-card .ghost-button {
  width: fit-content;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.row-actions button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 0 9px;
  font-size: 0.8rem;
}

.row-actions button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.report-grid {
  margin-bottom: 16px;
}

.report-card {
  min-height: 96px;
  padding: 16px;
  display: grid;
  align-content: space-between;
}

.report-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.report-card strong {
  font-size: 1.7rem;
}

.bar-list {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
}

.bar-row > span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.reservation-row {
  grid-template-columns: 70px 100px 150px minmax(0, 1fr);
}

.ocpp-link-box {
  display: grid;
  gap: 14px;
}

.ocpp-link-box input[readonly] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--accent);
  font-size: 0.88rem;
}

.ocpp-settings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ocpp-settings-grid div {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  display: grid;
  align-content: space-between;
  background: #fbfcfe;
}

.ocpp-settings-grid span,
.ocpp-settings-grid strong {
  overflow-wrap: anywhere;
}

.ocpp-settings-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ocpp-settings-grid strong {
  font-size: 0.95rem;
}

.compact-list {
  max-height: 240px;
}

.link-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  min-height: 52px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 84px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  text-align: left;
}

.link-row:hover {
  border-color: var(--accent);
}

.link-row span,
.link-row small {
  color: var(--muted);
}

.link-row strong {
  overflow-wrap: anywhere;
}

.simulator-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px;
  display: grid;
  gap: 18px;
}

.simulator-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}

.simulator-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.log-box {
  height: 520px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: #101828;
  color: #d7e1f1;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.brand {
  color: #f8fafc;
  text-decoration: none;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.brand-logo {
  width: 58px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #020403;
}

.brand strong {
  color: #9fd662;
  letter-spacing: 0.02em;
}

.dashboard-grid {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.dashboard-card {
  min-height: 188px;
  padding: 20px;
  border-color: rgba(15, 118, 110, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.99)),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 34%);
}

.dashboard-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-card-top span:not(.metric-icon) {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-card h2 {
  margin-top: 2px;
  color: var(--text);
  font-size: 1.02rem;
  text-align: left;
}

.metric-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
}

.metric-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metric-icon-green {
  background: #f0f9e8;
  color: #6ea82e;
}

.metric-icon-teal {
  background: #e6f7f3;
  color: #1f9d8b;
}

.metric-icon-blue {
  background: #eef4ff;
  color: #2563eb;
}

.metric-icon-lime {
  background: #f6fbeb;
  color: #91bd45;
}

.metric-icon-emerald {
  background: #e9fbf4;
  color: #12805c;
}

.metric-icon-warning {
  background: #fff7df;
  color: #b7791f;
}

.dashboard-value-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.dashboard-value-row strong {
  color: #111827;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: 0;
}

.dashboard-value-row small {
  color: var(--muted);
  font-size: 0.92rem;
}

.dashboard-card > a,
.dashboard-value-row a,
.dashboard-foot {
  color: var(--accent);
  font-size: 0.92rem;
}

.warning-card {
  background:
    linear-gradient(180deg, rgba(255, 252, 241, 0.98), rgba(255, 247, 223, 0.98)),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 40%);
  border-color: #f7d27b;
}

.warning-card h2,
.warning-card a,
.warning-card .dashboard-value-row strong {
  color: #432f0c;
}

.map-panel {
  min-height: 560px;
}

.map-stage {
  min-height: 500px;
  background:
    radial-gradient(circle at 78% 18%, rgba(37, 99, 235, 0.13), transparent 32%),
    linear-gradient(135deg, rgba(31, 157, 139, 0.16), rgba(239, 246, 255, 0.88));
}

.tunisia-map {
  position: absolute;
  left: 7%;
  top: 4%;
  width: 58%;
  height: 92%;
  filter: drop-shadow(0 24px 34px rgba(15, 23, 42, 0.16));
}

.tunisia-glow {
  fill: rgba(255, 255, 255, 0.72);
  transform: translate(8px, 6px);
}

.tunisia-land {
  fill: #ccebdc;
  stroke: #1f9d8b;
  stroke-width: 4;
}

.tunisia-coast {
  fill: none;
  stroke: rgba(15, 118, 110, 0.34);
  stroke-width: 5;
  stroke-linecap: round;
}

.tunisia-map circle {
  fill: #ffffff;
  stroke: #1f9d8b;
  stroke-width: 3;
}

.map-markers-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.map-marker {
  width: 42px;
  height: 42px;
  border-width: 4px;
}

.map-marker::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: inherit;
  border: 1px solid currentColor;
  opacity: 0.22;
}

.map-label {
  position: absolute;
  z-index: 3;
  color: #31515f;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 4px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.map-label-tunis {
  left: 55%;
  top: 12%;
}

.map-label-sousse {
  left: 59%;
  top: 33%;
}

.map-label-sfax {
  left: 57%;
  top: 55%;
}

.map-label-djerba {
  left: 55%;
  top: 78%;
}

.map-location-list article {
  border-color: rgba(15, 118, 110, 0.14);
  background: #ffffff;
}

.location-card {
  position: relative;
  overflow: hidden;
}

.location-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(#9fd662, #1f9d8b);
}

.location-card header,
.location-metrics,
.location-edit-button {
  position: relative;
  z-index: 1;
}

.location-edit-button {
  justify-self: start;
}

input[readonly] {
  background: var(--surface-2);
  color: var(--muted);
}

.is-hidden {
  display: none !important;
}

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

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-list {
    display: flex;
    flex-wrap: wrap;
  }

  .sidebar-link {
    margin-top: 0;
  }

  .metric-grid,
  .dashboard-grid,
  .content-grid,
  .map-layout,
  .simulator-grid {
    grid-template-columns: 1fr 1fr;
  }

  .content-grid {
    align-items: stretch;
  }
}

@media (max-width: 760px) {
  .workspace,
  .simulator-shell {
    padding: 18px;
  }

  .topbar,
  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid,
  .dashboard-grid,
  .content-grid,
  .map-layout,
  .field-row,
  .toolbar,
  .station-meta,
  .management-form,
  .ocpp-settings-grid,
  .link-row,
  .simulator-grid,
  .simulator-actions {
    grid-template-columns: 1fr;
  }

  .segmented {
    grid-auto-flow: row;
  }

  .segmented button {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .segmented button:last-child {
    border-bottom: 0;
  }

  .event-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .location-metrics,
  .bar-row {
    grid-template-columns: 1fr;
  }

  .connection-pill {
    width: 100%;
  }

  .dashboard-value-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .dashboard-value-row small {
    grid-column: 1 / -1;
  }

  .map-stage {
    min-height: 340px;
  }
}
