/* URC Autonomous Mobile Device Cloud — Living Remote Glass Styles (Atelier v2026.15 · Zero-Hex Pure rgb() · Zero-CDN) */
@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ep-void: rgb(3 7 18);
  --ep-bg: rgb(3 7 18);
  --bg-deep: rgb(3 7 18);
  --bg-surface: rgb(11 15 25);
  --bg-elevated: rgb(17 24 39);
  --line-dim: rgba(248, 250, 252, 0.1);
  --line-bright: rgba(16, 185, 129, 0.35);
  --accent: rgb(16 185 129);
  --accent-soft: rgba(16, 185, 129, 0.15);
  --accent-glow: rgba(16, 185, 129, 0.4);
  --fg-main: rgb(248 250 252);
  --fg-dim: rgb(148 163 184);
  --fg-subtle: rgb(100 116 139);
  --danger: rgb(251 113 133);
  --font-sans: 'Geist', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.glass-body {
  background-color: var(--bg-deep);
  color: var(--fg-main);
  font-family: var(--font-sans);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* ---------- TOPBAR ---------- */
.glass-topbar {
  height: 52px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--line-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
  z-index: 50;
}

.glass-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

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

.meta-pill {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg-dim);
  border: 1px solid var(--line-dim);
}

.meta-pill.green {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(16, 185, 129, 0.25);
}

.meta-pill.amber {
  background: rgba(245, 158, 11, 0.15);
  color: rgb(245 158 11);
  border-color: rgba(245, 158, 11, 0.3);
}

.meta-pill.blue {
  background: rgba(59, 130, 246, 0.15);
  color: rgb(96 165 250);
  border-color: rgba(59, 130, 246, 0.3);
}

.meta-pill.red {
  background: rgba(239, 68, 68, 0.15);
  color: rgb(248 113 113);
  border-color: rgba(239, 68, 68, 0.3);
}

.glass-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-main);
  z-index: 1000;
  max-width: 400px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  pointer-events: none;
  line-height: 1.5;
}

.glass-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@supports selector(:popover-open) {
  .glass-toast[popover] {
    inset: auto;
    bottom: 24px;
    right: 24px;
    margin: 0;
    z-index: auto;
  }
  .glass-toast:popover-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.glass-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.glass-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dim);
  color: var(--fg-main);
  padding: 7px 14px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--fg-subtle);
  transform: translateY(-1px);
}

.glass-btn:active {
  transform: translateY(0);
}

.glass-btn.primary {
  background: var(--accent);
  color: rgb(4 18 12);
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

.glass-btn.primary:hover {
  background: rgb(52 211 153);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

/* ---------- LIVING STAGE ---------- */
.glass-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-deep);
  background-image: radial-gradient(circle at center, rgb(17 24 39) 0%, rgb(7 9 14) 75%);
  padding: 16px;
  gap: 24px;
}

/* ---------- PHOTOREALISTIC DEVICE CHASSIS ---------- */
.device-bezel {
  width: 420px;
  height: 840px;
  max-height: calc(100vh - 80px);
  aspect-ratio: 1 / 2;
  background: rgb(17 20 28);
  border: 12px solid rgb(30 36 48);
  border-radius: 46px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    0 24px 60px -12px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(16, 185, 129, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Speaker & Camera */
.device-hardware-top {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgb(0 0 0);
  z-index: 10;
  position: relative;
}

.device-speaker {
  width: 54px;
  height: 4px;
  background: rgb(42 49 61);
  border-radius: 4px;
}

.device-camera {
  width: 8px;
  height: 8px;
  background: rgb(22 28 36);
  border: 1px solid rgb(45 55 72);
  border-radius: 50%;
}

/* Screen Surface */
.device-screen-container {
  flex: 1;
  position: relative;
  background: rgb(0 0 0);
  overflow: hidden;
  cursor: crosshair;
}

#device-touch-surface {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.touch-indicator {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  border: 2px solid var(--accent);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.touch-indicator.active {
  transform: translate(-50%, -50%) scale(1);
}

.stream-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 14, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-dim);
  font-size: 13px;
  font-family: var(--font-mono);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stream-overlay.visible {
  opacity: 1;
}

