/* ==============================================================================
   SCREEN BOX - HIGH-AVAILABILITY CLOUD STATION DASHBOARD
   Crafted for Tablets, Touchscreens & 64-Bit Terminals
   ============================================================================== */

:root {
  --bg-space: #06090e;
  --bg-surface: #0a0f18;
  --bg-card: rgba(14, 21, 33, 0.92);
  --bg-card-hover: rgba(20, 30, 48, 0.98);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-cyan: #38bdf8;
  --accent-blue: #0284c7;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #a855f7;

  /* Carrier brand identities */
  --c-postnord: #0085ca;
  --c-gls: #d97706;
  --c-dao: #e11d48;
  --c-bring: #15803d;
  --c-dhl: #ca8a04;

  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100vh;
  background-color: var(--bg-space);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body.one-pager-app {
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(ellipse at 15% 0%, rgba(2, 132, 199, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 100%, rgba(16, 185, 129, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
}

/* ==============================================================================
   1. TOP EXECUTIVE CONTROL HEADER (SCREEN BOX STYLE)
   ============================================================================== */
.ops-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 1.5rem;
  background: rgba(10, 15, 24, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 16px;
}

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

.brand-crest {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(56, 189, 248, 0.12));
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

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

.brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.station-tag {
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.06em;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Header Telemetry */
.header-telemetry {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hmi-online-button {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.telemetry-labels {
  display: flex;
  flex-direction: column;
}

.status-head-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.telem-status {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-green);
  letter-spacing: 0.05em;
}

.latency-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.telem-target {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.time-block {
  text-align: right;
  border-left: 1px solid var(--border-subtle);
  padding-left: 14px;
}

.clock-display {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.date-display {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.btn-lock-prime {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-lock-prime:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.4);
  color: var(--accent-rose);
}

/* ==============================================================================
   2. TOP SECTION: GLANCEABLE METRIC TILES
   ============================================================================== */
.ops-workspace {
  flex: 1;
  padding: 1.25rem;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tiles-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.metric-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.metric-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.25);
}

.metric-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
}

.tile-queue::before { background: linear-gradient(90deg, var(--accent-amber), #ea580c); }
.tile-collections::before { background: linear-gradient(90deg, var(--accent-green), #059669); }
.tile-storage::before { background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue)); }
.tile-scans::before { background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan)); }

.tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tile-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tile-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.04em;
}

.badge-queue { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-outgoing { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-storage { background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); border: 1px solid rgba(56, 189, 248, 0.3); }
.badge-incoming { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); border: 1px solid rgba(168, 85, 247, 0.3); }

.tile-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.tile-number-wrap {
  display: flex;
  flex-direction: column;
}

.tile-huge-number {
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.tile-sublabel {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* Rate Gauge */
.rate-gauge-box {
  text-align: right;
}

.rate-pct {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-green);
}

.rate-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}

.tile-footer-progress {
  margin-top: 4px;
}

.progress-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-green), #059669);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Capacity Chip & Status */
.capacity-status-chip,
.queue-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 9px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.queue-status-chip.active-alert {
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  animation: pulseAlert 2s infinite;
}

@keyframes pulseAlert {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.chip-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

.tile-footer-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Carrier Mini Tag Bar */
.carrier-tag-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.c-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
}

.tag-postnord { background: rgba(0, 133, 202, 0.15); color: #38bdf8; border-color: rgba(0, 133, 202, 0.3); }
.tag-dao { background: rgba(225, 29, 72, 0.15); color: #fb7185; border-color: rgba(225, 29, 72, 0.3); }
.tag-gls { background: rgba(217, 119, 6, 0.15); color: #fbbf24; border-color: rgba(217, 119, 6, 0.3); }
.tag-bring { background: rgba(21, 128, 61, 0.15); color: #4ade80; border-color: rgba(21, 128, 61, 0.3); }
.tag-dhl { background: rgba(202, 138, 4, 0.15); color: #fde047; border-color: rgba(202, 138, 4, 0.3); }

/* ==============================================================================
   3. MID SECTION: 2-COLUMN SPLIT WORKSPACE
   ============================================================================== */
.ops-center-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 1rem;
  flex: 1;
  min-height: 520px;
}

.ops-column {
  display: flex;
  flex-direction: column;
}

.ops-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.card-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 10px var(--accent-amber);
  animation: pulse 1.5s infinite;
}

.card-bar h3 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.card-chip-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

/* ==============================================================================
   4. CUSTOMER QUEUE CARDS (TOUCH-FIRST)
   ============================================================================== */
.queue-viewport {
  flex: 1;
  overflow-y: auto;
  max-height: 540px;
  padding-right: 6px;
}

.customer-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.customer-card {
  background: rgba(10, 15, 24, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.customer-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(14, 21, 33, 0.9);
}

.customer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-amber), var(--accent-cyan));
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ticket-number {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.wait-timer {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

.carrier-logo-frame {
  width: 64px;
  height: 42px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carrier-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.parcel-digits-box {
  display: flex;
  flex-direction: column;
}

.parcel-provider-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.parcel-digits-big {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: 0.05em;
}

.match-info-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge.in-shop {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.waiting {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.card-actions {
  display: flex;
  gap: 8px;
}

.btn-complete {
  flex: 1;
  min-height: 48px;
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.btn-complete:active {
  transform: scale(0.97);
}

.btn-hold {
  min-height: 48px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Empty Queue */
.empty-feed {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-icon { font-size: 2.8rem; margin-bottom: 8px; opacity: 0.6; }
.empty-text { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.empty-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* ==============================================================================
   5. RIGHT COLUMN: PARCEL SEARCH & TABLE
   ============================================================================== */
.search-panel-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.search-input-box {
  flex: 1;
  position: relative;
}

.search-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.search-field {
  width: 100%;
  min-height: 48px;
  background: rgba(10, 15, 24, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 16px 0 46px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}

.search-field:focus {
  border-color: var(--accent-cyan);
}

.carrier-select {
  min-height: 48px;
  background: rgba(10, 15, 24, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 0 14px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.parcel-viewport {
  flex: 1;
  overflow-y: auto;
  max-height: 470px;
}

.ops-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.ops-table th {
  background: rgba(10, 15, 24, 0.9);
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 10;
}

.ops-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.ops-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.table-digits {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.table-carrier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.table-loading-row {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.btn-table-action {
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  border: none;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  background: var(--accent-green);
  color: white;
  transition: opacity 0.2s ease;
}

.btn-table-action:hover {
  opacity: 0.9;
}

/* ==============================================================================
   6. PIN LOCK SCREEN OVERLAY (STAFF PIN: 3470)
   ============================================================================== */
.pin-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 9, 14, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pin-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.pin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.pin-lock-icon {
  font-size: 2.2rem;
  width: 64px;
  height: 64px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--border-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-title {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.pin-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: -6px;
}

.pin-dots-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 10px 0;
}

.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  background: transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pin-dot.filled {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  transform: scale(1.15);
}

.pin-dots-container.shake {
  animation: shakeDots 0.4s ease-in-out;
}

.pin-dots-container.shake .pin-dot {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
}

@keyframes shakeDots {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 290px;
}

.keypad-btn {
  min-height: 58px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.keypad-btn:active {
  background: var(--accent-cyan);
  color: #000;
  transform: scale(0.95);
}

.keypad-btn.action {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.pin-footer-security {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Toast Alerts */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Disruption Banner (Offline & Outage Shield) */
.disruption-banner {
  background: rgba(225, 29, 72, 0.15);
  border-bottom: 1px solid rgba(225, 29, 72, 0.35);
  padding: 8px 1.5rem;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.banner-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.banner-alert-icon {
  font-size: 1.2rem;
  color: #fb7185;
}

.banner-alert-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  color: #fecdd3;
}

.banner-alert-text strong {
  font-weight: 800;
  letter-spacing: 0.03em;
}

.banner-alert-text span {
  font-size: 0.7rem;
  color: #fda4af;
}

.btn-banner-retry {
  background: rgba(225, 29, 72, 0.3);
  border: 1px solid rgba(225, 29, 72, 0.5);
  color: #fff;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-banner-retry:hover {
  background: rgba(225, 29, 72, 0.5);
}

/* Header Quick Action Buttons */
.btn-head-action {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-head-action:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
}

/* PIN Lockout Alert (Brute-Force Shield) */
.pin-lockout-alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  text-align: center;
  animation: shake 0.4s ease;
}

/* Button Loading Spinner */
.spinner-sm {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

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

button:disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .tiles-section { grid-template-columns: repeat(2, 1fr); }
  .ops-center-row { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .tiles-section { grid-template-columns: 1fr; }
  .header-telemetry .time-block { display: none; }
}
