:root {
  color-scheme: dark;
  --bg: #090b0e;
  --bg-soft: #0f1216;
  --panel: #14181d;
  --panel-strong: #1a2026;
  --panel-hover: #20272e;
  --line: #2b333c;
  --line-soft: rgba(205, 222, 233, 0.11);
  --text: #f5f7f8;
  --muted: #929da6;
  --accent: #45e5c3;
  --accent-strong: #27caa9;
  --accent-faint: rgba(69, 229, 195, 0.10);
  --blue: #6bb5ff;
  --amber: #ffc45f;
  --red: #ff7770;
  --purple: #ac99ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.30);
  --radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Inter, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 84% -15%, rgba(69, 229, 195, 0.07), transparent 34rem),
    linear-gradient(180deg, #0b0e11 0%, var(--bg) 42rem),
    var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

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

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.loading-screen,
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.loading-mark {
  display: grid;
  gap: 18px;
  justify-items: center;
  color: var(--muted);
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.login-panel {
  width: min(1040px, 100%);
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(9, 23, 34, 0.94);
  box-shadow: var(--shadow);
}

.login-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(43, 222, 192, 0.10), transparent 42%),
    linear-gradient(20deg, #102a38, #081722 68%);
}

.login-story::after {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  right: -145px;
  bottom: -150px;
  border: 58px solid rgba(43, 222, 192, 0.07);
  border-radius: 50%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--accent), #0ea58e);
  color: #03261f;
  font-size: 21px;
  font-weight: 900;
  box-shadow: 0 9px 30px rgba(43, 222, 192, 0.2);
}

.brand-word {
  display: block;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.brand-subtitle {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.login-copy {
  position: relative;
  z-index: 1;
  max-width: 470px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.login-copy h1 {
  margin: 16px 0 14px;
  max-width: 440px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.01;
  letter-spacing: -0.05em;
}

.login-copy p {
  max-width: 410px;
  margin: 0;
  color: #b9ccd5;
  font-size: 17px;
}

.system-pill {
  position: relative;
  z-index: 1;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(43, 222, 192, 0.22);
  border-radius: 99px;
  background: rgba(5, 20, 26, 0.48);
  color: #b9d9d3;
  font-size: 13px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.dot.pulse {
  color: var(--accent);
  box-shadow: 0 0 0 0 rgba(43, 222, 192, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(43, 222, 192, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 222, 192, 0); }
}

.login-form-wrap {
  display: grid;
  align-content: center;
  padding: 52px;
  background: rgba(6, 16, 26, 0.72);
}

.login-form-wrap h2 {
  margin: 0;
  font-size: 29px;
  letter-spacing: -0.035em;
}

.login-form-wrap > p {
  margin: 8px 0 30px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.field-label {
  color: #c5d7de;
  font-size: 14px;
  font-weight: 650;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background: #091722;
  color: var(--text);
  transition: border 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.textarea {
  min-height: 96px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent-strong);
  background: #0b1a26;
  box-shadow: 0 0 0 3px rgba(43, 222, 192, 0.10);
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: #03251f;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease;
}

.button:hover {
  background: #51e6cc;
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.button.secondary {
  border-color: var(--line);
  background: var(--panel-strong);
  color: var(--text);
}

.button.secondary:hover {
  background: var(--panel-hover);
}

.button.ghost {
  border-color: var(--line-soft);
  background: transparent;
  color: #bfd0d7;
}

.button.danger {
  border-color: rgba(255, 117, 111, 0.25);
  background: rgba(255, 117, 111, 0.1);
  color: #ffaaa6;
}

.button.full {
  width: 100%;
  min-height: 50px;
}

.button.small {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.error-box,
.info-box,
.warning-box {
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 14px;
}

.error-box {
  border: 1px solid rgba(255, 117, 111, 0.25);
  background: rgba(255, 117, 111, 0.08);
  color: #ffc0bd;
}

.info-box {
  border: 1px solid rgba(90, 169, 255, 0.22);
  background: rgba(90, 169, 255, 0.08);
  color: #b9d9ff;
}

.warning-box {
  border: 1px solid rgba(245, 196, 92, 0.24);
  background: rgba(245, 196, 92, 0.08);
  color: #f7d998;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 18px 18px;
  border-right: 1px solid var(--line-soft);
  background: rgba(7, 18, 28, 0.88);
  backdrop-filter: blur(18px);
}

.sidebar .brand {
  padding: 0 8px 25px;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.nav-label {
  margin: 17px 10px 6px;
  color: #647d8b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #9cb2be;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.nav-link.active {
  background: var(--accent-faint);
  color: var(--accent);
}

.nav-icon {
  width: 20px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
  font-size: 18px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 10px 4px;
  border-top: 1px solid var(--line-soft);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 11px;
}

.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(43, 222, 192, 0.25);
  border-radius: 11px;
  background: var(--accent-faint);
  color: var(--accent);
  font-weight: 800;
}

.user-chip strong,
.user-chip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip strong {
  max-width: 142px;
  font-size: 14px;
}

.user-chip span {
  max-width: 142px;
  color: var(--muted);
  font-size: 12px;
  text-transform: capitalize;
}

.main-shell {
  min-width: 0;
}

.topbar {
  min-height: 79px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px clamp(20px, 4vw, 44px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(6, 16, 26, 0.67);
  backdrop-filter: blur(16px);
}

.page-heading h1 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.035em;
}

.page-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.mobile-menu {
  display: none;
}

.content {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 32px clamp(20px, 4vw, 44px) 60px;
}

.page-grid {
  display: grid;
  gap: 22px;
}

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

.metric-card,
.panel,
.site-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(16, 37, 52, 0.88), rgba(10, 25, 37, 0.94));
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.12);
}

.metric-card {
  min-height: 132px;
  padding: 20px;
}

.metric-card .metric-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.metric-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 18px;
}

.metric-value strong {
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.05em;
}

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

.metric-accent {
  color: var(--accent);
}

.metric-warning {
  color: var(--amber);
}

.metric-danger {
  color: var(--red);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.75fr);
  gap: 22px;
}

.panel {
  min-width: 0;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-header h2,
.panel-header h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.panel-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.panel-body {
  padding: 20px 22px;
}

.panel-body.flush {
  padding: 0;
}

.site-list {
  display: grid;
}

.site-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(230px, 1.3fr) minmax(140px, 0.65fr) minmax(150px, 0.7fr) 120px 24px;
  align-items: center;
  gap: 18px;
  padding: 17px 22px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: inherit;
  text-align: left;
}

.site-row:last-child {
  border-bottom: 0;
}

.site-row:hover {
  background: rgba(255, 255, 255, 0.022);
}

.site-name strong,
.site-name span {
  display: block;
}

.site-name strong {
  font-size: 15px;
}

.site-name span,
.cell-muted {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 99px;
  color: #adc0ca;
  font-size: 12px;
  font-weight: 750;
  text-transform: capitalize;
}

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

.status.healthy,
.status.closed,
.status.confirmed {
  border-color: rgba(43, 222, 192, 0.23);
  background: rgba(43, 222, 192, 0.07);
  color: var(--accent);
}

.status.attention,
.status.warning,
.status.detected,
.status.notified,
.status.planned {
  border-color: rgba(245, 196, 92, 0.23);
  background: rgba(245, 196, 92, 0.07);
  color: var(--amber);
}

.status.offline,
.status.critical {
  border-color: rgba(255, 117, 111, 0.23);
  background: rgba(255, 117, 111, 0.07);
  color: var(--red);
}

.status.commissioning,
.status.information,
.status.acknowledged,
.status.attended {
  border-color: rgba(90, 169, 255, 0.23);
  background: rgba(90, 169, 255, 0.07);
  color: var(--blue);
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #07121b;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.progress-fill.warning {
  background: var(--amber);
}

.progress-fill.danger {
  background: var(--red);
}

.usage-cell {
  display: grid;
  gap: 7px;
}

.usage-cell span {
  color: var(--muted);
  font-size: 12px;
}

.arrow {
  color: #547080;
  font-size: 20px;
}

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

.issue-card {
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: rgba(5, 16, 25, 0.45);
}

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

.issue-card h3 {
  margin: 11px 0 4px;
  font-size: 14px;
}

.issue-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.issue-meta {
  margin-top: 11px;
  display: flex;
  gap: 12px;
  color: #6f8997;
  font-size: 12px;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 38px 18px;
  color: var(--muted);
  text-align: center;
}

.empty-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(43, 222, 192, 0.18);
  border-radius: 14px;
  background: var(--accent-faint);
  color: var(--accent);
  font-size: 21px;
}

.empty-state strong {
  color: #c8d8de;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-toolbar {
  margin-bottom: 16px;
}

.compact-table th,
.compact-table td {
  padding-left: 12px;
  padding-right: 12px;
}

.tabs {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #081620;
}

.tab {
  min-width: 48px;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.tab:hover,
.tab.active {
  background: var(--panel-strong);
  color: var(--text);
}

.condition-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(16, 37, 52, 0.94), rgba(8, 24, 35, 0.96));
}