/* Bottom Hardware Navigation Keys */
.device-nav-bar {
  height: 38px;
  background: rgb(0 0 0);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 10;
}

.nav-key {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.nav-key:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.nav-key:active {
  transform: scale(0.9);
}

[hidden] {
  display: none !important;
}

/* ---------- AUDIT HUD SCORECARD ---------- */
.audit-hud {
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: 360px;
  background: rgba(15, 20, 31, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-bright);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 16px;
  animation: slide-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

@keyframes slide-in {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-dim);
  padding-bottom: 12px;
}

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

.hud-icon {
  color: var(--accent);
  font-size: 18px;
}

.hud-header h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hud-close-btn {
  background: transparent;
  border: none;
  color: var(--fg-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}

.hud-close-btn:hover {
  color: var(--fg-main);
  background: rgba(255, 255, 255, 0.08);
}

.hud-score-card {
  background: var(--bg-surface);
  border: 1px solid var(--line-dim);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hud-score-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px var(--accent-glow);
}

.score-value {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent);
  line-height: 1;
}

.score-denom {
  font-size: 9px;
  color: var(--fg-subtle);
  font-family: var(--font-mono);
}

.hud-score-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.verdict-pill {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  display: inline-block;
  color: var(--accent);
}

.target-url {
  font-size: 11px;
  color: var(--fg-subtle);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
  font-family: var(--font-mono);
}

.hud-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hud-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-dim);
  border-radius: 8px;
  padding: 10px 12px;
}

.check-status {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.check-status.pass {
  background: var(--accent-soft);
  color: var(--accent);
}

.check-status.warn {
  background: rgba(234, 179, 8, 0.15);
  color: rgb(234 179 8);
}

.check-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.check-info strong {
  font-size: 12px;
  font-weight: 600;
}

.check-info small {
  font-size: 10.5px;
  color: var(--fg-dim);
}

.evidence-thumb {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line-dim);
  display: block;
}

/* ---------- FLIGHT DECK HUD ---------- */
.flight-deck-hud {
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: 440px;
  background: rgba(15, 20, 31, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-bright);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  z-index: 110;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 16px;
  animation: slide-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

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

.deck-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--line-dim);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.deck-stat-label {
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--fg-subtle);
  letter-spacing: 0.05em;
}

.deck-stat-value {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent);
}

.deck-activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.deck-activity-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-dim);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  transition: background 0.15s ease;
}

.deck-activity-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.deck-activity-item.blocked {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.05);
}

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

.deck-tag-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.deck-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg-dim);
}

.deck-tag.agent {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent);
  font-weight: 700;
}

.deck-tag.node {
  background: rgba(59, 130, 246, 0.15);
  color: rgb(96 165 250);
  font-weight: 600;
}

.deck-tag.status-ok {
  color: var(--accent);
}

.deck-tag.status-blocked {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
  font-weight: 700;
}

.deck-activity-action {
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-main);
  word-break: break-all;
}

.deck-activity-target {
  font-size: 10.5px;
  color: var(--fg-subtle);
  word-break: break-all;
}

.deck-activity-receipt {
  font-size: 9.5px;
  color: var(--fg-dim);
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 4px;
}

.deck-empty-state {
  text-align: center;
  color: var(--fg-subtle);
  font-size: 12px;
  padding: 24px 0;
}

.deck-admin-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--line-dim);
  border-radius: 8px;
  padding: 12px;
}

.admin-node-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--fg-main);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-node-row:last-child {
  border-bottom: none;
}

.admin-btn-group {
  display: flex;
  gap: 6px;
}

.admin-btn-group .macro-btn {
  padding: 3px 8px;
  font-size: 10px;
}

/* ---------- TOUCH RIPPLE LAYER & CONCENTRIC PULSES ---------- */
.touch-ripple-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.touch-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  border: 2px solid var(--accent);
  background-color: transparent;
  background-image: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, rgba(16, 185, 129, 0.05) 70%, transparent 100%);
  transform: translate(-50%, -50%) scale(0.2);
  animation: ripple-pulse 0.45s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

