/* ═══════════════════════════════════════════════════════════════════════════
   GAMMAVISION LONG-TERM INSTITUTIONAL DESK NAVIGATION BAR & MODALS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Top Bar Container ── */
.desk-nav-container {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  color: #e2e8f0;
  user-select: none;
}

/* ── Static Asset Label (SPX) ── */
.desk-nav-asset {
  font-weight: 800;
  font-size: 13px;
  color: #ffffff;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: default;
}

/* ── Nav Buttons ── */
.desk-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 4px 8px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
}

.desk-nav-btn:hover,
.desk-nav-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.desk-nav-chevron {
  display: inline-block;
  font-size: 9px;
  opacity: 0.6;
  margin-left: 1px;
  transition: transform 0.15s ease;
}

.desk-nav-btn.active .desk-nav-chevron {
  transform: rotate(180deg);
}

.desk-nav-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.14);
  margin: 0 4px;
}

/* ── Lock and Auto Action Buttons ── */
.desk-action-btn,
.desk-nav-btn.desk-toggle-btn {
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  user-select: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.desk-action-btn:hover,
.desk-nav-btn.desk-toggle-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.desk-action-btn.active,
.desk-nav-btn.desk-toggle-btn.active {
  color: #ffffff !important;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.18);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.desk-action-btn .lock-label,
.desk-action-btn .auto-label,
.desk-toggle-btn .lock-label,
.desk-toggle-btn .auto-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: inherit;
}

.desk-action-btn.active .lock-label,
.desk-action-btn.active .auto-label,
.desk-toggle-btn.active .lock-label,
.desk-toggle-btn.active .auto-label {
  color: #ffffff !important;
}

/* ── Generic Popup Panel (Floating Dropdowns) ── */
.desk-nav-popup {
  position: absolute;
  top: 36px;
  background: #161618;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.5);
  z-index: 10050;
  display: none;
  flex-direction: column;
  padding: 12px;
  box-sizing: border-box;
}

.desk-nav-popup.visible {
  display: flex;
}

.desk-nav-popup-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

/* ── Timeframe Popup ── */
#desk-tf-popup {
  width: 330px;
}

.desk-tf-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.desk-tf-label {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  min-width: 50px;
}

.desk-tf-pills {
  display: flex;
  gap: 4px;
  flex: 1;
}

.desk-tf-pill {
  flex: 1;
  padding: 6px 0;
  text-align: center;
  background: #202024;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.desk-tf-pill:hover {
  background: #2a2a2e;
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.desk-tf-pill.active {
  background: rgba(0, 255, 136, 0.16);
  border-color: #00ff88;
  color: #00ff88;
}

.desk-btn-apply {
  background: #00d659;
  color: #000000;
  font-weight: 700;
  font-size: 12px;
  border: none;
  border-radius: 4px;
  padding: 7px 0;
  width: 100%;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: center;
}

.desk-btn-apply:hover {
  background: #00ff6a;
}

/* ── Chart Style Dropdown ── */
#desk-style-popup {
  width: 150px;
  padding: 6px 0;
}

.desk-style-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.desk-style-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.desk-style-item.active {
  color: #00ff88;
}

/* ── Indicators Popup (Clean Single List, Eye on Right) ── */
#desk-indicators-popup {
  max-height: 580px;
  overflow-y: auto;
  padding: 10px 8px;
}

.desk-ind-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.desk-ind-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.desk-ind-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.desk-ind-name {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  flex: 1;
  text-align: left;
}

.desk-ind-row.active .desk-ind-name {
  color: #ffffff;
}

.desk-ind-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #8e8e93;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  margin-right: 6px;
  transition: color 0.15s ease, opacity 0.15s ease;
  user-select: none;
  flex-shrink: 0;
  opacity: 0.75;
}

.desk-ind-info-btn svg {
  pointer-events: none;
}

.desk-ind-info-btn:hover {
  color: #ffffff;
  opacity: 1;
}

.desk-ind-eye-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Property Modal (Price settings & Candle Customizer) ── */
.desk-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10100;
  display: none;
  align-items: center;
  justify-content: center;
}

