/* ===== Variables de marque (dark default) ===== */
:root {
  --ps-bg-page: #060b14;
  --ps-bg-card: linear-gradient(135deg, rgba(20, 30, 55, .85) 0%, rgba(10, 16, 32, .95) 100%);
  --ps-bg-header: linear-gradient(135deg, #0f2a4a 0%, #0a1628 50%, #071e3d 100%);
  --ps-border-card: rgba(14, 165, 233, .15);
  --ps-border-hover: rgba(14, 165, 233, .35);
  --ps-accent: #0ea5e9;
  --ps-accent-2: #0284c7;
  --ps-ok: #10b981;
  --ps-ok-text: #34d399;
  --ps-warn: #f59e0b;
  --ps-warn-text: #fbbf24;
  --ps-err: #ef4444;
  --ps-err-text: #f87171;
  --ps-text-primary: #e2e8f0;
  --ps-text-muted: #64748b;
  --ps-text-dim: #374151;
  /* legacy vars kept for MudBlazor overrides */
  --logoImageUrl: url('https://www.proovstation.com/wp-content/uploads/2023/12/favicon-%e2%80%94-light-copie.png');
  --primaryColor: #101217;
  --secondaryColor: #e3e5e7;
  --bgMenuActive: #404145;
  --bgButton: #0ea5e9;
  --dangerColor: #ef4444;
  --warningColor: #f59e0b;
  --successColor: #10b981;
  --bgAside: var(--primaryColor);
}

/* ===== Light theme overrides ===== */
html[data-theme="light"] {
  --ps-bg-page: #f1f5f9;
  --ps-ok-text: #059669;
  --ps-warn-text: #d97706;
  --ps-err-text: #dc2626;
  --ps-text-primary: #1e293b;
  --ps-text-muted: #64748b;
  --ps-text-dim: #cbd5e1;
  --primaryColor: #f8fafc;
  --secondaryColor: #1e293b;
  --bgMenuActive: #e2e8f0;
  --bgAside: var(--primaryColor);
}

html[data-theme="light"],
html[data-theme="light"] body,
html[data-theme="light"] main,
html[data-theme="light"] .mud-main-content,
html[data-theme="light"] .mud-layout,
html[data-theme="light"] .mud-container {
  background: #f1f5f9 !important;
}

html[data-theme="light"] .ps-page-bg {
  background: #f1f5f9 !important;
}

html[data-theme="light"] .ps-page-header {
  background: linear-gradient(135deg, #bae6fd 0%, #e0f2fe 50%, #dbeafe 100%);
  border-color: rgba(14, 165, 233, .3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, .8);
}

html[data-theme="light"] .ps-page-title {
  color: #1e293b;
}

html[data-theme="light"] .ps-page-subtitle {
  color: #475569;
}

html[data-theme="light"] .ps-tv-mode .ps-page-header {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

html[data-theme="light"] .ps-btn-ghost {
  background: rgba(0, 0, 0, .05);
  border-color: rgba(0, 0, 0, .12);
  color: #475569;
}

html[data-theme="light"] .ps-btn-ghost:hover:not(:disabled) {
  background: rgba(0, 0, 0, .08);
  color: #1e293b;
}

html[data-theme="light"] .ps-group-card,
html[data-theme="light"] .ps-panorama {
  background: linear-gradient(135deg, rgba(255, 255, 255, .97) 0%, rgba(248, 250, 252, .99) 100%);
  border-color: rgba(14, 165, 233, .2);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06), inset 0 1px 0 rgba(255, 255, 255, .9);
}

html[data-theme="light"] .ps-group-card:hover,
html[data-theme="light"] .ps-panorama:hover {
  border-color: rgba(14, 165, 233, .45);
  box-shadow: 0 4px 20px rgba(14, 165, 233, .1);
}

html[data-theme="light"] .ps-group-header {
  border-bottom-color: rgba(0, 0, 0, .08);
}

html[data-theme="light"] .ps-svc-row:hover {
  background: rgba(0, 0, 0, .03);
}

html[data-theme="light"] .ps-svc-row--active {
  background: rgba(14, 165, 233, .07) !important;
}

html[data-theme="light"] .ps-svc-name {
  color: #1e293b;
}


html[data-theme="light"] .ps-banner--ok {
  background: rgba(5, 150, 105, .06);
  border-color: rgba(5, 150, 105, .2);
}

html[data-theme="light"] .ps-banner--warn {
  background: rgba(217, 119, 6, .06);
  border-color: rgba(217, 119, 6, .2);
}

html[data-theme="light"] .ps-banner--err {
  background: rgba(220, 38, 38, .06);
  border-color: rgba(220, 38, 38, .2);
}

html[data-theme="light"] .ps-banner--loading {
  background: rgba(0, 0, 0, .03);
  border-color: rgba(0, 0, 0, .1);
}

html[data-theme="light"] .ps-panorama {
  background: linear-gradient(135deg, rgba(238, 242, 255, .97) 0%, rgba(245, 247, 255, .99) 100%);
  border-color: rgba(14, 165, 233, .3);
  box-shadow: 0 -2px 30px rgba(14, 165, 233, .08);
}

html[data-theme="light"] .ps-pan-header {
  background: rgba(14, 165, 233, .05);
  border-bottom-color: rgba(14, 165, 233, .12);
}

html[data-theme="light"] .ps-pan-svc-name {
  color: #1e293b;
}

html[data-theme="light"] .ps-pan-svc-group {
  color: #64748b;
}

html[data-theme="light"] .ps-pan-sidebar {
  border-right-color: rgba(0, 0, 0, .08);
}

html[data-theme="light"] .ps-pan-divider {
  background: rgba(0, 0, 0, .07);
}

html[data-theme="light"] .ps-detail-key {
  color: #64748b;
}

html[data-theme="light"] .ps-detail-row {
  border-bottom-color: rgba(0, 0, 0, .06);
}

html[data-theme="light"] .ps-pan-btn {
  background: rgba(0, 0, 0, .05);
  border-color: rgba(0, 0, 0, .1);
  color: #64748b;
}

html[data-theme="light"] .ps-pan-btn:hover {
  background: rgba(0, 0, 0, .09);
  color: #1e293b;
}

html[data-theme="light"] .ps-pan-footer {
  border-top-color: rgba(0, 0, 0, .06);
}

html[data-theme="light"] .ps-timer-track {
  background: rgba(0, 0, 0, .07);
}

html[data-theme="light"] .ps-detail-header {
  background: linear-gradient(135deg, #bae6fd 0%, #e0f2fe 50%, #dbeafe 100%);
  border-color: rgba(14, 165, 233, .3);
}

html[data-theme="light"] .ps-detail-svc-name {
  color: #1e293b;
}

html[data-theme="light"] .ps-glass-block {
  background: rgba(255, 255, 255, .88);
  border-color: rgba(14, 165, 233, .2);
}

/* ===== Page background ===== */
html,
body,
main,
.mud-main-content,
.mud-layout,
.mud-container {
  background: var(--ps-bg-page) !important;
}

.ps-page-bg {
  background: var(--ps-bg-page) !important;
}

.ps-layout-container--tv {
  max-width: none;
  width: 100%;
  padding: 0 !important;
  margin: 0;
}

/* ===== Page header ===== */
.ps-page-header {
  background: linear-gradient(135deg, #0f2a4a 0%, #0a1628 50%, #071e3d 100%);
  border: 1px solid rgba(14, 165, 233, .4);
  border-radius: 14px;
  padding: 18px 24px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 32px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(14, 165, 233, .1);
}

.ps-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ps-header-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
}

.ps-page-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e2e8f0;
}

.ps-page-subtitle {
  font-size: .72rem;
  color: #94a3b8;
}

.ps-tv-mode .ps-page-title {
  font-size: 2rem;
}

.ps-tv-mode .ps-page-subtitle {
  font-size: 1rem;
}

.ps-tv-mode {
  min-height: 100vh;
  padding: 0 18px 12px;
}

.ps-main-content--tv {
  padding-top: 0 !important;
}

.ps-layout-container--tv,
.ps-layout-container--tv.mud-container {
  padding-top: 0 !important;
}

.ps-tv-mode .ps-page-header {
  margin: 0;
  padding: 12px 0 10px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.ps-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ===== Buttons ===== */
.ps-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid;
  transition: all .15s;
  letter-spacing: .02em;
  font-family: inherit;
  background: none;
}

.ps-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.ps-btn-ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
  color: var(--ps-text-muted);
}

.ps-btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, .1);
  color: var(--ps-text-primary);
}

