﻿:root {
  color-scheme: light;
  --bg: #eef3f8;
  --bg-soft: #f8fbfd;
  --card: rgba(255, 255, 255, 0.92);
  --card-solid: #ffffff;
  --text: #102033;
  --muted: #637487;
  --line: #d8e3ee;
  --accent: #0b3a78;
  --accent-2: #082f6f;
  --accent-soft: #eaf2ff;
  --brand-yellow: #f6c800;
  --brand-yellow-2: #ffd84d;
  --brand-blue: #082f6f;
  --sidebar-bg: #0f172a;
  --sidebar-soft: #172036;
  --sidebar-line: rgba(148, 163, 184, 0.18);
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  --radius: 20px;
}

* {
  box-sizing: border-box;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(246, 200, 0, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(8, 47, 111, 0.12), transparent 26%),
    linear-gradient(180deg, #f8fbfd 0%, var(--bg) 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(16, 32, 51, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 32, 51, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 88%);
}

.container {
  width: min(1400px, calc(100% - 24px));
  margin: 0 auto;
  padding: 20px 0 32px;
}

.card {
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(216, 227, 238, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.hidden {
  display: none !important;
}

.login-card {
  max-width: 1120px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 0.92fr);
  gap: 22px;
  align-items: stretch;
  overflow: hidden;
  position: relative;
}

.login-card::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(246, 200, 0, 0.24), transparent 64%);
  pointer-events: none;
}

.login-copy {
  position: relative;
  z-index: 1;
}

.brand-stack {
  margin-bottom: 18px;
}

.brand-name {
  display: inline-block;
  color: var(--brand-yellow);
  letter-spacing: -0.04em;
  text-shadow:
    0 2px 0 var(--brand-blue),
    0 10px 28px rgba(8, 47, 111, 0.22);
}

.login-card .eyebrow {
  color: var(--brand-blue);
}

.login-card button {
  background: linear-gradient(180deg, var(--brand-blue), #06275e);
  box-shadow: 0 12px 24px rgba(8, 47, 111, 0.18);
}

.login-card input:focus {
  border-color: rgba(246, 200, 0, 0.75);
  box-shadow: 0 0 0 4px rgba(246, 200, 0, 0.18);
}

.brand-mark {
  color: var(--brand-yellow) !important;
  letter-spacing: 0.24em;
  text-shadow: 0 0 18px rgba(246, 200, 0, 0.24);
}

.login-showcase {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  border: 1px solid rgba(8, 47, 111, 0.12);
  background:
    linear-gradient(135deg, rgba(8, 47, 111, 0.96), rgba(15, 23, 42, 0.96)),
    radial-gradient(circle at 20% 10%, rgba(246, 200, 0, 0.34), transparent 34%);
  color: #eaf4ff;
  padding: 18px;
  box-shadow: 0 22px 52px rgba(8, 47, 111, 0.22);
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.login-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 88%);
  pointer-events: none;
}

.showcase-top,
.trend-head,
.showcase-stats {
  position: relative;
  z-index: 1;
}

.showcase-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #cde7ff;
}

.showcase-top strong {
  margin-left: auto;
  color: var(--brand-yellow);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand-yellow);
  box-shadow: 0 0 0 0 rgba(246, 200, 0, 0.55);
  animation: livePulse 1.5s infinite;
}

.showcase-gauges {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-gauge {
  min-height: 116px;
  border-radius: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  display: grid;
  align-content: end;
  position: relative;
  overflow: hidden;
}

.mini-gauge::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 42px;
  height: 58px;
  border: 13px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
  border-radius: 90px 90px 0 0;
}

.mini-gauge::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: var(--brand-yellow);
  transform-origin: left center;
  animation: needleMove 3.2s ease-in-out infinite;
}

.gauge-hum::after {
  animation-delay: -1.2s;
}

.mini-gauge span {
  color: #b7d5f5;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mini-gauge strong {
  color: #fff;
  font-size: 1.35rem;
}

.trend-card {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.trend-head {
  display: flex;
  justify-content: space-between;
  color: #cde7ff;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.trend-head strong {
  color: var(--brand-yellow);
}

.promo-trend {
  width: 100%;
  height: 150px;
  display: block;
}

.trend-fill {
  fill: url(#promoTrendFill);
  animation: trendGlow 3.2s ease-in-out infinite;
}

.trend-line {
  fill: none;
  stroke: var(--brand-yellow);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  animation: drawTrend 3.6s ease-in-out infinite;
}

.trend-point {
  fill: #ffffff;
  opacity: 0;
  animation: pointPop 3.6s ease-in-out infinite;
}

.trend-point.p2 {
  animation-delay: 0.35s;
}

.trend-point.p3 {
  animation-delay: 0.7s;
}

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

.showcase-stats div {
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.showcase-stats span {
  display: block;
  color: #b7d5f5;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.showcase-stats strong {
  color: #fff;
  font-size: 1.1rem;
}

@keyframes livePulse {
  70% { box-shadow: 0 0 0 12px rgba(246, 200, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(246, 200, 0, 0); }
}

@keyframes needleMove {
  0%, 100% { transform: rotate(205deg); }
  50% { transform: rotate(312deg); }
}

@keyframes drawTrend {
  0% { stroke-dashoffset: 760; opacity: 0.45; }
  42%, 82% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -760; opacity: 0.35; }
}

@keyframes pointPop {
  0%, 30% { opacity: 0; transform: scale(0.6); }
  48%, 78% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.6); }
}

@keyframes trendGlow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.1rem;
}