.desk-modal-overlay.visible {
  display: flex;
}

.desk-modal-card {
  width: 400px;
  max-height: 88vh;
  overflow-y: auto;
  background: #161618;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9);
  padding: 16px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  color: #e2e8f0;
}

.desk-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.desk-modal-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.desk-modal-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
}

.desk-modal-close-btn:hover {
  color: #ffffff;
}

.desk-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
  margin-top: 14px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.desk-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
}

.desk-form-label {
  color: #cbd5e1;
  font-weight: 500;
}

.desk-color-swatch-btn {
  width: 34px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  background: #ffffff;
  transition: transform 0.1s ease;
  box-sizing: border-box;
}

input[type="color"].desk-color-swatch-btn {
  padding: 0;
  -webkit-appearance: none;
  background: transparent;
  border: none;
}
input[type="color"].desk-color-swatch-btn::-webkit-color-swatch-wrapper {
  padding: 0;
}
input[type="color"].desk-color-swatch-btn::-webkit-color-swatch {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.desk-color-swatch-btn:hover {
  transform: scale(1.08);
  border-color: #ffffff;
}

.desk-form-select,
.desk-form-input {
  background: #202024;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  outline: none;
}

/* ── Integrated Candle Color Picker Popover ── */
.desk-picker-popover {
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 12px;
  background: #18181a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.5);
}

.desk-picker-title {
  font-size: 11px;
  font-weight: 800;
  color: #00ff88;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  text-align: center;
}

.desk-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.desk-picker-swatch {
  height: 24px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.desk-picker-swatch:hover {
  transform: scale(1.15);
  border-color: #ffffff;
  z-index: 2;
}

.desk-picker-native-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 4px 0;
  font-size: 11.5px;
}

.desk-picker-native-row input[type="color"] {
  width: 32px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}

.desk-opacity-slider-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.desk-opacity-header {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.desk-opacity-header span:last-child {
  color: #ffffff;
}

.desk-opacity-slider-box input[type="range"] {
  width: 100%;
  accent-color: #00ff88;
  cursor: pointer;
}

.desk-form-footer {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.desk-btn-close {
  flex: 1;
  background: #202024;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 7px 0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.desk-btn-save {
  flex: 1;
  background: #00d659;
  color: #000000;
  border: none;
  border-radius: 4px;
  padding: 7px 0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* ── Template Modal ── */
.desk-tpl-form {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.desk-tpl-input {
  flex: 1;
  background: #202024;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  outline: none;
}

.desk-tpl-add-btn {
  background: #00d659;
  color: #000000;
  border: none;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.desk-tpl-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.desk-tpl-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #1a1a1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  transition: all 0.12s ease;
}

.desk-tpl-item:hover {
  background: #222226;
  border-color: rgba(255, 255, 255, 0.16);
}

.desk-tpl-item.active {
  border-color: rgba(0, 255, 136, 0.5);
}

.desk-tpl-item-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  flex: 1;
  letter-spacing: 0.03em;
}

.desk-tpl-action-btn {
  background: transparent;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.12s ease;
}

.desk-tpl-action-btn:hover {
  opacity: 1;
}

/* ── Asset Selector Popup Styling ── */
.desk-asset-popup {
  min-width: 220px;
  max-height: 480px;
  overflow-y: auto;
  padding: 6px;
}
.desk-asset-group-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #71717a;
  padding: 6px 8px 3px 8px;
}
.desk-asset-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 4px;
}
.desk-asset-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s ease;
}
.desk-asset-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.desk-asset-item.active {
  background: rgba(0, 255, 136, 0.15);
}
.desk-asset-item.active .asset-symbol {
  color: #00ff88;
}
.asset-symbol {
  font-weight: 700;
  font-size: 12px;
  color: #ffffff;
}
.asset-desc {
  font-size: 11px;
  color: #8b949e;
}


/* ─── SESSION & INTRADAY INDICATORS SECTIONS (DESK NAV) ─── */
.desk-ind-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  margin-top: 8px;
  margin-bottom: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 2.5px solid #00ff88;
}
.desk-ind-section-header.intraday-header {
  border-left-color: #0a84ff;
  margin-top: 12px;
}
.desk-ind-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #e2e8f0;
}
.desk-ind-section-badge {
  font-size: 8.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(0, 255, 136, 0.15);
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.3);
}
.desk-ind-section-badge.intraday-badge {
  background: rgba(10, 132, 255, 0.15);
  color: #0a84ff;
  border: 1px solid rgba(10, 132, 255, 0.3);
}
.desk-ind-section-badge.disabled-mode {
  background: rgba(255, 69, 58, 0.15);
  color: #ff453a;
  border: 1px solid rgba(255, 69, 58, 0.3);
}
.desk-ind-row.disabled-row {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  filter: grayscale(80%);
}