/* ===== Global status banner ===== */
.ps-banner {
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  font-weight: 500;
}

.ps-tv-mode .ps-banner {
  padding: 18px 22px;
  font-size: 1.15rem;
}

.ps-banner--ok {
  background: rgba(16, 185, 129, .08);
  border: 1px solid rgba(16, 185, 129, .2);
  color: var(--ps-ok-text);
}

.ps-banner--warn {
  background: rgba(245, 158, 11, .08);
  border: 1px solid rgba(245, 158, 11, .2);
  color: var(--ps-warn-text);
}

.ps-banner--err {
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .2);
  color: var(--ps-err-text);
}

.ps-banner--loading {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--ps-text-muted);
}

/* ===== Groups grid ===== */
.ps-groups-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.ps-tv-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 44%) minmax(0, 56%);
  gap: 16px;
  align-items: stretch;
  height: calc(100vh - 92px);
}

.ps-tv-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ps-tv-right {
  min-width: 0;
  display: flex;
}

.ps-tv-mode .ps-groups-grid {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .ps-groups-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Group card ===== */
.ps-group-card,
.ps-panorama {
  background: linear-gradient(135deg, rgba(30, 45, 80, .95) 0%, rgba(12, 18, 40, .98) 100%);
  border: 1px solid rgba(14, 165, 233, .35);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 1px rgba(14, 165, 233, .08);
  transition: border-color .2s, box-shadow .2s;
}

.ps-tv-mode .ps-group-card,
.ps-tv-mode .ps-panorama {
  padding: 14px 18px;
}

.ps-group-card:hover,
.ps-panorama:hover {
  border-color: rgba(14, 165, 233, .6);
  box-shadow: 0 4px 24px rgba(14, 165, 233, .15), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.ps-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.ps-group-name {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #7dd3fc;
}

.ps-tv-mode .ps-group-name {
  font-size: .92rem;
}

.ps-tv-mode .ps-group-state {
  font-size: .92rem;
}

.ps-group-state {
  font-size: .7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ps-state--ok {
  color: var(--ps-ok-text);
}

.ps-state--warn {
  color: var(--ps-warn-text);
}

.ps-state--err {
  color: var(--ps-err-text);
}

/* ===== Service row (inside group card) ===== */
.ps-svc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  cursor: pointer;
  border-radius: 6px;
  transition: background .12s;
}

.ps-svc-row:last-child {
  border-bottom: none;
}

.ps-svc-row:hover {
  background: rgba(255, 255, 255, .04);
}

.ps-svc-row--active {
  background: rgba(14, 165, 233, .12) !important;
  outline: 1px solid rgba(14, 165, 233, .3);
}

.ps-svc-name {
  flex: 1;
  font-size: .81rem;
  font-weight: 500;
  color: #e2e8f0;
  line-height: 1.4;
}

.ps-tv-mode .ps-svc-name {
  font-size: 1rem;
  font-weight: 600;
}

/* ===== Mini uptime sparkline (90-day blocks) ===== */
.ps-mini-uptime {
  display: block;
  flex: 1;
  border-radius: 2px;
}

.ps-upd {
  flex: 1;
}

.ps-upd--ok {
  background: var(--mud-palette-success);
  opacity: .85;
}

.ps-upd--warn {
  background: var(--mud-palette-warning);
  opacity: .85;
}

.ps-upd--err {
  background: var(--mud-palette-error);
  opacity: .85;
}

.ps-upd--gray {
  background: var(--mud-palette-action-disabled-background);
}

.ps-fill--gray {
  background: rgba(255, 255, 255, .2);
}

/* ===== Uptime percentage ===== */
.ps-uptime-pct {
  font-size: .71rem;
  font-weight: 700;
  min-width: 38px;
  text-align: right;
}

.ps-tv-mode .ps-uptime-pct {
  font-size: .95rem;
  min-width: 60px;
}

.ps-pct--green {
  color: var(--ps-ok-text);
}

.ps-pct--orange {
  color: var(--ps-warn-text);
}

.ps-pct--red {
  color: var(--ps-err-text);
}

.ps-pct--gray {
  color: var(--ps-text-muted);
}

/* ===== Status dot ===== */
.ps-dot {
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
}

.ps-dot--green {
  width: 9px;
  height: 9px;
  background: var(--ps-ok);
  box-shadow: 0 0 5px var(--ps-ok);
}

.ps-dot--orange {
  width: 9px;
  height: 9px;
  background: var(--ps-warn);
  box-shadow: 0 0 5px var(--ps-warn);
}

.ps-dot--red {
  width: 9px;
  height: 9px;
  background: var(--ps-err);
  box-shadow: 0 0 5px var(--ps-err);
}

.ps-dot--gray {
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, .2);
}

/* ===== Panorama carousel ===== */
.ps-panorama {
  overflow: hidden;
}

.ps-tv-right .ps-panorama {
  width: 100%;
  height: 100%;
}

.ps-pan-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ps-text-primary);
}