.condition-banner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--blue);
}

.condition-banner.healthy::before { background: var(--accent); }
.condition-banner.attention::before { background: var(--amber); }
.condition-banner.offline::before { background: var(--red); }

.condition-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(90, 169, 255, 0.25);
  border-radius: 14px;
  background: rgba(90, 169, 255, 0.08);
  color: var(--blue);
  font-size: 22px;
  font-weight: 800;
}

.condition-banner.healthy .condition-icon { border-color: rgba(43, 222, 192, 0.25); background: rgba(43, 222, 192, 0.08); color: var(--accent); }
.condition-banner.attention .condition-icon { border-color: rgba(245, 196, 92, 0.25); background: rgba(245, 196, 92, 0.08); color: var(--amber); }
.condition-banner.offline .condition-icon { border-color: rgba(255, 117, 111, 0.25); background: rgba(255, 117, 111, 0.08); color: var(--red); }

.condition-copy span,
.condition-time span,
.glance-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.condition-copy strong {
  display: block;
  margin-top: 3px;
  font-size: 22px;
}

.condition-copy p,
.condition-time p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.condition-time {
  min-width: 155px;
  padding-left: 20px;
  border-left: 1px solid var(--line-soft);
  text-align: right;
}

.condition-time strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

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

.glance-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  background: rgba(10, 27, 39, 0.76);
}

.glance-card.temperature {
  border-color: rgba(43, 222, 192, 0.2);
  background: linear-gradient(145deg, rgba(16, 49, 57, 0.82), rgba(10, 27, 39, 0.82));
}

.glance-card.attention { border-color: rgba(245, 196, 92, 0.3); }

.glance-card strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(22px, 2.1vw, 31px);
  letter-spacing: -0.04em;
}

.glance-card.temperature strong { color: var(--accent); }

.glance-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.element-panel {
  border-color: rgba(90, 169, 255, 0.18);
}

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

.element-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--blue);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(12, 34, 48, 0.92), rgba(8, 24, 35, 0.94));
}

.element-card.healthy { border-top-color: var(--accent); }
.element-card.warning,
.element-card.attention { border-top-color: var(--amber); }
.element-card.offline,
.element-card.critical { border-top-color: var(--red); }

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

.element-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.element-card h3 {
  margin: 5px 0 0;
  font-size: 20px;
}

.plant-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 180px;
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 99px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.plant-state::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.plant-state.healthy { border-color: rgba(43, 222, 192, 0.25); background: rgba(43, 222, 192, 0.07); color: var(--accent); }
.plant-state.warning,
.plant-state.attention { border-color: rgba(245, 196, 92, 0.25); background: rgba(245, 196, 92, 0.07); color: var(--amber); }
.plant-state.offline,
.plant-state.critical { border-color: rgba(255, 117, 111, 0.25); background: rgba(255, 117, 111, 0.07); color: var(--red); }

.element-primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.element-primary > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(5, 20, 30, 0.58);
}

.element-primary span {
  color: var(--muted);
  font-size: 11px;
}

.element-primary strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 19px;
}

.element-primary strong.call-on { color: var(--accent); }

.element-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 17px 0 0;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}

.element-stats div {
  min-width: 0;
  padding: 11px 12px;
  border-right: 1px solid var(--line-soft);
}

.element-stats div:last-child { border-right: 0; }

.element-stats dt {
  color: var(--muted);
  font-size: 10px;
}

.element-stats dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 750;
}

.element-observation {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.site-hero {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.6fr);
  gap: 22px;
}