.touch-ripple.long-press {
  border-color: rgb(56 189 248);
  background-color: transparent;
  background-image: radial-gradient(circle, rgba(56, 189, 248, 0.45) 0%, rgba(56, 189, 248, 0.1) 70%, transparent 100%);
  animation: ripple-long-press 0.5s ease-out forwards;
}

@keyframes ripple-pulse {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

@keyframes ripple-long-press {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; border-width: 3px; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.9; border-width: 2px; }
  100% { transform: translate(-50%, -50%) scale(2.0); opacity: 0; border-width: 1px; }
}

/* ---------- QUICK TYPE INPUT BAR ---------- */
.quick-type-bar {
  background: rgb(0 0 0);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px 14px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  width: 100%;
}

.quick-type-bar input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: rgb(255 255 255);
  font-family: var(--font-sans);
  font-size: 11px;
  padding: 7px 10px;
  outline: none;
  min-width: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.quick-type-bar input:focus {
  border-color: var(--accent);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.quick-type-bar input::placeholder {
  color: var(--fg-subtle);
  font-size: 10.5px;
}

.quick-type-btn {
  background: var(--accent);
  color: rgb(4 18 12);
  border: none;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.quick-type-btn:hover {
  background: rgb(52 211 153);
}

/* ---------- BARRIO QUICK DOCK ---------- */
.barrio-quick-dock {
  background: rgba(15, 20, 31, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-bright);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  width: 220px;
  flex-shrink: 0;
  z-index: 10;
  user-select: none;
}

.dock-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dock-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.dock-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.dock-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: rgb(241 245 249);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.dock-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(2px);
}

.dock-btn:active {
  transform: translateX(0);
}

.dock-btn.highlight {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--accent);
}

.dock-btn.highlight:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: var(--accent);
}

/* ---------- SOVEREIGN TOKEN UNLOCK MODAL ---------- */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 8, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modal-fade-in 0.2s ease-out;
}

.auth-modal-dialog {
  background: rgb(15 20 32);
  border: 1px solid var(--line-bright);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(16, 185, 129, 0.15);
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.auth-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.auth-modal-icon {
  font-size: 28px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-modal-title-wrap {
  flex: 1;
}

.auth-modal-title-wrap h3 {
  font-size: 16px;
  font-weight: 700;
  color: rgb(255 255 255);
  margin-bottom: 4px;
}

.auth-modal-title-wrap p {
  font-size: 12px;
  color: var(--fg-dim);
  line-height: 1.4;
}

.auth-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-label {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--fg-subtle);
  letter-spacing: 0.05em;
}

.auth-input-group {
  display: flex;
  gap: 8px;
}

.auth-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dim);
  border-radius: 8px;
  color: rgb(255 255 255);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 12px;
  outline: none;
  transition: all 0.15s ease;
}

.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.05);
}

.auth-error {
  font-size: 11px;
  font-family: var(--font-mono);
  color: rgb(248 113 113);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 6px;
  padding: 8px 12px;
}

.auth-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.glass-btn.large {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  width: 100%;
  justify-content: center;
}

@keyframes modal-fade-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
  .glass-stage {
    flex-direction: column;
    overflow-y: auto;
    padding: 12px;
  }
  .barrio-quick-dock {
    width: 100%;
    max-width: 420px;
  }
  .dock-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Who holds the phone (2026-10-20) */
.lease-banner {
  position: absolute; top: 18px; left: 24px; z-index: 30;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  width: min(300px, calc(50vw - 260px)); padding: 12px 16px; border-radius: 14px;
  font-size: 14px; line-height: 1.4; backdrop-filter: blur(10px);
}
.lease-banner[hidden] { display: none; }
.lease-banner.free { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.35); color: rgb(191 236 207); }
.lease-banner.held { background: rgba(245, 165, 36, 0.14); border: 1px solid rgba(245, 165, 36, 0.45); color: rgb(248 207 134); }
.lease-banner .glass-btn { min-height: 40px; }
@media (max-width: 1100px) {
  .lease-banner { position: static; width: auto; max-width: 92vw; margin: 0 auto 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition: none !important; } }