.ps-tv-mode .ps-pan-title {
  font-size: 1.5rem;
}

.ps-pan-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ps-pan-nav-wrap {
  margin-top: auto;
  align-self: flex-start;
  padding-top: 8px;
}

.ps-pan-btn {
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  color: var(--ps-text-muted);
  cursor: pointer;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.ps-tv-mode .ps-pan-btn {
  width: 40px;
  height: 40px;
  font-size: 1.3rem;
}

.ps-pan-btn:hover {
  background: rgba(255, 255, 255, .13);
  color: var(--ps-text-primary);
}

.ps-pan-body {
  display: grid;
  grid-template-columns: 200px 1fr;
}

.ps-tv-mode .ps-pan-body {
  grid-template-columns: 280px 1fr;
  height: 100%;
}

.ps-pan-sidebar {
  border-right: 1px solid rgba(255, 255, 255, .06);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ps-pan-svc-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ps-text-primary);
}

.ps-pan-svc-group {
  font-size: .67rem;
  color: var(--ps-text-muted);
  margin-top: -5px;
}

.ps-tv-mode .ps-pan-svc-group {
  font-size: .95rem;
  margin-top: 0;
}

.ps-pan-svc-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  font-weight: 600;
}

.ps-tv-mode .ps-pan-svc-status {
  gap: 8px;
  font-size: 1.05rem;
}