.temperature-card {
  position: relative;
  min-height: 300px;
  display: grid;
  align-content: space-between;
  padding: 25px;
  overflow: hidden;
  border: 1px solid rgba(43, 222, 192, 0.17);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 80% 20%, rgba(43, 222, 192, 0.12), transparent 15rem),
    linear-gradient(155deg, #102c38, #0a1c28 70%);
}

.temperature-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -75px;
  bottom: -90px;
  border: 33px solid rgba(43, 222, 192, 0.045);
  border-radius: 50%;
}

.temperature-card .label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.temperature-reading {
  position: relative;
  z-index: 1;
  margin: 28px 0;
  font-size: clamp(58px, 7vw, 83px);
  font-weight: 750;
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.temperature-reading span {
  margin-left: 5px;
  color: var(--accent);
  font-size: 24px;
  letter-spacing: 0;
}

.temperature-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chart-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(16, 37, 52, 0.88), rgba(10, 25, 37, 0.94));
}

.chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.chart-header h2,
.chart-header h3 {
  margin: 0;
  font-size: 16px;
}

.chart-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.chart-wrap {
  min-height: 220px;
}

.chart-wrap svg {
  width: 100%;
  height: 220px;
  overflow: visible;
}

.chart-grid-line {
  stroke: rgba(143, 168, 182, 0.13);
  stroke-width: 1;
}

.chart-axis-text {
  fill: #698290;
  font-size: 10px;
}

.chart-area {
  opacity: 0.1;
}

.chart-line {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.legend-swatch {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

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

.detail-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  background: rgba(10, 27, 39, 0.7);
}

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

.detail-card strong {
  display: block;
  margin-top: 12px;
  font-size: 22px;
}

.detail-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

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

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

.table th,
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

.table th {
  color: #718b99;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table td {
  color: #c6d5db;
  font-size: 13px;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table td strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(1, 7, 12, 0.72);
  backdrop-filter: blur(8px);
}

.modal {
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #0b1a26;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 21px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.modal-header h2 {
  margin: 0;
  font-size: 19px;
}

.modal-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 19px;
}

.modal-body {
  padding: 22px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 16px 22px;
  border-top: 1px solid var(--line-soft);
}

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

.check-list {
  display: grid;
  gap: 9px;
  margin-top: 8px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(5, 15, 23, 0.45);
}

.secret-output {
  padding: 16px;
  border: 1px solid rgba(245, 196, 92, 0.28);
  border-radius: 12px;
  background: rgba(245, 196, 92, 0.07);
}

.secret-output code {
  display: block;
  margin-top: 10px;
  padding: 12px;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #07121b;
  color: #ffe09c;
  font-size: 14px;
  user-select: all;
}

.toast-root {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 10px;
}

.toast {
  width: min(380px, calc(100vw - 40px));
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #132836;
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 14px;
  animation: toast-in 180ms ease-out;
}

.toast.error {
  border-color: rgba(255, 117, 111, 0.35);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(7px); }
}

.skeleton {
  min-height: 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, #102432 25%, #183446 50%, #102432 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.muted {
  color: var(--muted);
}

.compact {
  margin: 0;
}

.spacer-top {
  margin-top: 18px;
}

.hide-desktop {
  display: none;
}

@media (max-width: 1180px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 860px) {
  .login-panel {
    grid-template-columns: 1fr;
  }

  .login-story {
    min-height: 295px;
    padding: 32px;
  }

  .login-copy h1 {
    margin-top: 12px;
    font-size: 38px;
  }

  .system-pill {
    display: none;
  }

  .login-form-wrap {
    padding: 34px 32px 40px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 80;
    left: 0;
    top: 0;
    width: 268px;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: var(--shadow);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-menu {
    display: grid;
  }

  .topbar {
    position: sticky;
    z-index: 50;
    top: 0;
  }

  .page-heading {
    margin-right: auto;
  }

  .site-row {
    grid-template-columns: minmax(0, 1fr) 120px 24px;
  }

  .site-row .status-cell,
  .site-row .issue-cell {
    display: none;
  }

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

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

  .condition-time {
    grid-column: 2;
    padding: 0;
    border-left: 0;
    text-align: left;
  }

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

  .element-stats div:nth-child(2) { border-right: 0; }
  .element-stats div:nth-child(-n + 2) { border-bottom: 1px solid var(--line-soft); }
}

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

  .login-panel {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .login-story {
    min-height: 250px;
    padding: 26px 24px;
  }

  .login-copy p {
    font-size: 15px;
  }

  .login-form-wrap {
    padding: 30px 24px 38px;
  }

  .topbar {
    padding: 12px 15px;
  }

  .topbar .button span {
    display: none;
  }

  .content {
    padding: 20px 15px 46px;
  }

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

  .metric-card {
    min-height: 112px;
    padding: 16px;
  }

  .metric-value {
    margin-top: 14px;
  }

  .metric-value strong {
    font-size: 27px;
  }

  .site-row {
    grid-template-columns: minmax(0, 1fr) 22px;
    padding: 15px 16px;
  }

  .site-row .usage-cell {
    display: none;
  }

  .panel-header,
  .panel-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .detail-grid,
  .glance-grid,
  .element-grid,
  .form-columns {
    grid-template-columns: 1fr;
  }

  .condition-banner {
    grid-template-columns: 1fr;
  }

  .condition-time {
    grid-column: auto;
  }

  .element-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .element-primary {
    grid-template-columns: 1fr;
  }

  .chart-card {
    padding: 16px;
  }

  .form-columns {
    gap: 14px;
  }
}

/* Production interface refinement */

::selection {
  background: rgba(69, 229, 195, 0.24);
  color: var(--text);
}

:focus-visible {
  outline: 3px solid rgba(107, 181, 255, 0.72);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 300;
  left: 18px;
  top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: #080b0e;
  font-weight: 750;
  transform: translateY(-160%);
  transition: transform 140ms ease;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(69, 229, 195, 0.28);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(69, 229, 195, 0.16), rgba(69, 229, 195, 0.05));
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 30px rgba(0, 0, 0, 0.2);
}

.brand-mark svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-word {
  font-size: 20px;
  font-weight: 760;
  letter-spacing: 0.18em;
}

