/* ==========================================================================
   PERSONAL HUB - MODULES CSS (Maximized Visual & UX Polish + Graph View)
   ========================================================================== */

/* ==========================================================================
   1. FOCUS POMODORO & AMBIENT SOUND MODULE
   ========================================================================== */
.pomodoro-card {
  background: linear-gradient(145deg, rgba(79, 70, 229, 0.14) 0%, rgba(18, 18, 24, 0.85) 100%);
  border: 1px solid rgba(99, 102, 241, 0.28);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.pomodoro-card.active-timer {
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3), inset 0 0 15px rgba(99, 102, 241, 0.1);
}

.pomodoro-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pomodoro-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* --- Circular SVG Progress Ring --- */
.pomo-ring-container {
  position: relative;
  width: 124px;
  height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pomo-progress-ring {
  transform: rotate(-90deg);
}

.pomo-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 6;
}

.pomo-ring-fill {
  fill: none;
  stroke: var(--indigo-500);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.8s ease, stroke 0.3s ease;
  filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.6));
}

.pomodoro-card.active-timer .pomo-ring-fill {
  stroke: #818cf8;
}

.pomo-ring-center {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.pomodoro-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.1;
}

.pomodoro-subtitle {
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 2px;
}

.pomodoro-right-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 180px;
}

.pomodoro-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pomo-task-bind-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  background: rgba(10, 10, 14, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
}

.pomodoro-presets-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.pomo-preset-chip {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(14, 14, 18, 0.7);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.pomo-preset-chip:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.pomo-preset-chip.active {
  background: var(--indigo-bg);
  border-color: var(--indigo-500);
  color: #fff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
}

.ambient-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 12, 16, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
}

.ambient-btn-group {
  display: flex;
  gap: 4px;
}

.ambient-chip {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(20, 20, 26, 0.8);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s;
}

.ambient-chip:hover {
  color: var(--text-primary);
}

.ambient-chip.active {
  background: var(--cyan-bg);
  border-color: var(--cyan-400);
  color: #fff;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
}

/* ==========================================================================
   2. EYE & POSTURE GUARD (20-20-20 RULE) MODULE
   ========================================================================== */
.eyeguard-card {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.12) 0%, rgba(18, 18, 24, 0.85) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.eyeguard-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyeguard-info-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.eyeguard-info-sub {
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* ==========================================================================
   3. DAILY TIME BLOCKING MODULE
   ========================================================================== */
.timeblock-card {
  border-color: rgba(99, 102, 241, 0.25);
}

/* --- Visual 24h Timeline Bar --- */
.timeblock-timeline-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  background: rgba(10, 10, 14, 0.5);
  padding: 6px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.timeblock-timeline-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.58rem;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, monospace;
  padding: 0 2px;
}

.timeblock-timeline-track {
  position: relative;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.timeblock-bar-segment {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 2px;
  opacity: 0.85;
  transition: all 0.2s ease;
  cursor: pointer;
}

.timeblock-bar-segment:hover {
  opacity: 1;
  filter: brightness(1.2);
}

.timeblock-bar-segment.is-done {
  opacity: 0.35;
  filter: grayscale(0.6);
}

.timeblock-live-needle {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  z-index: 2;
  border-radius: 1px;
}

.timeblock-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
}

.timeblock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(14, 14, 18, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeblock-item:hover {
  border-color: var(--border-medium);
  background: rgba(22, 22, 28, 0.85);
}

.timeblock-item.is-current {
  border-color: var(--indigo-500);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(18, 18, 24, 0.95));
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.25);
}

.timeblock-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  overflow: hidden;
  cursor: pointer;
}

.timeblock-time-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 7px;
  border-radius: 5px;
  color: var(--cyan-400);
  white-space: nowrap;
}

.timeblock-activity {
  font-size: 0.78rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeblock-item.done .timeblock-activity {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* ==========================================================================
   4. KNOWLEDGE & WORKSPACE GRAPH VIEW MODULE
   ========================================================================== */
.graph-card {
  border-color: rgba(129, 140, 248, 0.3);
  padding: 14px;
}

.graph-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  background: rgba(10, 10, 14, 0.85);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  margin-bottom: 8px;
}

.graph-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.graph-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.graph-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.62rem;
  color: var(--text-muted);
}

.graph-legend-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  display: inline-block;
}

/* ==========================================================================
   5. SERVER / WEBSITE STATUS & PING MONITOR MODULE
   ========================================================================== */
.ping-card {
  border-color: rgba(34, 211, 238, 0.25);
}

.ping-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.ping-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(14, 14, 18, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.18s ease;
}

.ping-item-card:hover {
  border-color: var(--border-medium);
  background: rgba(22, 22, 28, 0.85);
}

.ping-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.ping-status-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.ping-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
}

.ping-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ping-url {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   6. READING & LEARNING GOAL TRACKER MODULE
   ========================================================================== */
.reading-card {
  border-color: rgba(168, 85, 247, 0.25);
}

.reading-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
}

.reading-item-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 11px 13px;
  background: rgba(14, 14, 18, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.18s;
}

.reading-item-card:hover {
  border-color: var(--border-medium);
}

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

.reading-info-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
}

.reading-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reading-author {
  font-size: 0.64rem;
  color: var(--text-secondary);
}

.reading-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.reading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--indigo-500), var(--cyan-400));
  border-radius: var(--radius-full);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.reading-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   7. SUBSCRIPTION & RECURRING BILLS MODULE
   ========================================================================== */
.subs-card {
  border-color: rgba(245, 158, 11, 0.25);
}

