/* styles-extras.css — extracted from styles.css (Pomodoro, Timeline, Graph, 3D Graph, Jam/Music, Onboarding, Diagnostics, UI Extras, Autopilot, Error Log, Performance Dashboard, Log Viewer styles) */

/* ── Pomodoro (pomodoro.js) ──────────────────────────────────── */

      .pomo-stepper-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
      }
      .pomo-stepper-actions {
        display: flex;
        gap: 8px;
        justify-content: center;
        margin-top: 4px;
      }
      .pomo-btn--sm { padding: 3px 14px; font-size: var(--fs-base); }
      .pomo-alert-overlay {
        position: fixed;
        inset: 0;
        z-index: var(--z-modal-bg);
        background: rgba(0,0,0,0.75);
        backdrop-filter: blur(12px);
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .pomo-alert-card {
        background: var(--bg-solid);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: var(--radius-lg);
        padding: 3rem 4rem;
        text-align: center;
        box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 60px rgba(var(--primary-rgb),0.2);
        max-width: 480px;
        width: 90%;
      }
      .pomo-alert-emoji { font-size: var(--fs-display); margin-bottom: 1rem; line-height: 1; }
      .pomo-alert-title { font-size: var(--fs-2xl); font-weight: 700; margin-bottom: 0.5rem; color: white; }
      .pomo-alert-subtitle { color: var(--text-dim); font-size: var(--fs-md); margin-bottom: 2rem; }
      .pomo-alert-close {
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        border: none;
        color: white;
        padding: 14px 40px;
        border-radius: var(--radius-lg);
        font-size: var(--fs-md);
        font-weight: 600;
        cursor: pointer;
        font-family: inherit;
        box-shadow: 0 8px 24px rgba(var(--primary-rgb),0.4);
        transition: transform 0.2s, box-shadow 0.2s;
      }
      .pomo-alert-close:hover {
        transform: scale(1.05);
        box-shadow: 0 12px 32px rgba(var(--primary-rgb),0.6);
      }
      .pomo-alert-close--success {
        background: linear-gradient(135deg, var(--success), var(--secondary));
      }

/* ── Timeline (export.js) ─────────────────────────────────── */

      .tl-empty { color: var(--primary); opacity: 0.5; margin: auto; font-size: var(--fs-md); }
      .tl-line { width: 32px; height: 2px; background: linear-gradient(90deg,rgba(var(--primary-rgb),0.4),rgba(var(--primary-rgb),0.1)); flex-shrink: 0; align-self: center; margin-top: -60px; }
      .tl-col { flex-shrink: 0; width: 200px; display: flex; flex-direction: column; gap: 8px; }
      .tl-today-dot { position: absolute; top: -4px; right: -4px; width: 8px; height: 8px; background: var(--color-success); border-radius: var(--radius-full); border: 2px solid var(--bg-solid); }
      .tl-card { padding: 10px 12px; border-radius: var(--radius-md); background: var(--card-bg-solid); border: 1px solid rgba(var(--primary-rgb),0.12); cursor: pointer; transition: all 0.15s; font-size: var(--fs-base); }
      .tl-card:hover { border-color: rgba(var(--primary-rgb),0.4); background: rgba(var(--primary-rgb),0.08); }
      .tl-card-title { font-weight: 600; color: var(--text-dim); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .tl-card-preview { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .tl-card-tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 3px; }
      .tl-tag { background: rgba(var(--primary-rgb),0.15); color: var(--primary-light); border-radius: var(--radius-sm); padding: 1px 5px; font-size: var(--fs-xs); }
      .tl-card-time { margin-top: 5px; color: var(--text-muted); font-size: var(--fs-xs); }
      .tl-more { text-align: center; font-size: var(--fs-sm); color: var(--primary); opacity: 0.7; padding: 2px 0; }


/* ── Graph (graph.js) ─────────────────────────────────────── */

.g-temporal-divider {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.g-temporal-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 6px;
}
.g-temporal-label {
  font-size: var(--fs-sm);
  opacity: 0.6;
  text-align: center;
  margin-bottom: 8px;
}

/* ── 3D Graph (graph3d.js) ────────────────────────────────── */

.g3d-label {
  position: absolute;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.8);
  font-family: var(--font-main);
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  transform: translate(-50%,-100%);
}
body.light-mode .g3d-label {
  color: rgba(0,0,0,0.72);
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* ── Jam / Yandex Music (jam-ui.js) ──────────────────────── */

.jm-form-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.jm-form-label {
  color: var(--text-dim);
  font-size: var(--fs-base);
  min-width: 60px;
}
.jm-empty-text {
  color: var(--text-dim);
  font-size: var(--fs-base);
  padding: 8px;
}
.jm-mini-drag {
  display: flex;
  align-items: center;
  cursor: grab;
  user-select: none;
  padding-right: 4px;
}
.jm-mini-drag-icon {
  font-size: var(--fs-lg);
  opacity: 0.7;
}
.jm-mini-controls {
  display: flex;
  align-items: center;
  gap: 3px;
}
.jm-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 10px;
  position: relative;
  z-index: var(--z-sidebar);
  cursor: grab;
  user-select: none;
  -webkit-app-region: no-drag;
}
.jm-collapse-btn {
  font-size: var(--fs-lg);
  padding: 6px 14px;
  background: rgba(var(--primary-rgb), 0.15);
  border: none;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  z-index: var(--z-sidebar);
  pointer-events: all;
  -webkit-app-region: no-drag;
}
.jm-iframe-slot {
  position: relative;
  z-index: var(--z-base);
  flex: 1;
  min-height: 120px;
}
.jm-bottom-section-inner {
  flex-shrink: 0;
  overflow-y: auto;
  max-height: 40%;
  position: relative;
  z-index: var(--z-float);
}
.jm-preset-label-row {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  margin: 8px 0 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.jm-add-preset-btn {
  background: rgba(var(--primary-rgb), 0.15);
  border: none;
  color: var(--text-main);
  border-radius: var(--radius-xs);
  padding: 1px 7px;
  cursor: pointer;
  font-size: var(--fs-base);
}
.jm-preset-row {
  display: flex;
  align-items: center;
  gap: 2px;
}
.jm-preset-del {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: var(--fs-md);
  padding: 2px 4px;
  opacity: 0.5;
}
.jm-login-btn {
  margin-top: 8px;
  background: rgba(255,204,0,0.15);
  border-color: rgba(255,204,0,0.3);
  color: #fcd34d;
  font-weight: 600;
}
.jm-login-btn--logged { opacity: 0.5; }
.jm-browse-btn {
  margin-top: 4px;
  opacity: 0.6;
  font-style: italic;
}
.jm-input-label {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  margin: 10px 0 4px;
}
.jm-preset-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: var(--z-modal-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.jm-preset-dialog-box {
  background: var(--card-bg-solid);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  width: 320px;
}

/* ── Onboarding (onboarding.js) ──────────────────────────── */

      .ob-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
      .ob-tooltip { position: absolute; background: var(--card-bg-solid); border: 1px solid var(--primary); border-radius: var(--radius-md); padding: 14px 18px; max-width: 280px; color: var(--text-dim); font-size: var(--fs-base); box-shadow: 0 8px 32px rgba(0,0,0,0.4); z-index: var(--z-toast); }
      .ob-footer { display: flex; justify-content: space-between; align-items: center; }
      .ob-counter { color: var(--text-muted); font-size: var(--fs-sm); }
      .ob-skip-btn { background: none; border: none; color: var(--text-dim); cursor: pointer; margin-right: 8px; font-size: var(--fs-base); padding: 4px 8px; }
      .ob-next-btn { background: var(--primary); color: white; border: none; border-radius: var(--radius-sm); padding: 5px 14px; cursor: pointer; font-size: var(--fs-base); }

/* ── Diagnostics (diagnostics.js) ────────────────────────── */

      .diag-empty { text-align: center; padding: 40px; color: var(--text-muted); }
      .diag-total { margin-bottom: 6px; font-weight: 600; }
      .diag-ls-list { max-height: 150px; overflow-y: auto; font-size: var(--fs-sm); }
      .diag-ls-row { display: flex; justify-content: space-between; padding: 2px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
      .diag-perf-label { font-weight: 600; margin-bottom: 2px; }
      .diag-perf-stats { font-size: var(--fs-sm); color: var(--text-muted); }

/* ── UI Extras (ui-extras.js) ────────────────────────────── */

      .spotlight-overlay {
        position: fixed;
        inset: 0;
        z-index: var(--z-modal);
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        display: none;
        align-items: flex-start;
        justify-content: center;
        padding-top: 18vh;
        -webkit-app-region: no-drag;
      }
      .spotlight-overlay.active {
        display: flex;
        animation: gn-overlay-in var(--anim-open-speed) cubic-bezier(0.25, 0.1, 0.25, 1) both;
      }
      .spotlight-overlay.active .spotlight-box {
        animation: gn-drop-in 1s cubic-bezier(0.25, 0.1, 0.25, 1) both;
      }
      .spotlight-box {
        width: 560px;
        max-width: 90vw;
        background: var(--card-bg-solid);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
      }
      .spotlight-input-wrap {
        display: flex;
        align-items: center;
        padding: 14px 18px;
        gap: 10px;
        border-bottom: 1px solid var(--glass-border);
      }
      .spotlight-input-wrap .search-icon {
        color: var(--primary);
        font-size: var(--fs-lg);
      }
      .spotlight-input {
        flex: 1;
        background: none;
        border: none;
        outline: none;
        color: var(--text-main);
        font-size: var(--fs-md);
        font-family: var(--font-main);
      }
      .spotlight-input::placeholder {
        color: var(--text-dim);
      }
      .spotlight-hint {
        font-size: var(--fs-xs);
        color: var(--text-dim);
        background: rgba(255, 255, 255, 0.06);
        padding: 2px 8px;
        border-radius: var(--radius-sm);
        letter-spacing: 0.05em;
      }
      .spotlight-results {
        max-height: 340px;
        overflow-y: auto;
      }
      .spotlight-item {
        padding: 10px 18px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: background 0.15s;
        border-left: 3px solid transparent;
      }
      .spotlight-item:hover,
      .spotlight-item.selected {
        background: rgba(var(--primary-rgb), 0.12);
        border-left-color: var(--primary);
      }
      .spotlight-item .si-icon {
        font-size: var(--fs-md);
      }
      .spotlight-item .si-title {
        flex: 1;
        font-size: var(--fs-md);
        color: var(--text-main);
      }
      .spotlight-item .si-preview {
        font-size: var(--fs-sm);
        color: var(--text-dim);
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .spotlight-item .si-tags {
        display: flex;
        gap: 4px;
      }
      .spotlight-item .si-tag {
        font-size: var(--fs-xs);
        background: rgba(var(--primary-rgb), 0.2);
        color: var(--primary);
        padding: 1px 6px;
        border-radius: var(--radius-base);
      }
      .spotlight-empty {
        padding: 24px 18px;
        text-align: center;
        color: var(--text-dim);
        font-size: var(--fs-base);
      }
      .ambient-btn {
        padding: 6px 10px;
        border: 1px solid var(--glass-border);
        background: rgba(255, 255, 255, 0.04);
        border-radius: var(--radius-base);
        cursor: pointer;
        font-size: var(--fs-lg);
        transition: all 0.2s;
      }
      .ambient-btn:hover {
        background: rgba(var(--primary-rgb), 0.15);
        border-color: var(--primary);
        transform: scale(1.1);
      }
      .ambient-btn.active {
        background: rgba(var(--primary-rgb), 0.25);
        border-color: var(--primary);
        box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.3);
      }
      .main-view .editor-col {
        flex: 1;
        min-width: 0;
      }
      .split-panel {
        flex: 1;
        min-width: 0;
        border-left: 1px solid var(--glass-border);
        display: flex;
        flex-direction: column;
        padding: 16px;
      }
      .split-header {
        display: flex;
        gap: 8px;
        align-items: center;
        margin-bottom: 8px;
      }
      .split-search-input {
        width: 100%;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        color: var(--text-main);
        padding: 6px 10px;
        border-radius: var(--radius-base);
        font-family: var(--font-main);
        font-size: var(--fs-base);
        outline: none;
        box-sizing: border-box;
      }
      .split-search-input:focus {
        border-color: var(--primary);
      }
      .split-search-results {
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        right: 0;
        background: var(--card-bg);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-base);
        max-height: 200px;
        overflow-y: auto;
        z-index: var(--z-modal);
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
      }
      .split-result-item {
        padding: 7px 12px;
        font-size: var(--fs-base);
        color: var(--text-main);
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .split-result-item:hover {
        background: rgba(var(--primary-rgb), 0.12);
      }
      .split-note-title {
        font-size: var(--fs-base);
        color: var(--text-dim);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
        flex-shrink: 1;
      }
      .split-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
      }
      .split-editor {
        flex: 1;
        overflow-y: auto;
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-base);
        padding: 12px;
        outline: none;
        font-size: var(--fs-md);
        color: var(--text-main);
        min-height: 0;
      }
      .split-editor:empty::before {
        content: attr(data-placeholder);
        color: var(--text-dim);
        pointer-events: none;
      }
      .tab-bar {
        display: flex;
        gap: 2px;
        padding: 4px 12px 0;
        overflow-x: auto;
        border-bottom: 1px solid var(--glass-border);
        min-height: 32px;
        flex-shrink: 0;
      }
      .tab-bar:empty {
        display: none;
      }
      .tab-bar::-webkit-scrollbar {
        height: 2px;
      }
      .tab-item {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 5px 12px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid transparent;
        border-bottom: none;
        border-radius: var(--radius-base) var(--radius-base) 0 0;
        cursor: pointer;
        font-size: var(--fs-sm);
        color: var(--text-dim);
        white-space: nowrap;
        transition: all 0.15s;
        max-width: 160px;
      }
      .tab-item:hover {
        background: rgba(255, 255, 255, 0.06);
        color: var(--text-main);
      }
      .tab-item.active {
        background: rgba(var(--primary-rgb), 0.12);
        border-color: var(--glass-border);
        color: var(--text-main);
        border-bottom: 2px solid var(--primary);
      }
      .tab-item .tab-title {
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .tab-item .tab-close {
        font-size: var(--fs-xs);
        opacity: 0;
        flex-shrink: 0;
        padding: 2px 4px;
        border-radius: var(--radius-xs);
        transition: all 0.15s;
      }
      .tab-item:hover .tab-close {
        opacity: 0.5;
      }
      .tab-item .tab-close:hover {
        opacity: 1;
        background: rgba(255, 50, 50, 0.3);
      }
      .tab-item .tab-pin {
        font-size: var(--fs-xs);
        opacity: 0;
        cursor: pointer;
        transition: all 0.15s;
        flex-shrink: 0;
      }
      .tab-item:hover .tab-pin { opacity: 0.4; }
      .tab-item .tab-pin:hover { opacity: 1; transform: scale(1.2); }
      .tab-item .tab-pin.active { opacity: 1; }
      .tab-item.tab-dragging { opacity: 0.35; cursor: grabbing; }
      .tab-item.tab-drop-left { box-shadow: -3px 0 0 0 var(--primary); background: rgba(var(--primary-rgb),0.08); }
      .tab-item.tab-drop-right { box-shadow: 3px 0 0 0 var(--primary); background: rgba(var(--primary-rgb),0.08); }
      .tab-bar { user-select: none; }
      .tab-item.tab-pinned {
        border-top: 2px solid var(--primary) !important;
        padding: 5px 8px;
        gap: 4px;
        max-width: 68px;
        min-width: 48px;
      }
      .tab-item.tab-pinned .tab-title {
        display: none;
      }
      .tab-item.tab-pinned .tab-pin {
        opacity: 1;
        font-size: var(--fs-xs);
      }
      .tab-item.tab-pinned .tab-close {
        opacity: 0.5;
        font-size: var(--fs-xs);
      }
      .tab-item.tab-pinned:hover .tab-close {
        opacity: 1;
      }
      .main-view {
        flex-direction: column;
      }
      .help-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.8);
        z-index: var(--z-modal-bg);
        display: none;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(8px);
        -webkit-app-region: no-drag;
      }
      .help-overlay.active {
        display: flex;
        animation: gn-overlay-in var(--anim-open-speed) both;
      }
      .help-modal {
        background: var(--card-bg);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-lg);
        width: min(700px, 90vw);
        max-height: 80vh;
        display: flex;
        flex-direction: column;
        backdrop-filter: blur(20px);
      }
      .help-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        border-bottom: 1px solid var(--glass-border);
      }
      .help-header h2 {
        margin: 0;
        font-size: var(--fs-lg);
        font-family: var(--font-brand);
      }
      #help-view .help-header {
        position: relative;
        justify-content: center;
      }
      #help-view .help-header h2 {
        text-align: center;
      }
      #help-view .help-header > button {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
      }
      .help-content {
        padding: 20px;
        overflow-y: auto;
        font-size: var(--fs-base);
        line-height: 1.6;
      }
      #help-view .help-content {
        scrollbar-width: thin;
        scrollbar-color: rgba(var(--primary-rgb), 0.4) rgba(255, 255, 255, 0.05);
      }
      #help-view .help-content::-webkit-scrollbar {
        width: 10px;
      }
      #help-view .help-content::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-base);
      }
      #help-view .help-content::-webkit-scrollbar-thumb {
        background: rgba(var(--primary-rgb), 0.4);
        border-radius: var(--radius-base);
        border: 2px solid transparent;
        background-clip: padding-box;
      }
      #help-view .help-content::-webkit-scrollbar-thumb:hover {
        background: rgba(var(--primary-rgb), 0.55);
        background-clip: padding-box;
      }
      .help-content h3 {
        color: var(--primary);
        margin: 18px 0 8px;
        font-size: var(--fs-md);
      }
      .help-content h3:first-child {
        margin-top: 0;
      }
      .help-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 8px 0 16px;
      }
      .help-content th {
        background: rgba(var(--primary-rgb), 0.12);
        color: var(--primary);
        padding: 6px 10px;
        text-align: left;
        font-size: var(--fs-base);
        border: 1px solid var(--glass-border);
      }
      .help-content td {
        padding: 6px 10px;
        border: 1px solid var(--glass-border);
      }
      .help-content kbd {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-xs);
        padding: 2px 6px;
        font-family: var(--font-mono);
        font-size: var(--fs-sm);
      }
      .help-content ul {
        padding-left: 18px;
      }
      body.light-mode #help-view .help-content {
        scrollbar-color: rgba(var(--primary-rgb), 0.45) rgba(15, 23, 42, 0.08);
      }
      body.light-mode #help-view .help-content::-webkit-scrollbar-track {
        background: rgba(15, 23, 42, 0.08);
      }
      body.light-mode #help-view .help-content::-webkit-scrollbar-thumb {
        background: rgba(var(--primary-rgb), 0.45);
        background-clip: padding-box;
      }
      body.light-mode #help-view .help-content::-webkit-scrollbar-thumb:hover {
        background: rgba(var(--primary-rgb), 0.6);
        background-clip: padding-box;
      }
      .help-content li {
        margin: 4px 0;
      }
      .help-content code {
        background: rgba(var(--primary-rgb), 0.1);
        padding: 1px 5px;
        border-radius: var(--radius-xs);
        font-size: var(--fs-base);
      }