/* ═══════════════════════════════════════════════════════════════════════════
   APPLE UI OVERHAUL: GLASS CARD BORDERS, AUTO-HIDE NAVBAR & APPLE SWITCHES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Top Edge Sensor for Hover Reveal */
.desk-top-bar-sensor {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  z-index: 10015;
  background: transparent;
  pointer-events: auto;
}

/* Desk Top Bar Auto-Hide & Apple Typography */
/* Desk Top Bar (By default pinned/active, auto-hide only in .full-mode) */
.desk-top-bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 32px !important;
  z-index: 10020 !important;
  background: rgba(18, 18, 20, 0.96) !important;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  transform: translateY(0) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
  will-change: transform;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "SF Pro", system-ui, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* In Full Mode: auto-hide navbar unless hovered or popup open */
.desk-top-bar.full-mode {
  transform: translateY(-100%) !important;
}

.desk-top-bar.full-mode:hover,
.desk-top-bar.full-mode.is-visible,
.desk-top-bar.full-mode.has-popup-open {
  transform: translateY(0) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.75) !important;
}

/* Sensor only active when full mode is active */
.desk-top-bar-sensor {
  display: none !important;
}

body.desk-nav-full-mode .desk-top-bar-sensor {
  display: block !important;
}

/* Glass Card Style for Modals & Dropdown Popups (Image 4 / VIX Card Style) */
.desk-modal-card,
.desk-nav-popup,
#desk-tf-popup,
#desk-style-popup,
#desk-indicators-popup,
.desk-asset-popup,
.desk-picker-popover {
  background: rgba(20, 20, 23, 0.96) !important;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  border-left: 1.5px solid rgba(255, 255, 255, 0.18) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  box-shadow: inset 1px 1px 0 0 rgba(255, 255, 255, 0.12), 0 16px 48px rgba(0, 0, 0, 0.85) !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "SF Pro", system-ui, sans-serif !important;
}

/* Replace Green Buttons with Dark Gray Glass Opaque Buttons */
.desk-tpl-add-btn,
.desk-btn-save,
.desk-btn-apply {
  background: rgba(36, 36, 40, 0.92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: #f1f5f9 !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  border-left: 1.5px solid rgba(255, 255, 255, 0.18) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 6px !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif !important;
  box-shadow: inset 1px 1px 0 0 rgba(255, 255, 255, 0.1), 0 2px 8px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.15s ease !important;
}

.desk-tpl-add-btn:hover,
.desk-btn-save:hover,
.desk-btn-apply:hover {
  background: rgba(48, 48, 54, 0.96) !important;
  border-top-color: rgba(255, 255, 255, 0.32) !important;
  border-left-color: rgba(255, 255, 255, 0.26) !important;
  color: #ffffff !important;
}

/* Template Modal Items */
.desk-tpl-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  background: rgba(28, 28, 32, 0.9) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 8px !important;
  transition: all 0.12s ease !important;
}

.desk-tpl-item:hover {
  background: rgba(40, 40, 45, 0.95) !important;
  border-top-color: rgba(255, 255, 255, 0.22) !important;
  border-left-color: rgba(255, 255, 255, 0.18) !important;
}