.lead {
  margin: 12px 0 0;
  max-width: 66ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.hint,
.small {
  color: var(--muted);
}

.hint {
  font-size: 0.9rem;
  line-height: 1.5;
}

.small {
  font-size: 0.92rem;
}

.mono,
code,
.code-box {
  font-family: "IBM Plex Mono", "Courier New", monospace;
}

code {
  background: rgba(15, 23, 42, 0.05);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.92em;
}

.app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 12px;
}

.sidebar {
  position: sticky;
  top: 16px;
  background: linear-gradient(180deg, var(--sidebar-bg), #111827 100%);
  color: #e5eef8;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.18);
  padding: 18px;
}

.sidebar .eyebrow {
  color: #7dd3fc;
}

.sidebar h2 {
  color: #fff;
  margin-bottom: 6px;
}

.sidebar .small,
.sidebar .hint,
.sidebar .mono {
  color: #cbd5e1;
}

.sidebar-brand {
  margin-bottom: 18px;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
  margin: 16px 0 18px;
}

.nav-btn {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  color: #e5eef8;
  border: 1px solid var(--sidebar-line);
  padding: 12px 14px;
  border-radius: 14px;
}

.nav-btn:hover {
  background: rgba(148, 163, 184, 0.08);
}

.nav-btn.active {
  background: linear-gradient(180deg, #0f766e, #0b5c56);
  border-color: rgba(45, 212, 191, 0.32);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.24);
}

.sidebar-logout {
  width: 100%;
  background: rgba(148, 163, 184, 0.16);
}

.content {
  display: grid;
  gap: 16px;
}

.view {
  display: grid;
  gap: 16px;
}

.view-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.dashboard-toolbar,
.examples-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 240px) auto minmax(180px, 240px) auto;
  gap: 10px;
  align-items: end;
}

.code-toolbar {
  grid-template-columns: minmax(260px, 1fr) auto;
}

.compact-field {
  min-width: 180px;
}

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

.login-grid {
  max-width: 560px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span {
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.field-inline {
  align-self: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.field-wide {
  grid-column: 1 / -1;
}

input,
select,
button {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-size: 0.96rem;
  background: #fff;
  color: var(--text);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background-color 0.16s ease;
}

input::placeholder {
  color: #9caab8;
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

button {
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  padding-inline: 16px;
}

button:hover {
  transform: translateY(-1px);
}

button.secondary {
  background: #334155;
}

button.secondary:hover {
  background: #273244;
}

button.danger {
  background: #b42318;
}

button.danger:hover {
  background: #971d14;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  border: 1px solid rgba(15, 118, 110, 0.12);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.status-pill.online,
.status-pill.enabled {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}

.status-pill.offline {
  color: #64748b;
  background: rgba(100, 116, 139, 0.12);
}

.status-pill.disabled {
  color: #b42318;
  background: rgba(180, 35, 24, 0.12);
}

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

.dashboard-stage {
  display: grid;
  gap: 16px;
  align-items: start;
}

.dashboard-details {
  margin-top: 2px;
}

.dashboard-actions {
  justify-content: flex-start;
}

.technical-panel {
  border: 1px solid rgba(216, 227, 238, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px 14px;
}

.technical-panel summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--accent-2);
  letter-spacing: 0.01em;
  list-style: none;
}

.technical-panel summary::-webkit-details-marker {
  display: none;
}

.technical-panel[open] summary {
  margin-bottom: 12px;
}

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

.dashboard-details {
  margin-top: 2px;
}

.dashboard-actions {
  justify-content: flex-start;
}

.gauge-panel,
.history-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(247, 250, 252, 0.95));
  border: 1px solid rgba(216, 227, 238, 0.9);
  border-radius: 18px;
  padding: 14px;
}

.history-panel {
  min-height: 360px;
  overflow: hidden;
}

.gauge-panel {
  background:
    radial-gradient(circle at 50% 18%, rgba(34, 197, 94, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.92));
}

#historyChart {
  width: 100% !important;
  height: 290px !important;
}

.history-point-info {
  margin: 4px 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(216, 227, 238, 0.9);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 0.9rem;
}

.multi-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
}

