
:root {
  /* Backward-compatible variables for admin.html */
  --bg-space: #090d16;
  --bg-surface-solid: #0f172a;
  --bg-card-hover: #1e2d4d;
  --border-glow: #10b981;
  --text-secondary: #94a3b8;
  --text-green: #10b981;
}

[data-theme="light"] {
  --bg-space: #f8fafc;
  --bg-surface-solid: #ffffff;
  --bg-card-hover: #e2e8f0;
  --border-glow: #059669;
  --text-secondary: #475569;
  --text-green: #059669;
}

/* ==========================================================================
   FOCUSCITY — EUROPEAN TIME-BLOCKING & ZEN DIORAMA
   Bespoke Design System (Linear / Things 3 Inspired Aesthetic)
   Zero Shadows • Hairline Borders • Strict RAE & European Standards
   ========================================================================== */

:root, [data-theme="dark"] {
  /* Slate Dark Theme (Default) */
  --bg-app: #090d16;
  --bg-sidebar: #0f172a;
  --bg-surface: #131d33;
  --bg-card: #18233c;
  --bg-hover: #1e2d4d;
  --bg-input: #0c1424;

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-focus: #10b981;
  --border-gold: rgba(245, 158, 11, 0.3);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-gold: #f59e0b;
  --text-emerald: #10b981;

  --accent-primary: #10b981;
  --accent-secondary: #0ea5e9;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #8b5cf6;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
  --bg-app: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-surface: #ffffff;
  --bg-card: #f1f5f9;
  --bg-hover: #e2e8f0;
  --bg-input: #ffffff;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-focus: #059669;
  --border-gold: rgba(217, 119, 6, 0.4);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --text-gold: #d97706;
  --text-emerald: #059669;
}

/* Zero shadows strict rule */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  box-shadow: none !important;
  -webkit-font-smoothing: antialiased;
}

body, html {
  width: 100%;
  height: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  overflow: hidden;
  line-height: 1.5;
}

/* App Layout */
.app-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ==========================================================================
   🧭 BESPOKE SIDEBAR
   ========================================================================== */

.app-sidebar {
  width: 260px;
  min-width: 260px;
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  user-select: none;
  z-index: 50;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 18px 4px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-main);
}

.brand-subtitle {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.eu-tag {
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* Navigation Links */
.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 8px 8px 4px 8px;
}

.sidebar-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.12s ease;
}

.sidebar-nav-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.sidebar-nav-btn.active {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  color: var(--text-main);
  font-weight: 600;
}

.sidebar-nav-btn .nav-icon {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
}

.sidebar-nav-btn .nav-title {
  flex: 1;
  text-align: left;
}

.nav-counter, .nav-lvl-badge {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

.nav-tag-live {
  font-size: 0.6rem;
  font-weight: 800;
  background: #ef4444;
  color: #fff;
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.btn-icon-subtle {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0 4px;
}
.btn-icon-subtle:hover {
  color: var(--text-main);
}

.sidebar-categories-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.sidebar-cat-item:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.cat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-energy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
}

.energy-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.energy-icon {
  font-size: 1.1rem;
}

.energy-val {
  font-size: 0.95rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-gold);
}

.energy-lbl {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-dim);
}

.user-tier-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.tier-free {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
}

.tier-pro {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--text-gold);
}

/* Sidebar Tools Row: Flag only & Theme */
.sidebar-tools-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.btn-flag-only {
  background: transparent !important;
  border: none !important;
  font-size: 1.35rem;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: opacity 0.12s ease;
}

.btn-flag-only:hover {
  opacity: 0.75;
}

.lang-selector-wrap {
  position: relative;
}

.lang-dropdown-menu {
  position: absolute;
  bottom: 38px;
  left: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 120;
  min-width: 140px;
}

.lang-dropdown-menu.open { display: flex !important; }

.lang-opt-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.lang-opt-btn:hover {
  background: var(--bg-hover);
}

.btn-tool-icon {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.95rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
}

.btn-tool-icon:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

/* ==========================================================================
   🖥️ MAIN VIEWS & LAYOUT
   ========================================================================== */

.app-main-content {
  flex: 1;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background: var(--bg-app);
}

.app-view {
  display: none;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(6px);
  will-change: opacity, transform;
}

.app-view.active {
  display: block;
  animation: appViewFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes appViewFadeIn {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.996);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Specific smooth entrance for 3D City View */
#view-city.active {
  animation: cityViewFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cityViewFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.985);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}



.view-scroll-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 32px 40px;
}

.view-max-width {
  max-width: 860px;
  margin: 0 auto;
}

/* Day View Header */
.day-view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.day-heading {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.day-subheading {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.day-controls-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.day-nav-arrows {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2px;
}

.btn-nav-arrow {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.btn-nav-arrow:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.date-picker-input {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 2px 6px;
  outline: none;
  cursor: pointer;
}

.btn-subtle-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.12s ease;
}

.btn-subtle-pill:hover {
  background: var(--bg-hover);
  border-color: var(--border-focus);
}

/* Focus Overview Grid */
.focus-overview-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.overview-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.card-header-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.card-title-clean {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.badge-ratio {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-primary);
}

.progress-track-clean {
  width: 100%;
  height: 6px;
  background: var(--bg-input);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill-clean {
  height: 100%;
  background: var(--accent-primary);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

.districts-exp-chips {
  display: flex;
  gap: 6px;
}

.chip-dist {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 600;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}



.badge-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.diorama-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Smart Quick-Add Bar */
.quick-add-container {
  margin-bottom: 24px;
}

.quick-add-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}


.quick-add-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--trans-fast);
  width: 100%;
  box-sizing: border-box;
}

.quick-add-top-row {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.quick-add-bottom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .quick-add-input-wrapper {
    flex-direction: column !important;
    padding: 10px 12px !important;
    gap: 8px !important;
  }

  .quick-add-top-row {
    width: 100% !important;
  }

  .quick-add-bottom-row {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
  }

  .quick-add-bottom-row .quick-add-category-select {
    flex: 1 !important;
    min-width: 0 !important;
  }
}


.quick-add-icon {
  font-size: 1.1rem;
  color: var(--text-gold);
}

.quick-add-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.88rem;
  color: var(--text-main);
  font-family: var(--font-sans);
}