body.light-mode .ambient-btn,
body.light-mode .kb-col-add-btn,
body.light-mode .msg-edit-cancel,
body.light-mode .sidebar-bottom-btn,
body.light-mode .dr-close-btn,
body.light-mode .kb-sp-btn,
body.light-mode .kb-swimlane-btn,
body.light-mode .sort-picker-btn,
body.light-mode .search-hint-btn,
body.light-mode .save-search-btn,
body.light-mode .pin-btn,
body.light-mode .undo-toast-btn {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}
body.light-mode .ambient-btn:hover,
body.light-mode .kb-col-add-btn:hover,
body.light-mode .msg-edit-cancel:hover,
body.light-mode .sidebar-bottom-btn:hover,
body.light-mode .dr-close-btn:hover,
body.light-mode .kb-sp-btn:hover,
body.light-mode .kb-swimlane-btn:hover,
body.light-mode .sort-picker-btn:hover,
body.light-mode .search-hint-btn:hover,
body.light-mode .save-search-btn:hover,
body.light-mode .pin-btn:hover,
body.light-mode .undo-toast-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.18);
}
      #zen-overlay {
        position: fixed;
        inset: 0;
        background: var(--bg);
        z-index: var(--z-modal-bg);
        display: none;
        -webkit-app-region: no-drag;
      }
      .zen-pomo-overlay {
        position: absolute; bottom: 52px; right: 2.5rem; z-index: var(--z-modal);
        background: var(--card-bg-solid);
        border: 1px solid rgba(var(--primary-rgb),0.3);
        border-radius: var(--radius-lg); padding: 16px 20px;
        backdrop-filter: blur(20px);
        display: flex; flex-direction: column; align-items: stretch;
        width: 220px;
        animation: gn-popup-in 0.3s ease-out;
      }
      body.light-mode .zen-pomo-overlay {
        background: rgba(255,255,255,0.95) !important;
        border-color: rgba(var(--primary-rgb),0.2) !important;
      }