.ps-pan-divider {
  height: 1px;
  background: rgba(255, 255, 255, .06);
}

.ps-uptime-label {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ps-text-muted);
}

.ps-tv-mode .ps-uptime-label {
  font-size: .9rem;
}

.ps-uptime-big {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.ps-tv-mode .ps-uptime-big {
  font-size: 2.6rem;
}

.ps-pan-content {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ps-pan-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.ps-pan-chart-grid--two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ps-pan-content-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ps-text-muted);
  margin-bottom: 12px;
}

.ps-tv-mode .ps-pan-content-label {
  font-size: .95rem;
}

.ps-chart-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: var(--ps-text-muted);
  font-size: .82rem;
}

/* Uptime fallback details */
.ps-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-size: .8rem;
}

.ps-tv-mode .ps-detail-row {
  padding: 12px 0;
  font-size: 1.1rem;
}

.ps-tv-mode .mud-alert {
  margin-bottom: 12px;
}

.ps-tv-mode .ps-banner {
  margin-bottom: 20px;
}

.ps-detail-row:last-child {
  border-bottom: none;
}

.ps-detail-key {
  color: var(--ps-text-muted);
}

.ps-detail-val {
  color: var(--ps-text-primary);
  font-weight: 500;
}

.ps-detail-val--ok {
  color: var(--ps-ok-text);
}

.ps-detail-val--warn {
  color: var(--ps-warn-text);
}

.ps-detail-val--err {
  color: var(--ps-err-text);
}

/* Timer bar */

/* ===== Metric chart (SVG) ===== */
.ps-chart-card {
  background: linear-gradient(135deg, rgba(18, 24, 55, .92) 0%, rgba(8, 11, 28, .96) 100%);
  border: 1px solid rgba(14, 165, 233, .28);
  border-radius: 12px;
  padding: 14px 14px 6px;
  overflow: hidden;
}

.ps-pan-content .ps-chart-card {
  padding: 10px 12px 4px;
}

.ps-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.ps-pan-content .ps-chart-header {
  margin-bottom: 6px;
  padding-bottom: 6px;
}

.ps-chart-title {
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ps-text-muted);
  font-weight: 600;
}

.ps-chart-last-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0ea5e9;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.ps-chart-svg {
  width: 100%;
  display: block;
}

.ps-pan-content .ps-chart-svg {
  height: 140px;
}

.ps-chart-glow-line {
  opacity: 0;
  transition: opacity 0.2s;
}

.ps-chart-card:hover .ps-chart-glow-line {
  opacity: 1;
}

.ps-chart-axlabel {
  font-size: 11px;
  fill: rgba(100, 116, 139, .8);
  font-family: ui-monospace, 'Cascadia Code', monospace;
}

.ps-chart-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  gap: 8px;
}

.ps-pan-content .ps-chart-placeholder {
  min-height: 140px;
}

.ps-chart-placeholder-icon {
  font-size: 1.5rem;
  opacity: .35;
}

.ps-chart-placeholder-text {
  font-size: .78rem;
  color: var(--ps-text-muted);
}

.ps-chart-shimmer {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .03) 25%, rgba(255, 255, 255, .07) 50%, rgba(255, 255, 255, .03) 75%);
  background-size: 200% 100%;
  animation: ps-shimmer 1.8s infinite;
}

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

  100% {
    background-position: -200% 0
  }
}