.subs-summary-banner {
  background: rgba(12, 12, 16, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.subs-total-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--amber-400);
}

.subs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(14, 14, 18, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.18s;
}

.sub-item:hover {
  border-color: var(--border-medium);
  background: rgba(22, 22, 28, 0.85);
}

.sub-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sub-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-amount {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber-400);
}

.sub-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* ==========================================================================
   8. DEV & TEXT TOOLBOX MODULE
   ========================================================================== */
.devbox-card {
  border-color: rgba(99, 102, 241, 0.3);
}

.devbox-tab-bar {
  display: flex;
  gap: 3px;
  background: rgba(10, 10, 14, 0.75);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.devbox-tab-bar::-webkit-scrollbar {
  display: none;
}

.devbox-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 6px 9px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.devbox-tab-btn.active {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.devbox-panel {
  display: none;
  flex-direction: column;
  gap: 8px;
}
.devbox-panel.active {
  display: flex;
}

.case-chip-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.case-chip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 12, 16, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 11px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.case-chip-row:hover {
  border-color: var(--indigo-500);
  background: rgba(20, 20, 28, 0.95);
  transform: translateX(2px);
}

.case-chip-type {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.case-chip-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  color: var(--cyan-400);
  font-weight: 600;
}

.color-preview-box {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: #6366f1;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   9. FINANCIAL CALCULATOR & COMPOUND SIMULATOR MODULE
   ========================================================================== */
.sim-card {
  border-color: rgba(168, 85, 247, 0.25);
}

.sim-output-box {
  background: rgba(12, 12, 16, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sim-output-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--emerald-400);
}

/* ==========================================================================
   10. DAILY DIARY / JOURNAL MODULE
   ========================================================================== */
.diary-card {
  border-color: rgba(99, 102, 241, 0.22);
  background: linear-gradient(180deg, rgba(24, 24, 32, 0.9) 0%, rgba(18, 18, 24, 0.85) 100%);
}

.diary-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 12, 16, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 8px;
  margin-bottom: 12px;
}

.diary-date-display {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.18s;
}
.diary-date-display:hover {
  background: rgba(255, 255, 255, 0.07);
}

.diary-date-input {
  display: none;
}

.btn-diary-nav {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}
.btn-diary-nav:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}
.btn-diary-nav:active {
  transform: scale(0.92);
}

.diary-textarea {
  width: 100%;
  min-height: 150px;
  font-family: inherit;
  font-size: 0.86rem;
  line-height: 1.65;
  background: rgba(12, 12, 16, 0.85);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  outline: none;
  resize: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.diary-textarea:focus {
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.diary-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.diary-tools-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-timestamp {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--indigo-400);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.18s;
}
.btn-timestamp:hover {
  background: rgba(99, 102, 241, 0.22);
}

.diary-stats {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.diary-tools-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   11. HABIT & ROUTINE TRACKER MODULE
   ========================================================================== */
.habit-card {
  border-color: rgba(16, 185, 129, 0.22);
}

.habit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
}

.habit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(14, 14, 18, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.habit-item:hover {
  border-color: var(--border-medium);
  background: rgba(22, 22, 28, 0.85);
}

.habit-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  cursor: pointer;
  overflow: hidden;
}

.habit-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.habit-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.habit-streak-badge {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--emerald-400);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.habit-week-matrix {
  display: flex;
  align-items: center;
  gap: 4px;
}

.habit-day-dot {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 0.52rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.habit-day-dot.done {
  background: var(--emerald-500);
  border-color: var(--emerald-500);
  color: #fff;
}

.habit-day-dot.today {
  border-color: var(--indigo-400);
}

/* ==========================================================================
   12. EVENT COUNTDOWN & IMPORTANT DATES MODULE
   ========================================================================== */
.events-card {
  border-color: rgba(99, 102, 241, 0.25);
}

.events-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.event-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(14, 14, 18, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.18s;
}

.event-item-card:hover {
  border-color: var(--border-medium);
  background: rgba(22, 22, 28, 0.85);
}

.event-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.event-days-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.event-days-box.is-today {
  background: var(--emerald-bg);
  border-color: var(--emerald-border);
}

.event-days-box.is-past {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  opacity: 0.6;
}

.event-filter-chip {
  font-size: 0.62rem;
  padding: 2px 8px;
}

.event-days-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.event-days-lbl {
  font-size: 0.48rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.event-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-date-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* ==========================================================================
   13. VISUAL ANALYTICS & PRODUCTIVITY SCORE MODULE
   ========================================================================== */
.analytics-card {
  border-color: rgba(34, 211, 238, 0.22);
}

.analytics-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.analytics-stat-box {
  background: rgba(12, 12, 16, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.analytics-stat-lbl {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.analytics-stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.analytics-stat-sub {
  font-size: 0.58rem;
  color: var(--text-muted);
}

.analytics-chart-container {
  background: rgba(12, 12, 16, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px 8px 14px;
  margin-bottom: 12px;
}

.chart-bar-group rect {
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
}
.chart-bar-group:hover rect {
  opacity: 0.85;
}

/* --- GitHub-Style 365-Day Activity Heatmap Matrix --- */
.heatmap-wrapper {
  background: rgba(12, 12, 16, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.heatmap-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}

.heatmap-title-text {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.heatmap-kpi-pill-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.heatmap-kpi-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.62rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.heatmap-kpi-pill strong {
  color: var(--emerald-400);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.heatmap-scroll-area {
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.heatmap-scroll-area::-webkit-scrollbar {
  height: 4px;
}
.heatmap-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.heatmap-svg {
  display: block;
  min-width: 680px;
  height: 112px;
}

.heatmap-cell {
  transition: transform 0.15s ease, filter 0.15s ease, stroke 0.15s ease;
  cursor: pointer;
}
.heatmap-cell:hover {
  filter: brightness(1.35);
  stroke: #ffffff;
  stroke-width: 1.5px;
  stroke-opacity: 0.9;
}

.heatmap-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 0.62rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 6px;
}

.heatmap-legend-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.heatmap-legend-box {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.heatmap-tooltip-box {
  background: rgba(18, 18, 24, 0.95);
  border: 1px solid var(--purple-500);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  color: var(--text-primary);
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeIn 0.2s ease-out;
}

.heatmap-tooltip-box strong {
  color: var(--cyan-400);
}

/* ==========================================================================
   14. QUICK SCRATCHPAD / CLIPBOARD BUFFER MODULE
   ========================================================================== */
.scratchpad-card {
  border-color: rgba(244, 63, 94, 0.25);
}

.scratchpad-textarea {
  width: 100%;
  min-height: 95px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  background: rgba(12, 12, 16, 0.85);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}

.scratchpad-textarea:focus {
  border-color: var(--rose-500);
}

/* ==========================================================================
   15. MINI UTILITY TOOLKIT MODULE
   ========================================================================== */
.toolkit-card {
  border-color: rgba(56, 189, 248, 0.25);
}

.toolkit-tab-bar {
  display: flex;
  gap: 4px;
  background: rgba(10, 10, 14, 0.7);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 10px;
}

.toolkit-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.18s;
}

.toolkit-tab-btn.active {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.toolkit-panel {
  display: none;
  flex-direction: column;
  gap: 8px;
}
.toolkit-panel.active {
  display: flex;
}

.pwd-output-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 12, 16, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  color: var(--cyan-400);
  font-weight: 700;
}

.calc-display-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 12, 16, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
}

.calc-result-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--emerald-400);
}

/* ==========================================================================
   16. TASK MANAGER MODULE
   ========================================================================== */
.task-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
}

.filter-btn-group {
  display: flex;
  gap: 3px;
  background: rgba(10, 10, 14, 0.7);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.filter-chip {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}

.filter-chip.active {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.btn-clear-completed {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s;
}
.btn-clear-completed:hover {
  color: var(--rose-500);
}

.task-form-expanded {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.task-input-row {
  display: flex;
  gap: 8px;
}

.task-meta-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(12, 12, 16, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 10px;
}

.meta-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.priority-select-group, .deadline-select-group {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
}

.priority-label, .deadline-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.priority-radio-btn, .deadline-preset-btn {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(18, 18, 24, 0.85);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}

.priority-radio-btn.active.p-high {
  background: var(--rose-bg);
  border-color: var(--rose-border);
  color: var(--rose-400);
}
.priority-radio-btn.active.p-med {
  background: var(--amber-bg);
  border-color: var(--amber-border);
  color: var(--amber-400);
}
.priority-radio-btn.active.p-low {
  background: var(--indigo-bg);
  border-color: var(--indigo-border);
  color: var(--indigo-400);
}

.deadline-preset-btn.active {
  background: var(--cyan-bg);
  border-color: var(--cyan-400);
  color: #fff;
}

.task-due-input {
  font-size: 0.68rem;
  padding: 3px 7px;
  background: rgba(18, 18, 24, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  display: none;
}
.task-due-input.show {
  display: inline-block;
}

/* Recurring Task Selector */
.recur-select-group {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  flex: 1;
}

.recur-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}

.recur-chip {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(18, 18, 24, 0.85);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}

.recur-chip.active {
  background: var(--purple-bg);
  border-color: var(--purple-border);
  color: var(--purple-400);
}

.recur-options-panel {
  display: none;
  padding: 8px 10px;
  background: rgba(12, 12, 16, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.recur-options-panel.show {
  display: block;
}

.recur-opt-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.recur-weekday {
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 32px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(18, 18, 24, 0.85);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s;
}

.recur-weekday.active {
  background: var(--purple-bg);
  border-color: var(--purple-border);
  color: #fff;
}

.recur-num-input {
  font-size: 0.7rem;
  width: 64px;
  padding: 4px 8px;
  background: rgba(18, 18, 24, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
}
.recur-num-input:focus {
  border-color: var(--indigo-500);
}
.recur-num-input::-webkit-inner-spin-button {
  opacity: 1;
}

.task-rec-badge {
  font-size: 0.62rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  background: var(--purple-bg);
  border: 1px solid var(--purple-border);
  color: var(--purple-400);
}

.task-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 240px;
  overflow-y: auto;
}

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(14, 14, 18, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.task-item:hover {
  border-color: var(--border-medium);
  background: rgba(22, 22, 28, 0.85);
}

.task-item.completed {
  opacity: 0.45;
}

.task-content-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  overflow: hidden;
  cursor: pointer;
}

.custom-checkbox {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.task-item.completed .custom-checkbox, .habit-item.completed .custom-checkbox {
  background: var(--emerald-500);
  border-color: var(--emerald-500);
  color: #fff;
}

.task-info-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.task-main-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.task-text {
  font-size: 0.82rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-item.completed .task-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.task-priority-tag {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1.5px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}
.tag-high {
  background: var(--rose-bg);
  color: var(--rose-400);
  border: 1px solid var(--rose-border);
}
.tag-med {
  background: var(--amber-bg);
  color: var(--amber-400);
  border: 1px solid var(--amber-border);
}
.tag-low {
  background: var(--indigo-bg);
  color: var(--indigo-400);
  border: 1px solid var(--indigo-border);
}

/* --- Subtasks Checklist Styles --- */
.subtask-count-btn {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.subtask-count-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.subtask-count-btn.active {
  background: var(--indigo-bg);
  color: #fff;
  border-color: var(--indigo-500);
}

.task-subtasks-container {
  width: 100%;
  padding: 8px 10px;
  margin-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 12, 0.6);
  border-radius: var(--radius-sm);
}

.subtasks-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 8px;
}

.subtask-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  padding: 2px 0;
}

.subtask-item-row.is-done .subtask-text {
  text-decoration: line-through;
  color: var(--text-muted);
  opacity: 0.6;
}

.subtask-checkbox {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  border: 1px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 8px;
}

.subtask-item-row.is-done .subtask-checkbox {
  background: var(--emerald-500);
  border-color: var(--emerald-500);
  color: #fff;
}

.subtask-text {
  flex: 1;
  cursor: pointer;
}

.btn-delete-subtask {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 4px;
}

.btn-delete-subtask:hover {
  color: var(--rose-400);
}

.subtask-add-form {
  display: flex;
  gap: 6px;
  align-items: center;
}

.subtask-input {
  font-size: 0.68rem;
  padding: 3px 8px;
  height: 24px;
  flex: 1;
}

/* --- Habit Streak & Flame Badges --- */
.habit-streak-badge.streak-flame {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--amber-400);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

.habit-filter-chip {
  font-size: 0.62rem;
  padding: 2px 8px;
}

.task-deadline-badge {
  font-size: 0.62rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.deadline-tag-overdue {
  color: var(--rose-400);
  font-weight: 700;
}
.deadline-tag-today {
  color: var(--amber-400);
  font-weight: 700;
}
.deadline-tag-future {
  color: var(--cyan-400);
}
.deadline-tag-none {
  color: var(--text-muted);
  font-style: italic;
}

/* ==========================================================================
   17. STANDALONE MULTI-NOTES MODULE
   ========================================================================== */
.notes-search-bar {
  position: relative;
  margin-bottom: 10px;
}

.notes-search-input {
  width: 100%;
  font-family: inherit;
  font-size: 0.78rem;
  background: rgba(12, 12, 16, 0.85);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px 8px 32px;
  outline: none;
  transition: border-color 0.2s;
}
.notes-search-input:focus {
  border-color: var(--indigo-500);
}

.notes-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.new-note-box {
  background: rgba(14, 14, 18, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 12px;
  display: none;
  flex-direction: column;
  gap: 8px;
}

/* Note Templating & Front-Matter */
.note-template-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.note-template-chip {
  font-size: 0.64rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(18, 18, 24, 0.85);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}

.note-template-chip.active {
  background: var(--indigo-bg);
  border-color: var(--indigo-border);
  color: var(--indigo-400);
}

.note-meta-fields {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  padding: 10px;
  background: rgba(12, 12, 16, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.note-meta-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.note-meta-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.note-meta-input {
  font-size: 0.72rem;
  width: 100%;
}

.note-relation-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  padding: 10px;
  background: rgba(12, 12, 16, 0.35);
  border: 1px dashed var(--purple-border);
  border-radius: var(--radius-sm);
}

.note-relation-title {
  grid-column: 1 / -1;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple-400);
}

.note-relation-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.note-relation-select {
  font-size: 0.7rem;
  min-width: 0;
}

.note-template-badge {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--indigo-bg);
  border: 1px solid var(--indigo-border);
  color: var(--indigo-400);
  white-space: nowrap;
}
.new-note-box.show {
  display: flex;
}

.tag-select-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tag-pill-option {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(20, 20, 26, 0.8);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}
.tag-pill-option.active {
  background: var(--indigo-bg);
  border-color: var(--indigo-500);
  color: #fff;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 270px;
  overflow-y: auto;
}

.note-card-item {
  background: rgba(14, 14, 18, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  position: relative;
  transition: all 0.18s;
  cursor: pointer;
}
.note-card-item:hover {
  border-color: var(--border-medium);
  background: rgba(24, 24, 32, 0.9);
  transform: translateY(-1px);
}

.note-card-item.pinned {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(18, 18, 24, 0.85));
}

.note-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}

.note-tag-badge {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1.5px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.note-pin-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
}
.note-pin-btn.active {
  color: var(--amber-400);
}

.note-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.note-card-snippet {
  font-size: 0.68rem;
  color: var(--text-secondary);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.note-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.6rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ==========================================================================
   18. MULTI-WALLET & MONEY MANAGEMENT MODULE
   ========================================================================== */
.finance-card {
  border-color: rgba(245, 158, 11, 0.22);
}

.net-worth-banner {
  background: linear-gradient(135deg, rgba(20, 20, 26, 0.95), rgba(30, 30, 40, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.net-worth-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.net-worth-amount {
  font-size: 1.3rem;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #fff;
  margin-top: 2px;
}

.wallets-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.wallets-carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.wallets-carousel::-webkit-scrollbar {
  display: none;
}

.wallet-card-chip {
  background: rgba(14, 14, 18, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  flex-shrink: 0;
}

.wallet-card-chip:hover {
  border-color: var(--border-medium);
  background: rgba(24, 24, 32, 0.9);
}

.wallet-card-chip.active {
  border-color: var(--amber-500);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(18, 18, 24, 0.95));
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.22);
  transform: scale(1.02);
}

.wallet-chip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.wallet-chip-balance {
  font-size: 0.84rem;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #fff;
}

.cashflow-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.cashflow-card-mini {
  background: rgba(12, 12, 16, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cashflow-mini-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cashflow-mini-val {
  font-size: 0.88rem;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.budget-progress-container {
  background: rgba(12, 12, 16, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.budget-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.budget-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.budget-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.tx-type-selector {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.tx-type-btn {
  flex: 1;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(14, 14, 18, 0.8);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
}

.tx-type-btn.active.type-expense {
  background: var(--amber-bg);
  border-color: var(--amber-border);
  color: var(--amber-400);
}
.tx-type-btn.active.type-income {
  background: var(--emerald-bg);
  border-color: var(--emerald-border);
  color: var(--emerald-400);
}
.tx-type-btn.active.type-transfer {
  background: var(--indigo-bg);
  border-color: var(--indigo-500);
  color: #fff;
}

.finance-form-expanded {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(12, 12, 16, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-bottom: 14px;
}

.finance-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.finance-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
}

.finance-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 220px;
  overflow-y: auto;
}

.tx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(14, 14, 18, 0.75);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all 0.18s;
}

.tx-item:hover {
  border-color: var(--border-medium);
  background: rgba(22, 22, 28, 0.85);
}

.tx-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.tx-main-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tx-amount {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
  font-size: 0.82rem;
}
.tx-amount.is-expense { color: var(--amber-400); }
.tx-amount.is-income { color: var(--emerald-400); }
.tx-amount.is-transfer { color: var(--cyan-400); }

.tx-desc {
  font-size: 0.8rem;
  color: var(--text-primary);
}

.tx-meta-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  color: var(--text-muted);
}

.tx-wallet-badge {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.tx-cat-badge {
  font-size: 0.58rem;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

/* ==========================================================================
   19. TARGET TABUNGAN & WISHLIST MODULE
   ========================================================================== */
.wishlist-card {
  border-color: rgba(168, 85, 247, 0.22);
}

.wishlist-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
}

.wishlist-item-card {
  background: rgba(14, 14, 18, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.18s;
}

.wishlist-item-card:hover {
  border-color: var(--border-medium);
  background: rgba(22, 22, 28, 0.85);
}

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

.wishlist-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.wishlist-amount-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.wishlist-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.wishlist-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--indigo-500), var(--purple-500));
  border-radius: var(--radius-full);
  transition: width 0.3s;
}

.wishlist-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 6px;
}

/* ==========================================================================
   20. QUICK LINKS & BOOKMARKS MODULE
   ========================================================================== */
.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.link-chip-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(14, 14, 18, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 600;
  transition: all 0.18s ease;
}

.link-chip-item:hover {
  background: rgba(26, 26, 34, 0.95);
  border-color: var(--indigo-500);
  color: #fff;
  transform: translateY(-1px);
}

/* ==========================================================================
   21. DATA MANAGEMENT & BACKUP PANEL
   ========================================================================== */
.data-backup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(14, 14, 18, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

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

.data-backup-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.data-backup-sub {
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* ==========================================================================
   22. HERMES BIDIRECTIONAL WEBHOOK & SYNC MODULE
   ========================================================================== */
.webhook-card {
  border-color: rgba(99, 102, 241, 0.3);
}

.webhook-status-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 12, 16, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 10px;
}

.webhook-log-item {
  background: rgba(14, 14, 18, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 8px;
}

.webhook-log-json {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  line-height: 1.4;
  background: rgba(8, 8, 12, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--cyan-400);
  max-height: 120px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ==========================================================================
   23. SSH ACCESS POINT & QUICK CONNECT MODULE
   ========================================================================== */
.ssh-card {
  border-color: rgba(34, 211, 238, 0.25);
}

.ssh-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
}

.ssh-item-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(14, 14, 18, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.18s ease;
}

.ssh-item-card:hover {
  border-color: var(--border-medium);
  background: rgba(22, 22, 28, 0.85);
}

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

.ssh-info-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.ssh-name-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ssh-host-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
  color: var(--cyan-400);
  font-weight: 600;
}

.ssh-cmd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 14, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  gap: 6px;
}

.ssh-cmd-snippet {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  color: var(--emerald-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* SSH Remote Folders */
.ssh-folder-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ssh-agent-status-indicator {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.ssh-agent-status-indicator.online {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
  border-color: rgba(16, 185, 129, 0.35);
}
.ssh-agent-status-indicator.offline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border-color: var(--border-subtle);
}
.ssh-agent-status-indicator .status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.ssh-agent-status-indicator.online .status-dot {
  box-shadow: 0 0 6px #10b981;
}

/* ==========================================================================
   2-WAY VPS SSH TUNNEL & REMOTE CONSOLE STYLES
   ========================================================================== */
.tunnel-card {
  border-color: rgba(34, 211, 238, 0.3);
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.05) 0%, rgba(14, 14, 18, 0.9) 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tunnel-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(10, 10, 14, 0.6);
  padding: 6px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.tunnel-telemetry-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tunnel-tele-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tunnel-tele-pill .tele-label {
  color: var(--text-muted);
}

.tunnel-tele-pill .tele-val {
  color: var(--cyan-400);
  font-weight: 700;
}

.tunnel-presets-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.tunnel-preset-chip {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(20, 20, 26, 0.8);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.tunnel-preset-chip:hover {
  color: #fff;
  border-color: var(--cyan-400);
  background: rgba(34, 211, 238, 0.1);
}

/* Dark Terminal Box */
.tunnel-terminal-wrapper {
  background: #08080c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.tunnel-terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #101016;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tunnel-term-dots {
  display: flex;
  gap: 5px;
}

.term-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.tunnel-term-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  color: var(--text-muted);
}

.tunnel-term-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  color: var(--text-muted);
  font-size: 0.58rem;
  padding: 2px 6px;
  cursor: pointer;
}
.tunnel-term-btn:hover {
  color: #fff;
  border-color: var(--border-medium);
}

.tunnel-terminal-viewport {
  height: 220px;
  overflow-y: auto;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tunnel-line.line-command {
  color: var(--cyan-400);
  font-weight: 700;
  margin-top: 4px;
}

.tunnel-line.line-system {
  color: var(--text-muted);
  font-size: 0.65rem;
  font-style: italic;
}

.tunnel-line.line-output .term-output {
  color: #e2e8f0;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.tunnel-line.line-error .term-error {
  color: #fb7185;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Command Input Form */
.tunnel-input-form {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 10, 14, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3px 6px;
}

.tunnel-prompt-symbol {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--cyan-400);
  padding-left: 6px;
}

.tunnel-input-field {
  flex: 1;
  background: transparent !important;
  border: none !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  color: #fff;
  padding: 6px 4px;
}

.tunnel-input-field:focus {
  outline: none;
  box-shadow: none !important;
}

/* Ping Latency Sparkline */
.ping-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  padding: 0 2px;
}
.ping-spark-bar {
  width: 3px;
  border-radius: 1px;
  min-height: 2px;
}

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

.ssh-folder-title {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ssh-folder-chips-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ssh-folder-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  gap: 6px;
}

.ssh-folder-chip-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ssh-folder-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.ssh-folder-path {
  font-size: 0.6rem;
  color: var(--cyan-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ssh-folder-chip-actions {
  display: flex;
  gap: 3px;
}

.ssh-action-btn {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--cyan-400);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 0.58rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.ssh-action-btn:hover {
  background: var(--cyan-400);
  color: #000;
}

.ssh-modal-folder-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 6px;
  gap: 8px;
}

/* Hermes Agent Text Console */
.hermes-chat-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  background: rgba(10, 10, 14, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
}

.hermes-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
  padding: 4px 2px;
}

.hermes-msg-bubble {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  max-width: 92%;
  animation: fadeIn 0.15s ease-out;
}
.hermes-msg-bubble.user {
  align-self: flex-end;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-bottom-right-radius: 2px;
}
.hermes-msg-bubble.agent {
  align-self: flex-start;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-bottom-left-radius: 2px;
}

.hermes-quick-commands-bar {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 4px;
}
.hermes-quick-commands-bar::-webkit-scrollbar {
  display: none;
}

.hermes-cmd-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(129, 140, 248, 0.3);
  background: rgba(20, 20, 30, 0.8);
  color: var(--indigo-400);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.hermes-cmd-chip:hover {
  background: rgba(129, 140, 248, 0.25);
  color: #fff;
}

/* ==========================================================================
   24. WORKSPACE AI COPILOT & CHATBOT MODULE
   ========================================================================== */
.ai-chat-card {
  border-color: rgba(168, 85, 247, 0.35);
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.08) 0%, rgba(18, 18, 24, 0.88) 100%);
}

.ai-quick-prompts-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 8px;
}
.ai-quick-prompts-bar::-webkit-scrollbar {
  display: none;
}

.ai-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: rgba(24, 20, 32, 0.8);
  color: var(--purple-400);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}
.ai-quick-chip:hover {
  background: rgba(168, 85, 247, 0.25);
  color: #fff;
  border-color: var(--purple-400);
}

.ai-token-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  color: var(--emerald-400);
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.ai-token-badge:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--emerald-400);
  transform: translateY(-1px);
}

/* AI Agent Selector Tabs */
.ai-agent-tabs-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  background: rgba(10, 10, 14, 0.6);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.ai-agent-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ai-agent-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.ai-agent-tab.active {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: #fff;
}

.ai-agent-tab.active.tab-hermes {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #fff;
}

.agent-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c084fc;
}

.ai-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  min-height: 180px;
  overflow-y: auto;
  background: rgba(10, 10, 14, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 8px;
}

.ai-chat-bubble {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 90%;
  padding: 8px 11px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  line-height: 1.45;
}

.ai-chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--indigo-600), var(--indigo-700));
  color: #fff;
  border-bottom-right-radius: 2px;
}

.ai-chat-bubble.assistant {
  align-self: flex-start;
  background: rgba(22, 22, 30, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-bottom-left-radius: 2px;
}

.ai-chat-bubble.hermes {
  align-self: flex-start;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.08) 0%, rgba(18, 24, 22, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--text-primary);
  border-bottom-left-radius: 2px;
}

.ai-bubble-sender {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
}

.ai-inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 4px;
  border-radius: 3px;
  color: var(--cyan-400);
}

.ai-loading-dot {
  animation: pulse 1s infinite alternate;
}

/* ─── AI CHAT ATTACHMENTS & MULTIMODAL PREVIEW ────────────────────── */
.ai-attach-btn {
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 9px;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-attach-btn:hover {
  color: var(--indigo-400);
  border-color: var(--indigo-500);
  background: rgba(99, 102, 241, 0.1);
}

.ai-attachments-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
  padding: 6px 8px;
  background: rgba(14, 14, 20, 0.9);
  border: 1px dashed rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-md);
}

.ai-attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: rgba(26, 20, 36, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  color: var(--text-primary);
}

.ai-attach-chip-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-attach-chip-size {
  font-size: 0.58rem;
  color: var(--text-muted);
}

.ai-attach-chip-del {
  cursor: pointer;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.ai-attach-chip-del:hover {
  color: var(--rose-400);
}

.ai-bubble-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding: 2px 7px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-size: 0.62rem;
  color: var(--text-secondary);
}

.ai-bubble-attachment-img {
  max-width: 140px;
  max-height: 100px;
  border-radius: 6px;
  margin-top: 4px;
  border: 1px solid var(--border-subtle);
  object-fit: cover;
  display: block;
}

/* ─── TASK DRAG & DROP TO TIMEBLOCK ───────────────────────────────── */
.task-item[draggable="true"] {
  cursor: grab;
}
.task-item[draggable="true"]:active {
  cursor: grabbing;
}
.task-item.is-dragging {
  opacity: 0.45;
  border: 1px dashed var(--indigo-500);
  transform: scale(0.98);
}

.timeblock-drag-target {
  border: 1.5px dashed #818cf8 !important;
  background: rgba(99, 102, 241, 0.08) !important;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.25);
  transition: all 0.2s ease;
}

/* ─── AI AUTO-LINKING SUGGESTION BANNER ────────────────────────────── */
.ai-autolink-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 0.68rem;
  color: var(--purple-300);
  animation: fadeIn 0.25s ease-out;
}
.ai-autolink-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-autolink-accept {
  background: var(--purple-600);
  color: #fff;
  border: none;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-autolink-accept:hover {
  background: var(--purple-500);
}


/* ==========================================================================
   25. SEMANTIC EMBEDDINGS & MEMORY MATCHER
   ========================================================================== */
.memory-match-item {
  background: rgba(14, 14, 18, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.memory-match-item:hover {
  border-color: var(--indigo-500);
  background: rgba(24, 24, 34, 0.95);
  transform: translateY(-1px);
}


/* ─── WEBHOOK FILE ATTACHMENT ZONE ────────────────────────────────── */
.webhook-file-zone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1.5px dashed rgba(129, 140, 248, 0.35);
  border-radius: 8px;
  background: rgba(129, 140, 248, 0.04);
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: default;
  transition: border-color 0.2s, background 0.2s;
}

.webhook-file-zone.drag-over {
  border-color: var(--indigo-400);
  background: rgba(129, 140, 248, 0.12);
  color: var(--text-primary);
}

.webhook-file-label {
  color: var(--indigo-400);
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.webhook-file-label:hover {
  color: var(--indigo-300);
}

.webhook-file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  align-items: center;
}

.webhook-file-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 6px;
  font-size: 0.65rem;
  max-width: 180px;
}

.webhook-file-chip-name {
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 90px;
}

.webhook-file-chip-size {
  color: var(--text-muted);
  font-size: 0.6rem;
  flex-shrink: 0;
}

.webhook-file-chip button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
}

.webhook-file-chip button:hover {
  color: var(--rose-400);
}

/* ─── GRAPH CANVAS CONTAINER — relative for tooltip ────────────────── */
.graph-canvas-wrapper {
  position: relative;
}

/* ─── GRAPH MINIMAP — navigational overlay ────────────────────────── */
.graph-minimap {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 150px;
  height: 90px;
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: 6px;
  background: rgba(8, 8, 14, 0.85);
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s;
}
.graph-minimap:hover {
  opacity: 1;
}
@media (max-width: 560px) {
  .graph-minimap {
    width: 110px;
    height: 66px;
  }
}

/* ─── GRAPH FILTER CHIP — active state for all domain types ────────── */
.graph-filter-btn.active {
  background: rgba(129, 140, 248, 0.22);
  border-color: var(--indigo-400);
  color: var(--indigo-300);
}


/* ─── GLOBAL SEARCH & COMMAND PALETTE ─────────────────────────────── */
.global-search-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  margin: 10px 0 4px;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(12, 12, 16, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.global-search-trigger:hover {
  border-color: var(--indigo-500);
  color: var(--text-secondary);
}
.global-search-trigger kbd {
  margin-left: auto;
  font-size: 0.58rem;
  font-family: inherit;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.04);
}

.search-overlay {
  z-index: 999;
}
.search-modal-card {
  width: min(560px, 94vw);
  max-width: 560px;
  padding: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition: transform 0.18s ease;
}
.search-overlay.active .search-modal-card {
  transform: translateY(0);
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--indigo-400);
}
.search-input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 0.9rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
}
.search-input::placeholder {
  color: var(--text-muted);
}

.search-results {
  max-height: 340px;
  overflow-y: auto;
  padding: 6px;
}
.search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.76rem;
  color: var(--text-secondary);
}
.search-item:hover,
.search-item-active {
  background: rgba(129, 140, 248, 0.14);
  color: var(--text-primary);
}
.search-item-active {
  outline: 1px solid rgba(129, 140, 248, 0.35);
}
.search-footer {
  padding: 8px 14px;
  font-size: 0.6rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.18);
}