.zen-close-row {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 14px 140px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-app-region: drag;
  pointer-events: all;
}
.zen-close-row > * { -webkit-app-region: no-drag; }
.zen-close-row--visible { display: flex; }
.zen-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  font-family: inherit;
  flex-shrink: 0;
  white-space: nowrap;
}
.zen-close-btn-extra {
  flex-shrink: 0;
  -webkit-app-region: no-drag;
  pointer-events: all;
  cursor: pointer;
}
body.light-mode .zen-close-row {
  background: rgba(0, 0, 0, 0.03);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
.cmd-palette-header {
  padding: 4px 14px 2px;
  opacity: 0.7;
  color: var(--primary);
}
.cmd-palette-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cmd-palette-icon {
  font-size: var(--fs-md);
  width: 22px;
  text-align: center;
}
.cmd-palette-label {
  flex: 1;
  font-size: var(--fs-md);
}
.cmd-palette-shortcut {
  font-size: var(--fs-sm);
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.12);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}
.rm-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--primary);
  z-index: var(--z-modal-bg);
  transition: width 0.1s linear;
  pointer-events: none;
}
.rm-badge {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: var(--z-modal);
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 12px;
  border-radius: var(--radius-lg);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: opacity 0.2s;
  user-select: none;
}
.rm-badge:hover {
  opacity: 0.7;
}
body.light-mode .rm-badge {
  background: rgba(0,0,0,0.12);
  color: rgba(0,0,0,0.5);
  border-color: rgba(0,0,0,0.08);
}
.rm-exit-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: var(--z-modal);
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 7px 16px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-size: var(--fs-base);
  backdrop-filter: blur(8px);
  transition: 0.15s;
}
.rm-exit-btn:hover {
  background: rgba(0,0,0,0.8);
  color: var(--text-main);
}
body.light-mode .rm-exit-btn {
  background: rgba(0,0,0,0.35);
  border-color: rgba(0,0,0,0.15);
}
.wc-status-text {
  font-size: var(--fs-base);
  color: var(--text-dim);
  min-height: 20px;
  margin-bottom: 8px;
}
.api-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: var(--fs-md);
  color: var(--text-main);
}
.api-toggle-cb {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}
.api-desc-text {
  font-size: var(--fs-base);
  color: var(--text-dim);
  margin-bottom: 12px;
  line-height: 1.5;
}
.api-endpoints-block {
  background: var(--card-bg);
  border-radius: var(--radius-base);
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: var(--fs-sm);
  color: var(--text-dim);
  line-height: 1.8;
}
.api-code-badge {
  background: var(--card-bg);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  color: var(--primary-light);
  font-size: var(--fs-base);
}