.brand-subtitle {
  margin-top: 5px;
  color: #7d8992;
  font-size: 10px;
  letter-spacing: 0.035em;
}

.app-shell {
  grid-template-columns: 238px minmax(0, 1fr);
}

.sidebar {
  padding: 22px 16px 18px;
  background: rgba(10, 13, 16, 0.94);
  border-right-color: rgba(205, 222, 233, 0.08);
}

.sidebar .brand {
  padding: 0 8px 24px;
}

.nav-label {
  margin: 20px 11px 7px;
  color: #68737c;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.nav-link {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #98a3ab;
  font-weight: 620;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.035);
}

.nav-link.active {
  border-color: rgba(69, 229, 195, 0.12);
  background: rgba(69, 229, 195, 0.075);
  color: #d7fff5;
}

.nav-icon {
  width: 19px;
  height: 19px;
}

.nav-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-footer {
  margin: auto 2px 0;
  padding: 17px 8px 3px;
}

.avatar {
  border-radius: 50%;
  background: rgba(69, 229, 195, 0.08);
  font-size: 13px;
}

.sidebar-scrim {
  display: none;
}

.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  min-height: 76px;
  padding: 14px clamp(22px, 3.4vw, 46px);
  background: rgba(9, 11, 14, 0.78);
  border-bottom-color: rgba(205, 222, 233, 0.08);
  backdrop-filter: blur(22px) saturate(135%);
}

.page-heading h1 {
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 690;
  letter-spacing: -0.035em;
}

.page-heading p {
  color: #818c94;
}

.content {
  width: min(1460px, 100%);
  padding: 30px clamp(22px, 3.4vw, 46px) 70px;
}

.page-grid {
  gap: 20px;
}

.button {
  min-height: 42px;
  border-radius: 11px;
  font-weight: 720;
  letter-spacing: -0.005em;
}

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

.button:active {
  transform: translateY(0);
}

.button.small {
  min-height: 40px;
  padding: 7px 12px;
}

.button.ghost {
  color: #c5cbd0;
}

.live-refresh-button {
  border-color: rgba(69, 229, 195, 0.22);
  background: rgba(69, 229, 195, 0.08);
  color: #bff8eb;
}

.live-refresh-button:hover {
  background: rgba(69, 229, 195, 0.14);
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(69, 229, 195, 0.09);
}

.live-dot.delayed {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 196, 95, 0.09);
}

.metric-card,
.panel,
.site-card,
.chart-card {
  border-color: rgba(205, 222, 233, 0.095);
  background: rgba(20, 24, 29, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 16px 50px rgba(0, 0, 0, 0.13);
}

.panel-header {
  padding: 21px 22px;
  border-bottom-color: rgba(205, 222, 233, 0.08);
}

.panel-header h2,
.panel-header h3 {
  font-weight: 670;
  letter-spacing: -0.026em;
}

.section-kicker {
  display: block;
  margin-bottom: 5px;
  color: #78848c;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.count-badge,
.quality-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 99px;
  color: #aeb7bd;
  font-size: 11px;
  font-weight: 720;
  white-space: nowrap;
}

.count-badge.healthy,
.quality-badge.good {
  border-color: rgba(69, 229, 195, 0.21);
  background: rgba(69, 229, 195, 0.07);
  color: var(--accent);
}

.count-badge.information {
  border-color: rgba(107, 181, 255, 0.22);
  background: rgba(107, 181, 255, 0.07);
  color: var(--blue);
}

.count-badge.attention,
.quality-badge.degraded,
.quality-badge.stale {
  border-color: rgba(255, 196, 95, 0.22);
  background: rgba(255, 196, 95, 0.07);
  color: var(--amber);
}

.condition-banner {
  grid-template-columns: auto minmax(280px, 1fr) minmax(150px, auto) minmax(190px, auto);
  gap: 20px;
  padding: 18px 21px;
  border-color: rgba(205, 222, 233, 0.10);
  border-radius: 18px;
  background: rgba(20, 24, 29, 0.88);
}

.condition-banner::before {
  width: 3px;
}

.condition-banner.delayed::before {
  background: var(--amber);
}

.condition-banner.information::before {
  background: var(--blue);
}

.condition-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 17px;
}

.condition-banner.delayed .condition-icon {
  border-color: rgba(255, 196, 95, 0.25);
  background: rgba(255, 196, 95, 0.08);
  color: var(--amber);
}

.condition-banner.information .condition-icon {
  border-color: rgba(107, 181, 255, 0.25);
  background: rgba(107, 181, 255, 0.08);
  color: var(--blue);
}

.condition-copy strong {
  font-size: 20px;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.condition-summary {
  padding: 0 20px;
  border-left: 1px solid var(--line-soft);
}

.condition-summary span,
.condition-time span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.condition-summary strong {
  display: block;
  margin-top: 5px;
  font-size: 14px;
}

.condition-time {
  min-width: 190px;
  padding-left: 20px;
}

.condition-time small {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 7px;
  color: #7e8991;
  font-size: 11px;
}

.plant-overview-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.72fr) minmax(620px, 1.55fr);
  gap: 20px;
  margin-top: 20px;
}

.water-overview-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(69, 229, 195, 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 22% 35%, rgba(69, 229, 195, 0.08), transparent 16rem),
    rgba(20, 24, 29, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 16px 50px rgba(0, 0, 0, 0.14);
}

.water-overview-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.water-overview-card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 670;
  letter-spacing: -0.025em;
}

.water-overview-body {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 24px 4px 22px;
}

.cylinder-visual {
  position: relative;
  width: 108px;
  height: 206px;
  overflow: hidden;
  border: 1px solid rgba(220, 230, 237, 0.32);
  border-radius: 54px 54px 30px 30px;
  background: linear-gradient(90deg, #171c21, #343b42 46%, #161b20 100%);
  box-shadow: inset 8px 0 18px rgba(255, 255, 255, 0.045), inset -12px 0 20px rgba(0, 0, 0, 0.38), 0 20px 35px rgba(0, 0, 0, 0.25);
}

.cylinder-visual::before,
.cylinder-visual::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 31px;
  width: 46px;
  height: 5px;
  border-radius: 99px;
  background: #3b444b;
}

.cylinder-visual::before { top: 11px; }
.cylinder-visual::after { bottom: 10px; }