html[data-theme="light"] .ps-chart-card {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(14, 165, 233, .18);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

html[data-theme="light"] .ps-chart-header {
  border-bottom-color: rgba(0, 0, 0, .06);
}

html[data-theme="light"] .ps-chart-last-val {
  color: #0ea5e9;
}

html[data-theme="light"] .ps-chart-axlabel {
  fill: rgba(71, 85, 105, .75);
}

.ps-tip {
  display: none;
  pointer-events: none;
}

.ps-datapoint:hover .ps-tip {
  display: block;
}

.ps-tip-bg {
  fill: rgba(6, 11, 20, .93);
  stroke: rgba(255, 255, 255, .1);
  stroke-width: 1;
}

.ps-tip-val {
  fill: #f1f5f9;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ps-tip-time {
  fill: rgba(148, 163, 184, .8);
  font-size: 10px;
}

html[data-theme="light"] .ps-tip-bg {
  fill: rgba(255, 255, 255, .96);
  stroke: rgba(0, 0, 0, .12);
}

html[data-theme="light"] .ps-tip-val {
  fill: #1e293b;
}

html[data-theme="light"] .ps-chart-shimmer {
  background: linear-gradient(90deg, rgba(0, 0, 0, .03) 25%, rgba(0, 0, 0, .07) 50%, rgba(0, 0, 0, .03) 75%);
  background-size: 200% 100%;
}

.ps-text-shimmer {
  display: inline-block;
  height: .85em;
  border-radius: 4px;
  vertical-align: middle;
  background: linear-gradient(90deg, rgba(255, 255, 255, .03) 25%, rgba(255, 255, 255, .07) 50%, rgba(255, 255, 255, .03) 75%);
  background-size: 200% 100%;
  animation: ps-shimmer 1.8s infinite;
}

html[data-theme="light"] .ps-text-shimmer {
  background: linear-gradient(90deg, rgba(0, 0, 0, .04) 25%, rgba(0, 0, 0, .09) 50%, rgba(0, 0, 0, .04) 75%);
  background-size: 200% 100%;
}

/* ===== Service detail page ===== */
.ps-detail-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ps-detail-header {
  background: linear-gradient(135deg, #0f2a4a 0%, #0a1628 50%, #071e3d 100%);
  border: 1px solid rgba(14, 165, 233, .4);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
}

.ps-detail-svc-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ps-text-primary);
  flex: 1;
}

.ps-section-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ps-text-muted);
  margin-bottom: 10px;
}

.ps-glass-block {
  background: linear-gradient(135deg, rgba(30, 45, 80, .95) 0%, rgba(12, 18, 40, .98) 100%);
  border: 1px solid rgba(14, 165, 233, .35);
  border-radius: 12px;
  padding: 20px;
}

/* ===== Git Graph Card ===== */
.ps-git-card {
  background: linear-gradient(135deg, rgba(30, 45, 80, .95) 0%, rgba(12, 18, 40, .98) 100%);
  border: 1px solid rgba(14, 165, 233, .35);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 1px rgba(14, 165, 233, .08);
  transition: border-color .2s, box-shadow .2s;
  margin-top: 24px;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 12px;
}

.ps-git-skeleton-row {
  display: flex;
  gap: 12px;
  align-items: center;
  height: 28px;
  padding: 0 4px;
}

.ps-git-loader {
  text-align: center;
  color: var(--ps-text-muted);
  font-size: 11px;
  padding: 8px 0;
}

.ps-git-compare-section {
  margin-top: 14px;
}

.ps-git-compare-section-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ps-text-muted);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  margin-bottom: 4px;
}

.ps-git-compare-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 4px;
  border-radius: 4px;
}

.ps-git-compare-row:hover { background: rgba(255, 255, 255, .03); }

.ps-git-branch-chip {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 80px;
}

.ps-git-compare-arrow {
  color: var(--ps-text-muted);
  flex-shrink: 0;
}

.ps-git-status-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
  font-weight: 600;
}

.ps-git-status-badge--green {
  background: rgba(63, 185, 80, .15);
  color: #3fb950;
}

.ps-git-status-badge--orange {
  background: rgba(227, 179, 65, .15);
  color: #e3b341;
}

.ps-git-status-badge--red {
  background: rgba(247, 129, 102, .15);
  color: #f78166;
}

.ps-git-status-badge--muted {
  color: var(--ps-text-muted);
}

html[data-theme="light"] .ps-git-card {
  background: #fff;
  border-color: rgba(0, 0, 0, .12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

html[data-theme="light"] .ps-git-compare-section-title {
  border-bottom-color: #d0d7de;
}

html[data-theme="light"] .ps-git-compare-row:hover { background: rgba(0, 0, 0, .03); }