/* ── Autopilot Settings ──────────────────────────────────── */

.ap-settings-modal {
  background: linear-gradient(135deg, var(--bg-solid), var(--card-bg-solid));
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 460px;
  width: 92%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}
.ap-settings-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.ap-master-toggle {
  padding: 10px 14px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.ap-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ap-task-card {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: border-color 0.2s;
}
.ap-task-card:hover {
  border-color: rgba(var(--primary-rgb), 0.2);
}
.ap-task-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ap-check {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.ap-task-name {
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--text-dim);
}
.ap-task-desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: 2px;
}
.ap-task-config {
  margin-top: 6px;
  padding-left: 26px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.ap-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: var(--fs-sm);
  padding: 2px 6px;
  cursor: pointer;
  margin-left: 4px;
}
body.light-mode .ap-settings-modal {
  background: linear-gradient(135deg, var(--bg-solid), var(--card-bg-solid));
  border-color: rgba(var(--primary-rgb), 0.2);
}
body.light-mode .ap-task-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}
body.light-mode .ap-master-toggle {
  background: rgba(var(--primary-rgb), 0.05);
  border-color: rgba(var(--primary-rgb), 0.1);
}
body.light-mode .ap-select {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-main);
}

/* ── Error Log Viewer ────────────────────────────────────── */