.cylinder-fill {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: var(--cylinder-fill);
  background: linear-gradient(180deg, rgba(69, 229, 195, 0.48), rgba(27, 168, 143, 0.72));
  box-shadow: 0 -10px 28px rgba(69, 229, 195, 0.18);
  transition: height 500ms cubic-bezier(.2,.8,.2,1);
}

.cylinder-fill::before {
  content: "";
  position: absolute;
  inset: -2px 0 auto;
  height: 4px;
  background: rgba(159, 255, 235, 0.82);
  box-shadow: 0 0 14px rgba(69, 229, 195, 0.62);
}

.cylinder-highlight {
  position: absolute;
  z-index: 2;
  inset: 18px auto 21px 20px;
  width: 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.10);
  filter: blur(1px);
}

.cylinder-visual.empty .cylinder-fill {
  display: none;
}

.temperature-gauge {
  display: grid;
  grid-template-columns: 28px 36px;
  justify-content: center;
  align-items: stretch;
  width: 108px;
  height: 206px;
  padding: 8px 0;
}

.temperature-track {
  position: relative;
  align-self: stretch;
  width: 13px;
  margin: 4px auto 12px;
  border: 1px solid rgba(220, 230, 237, 0.28);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.035);
}

.temperature-track::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 28px;
  height: 28px;
  transform: translateX(-50%);
  border: 1px solid rgba(220, 230, 237, 0.28);
  border-radius: 50%;
  background: #20262b;
}

.temperature-track span {
  position: absolute;
  z-index: 1;
  inset: auto 3px 0;
  height: var(--temperature-position);
  max-height: 100%;
  border-radius: 99px;
  background: linear-gradient(180deg, #7af0d6, var(--accent));
  box-shadow: 0 0 18px rgba(69, 229, 195, 0.22);
  transition: height 500ms cubic-bezier(.2,.8,.2,1);
}

.temperature-track span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--accent);
}

.temperature-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1px 0 2px;
  color: #7f8a92;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.temperature-gauge.empty .temperature-track span {
  display: none;
}

.temperature-summary > strong {
  display: block;
  color: var(--text);
  font-size: clamp(46px, 5vw, 70px);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.temperature-summary > strong span {
  margin-left: 5px;
  color: var(--accent);
  font-size: 20px;
  letter-spacing: -0.01em;
}

.temperature-summary p {
  margin: 14px 0 0;
  color: #b2bbc1;
  font-size: 13px;
}

.temperature-summary small {
  display: block;
  margin-top: 7px;
  color: #747f87;
  font-size: 11px;
}

.water-supporting-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: rgba(5, 8, 11, 0.22);
}

.water-supporting-stats div {
  min-width: 0;
  padding: 12px;
  border-right: 1px solid var(--line-soft);
}

.water-supporting-stats div:last-child {
  border-right: 0;
}

.water-supporting-stats dt {
  color: #78838b;
  font-size: 10px;
}

.water-supporting-stats dd {
  margin: 4px 0 0;
  color: #d8dde0;
  font-size: 12px;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.attention-text {
  color: var(--amber) !important;
}

.element-panel {
  border-color: rgba(205, 222, 233, 0.095);
}

.element-panel .panel-body {
  height: calc(100% - 87px);
}

.element-grid {
  height: 100%;
  gap: 14px;
}

.element-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-width: 1px;
  border-top-width: 1px;
  border-color: rgba(205, 222, 233, 0.105);
  border-radius: 15px;
  background: rgba(9, 12, 15, 0.36);
  box-shadow: inset 0 3px 0 var(--blue);
}

.element-card.healthy { box-shadow: inset 0 3px 0 var(--accent); }
.element-card.information { box-shadow: inset 0 3px 0 var(--blue); }
.element-card.warning,
.element-card.attention,
.element-card.delayed { box-shadow: inset 0 3px 0 var(--amber); }
.element-card.offline,
.element-card.critical { box-shadow: inset 0 3px 0 var(--red); }

.element-card h3 {
  font-size: 18px;
  font-weight: 670;
}

.plant-state {
  min-height: 31px;
  padding: 6px 10px;
  background: rgba(107, 181, 255, 0.05);
}

.plant-state.delayed {
  border-color: rgba(255, 196, 95, 0.25);
  background: rgba(255, 196, 95, 0.07);
  color: var(--amber);
}

.element-primary {
  margin-top: 17px;
}

.element-primary > div {
  padding: 13px;
  border-color: rgba(205, 222, 233, 0.09);
  background: rgba(0, 0, 0, 0.17);
}

.element-primary strong {
  font-size: 20px;
  font-weight: 670;
}

.element-stats {
  border-color: rgba(205, 222, 233, 0.09);
}

.element-stats div {
  border-color: rgba(205, 222, 233, 0.09);
}

.element-stats dd {
  color: #d8dde0;
}

.element-observation {
  margin-top: auto;
  padding-top: 14px;
}

.toolbar {
  padding: 1px 0;
}

.tabs {
  border-radius: 12px;
  background: rgba(12, 15, 18, 0.82);
}

.tab {
  min-height: 36px;
  border-radius: 9px;
}

.tab.active {
  background: #272e35;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.chart-card {
  padding: 21px;
}

.chart-axis-text {
  fill: #87929a;
  font-size: 11px;
}

.chart-grid-line {
  stroke: rgba(205, 222, 233, 0.10);
}

.chart-line {
  stroke-width: 2.2;
}

.issue-panel.clear .panel-header {
  border-bottom: 0;
}

.issue-panel.has-issues {
  border-color: rgba(255, 196, 95, 0.18);
}

.issue-panel.coverage-pending {
  border-color: rgba(107, 181, 255, 0.16);
}

.mobile-issue-badge {
  display: none;
  margin-top: 4px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
}

.issue-action {
  margin-top: 13px;
}

.technical-panel > summary {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}

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

.technical-panel > summary strong,
.technical-panel > summary span {
  display: block;
}

.technical-panel > summary strong {
  font-size: 17px;
}