.search-flash {
  animation: search-flash 0.9s ease;
}
@keyframes search-flash {
  0% { outline: 2px solid rgba(129, 140, 248, 0.0); }
  40% { outline: 2px solid rgba(129, 140, 248, 0.85); }
  100% { outline: 2px solid rgba(129, 140, 248, 0.0); }
}

/* ─── BACKUP OTOMATIS & RIWAYAT VERSI ─────────────────────────────── */
.backup-history-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(12, 12, 16, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.backup-history-row:hover {
  border-color: rgba(192, 132, 252, 0.4);
}
#backup-history-wrap {
  scrollbar-width: thin;
}

/* ─── TODAY DASHBOARD (PUSAT HARI INI) ────────────────────────────── */
.today-dashboard {
  margin-bottom: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(251, 191, 36, 0.04) 55%, rgba(129, 140, 248, 0.06));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
.today-dash-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.today-dash-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.today-dash-sub {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.today-dash-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}
.today-chip {
  font-size: 0.6rem;
  padding: 3px 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: rgba(12, 12, 16, 0.6);
  white-space: nowrap;
}
.today-dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.today-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 11px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(12, 12, 16, 0.72);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s;
}
.today-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(129, 140, 248, 0.45);
}
.today-tile-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-align: center;
}
.today-tile-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}
.today-tile-task .today-tile-val { color: #34d399; }
.today-tile-due .today-tile-val { color: #fb7185; }
.today-tile-txn .today-tile-val { color: #fbbf24; }
.today-tile-habit .today-tile-val { color: #22d3ee; }
.today-tile-note .today-tile-val { color: #818cf8; }
.today-tile-book .today-tile-val { color: #fb7185; }

/* ─── AI ACTION SUCCESS PILL ───────────────────────────────────────── */
.ai-action-success-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-sm);
  color: var(--emerald-400);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ─── GITOPS INTERACTIVE EVENT CARDS (UNIVERSAL EVENT BUS) ────────── */
.gitops-event-card {
  background: rgba(18, 18, 24, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: all 0.18s ease;
}
.gitops-event-card:hover {
  border-color: rgba(129, 140, 248, 0.4);
  background: rgba(24, 24, 32, 0.95);
  transform: translateY(-1px);
}
.gitops-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gitops-source-badge {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.gitops-card-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.gitops-card-summary {
  font-size: 0.65rem;
  color: var(--text-secondary);
  line-height: 1.35;
}
.gitops-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 5px;
  margin-top: 2px;
}
.gitops-actions-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.btn-gitops-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-gitops-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-gitops-action.ai-action {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.35);
  color: var(--purple-300);
}
.btn-gitops-action.ai-action:hover {
  background: rgba(168, 85, 247, 0.28);
  border-color: var(--purple-500);
  color: #fff;
}

/* ─── SLASH COMMANDS CONSOLE (CTRL+K) ─────────────────────────────── */
.slash-cmd-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s;
}
.slash-cmd-item:hover, .slash-cmd-item.search-item-active {
  background: rgba(99, 102, 241, 0.12);
}
.slash-cmd-badge {
  font-size: 0.55rem;
  font-weight: 800;
  padding: 2px 5px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: var(--indigo-400);
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}
.slash-cmd-syntax {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ==========================================================================
   8. COMPREHENSIVE RESPONSIVE DESIGN (Mobile Devices, Tablets, Desktops)
   ========================================================================== */

/* --- Mobile Devices (<= 640px) --- */
@media (max-width: 640px) {
  /* Layout Spacing */
  .app-content {
    padding: 12px 14px;
    gap: 14px;
  }

  .card {
    padding: 14px 16px;
    border-radius: var(--radius-lg);
  }

  .card-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .card-title {
    font-size: 0.74rem;
  }

  /* Form & Input Flexibility */
  .task-input-row,
  .finance-input-row,
  .events-input-row,
  .devbox-input-row,
  .link-input-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .timeblock-card .task-input-row input[type="time"] {
    flex: 1 1 45% !important;
    max-width: 48% !important;
  }

  .timeblock-card .task-input-row input[type="text"] {
    flex: 1 1 100% !important;
    width: 100% !important;
    order: 3;
  }

  .timeblock-card .task-input-row button[type="submit"] {
    order: 4;
    width: 100%;
    padding: 8px;
  }

  .events-card .task-input-row input[type="date"] {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }

  .events-card .task-input-row button[type="submit"] {
    width: 100%;
    padding: 8px;
  }

  /* Pomodoro on Mobile */
  .pomodoro-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .pomodoro-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .pomo-preset-chip {
    padding: 4px 8px;
    font-size: 0.62rem;
  }

  .ambient-controls-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .ambient-btn-group {
    width: 100%;
    justify-content: space-between;
  }

  /* KPI Ribbon on Mobile */
  .desktop-kpi-ribbon {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .kpi-card {
    padding: 10px 12px;
    gap: 10px;
  }

  .kpi-icon-box {
    width: 34px;
    height: 34px;
  }

  .kpi-icon-box svg {
    width: 16px;
    height: 16px;
  }

  .kpi-value {
    font-size: 0.85rem;
  }

  /* Today Hub Grid on Mobile */
  .today-dash-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .today-tile {
    padding: 8px 10px;
  }

  .today-tile-val {
    font-size: 0.92rem;
  }

  /* AI Chat Box on Mobile */
  .ai-chat-messages {
    max-height: 320px;
    min-height: 200px;
  }

  .ai-chat-input-row {
    gap: 6px;
  }

  .ai-chat-btn-send {
    padding: 8px 12px;
  }

  /* Knowledge Graph on Mobile */
  .graph-canvas-wrapper {
    height: 220px;
  }

  /* Modals on Mobile */
  .modal-card {
    padding: 16px;
    max-height: 90vh;
    border-radius: var(--radius-xl);
  }
}

/* --- Tablets & Mid-Screens (641px - 1023px) --- */
@media (min-width: 641px) and (max-width: 1023px) {
  .app-content {
    padding: 20px 24px;
    gap: 18px;
  }

  .today-dash-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .desktop-kpi-ribbon {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

/* --- Smooth Scrolling & Touch Enhancements --- */
.timeblock-list,
.events-list,
.task-list,
.reading-list,
.ping-list,
.webhook-logs-list,
.ai-chat-messages,
.category-tab-bar {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}