#error-log-viewer {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  z-index: var(--z-toast);
  display: none;
  align-items: center; justify-content: center;
}
.error-log-inner {
  background: var(--bg-solid);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  width: 90vw; max-width: 900px;
  height: 70vh;
  padding: 24px;
  display: flex; flex-direction: column;
  box-shadow: 0 25px 80px rgba(0,0,0,0.5);
}
.error-log-row {
  display: grid;
  grid-template-columns: 140px 120px 1fr 100px;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  font-size: var(--fs-base);
  align-items: center;
  transition: background 0.15s;
}
.error-log-row:hover { background: rgba(255,255,255,0.04); }
.error-log-time { color: var(--text-muted); font-family: monospace; font-size: var(--fs-sm); }
.error-log-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
}
.error-log-msg { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.error-log-src { color: var(--text-muted); font-family: monospace; font-size: var(--fs-sm); text-align: right; }
.error-log-stack {
  margin: 0 12px 8px 12px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.4);
  border-radius: var(--radius-base);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 200px;
  overflow-y: auto;
  border-left: 3px solid rgba(var(--color-danger-rgb),0.4);
}
body.light-mode #error-log-viewer { background: rgba(255,255,255,0.75); }
body.light-mode .error-log-inner { background: var(--card-bg-solid); border-color: rgba(0,0,0,0.1); }
body.light-mode .error-log-row:hover { background: rgba(0,0,0,0.03); }
body.light-mode .error-log-msg { color: var(--text-main); }
body.light-mode .error-log-stack { background: rgba(0,0,0,0.04); color: var(--text-muted); }

/* ── Performance Dashboard ───────────────────────────────── */

#perf-dashboard {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  z-index: var(--z-toast);
  display: none;
  align-items: center; justify-content: center;
}
.perf-dash-inner {
  background: var(--bg-solid);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  width: 90vw; max-width: 800px;
  max-height: 80vh;
  padding: 24px;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0,0,0,0.5);
}
.perf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.perf-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.perf-card-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.perf-card-value {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-dim);
}
.perf-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 44px;
  margin-top: 6px;
}
body.light-mode #perf-dashboard { background: rgba(255,255,255,0.75); }
body.light-mode .perf-dash-inner { background: var(--card-bg-solid); border-color: rgba(0,0,0,0.1); }
body.light-mode .perf-card { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.08); }
body.light-mode .perf-card-value { color: var(--text-main); }
body.light-mode .perf-card {
  background: var(--card-bg-solid);
  border-color: var(--glass-border);
}

/* ── Log Viewer ──────────────────────────────────────────── */