.technical-panel > summary > div > span:not(.section-kicker) {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.disclosure-icon {
  width: 34px;
  height: 34px;
  display: grid !important;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: #aeb7bd;
  font-size: 18px;
  transition: transform 160ms ease;
}

.technical-panel[open] .disclosure-icon {
  transform: rotate(45deg);
}

.technical-panel[open] > summary {
  border-bottom: 1px solid var(--line-soft);
}

.technical-table td {
  min-width: 120px;
}

.admin-site-panel {
  border-color: rgba(107, 181, 255, 0.15);
}

.detail-card {
  background: rgba(8, 11, 14, 0.35);
}

.detail-card strong {
  font-size: 20px;
}

.search-control {
  width: min(260px, 42vw);
}

.search-control .input {
  min-height: 40px;
  padding: 8px 12px;
}

.field-help {
  margin: -2px 0 5px;
  color: var(--muted);
  font-size: 12px;
}

.table tbody tr {
  transition: background 120ms ease;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.018);
}

.table th {
  color: #7e8991;
  font-size: 10px;
  letter-spacing: 0.085em;
}

.table td {
  color: #cbd2d6;
}

.modal-backdrop {
  background: rgba(2, 4, 6, 0.78);
  backdrop-filter: blur(12px);
}

.modal {
  border-color: rgba(205, 222, 233, 0.15);
  background: #14181d;
}

.input,
.select,
.textarea {
  border-color: rgba(205, 222, 233, 0.13);
  background: #0d1115;
}

.input:focus,
.select:focus,
.textarea:focus {
  background: #10151a;
}

@media (max-width: 1280px) {
  .plant-overview-grid {
    grid-template-columns: 1fr;
  }

  .water-overview-card {
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.2fr);
    grid-template-rows: auto auto;
    gap: 0 28px;
  }

  .water-overview-card > header {
    grid-column: 1 / -1;
  }

  .water-supporting-stats {
    align-self: center;
  }

  .element-panel .panel-body {
    height: auto;
  }
}