.variable-dashboard-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 252, 0.95));
  border: 1px solid rgba(216, 227, 238, 0.9);
  border-radius: 18px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.variable-dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.variable-dashboard-title {
  margin: 0;
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.variable-dashboard-value {
  font-weight: 800;
  color: var(--accent-2);
}

.control-widget {
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: rgba(240, 253, 250, 0.72);
  border-radius: 16px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.control-widget__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.control-widget__head code {
  text-transform: none;
  letter-spacing: 0;
  color: #334155;
}

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

.control-inline {
  grid-template-columns: minmax(0, 1fr) auto;
}

.control-toggle.active-control {
  background: linear-gradient(180deg, #0f766e, #0b5c56);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.control-toggle.secondary.active-control {
  background: #64748b;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.16);
}

.command-pill {
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-2);
}

.command-preview {
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: rgba(240, 253, 250, 0.78);
  border-radius: 14px;
  padding: 12px;
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.45;
}

.variable-gauge-canvas {
  width: 100%;
  height: 190px;
  max-height: 190px;
}

.variable-history-canvas {
  width: 100%;
  height: 220px;
  max-height: 220px;
  cursor: zoom-in;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 16px;
}

.modal-content {
  width: min(1200px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.28);
  display: grid;
  gap: 10px;
}

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

.modal-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  align-items: end;
}

.modal-chart-wrap {
  height: min(65vh, 560px);
}

#modalHistoryChart {
  width: 100% !important;
  height: 100% !important;
}

.history-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
  align-items: end;
}

.history-tools > * {
  min-width: 0;
}

.history-tools button {
  min-height: 40px;
  width: 100%;
  white-space: normal;
  line-height: 1.15;
}

canvas {
  max-width: 100%;
}

.center {
  text-align: center;
  margin: 10px 0 0;
  font-weight: 800;
}

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

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

.summary-item {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(216, 227, 238, 0.9);
  min-height: 78px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-item span {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.summary-item code {
  display: block;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
  font-size: 0.84rem;
}

.summary-item strong {
  font-size: 1.18rem;
  line-height: 1.3;
  word-break: break-word;
}

.dashboard-summary .summary-item {
  min-height: 92px;
}

.dashboard-summary .summary-item strong {
  font-size: 1.4rem;
}

.variable-list,
.user-list,
.device-list {
  display: grid;
  gap: 12px;
}

.variable-row,
.user-row {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.variable-row {
  display: grid;
  gap: 10px;
}

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

.variable-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.variable-title strong,
.user-row strong {
  font-size: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #eaf3ff;
  color: #2b5b9a;
}

.pill.alt {
  background: #eef8f3;
  color: #0f6d52;
}

.pill.muted {
  background: #eef2f7;
  color: #556275;
}

.variable-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.meta-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(216, 227, 238, 0.85);
}

.meta-item span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.variable-actions,
.user-row .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.user-row {
  display: grid;
  gap: 8px;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 8px 0 4px;
}

.code-box {
  background: #0c1320;
  color: #dbe6f3;
  border: 1px solid #1f2d40;
  border-radius: 16px;
  padding: 16px;
  overflow: auto;
  max-height: 420px;
  line-height: 1.45;
  font-size: 0.85rem;
  margin: 0;
  white-space: pre;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.data-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid rgba(216, 227, 238, 0.9);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent-2);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.data-table td code {
  white-space: nowrap;
  word-break: normal;
}

.data-table tbody tr:hover {
  background: rgba(14, 165, 233, 0.06);
}

.sidebar-nav .admin-only.hidden {
  display: none !important;
}

.view.hidden {
  display: none !important;
}

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

  .login-card {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

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

  .dashboard-toolbar,
  .examples-toolbar {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .container {
    width: min(100% - 16px, 1400px);
    padding-top: 12px;
  }

  .card {
    padding: 16px;
    border-radius: 18px;
  }

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

  .showcase-gauges,
  .showcase-stats {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

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

  .dashboard-toolbar,
  .examples-toolbar {
    align-items: stretch;
  }

  .compact-field,
  .dashboard-toolbar button,
  .examples-toolbar button {
    width: 100%;
  }

  .dashboard-toolbar {
    grid-template-columns: 1fr;
  }

  .dashboard-summary {
    grid-template-columns: 1fr;
  }

  .dashboard-toolbar .field,
  .examples-toolbar .field {
    width: 100%;
  }

  .variable-row__header {
    flex-direction: column;
  }

  .control-inline,
  .control-actions,
  .code-toolbar {
    grid-template-columns: 1fr;
  }
}