.log-entry { padding: 2px 4px; border-bottom: 1px solid var(--glass-border); white-space: pre-wrap; word-break: break-all; line-height: 1.5; }
.log-entry:hover { background: var(--hover-bg, rgba(255,255,255,0.03)); }
.log-error { color: var(--color-danger); }
.log-warn { color: var(--color-warning); }
.log-time { color: var(--text-dim); margin-right: 4px; }
.log-type { color: var(--color-info); margin-right: 4px; }
.log-level-badge { font-weight: 600; font-size: var(--fs-sm); padding: 1px 4px; border-radius: var(--radius-xs); margin-right: 4px; }
.log-level-error { background: rgba(var(--color-danger-rgb),0.15); color: var(--color-danger); }
.log-level-warn { background: rgba(245,158,11,0.15); color: var(--color-warning); }
.log-level-info { background: rgba(59,130,246,0.1); color: var(--text-dim); }
#log-viewer-modal select, #log-viewer-modal input { background: var(--card-bg); color: var(--text-main); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 4px 8px; font-size: var(--fs-md); }
#log-viewer-modal select:focus, #log-viewer-modal input:focus { outline: none; border-color: var(--accent); }

      /* ── Timeline ────────────────────────────────────────────── */
      .dr-timeline-section {
        grid-column: 1 / -1;
      }
      .dr-timeline-track {
        position: relative;
        height: 42px;
        background: rgba(255,255,255,0.03);
        border-radius: var(--radius-base);
        border: 1px solid rgba(255,255,255,0.06);
        margin: 8px 0 4px;
        overflow: visible;
      }
      .dr-timeline-hour {
        position: absolute;
        bottom: 2px;
        font-size: var(--fs-xs);
        color: var(--text-muted);
        transform: translateX(-50%);
        pointer-events: none;
      }
      .dr-timeline-now {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 2px;
        background: var(--primary);
        opacity: 0.7;
        z-index: var(--z-above);
        border-radius: var(--radius-xs);
      }
      .dr-timeline-now::after {
        content: '';
        position: absolute;
        top: -3px;
        left: -3px;
        width: 8px;
        height: 8px;
        background: var(--primary);
        border-radius: var(--radius-full);
      }
      .dr-timeline-event {
        position: absolute;
        top: 4px;
        transform: translateX(-50%);
        z-index: var(--z-base);
        cursor: default;
      }
      .dr-timeline-dot {
        width: 10px;
        height: 10px;
        border-radius: var(--radius-full);
        border: 2px solid rgba(0,0,0,0.2);
      }
      .dr-timeline-legend {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 12px;
        font-size: var(--fs-sm);
        color: var(--text-dim);
        padding: 2px 4px;
      }
      .dr-timeline-leg-item {
        display: flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
      }
      .dr-timeline-leg-dot {
        width: 6px;
        height: 6px;
        border-radius: var(--radius-full);
        flex-shrink: 0;
      }


      /* ── Light mode: Dynamic context menus (inline styles from JS) ── */
      body.light-mode #note-ctx-menu {
        background: var(--card-bg-solid) !important;
        border-color: rgba(0,0,0,0.12) !important;
        box-shadow: 0 12px 32px rgba(0,0,0,0.15) !important;
      }
      body.light-mode #note-ctx-menu button {
        color: var(--text-main) !important;
      }
      body.light-mode #note-ctx-menu div[style*="background:rgba(255,255,255"] {
        background: rgba(0,0,0,0.06) !important;
      }
      body.light-mode .ctx-menu {
        background: var(--card-bg-solid) !important;
        border-color: rgba(0,0,0,0.12) !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
      }
      body.light-mode .ctx-menu button {
        color: var(--text-main) !important;
      }

/* ── Light-mode overrides: Pomodoro ──────────────────────── */
body.light-mode .pomo-stepper-col { color: var(--text-main); }
body.light-mode .pomo-alert-overlay { background: rgba(255,255,255,0.75); }
body.light-mode .pomo-alert-card {
  background: var(--card-bg-solid);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 40px 80px rgba(0,0,0,0.15), 0 0 60px rgba(var(--primary-rgb),0.1);
}
body.light-mode .pomo-alert-title { color: var(--text-main); }
body.light-mode .pomo-alert-subtitle { color: var(--text-muted); }

/* ── Light-mode overrides: Timeline cards ────────────────── */
body.light-mode .tl-line { background: linear-gradient(90deg,rgba(var(--primary-rgb),0.3),rgba(var(--primary-rgb),0.08)); }
body.light-mode .tl-card {
  background: var(--card-bg-solid);
  border-color: rgba(0,0,0,0.08);
}
body.light-mode .tl-card:hover {
  border-color: rgba(var(--primary-rgb),0.3);
  background: rgba(var(--primary-rgb),0.06);
}
body.light-mode .tl-card-title { color: var(--text-main); }
body.light-mode .tl-card-preview { color: var(--text-muted); }
body.light-mode .tl-tag {
  background: rgba(var(--primary-rgb),0.1);
  color: var(--primary-dark);
}
body.light-mode .tl-today-dot { border-color: var(--card-bg-solid); }