.quick-add-category-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  outline: none;
}

.quick-add-hints {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.hints-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hint-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 3px 8px 3px 4px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
  user-select: none;
}

.hint-chip:hover {
  border-color: var(--border-glow);
  background-color: var(--bg-card-hover);
  transform: translateY(-1px);
}

.hint-chip code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1.1;
  letter-spacing: -0.2px;
}

.hint-chip-time code {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.25);
}
[data-theme="dark"] .hint-chip-time code {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.hint-chip-tag code {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
[data-theme="dark"] .hint-chip-tag code {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
}

.hint-chip-prio code {
  background: rgba(244, 63, 94, 0.12);
  color: #e11d48;
  border: 1px solid rgba(244, 63, 94, 0.25);
}
[data-theme="dark"] .hint-chip-prio code {
  background: rgba(251, 113, 133, 0.15);
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.3);
}

.hint-chip-pomo code {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
[data-theme="dark"] .hint-chip-pomo code {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

.hint-chip .hint-desc {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

.btn-text-link {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--accent-primary);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

/* Tasks Filter Bar & List */
.tasks-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tasks-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-pills-row {
  display: flex;
  gap: 6px;
}

.filter-pill {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.12s ease;
}

.filter-pill:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.filter-pill.active {
  background: var(--bg-surface);
  border-color: var(--border-focus);
  color: var(--accent-primary);
}

.tasks-counter-text {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.habits-list-modern {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.habit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: border-color 0.12s ease;
}

.habit-item:hover {
  border-color: var(--border-focus);
}

.habit-item.completed {
  opacity: 0.55;
}

.habit-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.habit-checkbox.checked {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

.habit-info-col {
  flex: 1;
}

.habit-title-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.habit-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.habit-pomo-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.habit-pomo-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.habit-btn-delete {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
}

.habit-btn-delete:hover {
  color: var(--accent-rose);
}

/* ==========================================================================
   🍅 POMODORO ZEN VIEW
   ========================================================================== */

.pomodoro-zen-container {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.pomo-zen-header {
  margin-bottom: 24px;
}

.pomo-zen-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pomo-zen-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pomo-mode-tabs {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
  margin-bottom: 32px;
}

.pomo-mode-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.12s ease;
}

.pomo-mode-tab.active {
  background: var(--accent-primary);
  color: #fff;
}

.pomo-dial-wrap {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto 32px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pomo-svg-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: var(--bg-surface);
  stroke-width: 8;
}

.ring-progress {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 660;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.5s ease;
}

.pomo-dial-content {
  position: relative;
  z-index: 2;
}

.pomo-time-display {
  font-size: 3.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.pomo-task-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
  user-select: none;
  box-shadow: none !important;
}

.pomo-task-tag:hover {
  color: var(--accent-primary, #10b981);
  background: var(--bg-hover);
}

.pomo-task-tag.has-task {
  color: var(--accent-primary, #10b981);
  font-weight: 700;
}

.pomo-actions-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.ambient-synth-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: left;
}

.ambient-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ambient-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.ambient-status-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent-primary);
}

.ambient-buttons-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.ambient-sound-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.ambient-sound-btn.active {
  border-color: var(--border-focus);
  color: var(--accent-primary);
  background: var(--bg-surface);
}

.ambient-vol-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ambient-vol-lbl {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.clean-slider {
  flex: 1;
  accent-color: var(--accent-primary);
}

/* ==========================================================================
   🌿 DIORAMA FULLSCREEN VIEW
   ========================================================================== */

.diorama-fullscreen-wrap {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.diorama-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.diorama-overlay-hud {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.diorama-hud-left, .diorama-hud-right {
  pointer-events: auto;
}

.diorama-hud-title {
  font-size: 1.1rem;
  font-weight: 800;
}

.diorama-hud-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-subtle-glass {
  background: rgba(19, 29, 51, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.diorama-bottom-strip {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(19, 29, 51, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  display: flex;
  gap: 18px;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
}

.strip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.strip-lvl {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-weight: 700;
}

/* ==========================================================================
   📊 METRICS & STATS VIEW
   ========================================================================== */

.stats-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.stat-card-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
}

.stat-card-val {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  margin: 6px 0;
}

.stat-card-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.chart-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.chart-box-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.heatmap-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.heatmap-day-cell {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
}

.heatmap-day-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  display: block;
}

.heatmap-day-val {
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-top: 4px;
}

/* ==========================================================================
   🧩 SHARED BUTTONS & INPUTS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.12s ease;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
}
.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: var(--bg-hover);
}

.btn-sm {
  font-size: 0.75rem;
  padding: 4px 10px;
}

.btn-lg {
  font-size: 0.9rem;
  padding: 10px 20px;
}

.clean-input, .clean-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  outline: none;
}

.clean-input:focus, .clean-select:focus {
  border-color: var(--border-focus);
}

/* ==========================================================================
   🪟 MODALS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-backdrop.open, .modal-backdrop[style*="display: flex"] {
  display: flex !important;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.modal-btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
}




/* ========================================================================== */
/* 📱 2026 MOBILE INTERFACE: TOP BAR, OFFCANVAS MENU & 3-ICON BOTTOM NAV      */
/* ========================================================================== */

.mobile-top-app-bar {
  display: none;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

[data-theme="light"] .mobile-top-app-bar {
  background: rgba(255, 255, 255, 0.95);
}

.m-top-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-top-logo-img {
  height: 26px;
  width: auto;
  object-fit: contain;
  display: block;
}

.m-top-brand-title {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #10b981 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.m-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-points-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: var(--text-gold, #fbbf24);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
}

.m-icon-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: none !important;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.m-icon-action-btn:active {
  transform: scale(0.92);
}

/* Offcanvas Backdrop & Drawer */
.mobile-offcanvas-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-offcanvas-backdrop.active {
  display: block;
  opacity: 1;
}

.mobile-offcanvas-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 82vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-sidebar, #0b0f19);
  border-left: 1px solid var(--border-subtle);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -6px 0 24px rgba(0,0,0,0.4);
}

.mobile-offcanvas-drawer.active {
  transform: translateX(0);
}

.offcanvas-header {
  padding: 18px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offcanvas-user-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.offcanvas-avatar {
  font-size: 1.6rem;
  color: var(--accent-primary, #10b981);
  flex-shrink: 0;
}

.offcanvas-user-meta {
  min-width: 0;
}

.offcanvas-handle {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offcanvas-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offcanvas-close-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.offcanvas-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  overflow-y: auto;
}

.offcanvas-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 4px;
}

.offcanvas-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.offcanvas-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  box-shadow: none !important;
}

.offcanvas-nav-btn:hover, .offcanvas-nav-btn:active {
  background: var(--bg-card);
}

.offcanvas-nav-btn i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
  color: var(--text-muted);
}

.offcanvas-nav-btn:hover i, .offcanvas-nav-btn.active i {
  color: var(--accent-primary);
}

.offcanvas-admin-btn {
  background: rgba(16, 185, 129, 0.12) !important;
  color: var(--accent-primary, #10b981) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

/* Mobile Bottom Navigation: 3 Icons Only (No Text) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 58px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-subtle);
  padding: 4px 20px calc(4px + env(safe-area-inset-bottom, 8px));
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  box-sizing: border-box;
}

[data-theme="light"] .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.96);
}

.m-nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 54px;
  height: 42px;
  border-radius: 14px;
  transition: all 0.15s ease;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

.m-nav-btn:active {
  transform: scale(0.9);
}

.m-nav-btn.active {
  color: var(--accent-primary, #10b981);
  background: rgba(16, 185, 129, 0.14);
}

.m-nav-btn .m-icon {
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Responsive Mobile Layout Overrides */
@media (max-width: 768px) {
  html, body {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative !important;
  }

  body {
    height: 100vh !important;
    height: 100dvh !important;
  }

  .app-layout {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    height: 100dvh !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  .app-sidebar {
    display: none !important;
  }

  .mobile-top-app-bar {
    display: flex !important;
    flex-shrink: 0 !important;
    width: 100% !important;
  }

  .mobile-bottom-nav {
    display: flex !important;
    flex-shrink: 0 !important;
    width: 100% !important;
  }
  
  .app-main-content {
    flex: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .view-scroll-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 16px 14px calc(76px + env(safe-area-inset-bottom, 12px)) !important;
    overflow-x: hidden !important;
  }

  .view-max-width {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Compact Day Header */
  .day-view-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .day-title-wrap {
    width: 100% !important;
  }

  .day-heading {
    font-size: 1.6rem !important;
    font-weight: 900 !important;
  }

  .day-subheading {
    font-size: 0.8rem !important;
  }

  .day-controls-wrap {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  .day-nav-arrows {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .btn-nav-arrow {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .date-picker-input {
    width: 120px !important;
    max-width: 125px !important;
    font-size: 0.8rem !important;
    padding: 6px 8px !important;
    text-align: center !important;
  }

  .btn-subtle-pill {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }

  /* 2-Column Overview Cards on Mobile */
  .focus-overview-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .focus-overview-grid .overview-card {
    padding: 12px 14px !important;
    box-sizing: border-box !important;
  }

  .card-title-clean {
    font-size: 0.82rem !important;
    font-weight: 800 !important;
  }

  .districts-exp-chips {
    gap: 4px !important;
    margin-top: 8px !important;
    flex-wrap: wrap !important;
  }

  .chip-dist {
    padding: 2px 6px !important;
    font-size: 0.72rem !important;
  }

  /* Quick-Add Container 100% Responsive with Zero Horizontal Drag */
  .quick-add-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 14px !important;
  }

  .quick-add-form {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  
.quick-add-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--trans-fast);
  width: 100%;
  box-sizing: border-box;
}

.quick-add-top-row {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.quick-add-bottom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .quick-add-input-wrapper {
    flex-direction: column !important;
    padding: 10px 12px !important;
    gap: 8px !important;
  }

  .quick-add-top-row {
    width: 100% !important;
  }

  .quick-add-bottom-row {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
  }

  .quick-add-bottom-row .quick-add-category-select {
    flex: 1 !important;
    min-width: 0 !important;
  }
}


  .quick-add-input {
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 0.88rem !important;
    padding: 8px 10px !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
  }

  .quick-add-category-select {
    flex: 1 !important;
    width: auto !important;
    max-width: none !important;
    box-sizing: border-box !important;
    font-size: 0.8rem !important;
    padding: 8px 10px !important;
  }

  #btn-submit-quick-add {
    padding: 8px 16px !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
  }

  .quick-add-actions-mobile-row {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    align-items: center !important;
  }

  /* Quick Shortcut Chips Ribbon */
  .task-chips-bar, .quick-tags-hints {
    display: flex !important;
    overflow-x: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 4px 0 !important;
    gap: 6px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .task-chips-bar::-webkit-scrollbar, .quick-tags-hints::-webkit-scrollbar {
    display: none !important;
  }

  /* Task Filters Ribbon */
  .task-filters-bar, .filters-row-clean {
    display: flex !important;
    overflow-x: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 4px 0 8px 0 !important;
    gap: 6px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    align-items: center !important;
  }

  .task-filters-bar::-webkit-scrollbar, .filters-row-clean::-webkit-scrollbar {
    display: none !important;
  }

  .filter-pill, .filter-chip {
    padding: 6px 14px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* Task / Habit Item Card */
  .habit-item, .habit-card-clean {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 14px !important;
    gap: 10px !important;
  }

  .habit-main-info {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .habit-title-clean {
    font-size: 0.92rem !important;
    word-break: break-word !important;
  }
}


  .app-sidebar {
    display: none !important;
  }

  .mobile-top-app-bar {
    display: flex !important;
    flex-shrink: 0 !important;
    width: 100% !important;
  }

  .mobile-bottom-nav {
    display: flex !important;
    flex-shrink: 0 !important;
    width: 100% !important;
  }
  
  .app-main-content {
    flex: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .view-scroll-container {
    padding: 14px 14px calc(80px + env(safe-area-inset-bottom, 12px)) !important;
  }

  /* Compact Day Header */
  .day-view-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
  }

  .day-controls-wrap {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .day-nav-arrows {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .date-picker-input {
    flex: 1 !important;
    max-width: 150px !important;
    font-size: 0.85rem !important;
    padding: 6px 8px !important;
  }

  /* 2-Column Overview Cards on Mobile */
  .focus-overview-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
  }

  .focus-overview-grid .stat-card {
    padding: 12px 14px !important;
  }

  .stat-card-title {
    font-size: 0.8rem !important;
  }

  /* Task Input Box Mobile Polish */
  .task-add-card {
    padding: 12px 14px !important;
    margin-bottom: 14px !important;
  }

  .task-input-row {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .task-input-row select {
    width: 100% !important;
  }

  .task-chips-bar {
    display: flex !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
    gap: 6px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .task-chips-bar::-webkit-scrollbar {
    display: none !important;
  }

  /* Task Filters Bar */
  .task-filters-bar {
    display: flex !important;
    overflow-x: auto !important;
    padding-bottom: 6px !important;
    gap: 6px !important;
    scrollbar-width: none !important;
  }

  .filter-pill {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }

  /* Habit / Task Item Card */
  .habit-item-card {
    padding: 12px 14px !important;
    gap: 10px !important;
  }

  .habit-actions-wrap {
    gap: 6px !important;
  }

  .btn-habit-focus {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
  }
}

  .mobile-bottom-nav {
    display: flex;
  }
  .view-scroll-container {
    padding: 20px 16px calc(70px + env(safe-area-inset-bottom));
  }
  .focus-overview-grid {
    grid-template-columns: 1fr;
  }
}

.btn-diorama-control {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: none !important;
  transition: all 0.15s ease;
}

.btn-diorama-control:hover {
  background: #1e293b !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}

.diorama-hud-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.diorama-hud-sub {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.85) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.diorama-bottom-strip {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  display: flex;
  gap: 20px;
  z-index: 10;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #ffffff !important;
  font-weight: 600;
}

/* ==========================================================================
   🎯 CRISP TASK ITEMS & SUBTASKS (Linear / Things 3 Style)
   ========================================================================== */

.habits-list-modern {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.habit-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: all 0.15s ease;
  gap: 14px;
}

.habit-item:hover {
  border-color: var(--border-focus);
}

.habit-item.completed {
  opacity: 0.55;
}

.habit-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
}

.habit-checkbox {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-input);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: transparent;
  margin-top: 1px;
  transition: all 0.12s ease;
}

.habit-checkbox:hover {
  border-color: var(--accent-primary);
}

.habit-item.completed .habit-checkbox {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.habit-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.habit-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.habit-item.completed .habit-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.habit-meta-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.habit-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  white-space: nowrap;
}

.habit-time-chip {
  font-family: var(--font-mono);
  color: var(--text-gold);
}

.habit-pomo-count {
  font-family: var(--font-mono);
}

/* Subtasks Dedicated Vertical Section */
.habit-subtasks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.habit-subtask-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  transition: background 0.12s ease;
}

.habit-subtask-row:hover {
  background: var(--bg-hover);
}

.habit-subtask-row.done {
  opacity: 0.55;
}

.habit-subtask-row.done .subtask-text {
  text-decoration: line-through;
  color: var(--text-dim);
}

.subtask-checkbox {
  accent-color: var(--accent-primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.habit-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.habit-pomo-btn {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-primary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.12s ease;
}

.habit-pomo-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

.habit-btn-delete {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.12s ease;
}

.habit-btn-delete:hover {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-rose);
  border-color: rgba(244, 63, 94, 0.2);
}

.btn-danger-clean {
  background: #dc2626 !important;
  border: 1px solid #b91c1c !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35) !important;
  padding: 10px 24px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.95rem !important;
}

.btn-danger-clean:hover {
  background: #b91c1c !important;
  border-color: #991b1b !important;
  color: #ffffff !important;
}

/* ==========================================================================
   📂 CATEGORY GROUPING & COLLAPSIBLE SECTIONS
   ========================================================================== */

.category-group-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.category-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg-card);
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.12s ease;
}

.category-group-header:hover {
  background: var(--bg-hover);
}

.category-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-grp-icon {
  font-size: 1.1rem;
}

.cat-grp-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.cat-grp-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.cat-grp-collapse-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  transition: transform 0.15s ease;
}

.category-group-section.collapsed .category-group-items {
  display: none;
}

.category-group-section.collapsed .collapse-arrow {
  transform: rotate(-90deg);
}

.category-group-items {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Inline Subtasks Addition */
.subtask-label-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  cursor: pointer;
}

.btn-delete-subtask {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.12s ease;
}

.btn-delete-subtask:hover {
  color: var(--accent-rose);
}

.inline-add-subtask-form {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.inline-subtask-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.78rem;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  transition: border-color 0.12s ease;
}

.inline-subtask-input:focus {
  border-style: solid;
  border-color: var(--accent-primary);
  background: var(--bg-surface);
}

.btn-inline-add-subtask {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 0 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.12s ease;
}

.btn-inline-add-subtask:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.habit-btn-edit {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-size: 0.95rem;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.12s ease;
}

.habit-btn-edit:hover {
  background: var(--bg-hover);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

/* ==========================================================================
   ⚙️ ADVANCED OPTIONS DRAWER (Modern 3-Column Grid Layout)
   ========================================================================== */

.adv-drawer {
  margin-top: 14px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 16px;
  margin-bottom: 12px;
}

.adv-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.adv-field label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.adv-field .clean-select,
.adv-field .clean-input {
  height: 36px;
  font-size: 0.82rem;
  padding: 6px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  width: 100%;
}

.adv-weekdays {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.weekday-lbl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

.adv-subtasks-section {
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 10px;
}

.adv-subtasks-section label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
  margin-bottom: 6px;
}

.adv-subtask-input-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.adv-subtask-input-wrap input {
  flex: 1;
  height: 36px;
  font-size: 0.82rem;
}

#adv-subtasks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.adv-subtask-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  padding: 4px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

.adv-subtask-item button {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 2px;
}

.adv-subtask-item button:hover {
  color: var(--accent-rose);
}

/* ==========================================================================
   👑 PREMIUM PRO DROPDOWN BADGING
   ========================================================================== */

.optgroup-pro {
  font-weight: 800 !important;
  color: #f59e0b !important;
  background: rgba(245, 158, 11, 0.1) !important;
  font-family: var(--font-mono), monospace !important;
  letter-spacing: 0.5px;
}

.opt-pro {
  font-weight: 700 !important;
  color: #fbbf24 !important;
  background: var(--bg-surface) !important;
}

[data-theme="light"] .optgroup-pro {
  color: #b45309 !important;
  background: rgba(245, 158, 11, 0.15) !important;
}

[data-theme="light"] .opt-pro {
  color: #92400e !important;
}

/* ==========================================================================
   🎚️ MODERN CLEAN SWITCHES & TOGGLES
   ========================================================================== */

.quick-add-hints-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 8px;
  gap: 12px;
}

.adv-switch-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  cursor: pointer;
}

.adv-switch-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  user-select: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.adv-switch-container:hover .adv-switch-text {
  color: var(--text-main);
}

.toggle-switch-wrap {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
  cursor: pointer;
  margin: 0;
}

.clean-toggle-checkbox {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-subtle);
  border-radius: 20px;
  transition: background-color 0.2s ease;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

.clean-toggle-checkbox:checked + .toggle-slider {
  background-color: var(--accent-primary);
}

.clean-toggle-checkbox:checked + .toggle-slider::before {
  transform: translateX(14px);
}


/* Micro Switch for individual fields */
.switch-sm {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 16px;
  cursor: pointer;
  margin: 0;
}

.switch-sm input {
  position: absolute;
  opacity: 0;
  width: 28px;
  height: 16px;
  cursor: pointer;
  z-index: 2;
  margin: 0;
}

.slider-sm {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--border-subtle);
  border-radius: 16px;
  transition: background-color 0.2s ease;
}

.slider-sm::before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.switch-sm input:checked + .slider-sm {
  background-color: var(--accent-primary);
}

.switch-sm input:checked + .slider-sm::before {
  transform: translateX(12px);
}

.sidebar-eu-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 4px 12px 4px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  user-select: none;
}

.sidebar-eu-box .eu-box-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.81rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.1px;
}

.sidebar-eu-box .eu-flag-svg {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.sidebar-eu-box .eu-box-sub {
  font-size: 0.70rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
  padding-left: 2px;
}

.sidebar-eu-box .eu-box-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.81rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.1px;
}

.sidebar-eu-box .eu-flag-svg {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.sidebar-eu-box .eu-box-sub {
  font-size: 0.70rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
  padding-left: 2px;
}

/* 🏛️ 3D Building Inspector Card */
.building-inspector-card {
  position: absolute;
  top: 84px;
  left: 24px;
  width: 290px;
  background: var(--bg-card, #0f172a);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  z-index: 100;
  backdrop-filter: blur(12px);
  box-sizing: border-box;
}

.building-inspector-card * {
  box-sizing: border-box;
}

.insp-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.insp-stat-row:last-child {
  margin-bottom: 0;
}

.insp-stat-label {
  color: var(--text-muted, #94a3b8);
}

.insp-stat-val {
  color: var(--text-main, #f8fafc);
  font-weight: 700;
}

/* Catalogue Modal Tabs & Shop Cards Styling */
.catalogue-tabs-bar .dock-tab {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.catalogue-tabs-bar .dock-tab:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

.catalogue-tabs-bar .dock-tab.active {
  background: var(--accent-primary, #10b981) !important;
  color: #ffffff !important;
  border-color: var(--accent-primary, #10b981) !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

.catalogue-tabs-bar .dock-tab.tab-pro {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

.catalogue-tabs-bar .dock-tab.tab-pro.active {
  background: #f59e0b !important;
  color: #ffffff !important;
  border-color: #f59e0b !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

.building-shop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-color: var(--accent-primary, #10b981) !important;
}

/* Drag & Scroll Hand Cursor */
#building-cards-container, .catalogue-tabs-bar {
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

#building-cards-container:active, .catalogue-tabs-bar:active,
#building-cards-container.is-dragging, .catalogue-tabs-bar.is-dragging {
  cursor: grabbing !important;
}

#building-cards-container .building-shop-card {
  user-select: none;
}

#btn-reset-map-diorama {
  background: #475569 !important;
  color: #ffffff !important;
  border: 1px solid #334155 !important;
  opacity: 1 !important;
}

#btn-reset-map-diorama:hover {
  background: #334155 !important;
  color: #ffffff !important;
}

/* Vibrant Green Catalogue Button Under Title */
#btn-open-shop-drawer {
  background: #10b981 !important;
  color: #ffffff !important;
  border: 2px solid #059669 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45) !important;
  font-weight: 800 !important;
}

#btn-open-shop-drawer:hover {
  background: #059669 !important;
  color: #ffffff !important;
}

/* Hide Unwanted Diorama Bottom Dock Completely */
#diorama-district-dock,
.diorama-bottom-dock,
.diorama-stats-pill,
.district-dock-container {
  display: none !important;
}


/* ==========================================================================
   HELP & DOCUMENTATION MODAL (THEME ADAPTIVE - LIGHT & DARK)
   ========================================================================== */
.help-modal-card {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 1040px;
  width: 94%;
  height: 86vh;
}

.help-modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
}

.help-modal-header .header-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md, 10px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.help-modal-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.help-modal-header p {
  margin: 2px 0 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.help-modal-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.help-sidebar {
  width: 320px;
  min-width: 290px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  background: var(--bg-sidebar);
}

.help-sidebar-search {
  padding: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.help-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.help-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px 9px 34px;
  border-radius: var(--radius-sm, 8px);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.help-search-input:focus {
  border-color: var(--accent-primary);
}

.help-search-icon {
  position: absolute;
  left: 10px;
  pointer-events: none;
  opacity: 0.6;
  font-size: 0.85rem;
}

.help-search-clear {
  display: none;
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
}

.help-sidebar-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0 4px;
}

.help-sidebar-menu {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.help-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md, 10px);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.help-nav-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.help-nav-btn.active {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.help-nav-btn .art-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.help-nav-btn .art-meta {
  flex: 1;
  min-width: 0;
}

.help-nav-btn .art-title {
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.25;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.help-nav-btn.active .art-title {
  color: var(--accent-primary, #10b981);
}

.help-nav-btn .art-cat {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.help-content-viewer {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px;
  background: var(--bg-surface);
  color: var(--text-main);
}

.help-content-viewer h1,
.help-content-viewer h2,
.help-content-viewer h3,
.help-content-viewer h4 {
  color: var(--text-main);
}

.help-content-viewer p,
.help-content-viewer li,
.help-content-viewer div {
  color: var(--text-secondary, var(--text-main));
}

.help-content-viewer strong {
  color: var(--text-main);
  font-weight: 700;
}

.help-formula-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md, 10px);
  padding: 12px 18px;
  margin: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
}

/* Landing Dynamic Content Typography */
.landing-content-box h1,
.landing-content-box h2,
.landing-content-box h3,
.landing-content-box h4 {
  color: var(--text-main) !important;
}

[data-theme="light"] .landing-content-box h1,
[data-theme="light"] .landing-content-box h2,
[data-theme="light"] .landing-content-box h3,
[data-theme="light"] .landing-content-box h4 {
  color: #0f172a !important;
}

[data-theme="dark"] .landing-content-box h1,
[data-theme="dark"] .landing-content-box h2,
[data-theme="dark"] .landing-content-box h3,
[data-theme="dark"] .landing-content-box h4 {
  color: #f8fafc !important;
}

/* Explicit High-Contrast Typography for Landing Content */
.landing-content-box h1,
.landing-content-box h2,
.landing-content-box h3,
.landing-content-box h4 {
  color: var(--text-main, #f8fafc) !important;
  font-weight: 800 !important;
}

[data-theme="light"] .landing-content-box h1,
[data-theme="light"] .landing-content-box h2,
[data-theme="light"] .landing-content-box h3,
[data-theme="light"] .landing-content-box h4 {
  color: #0f172a !important;
}

[data-theme="light"] .landing-content-box,
[data-theme="light"] .landing-content-box p,
[data-theme="light"] .landing-content-box span,
[data-theme="light"] .landing-content-box li {
  color: #334155 !important;
}

[data-theme="dark"] .landing-content-box h1,
[data-theme="dark"] .landing-content-box h2,
[data-theme="dark"] .landing-content-box h3,
[data-theme="dark"] .landing-content-box h4 {
  color: #f8fafc !important;
}

[data-theme="dark"] .landing-content-box,
[data-theme="dark"] .landing-content-box p,
[data-theme="dark"] .landing-content-box span,
[data-theme="dark"] .landing-content-box li {
  color: #cbd5e1 !important;
}

/* Flat Green Admin Panel Button - NO SHADOWS */
#nav-btn-admin,
.nav-admin-green-btn {
  background: #059669 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 6px !important;
  transition: background 0.15s ease !important;
}

#nav-btn-admin .nav-title,
#nav-btn-admin .nav-icon,
.nav-admin-green-btn .nav-title,
.nav-admin-green-btn .nav-icon {
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

#nav-btn-admin:hover,
.nav-admin-green-btn:hover {
  background: #047857 !important;
  box-shadow: none !important;
  transform: none !important;
}



/* ========================================================================== */
/* 🏃 PRO SPORTS COMPETITION STOPWATCH (COMPETICIÓN DEPORTIVA)                 */
/* ========================================================================== */
.sports-stopwatch-body {
  position: relative;
  width: 290px;
  height: 290px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #334155 0%, #0f172a 70%, #020617 100%);
  border: 10px solid #1e293b;
  box-shadow: 0 15px 35px -5px rgba(0,0,0,0.6), inset 0 2px 4px rgba(255,255,255,0.15), inset 0 -4px 10px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* Crown / Top Button of Stopwatch */
.stopwatch-crown {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 18px;
  background: linear-gradient(180deg, #94a3b8 0%, #475569 50%, #334155 100%);
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 -2px 6px rgba(0,0,0,0.4);
}

.stopwatch-crown-ring {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 20px;
  border: 4px solid #64748b;
  border-radius: 50% 50% 0 0;
  border-bottom: none;
}

/* Radial Ticks Bezel */
.stopwatch-bezel-ticks {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px dashed rgba(148, 163, 184, 0.25);
  pointer-events: none;
}

/* LCD Display */
.stopwatch-lcd-screen {
  background: #020617;
  border: 2px solid #334155;
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: inset 0 3px 10px rgba(0,0,0,0.9), 0 1px 2px rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 82%;
  z-index: 5;
}

.stopwatch-digital-time {
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-size: 2.6rem;
  font-weight: 900;
  color: #10b981 !important;
  letter-spacing: -0.02em;
  text-shadow: 0 0 16px rgba(16, 185, 129, 0.6) !important;
  line-height: 1.1;
}

.stopwatch-sub-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #94a3b8;
  margin-top: 4px;
  text-transform: uppercase;
}

/* Sports Stopwatch Action Controls */
.sports-stopwatch-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}

.btn-sports-start {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 12px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: none !important;
  transition: transform 0.1s ease;
}
.btn-sports-start:active {
  transform: scale(0.97);
}

.btn-sports-stop {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  box-shadow: none !important;
}

.btn-sports-lap {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 12px;
  cursor: pointer;
}

.btn-sports-reset {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
}


/* ========================================================================== */
/* 🚫 STRICT DESIGN RULE: ALL BUTTONS FLAT WITH ZERO SHADOWS                 */
/* ========================================================================== */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-sports-start,
.btn-sports-stop,
.btn-sports-lap,
.btn-sports-reset,
.pomo-mode-tab,
.ambient-sound-btn,
.btn-custom-preset,
.nav-item,
.modal-btn-close,
.clean-btn {
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}
button:hover,
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-sports-start:hover {
  box-shadow: none !important;
  filter: none !important;
}


@media (min-width: 769px) {
  .mobile-top-app-bar,
  .mobile-bottom-nav {
    display: none !important;
  }
  .app-sidebar {
    display: flex !important;
  }
  .app-layout {
    display: flex !important;
    flex-direction: row !important;
    height: 100vh !important;
    width: 100vw !important;
  }
  .app-main-content {
    flex: 1 !important;
    height: 100vh !important;
  }
}



.offcanvas-user-box.is-pro .offcanvas-avatar,
.offcanvas-user-box.is-pro .offcanvas-avatar i {
  color: #fbbf24 !important;
}

.m-icon-action-btn.is-pro,
.m-icon-action-btn.is-pro i {
  color: #fbbf24 !important;
}


.offcanvas-pro-badge {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 0.65rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  display: inline-block;
}

.offcanvas-pro-upgrade-btn {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.28) !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  transition: all 0.15s ease !important;
}

.offcanvas-pro-upgrade-btn:hover, .offcanvas-pro-upgrade-btn:active {
  background: rgba(245, 158, 11, 0.2) !important;
  transform: scale(0.98);
}


/* ========================================================================== */
/* 📱 ACCOUNT OFFCANVAS DRAWER (2026 NORDIC OPEN LAYOUT)                      */
/* ========================================================================== */

#modal-auth.account-offcanvas-overlay {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  pointer-events: none !important;
  z-index: 2005 !important;
  background: transparent !important;
  padding: 0 !important;
}

#modal-auth.account-offcanvas-overlay.active {
  pointer-events: auto !important;
}

.account-offcanvas-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 2004;
}

.account-offcanvas-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.account-offcanvas-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-sidebar, #0f172a);
  color: var(--text-main, #f8fafc);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 32px rgba(0,0,0,0.45);
  z-index: 2005;
  box-sizing: border-box;
}

.account-offcanvas-drawer.active {
  transform: translateX(0);
}

.account-offcanvas-drawer .clean-input {
  background: var(--bg-card, #18233c) !important;
  color: var(--text-main, #f8fafc) !important;
  border: 1px solid var(--border-subtle) !important;
}

[data-theme="light"] .account-offcanvas-drawer .clean-input {
  background: #ffffff !important;
  color: #0f172a !important;
}


/* Two-Icon Sun/Moon Theme Switcher */
.theme-switch-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 3px 4px;
  cursor: pointer;
}

.theme-switch-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-switch-icon-btn.active {
  background: var(--accent-primary, #10b981);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .theme-switch-icon-btn.sun-btn {
  background: #f59e0b;
  color: #ffffff;
}

[data-theme="dark"] .theme-switch-icon-btn.moon-btn {
  background: #6366f1;
  color: #ffffff;
}

/* Custom UI Confirm Delete Account Modal */
.custom-delete-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.custom-delete-modal-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-surface, #0f172a);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}


/* Light theme overrides for both Offcanvas Drawers */
[data-theme="light"] .mobile-offcanvas-drawer,
[data-theme="light"] .account-offcanvas-drawer {
  background: #ffffff !important;
  color: #0f172a !important;
}

[data-theme="light"] .offcanvas-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .offcanvas-close-btn,
[data-theme="light"] #btn-close-auth-modal {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .offcanvas-nav-btn {
  color: #1e293b !important;
}

[data-theme="light"] .offcanvas-nav-btn:hover {
  background: #f1f5f9 !important;
}

[data-theme="light"] .offcanvas-section-title {
  color: #64748b !important;
}


.offcanvas-lang-selector-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 8px;
}

.offcanvas-lang-selector-wrap .lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  bottom: auto;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  z-index: 1000;
}

.offcanvas-lang-selector-wrap .lang-opt-btn {
  padding: 8px 12px;
  border-radius: 8px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
}

.offcanvas-lang-selector-wrap .lang-opt-btn:hover {
  background: var(--bg-hover);
}

/* ==========================================================================
   📅 FOCUSCITY NORDIC CUSTOM CALENDAR POPOVER
   ========================================================================== */

:root, [data-theme="light"], body[data-theme="light"] {
  color-scheme: light;
}

[data-theme="dark"], body[data-theme="dark"] {
  color-scheme: dark;
}

.date-picker-custom-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-date-picker-trigger {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-sans, inherit);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-date-picker-trigger:hover {
  border-color: var(--accent-primary);
  background: var(--bg-hover);
}

.fc-calendar-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
  width: 290px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fcCalFadeIn 0.15s ease-out;
}

@keyframes fcCalFadeIn {
  from { opacity: 0; transform: translate(-50%, -6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.fc-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fc-cal-month-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: capitalize;
}

.fc-cal-arrow {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.fc-cal-arrow:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.fc-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.fc-cal-weekdays span:nth-child(6),
.fc-cal-weekdays span:nth-child(7) {
  color: var(--accent-rose, #ef4444);
}

.fc-cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.fc-cal-day {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.fc-cal-day:hover {
  background: var(--bg-hover);
  border-color: var(--border-subtle);
}

.fc-cal-day.is-other-month {
  color: var(--text-muted);
  opacity: 0.35;
}

.fc-cal-day.is-today {
  border-color: var(--accent-primary);
  font-weight: 900;
}

.fc-cal-day.is-selected {
  background: var(--accent-primary) !important;
  color: #ffffff !important;
  font-weight: 800;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.fc-cal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4px;
  border-top: 1px solid var(--border-subtle);
}

.fc-cal-btn-today {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fc-cal-btn-today:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--accent-primary);
}

/* ==========================================================================
   🏙️ HERO 3D MINI DIORAMA CARD (100% HARDWARE CLIPPED, NO BLEED)
   ========================================================================== */
.focus-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 16px;
  margin-bottom: 24px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .focus-overview-grid {
    grid-template-columns: 1fr;
  }
}

.overview-card.progress-overview-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-sizing: border-box;
}

.overview-card.diorama-preview-card {
  position: relative;
  overflow: hidden !important;
  padding: 0 !important;
  min-height: 260px;
  height: 100%;
  cursor: pointer;
  border-radius: 16px !important;
  border: 1px solid var(--border-subtle);
  background: transparent !important;
  clip-path: inset(0 round 16px) !important;
  -webkit-clip-path: inset(0 round 16px) !important;
  box-shadow: none !important;
  transform: none !important;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.overview-card.diorama-preview-card:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: var(--accent-primary);
}

.diorama-mini-canvas-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px !important;
  clip-path: inset(0 round 16px) !important;
  -webkit-clip-path: inset(0 round 16px) !important;
  overflow: hidden !important;
  background: radial-gradient(circle at 50% 35%, #0284c7 0%, #0369a1 70%, #0f172a 100%) !important;
}

[data-theme="light"] .diorama-mini-canvas-wrap,
body[data-theme="light"] .diorama-mini-canvas-wrap {
  background: radial-gradient(circle at 50% 35%, #7dd3fc 0%, #38bdf8 55%, #0284c7 100%) !important;
}

#city-mini-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border-radius: 16px !important;
  clip-path: inset(0 round 16px) !important;
  -webkit-clip-path: inset(0 round 16px) !important;
  display: block;
  pointer-events: none;
}

.diorama-mini-glass-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  border-radius: 16px !important;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.0) 38%, rgba(15, 23, 42, 0.45) 100%);
}

[data-theme="light"] .diorama-mini-glass-overlay,
body[data-theme="light"] .diorama-mini-glass-overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.0) 38%, rgba(255, 255, 255, 0.60) 100%);
}

.diorama-mini-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.diorama-mini-explore-badge {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-primary, #10b981);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 10px;
  box-shadow: none !important;
  transform: none !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  backdrop-filter: blur(8px);
}

.diorama-preview-card:hover .diorama-mini-explore-badge {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  transform: none !important;
  box-shadow: none !important;
}

/* Hide Admin Panel link completely on Mobile screens */
@media (max-width: 768px) {
  #nav-btn-admin,
  #offcanvas-btn-admin,
  .nav-admin-green-btn,
  .offcanvas-admin-btn,
  a[href*="admin.html"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* 🟡 Clean Flat Golden Banner exclusively for DEV.FOCUSCITY.EU */
#dev-env-top-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 28px;
  background: #d97706 !important;
  color: #ffffff !important;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2147483647 !important;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  text-shadow: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  pointer-events: auto;
}

body.is-dev-env #dev-env-top-banner {
  display: flex !important;
}

body.is-dev-env {
  padding-top: 28px !important;
  box-sizing: border-box;
}

body.is-dev-env .app-sidebar,
body.is-dev-env .admin-sidebar {
  top: 28px !important;
  height: calc(100vh - 28px) !important;
}



body.is-dev-env .mobile-top-app-bar {
  top: 28px !important;
}




body.is-dev-env .admin-main {
  height: calc(100vh - 28px) !important;
  padding-top: 0 !important;
}