@media (max-width: 980px) {
  .condition-banner {
    grid-template-columns: auto minmax(0, 1fr) minmax(170px, auto);
  }

  .condition-summary {
    display: none;
  }

  .water-overview-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .water-overview-card > header {
    grid-column: auto;
  }

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

@media (max-width: 860px) {
  .app-shell {
    display: block;
  }

  .sidebar-scrim {
    position: fixed;
    z-index: 70;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(0, 0, 0, 0.58);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .sidebar-scrim.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    z-index: 80;
    width: min(290px, 86vw);
  }

  .topbar {
    z-index: 50;
  }

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

  .condition-time {
    grid-column: 2;
    min-width: 0;
    padding: 0;
    border-left: 0;
    text-align: left;
  }

  .condition-time small {
    justify-content: flex-start;
  }

  .site-row {
    grid-template-columns: minmax(0, 1fr) auto 22px;
  }

  .site-row .status-cell {
    display: block;
  }

  .site-row .mobile-issue-badge {
    display: block;
  }

  .site-row .issue-cell,
  .site-row .usage-cell {
    display: none;
  }
}

@media (max-width: 620px) {
  .topbar {
    min-height: 66px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .page-heading { flex: 1; min-width: 0; }
  .topbar-actions { max-width: 100%; flex-wrap: wrap; justify-content: flex-end; }

  .page-heading p {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar .button span {
    display: inline;
  }

  .topbar-actions > .button.secondary span {
    display: none;
  }

  .content {
    padding: 18px 14px 48px;
  }

  .condition-banner {
    grid-template-columns: 1fr;
    padding: 17px;
  }

  .condition-icon {
    display: none;
  }

  .condition-time {
    grid-column: auto;
  }

  .water-overview-card {
    padding: 18px;
  }

  .water-overview-body {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 18px;
    padding: 22px 0;
  }

  .cylinder-visual {
    width: 84px;
    height: 164px;
  }

  .temperature-gauge {
    grid-template-columns: 22px 30px;
    width: 84px;
    height: 164px;
  }

  .cylinder-visual::before,
  .cylinder-visual::after {
    left: 25px;
    width: 34px;
  }

  .temperature-summary > strong {
    font-size: 44px;
  }

  .water-supporting-stats {
    grid-template-columns: 1fr;
  }

  .water-supporting-stats div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .water-supporting-stats div:last-child {
    border-bottom: 0;
  }

  .water-supporting-stats dd {
    text-align: right;
  }

  .element-card {
    padding: 16px;
  }

  .element-card-head {
    flex-direction: row;
    align-items: flex-start;
  }

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

  .toolbar > .muted {
    width: 100%;
    font-size: 11px;
  }

  .tabs {
    width: 100%;
  }

  .tab {
    flex: 1;
    min-width: 0;
  }

  .panel-header {
    align-items: flex-start;
  }

  .search-control {
    width: 100%;
  }

  .technical-panel > summary {
    min-height: 76px;
    padding: 16px;
  }
}

@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;
  }
}
/* Commissioning records stay separate from live equipment controls. */
.commissioning-steps { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.4rem; color: var(--muted); }
.commissioning-steps span { padding: .5rem .75rem; border: 1px solid var(--line); border-radius: .6rem; }
.commissioning-steps [aria-current="step"] { color: var(--text); border-color: var(--accent); }
.commissioning-cylinder { display: grid; gap: 1rem; margin: 1.25rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; }
.commissioning-element { display: grid; gap: 1rem; margin: 0; min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .65rem; }
.commissioning-element legend { padding: 0 .5rem; font-weight: 700; }
.commissioning-navigation { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.5rem; }
.brand-word { color: #c5a0e6; }
.brand-mark { color: #d9dbe6; border-color: #9162af; background: linear-gradient(145deg, #583274, #26192f); }
.brand-button { cursor: pointer; padding: 0; font: inherit; }
.brand-button:focus-visible { outline: 2px solid #c5a0e6; outline-offset: 4px; }
.private-memo { border-left: 3px solid #ae7bd2; padding: .5rem 1.25rem; }
.cylinder-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 1.25rem; margin: 1.25rem 0; }
gems-cylinder { display: block; padding: 1rem 1.25rem; }
.cylinder-stage { position: relative; min-height: 320px; background: radial-gradient(ellipse, #65417626, transparent 68%); border-radius: 1rem; }
.cylinder-stage canvas { display: block; width: 100%; height: 320px; touch-action: pan-y; }
.cylinder-branding { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); align-items: center; gap: 1rem; max-width: 440px; margin: .2rem auto .3rem; }
.cylinder-client-brand { min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .3rem; min-height: 54px; }
.cylinder-client-name { font-size: .8rem; font-weight: 650; text-align: center; overflow-wrap: anywhere; max-width: 100%; }
.cylinder-client-logo { display: block; max-width: 100%; width: auto; height: 54px; object-fit: contain; padding: .35rem .65rem; background: #fff; border-radius: .6rem; }
.cylinder-client-wordmark { font-weight: 700; font-size: .95rem; text-align: center; color: #edf3fa; overflow-wrap: anywhere; }
.cylinder-brand-divider { width: 1px; height: 36px; background: #8c729b66; }
.cylinder-gems-brand { display: flex; align-items: center; gap: .55rem; min-width: 0; color: #cfb0e4; }
.cylinder-gems-brand svg { width: 39px; height: 33px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linejoin: round; }
.cylinder-gems-brand > span { font-weight: 750; font-size: 1.1rem; letter-spacing: .06em; }
.cylinder-gems-brand small { display: block; margin-top: .15rem; font-weight: 400; font-size: .52rem; line-height: 1.4; letter-spacing: 0; color: #a99fb2; }
.cylinder-front-stage { position: relative; width: min(100%, 440px); margin: 0 auto; background: radial-gradient(ellipse at 50% 54%, #66829814, transparent 67%); }
.cylinder-front { display: block; width: 100%; height: auto; }
.cylinder-front text { fill: #263447; font-family: inherit; }
.cylinder-client-name { font-weight: 800; letter-spacing: .4px; }
.cylinder-row-name { font-size: 13px; font-weight: 700; }
.cylinder-channel-label { font-size: 11px; font-weight: 750; letter-spacing: .35px; }
.cylinder-state-label { font-size: 10px; font-weight: 650; }
.cylinder-temperature-label { font-size: 8px; font-weight: 650; letter-spacing: 1px; }
.cylinder-temperature-value { font-size: 27px; font-weight: 750; font-variant-numeric: tabular-nums; }
.cylinder-front .cylinder-temperature-source { font-size: 8px; fill: #60748a; }
.cylinder-front .cylinder-fault-label { font-size: 10px; fill: #bf263e; font-weight: 800; }
.cylinder-front .cylinder-review-label { font-size: 10px; fill: #9b5b0b; font-weight: 650; }
.cylinder-indicator-fault .cylinder-indicator-face { stroke: #b92339; stroke-width: 2px; animation: gems-fault-beacon 1.6s ease-in-out infinite; }
@keyframes gems-fault-beacon { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .cylinder-indicator-fault .cylinder-indicator-face { animation: none; opacity: 1; } }
.client-logo-preview { display: flex; justify-content: center; padding: 1rem; margin-bottom: 1rem; background: #fff; border-radius: .75rem; }
.client-logo-preview img { display: block; max-width: 200px; max-height: 90px; object-fit: contain; }
.client-logo-chooser { min-width: 0; padding: 0; margin: 1rem 0; border: 0; }
.client-logo-chooser legend { font-weight: 700; margin-bottom: .4rem; }
.client-logo-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .7rem; margin: 1rem 0; }
.client-logo-option { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .45rem; padding: .65rem; border: 1px solid var(--line); border-radius: .65rem; cursor: pointer; }
.client-logo-option:has(input:checked) { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.client-logo-option > span:last-child { grid-column: 1 / -1; font-size: .8rem; font-weight: 600; }
.client-logo-option.text-option > span:last-child { grid-column: 2; }
.client-logo-artwork { display: flex; height: 70px; min-width: 0; justify-content: center; align-items: center; background: #fff; border-radius: .35rem; overflow: hidden; }
.client-logo-artwork img { display: block; width: 100%; height: 100%; object-fit: contain; }
.incident-report { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.incident-report .table-actions { margin-top: .7rem; flex-wrap: wrap; }
.incident-cases { display: grid; gap: .5rem; margin: 1rem 0; }
.cylinder-3d summary { cursor: pointer; color: var(--muted); font-size: .85rem; padding: .6rem 0; }
.cylinder-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.cylinder-legend { display: grid; gap: .5rem; margin: 1rem 0; }
.cylinder-legend > div { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.cylinder-legend strong { flex: 1; }
.cylinder-caption { font-size: .8rem; }
.recovery-site { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }

/* Privately fetched content is removed on close, sign-out and session expiry. */
.modal:has(.private-memo) { background: #faf8f4; color: #252033; }
.modal:has(.private-memo) .modal-header { border-color: #dad1e0; }
.modal:has(.private-memo) .modal-header h2 { color: #51405f; font-size: 1rem; }

.internal-graphs-modal { width: min(1280px, 100%); }
.internal-graphs-modal .modal-header { position: sticky; top: 0; z-index: 2; background: #14181d; }
.graph-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.graph-controls .tabs { max-width: 100%; overflow-x: auto; }
.graph-status { min-height: 1.5em; font-size: 13px; }
.graph-status[data-status="error"], .graph-status[data-status="paused"], .graph-status[data-status="denied"] { color: var(--amber); }
.graph-provenance { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 15px; border: 1px solid var(--line-soft); border-radius: 12px; font-size: 12px; color: var(--muted); }
.graph-provenance strong { display: block; margin-bottom: 3px; color: var(--text); font-weight: 650; }
.graph-explanation, .graph-quality, .graph-empty { color: var(--muted); font-size: 12px; line-height: 1.6; }
.internal-graph-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.graph-chart { padding: 18px; }
.graph-chart .chart-wrap { min-height: 190px; }
.graph-chart .chart-wrap svg { height: auto; min-height: 175px; }
.graph-chart .chart-axis-text { font-size: 16px; }
.graph-chart .legend { flex-wrap: wrap; }
.graph-unit { color: var(--accent); font-size: 12px; white-space: nowrap; }
.graph-site-chooser { display: grid; gap: 10px; }
.graph-site-chooser .button { justify-content: space-between; text-align: left; }
.graph-site-chooser small { display: block; margin-top: 4px; color: var(--muted); font-weight: 400; }
.site-access-row { border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(5, 15, 23, .45); }
.site-access-row .check-row { border: 0; background: transparent; }
.client-history-option { display: flex; align-items: flex-start; gap: 10px; margin: 0 12px 12px 36px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.client-history-option[hidden] { display: none; }
.client-history-option input { flex: 0 0 auto; margin-top: 3px; }
@media (max-width: 760px) {
  .internal-graph-grid { grid-template-columns: minmax(0, 1fr); }
  .internal-graphs-modal .modal-body { padding: 14px; }
  .internal-graphs-modal .modal-header { padding: 16px 14px; }
  .graph-chart { padding: 13px; }
  .graph-provenance { gap: 10px 16px; }
}
.private-memo { border: 0; padding: 0; text-align: center; line-height: 1.7; }
.private-portrait { display: block; width: 100%; max-height: 48vh; object-fit: contain; border-radius: 1rem; background: #efece8; margin: 0 auto 1.5rem; }
.private-eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .7rem; color: #705080; }
.private-memo h3 { font-family: Georgia, serif; font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 400; margin: .7rem 0 0; }
.private-caption { color: #817189; margin-top: .2rem; }
.private-signature { font-family: Georgia, serif; font-style: italic; color: #6f4489; }
.private-footer { border-top: 1px solid #ded4e3; padding-top: 1rem; font-size: .75rem; color: #817189; }

/* GEMS mobile: plant first, stable navigation, engineering detail on demand. */
:root { --brand: #bc8dde; --brand-strong: #8d58b0; }
body { background: radial-gradient(ellipse at 82% -20%, #724e9220, transparent 38rem), #090b0e; }
.button:not(.ghost):not(.secondary):not(.danger) { background: linear-gradient(135deg, #ad7dce, #8b56ad); color: #fff; border-color: #bf93dc; }
.nav-link.active { color: #d6b6ec; background: #9b65bf1c; }
.brand-mark { box-shadow: 0 8px 30px #9b65bf22; }
.mobile-tabbar { display: none; }
.chart-cursor { stroke: var(--brand); stroke-width: 1.25; stroke-dasharray: 3 3; pointer-events: none; }
.chart-cursor[hidden] { display: none; }
.chart-wrap svg { touch-action: pan-y; }
.chart-readout { display: flex; flex-wrap: wrap; gap: .35rem 1rem; padding: .4rem 0; font-size: .78rem; color: #c4b1d2; min-height: 1.8rem; }
.chart-readout span { max-width: 100%; overflow-wrap: anywhere; }
.temperature-summary, .element-primary strong, .water-supporting-stats dd { font-variant-numeric: tabular-nums; }
.cylinder-panel { background: linear-gradient(150deg, #21182b77, #14181d); border-color: #493852; }
@media (max-width: 860px) {
  .mobile-tabbar { position: fixed; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; bottom: 0; left: 0; right: 0; z-index: 70; padding: .4rem .7rem calc(.4rem + env(safe-area-inset-bottom)); background: #111016f5; backdrop-filter: blur(20px); border-top: 1px solid #493852; }
  .mobile-tabbar .nav-link { display: grid; place-items: center; gap: .15rem; padding: .4rem; min-height: 52px; font-size: .7rem; border-radius: .65rem; }
  .mobile-tabbar .nav-icon { width: 22px; height: 22px; }
  .content { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .condition-banner { gap: .65rem; padding: 1rem; }
  .condition-copy > strong { font-size: 1.2rem; }
  .condition-copy > p { font-size: .82rem; margin-bottom: .2rem; }
  .condition-time { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .65rem; font-size: .75rem; }
  .condition-time > span { display: none; }
  .cylinder-stage { min-height: 250px; }
  .cylinder-front-stage { width: min(100%, 360px); }
  .cylinder-branding { gap: .7rem; max-width: 360px; }
  .cylinder-stage canvas { height: 250px; }
  .cylinder-panel .panel-header { padding: .9rem 1rem; }
  .cylinder-panel .panel-header p { display: none; }
  gems-cylinder { padding: .5rem 1rem .8rem; }
  .cylinder-grid { margin: .7rem 0; }
  .cylinder-controls .button { min-height: 44px; }
  .cylinder-caption { font-size: .73rem; margin: .45rem 0; }
  .cylinder-legend { margin: .5rem 0; }
  .water-overview-body { padding: .7rem 0; grid-template-columns: minmax(0, 1fr); }
  .temperature-gauge { display: none; }
  .temperature-summary > strong { font-size: 2.5rem; }
  .water-supporting-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
  .water-supporting-stats div { display: block; min-width: 0; border: 0; padding: .4rem 0; }
  .water-supporting-stats dt { font-size: .7rem; }
  .water-supporting-stats dd { font-size: .88rem; margin: .35rem 0 0; }
  .element-card { padding: 1rem; }
  .element-card-head h3 { font-size: 1.1rem; }
  .element-primary { margin: .7rem 0; gap: .5rem; }
  .element-primary > div { padding: .7rem; }
  .element-primary strong { font-size: 1.2rem; }
  .element-stats { margin-top: .65rem; }
  .element-observation { font-size: .78rem; }
  .live-refresh-button { font-size: .75rem; padding: .5rem; }
  .topbar { padding: .75rem 1rem; }
  .page-heading h1 { font-size: 1rem; }
}

/* Official supplied GEMS artwork. Keep the full diamond, wordmark and heartbeat. */
.brand { display: block; min-width: 0; }
.brand-mark.official-brand { display: block; width: min(100%, 330px); height: auto; }
.official-brand-image { display: block; width: 100%; height: auto; aspect-ratio: 1536 / 521; object-fit: contain; }
.sidebar .brand { padding: 0 0 22px; }
.sidebar .brand-mark.official-brand { width: 100%; }
.cylinder-gems-brand { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; }
.cylinder-official-logo { display: block; width: 100%; max-width: 215px; height: auto; aspect-ratio: 1536 / 521; object-fit: contain; }

/* Chrome frame around the unchanged official GEMS artwork. */
.gems-brand-frame {
  display: block;
  padding: 7px;
  border: 1px solid #a8b1be;
  border-radius: 10px;
  background: linear-gradient(135deg, #fbfcfd 0%, #cbd2db 14%, #f4f6f9 30%, #8d99a9 51%, #e0e5ec 69%, #aab4c1 85%, #f7f9fb 100%);
  box-shadow: inset 0 1px 1px #fff, inset 0 -1px 1px #566274, 0 5px 16px #17202d26;
}
.gems-brand-frame > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1536 / 521;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 0 1px #505a6a;
}