/* ── Light-mode overrides: Onboarding ────────────────────── */
body.light-mode .ob-tooltip {
  background: var(--card-bg-solid);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  color: var(--text-main);
}
body.light-mode .ob-next-btn { color: #fff; }
body.light-mode .ob-skip-btn { color: var(--text-muted); }
body.light-mode .ob-backdrop { background: rgba(0,0,0,0.35); }

/* ── Light-mode overrides: Diagnostics ───────────────────── */
body.light-mode .diag-empty { color: var(--text-muted); }
body.light-mode .diag-ls-row { border-bottom-color: rgba(0,0,0,0.06); }
body.light-mode .diag-perf-stats { color: var(--text-muted); }

/* ── Light-mode overrides: Log Viewer ────────────────────── */
body.light-mode .log-entry { border-bottom-color: rgba(0,0,0,0.06); }
body.light-mode .log-entry:hover { background: rgba(0,0,0,0.03); }
body.light-mode .log-time { color: var(--text-muted); }
body.light-mode .log-type { color: var(--color-info); }
body.light-mode .log-level-info { background: rgba(59,130,246,0.08); color: var(--text-main); }

/* ── Light-mode overrides: Daily Review Timeline ─────────── */
body.light-mode .dr-timeline-track {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}
body.light-mode .dr-timeline-hour { color: var(--text-muted); }
body.light-mode .dr-timeline-dot { border-color: rgba(255,255,255,0.6); }
body.light-mode .dr-timeline-legend { color: var(--text-main); }

/* ── Light-mode overrides: Command Palette ───────────────── */
body.light-mode .cmd-palette-header { color: var(--primary-dark); }
body.light-mode .cmd-palette-label { color: var(--text-main); }
body.light-mode .cmd-palette-shortcut {
  background: rgba(var(--primary-rgb),0.08);
  color: var(--primary-dark);
}

/* ── Light-mode overrides: API / web-clip settings ───────── */
body.light-mode .api-toggle-label { color: var(--text-main); }
body.light-mode .api-desc-text { color: var(--text-muted); }
body.light-mode .api-endpoints-block {
  background: rgba(0,0,0,0.03);
  color: var(--text-main);
}
body.light-mode .api-code-badge {
  background: rgba(0,0,0,0.04);
  color: var(--primary-dark);
}
body.light-mode .wc-status-text { color: var(--text-main); }

/* ── Light-mode overrides: Jam / Music panel ─────────────── */
body.light-mode .jm-form-label { color: var(--text-main); }
body.light-mode .jm-empty-text { color: var(--text-muted); }
body.light-mode .jm-collapse-btn {
  background: rgba(var(--primary-rgb),0.1);
  color: var(--text-main);
}
body.light-mode .jm-preset-label-row { color: var(--text-main); }
body.light-mode .jm-add-preset-btn {
  background: rgba(var(--primary-rgb),0.1);
  color: var(--text-main);
}
body.light-mode .jm-preset-del { color: var(--text-muted); }
body.light-mode .jm-login-btn {
  background: rgba(255,204,0,0.1);
  border-color: rgba(200,160,0,0.25);
  color: #92700c;
}
body.light-mode .jm-input-label { color: var(--text-main); }
body.light-mode .jm-preset-dialog-overlay { background: rgba(0,0,0,0.35); }
body.light-mode .jm-preset-dialog-box {
  background: var(--card-bg-solid);
  border-color: rgba(0,0,0,0.12);
}

/* ══════════════════════════════════════════════════
   Context-menu extracted styles
   ══════════════════════════════════════════════════ */

/* ── Merge picker ──────────────────────────────── */
.ctx-merge-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: var(--fs-base);
}
.ctx-merge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: var(--radius-base);
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
    font-size: var(--fs-base);
    transition: background 0.15s;
}
.ctx-merge-item:hover { background: rgba(var(--primary-rgb), 0.12); }
.ctx-merge-info {
    flex: 1;
    min-width: 0;
}
.ctx-merge-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ctx-merge-preview {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

/* ── Context menu positioning (initial hidden state) ── */
.gn-ctx-menu--pending {
    position: fixed;
    top: 0;
    left: 0;
    visibility: hidden;
    z-index: var(--z-toast);
}

/* ── Sub-menu overflow ─────────────────────────── */
.gn-ctx-submenu {
    position: fixed;
    z-index: var(--z-toast);
    max-height: 280px;
    overflow-y: auto;
}

/* ── Folder dot in submenu ─────────────────────── */
.ctx-folder-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

/* ── Arrow indicator in submenu trigger ────────── */
.gn-ctx-arrow { float: right; opacity: 0.5; }

/* ── Emoji icon in merge picker item ───────────── */
.ctx-merge-icon { flex-shrink: 0; }

/* ── Flex layout variant for ctx buttons ───────── */
.gn-ctx-btn--flex { display: flex; align-items: center; gap: 6px; }

/* ══════════════════════════════════════════════════
   Note-history extracted styles
   ══════════════════════════════════════════════════ */
.vh-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.vh-header-icon { font-size: var(--fs-lg); }
.vh-header-title {
    font-weight: 700;
    color: var(--text-dim);
    font-size: var(--fs-base);
}
.vh-badge {
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--primary-light);
    font-size: var(--fs-xs);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}