.desk-tpl-item.active {
  background: rgba(34, 34, 38, 0.95) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.28) !important;
  border-left: 1.5px solid rgba(255, 255, 255, 0.22) !important;
}

.desk-tpl-input {
  background: rgba(26, 26, 30, 0.95) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.16) !important;
  border-left: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 6px !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif !important;
}

/* Template Delete Button (Text 'Elimina' in dark red) */
.desk-tpl-delete-btn {
  background: rgba(185, 28, 28, 0.14) !important;
  border-top: 1px solid rgba(220, 38, 38, 0.32) !important;
  border-left: 1px solid rgba(220, 38, 38, 0.25) !important;
  border-bottom: 1px solid rgba(220, 38, 38, 0.08) !important;
  border-right: 1px solid rgba(220, 38, 38, 0.08) !important;
  border-radius: 5px !important;
  padding: 3px 8px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif !important;
  color: #dc2626 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
  margin-left: 4px !important;
}

.desk-tpl-delete-btn:hover {
  background: rgba(220, 38, 38, 0.28) !important;
  color: #f87171 !important;
  border-top-color: rgba(239, 68, 68, 0.5) !important;
  border-left-color: rgba(239, 68, 68, 0.4) !important;
}

/* Action buttons in template item (Refresh & Select) */
.desk-tpl-refresh-btn,
.desk-tpl-select-btn {
  background: transparent !important;
  border: none !important;
  padding: 2px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: opacity 0.15s ease, transform 0.15s ease !important;
}

.desk-tpl-refresh-btn:hover {
  opacity: 1 !important;
  transform: rotate(45deg);
}

.desk-tpl-select-btn:hover {
  opacity: 1 !important;
  transform: scale(1.1);
}

/* Apple iOS Toggle Switch for Indicators (Replaces Eye) */
.apple-toggle-switch {
  position: relative;
  width: 28px;
  height: 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}

.apple-toggle-knob {
  position: absolute;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}

.apple-toggle-switch.active {
  background: rgba(255, 255, 255, 0.32);
  border-top-color: rgba(255, 255, 255, 0.35);
  border-left-color: rgba(255, 255, 255, 0.28);
}

.apple-toggle-switch.active .apple-toggle-knob {
  transform: translateX(12px);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Indicators Sections: NO LEDs, NO Badges, Pure Clean Apple Headers */
.desk-ind-section-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 10px 4px 10px !important;
  margin-top: 8px !important;
  margin-bottom: 2px !important;
  border-radius: 0 !important;
  background: transparent !important;
  border-left: none !important;
}

.desk-ind-section-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.45) !important;
}

.desk-ind-section-badge {
  display: none !important;
}

/* Fullscreen Button and Timing ZG Button in Navbar */
.desk-fullscreen-btn,
.zg-header-btn,
.intensity-hm-btn {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  padding: 3px 8px !important;
  border-radius: 5px !important;
  color: rgba(255, 255, 255, 0.65) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  text-transform: uppercase !important;
  user-select: none !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
}

.desk-fullscreen-btn:hover,
.zg-header-btn:hover,
.intensity-hm-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.desk-fullscreen-btn.active,
.zg-header-btn.card-open,
.zg-header-btn.active,
.zg-header-btn.active-below,
.intensity-hm-btn.card-open,
.intensity-hm-btn.active {
  background: rgba(42, 42, 48, 0.95) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.26) !important;
  border-left: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  box-shadow: inset 1px 1px 0 0 rgba(255, 255, 255, 0.1) !important;
}

.zg-header-btn.over-75 {
  background: rgba(55, 55, 62, 0.98) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  border-left: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  box-shadow: inset 1px 1px 0 0 rgba(255, 255, 255, 0.18), 0 0 6px rgba(255, 255, 255, 0.25) !important;
}

/* Active Pills Dark Glass */
.desk-tf-pill.active {
  background: rgba(42, 42, 48, 0.92) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.24) !important;
  border-left: 1.5px solid rgba(255, 255, 255, 0.18) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  box-shadow: inset 1px 1px 0 0 rgba(255, 255, 255, 0.1) !important;
}