.vh-version-label {
    color: var(--text-muted, #64748b);
    font-size: var(--fs-sm);
}
.vh-item-row1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}
.vh-item-date {
    color: var(--primary-light);
    font-weight: 600;
}
.vh-item-delta {
    font-size: var(--fs-xs);
    font-weight: 600;
}
.vh-item-words {
    color: var(--text-muted, #64748b);
    font-size: var(--fs-xs);
}
.vh-item-preview {
    color: var(--text-muted, #64748b);
    font-size: var(--fs-xs);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-top: 2px;
}

/* ══════════════════════════════════════════════════
   Telemetry opt-in banner (settings.js)
   ══════════════════════════════════════════════════ */
.gn-telemetry-banner {
    position: fixed;
    bottom: 16px;
    right: 16px;
    max-width: 360px;
    background: var(--card-bg, #1e2130);
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    z-index: var(--z-toast);
    color: var(--text-main, #e0e6f0);
    font-size: var(--fs-base);
    line-height: 1.5;
}
.gn-telemetry-title {
    margin: 0 0 8px;
    font-weight: 600;
    font-size: var(--fs-base);
}
.gn-telemetry-desc {
    margin: 0 0 12px;
    color: var(--text-dim, #8892a4);
}
.gn-telemetry-actions {
    display: flex;
    gap: 8px;
}
.gn-telemetry-btn {
    flex: 1;
    padding: 8px;
    border-radius: var(--radius-base);
    cursor: pointer;
    font-size: var(--fs-base);
}
.gn-telemetry-btn--yes {
    border: none;
    background: var(--accent, #6c63ff);
    color: #fff;
}
.gn-telemetry-btn--no {
    border: 1px solid var(--border-color, rgba(255,255,255,0.15));
    background: transparent;
    color: var(--text-dim, #8892a4);
}

/* ── Shortcuts Modal (ui-extras.js openShortcutsModal) ───── */
.sc-card {
  background: var(--bg-secondary, #1e1e2e);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.1));
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.sc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.sc-title {
  margin: 0;
  font-size: var(--fs-xl);
  color: var(--text-main, #fff);
}
.sc-close-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.1));
  color: var(--text-dim, #888);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-base);
  cursor: pointer;
  font-size: var(--fs-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sc-table { width: 100%; border-collapse: collapse; }
.sc-row { border-bottom: 1px solid rgba(255,255,255,0.06); }
.sc-key { padding: 8px 12px 8px 0; white-space: nowrap; }
.sc-kbd {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  font-family: system-ui, sans-serif;
  font-size: var(--fs-sm);
  color: var(--text-main, #fff);
}
.sc-desc { padding: 8px 0; color: var(--text-dim, #aaa); font-size: var(--fs-base); }

/* ── Web Clipper (ui-extras.js) ──────────────────────────── */
.wc-clip-btn { padding: 8px 14px; white-space: nowrap; }
.wc-summary-ta { resize: vertical; font-size: var(--fs-base); }

/* ── Security / REST API Settings (ui-extras.js) ─────────── */
.sec-title { margin: 12px 0 8px; font-weight: 700; }
.sec-token-row { gap: 6px; margin-bottom: 10px; }
.sec-gen-btn { padding: 5px 10px; font-size: var(--fs-sm); white-space: nowrap; }

/* ── About Modal (ui-extras.js openAboutModal) ───────────── */
.about-box { max-width: 400px; text-align: center; padding: 32px; }
.about-emoji { font-size: var(--fs-display); margin-bottom: 12px; }
.about-app-title { margin: 0 0 8px; font-family: var(--font-brand); }
.about-version { color: var(--text-muted); margin-bottom: 16px; }
.about-desc { color: var(--text-muted); font-size: var(--fs-base); line-height: 1.6; }

/* ── Note Properties / Stats Modal (ui-extras.js) ────────── */
.np-box { max-width: 420px; padding: 24px 28px; }
.np-header {
  margin: 0 0 16px;
  font-size: var(--fs-lg);
  display: flex;
  align-items: center;
  gap: 8px;
}
.np-title-sub {
  color: var(--text-muted);
  font-size: var(--fs-base);
  margin-bottom: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.np-table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
.np-row-label { padding: 5px 8px 5px 0; color: var(--text-muted); white-space: nowrap; width: 50%; }
.np-row-val { padding: 5px 0; font-weight: 500; }
.np-close-btn { margin-top: 18px; width: 100%; }

/* ── Word Cloud Modal (ui-extras.js) ─────────────────────── */
.np-cloud-box { max-width: 520px; padding: 24px 28px; }
.np-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  padding: 16px 8px;
  min-height: 120px;
}
.np-cloud-word {
  cursor: pointer;
  transition: transform .15s, opacity .15s;
  line-height: 1.3;
  user-select: none;
}
.np-summary { margin-top: 14px; font-size: var(--fs-sm); color: var(--text-muted); text-align: center; }

/* ── Jam Preset Dialog fields (jam-ui.js) ────────────────── */
.jm-preset-dialog-title { font-weight: 600; margin-bottom: 12px; color: var(--text-main, #e2e8f0); }
.jm-preset-input {
  width: 100%;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--input-bg, rgba(255,255,255,0.06));
  color: var(--text-main, #e2e8f0);
  margin-bottom: 8px;
  box-sizing: border-box;
  outline: none;
}
.jm-preset-input--url { margin-bottom: 12px; }
.jm-preset-btn-row { display: flex; gap: 8px; justify-content: flex-end; }

/* ── Weather Forecast (widgets.js) ───────────────────────── */
.w-forecast-col {
  text-align: center;
  min-width: 42px;
  padding: 4px 2px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  font-size: var(--fs-xs);
}
.w-forecast-day { color: var(--text-dim); font-size: var(--fs-xs); }
.w-forecast-icon { font-size: var(--fs-md); }
.w-forecast-hi { color: var(--text-main); font-weight: 600; }
.w-forecast-lo { color: var(--text-dim); }

/* ── Weather City Picker (widgets.js) ────────────────────── */
.w-city-picker {
  position: fixed;
  z-index: var(--z-toast);
  width: 260px;
  padding: 12px;
  background: #1a1a2e;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  animation: gn-popup-in 0.15s both;
}
.w-city-picker-input { width: 100%; margin-bottom: 8px; font-size: var(--fs-base); }
.w-city-picker-results { max-height: 200px; overflow-y: auto; }
.w-city-item {
  padding: 8px 10px;
  cursor: pointer;
  border-radius: var(--radius-base);
  font-size: var(--fs-base);
  transition: background 0.1s;
}
.w-city-item:hover { background: rgba(255,255,255,0.08); }
.w-city-item-name { font-weight: 600; }
.w-city-item-country { font-size: var(--fs-xs); color: var(--text-dim); }

/* FIX-9: light-mode support for weather city picker */
body.light-mode .w-city-picker { background: var(--card-bg-solid, #fff); border-color: var(--glass-border); }
body.light-mode .w-city-item:hover { background: rgba(0,0,0,0.06); }