/* Minimal Micro-Chevron */
.desk-nav-chevron {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0.65 !important;
  margin-left: 2px !important;
  transition: transform 0.15s ease !important;
}

.desk-nav-btn.active .desk-nav-chevron {
  transform: rotate(180deg) !important;
}

/* ─── Apple Typography & Hierarchy ("un filo più grandi") ─── */
.desk-nav-btn {
  font-size: 12.5px !important;
  font-weight: 600 !important;
}

.desk-nav-asset {
  font-size: 13.5px !important;
  font-weight: 800 !important;
}

.desk-action-btn,
.desk-nav-btn.desk-toggle-btn,
.desk-action-btn .lock-label,
.desk-action-btn .auto-label,
.desk-toggle-btn .lock-label,
.desk-toggle-btn .auto-label,
.desk-fs-btn,
.desk-fullscreen-btn,
#full-label,
.zg-header-btn,
#zg-timer-dot,
#zg-label,
.zg-label,
.zg-header-text,
.intensity-hm-btn,
#intensity-hm-btn,
.intensity-hm-label,
#intensity-hm-label {
  font-size: 12px !important;
  font-weight: 700 !important;
}

.desk-ind-section-title {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

.desk-ind-name {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #f1f5f9 !important;
}

.desk-modal-title {
  font-size: 14.5px !important;
  font-weight: 700 !important;
}

.desk-tpl-item-name {
  font-size: 12.5px !important;
  font-weight: 700 !important;
}

.desk-tpl-add-btn,
.desk-btn-save,
.desk-btn-apply {
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* ─── Intensity HM (Hedge Profile Map Intensity Controller) ─── */
.intensity-hm-widget {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.intensity-hm-btn {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  padding: 3px 8px !important;
  border-radius: 5px !important;
  color: rgba(255, 255, 255, 0.65) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  text-transform: uppercase !important;
  user-select: none !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  outline: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.intensity-hm-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.intensity-hm-btn.card-open,
.intensity-hm-btn.active {
  background: rgba(42, 42, 48, 0.95) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.26) !important;
  border-left: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  box-shadow: inset 1px 1px 0 0 rgba(255, 255, 255, 0.1) !important;
}

.intensity-hm-label {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: inherit !important;
}

.intensity-hm-card {
  position: absolute !important;
  top: calc(100% + 5px) !important;
  left: 0 !important;
  right: auto !important;
  background: #000000 !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 6px !important;
  padding: 6px 14px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.95) !important;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 10050 !important;
  user-select: none;
  pointer-events: auto;
  white-space: nowrap;
}

.intensity-hm-val-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 44px;
}

.intensity-hm-val {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Mono", monospace, system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 0.5px !important;
  line-height: 1.1 !important;
  text-align: center !important;
}

.intensity-hm-sub {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif !important;
  font-size: 8px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.45) !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  margin-top: 3px !important;
  line-height: 1 !important;
  text-align: center !important;
}

.intensity-hm-sep {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.intensity-hm-ctrl-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

/* Slider Track & Thumb - Pure Apple Monochrome (NO LEDS!) */
.intensity-hm-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 140px;
  height: 4px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  margin: 2px 0;
  transition: background 0.15s ease;
}

.intensity-hm-slider:hover {
  background: rgba(255, 255, 255, 0.25);
}

.intensity-hm-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.intensity-hm-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.intensity-hm-slider::-webkit-slider-thumb:active {
  transform: scale(1.05);
}

.intensity-hm-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

/* Presets Row */
.intensity-hm-presets {
  display: flex;
  align-items: center;
  gap: 4px;
}

.intensity-hm-pill {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  padding: 2px 6px !important;
  border-radius: 3px !important;
  color: rgba(255, 255, 255, 0.6) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  cursor: pointer !important;
  transition: all 0.12s ease !important;
  user-select: none !important;
  outline: none !important;
  text-transform: uppercase !important;
}

.intensity-hm-pill:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25);
}

.intensity-hm-pill.active {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}
