/* ========== CSS RESET & VARIABLES ========== */
/* Respect Android/iOS system text scale (presbyopia/accessibility fix) */
html { font-size: 100%; }

:root {
  --bg: #0a0e1a;
  --surface: #111827;
  --surface2: #1f2937;
  --surface3: #283344;
  --border: #374151;
  --border-light: #4b5563;
  --primary: #00d4ff;
  --primary-dim: rgba(0,212,255,0.15);
  --primary-glow: rgba(0,212,255,0.4);
  --accent: #7c3aed;
  --accent-dim: rgba(124,58,237,0.15);
  --accent-glow: rgba(124,58,237,0.4);
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --success: #10b981;
  --success-dim: rgba(16,185,129,0.15);
  --error: #ef4444;
  --error-dim: rgba(239,68,68,0.15);
  --warning: #f59e0b;
  --warning-dim: rgba(245,158,11,0.15);
  --sidebar-w: 260px;
  --sidebar-collapsed: 60px;
  --header-h: 56px;
  --glass: rgba(17,24,39,0.7);
  --glass-border: rgba(55,65,81,0.5);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html, body { height:100%; height:100dvh; overflow:hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  background: var(--bg); color: var(--text);
  display: flex;
  /* Safe area for notched devices */
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--border); border-radius:3px; }
::-webkit-scrollbar-thumb:hover { background:var(--border-light); }

/* ========== SPLASH / AUTH ========== */
#splash-screen {
  position:fixed; inset:0; z-index:10000;
  background: var(--bg);
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:24px; transition: opacity 0.5s, visibility 0.5s;
}
#splash-screen.hidden { opacity:0; visibility:hidden; pointer-events:none; }
.splash-logo {
  width:100px; height:100px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius:28px; display:flex;
  align-items:center; justify-content:center;
  font-size:50px;
  animation: splash-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 60px var(--primary-glow), 0 0 120px var(--accent-glow);
}
@keyframes splash-pulse {
  0%,100% { transform:scale(1); box-shadow: 0 0 40px var(--primary-glow); }
  50% { transform:scale(1.05); box-shadow: 0 0 80px var(--primary-glow), 0 0 120px var(--accent-glow); }
}
.splash-title {
  font-size:36px; font-weight:800; letter-spacing:-1px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
}
.splash-sub { color:var(--text-muted); font-size:13px; letter-spacing:2px; text-transform:uppercase; }
/* PIN Authentication */
.pin-container {
  display:flex; flex-direction:column; align-items:center; gap:20px;
  margin-top:8px; width:100%; max-width:300px;
}
.pin-label {
  color:var(--text-muted); font-size:14px; letter-spacing:1px;
  text-transform:uppercase; font-weight:500;
}
.pin-dots {
  display:flex; gap:10px; padding:8px 0;
}
.pin-dot {
  width:14px; height:14px; border-radius:50%;
  border:2px solid var(--border-light);
  transition: all 0.2s ease;
  background:transparent;
}
.pin-dot.filled {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  transform: scale(1.15);
}
.pin-dot.error {
  border-color: var(--error);
  background: var(--error);
  box-shadow: 0 0 12px rgba(255,59,48,0.4);
}
.pin-dots.shake {
  animation: pin-shake 0.5s ease;
}
@keyframes pin-shake {
  0%,100% { transform:translateX(0); }
  20% { transform:translateX(-12px); }
  40% { transform:translateX(12px); }
  60% { transform:translateX(-8px); }
  80% { transform:translateX(8px); }
}
.pin-error {
  color:var(--error); font-size:12px; min-height:18px;
  text-align:center; transition: opacity 0.3s;
}
.pin-pad {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:12px; width:100%; max-width:260px;
}
.pin-key {
  width:72px; height:72px; border-radius:50%;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--text); font-size:24px; font-weight:500;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color:transparent;
  user-select:none; justify-self:center;
  touch-action:manipulation;
}
.pin-key:active {
  background:var(--primary);
  color:white;
  border-color:var(--primary);
  transform:scale(0.92);
  box-shadow: 0 0 20px var(--primary-glow);
}
.pin-key:hover { border-color:var(--primary); }
.pin-key-empty {
  visibility:hidden; cursor:default;
}
.pin-key-back {
  font-size:20px; color:var(--text-dim);
}
.pin-key-back:active { color:white; }
.pin-footer {
  margin-top:4px;
}
.pin-forgot {
  color:var(--text-dim); font-size:12px; cursor:pointer;
  text-decoration:underline; text-underline-offset:2px;
}
.pin-forgot:hover { color:var(--text-muted); }
.pin-success .pin-dot {
  background: var(--success) !important;
  border-color: var(--success) !important;
  box-shadow: 0 0 16px rgba(0,255,65,0.5) !important;
}
/* ===== Biometric Auth Button ===== */
.biometric-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.biometric-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-dim);
}
.biometric-btn:active {
  transform: scale(0.97);
}
.biometric-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.biometric-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Legacy splash actions (hidden when PIN active) */
.splash-actions { display:none; }
.splash-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color:white; border:none; padding:14px 40px;
  border-radius:14px; font-size:15px; font-weight:600;
  cursor:pointer; display:flex; align-items:center; gap:8px;
  transition: all 0.2s; box-shadow: 0 4px 24px var(--primary-glow);
}
.splash-btn:hover { transform:translateY(-2px); box-shadow: 0 8px 32px var(--primary-glow); }
.splash-skip { color:var(--text-dim); font-size:12px; cursor:pointer; }
.splash-skip:hover { color:var(--text-muted); }

/* ========== SIDEBAR ========== */
#sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  height: 100dvh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  flex-shrink: 0;
  transition: width var(--transition);
  overflow: hidden;
  z-index: 100;
  position: relative;
}
#sidebar.collapsed { width: var(--sidebar-collapsed); }
.sidebar-header {
  height: var(--header-h);
  display: flex; align-items: center;
  padding: 0 12px; gap: 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-logo {
  width: 36px; height: 36px; min-width: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px; display: flex;
  align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 20px var(--primary-glow);
}
.sidebar-brand {
  display: flex; flex-direction: column;
  white-space: nowrap; overflow: hidden;
  transition: opacity var(--transition);
}
#sidebar.collapsed .sidebar-brand { opacity: 0; width: 0; }
.sidebar-brand-name { font-size: 16px; font-weight: 700; }
.sidebar-brand-sub { font-size: 10px; color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase; }
.sidebar-toggle {
  position: absolute; top: 14px; right: -14px;
  width: 28px; height: 28px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 12px;
  transition: all 0.2s; z-index: 101;
}
.sidebar-toggle:hover { color: var(--primary); border-color: var(--primary); background: var(--surface); }
#sidebar.collapsed .sidebar-toggle { right: -14px; }

.sidebar-nav {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 8px 0;
}
.nav-section {
  padding: 16px 16px 4px 16px;
  white-space: nowrap; overflow: hidden;
}
#sidebar.collapsed .nav-section { padding: 16px 0 4px 0; text-align: center; }
.nav-section-title {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-dim);
  transition: opacity var(--transition);
}
#sidebar.collapsed .nav-section-title { opacity: 0; height: 0; overflow: hidden; margin: 0; padding: 0; }

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; margin: 2px 8px;
  border-radius: 10px; cursor: pointer;
  color: var(--text-muted); font-size: 13px; font-weight: 500;
  white-space: nowrap; overflow: hidden;
  transition: all 0.15s;
  position: relative;
}
#sidebar.collapsed .nav-item { padding: 10px 0; margin: 2px 4px; justify-content: center; }
.nav-item:hover { background: var(--surface2); color: var(--text); }
.nav-item.active {
  background: var(--primary-dim);
  color: var(--primary);
}
.nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0;
  background: var(--primary);
}
#sidebar.collapsed .nav-item.active::before { display: none; }
.nav-icon { font-size: 18px; min-width: 24px; text-align: center; }
.nav-label { transition: opacity var(--transition); }
#sidebar.collapsed .nav-label { opacity: 0; width: 0; overflow: hidden; }

.nav-badge {
  margin-left: auto; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 10px;
  background: var(--primary-dim); color: var(--primary);
}
#sidebar.collapsed .nav-badge { display: none; }

.sidebar-footer {
  padding: 12px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
  flex-shrink: 0;
}
.sidebar-footer > div:last-child { display: flex; align-items: center; gap: 10px; }
.sidebar-progress-wrap {
  padding: 0 2px 2px;
  transition: opacity 0.3s;
}
#sidebar.collapsed .sidebar-progress-wrap { opacity: 0; height: 0; overflow: hidden; padding: 0; }
.sidebar-progress-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 5px;
}
.sidebar-progress-label { font-size: 10px; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.sidebar-progress-pct { font-size: 11px; font-weight: 700; color: var(--primary); }
.sidebar-progress-bar {
  height: 4px; background: var(--surface2); border-radius: 2px; overflow: hidden;
}
.sidebar-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px; transition: width 0.5s ease;
}
.sidebar-avatar {
  width: 36px; height: 36px; min-width: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: white;
}
.sidebar-user { overflow: hidden; white-space: nowrap; }
#sidebar.collapsed .sidebar-user { opacity: 0; width: 0; }
.sidebar-user-name { font-size: 13px; font-weight: 600; }
.sidebar-user-role { font-size: 10px; color: var(--text-muted); }

/* ========== MAIN AREA ========== */
#main {
  flex: 1; display: flex; flex-direction: column;
  height: 100vh; height: 100dvh;
  overflow: hidden;
  min-width: 0;
}

/* Top bar */
#topbar {
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 20px; gap: 16px;
  flex-shrink: 0;
}
.topbar-title { font-size: 18px; font-weight: 700; }
.topbar-breadcrumb { font-size: 12px; color: var(--text-muted); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar-time { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.topbar-btn {
  width: 36px; height: 36px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; display: flex;
  align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted);
  font-size: 16px; transition: all 0.15s; border: none;
}
.topbar-btn:hover { color: var(--primary); background: var(--primary-dim); }

/* Notification Bell */
.notif-bell-wrap { position: relative; }
.notif-bell { position: relative; }
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 3px;
  background: var(--error); color: #fff;
  font-size: 9px; font-weight: 700;
  border-radius: 8px; display: flex;
  align-items: center; justify-content: center;
  line-height: 1; pointer-events: none;
}
.notif-panel {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 300px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 9000; overflow: hidden;
}
.notif-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text);
}
.notif-list { max-height: 300px; overflow-y: auto; }
.notif-item {
  display: flex; gap: 10px; padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item.read { opacity: 0.6; }
.notif-item:hover { background: var(--surface2); }
.notif-icon { font-size: 16px; flex-shrink: 0; padding-top: 1px; }
.notif-body { flex: 1; min-width: 0; }
.notif-msg { font-size: 12px; color: var(--text); line-height: 1.4; }
.notif-time { font-size: 10px; color: var(--text-dim); margin-top: 2px; }
.notif-empty { padding: 20px 16px; text-align: center; font-size: 13px; color: var(--text-dim); }

.topbar-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px 12px;
  cursor: pointer; transition: all 0.15s;
}
.topbar-search:hover { border-color: var(--primary); }
.topbar-search span { font-size: 13px; color: var(--text-dim); }
.topbar-search kbd {
  font-size: 10px; color: var(--text-dim);
  background: var(--surface); padding: 2px 6px;
  border-radius: 4px; border: 1px solid var(--border);
  font-family: inherit;
}

/* ========== CONTENT ========== */
#content {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 24px;
  position: relative;
}
.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* ========== WIDGETS BASE ========== */
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  overflow: hidden;
}
.widget.full { grid-column: 1 / -1; }
.widget-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.widget-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.widget-action {
  font-size: 11px; color: var(--primary); cursor: pointer;
  padding: 4px 10px; border-radius: 6px;
  transition: all 0.15s;
}
.widget-action:hover { background: var(--primary-dim); }

/* ========== QUICK ACTIONS / COMMAND PALETTE ========== */
#cmd-palette {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9000;
  display: none; align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}
#cmd-palette.open { display: flex; }
.cmd-box {
  width: 560px; max-width: 90vw;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  overflow: hidden;
  animation: cmdIn 0.2s ease;
}
@keyframes cmdIn { from { opacity:0; transform:scale(0.95) translateY(-10px); } }
.cmd-input-wrap {
  display: flex; align-items: center;
  padding: 16px 20px; gap: 12px;
  border-bottom: 1px solid var(--border);
}
.cmd-search-icon { font-size: 18px; color: var(--text-dim); }
.cmd-input {
  flex: 1; background: none; border: none;
  color: var(--text); font-size: 16px;
  outline: none; font-family: inherit;
}
.cmd-input::placeholder { color: var(--text-dim); }
.cmd-hint { font-size: 11px; color: var(--text-dim); }
.cmd-results {
  max-height: 340px; overflow-y: auto;
  padding: 8px;
}
.cmd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  cursor: pointer; transition: all 0.1s;
}
.cmd-item:hover, .cmd-item.selected { background: var(--primary-dim); }
.cmd-item-icon { font-size: 18px; width: 28px; text-align: center; }
.cmd-item-text { flex: 1; }
.cmd-item-name { font-size: 13px; font-weight: 500; }
.cmd-item-desc { font-size: 11px; color: var(--text-dim); }
.cmd-item-kbd { font-size: 10px; color: var(--text-dim); }
.cmd-section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-dim);
  padding: 8px 12px 4px; margin-top: 2px;
}
.cmd-section-label:first-child { margin-top: 0; padding-top: 4px; }

/* ========== PLACEHOLDER PAGES ========== */
.placeholder-page {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 60vh; text-align: center; gap: 16px;
}
.placeholder-icon {
  font-size: 64px; opacity: 0.3;
  filter: grayscale(0.5);
}
.placeholder-title { font-size: 24px; font-weight: 700; color: var(--text-muted); }
.placeholder-desc { font-size: 14px; color: var(--text-dim); max-width: 400px; line-height: 1.6; }
.placeholder-badge {
  font-size: 11px; font-weight: 700; padding: 4px 12px;
  border-radius: 20px; background: var(--accent-dim);
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== MARKDOWN RENDER GLOBALS (used by chat, war-room, etc.) ========== */
.md-p { margin: 4px 0; line-height: 1.65; }
.md-p:first-child { margin-top: 0; }
.md-p:last-child { margin-bottom: 0; }
.md-h2 { font-size: 15px; font-weight: 700; color: var(--text); margin: 10px 0 4px; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.md-h3 { font-size: 14px; font-weight: 700; color: var(--primary); margin: 8px 0 4px; }
.md-h4 { font-size: 13px; font-weight: 700; color: var(--text-muted); margin: 6px 0 2px; text-transform: uppercase; letter-spacing: 0.4px; }
.md-ul, .md-ol { padding-left: 20px; margin: 6px 0; }
.md-ul li, .md-ol li { margin: 3px 0; line-height: 1.55; }
.md-blockquote { border-left: 3px solid var(--primary); padding: 4px 12px; margin: 6px 0; color: var(--text-muted); font-style: italic; background: var(--primary-dim); border-radius: 0 6px 6px 0; }
.md-hr { border: none; border-top: 1px solid var(--border); margin: 10px 0; }

/* ========== DAILY PRIORITIES WIDGET ========== */
.priority-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid rgba(55,65,81,0.3);
}
.priority-item:last-of-type { border-bottom: none; }
.priority-check {
  background: none; border: 2px solid var(--border);
  border-radius: 50%; cursor: pointer;
  font-size: 0; width: 20px; height: 20px; min-width: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.priority-check:hover { border-color: var(--primary); }
.priority-check.checked { background: var(--success); border-color: var(--success); font-size: 11px; }
.priority-check.checked::after { content: '\2713'; color: #fff; font-weight: 700; }
.priority-input {
  flex: 1; background: none; border: none;
  color: var(--text); font-size: 14px; font-weight: 600;
  outline: none; font-family: inherit; line-height: 1.4;
}
.priority-input::placeholder { color: var(--text-dim); font-weight: 400; font-style: italic; }
.priority-item.done .priority-input { text-decoration: line-through; color: var(--text-dim); font-weight: 400; }
.priority-arrows {
  display: flex; flex-direction: column; gap: 1px;
  opacity: 0; transition: opacity 0.15s;
}
.priority-item:hover .priority-arrows { opacity: 1; }
.priority-arrow {
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; font-size: 8px; padding: 0 2px; line-height: 1;
  transition: color 0.15s;
}
.priority-arrow:hover { color: var(--primary); }
.priority-arrow-ph { display: block; width: 14px; height: 10px; }
.priority-remove {
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; font-size: 18px; padding: 0 2px;
  opacity: 0; transition: opacity 0.15s; line-height: 1;
}
.priority-item:hover .priority-remove { opacity: 1; }
.priority-drag-handle { color: var(--text-dim); font-size: 14px; cursor: grab; opacity: 0; transition: opacity 0.15s; user-select: none; flex-shrink: 0; }
.priority-item:hover .priority-drag-handle { opacity: 0.6; }
.priority-item.drag-over { border: 1px dashed var(--primary); border-radius: 8px; background: var(--primary-dim); }
.priority-tag-btn { background: none; border: none; cursor: pointer; font-size: 13px; padding: 0 2px; opacity: 0.3; transition: opacity 0.15s; flex-shrink: 0; }
.priority-tag-btn:hover { opacity: 1; }
.priority-tag-btn.has-tag { opacity: 0.9; }
.priority-time-btn { background: none; border: none; cursor: pointer; font-size: 12px; padding: 0 2px; opacity: 0; transition: opacity 0.15s; flex-shrink: 0; color: var(--text-dim); }
.priority-item:hover .priority-time-btn { opacity: 0.6; }
.priority-mins { font-size: 11px; color: var(--primary); cursor: pointer; white-space: nowrap; flex-shrink: 0; background: var(--primary-dim); padding: 1px 5px; border-radius: 4px; user-select: none; }
.priority-progress {
  height: 3px; background: var(--surface2);
  border-radius: 2px; margin: 10px 0 4px; overflow: hidden;
}
.priority-progress-fill {
  height: 100%; background: var(--primary);
  border-radius: 2px; transition: width 0.4s ease;
}
.priority-progress-label {
  font-size: 11px; color: var(--text-dim); text-align: right;
}
.priority-add {
  font-size: 12px; color: var(--text-dim); cursor: pointer;
  padding: 6px 0 2px; margin-top: 2px; user-select: none;
  transition: color 0.15s;
}
.priority-add:hover { color: var(--primary); }

/* ========== FOCUS MODE FULLSCREEN OVERLAY ========== */
.focus-overlay {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9800;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.focus-overlay.active { opacity: 1; visibility: visible; }
.focus-overlay::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(0,212,255,0.06), transparent);
  pointer-events: none;
}
.focus-close {
  position: absolute; top: 20px; right: 20px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 12px; font-weight: 600;
  padding: 7px 14px; border-radius: 10px; cursor: pointer;
  transition: all 0.15s; font-family: inherit;
}
.focus-close:hover { border-color: var(--primary); color: var(--primary); }
.focus-body {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; text-align: center; padding: 40px;
}
.focus-mode-label {
  font-size: 13px; font-weight: 800; letter-spacing: 4px;
  text-transform: uppercase; color: var(--text-dim);
}
.focus-timer {
  font-size: 96px; font-weight: 900; letter-spacing: -4px;
  line-height: 1; color: var(--primary);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 60px rgba(0,212,255,0.3);
}
.focus-task {
  font-size: 20px; font-weight: 600; color: var(--text-muted);
  max-width: 500px; line-height: 1.4;
}
.focus-controls { display: flex; gap: 12px; }
.focus-btn {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); border-radius: 12px;
  padding: 10px 24px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.15s; font-family: inherit;
}
.focus-btn:hover { border-color: var(--primary); color: var(--primary); }
.focus-progress-wrap {
  width: 300px; height: 4px; background: var(--surface2);
  border-radius: 2px; overflow: hidden;
}
.focus-progress-bar {
  height: 100%; width: 0%;
  background: var(--primary);
  border-radius: 2px; transition: width 1s linear;
}
.focus-dots {
  font-size: 22px; letter-spacing: 8px; color: var(--text-dim);
}
.focus-hint {
  font-size: 12px; color: var(--text-dim); opacity: 0.5;
}
.focus-ambient {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin: 12px 0 4px;
}
.focus-ambient-label {
  font-size: 11px; color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 1px;
}
.focus-ambient-btns {
  display: flex; gap: 10px; align-items: center;
}
.ambient-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; width: 40px; height: 40px;
  font-size: 18px; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.ambient-btn:hover { border-color: var(--primary); transform: translateY(-2px); }
.ambient-btn.active { border-color: var(--primary); background: var(--primary-dim); }
.focus-volume {
  width: 120px; height: 3px;
  -webkit-appearance: none; appearance: none;
  background: var(--surface3); border-radius: 2px; cursor: pointer;
  outline: none;
}
.focus-volume::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px;
  border-radius: 50%; background: var(--primary); cursor: pointer;
}

/* ========== KEYBOARD HELP MODAL ========== */
.kb-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9500; padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
}
.kb-overlay.open { opacity: 1; visibility: visible; }
.kb-modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  max-width: 540px; width: 100%;
  max-height: 80vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  animation: kbSlideIn 0.15s ease;
}
@keyframes kbSlideIn { from { transform: scale(0.95); opacity: 0; } }
.kb-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.kb-modal-title {
  font-size: 17px; font-weight: 800; letter-spacing: -0.3px;
}
.kb-modal-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 18px; cursor: pointer; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; transition: all 0.15s;
}
.kb-modal-close:hover { background: var(--surface2); color: var(--text); }
.kb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kb-section { margin-bottom: 4px; }
.kb-section-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--primary); margin-bottom: 10px;
}
.kb-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 0; border-bottom: 1px solid rgba(55,65,81,0.4);
  font-size: 13px;
}
.kb-row:last-child { border-bottom: none; }
.kb-key {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 8px;
  font-size: 11px; font-weight: 700; font-family: monospace;
  color: var(--primary); white-space: nowrap;
  box-shadow: 0 1px 0 var(--border);
}
.kb-desc { color: var(--text-muted); font-size: 12px; text-align: right; }

/* ========== ACCENT COLOR SWATCHES ========== */
.accent-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; border: 3px solid transparent;
  transition: all 0.2s; flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.accent-swatch:hover { transform: scale(1.15); }
.accent-swatch.active {
  border-color: var(--text);
  transform: scale(1.1);
  box-shadow: 0 0 10px currentColor, 0 2px 4px rgba(0,0,0,0.3);
}

/* ========== POMODORO TIMER WIDGET ========== */
.pomo-body { padding: 4px 0 0; }
.pomo-display { text-align: center; padding: 12px 0 8px; }
.pomo-time {
  font-size: 42px; font-weight: 900; letter-spacing: -2px;
  line-height: 1; color: var(--text);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}
.pomo-time.break { color: var(--success); }
.pomo-time.warning { color: var(--warning); }
.pomo-session { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.pomo-progress {
  height: 4px; background: var(--surface2);
  border-radius: 2px; margin: 8px 0 12px; overflow: hidden;
}
.pomo-progress-bar {
  height: 100%; width: 0%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 1s linear, background 0.3s;
}
.pomo-controls {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 10px;
}
.pomo-btn {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px;
  cursor: pointer; transition: all 0.15s;
  font-size: 13px; padding: 7px 12px; font-weight: 600;
  font-family: inherit;
}
.pomo-btn:hover { background: var(--surface3); border-color: var(--primary); color: var(--primary); }
.pomo-start {
  flex: 1; background: var(--primary-dim);
  border-color: rgba(0,212,255,0.4); color: var(--primary);
  font-size: 14px; padding: 8px 20px;
}
.pomo-start:hover { background: rgba(0,212,255,0.25); }
.pomo-start.running { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.4); color: var(--error); }
.pomo-start.running:hover { background: rgba(239,68,68,0.22); }
.pomo-dots {
  text-align: center; font-size: 16px; letter-spacing: 4px;
  color: var(--text-dim); padding-top: 4px;
}
.pomo-chart-wrap {
  margin-top: 10px; padding-top: 8px;
  border-top: 1px solid var(--border);
}
.pomo-chart {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 4px; height: 44px; padding: 0 4px;
}
.pomo-chart-col {
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; flex: 1; gap: 3px;
}
.pomo-chart-bar {
  width: 100%; border-radius: 3px 3px 0 0;
  min-height: 2px; transition: height 0.3s ease;
}
.pomo-chart-label {
  font-size: 9px; color: var(--text-dim); line-height: 1;
}

/* ========== TOAST ========== */
#toast-container {
  position: fixed; top: 20px; right: 20px;
  z-index: 10001;
  display: flex; flex-direction: column; gap: 8px;
}
.toast-msg {
  background: var(--surface); border: 1px solid var(--border);
  padding: 12px 20px; border-radius: 12px;
  font-size: 13px; color: var(--text);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: toastIn 0.3s ease;
  display: flex; align-items: center; gap: 8px;
  max-width: 360px;
}
.toast-msg.success { border-left: 3px solid var(--success); }
.toast-msg.error { border-left: 3px solid var(--error); }
.toast-msg.info { border-left: 3px solid var(--primary); }
@keyframes toastIn { from { opacity:0; transform:translateX(20px); } }

/* ========== GLASS EFFECTS ========== */
.glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

/* ========== GLOW EFFECTS ========== */
.glow-primary { box-shadow: 0 0 20px var(--primary-glow); }
.glow-accent { box-shadow: 0 0 20px var(--accent-glow); }

/* ========== JARVIS-STYLE ENHANCEMENTS ========== */

/* Subtle circuit grid background on main content */
#content::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Animated gradient border on widgets (hover) */
.widget {
  position: relative;
  transition: all 0.3s ease;
}
.widget::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 200%;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}
.widget:hover::before {
  opacity: 1;
  animation: gradient-shift 3s ease infinite;
}
.widget:hover {
  border-color: transparent;
  box-shadow: 0 0 30px rgba(0,212,255,0.06);
}
@keyframes gradient-shift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Sidebar glow line */
#sidebar::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 1px; height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--primary) 20%,
    var(--accent) 50%,
    var(--primary) 80%,
    transparent 100%
  );
  opacity: 0.15;
}

/* Topbar subtle gradient underline */
#topbar::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-glow), var(--accent-glow), transparent);
  opacity: 0.5;
}
#topbar { position: relative; }

/* Nav item hover glow */
.nav-item::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 10px;
  box-shadow: inset 0 0 0 0 transparent;
  transition: box-shadow 0.3s ease;
  pointer-events: none;
}
.nav-item.active::after {
  box-shadow: inset 0 0 16px rgba(0,212,255,0.05);
}

/* KPI card animated corner accents */
.kpi-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 30px; height: 30px;
  border-top: 2px solid transparent;
  border-left: 2px solid transparent;
  border-radius: 16px 0 0 0;
  transition: all 0.3s ease;
}
.kpi-card:hover::before {
  border-top-color: var(--primary);
  border-left-color: var(--primary);
  box-shadow: -4px -4px 12px rgba(0,212,255,0.08);
}

/* Sidebar logo breathing glow */
.sidebar-logo {
  animation: logo-breathe 4s ease-in-out infinite;
}
@keyframes logo-breathe {
  0%,100% { box-shadow: 0 0 16px var(--primary-glow); }
  50% { box-shadow: 0 0 28px var(--primary-glow), 0 0 48px var(--accent-glow); }
}

/* Toast glassmorphism */
.toast-msg {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(17,24,39,0.85);
}

/* Command palette enhanced blur */
#cmd-palette {
  background: rgba(0,0,0,0.5);
}
.cmd-box {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(17,24,39,0.92);
  border-color: var(--glass-border);
}

/* Topbar title subtle gradient */
.topbar-title {
  background: linear-gradient(135deg, var(--text) 60%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Status dots enhanced pulse */
.status-dot.online {
  animation: status-pulse 3s ease-in-out infinite;
}
@keyframes status-pulse {
  0%,100% { box-shadow: 0 0 6px var(--success); }
  50% { box-shadow: 0 0 12px var(--success), 0 0 4px var(--success); }
}

/* Smooth page transitions */
.page.active {
  animation: page-enter 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes page-enter {
  from { opacity: 0; transform: translateY(10px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========== PAGE TITLES ========== */
.page-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.page-title { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.page-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  #sidebar {
    position: fixed; bottom: 0; left: 0; right: 0;
    width: 100% !important; height: auto;
    border-right: none; border-top: 1px solid var(--border);
    flex-direction: row; z-index: 200;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    /* Allow horizontal scrolling for nav items */
    overflow: visible;
    /* max-height removed — dynamic via JS ResizeObserver (presbyopia/large-text fix) */
  }
  #sidebar.collapsed { width: 100% !important; }
  .sidebar-header, .sidebar-footer, .nav-section, .sidebar-toggle { display: none; }
  .sidebar-nav {
    display: flex; flex-direction: row;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
    padding: 0; width: 100%;
    /* Use flex-start so items don't compress on small screens */
    justify-content: flex-start;
    gap: 0;
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none;
  }
  .sidebar-nav::-webkit-scrollbar { display: none; }
  .nav-item {
    flex-direction: column; gap: 2px;
    padding: 8px 10px; margin: 0;
    font-size: 12px; min-width: 60px; min-height: 60px;
    text-align: center; border-radius: 0;
    flex-shrink: 0; /* Prevent items from shrinking */
  }
  .nav-item.active::before { display: none; }
  .nav-item.active { border-top: 2px solid var(--primary); background: rgba(0,212,255,0.05); }
  .nav-icon { font-size: 20px; min-width: auto; }
  .nav-badge { display: none; }
  #main { width: 100%; }
  /* Extra padding-bottom for bottom nav + safe area — uses --mobile-nav-h set by ResizeObserver */
  #content { padding: 16px; padding-bottom: calc(var(--mobile-nav-h, 110px) + 16px + env(safe-area-inset-bottom, 0px)); }
  .dash-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .chat-msg { max-width: calc(100% - 24px); }
  /* Touch optimizations — 44px minimum for all tap targets */
  .chat-btn, .nav-item, button {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
  }
  /* Don't set global min-height:44px on button — it breaks PIN keys and other elements */
  .topbar-btn { width: 44px; height: 44px; min-height: 44px; }
  .chat-btn { min-height: 44px; min-width: 44px; }
  .chat-btn:active { opacity: 0.7; transform: scale(0.95); }
  /* Command palette as bottom sheet */
  #cmd-palette { padding-top: 24px; }
  .cmd-box { max-width: 95vw; }
  .cmd-results { max-height: 60vh; max-height: 60dvh; }
  /* Toast full width */
  #toast-container { left: 10px; right: 10px; top: calc(10px + env(safe-area-inset-top, 0px)); }
  /* Settings input fix */
  .setting-input { width: 100%; max-width: 100%; }
  /* Topbar search: hide kbd shortcut on mobile */
  .topbar-search kbd { display: none; }
  .topbar-search { padding: 6px 10px; }
  /* 22.5 — Touch targets: ensure 44px minimum for all tappable action elements */
  .page-error-retry { min-height: 44px; padding: 10px 24px; }
  .store-action-btn { min-height: 44px; }
  .store-detail-close { width: 44px; height: 44px; font-size: 22px; }
  .portfolio-card { min-height: 44px; }
  .planning-fab { min-width: 44px; min-height: 44px; }
  /* Hide non-essential widgets on mobile to avoid overlap with bottom nav */
  .lcw-widget, .snw-widget { display: none !important; }
  .quick-capture-wrap { bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important; right: 12px !important; }
  .ddw-trigger { bottom: calc(90px + 60px + env(safe-area-inset-bottom, 0px)) !important; }
  /* Modal safe-area insets */
  #cmd-palette, .focus-overlay, .kb-overlay { padding-bottom: env(safe-area-inset-bottom, 0px); }
}

/* Small phones */
@media (max-width: 480px) {
  #splash-screen { gap: 12px; padding: 16px; }
  .splash-logo { width: 56px; height: 56px; font-size: 28px; }
  .splash-title { font-size: 22px; letter-spacing: 0; }
  .splash-sub { font-size: 11px; }
  .splash-btn { padding: 12px 32px; font-size: 13px; }
  .pin-container { gap: 14px; }
  .pin-key { width:64px; height:64px; font-size:22px; }
  .pin-pad { gap:10px; max-width:230px; }
  .pin-dots { gap:12px; }
}

/* ========== MOBILE RESPONSIVENESS ENHANCEMENTS (BUG-003 beta) ========== */

/* Text overflow prevention — global */
@media (max-width: 768px) {
  /* KPI cards: prevent text overflow at large font sizes */
  .kpi-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: clamp(20px, 6vw, 32px);
  }
  .kpi-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .kpi-card {
    padding: 14px;
    min-width: 0; /* allow flex shrink */
  }

  /* Page titles */
  .page-title {
    font-size: clamp(18px, 5vw, 28px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 100px);
  }
  .page-subtitle {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 60px);
  }

  /* Table cells: prevent overflow */
  td, th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40vw;
  }

  /* Modal dialogs */
  .modal, .modal-body, .dialog, [class*="modal"] {
    max-width: calc(100vw - 24px);
    overflow-x: hidden;
  }

  /* Sidebar nav labels — allow wrapping on mobile bottom bar */
  .nav-label {
    font-size: 0.75rem; /* rem scales with system font (presbyopia fix) */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 64px;
  }

  /* Status items — show full service names, don't truncate */
  .status-name {
    font-size: 12px;
    word-break: break-word;
    white-space: normal;
    min-width: 0;
  }

  /* Widget titles — show full text */
  .widget-title {
    font-size: 13px;
    word-break: break-word;
    white-space: normal;
    min-width: 0;
  }

  /* Quick stats — allow wrapping on small screens */
  .dash-quick-stat {
    white-space: normal;
    word-break: break-word;
    min-width: 0;
  }

  /* Section headers */
  .section-header, .forge-section-header, [class*="section-header"] {
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Buttons and interactive elements: 44px min touch target (Apple HIG) */
  .setting-btn,
  .store-tab,
  select,
  .forge-btn {
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  /* Cards: prevent horizontal overflow */
  .card, [class*="-card"] {
    min-width: 0;
    overflow: hidden;
  }

  /* Badge text overflow */
  .badge, [class*="-badge"] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
  }
}

/* iPhone SE (375px) specific fixes */
@media (max-width: 375px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi-card { padding: 10px; }
  .kpi-value { font-size: 18px; }
  .kpi-icon { width: 32px; height: 32px; font-size: 16px; border-radius: 8px; }
  #content { padding: 10px; padding-bottom: calc(var(--mobile-nav-h, 110px) + 16px + env(safe-area-inset-bottom, 0px)); }
  .page-title { font-size: 18px; }
  .page-subtitle { font-size: 11px; }
  /* Bottom nav: smaller items so more fit without truncation */
  .nav-item { min-width: 48px; padding: 6px 6px; min-height: 54px; }
  .nav-icon { font-size: 16px; }
  .nav-label { font-size: 0.65rem; max-width: 46px; letter-spacing: -0.3px; } /* rem scales with system font (presbyopia fix) */
  /* Status items: smaller on tiny screens */
  .status-item { padding: 8px 10px; gap: 8px; }
  .status-name { font-size: 11px; }
  .status-badge { font-size: 9px; padding: 2px 6px; }
  /* Weather widget: ensure temp + suffix fit */
  .weather-temp { font-size: 32px !important; letter-spacing: -1px; }
  .weather-main { gap: 10px; }
  /* Store tabs */
  .store-tab { font-size: 12px; padding: 8px 10px; }
  .store-search-input { font-size: 16px; /* prevent iOS zoom */ }
  /* Genius cards */
  .genius-council-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .genius-card { padding: 10px; }
  .genius-name { font-size: 12px; }
  .genius-desc { font-size: 10px; -webkit-line-clamp: 2; }
}

/* iPhone Plus / iPhone 14 (390-414px) fixes */
@media (min-width: 376px) and (max-width: 414px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-value { font-size: 22px; }
  .genius-council-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .store-tab { font-size: 13px; }
}

/* Very small phones */
@media (max-height: 650px) {
  #splash-screen { gap: 8px; padding: 12px; }
  .splash-logo { width: 44px; height: 44px; font-size: 22px; }
  .splash-title { font-size: 20px; }
  .pin-container { gap: 10px; }
  .pin-key { width:56px; height:56px; font-size:20px; }
  .pin-pad { gap:8px; max-width:200px; }
  .pin-dots { gap:10px; }
  .pin-dot { width:14px; height:14px; }
}

/* Landscape with keyboard */
@media (max-height: 500px) {
  #splash-screen { gap: 8px; flex-direction:row; flex-wrap:wrap; justify-content:center; }
  .splash-logo { width: 40px; height: 40px; font-size: 20px; }
  .splash-title { font-size: 20px; }
}

/* ========== SHARED PAGE LOADING / ERROR STATES (22.6) ========== */
.page-load-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
  color: var(--text-muted);
  font-size: 14px;
}
.page-load-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: page-spin 0.8s linear infinite;
}
@keyframes page-spin {
  to { transform: rotate(360deg); }
}
.page-load-msg { color: var(--text-muted); font-size: 13px; }

.page-error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 12px;
  text-align: center;
}
.page-error-icon { font-size: 40px; }
.page-error-msg {
  color: var(--text-muted);
  font-size: 13px;
  max-width: 320px;
  line-height: 1.5;
}
.page-error-retry {
  margin-top: 8px;
  padding: 8px 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--primary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.page-error-retry:hover {
  background: var(--primary-dim);
  border-color: var(--primary);
}

/* ==================== QUICK CAPTURE FAB ==================== */
.quick-capture-wrap {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 2500;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.quick-capture-fab {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--primary); color: var(--bg);
  border: none; font-size: 22px; font-weight: 700;
  cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.quick-capture-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(0,0,0,0.5); }
.quick-capture-popup {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px;
  width: 300px; box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: qc-slide-in 0.15s ease;
}
@keyframes qc-slide-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.quick-capture-popup-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; font-size: 12px; font-weight: 700; color: var(--text);
}
.quick-capture-close {
  background: none; border: none; color: var(--text-dim);
  font-size: 13px; cursor: pointer; padding: 2px 4px;
}
.quick-capture-close:hover { color: var(--text); }
.quick-capture-input {
  width: 100%; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 12px; color: var(--text); font-size: 13px;
  box-sizing: border-box; outline: none;
  transition: border-color 0.2s;
}
.quick-capture-input:focus { border-color: var(--primary); }
.quick-capture-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px;
}
.quick-capture-submit {
  background: var(--primary); color: var(--bg);
  border: none; border-radius: 8px;
  padding: 6px 14px; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: opacity 0.15s;
}
.quick-capture-submit:hover { opacity: 0.85; }
@media (max-width: 480px) {
  .quick-capture-wrap { bottom: 16px; right: 16px; }
  .quick-capture-fab { width: 44px; height: 44px; font-size: 20px; }
  .quick-capture-popup { width: calc(100vw - 32px); }
}

/* ==================== POMO STATS MODAL ==================== */
.pomo-stats-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.pomo-stats-overlay.open { display: flex; }
.pomo-stats-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  width: min(90vw, 560px); max-height: 85vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.pomo-stats-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.pomo-stats-modal-title { font-size: 16px; font-weight: 700; color: var(--text); }
.pomo-stats-close {
  background: none; border: 1px solid var(--border); border-radius: 8px;
  width: 30px; height: 30px; cursor: pointer; color: var(--text-dim);
  font-size: 14px; display: flex; align-items: center; justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}
.pomo-stats-close:hover { color: var(--text); border-color: var(--primary); }

.pomo-stats-kpis {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px;
}
@media (max-width: 480px) { .pomo-stats-kpis { grid-template-columns: repeat(2, 1fr); } }
.pomo-stats-kpi {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px; text-align: center;
}
.pomo-stats-kpi-val { font-size: 22px; font-weight: 800; color: var(--primary); }
.pomo-stats-kpi-label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

.pomo-stats-section { margin-bottom: 20px; }
.pomo-stats-section-title { font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px; }

/* 7-day bar chart */
.pomo-stats-chart {
  display: flex; gap: 6px; align-items: flex-end; height: 150px;
}
.pomo-stats-col {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.pomo-stats-count { font-size: 11px; font-weight: 700; color: var(--text-dim); min-height: 14px; }
.pomo-stats-bar-wrap {
  flex: 1; width: 100%; display: flex; align-items: flex-end;
}
.pomo-stats-bar {
  width: 100%; border-radius: 4px 4px 0 0;
  background: var(--primary); opacity: 0.5;
  transition: opacity 0.2s;
}
.pomo-stats-bar.today { opacity: 1; }
.pomo-stats-bar.empty { background: var(--border); opacity: 1; height: 4px !important; }
.pomo-stats-bar:hover { opacity: 0.9; }
.pomo-stats-day {
  font-size: 10px; color: var(--text-dim); text-align: center; margin-top: 4px;
}
.pomo-stats-day.today { color: var(--primary); font-weight: 700; }

/* 30-day heatmap */
.pomo-stats-heatmap {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.pomo-heat-cell {
  width: 22px; height: 22px; border-radius: 4px;
  font-size: 9px; display: flex; align-items: center; justify-content: center;
  color: var(--bg); font-weight: 700; cursor: default;
}
.heat-0 { background: var(--surface2); border: 1px solid var(--border); }
.heat-1 { background: color-mix(in srgb, var(--primary) 22%, transparent); }
.heat-2 { background: color-mix(in srgb, var(--primary) 50%, transparent); }
.heat-3 { background: var(--primary); }
.heat-today { outline: 2px solid var(--primary); outline-offset: 1px; }
.pomo-heat-legend {
  display: flex; align-items: center; gap: 4px;
  margin-top: 8px; font-size: 10px; color: var(--text-dim);
}
.pomo-heat-legend .pomo-heat-cell { width: 14px; height: 14px; }
/* Energy level tracker */
.energy-label { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; font-weight: 600; text-align: center; }
.energy-btns { display: flex; gap: 6px; justify-content: center; }
.energy-btn { background: var(--surface2); border: 1px solid var(--border); color: var(--text); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 700; transition: background 0.12s, border-color 0.12s, transform 0.1s; font-family: inherit; }
.energy-btn:hover { border-color: var(--primary); transform: scale(1.1); }
.energy-btn.active { background: color-mix(in srgb, var(--primary) 18%, transparent); font-size: 16px; }
/* Water tracker */
.water-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.water-glasses { display: flex; gap: 3px; flex-wrap: wrap; flex: 1; }
.water-glass { font-size: 18px; cursor: pointer; opacity: 0.25; transition: opacity 0.15s, transform 0.1s; }
.water-glass.filled { opacity: 1; }
.water-glass:hover { transform: scale(1.2); }
.water-count { font-size: 13px; font-weight: 700; white-space: nowrap; }
.water-bar-bg { background: var(--surface2); border-radius: 4px; height: 5px; overflow: hidden; margin-bottom: 8px; }
.water-bar-fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width 0.3s ease; }
.water-actions { display: flex; gap: 6px; }
.water-btn { background: var(--surface2); border: 1px solid var(--border); color: var(--text); padding: 4px 12px; border-radius: 8px; cursor: pointer; font-size: 12px; font-family: inherit; transition: background 0.1s; }
.water-btn:hover { background: color-mix(in srgb, var(--primary) 15%, var(--surface2)); border-color: var(--primary); }
.water-btn.minus { color: var(--text-dim); }
/* Gratitude journal */
.gratitude-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.gratitude-num { font-size: 16px; flex-shrink: 0; }
.gratitude-input { flex: 1; background: var(--surface2); border: 1px solid var(--border); color: var(--text); padding: 5px 10px; border-radius: 8px; font-size: 12px; font-family: inherit; outline: none; transition: border-color 0.15s; }
.gratitude-input:focus { border-color: var(--primary); }
.gratitude-input::placeholder { color: var(--text-dim); font-style: italic; font-size: 11px; }
.gratitude-complete { text-align: center; font-size: 12px; color: var(--success); font-weight: 600; margin-top: 8px; padding: 6px; background: color-mix(in srgb, var(--success) 12%, transparent); border-radius: 8px; }
/* Today's Focus Goal */
.focus-goal-wrap { display: flex; align-items: center; gap: 8px; padding: 8px 0 4px; }
.focus-goal-lbl { font-size: 16px; flex-shrink: 0; }
.focus-goal-input { flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 6px 12px; font-size: 13px; font-family: inherit; outline: none; transition: border-color 0.15s; }
.focus-goal-input:focus { border-color: var(--primary); }
.focus-goal-input::placeholder { color: var(--text-dim); font-style: italic; }
/* Ambient sounds */
.ambient-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 6px; border-top: 1px solid var(--border); margin-top: 8px; }
.ambient-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.ambient-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 4px 9px; cursor: pointer; font-size: 15px; transition: background 0.12s, border-color 0.12s; line-height: 1.5; }
.ambient-btn:hover { border-color: var(--primary); }
.ambient-btn.active { background: color-mix(in srgb, var(--primary) 20%, transparent); border-color: var(--primary); }
.ambient-vol { width: 100%; max-width: 140px; accent-color: var(--primary); cursor: pointer; }
/* Pomo session notes in stats modal */
.pomo-note-item { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.pomo-note-item:last-child { border-bottom: none; }
.pomo-note-sess { font-size: 10px; font-weight: 700; color: var(--primary); white-space: nowrap; min-width: 28px; }
.pomo-note-text { font-size: 13px; color: var(--text); flex: 1; }
/* Session capture widget */
.pomo-capture-box { margin-top: 12px; padding: 12px; background: var(--surface2); border-radius: 10px; border: 1px solid var(--primary); animation: qcSlideIn 0.18s ease; }
.pomo-capture-hdr { font-size: 11px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.pomo-capture-row { display: flex; gap: 6px; align-items: center; }
.pomo-capture-input { flex: 1; background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 6px 10px; border-radius: 8px; font-size: 13px; font-family: inherit; outline: none; }
.pomo-capture-input:focus { border-color: var(--primary); }
.pomo-capture-btn { width: 32px; height: 32px; border-radius: 8px; border: none; cursor: pointer; font-size: 14px; font-weight: 700; transition: opacity 0.15s; }
.pomo-capture-btn.save { background: var(--primary); color: var(--bg); }
.pomo-capture-btn.skip { background: var(--surface2); border: 1px solid var(--border); color: var(--text-dim); }
.pomo-capture-btn:hover { opacity: 0.8; }
/* Pomodoro Quality Rating */
.pomo-quality-row { display: flex; gap: 6px; justify-content: center; margin-bottom: 8px; }
.pomo-quality-btn { background: var(--surface2); border: 2px solid var(--border); border-radius: 8px; width: 40px; height: 40px; font-size: 20px; cursor: pointer; transition: all 0.15s; display: flex; align-items: center; justify-content: center; }
.pomo-quality-btn:hover { border-color: var(--primary); transform: scale(1.1); }
.pomo-quality-btn.selected { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 20%, transparent); transform: scale(1.12); }
/* Keyboard Shortcut Cheat Card */
.sc-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.sc-row:last-child { border-bottom: none; }
.sc-row kbd { background: var(--surface3); border: 1px solid var(--border-light); border-radius: 4px; padding: 2px 6px; font-family: monospace; font-size: 11px; color: var(--primary); white-space: nowrap; flex-shrink: 0; }
.sc-row span { color: var(--text-dim); }
/* Daily Affirmation Widget */
.affirmation-text { font-size: 14px; line-height: 1.6; color: var(--text); font-style: italic; text-align: center; padding: 6px 0 2px; }
/* Quick Note Templates */
.note-templates-row { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; flex-wrap: wrap; }
.note-tpl-btn { background: var(--surface2); border: 1px solid var(--border); color: var(--text-muted); padding: 3px 8px; border-radius: 6px; font-size: 12px; cursor: pointer; transition: background 0.12s, border-color 0.12s, color 0.12s; white-space: nowrap; }
.note-tpl-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-dim); }
/* Habit history button */
.habit-history-btn { background: none; border: none; cursor: pointer; font-size: 14px; padding: 0 2px; opacity: 0.5; transition: opacity 0.15s; flex-shrink: 0; }
.habit-history-btn:hover { opacity: 1; }
/* Habit History Heatmap Modal */
.hh-modal-box { max-width: 480px; }
.hh-content { padding: 16px; overflow-y: auto; flex: 1; }
.hh-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hh-emoji { font-size: 28px; }
.hh-name { font-size: 17px; font-weight: 700; color: var(--text); }
.hh-meta { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.hh-dow-labels { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 4px; }
.hh-dow { font-size: 10px; color: var(--text-dim); text-align: center; font-weight: 600; }
.hh-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.hh-cell { aspect-ratio: 1; border-radius: 4px; cursor: default; transition: transform 0.1s; }
.hh-cell:hover { transform: scale(1.2); }
.hh-today { box-shadow: 0 0 0 2px var(--primary); }
/* Custom Countdown Timer */
.cd-presets { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.cd-preset { background: var(--surface2); border: 1px solid var(--border); color: var(--text-muted); padding: 4px 8px; border-radius: 6px; font-size: 12px; cursor: pointer; transition: background 0.12s, border-color 0.12s, color 0.12s; }
.cd-preset:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-dim); }
.cd-display { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 6px 0; }
.cd-time { font-size: 38px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--text); line-height: 1.1; }
.cd-time.cd-warn { color: var(--warning); animation: cdPulse 1s ease-in-out infinite; }
.cd-time.cd-done { color: var(--success); }
.cd-bar-bg { width: 100%; height: 4px; background: var(--surface2); border-radius: 2px; overflow: hidden; }
.cd-bar-fill { height: 100%; background: var(--primary); border-radius: 2px; transition: width 0.9s linear; }
.cd-controls { display: flex; gap: 10px; justify-content: center; margin-top: 6px; }
.cd-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 18px; font-size: 18px; cursor: pointer; color: var(--text); transition: background 0.12s, border-color 0.12s; }
.cd-btn:hover { border-color: var(--primary); background: var(--primary-dim); }
.cd-hint { text-align: center; color: var(--text-dim); font-size: 12px; padding: 8px 0; }
@keyframes cdPulse { 0%,100%{opacity:1} 50%{opacity:0.55} }
/* Global Search Modal */
.gs-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding-top: 80px; z-index: 9900; }
.gs-box { width: min(680px, 96vw); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.5); display: flex; flex-direction: column; max-height: 72vh; }
.gs-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--surface2); flex-shrink: 0; }
.gs-icon { font-size: 18px; }
.gs-input { flex: 1; background: transparent; border: none; outline: none; color: var(--text); font-size: 16px; font-family: inherit; }
.gs-input::placeholder { color: var(--text-dim); }
.gs-close { background: none; border: none; color: var(--text-dim); font-size: 16px; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: color 0.15s, background 0.15s; }
.gs-close:hover { color: var(--text); background: var(--surface3); }
.gs-results { overflow-y: auto; flex: 1; padding: 8px 0; min-height: 80px; }
.gs-empty { padding: 32px 20px; text-align: center; color: var(--text-dim); font-size: 14px; }
.gs-group { border-bottom: 1px solid var(--border); padding-bottom: 6px; margin-bottom: 2px; }
.gs-group:last-child { border-bottom: none; }
.gs-group-title { padding: 8px 16px 4px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; color: var(--primary); text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.gs-count { background: var(--primary-dim); color: var(--primary); border-radius: 10px; padding: 1px 7px; font-size: 11px; font-weight: 700; }
.gs-result { padding: 7px 16px; cursor: default; border-radius: 6px; margin: 1px 6px; transition: background 0.1s; }
.gs-result:hover { background: var(--surface2); }
.gs-text { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-done .gs-text { color: var(--text-dim); }
.gs-sub { font-size: 11px; color: var(--text-dim); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-more { padding: 3px 16px; font-size: 11px; color: var(--text-dim); font-style: italic; }
.gs-footer { border-top: 1px solid var(--border); padding: 7px 16px; font-size: 11px; color: var(--text-dim); text-align: center; flex-shrink: 0; background: var(--surface2); }

/* ==================== Universal Search (Ctrl+K) ==================== */
.us-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.75); backdrop-filter:blur(8px); display:flex; align-items:flex-start; justify-content:center; padding-top:min(12vh,100px); z-index:9950; animation:usFadeIn .15s ease; }
@keyframes usFadeIn { from{opacity:0} to{opacity:1} }
.us-box { width:min(720px,96vw); background:var(--surface); border:1px solid var(--border); border-radius:16px; overflow:hidden; box-shadow:0 24px 80px rgba(0,0,0,0.6),0 0 0 1px rgba(255,255,255,0.04) inset; display:flex; flex-direction:column; max-height:72vh; animation:usSlideIn .2s ease; }
@keyframes usSlideIn { from{opacity:0;transform:translateY(-16px) scale(0.98)} to{opacity:1;transform:translateY(0) scale(1)} }
.us-header { display:flex; align-items:center; gap:12px; padding:16px 18px; border-bottom:1px solid var(--border); background:var(--surface2); flex-shrink:0; }
.us-search-icon { color:var(--primary); flex-shrink:0; opacity:0.8; }
.us-input { flex:1; background:transparent; border:none; outline:none; color:var(--text); font-size:17px; font-family:inherit; font-weight:500; letter-spacing:-0.01em; }
.us-input::placeholder { color:var(--text-dim); font-weight:400; }
.us-kbd { background:var(--surface3); color:var(--text-dim); border:1px solid var(--border); border-radius:5px; padding:2px 8px; font-size:11px; font-family:inherit; flex-shrink:0; }
.us-loading { flex-shrink:0; }
.us-spinner { width:18px; height:18px; border:2px solid var(--border); border-top-color:var(--primary); border-radius:50%; animation:usSpin .6s linear infinite; }
@keyframes usSpin { to{transform:rotate(360deg)} }
.us-results { overflow-y:auto; flex:1; min-height:100px; max-height:calc(72vh - 110px); scrollbar-width:thin; }
.us-hint { padding:28px 24px; text-align:center; }
.us-hint-row { color:var(--text-dim); font-size:13px; margin-bottom:16px; display:flex; align-items:center; justify-content:center; gap:8px; }
.us-hint-row kbd { background:var(--surface3); border:1px solid var(--border); border-radius:4px; padding:1px 6px; font-size:11px; color:var(--text-muted); }
.us-hint-cats { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.us-cat-pill { font-size:12px; padding:5px 12px; border-radius:20px; background:var(--surface2); border:1px solid var(--border); color:var(--text-muted); }
.us-cat-pages { border-color:rgba(0,212,255,0.3); color:var(--primary); }
.us-cat-agents { border-color:rgba(124,58,237,0.3); color:var(--accent); }
.us-cat-marketplace { border-color:rgba(16,185,129,0.3); color:#10b981; }
.us-cat-genius { border-color:rgba(245,158,11,0.3); color:#f59e0b; }
.us-cat-groups { border-color:rgba(236,72,153,0.3); color:#ec4899; }

.us-group { margin-bottom:4px; }
.us-group-header { display:flex; align-items:center; gap:8px; padding:10px 18px 4px; }
.us-group-icon { font-size:14px; }
.us-group-label { font-size:10px; font-weight:800; letter-spacing:0.1em; text-transform:uppercase; }
.us-group-count { font-size:10px; font-weight:700; padding:1px 7px; border-radius:10px; margin-left:auto; }
.us-group-pages .us-group-label, .us-group-pages .us-group-count { color:var(--primary); }
.us-group-pages .us-group-count { background:rgba(0,212,255,0.12); }
.us-group-agents .us-group-label, .us-group-agents .us-group-count { color:var(--accent); }
.us-group-agents .us-group-count { background:rgba(124,58,237,0.12); }
.us-group-marketplace .us-group-label, .us-group-marketplace .us-group-count { color:#10b981; }
.us-group-marketplace .us-group-count { background:rgba(16,185,129,0.12); }
.us-group-genius .us-group-label, .us-group-genius .us-group-count { color:#f59e0b; }
.us-group-genius .us-group-count { background:rgba(245,158,11,0.12); }
.us-group-groups .us-group-label, .us-group-groups .us-group-count { color:#ec4899; }
.us-group-groups .us-group-count { background:rgba(236,72,153,0.12); }

.us-item { display:flex; align-items:center; gap:12px; padding:8px 18px; margin:1px 6px; border-radius:8px; cursor:pointer; transition:background .1s; }
.us-item:hover, .us-item.us-selected { background:var(--surface2); }
.us-item.us-selected { background:var(--surface3); outline:1px solid var(--border-light); }
.us-item-icon { font-size:18px; width:32px; height:32px; display:flex; align-items:center; justify-content:center; border-radius:8px; background:var(--surface2); flex-shrink:0; }
.us-item.us-selected .us-item-icon { background:var(--surface3); }
.us-item-body { flex:1; min-width:0; }
.us-item-name { font-size:14px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.us-item-name mark { background:transparent; color:var(--primary); font-weight:700; }
.us-item-desc { font-size:12px; color:var(--text-dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:1px; }
.us-item-badge { font-size:10px; padding:2px 8px; border-radius:10px; background:var(--surface3); color:var(--text-muted); flex-shrink:0; white-space:nowrap; }
.us-item-enter { font-size:12px; color:var(--text-dim); opacity:0; transition:opacity .1s; flex-shrink:0; }
.us-item.us-selected .us-item-enter, .us-item:hover .us-item-enter { opacity:1; }

.us-empty { padding:40px 24px; text-align:center; }
.us-empty-icon { font-size:32px; margin-bottom:8px; opacity:0.4; }
.us-empty-text { color:var(--text-dim); font-size:14px; }
.us-empty-hint { color:var(--text-dim); font-size:12px; margin-top:6px; opacity:0.6; }

.us-footer { display:flex; align-items:center; justify-content:space-between; border-top:1px solid var(--border); padding:8px 18px; font-size:11px; color:var(--text-dim); flex-shrink:0; background:var(--surface2); }
.us-footer kbd { background:var(--surface3); border:1px solid var(--border); border-radius:4px; padding:1px 5px; font-size:10px; margin:0 2px; }
.us-footer-right { opacity:0.7; }

/* Session Notes Viewer (29.5.61) */
.sn-date-group { margin-bottom: 12px; }
.sn-date-hdr { font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 16px; background: var(--surface2); border-top: 1px solid var(--border); }
.sn-item { display: flex; align-items: center; gap: 8px; padding: 7px 16px; border-bottom: 1px solid var(--border); transition: background 0.15s; }
.sn-item:hover { background: var(--surface2); }
.sn-session { font-size: 11px; font-weight: 700; color: var(--primary); min-width: 28px; }
.sn-quality { font-size: 16px; }
.sn-text { flex: 1; font-size: 13px; color: var(--text); }
.sn-time { font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.sn-empty { padding: 24px 16px; text-align: center; color: var(--text-dim); font-size: 13px; }
/* Energy Trend (29.5.62) */
.energy-trend-row { display: flex; gap: 4px; justify-content: center; margin-top: 10px; }
.energy-trend-day { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.energy-trend-dot { width: 18px; height: 18px; border-radius: 50%; }
.energy-trend-lbl { font-size: 10px; color: var(--text-dim); }
/* Notes Word Count (29.5.63) */
.notes-word-count { font-size: 11px; color: var(--text-dim); text-align: right; padding: 3px 2px 0; transition: opacity 0.3s; }
/* Gratitude Streak (29.5.64) */
.grat-streak { font-size: 12px; font-weight: 700; color: var(--success); }
/* Priority Archive (29.5.65) */
.pa-date-group { margin-bottom: 8px; }
.pa-date-hdr { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 16px; background: var(--surface2); border-top: 1px solid var(--border); }
.pa-stats { font-size: 11px; color: var(--primary); font-weight: 700; }
.pa-item { padding: 6px 16px; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--border); }
.pa-done { color: var(--text-dim); text-decoration: line-through; }
.pa-tag { font-size: 11px; margin-left: 6px; }
.pa-empty { padding: 24px 16px; text-align: center; color: var(--text-dim); font-size: 13px; }
/* Pomo Daily Stats Inline (29.5.66) */
.pomo-daily-stats { text-align: center; font-size: 11px; color: var(--text-dim); margin: 6px 0 2px; padding: 4px 8px; background: var(--surface2); border-radius: 6px; }
/* Daily Wins (29.5.70) */
.wins-count { font-size: 22px; text-align: center; padding: 8px 0 4px; min-height: 32px; }
.wins-label { text-align: center; font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.wins-actions { display: flex; gap: 8px; justify-content: center; }
.wins-btn { background: var(--primary); color: var(--bg); border: none; border-radius: 8px; padding: 6px 14px; font-size: 12px; cursor: pointer; font-family: inherit; transition: opacity 0.15s; }
.wins-btn:hover { opacity: 0.8; }
.wins-btn.minus { background: var(--surface2); color: var(--text-dim); border: 1px solid var(--border); }
/* Priority Inline Filter (29.5.71) */
.prio-filter-wrap { padding: 8px 0 4px; }
.prio-filter-input { width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 12px; padding: 6px 10px; outline: none; font-family: inherit; box-sizing: border-box; transition: border-color 0.2s; }
.prio-filter-input:focus { border-color: var(--primary); }
/* Notes Preview (29.5.73) */
.quick-notes-preview { min-height: 100px; max-height: 300px; overflow-y: auto; padding: 10px 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; font-size: 13px; line-height: 1.6; color: var(--text); }
/* Morning Briefing Copy Button (29.5.74) */
.mb-copy-btn { background: none; border: 1px solid var(--border); border-radius: 6px; color: var(--text-dim); cursor: pointer; font-size: 12px; padding: 2px 6px; margin-left: 6px; transition: all 0.15s; vertical-align: middle; }
.mb-copy-btn:hover { background: var(--surface2); color: var(--text); }
/* Habit Monthly Rate (29.5.77) */
.habit-month-rate { font-size: 10px; color: var(--text-dim); background: var(--surface2); border-radius: 4px; padding: 1px 5px; margin-left: 4px; font-weight: 600; }
/* Focus on Priority Button (29.5.79) */
.priority-focus-btn { background: none; border: none; font-size: 14px; cursor: pointer; padding: 2px 4px; opacity: 0.4; transition: opacity 0.15s; }
.priority-focus-btn:hover { opacity: 1; }
/* Confetti (29.5.82) */
@keyframes confettiFall { 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 100% { transform: translateY(60vh) rotate(720deg); opacity: 0; } }
/* Chat Auto-Suggestions (29.5.85) */
.chat-suggest-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: 16px; color: var(--text-dim); font-size: 11px; padding: 4px 10px; cursor: pointer; font-family: inherit; transition: all 0.15s; white-space: nowrap; }
.chat-suggest-btn:hover { border-color: var(--primary); color: var(--text); background: color-mix(in srgb, var(--primary) 10%, transparent); }
/* Recurring Priority Button (29.5.86) */
.priority-recur-btn { background: none; border: none; font-size: 13px; cursor: pointer; padding: 2px 4px; opacity: 0.35; transition: all 0.15s; }
.priority-recur-btn:hover { opacity: 1; }
.priority-recur-btn.active { opacity: 1; color: var(--primary); }
/* Pomo Break Suggestion (29.5.87) */
.pomo-break-suggestion { margin: 8px 0 0; padding: 8px 12px; background: var(--surface2); border-radius: 8px; border-left: 3px solid var(--primary); font-size: 12px; color: var(--text-dim); animation: fadeIn 0.3s ease; }
.pomo-break-suggestion strong { color: var(--text); display: block; margin-bottom: 2px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--primary); }
/* Chat Quick Reactions (29.5.88) */
.chat-react-btn { background: none; border: 1px solid transparent; border-radius: 10px; font-size: 14px; cursor: pointer; padding: 1px 4px; transition: all 0.12s; line-height: 1; }
.chat-react-btn:hover { border-color: var(--border); background: var(--surface2); }
.chat-reactions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.chat-reaction-pill { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; font-size: 12px; padding: 2px 7px; cursor: pointer; transition: all 0.12s; }
.chat-reaction-pill:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
/* Notes Writing Goal Bar (29.5.89) */
.notes-goal-bar-wrap { margin: 4px 0 0; }
.notes-goal-bar-track { height: 3px; background: var(--surface2); border-radius: 2px; overflow: hidden; }
.notes-goal-bar-fill { height: 100%; background: var(--primary); border-radius: 2px; transition: width 0.4s ease; }
.notes-goal-label { font-size: 10px; color: var(--text-dim); margin-top: 2px; }
.notes-goal-done { color: var(--success); font-weight: 700; }
/* Productivity Score History (29.5.90) */
.ps-chart { display: flex; align-items: flex-end; gap: 4px; height: 50px; padding: 0 2px; margin-top: 8px; }
.ps-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; height: 100%; justify-content: flex-end; }
.ps-bar { width: 100%; border-radius: 3px 3px 0 0; background: var(--primary); opacity: 0.7; min-height: 3px; transition: height 0.4s ease; }
.ps-bar-lbl { font-size: 9px; color: var(--text-dim); white-space: nowrap; }
.ps-bar-val { font-size: 9px; color: var(--text-dim); margin-bottom: 1px; }
/* Habit Heatmap (29.5.91) */
.heatmap-row { display: flex; flex-wrap: wrap; gap: 3px; }
.heatmap-cell { width: 14px; height: 14px; border-radius: 3px; background: var(--surface2); border: 1px solid var(--border); cursor: default; transition: opacity 0.15s; flex-shrink: 0; }
.heatmap-cell.done { opacity: 0.9; }
.heatmap-cell:hover { opacity: 0.7; }
/* Water History Chart (29.5.93) */
.water-hist-row { display: flex; gap: 3px; align-items: flex-end; height: 44px; padding: 4px 2px 0; margin-top: 6px; border-top: 1px solid var(--border); }
.water-hist-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.water-hist-bar-wrap { display: flex; align-items: flex-end; height: 28px; }
.water-hist-bar { width: 100%; border-radius: 2px 2px 0 0; min-height: 3px; }
.water-hist-day { font-size: 9px; color: var(--text-dim); }
/* Focus Quick Goal (29.5.94) */
.focus-quick-goal { font-size: 12px; color: var(--primary); font-weight: 600; text-align: center; padding: 4px 8px; background: color-mix(in srgb, var(--primary) 8%, transparent); border-radius: 8px; margin: 4px 0; cursor: pointer; transition: opacity 0.15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.focus-quick-goal:hover { opacity: 0.8; }
/* Daily Mood Widget (29.5.95) */
.mood-btn-row { display: flex; gap: 8px; justify-content: center; }
.mood-btn { background: var(--surface2); border: 2px solid transparent; border-radius: 50%; width: 36px; height: 36px; font-size: 18px; cursor: pointer; transition: all 0.15s; display: flex; align-items: center; justify-content: center; }
.mood-btn:hover { border-color: var(--primary); transform: scale(1.15); }
.mood-btn.selected { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 15%, transparent); transform: scale(1.2); }
.mood-dot-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mood-dot { font-size: 16px; line-height: 1; }
.mood-day { font-size: 9px; color: var(--text-dim); }
/* EOD Summary (29.5.96) */
.eod-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.eod-stat { background: var(--surface2); border-radius: 8px; padding: 8px 4px; text-align: center; }
.eod-stat-val { display: block; font-size: 18px; font-weight: 800; color: var(--text); }
.eod-stat-lbl { display: block; font-size: 10px; color: var(--text-dim); margin-top: 2px; }
/* Chat Bookmarks (29.5.97) */
.chat-bm-item { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.chat-bm-text { font-size: 13px; color: var(--text); line-height: 1.5; }
.chat-bm-meta { font-size: 11px; color: var(--text-dim); margin-top: 4px; display: flex; justify-content: space-between; align-items: center; }
.chat-bm-remove { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 16px; padding: 0 4px; transition: color 0.15s; }
.chat-bm-remove:hover { color: var(--error); }
/* Energy 7-Day Chart (29.5.98) */
.energy-chart-row { display: flex; gap: 3px; align-items: flex-end; height: 40px; padding: 0 2px; }
.energy-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.energy-chart-bar { width: 100%; border-radius: 2px 2px 0 0; min-height: 3px; }
.energy-chart-day { font-size: 9px; color: var(--text-dim); }
/* Pomo Work/Break Ratio (29.5.99) */
.pomo-ratio-wrap { padding: 6px 12px; }
.pomo-ratio-bar { height: 4px; background: var(--surface2); border-radius: 2px; overflow: hidden; margin-bottom: 4px; }
.pomo-ratio-fill { height: 100%; background: var(--primary); border-radius: 2px; transition: width 0.4s ease; }
.pomo-ratio-label { font-size: 11px; color: var(--text-dim); text-align: center; }
/* Priority Score Badge (29.5.100) */
.priority-score-badge { display: inline-block; font-size: 12px; margin-left: 8px; padding: 1px 6px; background: var(--surface2); border-radius: 8px; vertical-align: middle; }
/* Pomo Weekly Goal (29.5.101) */
.pomo-wg-label { font-size: 11px; color: var(--text-dim); margin-bottom: 3px; }
.pomo-wg-track { height: 3px; background: var(--surface2); border-radius: 2px; overflow: hidden; }
.pomo-wg-fill { height: 100%; border-radius: 2px; transition: width 0.4s ease; }
/* Priority Tag Chips (29.5.102) */
.prio-tag-chip { font-size: 11px; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 2px 7px; color: var(--text-dim); }
/* Daily Journal (29.5.103) */
.daily-journal-input { width: 100%; min-height: 70px; max-height: 150px; resize: vertical; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 13px; padding: 8px 10px; outline: none; font-family: inherit; box-sizing: border-box; transition: border-color 0.2s; line-height: 1.5; }
.daily-journal-input:focus { border-color: var(--primary); }
.daily-journal-char { font-size: 10px; color: var(--text-dim); text-align: right; margin-top: 3px; }
/* Focus Ring (29.5.104) */
.focus-ring-wrap { position: relative; display: flex; align-items: center; justify-content: center; margin: 8px auto; width: 100px; height: 100px; }
.focus-ring-track { stroke: rgba(255,255,255,0.1); }
.focus-ring-progress { stroke: var(--primary); transition: stroke-dashoffset 1s linear; }
.focus-ring-pct { position: absolute; font-size: 18px; font-weight: 800; color: rgba(255,255,255,0.9); }
/* Pomo Sound Themes (29.5.106) */
.pomo-sound-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; font-size: 14px; padding: 3px 7px; cursor: pointer; transition: all 0.15s; }
.pomo-sound-btn:hover { border-color: var(--primary); }
.pomo-sound-btn.active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 15%, transparent); }
/* Carry-Over Badge (29.5.107) */
.carryover-badge { font-size: 11px; color: var(--warning); background: color-mix(in srgb, var(--warning) 10%, transparent); border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent); border-radius: 8px; padding: 2px 8px; }
/* Notes Highlight (29.5.108) */
mark.notes-highlight { background: color-mix(in srgb, var(--primary) 35%, transparent); color: var(--text); border-radius: 2px; }
/* Dashboard Quick Actions Row (29.5.109) */
.dash-quick-row { display: flex; gap: 8px; padding: 8px 0 4px; flex-wrap: wrap; }
.dash-quick-btn { flex: 1; min-width: 80px; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; color: var(--text-dim); font-size: 12px; padding: 7px 10px; cursor: pointer; font-family: inherit; transition: all 0.15s; }
.dash-quick-btn:hover { border-color: var(--primary); color: var(--text); background: color-mix(in srgb, var(--primary) 8%, transparent); }
/* Habit Best Streak (29.5.110) */
.habit-best-streak { font-size: 10px; color: var(--text-dim); background: var(--surface2); border-radius: 4px; padding: 1px 5px; margin-left: 4px; font-weight: 600; }
/* Priority Sort Buttons (29.5.111) */
.prio-sort-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text-dim); font-size: 11px; padding: 3px 7px; cursor: pointer; font-family: inherit; transition: all 0.12s; }
.prio-sort-btn:hover { border-color: var(--primary); color: var(--text); }
.prio-sort-btn.active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--text); }
/* Gratitude Prompt Hint (29.5.112) */
.grat-prompt-hint { font-size: 11px; color: var(--text-dim); padding: 4px 0 6px; cursor: pointer; font-style: italic; transition: color 0.15s; }
.grat-prompt-hint:hover { color: var(--primary); }
/* Notes Template Picker (29.5.114) */
.notes-tpl-picker { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px; margin-bottom: 8px; display: none; }
.notes-tpl-item { display: block; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--border); color: var(--text-dim); font-size: 13px; padding: 7px 8px; cursor: pointer; font-family: inherit; transition: all 0.12s; }
.notes-tpl-item:last-child { border-bottom: none; }
.notes-tpl-item:hover { background: var(--surface2); color: var(--text); }
/* Task Timer (29.5.116) */
.priority-task-timer { font-size: 11px; color: var(--text-dim); cursor: pointer; padding: 2px 5px; border-radius: 6px; background: var(--surface2); transition: all 0.15s; white-space: nowrap; }
.priority-task-timer:hover { background: var(--primary); color: var(--bg); }
/* Chat Stats (29.5.117) */
.chat-stat-pill { font-size: 11px; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 2px 8px; color: var(--text-dim); }
/* Ambient EQ Bars (29.5.118) */
.eq-row { display: flex; gap: 3px; align-items: flex-end; height: 20px; }
.eq-bar { width: 4px; border-radius: 2px 2px 0 0; background: var(--primary); opacity: 0.6; animation: eqBounce 0.5s ease-in-out infinite alternate; }
@keyframes eqBounce { 0% { transform: scaleY(0.3); } 100% { transform: scaleY(1); } }
/* Dashboard Stat Cards (29.5.119) */
.dash-stat-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 8px; }
.dash-stat-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 6px; text-align: center; }
.dash-stat-icon { font-size: 18px; margin-bottom: 4px; }
.dash-stat-val { font-size: 20px; font-weight: 800; color: var(--text); }
.dash-stat-lbl { font-size: 10px; color: var(--text-dim); margin-top: 2px; }
/* Focus Shortcut Hint (29.5.120) */
.focus-shortcut-hint { font-size: 14px; cursor: pointer; opacity: 0.5; transition: opacity 0.15s; padding: 2px; }
.focus-shortcut-hint:hover { opacity: 1; }
/* Ambient Auto-Stop (29.5.121) */
.ambient-stop-row { display: flex; gap: 4px; align-items: center; margin-top: 4px; }
.ambient-stop-row label { font-size: 11px; color: var(--text-dim); margin-right: 4px; }
.ambient-stop-btn { font-size: 11px; padding: 2px 7px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface2); color: var(--text-dim); cursor: pointer; transition: all 0.15s; }
.ambient-stop-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
/* Priority Completion Streak (29.5.122) */
.prio-streak-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 3px 10px; font-size: 12px; margin: 4px 0; }
.prio-streak-badge.hot { background: rgba(255,80,0,0.12); border-color: #ff5000; color: #ff5000; }
/* Notes Auto-Save Indicator (29.5.123) */
.notes-save-status { font-size: 11px; color: var(--text-dim); min-height: 14px; transition: color 0.3s; }
.notes-save-status.saving { color: var(--warning); }
.notes-save-status.saved { color: var(--success); }
/* Habit 30-Day Challenge (29.5.124) */
.habit-challenge-badge { font-size: 11px; background: rgba(99,102,241,0.12); color: var(--primary); border-radius: 8px; padding: 1px 7px; }
.habit-challenge-bar { width: 100%; height: 4px; background: var(--border); border-radius: 2px; margin-top: 3px; }
.habit-challenge-fill { height: 4px; background: var(--primary); border-radius: 2px; transition: width 0.4s; }
/* Chat Persona Selector (29.5.126) */
.persona-row { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 12px 4px; border-bottom: 1px solid var(--border); }
.persona-btn { font-size: 12px; padding: 3px 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface2); color: var(--text-dim); cursor: pointer; transition: all 0.15s; }
.persona-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
/* Pomo Sparkline (29.5.127) */
.sparkline-row { display: flex; gap: 5px; align-items: flex-end; height: 48px; }
.spark-col { display: flex; flex-direction: column; align-items: center; flex: 1; }
.spark-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.spark-bar { width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; transition: height 0.3s; }
.spark-lbl { font-size: 10px; color: var(--text-dim); margin-top: 2px; min-height: 12px; }
.spark-day { font-size: 10px; color: var(--text-muted, var(--text-dim)); }
/* Widget Pin (29.5.128) */
.widget-pin-btn { font-size: 13px; cursor: pointer; opacity: 0.4; background: none; border: none; padding: 0 2px; transition: opacity 0.15s; }
.widget-pin-btn:hover { opacity: 1; }
.widget-pinned { order: -1; border: 1px solid var(--primary) !important; }
/* Mini Calendar (29.5.129) */
.mcal-day-names { display: grid; grid-template-columns: repeat(7,1fr); text-align: center; font-size: 10px; color: var(--text-dim); padding: 6px 8px 2px; }
.mcal-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; padding: 2px 8px 8px; }
.mcal-day { text-align: center; font-size: 12px; padding: 3px 0; border-radius: 6px; cursor: pointer; color: var(--text); position: relative; }
.mcal-day:hover { background: var(--surface2); }
.mcal-today { background: var(--primary) !important; color: #fff !important; font-weight: 700; }
.mcal-has-dot::after { content: ''; position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--success); }
.mcal-empty { opacity: 0; pointer-events: none; }
/* Priority Due Date (29.5.130) */
.priority-due-badge { font-size: 10px; padding: 1px 6px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.priority-due-badge.due-overdue { background: rgba(239,68,68,0.15); color: var(--error, #ef4444); }
.priority-due-badge.due-today { background: rgba(245,158,11,0.15); color: var(--warning, #f59e0b); }
.priority-due-badge.due-soon { background: rgba(245,158,11,0.08); color: #f59e0b; }
.priority-due-badge.due-ok { background: var(--surface2); color: var(--text-dim); }
.priority-due-btn { font-size: 11px; background: none; border: none; cursor: pointer; opacity: 0.3; padding: 0 2px; transition: opacity 0.15s; }
.priority-due-btn:hover { opacity: 1; }
/* Water Goal Ring (29.5.131) */
.water-ring-label { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
/* Habit Calendar Heatmap (29.5.132) */
.habit-cal-btn { font-size: 14px; background: none; border: none; cursor: pointer; opacity: 0.4; padding: 0 3px; transition: opacity 0.15s; }
.habit-cal-btn:hover { opacity: 1; }
.hcal-grid { padding: 8px; }
.hcal-row { display: flex; gap: 3px; margin-bottom: 3px; }
.hcal-cell { width: 14px; height: 14px; border-radius: 3px; background: var(--border); cursor: pointer; }
.hcal-cell.hcal-done { background: var(--primary); }
/* Notes Word Count (29.5.133) */
.notes-wc-badge { font-size: 11px; color: var(--text-dim); padding: 2px 0 0; display: block; }
/* Focus Session History (29.5.134) */
.focus-hist-stats { display: flex; gap: 16px; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.focus-hist-day { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.focus-hist-date { color: var(--text-dim); }
.focus-hist-count { font-weight: 600; color: var(--primary); }
/* Gratitude Streak Badge (29.5.135) */
.gratitude-streak-badge { font-size: 11px; background: rgba(99,102,241,0.12); color: var(--primary); border-radius: 10px; padding: 2px 8px; margin-left: 6px; white-space: nowrap; }
/* Priority Effort (29.5.136) */
.priority-effort-btn { font-size: 11px; background: none; border: 1px solid transparent; border-radius: 8px; cursor: pointer; padding: 1px 4px; opacity: 0.4; transition: all 0.15s; }
.priority-effort-btn:hover, .priority-effort-btn.has-effort { opacity: 1; background: var(--surface2); border-color: var(--border); font-weight: 600; color: var(--primary); }
.effort-picker { display: flex; gap: 4px; }
.effort-btn { font-size: 11px; padding: 3px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface2); color: var(--text-dim); cursor: pointer; transition: all 0.15s; font-weight: 600; }
.effort-btn.active, .effort-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
/* Wins Archive (29.5.137) */
.wins-archive-day { margin-bottom: 10px; }
.wins-archive-date { font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.wins-archive-list { margin: 0; padding-left: 16px; font-size: 13px; color: var(--text); }
.wins-archive-list li { margin-bottom: 2px; }
/* Habit Monthly Summary (29.5.139) */
.hmonth-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.hmonth-emoji { font-size: 18px; width: 24px; text-align: center; }
.hmonth-info { flex: 1; }
.hmonth-name { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.hmonth-bar-wrap { height: 5px; background: var(--border); border-radius: 3px; }
.hmonth-bar-fill { height: 5px; border-radius: 3px; transition: width 0.4s; }
.hmonth-pct { font-size: 13px; font-weight: 700; min-width: 36px; text-align: right; }
.hmonth-count { font-size: 11px; color: var(--text-dim); min-width: 42px; text-align: right; }
/* Pinned Snippets (29.5.140) */
.snippet-item { background: var(--surface2); border-radius: 8px; padding: 8px; margin-bottom: 6px; }
.snippet-text { font-size: 12px; color: var(--text); margin-bottom: 6px; max-height: 60px; overflow: hidden; }
.snippet-actions { display: flex; gap: 6px; }
.snippet-btn { font-size: 11px; padding: 2px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface1); color: var(--text); cursor: pointer; }
.snippet-btn.danger { border-color: var(--error, #ef4444); color: var(--error, #ef4444); }
/* Pomo Interval Customizer (29.5.141) */
.pomo-int-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; }
.pomo-int-input { width: 64px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); font-size: 13px; text-align: center; }
/* Priority Templates (29.5.142) */
.priority-tpl-btn { display: block; width: 100%; text-align: left; font-size: 13px; padding: 5px 8px; margin-bottom: 3px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); cursor: pointer; }
.priority-tpl-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
/* Chat Rating (29.5.143) */
.chat-rating-row { display: flex; gap: 4px; margin-top: 4px; justify-content: flex-end; }
.chat-rate-btn { font-size: 13px; background: none; border: none; cursor: pointer; opacity: 0.4; padding: 0 3px; transition: opacity 0.15s; }
.chat-rate-btn:hover { opacity: 1; }
/* Notes Reading Time (29.5.144) */
/* reuses .notes-wc-badge styles */
/* Daily Quote (29.5.146) */
.daily-quote-text { font-size: 14px; font-style: italic; color: var(--text); line-height: 1.6; padding: 8px 14px; }
.daily-quote-author { font-size: 12px; color: var(--text-dim); padding: 0 14px 10px; text-align: right; }
/* Notes Revision History (29.5.148) */
.notes-rev-item { background: var(--surface2); border-radius: 8px; padding: 8px; margin-bottom: 6px; }
.notes-rev-ts { font-size: 11px; color: var(--primary); font-weight: 600; margin-bottom: 3px; }
.notes-rev-preview { font-size: 12px; color: var(--text-dim); margin-bottom: 5px; }
.notes-rev-restore { font-size: 11px; padding: 2px 10px; border-radius: 8px; border: 1px solid var(--primary); color: var(--primary); background: none; cursor: pointer; }
.notes-rev-restore:hover { background: var(--primary); color: #fff; }
/* Habit Group Filter (29.5.149) */
.habit-group-filter { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px 8px 6px; }
.habit-group-btn { font-size: 11px; padding: 2px 8px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface2); color: var(--text-dim); cursor: pointer; transition: all 0.15s; }
.habit-group-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
/* Distraction Log (29.5.150) */
.dist-day { margin-bottom: 10px; }
.dist-day-label { font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.dist-item { font-size: 13px; color: var(--text); padding: 2px 0; border-bottom: 1px solid var(--border); }
/* Countdown Presets (29.5.151) */
.countdown-presets { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px 8px 6px; }
.countdown-preset-btn { font-size: 11px; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface2); color: var(--text-dim); cursor: pointer; transition: all 0.15s; }
.countdown-preset-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
/* Notes Font Controls (29.5.153) */
.notes-font-controls { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-bottom: 1px solid var(--border); }
.notes-font-btn { font-size: 12px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); cursor: pointer; font-weight: 600; }
/* Energy Reminder (29.5.154) */
.energy-reminder-row { display: flex; gap: 4px; align-items: center; padding: 4px 8px 6px; }
.energy-remind-btn { font-size: 11px; padding: 2px 7px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface2); color: var(--text-dim); cursor: pointer; transition: all 0.15s; }
.energy-remind-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
/* Affirmation Manage (29.5.155) */
.affirmation-manage-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
/* Productivity Heatmap (29.5.156) */
.prod-heatmap { display: flex; gap: 3px; flex-wrap: nowrap; overflow-x: auto; padding: 4px 0; }
.prod-week { display: flex; flex-direction: column; gap: 3px; }
.prod-cell { width: 13px; height: 13px; border-radius: 3px; cursor: pointer; }
/* Quick Links (29.5.157) */
.ql-list { padding: 4px 8px 8px; }
.ql-item { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--border); }
.ql-link { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); text-decoration: none; flex: 1; }
.ql-link:hover { color: var(--primary); }
.ql-favicon { width: 14px; height: 14px; border-radius: 2px; }
.ql-remove { font-size: 12px; color: var(--text-dim); background: none; border: none; cursor: pointer; padding: 0 4px; opacity: 0.4; }
.ql-remove:hover { opacity: 1; color: var(--error, #ef4444); }
/* Word Cloud (29.5.158) */
.word-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; line-height: 1.8; }
.wc-word { color: var(--primary); font-weight: 600; cursor: default; }
/* Mood History (29.5.159) */
.mood-hist-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.mood-hist-date { font-size: 11px; color: var(--text-dim); min-width: 86px; }
.mood-hist-emoji { font-size: 18px; }
.mood-hist-label { font-size: 13px; color: var(--text); }
/* Habit Best Days (29.5.160) */
.habit-best-days { padding: 4px 8px 6px; }
.habit-best-day-badge { font-size: 11px; color: var(--warning); background: rgba(245,158,11,0.1); border-radius: 8px; padding: 2px 8px; display: inline-block; }
/* Notes ToC (29.5.161) */
.notes-toc-list { list-style: none; padding: 0; margin: 0; }
.notes-toc-item { font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 6px; }
.notes-toc-marker { color: var(--primary); font-weight: 700; }
.notes-toc-line { font-size: 10px; color: var(--text-dim); margin-left: auto; }
/* Priority Time Analytics (29.5.162) */
.priority-time-analytics { padding: 4px 8px; }
.prio-time-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 11px; }
.prio-time-stat { color: var(--text-dim); }
.prio-time-accuracy { font-weight: 700; padding: 1px 6px; border-radius: 6px; font-size: 11px; }
.prio-time-accuracy.good { background: rgba(34,197,94,0.12); color: var(--success); }
.prio-time-accuracy.over { background: rgba(239,68,68,0.12); color: var(--error, #ef4444); }
/* Night Mode Auto (29.5.163) */
.night-auto-toggle { font-size: 11px; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface2); color: var(--text-dim); cursor: pointer; transition: all 0.15s; }
.night-auto-toggle.active { background: var(--primary); color: #fff; border-color: var(--primary); }
/* Weekly Review (29.5.164) */
.weekly-review-area { width: 100%; min-height: 200px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 13px; padding: 10px; resize: vertical; }
.weekly-review-actions { display: flex; gap: 8px; margin-top: 8px; }
.weekly-review-btn { font-size: 12px; padding: 4px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); cursor: pointer; transition: background 0.15s; }
.weekly-review-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
/* Habit Predictions (29.5.165) */
.habit-predictions { padding: 4px 8px 6px; }
.habit-pred-row { display: flex; align-items: center; gap: 6px; padding: 3px 0; font-size: 12px; }
.habit-pred-name { flex: 1; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.habit-pred-icon { font-size: 14px; }
.habit-pred-pct { font-weight: 700; color: var(--primary); min-width: 36px; text-align: right; }
/* Chat Export (29.5.166) */
.chat-export-row { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-top: 1px solid var(--border); }
.chat-export-btn { font-size: 11px; padding: 2px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface2); color: var(--text-dim); cursor: pointer; transition: background 0.15s; }
.chat-export-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
/* Widget Order Save (29.5.167) */
.widget-order-save-btn { font-size: 11px; padding: 3px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface2); color: var(--text-dim); cursor: pointer; transition: background 0.15s; margin-right: 6px; }
.widget-order-save-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
/* Pomo Auto-Start (29.5.168) */
.pomo-auto-start-btn { font-size: 11px; padding: 2px 8px; margin: 4px 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface2); color: var(--text-dim); cursor: pointer; transition: all 0.15s; display: block; }
.pomo-auto-start-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
/* Notes MD Preview (29.5.169) */
.notes-md-preview { padding: 10px; min-height: 120px; font-size: 14px; line-height: 1.6; color: var(--text); }
.notes-md-preview h1, .notes-md-preview h2, .notes-md-preview h3 { color: var(--primary); margin: 8px 0 4px; }
.notes-md-preview code { background: var(--surface3); border-radius: 3px; padding: 1px 4px; font-family: monospace; font-size: 13px; }
.notes-md-preview ul { margin: 4px 0 4px 16px; }
/* Habit Streak Freeze (29.5.170) */
.habit-freeze-btn { font-size: 12px; padding: 1px 5px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface2); cursor: pointer; transition: opacity 0.15s; }
.habit-freeze-btn:hover:not(:disabled) { background: rgba(96,165,250,0.15); border-color: #60a5fa; }
/* Layout Presets (29.5.171) */
.layout-preset-row { display: flex; gap: 4px; align-items: center; }
.layout-preset-btn { font-size: 11px; padding: 2px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface2); color: var(--text-dim); cursor: pointer; transition: all 0.15s; }
.layout-preset-btn.active, .layout-preset-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
/* Year Heatmap (29.5.172) */
.yheat-grid { display: flex; gap: 3px; overflow-x: auto; padding: 6px 0; }
.yheat-week { display: flex; flex-direction: column; gap: 2px; }
.yheat-cell { width: 10px; height: 10px; border-radius: 2px; background: var(--surface3); }
.yheat-cell.done { background: var(--primary); }
.yheat-cell.empty { background: transparent; }
.yheat-months { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-dim); margin-bottom: 4px; }
/* Notes Auto-Save Indicator (29.5.173) */
.notes-autosave-badge { font-size: 10px; padding: 1px 6px; border-radius: 6px; display: inline-block; margin: 2px 0; font-weight: 600; }
.notes-autosave-badge.saved { color: var(--success, #22c55e); background: rgba(34,197,94,0.1); }
.notes-autosave-badge.unsaved { color: var(--warning, #f59e0b); background: rgba(245,158,11,0.1); }
/* Completion Time Log (29.5.174) */
.comp-log-day { padding: 6px 0; border-bottom: 1px solid var(--border); }
.comp-log-times { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.comp-log-time { font-size: 11px; padding: 1px 6px; border-radius: 8px; background: var(--surface2); color: var(--text-dim); }
/* Chat Session Counter (29.5.176) */
.chat-session-badge { font-size: 11px; color: var(--text-dim); padding: 2px 8px; background: var(--surface2); border-radius: 8px; border: 1px solid var(--border); }
/* Pomo Music Suggestion (29.5.177) */
.pomo-music-suggest { font-size: 11px; color: var(--text-dim); padding: 4px 8px 2px; }
.pomo-music-desc { color: var(--text-dim); font-weight: 400; }
/* Notes Char Limit (29.5.179) */
.notes-char-limit-badge { font-size: 10px; padding: 1px 6px; border-radius: 6px; display: inline-block; margin: 2px 0; font-weight: 600; }
.notes-char-limit-badge.ok { color: var(--text-dim); background: var(--surface2); }
.notes-char-limit-badge.warn { color: var(--warning, #f59e0b); background: rgba(245,158,11,0.1); }
.notes-char-limit-badge.over { color: var(--error, #ef4444); background: rgba(239,68,68,0.1); }
/* Session Notes (29.5.181) */
.session-note-day { padding: 6px 0; border-bottom: 1px solid var(--border); }
.session-note-item { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; font-size: 13px; }
.session-note-num { font-size: 11px; font-weight: 700; color: var(--primary); min-width: 24px; }
.session-note-time { font-size: 11px; color: var(--text-dim); min-width: 36px; }
.session-note-text { color: var(--text); flex: 1; }
/* Habit Rate Graph (29.5.182) */
.hcg-chart { display: flex; gap: 4px; align-items: flex-end; padding: 8px 0; height: 60px; }
.hcg-col { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; }
.hcg-bar { width: 100%; background: var(--surface3); border-radius: 3px 3px 0 0; min-height: 2px; transition: height 0.3s; }
.hcg-bar.today { background: var(--primary); }
.hcg-label { font-size: 9px; color: var(--text-dim); }
/* Notes Tags (29.5.183) */
.notes-tags-row { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 0 2px; }
.notes-tag { font-size: 11px; padding: 1px 7px; border-radius: 10px; background: rgba(6,182,212,0.12); color: var(--primary); cursor: pointer; font-weight: 600; transition: background 0.15s; }
.notes-tag:hover { background: rgba(6,182,212,0.25); }
/* Topbar Theme Toggle (29.5.185) */
.topbar-theme-btn { font-size: 16px; background: none; border: none; cursor: pointer; padding: 2px 6px; border-radius: 6px; transition: background 0.15s; }
.topbar-theme-btn:hover { background: var(--surface2); }
/* Focus One Widget (29.5.186) */
.focus-one-widget { border-left: 3px solid var(--primary); }
.focus-one-body { padding: 8px 12px 12px; }
.focus-one-text { font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer; line-height: 1.4; }
.focus-one-text:hover { color: var(--primary); }
.focus-one-set-btn { font-size: 13px; padding: 6px 12px; border-radius: 8px; border: 1px dashed var(--border); background: none; color: var(--text-dim); cursor: pointer; transition: all 0.15s; width: 100%; }
.focus-one-set-btn:hover { border-color: var(--primary); color: var(--primary); }
/* Notes Collapsible (29.5.188) */
.notes-collapse-header { cursor: pointer; user-select: none; }
.notes-collapse-header:hover { color: var(--primary); }
.notes-collapsible.collapsed .notes-collapse-content { display: none; }
/* Priority Quick Win (29.5.189) */
.priority-qw-btn { font-size: 12px; padding: 1px 4px; background: none; border: none; cursor: pointer; opacity: 0.3; transition: opacity 0.15s; }
.priority-qw-btn.active { opacity: 1; color: var(--warning, #f59e0b); }
.priority-qw-btn:hover { opacity: 0.8; }
/* Long Break Suggestions (29.5.190) */
.long-break-list { padding: 8px; background: var(--surface2); border-radius: 8px; margin: 6px 8px; }
.long-break-item { font-size: 12px; color: var(--text); padding: 4px 0; border-bottom: 1px solid var(--border); }
.long-break-item:last-child { border-bottom: none; }
/* Water History (29.5.191) */
.hcg-bar.goal-met { background: var(--success, #22c55e); }
/* Notes Word Goal (29.5.192) */
.notes-word-goal-wrap { padding: 4px 0 2px; }
/* Habit All-Time Streaks (29.5.193) */
.habit-alltime-wrap { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 4px; }
.habit-alltime-row { display: flex; align-items: center; justify-content: space-between; padding: 3px 8px; }
.habit-alltime-name { font-size: 12px; color: var(--text-dim); flex: 1; }
.habit-alltime-badge { font-size: 11px; color: var(--warning, #f59e0b); font-weight: 700; }
/* Priority Archive (29.5.194) */
.archive-day { padding: 6px 0; border-bottom: 1px solid var(--border); }
/* Mood-Productivity Correlation (29.5.195) */
.corr-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.corr-date { font-size: 11px; color: var(--text-dim); min-width: 40px; }
.corr-bars { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.corr-bar { height: 6px; border-radius: 3px; min-width: 2px; }
.mood-bar { background: var(--primary); }
.pomo-bar { background: var(--success, #22c55e); }
/* Mini Weather Widget (29.5.196) */
.mini-weather-widget { min-height: 60px; }
.mini-weather-body { display: flex; align-items: center; gap: 12px; padding: 8px 12px 12px; }
.mini-weather-icon { font-size: 28px; }
.mini-weather-temp { font-size: 22px; font-weight: 700; color: var(--text); }
.mini-weather-wind { font-size: 12px; color: var(--text-dim); }
/* Text Statistics (29.5.198) */
.text-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.text-stat { background: var(--surface2); border-radius: 8px; padding: 10px; text-align: center; }
.text-stat-num { font-size: 20px; font-weight: 700; color: var(--primary); }
.text-stat-lbl { font-size: 10px; color: var(--text-dim); margin-top: 2px; }
/* Voice Note Button (29.5.199) */
.priority-voice-btn { font-size: 12px; padding: 1px 4px; background: none; border: none; cursor: pointer; opacity: 0.35; transition: opacity 0.15s; }
.priority-voice-btn:hover { opacity: 1; color: var(--error, #ef4444); }
/* Evening Check-In (29.5.200) */
.evening-q { margin-bottom: 12px; }
.evening-q label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.evening-input { width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 13px; padding: 8px; resize: none; box-sizing: border-box; font-family: inherit; }
.evening-input:focus { outline: none; border-color: var(--primary); }
/* Morning Intentions (29.5.201) */
.mint-list { display: flex; flex-direction: column; gap: 6px; padding: 6px 0; }
.mint-item { display: flex; align-items: center; gap: 8px; }
.mint-item.mint-done .mint-input { text-decoration: line-through; opacity: 0.5; }
.mint-check { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--primary); cursor: pointer; }
.mint-input { flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 12px; padding: 5px 8px; outline: none; }
.mint-input:focus { border-color: var(--primary); }
.mint-count { font-size: 11px; color: var(--text-muted); background: var(--surface2); border-radius: 10px; padding: 1px 8px; }
.mint-congrats { text-align: center; font-size: 12px; color: var(--primary); padding: 6px 0 2px; }
/* Breathing Exercise (29.5.202) */
.breath-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 10001; display: flex; align-items: center; justify-content: center; }
.breath-box { text-align: center; }
.breath-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 24px; }
.breath-circle { width: 140px; height: 140px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto 16px; border: 3px solid var(--primary); transition: transform 0.8s ease, background 0.8s ease; }
.breath-inhale { background: rgba(0,188,212,0.15); transform: scale(1.15); }
.breath-hold { background: rgba(156,39,176,0.15); transform: scale(1.15); }
.breath-exhale { background: rgba(76,175,80,0.15); transform: scale(0.9); }
.breath-phase { font-size: 16px; font-weight: 700; color: var(--text); }
.breath-cnt { font-size: 36px; font-weight: 900; color: var(--primary); }
.breath-progress { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.breath-skip { background: none; border: 1px solid var(--border); color: var(--text-muted); border-radius: 6px; padding: 6px 16px; cursor: pointer; font-size: 12px; }
.breath-skip:hover { border-color: var(--text); color: var(--text); }
/* Habit Color Tags (29.5.204) */
.habit-color-grid { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 0; }
.habit-color-swatch { width: 36px; height: 36px; border-radius: 50%; cursor: pointer; transition: transform 0.15s; flex-shrink: 0; }
.habit-color-swatch:hover { transform: scale(1.2); }
/* Eisenhower Matrix (29.5.205) */
.eisen-axis { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 8px; margin-bottom: 4px; font-size: 12px; }
.eisen-col-label { text-align: center; font-weight: 600; color: var(--text); }
.eisen-dim { color: var(--text-muted) !important; }
.eisen-grid { display: grid; grid-template-columns: 80px 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; min-height: 240px; }
.eisen-row-label { display: flex; align-items: center; justify-content: flex-end; font-size: 11px; font-weight: 600; color: var(--text); padding-right: 8px; text-align: right; }
.eisen-quadrant { background: var(--surface2); border-radius: 10px; padding: 10px; overflow-y: auto; max-height: 140px; }
.eisen-q-label { font-size: 11px; font-weight: 700; margin-bottom: 6px; }
.eisen-item { font-size: 12px; color: var(--text); padding: 3px 0; border-bottom: 1px solid var(--border); }
.eisen-item:last-child { border-bottom: none; }
.eisen-empty { font-size: 11px; color: var(--text-muted); font-style: italic; }
.eisen-tip { font-size: 11px; color: var(--text-muted); margin-top: 8px; }
/* Widget Pin (29.5.206) */
.widget-pin-btn { background: none; border: none; cursor: pointer; font-size: 12px; padding: 0 4px; opacity: 0.4; transition: opacity 0.15s; margin-right: 2px; }
.widget-pin-btn:hover { opacity: 1; }
/* Habit Color Grid (29.5.204 supplement) */
.notes-tool-btn.active { background: var(--primary) !important; color: #000 !important; }
/* Priority Estimate (29.5.209) */
.priority-estimate-btn { font-size: 11px; padding: 1px 5px; background: none; border: none; cursor: pointer; opacity: 0.45; transition: opacity 0.15s; color: var(--text); white-space: nowrap; }
.priority-estimate-btn:hover { opacity: 1; color: var(--primary); }
.priority-estimate-summary { font-size: 12px; color: var(--text-muted); padding: 4px 6px; background: var(--surface2); border-radius: 6px; margin-bottom: 8px; }
/* Day Rating Widget (29.5.210) */
.day-stars { display: flex; gap: 6px; padding: 8px 0; }
.day-star-btn { background: none; border: none; cursor: pointer; font-size: 22px; line-height: 1; padding: 0; opacity: 0.4; transition: opacity 0.15s, transform 0.15s; }
.day-star-btn:hover { opacity: 1; transform: scale(1.2); }
.day-star-btn.filled { opacity: 1; }
.day-rating-note { font-size: 12px; color: var(--text-muted); font-style: italic; padding: 0 2px 6px; }
.day-rating-history { display: flex; gap: 4px; padding: 4px 0; }
.day-hist-dot { width: 20px; height: 20px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
/* Word Cloud (29.5.211) */
.wc-cloud { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding: 8px 0; line-height: 1.6; }
.wc-word { cursor: default; transition: opacity 0.15s; }
.wc-word:hover { opacity: 1 !important; }
/* Habit Leaderboard (29.5.212) */
.habit-lb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.habit-lb-table th { text-align: left; color: var(--text-muted); font-weight: 600; padding: 4px 8px; border-bottom: 1px solid var(--border); }
.habit-lb-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); color: var(--text); }
/* Priority Heatmap (29.5.213) */
.pheat-grid { display: flex; gap: 8px; justify-content: center; padding: 8px 0; }
.pheat-cell { width: 60px; height: 60px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: default; }
.pheat-day { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.7); }
.pheat-cnt { font-size: 20px; font-weight: 900; color: #fff; }
/* Pomo Label (29.5.214) */
.pomo-label-display { font-size: 11px; color: var(--primary); background: rgba(0,188,212,0.12); border-radius: 8px; padding: 2px 8px; cursor: pointer; margin-left: 4px; transition: background 0.15s; }
.pomo-label-display:hover { background: rgba(0,188,212,0.25); }
.pomo-label-grid { display: flex; flex-wrap: wrap; gap: 8px; }
/* Notes Revision History (29.5.216) */
.notes-rev-row { border-bottom: 1px solid var(--border); padding: 10px 0; }
.notes-rev-row:last-child { border-bottom: none; }
.notes-rev-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.notes-rev-len { font-size: 11px; }
.notes-rev-preview { font-size: 12px; color: var(--text); background: var(--surface2); border-radius: 6px; padding: 6px 8px; margin-bottom: 6px; white-space: pre-wrap; max-height: 60px; overflow: hidden; }
/* Priority Urgency (29.5.218) */
.priority-urgency-dot { cursor: pointer; font-size: 14px; margin-right: 2px; opacity: 0.5; transition: opacity 0.15s; }
.priority-urgency-dot:hover { opacity: 1; }
.priority-urgency-high { opacity: 1; }
.priority-urgency-medium { opacity: 1; }
.priority-urgency-low { opacity: 1; }
/* Pomo Focus Score (29.5.219) */
.pomo-focus-score { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; margin-left: 4px; cursor: help; }
.focus-score-val { color: var(--text-muted); }
.focus-score-grade { font-weight: 900; font-size: 13px; }
.grade-S { color: #ffd700; }
.grade-A { color: #4caf50; }
.grade-B { color: var(--primary); }
.grade-C { color: #ff9800; }
.grade-D { color: #9e9e9e; }
/* Compact Mode (29.5.220) */
#dashboard-widgets.dash-compact .widget-card { padding: 10px 12px; }
#dashboard-widgets.dash-compact .widget-header { font-size: 12px; margin-bottom: 6px; }
#dashboard-widgets.dash-compact .habit-item { padding: 5px 0; font-size: 12px; }
#dashboard-widgets.dash-compact .priority-item { padding: 4px 0; font-size: 12px; }
#dashboard-widgets.dash-compact { gap: 10px; }
/* Notes Reading Mode (29.5.221) */
.notes-reading-overlay { position: fixed; inset: 0; background: var(--bg, #0d0d0d); z-index: 10002; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; display: flex; flex-direction: column; }
.notes-reading-overlay.active { opacity: 1; visibility: visible; }
.notes-reading-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.notes-reading-title { font-size: 15px; font-weight: 600; color: var(--text); }
.notes-reading-close { background: none; border: 1px solid var(--border); color: var(--text-muted); border-radius: 6px; padding: 6px 14px; cursor: pointer; font-size: 13px; }
.notes-reading-close:hover { border-color: var(--text); color: var(--text); }
.notes-reading-content { flex: 1; overflow-y: auto; padding: 32px; max-width: 720px; margin: 0 auto; width: 100%; font-size: 16px; line-height: 1.8; color: var(--text); }
/* Priority AI Suggester (29.5.223) */
.prio-suggest-card { background: var(--surface2); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.prio-suggest-header { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.prio-suggest-reason { font-size: 11px; color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.prio-suggest-list { margin: 0; padding-left: 18px; }
.prio-suggest-list li { font-size: 12px; color: var(--text); padding: 2px 0; }
/* Focus Playlist (29.5.224) */
.playlist-grid { display: flex; flex-direction: column; gap: 8px; }
.playlist-btn { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); text-decoration: none; font-size: 13px; transition: background 0.15s; }
.playlist-btn:hover { background: var(--surface3); border-color: var(--primary); }
/* Time Blocks (29.5.225) */
.tblock-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--surface2); border-radius: 6px; margin-bottom: 4px; }
.tblock-time { font-size: 11px; color: var(--text-muted); font-weight: 600; min-width: 50px; }
.tblock-label { flex: 1; font-size: 13px; color: var(--text); }
.tblock-rm { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 14px; padding: 0 2px; }
.tblock-rm:hover { color: var(--error, #ef4444); }
.tblock-empty { font-size: 12px; color: var(--text-muted); padding: 8px 0; text-align: center; }
/* Quick Note Templates (29.5.226) */
.qnt-popup { position: absolute; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); z-index: 9999; padding: 8px; min-width: 200px; }
.qnt-header { font-size: 11px; font-weight: 600; color: var(--text-muted); padding: 2px 6px 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.qnt-btn { display: block; width: 100%; text-align: left; background: none; border: none; color: var(--text); font-size: 13px; padding: 7px 10px; cursor: pointer; border-radius: 6px; transition: background 0.1s; }
.qnt-btn:hover { background: var(--surface3); }
/* Habit Weekly Progress (29.5.227) */
.habit-weekly-progress { padding: 6px 0 2px; }
.hwp-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.hwp-name { font-size: 11px; color: var(--text-muted); min-width: 80px; max-width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hwp-bar-wrap { flex: 1; height: 6px; background: var(--surface3); border-radius: 3px; overflow: hidden; }
.hwp-bar { height: 100%; border-radius: 3px; transition: width 0.3s; }
.hwp-stat { font-size: 11px; color: var(--text-muted); min-width: 30px; text-align: right; }
/* Bulk Tag Editor (29.5.228) */
.bulk-tag-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.bulk-tag-row:last-child { border-bottom: none; }
.bulk-tag-name { font-size: 13px; color: var(--text); flex: 1; margin-right: 10px; }
.bulk-tag-btns { display: flex; gap: 4px; }
.bulk-tag-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 7px; cursor: pointer; font-size: 14px; transition: border-color 0.1s; }
.bulk-tag-btn:hover { border-color: var(--primary); }
.bulk-tag-btn.active { border-color: var(--primary); background: rgba(0,188,212,0.15); }
/* Pomo Daily Goal Bar (29.5.229) */
.pomo-daily-goal-bar { padding: 6px 0 2px; }
.pomo-goal-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.pomo-goal-track { height: 6px; background: var(--surface3); border-radius: 3px; overflow: hidden; }
.pomo-goal-fill { height: 100%; border-radius: 3px; transition: width 0.4s; }
/* Dashboard Greeting (29.5.230) */
.dashboard-greeting-widget { background: linear-gradient(135deg, var(--surface2), var(--surface)); }
.dash-greeting-text { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.dash-greeting-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.dash-greeting-stats { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); }
/* Priority Smart Filters (29.5.233) */
.priority-filters-row { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.priority-filter-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; color: var(--text-muted); font-size: 11px; padding: 3px 10px; cursor: pointer; transition: all 0.15s; }
.priority-filter-btn:hover { border-color: var(--primary); color: var(--text); }
.priority-filter-btn.active { background: var(--primary); border-color: var(--primary); color: #000; font-weight: 600; }
/* Pomo Interruption Log (29.5.234) */
.inter-summary { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.inter-entry { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.inter-entry:last-child { border-bottom: none; }
.inter-time { font-size: 11px; color: var(--text-muted); min-width: 36px; }
.inter-note { font-size: 13px; color: var(--text); }
.inter-empty { font-size: 13px; color: var(--text-muted); font-style: italic; padding: 8px 0; }
/* Widget Collapse (29.5.235) */
.widget-collapsed > *:not(.widget-header) { display: none !important; }
.widget-collapsed { overflow: hidden; }
.widget-collapse-btn { font-size: 10px !important; }
/* Notes Table Generator (29.5.236) */
.tbl-preview { background: var(--surface2); border-radius: 6px; padding: 8px; font-family: monospace; font-size: 11px; color: var(--text-muted); white-space: pre; max-height: 80px; overflow: auto; margin: 8px 0; }
/* Batch Complete (29.5.238) */
.batch-selall { margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text); }
.batch-item { padding: 6px 0; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--border); }
.batch-item:last-child { border-bottom: none; }
.batch-item label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
/* Live Clock (29.5.240) */
.live-clock-card { text-align: center; padding: 16px 12px; }
.clock-time { font-size: 32px; font-weight: 900; color: var(--primary); font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.clock-date { font-size: 12px; color: var(--text-muted); margin: 4px 0 2px; }
.clock-meta { font-size: 11px; color: var(--text-muted); opacity: 0.6; }
/* Notes Word Highlighter / Analysis (29.5.241) */
.notes-highlight-bar { display: flex; gap: 6px; align-items: center; padding: 4px 0; }
.notes-highlight-input { flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: 4px 8px; font-size: 12px; }
.notes-highlight-clear { font-size: 10px; padding: 3px 8px; }
mark.notes-hl { background: rgba(255,235,59,0.35); color: inherit; border-radius: 2px; }
/* Priority Calendar Block View (29.5.243) */
.pcal-wrap { display: flex; gap: 16px; }
.pcal-slots { flex: 1; min-width: 0; max-height: 340px; overflow-y: auto; }
.pcal-slot { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 4px; font-size: 12px; border-bottom: 1px solid var(--border); cursor: default; }
.pcal-slot.current-hour { background: var(--primary-dim); border-color: var(--primary); }
.pcal-slot-time { min-width: 42px; color: var(--text-muted); font-size: 11px; }
.pcal-slot-label { color: var(--text); }
.pcal-prios { min-width: 140px; }
.pcal-prio-item { font-size: 12px; color: var(--text); padding: 3px 0; border-bottom: 1px solid var(--border); }
.pcal-prio-item:last-child { border-bottom: none; }
/* Pomodoro Session Stats Modal (29.5.244) */
.pomo-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.pomo-stat-card { background: var(--surface2); border-radius: 8px; padding: 10px; text-align: center; }
.pomo-stat-card .val { font-size: 22px; font-weight: 800; color: var(--primary); }
.pomo-stat-card .lbl { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.pomo-hist-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.pomo-hist-table th { text-align: left; padding: 4px 6px; color: var(--text-muted); border-bottom: 1px solid var(--border); font-weight: 500; }
.pomo-hist-table td { padding: 4px 6px; border-bottom: 1px solid var(--border); color: var(--text); }
.pomo-hist-bar { height: 6px; background: var(--primary); border-radius: 3px; min-width: 4px; display: inline-block; }
/* Pinned Snippets Panel (29.5.246) */
.note-pins-panel { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; max-height: 120px; overflow-y: auto; }
.pin-item { padding: 4px 0; border-bottom: 1px solid var(--border); }
.pin-item:last-child { border-bottom: none; }
.pin-text { font-size: 11px; color: var(--text); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pin-text:hover { color: var(--primary); }
.pin-meta { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--text-muted); }
.pin-rm-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 12px; padding: 0 2px; }
.pin-rm-btn:hover { color: var(--error); }
.pin-empty { font-size: 11px; color: var(--text-muted); font-style: italic; }
/* Priority Dependencies (29.5.248) */
.dep-item { padding: 5px 0; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--border); }
.dep-item:last-child { border-bottom: none; }
.dep-item label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.priority-blocked { opacity: 0.5; }
.priority-blocked::before { content: '🔒 '; font-size: 10px; }
/* Dashboard Layout Presets (29.5.250) */
.dash-preset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dash-preset-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 13px; padding: 10px 6px; cursor: pointer; transition: all 0.15s; text-align: center; }
.dash-preset-btn:hover { border-color: var(--primary); color: var(--primary); }
.dash-preset-btn.active { background: var(--primary); border-color: var(--primary); color: #000; font-weight: 700; }
/* Notes Focus Timer (29.5.251) */
#notes-focus-display { font-variant-numeric: tabular-nums; font-weight: 700; }
/* Habit Monthly Calendar (29.5.252) */
.hmcal-weekdays { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; margin-bottom: 4px; text-align: center; font-size: 10px; color: var(--text-muted); font-weight: 600; }
.hmcal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.hmcal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 11px; background: var(--surface2); color: var(--text-muted); }
.hmcal-day.done { background: var(--primary); color: #000; font-weight: 700; }
.hmcal-day.today { outline: 2px solid var(--primary); color: var(--primary); }
.hmcal-day.done.today { outline: 2px solid var(--primary-glow, var(--primary)); color: #000; }
.hmcal-empty { aspect-ratio: 1; }
/* Pomodoro Custom Profiles (29.5.254) */
.pomo-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pomo-profile-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 12px; padding: 10px 8px; cursor: pointer; transition: all 0.15s; text-align: left; line-height: 1.4; }
.pomo-profile-btn:hover { border-color: var(--primary); }
.pomo-profile-btn.active { border-color: var(--primary); background: var(--primary-dim); }
/* Notes Tags Bar (29.5.256) */
.note-tags-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 0 6px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.note-tag { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; color: var(--primary); font-size: 11px; padding: 2px 8px; display: flex; align-items: center; gap: 4px; }
.note-tag-rm { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 11px; padding: 0; line-height: 1; }
.note-tag-add { background: none; border: 1px dashed var(--border); border-radius: 12px; color: var(--text-muted); font-size: 11px; padding: 2px 8px; cursor: pointer; }
.note-tag-add:hover { border-color: var(--primary); color: var(--primary); }
/* Priority Due Dates (29.5.258) */
.due-badge { font-size: 10px; padding: 1px 6px; border-radius: 10px; cursor: pointer; border: 1px solid var(--border); background: var(--surface2); color: var(--text-muted); }
.due-badge.overdue { border-color: var(--error); background: rgba(244,67,54,0.12); color: var(--error); font-weight: 700; }
.due-badge.today { border-color: var(--warning,#ff9800); background: rgba(255,152,0,0.12); color: var(--warning,#ff9800); font-weight: 700; }
/* Notes Word Count Goal (29.5.260) */
.notes-wg-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.notes-wg-label { font-size: 11px; color: var(--text-muted); }
.notes-wg-label.done { color: var(--success,#4caf50); font-weight: 700; }
.notes-wg-bar-wrap { height: 3px; background: var(--border); border-radius: 2px; margin-top: 3px; }
.notes-wg-bar { height: 3px; background: var(--primary); border-radius: 2px; transition: width 0.3s; }
.notes-wg-bar.done { background: var(--success,#4caf50); }
/* Habit Weekly Review (29.5.261) */
.wrev-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.wrev-table th { text-align: left; padding: 4px 6px; color: var(--text-muted); border-bottom: 1px solid var(--border); font-weight: 500; }
.wrev-table td { padding: 5px 6px; border-bottom: 1px solid var(--border); }
.wrev-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--border); margin: 0 1px; }
.wrev-dot.done { background: var(--primary); }
/* Recurring Priorities (29.5.262) */
.rec-item { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.rec-item:last-of-type { border-bottom: none; }
.rec-text { flex: 1; font-size: 12px; color: var(--text); }
.rec-freq { font-size: 10px; color: var(--text-muted); background: var(--surface2); border-radius: 8px; padding: 2px 6px; }
.rec-rm { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; padding: 0 2px; }
.rec-rm:hover { color: var(--error); }
/* Notes Multi-Tab (29.5.267) */
.notes-tab-bar { display: flex; gap: 2px; overflow-x: auto; padding: 4px 0 6px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.ntab-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px 6px 0 0; color: var(--text-muted); font-size: 11px; padding: 3px 10px; cursor: pointer; white-space: nowrap; transition: all 0.15s; }
.ntab-btn:hover { color: var(--text); }
.ntab-btn.active { background: var(--primary); border-color: var(--primary); color: #000; font-weight: 700; }
.ntab-rm { margin-left: 4px; font-size: 12px; opacity: 0.6; }
.ntab-rm:hover { opacity: 1; }
.ntab-add { background: none; border: 1px dashed var(--border); border-radius: 6px; color: var(--text-muted); font-size: 11px; padding: 3px 8px; cursor: pointer; }
.ntab-add:hover { border-color: var(--primary); color: var(--primary); }
/* Mini Journal (29.5.269) */
.mini-journal-textarea { width: 100%; height: 80px; background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: 8px; font-size: 13px; resize: vertical; box-sizing: border-box; }
/* Smart Priority Sort (29.5.270) */
.sort-mode-grid { display: flex; flex-direction: column; gap: 6px; }
.sort-mode-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 13px; padding: 8px 12px; cursor: pointer; text-align: left; transition: all 0.15s; }
.sort-mode-btn:hover { border-color: var(--primary); color: var(--primary); }
.sort-mode-btn.active { background: var(--primary); border-color: var(--primary); color: #000; font-weight: 700; }
/* Habit Challenges (29.5.271) */
.chall-item { padding: 8px 0; border-bottom: 1px solid var(--border); }
.chall-item:last-child { border-bottom: none; }
.chall-name { font-size: 13px; color: var(--text); margin-bottom: 5px; }
.chall-bar-wrap { height: 4px; background: var(--border); border-radius: 2px; margin: 4px 0; }
.chall-bar { height: 4px; background: var(--primary); border-radius: 2px; transition: width 0.3s; }
.chall-bar.done { background: var(--success,#4caf50); }
.chall-meta { font-size: 11px; color: var(--text-muted); }
/* Notes Theme (29.5.272) */
.notes-theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.notes-theme-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 13px; padding: 10px 8px; cursor: pointer; transition: all 0.15s; text-align: center; }
.notes-theme-btn:hover { border-color: var(--primary); }
.notes-theme-btn.active { border-color: var(--primary); background: var(--primary-dim); }
/* Pomo Achievement Badges (29.5.274) */
.pomo-ach-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); opacity: 0.4; }
.pomo-ach-item.earned { opacity: 1; }
.pomo-ach-item:last-child { border-bottom: none; }
.pomo-ach-icon { font-size: 22px; min-width: 28px; text-align: center; }
.pomo-ach-name { font-size: 13px; font-weight: 600; color: var(--text); }
.pomo-ach-desc { font-size: 11px; color: var(--text-muted); }
.pomo-ach-status { margin-left: auto; font-size: 16px; }
/* Notes Link Preview (29.5.275) */
#notes-link-preview { padding: 6px 0; }
.notes-link-pill { display: inline-block; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; color: var(--primary); font-size: 11px; padding: 2px 8px; margin: 2px; text-decoration: none; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.notes-link-pill:hover { border-color: var(--primary); text-decoration: underline; }
/* Habit Satisfaction (29.5.276) */
.sat-stars { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.sat-star { background: none; border: none; font-size: 28px; cursor: pointer; transition: transform 0.1s; }
.sat-star:hover { transform: scale(1.2); }
.sat-star.filled { text-shadow: 0 0 8px rgba(255,193,7,0.6); }
/* Priority Subtasks (29.5.277) */
.priority-sub-btn { font-size: 10px; padding: 2px 5px; background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; color: var(--text-muted); cursor: pointer; }
.priority-sub-btn:hover { border-color: var(--primary); color: var(--primary); }
.sub-item { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.sub-item:last-child { border-bottom: none; }
.sub-rm { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; padding: 0 2px; }
.sub-rm:hover { color: var(--error); }
/* Notes Font Size Controls (29.5.279) — button styles inherited from notes-tool-btn */
/* Habit Streak Calendar / GitHub-style (29.5.282) */
.gc-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; }
.gc-cell { aspect-ratio: 1; border-radius: 2px; background: var(--border); cursor: default; }
.gc-cell.gc-done { background: var(--primary); }
.gc-cell.gc-today { outline: 2px solid var(--primary-glow, var(--primary)); }
/* Pomodoro Daily Summary (29.5.284) */
.daily-sum-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.daily-sum-card { background: var(--surface2); border-radius: 8px; padding: 10px; text-align: center; }
.dsv { font-size: 20px; font-weight: 800; color: var(--primary); }
.dsl { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
/* Habit Energy Tracker (29.5.286) */
.energy-row { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.energy-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; font-size: 11px; padding: 4px 8px; cursor: pointer; transition: all 0.15s; color: var(--text-muted); }
.energy-btn.active { background: var(--primary-dim); border-color: var(--primary); color: var(--primary); font-weight: 700; }
.energy-btn:hover { border-color: var(--primary); }
/* Bullet Journal Panel (29.5.287) */
.bj-panel { display: flex; gap: 6px; padding: 4px 0 6px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.bj-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 12px; padding: 3px 8px; cursor: pointer; font-family: monospace; }
.bj-btn:hover { border-color: var(--primary); color: var(--primary); }
/* Dashboard Stats Panel (29.5.290) */
.dstats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 4px 0; }
.dstats-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dstats-val { font-size: 18px; font-weight: 800; color: var(--primary); }
.dstats-lbl { font-size: 10px; color: var(--text-muted); text-align: center; }
/* Notes Distraction-Free Fullscreen (29.5.291) */
.notes-fs-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg); z-index: 9990; display: flex; flex-direction: column; padding: 24px; box-sizing: border-box; }
.notes-fs-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.notes-fs-ta { flex: 1; width: 100%; background: var(--surface); border: none; border-radius: 8px; color: var(--text); font-size: 16px; line-height: 1.8; padding: 20px; resize: none; outline: none; box-sizing: border-box; }
.notes-fs-ta:focus { outline: none; box-shadow: none; }
/* Focus Queue (29.5.293) */
.fq-next { font-size: 14px; font-weight: 700; color: var(--primary); padding: 8px 0; border-bottom: 1px solid var(--border); }
.fq-item { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); padding: 4px 0; border-bottom: 1px solid var(--border); }
.fq-rm { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 12px; padding: 0 2px; }
.fq-rm:hover { color: var(--error); }
/* Notes Goals Widget (29.5.295) */
.ng-item { padding: 4px 0; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--border); }
.ng-item:last-of-type { border-bottom: none; }
.ng-item label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ng-text.done { text-decoration: line-through; color: var(--text-muted); }

/* Habit Best Time Analysis (29.5.296) */
.best-time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 12px 0; }
.best-time-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px; text-align: center; }
.best-time-icon { font-size: 28px; margin-bottom: 6px; }
.best-time-rate { font-size: 22px; font-weight: 700; color: var(--primary); }
.best-time-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Priority Completion Celebrations (29.5.297) */
.celebration-toast { font-size: 16px; font-weight: 600; }

/* Notes Templates Library (29.5.298) */
.ntl-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ntl-cat-btn { padding: 3px 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 12px; cursor: pointer; }
.ntl-cat-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.ntl-list { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
.ntl-item { padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; transition: background 0.15s; }
.ntl-item:hover { background: var(--hover); }
.ntl-item-name { font-weight: 600; font-size: 13px; }
.ntl-item-cat { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.ntl-item-preview { font-size: 11px; color: var(--text-muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Pomo Mini Streak Fire (29.5.299) */
.pomo-streak-fire { font-size: 12px; color: var(--warning); font-weight: 600; margin-left: 4px; }

/* Dashboard Perfect Day (29.5.300) */
.perfect-day-toast { font-size: 18px; font-weight: 700; text-align: center; }

/* Habit Completion Heatmap (29.5.301) */
.hh-grid { display: flex; gap: 3px; overflow-x: auto; padding: 8px 0; }
.hh-col { display: flex; flex-direction: column; gap: 3px; }
.hh-cell { width: 12px; height: 12px; border-radius: 2px; background: var(--border); }
.hh-l0 { background: var(--border); }
.hh-l1 { background: #c6efce; }
.hh-l2 { background: #70bf73; }
.hh-l3 { background: #2e9e44; }
.hh-l4 { background: #196f2b; }
.hh-legend { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 11px; color: var(--text-muted); }

/* Priority Bulk Complete (29.5.302) */
.bc-list { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.bc-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.bc-row:hover { background: var(--hover); }

/* Notes Auto-Paragraph (29.5.303) */
/* Button styled via inline style in toolbar */

/* Pomo Distraction Tally (29.5.304) */
/* Button styled via inline style in pomo header */

/* Motivational Quote Widget (29.5.305) */
.mq-text { font-size: 14px; font-style: italic; color: var(--text); line-height: 1.5; margin-bottom: 6px; }
.mq-author { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.mq-next-btn { font-size: 12px; padding: 4px 10px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.mq-next-btn:hover { background: var(--hover); }

/* Habit Rate Graph (29.5.306) */
/* Uses inline table styles — no extra classes needed */

/* Priority Label Colors (29.5.307) */
.priority-label-btn { background: none; border: none; cursor: pointer; font-size: 12px; padding: 2px 4px; }

/* Notes Char Counter (29.5.308) */
#notes-char-counter { font-size: 11px; color: var(--text-muted); margin-left: 4px; cursor: pointer; }

/* Pomo Session Label (29.5.309) */
#pomo-label-display { font-size: 11px; color: var(--text-muted); }

/* Dashboard News Ticker (29.5.310) */
#dashboard-news-ticker { font-size: 12px; color: var(--text-muted); padding: 6px 0; border-top: 1px solid var(--border); margin-top: 6px; transition: opacity 0.4s; }

/* Notes Shortcuts Help (29.5.311) */
/* Uses modal-box styling — no extra classes needed */

/* Habit Completion Prediction (29.5.312) */
/* Uses inline table styles */

/* Priority Time Budget (29.5.313) */
#time-budget-widget { padding: 8px 12px; border-top: 1px solid var(--border); }

/* Pomo Weekly Retro (29.5.314) */
/* Uses dstats-card from 29.5.290 */

/* Analog Clock Widget (29.5.315) */
#analog-clock-canvas { display: block; margin: 8px auto 0; }

/* Notes Word Wrap (29.5.316) */
/* Handled via inline styles on textarea */

/* Habit Consistency Report (29.5.317) */
/* Uses existing dstats-card and modal-box */

/* Priority Context Tags (29.5.318) */
.priority-ctx-tag { font-size: 10px; background: var(--primary); color: #fff; padding: 1px 6px; border-radius: 8px; }
.priority-ctx-btn { background: none; border: none; cursor: pointer; font-size: 11px; padding: 2px 4px; }

/* Pomo Ambient Report (29.5.319) */
/* Uses existing modal-box */

/* Quick Settings Panel (29.5.320) */
.qs-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; font-size: 13px; color: var(--text); cursor: pointer; }
.qs-row input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.qs-btn { width: 100%; text-align: left; padding: 6px 0; background: none; border: none; cursor: pointer; font-size: 12px; color: var(--text); border-top: 1px solid var(--border); }
.qs-btn:first-of-type { border-top: none; }
.qs-btn:hover { color: var(--primary); }

/* Notes Insert Menu (29.5.321) */
/* Uses position:absolute inline styled menu */

/* Habit Pair Analysis (29.5.322) */
/* Uses modal-box */

/* Priority Pomo Link (29.5.323) */
/* Uses modal-box */

/* Notes Sentiment Indicator (29.5.324) */
#notes-sentiment { font-size: 16px; cursor: help; margin-left: 4px; }

/* Pomo Goal Tracker (29.5.325) */
#pomo-goal-tracker { padding: 8px 12px; border-top: 1px solid var(--border); }

/* Notes Markdown Checklist (29.5.326) */
/* Button uses existing notes-toolbar-btn */

/* Habit Streak Freeze Manager (29.5.327) */
/* Uses modal-box */

/* Priority Eisenhower Quick Sort (29.5.328) */
/* Uses 2x2 grid inline styles */

/* Notes Highlight Mode (29.5.329) */
#notes-highlight-btn.active { outline: 2px solid var(--primary); }

/* Dashboard Focus Score Widget (29.5.330) */
#focus-score-widget { padding: 4px 0; }

/* Notes Reading Time (29.5.331) */
/* Uses toast notification */

/* Habit Positive Reinforcement (29.5.332) */
/* Uses showToast + triggerMiniConfetti */

/* Priority Time Block Scheduler (29.5.333) */
/* Uses modal-box */

/* Pomo Playlist Integration (29.5.334) */
.pl-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.pl-item:last-of-type { border-bottom: none; }

/* Dashboard Custom Greeting (29.5.335) */
#edit-greeting-btn { font-size: 11px; padding: 1px 5px; border-radius: 3px; border: 1px solid var(--border); background: none; cursor: pointer; }

/* Notes Quick Share (29.5.336) */
/* Button uses notes-toolbar-btn */

/* Habit Self Leaderboard (29.5.337) */
/* Uses dstats-card */

/* Priority Search (29.5.338) */
#priority-search-input { width: 100%; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 12px; }

/* Pomo Daily Challenge (29.5.339) */
#pomo-challenge-widget { padding: 8px 12px; border-top: 1px solid var(--border); }

/* Habit Quick Done Bar (29.5.340) */
#habit-quick-done-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }

/* Notes Last Saved Indicator (29.5.341) */
#notes-save-indicator { font-size: 11px; margin-left: 6px; }

/* Habit Rate Trend (29.5.342) */
/* Uses ASCII bar inline styles */

/* Priority Mini Kanban (29.5.343) */
/* Uses inline flex columns */

/* Pomo Historical Calendar (29.5.344) */
.phcal-cell { aspect-ratio: 1; border-radius: 4px; background: var(--border); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.phcal-empty { background: transparent; }
.phcal-l0 { background: var(--border); }
.phcal-l1 { background: #c6efce; }
.phcal-l2 { background: #70bf73; }
.phcal-l3 { background: #2e9e44; }
.phcal-l4 { background: #196f2b; }
.phcal-today { outline: 2px solid var(--primary); }
.phcal-num { font-size: 10px; color: var(--text); }
.phcal-count { font-size: 9px; color: #fff; font-weight: 700; }

/* XP Level Widget (29.5.345) */
#xp-level-widget { padding: 4px 0; }

/* Notes TOC (29.5.346) */
.ntoc-item { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.ntoc-h1 { font-weight: 700; }
.ntoc-h2 { padding-left: 12px; color: var(--text-muted); }
.ntoc-h3 { padding-left: 24px; color: var(--text-muted); font-size: 12px; }

/* Habit Monthly Targets (29.5.347) */
.hmt-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.hmt-name { flex: 1; font-size: 13px; }
.hmt-status { font-size: 11px; padding: 2px 6px; border-radius: 10px; }
.hmt-on-track { background: #c6efce; color: #196f2b; }
.hmt-behind { background: #fce4e4; color: #c0392b; }

/* Priority Analytics Summary (29.5.348) */
.pas-kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.pas-kpi { background: var(--surface); border-radius: 8px; padding: 10px; text-align: center; }
.pas-kpi-val { font-size: 20px; font-weight: 700; color: var(--primary); }
.pas-kpi-lbl { font-size: 11px; color: var(--text-muted); }

/* Pomo Streak Calendar (29.5.349) */
.psc-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.psc-cell { aspect-ratio: 1; border-radius: 3px; background: var(--border); }
.gc-done { background: #c6efce; }
.gc-done-mid { background: #70bf73; }
.gc-done-high { background: #196f2b; }
.psc-today { outline: 2px solid var(--primary); }

/* End of Day Review (29.5.350) */
.eod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.eod-stat { background: var(--surface); border-radius: 8px; padding: 10px; text-align: center; }
.eod-stat-val { font-size: 22px; font-weight: 700; color: var(--primary); }
.eod-stat-lbl { font-size: 11px; color: var(--text-muted); }
.eod-grade { font-size: 36px; font-weight: 900; text-align: center; margin: 8px 0; }
#eod-reflection { width: 100%; min-height: 80px; resize: vertical; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 8px; font-family: inherit; font-size: 13px; box-sizing: border-box; }

/* Notes Pinned Lines (29.5.351) */
.pinned-line-item { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.pinned-line-text { flex: 1; font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pinned-line-item button { background: none; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; font-size: 11px; padding: 2px 5px; color: var(--text-muted); }
.pinned-line-item button:hover { color: var(--primary); border-color: var(--primary); }

/* Habit Chain Builder (29.5.352) */
.hchain-container { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 40px; padding: 8px; background: var(--surface); border-radius: 8px; border: 1px solid var(--border); }
.hchain-step { display: flex; align-items: center; gap: 4px; }
.hchain-arrow { color: var(--primary); font-size: 14px; }
.hchain-name { background: var(--primary); color: #fff; border-radius: 12px; padding: 3px 10px; font-size: 12px; }
.hchain-step button { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 11px; }
.hchain-add-btn { font-size: 12px; padding: 4px 10px; }

/* Priority Weekly Summary (29.5.353) — uses inline styles */

/* Pomo Pause Log (29.5.354) — uses inline table */

/* Daily Affirmation Widget (29.5.355) */
#daily-affirmation-widget { background: linear-gradient(135deg, var(--surface), var(--border)); }
#daily-affirmation-text { font-family: Georgia, serif; }

/* Notes Version History (29.5.356) */
.nvh-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.nvh-meta { flex: 1; overflow: hidden; }
.nvh-ts { font-size: 11px; color: var(--text-muted); display: block; }
.nvh-preview { font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

/* Habit Best Streak Board (29.5.357) — uses inline table */

/* Priority Done Sound (29.5.358) — no CSS needed */

/* Pomo Theme Picker (29.5.359) */
.pomo-theme-btn { display: flex; align-items: center; gap: 6px; width: 100%; padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--text); }
.pomo-theme-btn:hover, .pomo-theme-btn.active { border-color: var(--primary); }
.pomo-theme-swatch { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }

/* Mini Weather Widget (29.5.360) */
.mwf-current { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mwf-main-temp { font-size: 22px; font-weight: 700; color: var(--primary); }
.mwf-forecast { display: flex; gap: 8px; }
.mwf-day { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; background: var(--surface); border-radius: 6px; padding: 6px 4px; }
.mwf-day-name { font-size: 10px; color: var(--text-muted); }
.mwf-temp { font-size: 12px; font-weight: 600; color: var(--primary); }

/* Notes Focus Timer (29.5.361) */
#notes-focus-btn { font-variant-numeric: tabular-nums; }
#notes-focus-timer { font-family: monospace; font-size: 12px; }

/* Habit Monthly Summary (29.5.362) — uses inline table */

/* Priority Impact Score (29.5.363) — uses inline table */

/* Pomo Focus Radio (29.5.364) */
.pomo-radio-btn { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--text); font-size: 13px; transition: border-color 0.15s; }
.pomo-radio-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Weekly Productivity Heatmap (29.5.365) */
.phm-row { display: flex; gap: 6px; justify-content: space-around; }
.phm-col { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.phm-cell { width: 100%; aspect-ratio: 1; border-radius: 5px; }
.phm-label { font-size: 10px; color: var(--text-muted); }
.phm-l0 { background: var(--border); }
.phm-l1 { background: #ffccbc; }
.phm-l2 { background: #ff8a65; }
.phm-l3 { background: #f4511e; }
.phm-l4 { background: #bf360c; }

/* Notes Search Filter (29.5.366) */
#notes-search-input:focus { border-color: var(--primary); }

/* Habit Commitment Pledge (29.5.367) — uses modal */

/* Priority Notes per item (29.5.368) */
.priority-note-btn { background: none; border: none; cursor: pointer; font-size: 13px; padding: 2px 3px; opacity: 0.6; }
.priority-note-btn:hover { opacity: 1; }

/* Pomo Break Suggestions (29.5.369) — uses modal */

/* System Health Widget (29.5.370) */
.sh-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.sh-dot { font-size: 12px; }
.sh-name { flex: 1; font-size: 12px; color: var(--text); }
.sh-detail { font-size: 11px; }

/* Notes Idea Capture Mode (29.5.371) */
#notes-idea-btn.active { background: var(--primary); color: #fff; }

/* Habit Difficulty Rating (29.5.372) */
.hd-btn { width: 100%; padding: 9px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--text); text-align: left; transition: border-color 0.15s; }
.hd-btn:hover, .hd-btn.active { border-color: var(--primary); color: var(--primary); }

/* Priority Subtask Timer (29.5.373) */
.priority-timer-btn { background: none; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; font-size: 12px; padding: 2px 5px; color: var(--text-muted); white-space: nowrap; }
.priority-timer-btn.running { border-color: var(--primary); color: var(--primary); font-family: monospace; }
.priority-timer-btn:hover { border-color: var(--primary); }

/* Pomo Sound Themes (29.5.374) — reuses .pomo-theme-btn */

/* Birthday Countdown (29.5.375) */
#birthday-countdown-widget { text-align: center; }

/* Notes Section Folding (29.5.376) */
.notes-fold-preview { width: 100%; min-height: 200px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.8; color: var(--text); white-space: pre-wrap; overflow-y: auto; font-family: monospace; }
.fold-heading { display: block; font-weight: 700; cursor: pointer; color: var(--primary); }
.fold-heading:hover { text-decoration: underline; }
.fold-ellipsis { display: block; color: var(--text-muted); font-style: italic; font-size: 11px; }

/* Habit Notes (29.5.377) — uses modal */

/* Priority Recurrence (29.5.378) */
.priority-recur-badge { font-size: 12px; }
.priority-recur-btn { background: none; border: none; cursor: pointer; font-size: 12px; padding: 2px 3px; opacity: 0.6; }
.priority-recur-btn:hover { opacity: 1; }

/* Pomo Mood After Session (29.5.379) — uses modal */

/* Countdown Dates Widget (29.5.380) */
.cd-row { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.cd-name { flex: 1; font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-days { font-size: 13px; font-weight: 700; min-width: 32px; text-align: right; }

/* Notes TOC Sidebar (29.5.381) */
.notes-toc-sidebar { position: absolute; right: 0; top: 0; width: 180px; background: var(--bg); border-left: 1px solid var(--border); border-radius: 0 8px 8px 0; padding: 8px; z-index: 10; max-height: 300px; overflow-y: auto; }
.ntocs-header { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.ntocs-item { padding: 3px 0; font-size: 12px; cursor: pointer; color: var(--text-muted); }
.ntocs-item:hover { color: var(--primary); }
.ntocs-h1 { font-weight: 700; color: var(--text); }
.ntocs-h2 { padding-left: 8px; }
.ntocs-h3 { padding-left: 16px; font-size: 11px; }

/* Habit Badge Board (29.5.382) — uses inline table */

/* Priority Drag Reorder (29.5.383) — uses draggable attribute */

/* Pomo Session Summary (29.5.384) */
.pomo-label-pill { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 2px 8px; font-size: 11px; margin-right: 4px; }

/* Quick Links Widget (29.5.385) */
.ql-item { display: flex; align-items: center; gap: 4px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.ql-link { display: flex; align-items: center; gap: 6px; flex: 1; text-decoration: none; color: var(--text); font-size: 12px; overflow: hidden; }
.ql-link:hover { color: var(--primary); }
.ql-favicon { font-size: 14px; }
.ql-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ql-remove { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 11px; padding: 2px; }
.ql-remove:hover { color: var(--error); }

/* Notes Spell Check (29.5.386) */
.spell-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.spell-wrong { color: var(--error); font-size: 13px; text-decoration: line-through; min-width: 100px; }
.spell-correct { color: var(--success); font-size: 13px; flex: 1; }

/* Habit Year Calendar (29.5.387) */
.hyc-grid { display: grid; grid-template-columns: repeat(52, 1fr); gap: 2px; }
.hyc-cell { aspect-ratio: 1; border-radius: 2px; }
.hyc-empty { background: var(--border); }
.hyc-done { background: var(--primary); }
.hyc-today { outline: 2px solid var(--warning); }

/* Priority Focus Mode (29.5.388) — uses modal */

/* Pomo Accountability (29.5.389) — uses widget */

/* Last 7 Days Stats (29.5.390) */
.l7d-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.l7d-today { background: rgba(var(--primary-rgb,79,70,229),0.05); border-radius: 4px; }
.l7d-day { font-size: 11px; color: var(--text-muted); width: 30px; flex-shrink: 0; }
.l7d-pomo { flex: 1; font-size: 12px; }
.l7d-habits { font-size: 11px; color: var(--text-muted); min-width: 55px; text-align: right; }

/* Notes Auto-Save (29.5.391) */
#notes-autosave-btn.active { background: var(--primary); color: #fff; }

/* Habit Progress Rings (29.5.392) */
.hpr-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.hpr-info { flex: 1; }
.hpr-name { font-size: 13px; font-weight: 600; color: var(--text); }
.hpr-stat { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.hpr-today { font-size: 11px; margin-top: 2px; }

/* Batch Priority Setter (29.5.393) */
.bps-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.bps-text { flex: 1; font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bps-select { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 4px; padding: 3px 6px; font-size: 12px; }

/* Long Break Activity (29.5.394) — uses modal */

/* Energy Level Widget (29.5.395) */
.energy-btns { display: flex; gap: 6px; justify-content: center; }
.energy-btn { width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer; font-size: 16px; font-weight: 700; color: #fff; transition: transform 0.1s; }
.energy-btn:hover { transform: scale(1.15); }

/* 29.5.396 Notes Tag Cloud */
.notes-tag-chip { display:inline-block; background:var(--primary); color:#fff; border-radius:12px; padding:3px 10px; font-size:12px; margin:3px; cursor:pointer; }
.notes-tag-chip:hover { opacity:0.8; }
/* 29.5.397 Habit Weekly Comparison */
.hwc-row { display:grid; grid-template-columns:1fr 60px 60px 40px; gap:8px; padding:6px 0; border-bottom:1px solid var(--border); align-items:center; }
.hwc-trend { font-size:16px; text-align:center; }
/* 29.5.398 Priority Deadline Alert */
.deadline-row { display:flex; align-items:center; gap:10px; padding:8px; border-radius:6px; margin:4px 0; }
.deadline-overdue { background:rgba(239,68,68,.15); }
.deadline-soon { background:rgba(234,179,8,.12); }
/* 29.5.399 Pomo Interval Customizer */
.pic-row { display:flex; justify-content:space-between; align-items:center; padding:6px 0; border-bottom:1px solid var(--border); }
.pic-input { width:60px; text-align:center; background:var(--surface); border:1px solid var(--border); color:var(--text); border-radius:4px; padding:4px; }
/* 29.5.400 Daily Quote Widget */
.dq-text { font-style:italic; font-size:13px; color:var(--text); margin-bottom:4px; line-height:1.5; }
.dq-author { font-size:11px; color:var(--text-muted); text-align:right; }

/* 29.5.401 Notes Word Goal Bar */
#notes-word-goal-bar { font-size:11px; }
/* 29.5.402 Habit Pause Manager */
.hpause-row { display:flex; justify-content:space-between; align-items:center; padding:6px 0; border-bottom:1px solid var(--border); }
/* 29.5.403 Notes Section Anchors */
.nsa-item:hover { background:var(--surface); }
/* 29.5.404 Focus Playlist */
.fpl-row { display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-bottom:1px solid var(--border); gap:8px; }
/* 29.5.405 Habit Insight Report */
.hir-row { padding:10px 0; border-bottom:1px solid var(--border); }
.hir-name { font-weight:600; font-size:13px; margin-bottom:4px; }
.hir-bar { margin:4px 0; letter-spacing:0; }
.hir-stats { font-size:11px; color:var(--text-muted); }

/* 29.5.406 Notes Highlight Mode */
#notes-hl-btn { transition: background .2s; }
/* 29.5.407 Habit Completion Calendar */
.hcc-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:3px; }
.hcc-cell { width:100%; aspect-ratio:1; border-radius:2px; background:var(--border); }
.hcc-done { background:var(--success) !important; }
.hcc-today { outline:2px solid var(--primary); }
/* 29.5.408 Priority Time Tracker */
.ptt-row { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--border); }
/* 29.5.410 Welcome Message Widget */
.welcome-msg-text { font-size:14px; color:var(--text); padding:8px 0; text-align:center; line-height:1.5; }

/* 29.5.411 Reading Time */
/* (modal uses existing styles) */
/* 29.5.412 Habit Skip Log */
.hsl-row { display:grid; grid-template-columns:80px 1fr auto; gap:8px; padding:6px 0; border-bottom:1px solid var(--border); align-items:center; }
/* 29.5.414 Pomo Session Label History */
.pslh-row { display:grid; grid-template-columns:80px 1fr auto; gap:8px; padding:6px 0; border-bottom:1px solid var(--border); align-items:center; }
/* 29.5.415 Dashboard Tip Widget */
#dash-tip-widget .widget-header span:first-child { color:var(--warning); }

/* 29.5.417 Habit Monthly Streaks Chart */
.hmsc-grid { font-size:12px; }
.hmsc-header, .hmsc-row { display:grid; grid-template-columns:120px repeat(6,1fr); gap:4px; margin-bottom:4px; align-items:center; }
.hmsc-header { font-weight:600; text-align:center; color:var(--text-muted); font-size:11px; }
/* 29.5.419 Pomo Monthly Overview */
.pmo-day-labels { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; text-align:center; font-size:10px; color:var(--text-muted); margin-bottom:2px; }
.pmo-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
.pmo-cell { aspect-ratio:1; border-radius:3px; display:flex; align-items:center; justify-content:center; font-size:9px; font-weight:600; }
.pmo-cell.l0 { background:var(--border); }
.pmo-cell.l1 { background:rgba(99,102,241,.25); color:var(--text); }
.pmo-cell.l2 { background:rgba(99,102,241,.5); color:#fff; }
.pmo-cell.l3 { background:rgba(99,102,241,.75); color:#fff; }
.pmo-cell.l4 { background:var(--primary); color:#fff; }
.pmo-today { outline:2px solid var(--warning); }
/* 29.5.420 Live Clock Widget */
.live-clock-time { font-size:28px; font-weight:700; color:var(--text); text-align:center; font-family:monospace; letter-spacing:2px; }
.live-clock-day { font-size:11px; color:var(--text-muted); text-align:center; margin-top:4px; }

/* 29.5.421 Notes Dual Column */
#notes-dc-btn { font-size:14px; }
/* 29.5.425 Sticky Note Widget */
#sticky-note-widget { background:#fffde7 !important; }
#sticky-note-widget .widget-header { background:#fff9c4 !important; }

/* 29.5.431 Notes Shortcuts Help */
.nsk-row { display:flex; align-items:center; gap:12px; padding:6px 0; border-bottom:1px solid var(--border); }
.nsk-key { background:var(--surface); border:1px solid var(--border); border-radius:4px; padding:2px 6px; font-size:11px; font-family:monospace; white-space:nowrap; }
/* 29.5.432 Habit Combo Streaks */
.hcombo-row { display:flex; justify-content:space-between; padding:6px 0; border-bottom:1px solid var(--border); }
/* 29.5.434 Deep Work Timer */
#deep-work-display { display:none; position:fixed; bottom:80px; right:20px; background:var(--primary); color:#fff; padding:6px 12px; border-radius:20px; font-size:12px; font-weight:600; z-index:1000; cursor:pointer; }

/* 29.5.436 Note Template Library */
.ntl-item { padding:10px; border:1px solid var(--border); border-radius:6px; margin:6px 0; cursor:pointer; }
.ntl-item:hover { background:var(--surface); }
/* 29.5.437 Habit Stat Summary */
.hss-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.hss-stat { text-align:center; padding:12px; background:var(--surface); border-radius:8px; }
.hss-val { font-size:22px; font-weight:700; color:var(--primary); }
.hss-lbl { font-size:11px; color:var(--text-muted); margin-top:4px; }
/* 29.5.439 Break Game */
.bg-item { padding:10px; border:1px solid var(--border); border-radius:6px; margin:6px 0; cursor:pointer; }
.bg-item:hover { background:var(--surface); }

/* 29.5.443 Priority Done Archive */
.pda-row { display:grid; grid-template-columns:1fr auto auto; gap:8px; padding:6px 0; border-bottom:1px solid var(--border); align-items:center; }

/* 29.5.448 Priority Notes Quick View */
.pnqv-row { padding:10px 0; border-bottom:1px solid var(--border); }

/* 29.5.457 Habit Milestone History */
.hmh-row { display:grid; grid-template-columns:80px 1fr auto; gap:8px; padding:6px 0; border-bottom:1px solid var(--border); align-items:center; }
/* 29.5.458 Priority Dependency Map */
.pdm-row { display:grid; grid-template-columns:1fr auto; gap:8px; padding:6px 0; border-bottom:1px solid var(--border); align-items:center; }
/* 29.5.459 Gratitude Log */
.gl-row { padding:10px 0; border-bottom:1px solid var(--border); }

/* ===== 29.5.461 Notes Quick Actions Toolbar ===== */
.notes-qa-sep { width:1px; height:20px; background:var(--border); margin:0 4px; display:inline-block; vertical-align:middle; }

/* ===== 29.5.462 Habit Completion Rate Graph ===== */
.hcr-modal { max-width:480px; }
.hcr-bar-row { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.hcr-week-label { width:60px; font-size:12px; color:var(--text-muted); flex-shrink:0; }
.hcr-bar-wrap { flex:1; background:var(--surface); border-radius:4px; height:18px; overflow:hidden; }
.hcr-bar { height:100%; border-radius:4px; transition:width .4s; }
.hcr-bar.high { background:var(--success); }
.hcr-bar.mid { background:var(--warning); }
.hcr-bar.low { background:var(--error); }
.hcr-pct { width:36px; font-size:12px; text-align:right; color:var(--text-muted); }

/* ===== 29.5.463 Priority Weight Board ===== */
.pwb-row { display:flex; align-items:center; gap:10px; padding:8px 12px; border-radius:8px; background:var(--surface); margin-bottom:6px; }
.pwb-medal { font-size:18px; width:24px; text-align:center; }
.pwb-name { flex:1; font-size:13px; }
.pwb-score { font-size:13px; font-weight:700; color:var(--primary); background:color-mix(in srgb, var(--primary) 15%, transparent); padding:2px 8px; border-radius:12px; }

/* ===== 29.5.464 Pomo Weekly Challenge ===== */
.pwc-modal { max-width:400px; }
.pwc-title { font-size:18px; font-weight:700; margin-bottom:4px; }
.pwc-desc { font-size:13px; color:var(--text-muted); margin-bottom:16px; }
.pwc-progress-wrap { background:var(--surface); border-radius:6px; height:20px; overflow:hidden; margin-bottom:8px; }
.pwc-progress-bar { height:100%; background:var(--primary); border-radius:6px; transition:width .4s; }
.pwc-pct { font-size:12px; color:var(--text-muted); text-align:right; }

/* ===== 29.5.465 Affirmation Card Widget ===== */
.affirmation-widget { background:linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 60%, var(--success))); border-radius:12px; padding:16px; color:#fff; margin-bottom:12px; }
.affirmation-text { font-size:14px; font-style:italic; line-height:1.5; margin-bottom:8px; }
.affirmation-actions { display:flex; gap:8px; justify-content:flex-end; }
.affirmation-btn { background:rgba(255,255,255,.2); border:none; border-radius:6px; color:#fff; padding:4px 10px; font-size:12px; cursor:pointer; }
.affirmation-btn:hover { background:rgba(255,255,255,.35); }

/* ===== 29.5.466 Notes Bookmarks ===== */
.nb-row { display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:8px; background:var(--surface); margin-bottom:6px; cursor:pointer; }
.nb-row:hover { background:color-mix(in srgb, var(--primary) 12%, transparent); }
.nb-line { font-size:11px; color:var(--primary); font-weight:700; min-width:32px; }
.nb-text { font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ===== 29.5.467 Habit Chain View ===== */
.hcv-row { display:flex; align-items:center; gap:10px; padding:8px 12px; border-radius:8px; margin-bottom:6px; }
.hcv-done { background:color-mix(in srgb, var(--success) 12%, transparent); }
.hcv-todo { background:color-mix(in srgb, var(--warning) 12%, transparent); }
.hcv-icon { font-size:16px; }
.hcv-name { flex:1; font-size:13px; }
.hcv-streak { font-size:12px; color:var(--text-muted); }

/* ===== 29.5.468 Priority Age Tracker ===== */
.pat-row { display:flex; align-items:center; gap:10px; padding:8px 12px; border-radius:8px; margin-bottom:6px; }
.pat-new { background:color-mix(in srgb, var(--success) 12%, transparent); }
.pat-mid { background:color-mix(in srgb, var(--warning) 12%, transparent); }
.pat-old { background:color-mix(in srgb, var(--error) 12%, transparent); }
.pat-days { font-size:13px; font-weight:700; min-width:36px; }
.pat-text { font-size:13px; }

/* ===== 29.5.469 Pomo Energy Check ===== */
.pec-btn { background:var(--surface); border:2px solid var(--border); border-radius:10px; padding:8px 12px; cursor:pointer; font-size:18px; min-width:52px; transition:all .2s; }
.pec-btn.active, .pec-btn:hover { border-color:var(--primary); background:color-mix(in srgb, var(--primary) 15%, transparent); }
.peh-row { display:flex; align-items:center; gap:12px; padding:8px 10px; border-bottom:1px solid var(--border); }
.peh-date { font-weight:700; min-width:40px; font-size:13px; }
.peh-avg { flex:1; font-size:13px; }
.peh-cnt { font-size:12px; color:var(--text-muted); }

/* ===== 29.5.470 Countdown Widget ===== */
.countdown-widget { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:14px 16px; margin-bottom:12px; text-align:center; }
.cdw-label { font-size:13px; font-weight:700; margin-bottom:6px; color:var(--text-muted); }
.cdw-time { font-size:22px; font-weight:700; color:var(--primary); margin-bottom:4px; }
.cdw-num { font-size:28px; }
.cdw-edit { font-size:11px; color:var(--text-muted); cursor:pointer; }
.cdw-empty, .cdw-done { font-size:14px; color:var(--text-muted); }

/* ===== 29.5.471 Notes Word Wrap ===== */
/* Uses existing .toolbar-btn styles */

/* ===== 29.5.472 Habit Weekly Targets ===== */
.hwt-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); }
.hwt-name { flex:1; font-size:13px; }
.hwt-slider { width:100px; cursor:pointer; }
.hwt-val { font-size:12px; color:var(--primary); font-weight:700; min-width:48px; text-align:right; }

/* ===== 29.5.473 Priority Kanban ===== */
.pkb-board { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:8px; }
.pkb-col { background:var(--surface); border-radius:10px; padding:10px; min-height:120px; }
.pkb-col-title { font-size:13px; font-weight:700; margin-bottom:8px; }
.pkb-cnt { font-weight:400; color:var(--text-muted); }
.pkb-card { background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:8px; margin-bottom:6px; }
.pkb-text { font-size:12px; margin-bottom:6px; }
.pkb-btns { display:flex; gap:4px; flex-wrap:wrap; }
.btn-xs { font-size:10px; padding:2px 6px; border-radius:4px; border:1px solid var(--border); background:var(--surface); color:var(--text); cursor:pointer; }
.btn-xs:hover { background:var(--primary); color:#fff; border-color:var(--primary); }
@media (max-width:600px) { .pkb-board { grid-template-columns:1fr; } }

/* ===== 29.5.474 Pomo Distraction Log ===== */
.dl-row { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:1px solid var(--border); }
.dl-time { font-size:11px; color:var(--text-muted); min-width:60px; }
.dl-text { flex:1; font-size:13px; }

/* ===== 29.5.475 Dashboard Accent Color ===== */
/* Applied dynamically via CSS var --primary */

/* ===== 29.5.476 Notes Full Screen ===== */
/* Uses .toolbar-btn — fullscreen applied via JS inline style */

/* ===== 29.5.477 Habit Heatmap ===== */
.hhm-row { display:flex; align-items:center; gap:6px; margin-bottom:6px; }
.hhm-name { font-size:11px; min-width:100px; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hhm-cells { display:flex; gap:2px; flex-wrap:nowrap; overflow:hidden; }
.hhm-cell { width:14px; height:14px; border-radius:2px; flex-shrink:0; }
.hhm-done { background:var(--success); }
.hhm-miss { background:var(--surface); border:1px solid var(--border); }

/* ===== 29.5.478 Priority Inline Note ===== */
/* Uses shared modal styles */

/* ===== 29.5.479 Pomo Music Timer ===== */
.chip { background:var(--surface); border:1px solid var(--border); border-radius:20px; padding:6px 14px; font-size:13px; cursor:pointer; }
.chip:hover { background:var(--primary); color:#fff; border-color:var(--primary); }

/* ===== 29.5.480 Dashboard Quick Mood ===== */
.mh-row { display:flex; align-items:center; gap:12px; padding:6px 0; border-bottom:1px solid var(--border); }
.mh-date { font-size:13px; font-weight:700; min-width:40px; }
.mh-emoji { font-size:18px; }
.mh-label { font-size:13px; color:var(--text-muted); }

/* ===== 29.5.481 Notes Daily Summary ===== */
.nds-stat { background:var(--surface); border-radius:8px; padding:10px; text-align:center; }
.nds-val { font-size:20px; font-weight:700; color:var(--primary); }
.nds-label { font-size:11px; color:var(--text-muted); margin-top:2px; }

/* ===== 29.5.482 Habit Personal Bests ===== */
.hpb-row { display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:8px; background:var(--surface); margin-bottom:6px; }
.hpb-name { flex:1; font-size:13px; }
.hpb-streak { font-size:12px; color:var(--success); }
.hpb-total { font-size:12px; color:var(--text-muted); }

/* ===== 29.5.483 Priority Smart Tags ===== */
.pst-row { padding:8px 10px; border-radius:8px; background:var(--surface); margin-bottom:6px; }
.pst-text { font-size:13px; margin-bottom:4px; display:block; }
.pst-tags { display:flex; flex-wrap:wrap; gap:4px; }
.pst-tag { background:color-mix(in srgb, var(--primary) 15%, transparent); color:var(--primary); padding:2px 8px; border-radius:10px; font-size:11px; font-weight:700; }

/* ===== 29.5.484 Pomo Goal Setter ===== */
.pgs-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); }
.pgs-day { font-size:13px; font-weight:700; min-width:36px; }
.pgs-slider { flex:1; cursor:pointer; }
.pgs-val { font-size:12px; color:var(--primary); min-width:48px; text-align:right; }

/* ===== 29.5.485 Mini Habits Widget ===== */
.mini-habits-widget { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:14px 16px; margin-bottom:12px; }
.mhw-title { font-size:13px; font-weight:700; margin-bottom:8px; color:var(--text-muted); }
.mhw-list { display:flex; flex-direction:column; gap:6px; }
.mhw-item { display:flex; align-items:center; gap:8px; padding:6px 8px; border-radius:8px; cursor:pointer; transition:background .15s; }
.mhw-item:hover { background:color-mix(in srgb, var(--primary) 10%, transparent); }
.mhw-done { background:color-mix(in srgb, var(--success) 10%, transparent); }
.mhw-check { font-size:16px; }
.mhw-name { font-size:13px; }
.mhw-empty { font-size:12px; color:var(--text-muted); text-align:center; padding:8px; }

/* ===== 29.5.486 Notes Reading Progress Bar ===== */
.notes-read-prog { position:sticky; top:0; left:0; height:3px; background:var(--primary); border-radius:0 2px 2px 0; transition:width .1s; z-index:10; }

/* ===== 29.5.487 Habit Buddy System ===== */
.hbs-pair { display:flex; align-items:center; justify-content:space-between; padding:6px 10px; background:var(--surface); border-radius:8px; margin-bottom:6px; font-size:13px; }

/* ===== 29.5.488 Priority Multi-Select ===== */
.psm-row { padding:6px 10px; border-radius:6px; margin-bottom:4px; background:var(--surface); font-size:13px; }
.psm-row label { display:flex; align-items:center; gap:8px; cursor:pointer; }
.psm-row input[type=checkbox] { cursor:pointer; }

/* ===== 29.5.489 Pomo Streak Tracker ===== */
/* Uses shared modal styles */

/* ===== 29.5.490 Quick Links Editor ===== */
.qle-row { display:flex; align-items:center; gap:8px; padding:6px 10px; background:var(--surface); border-radius:8px; margin-bottom:6px; }
.qle-icon { font-size:16px; }
.qle-name { font-weight:600; font-size:13px; min-width:80px; }
.qle-url { flex:1; font-size:11px; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ===== 29.5.491 Notes Clipboard History ===== */
.nch-row { padding:8px 12px; background:var(--surface); border-radius:8px; margin-bottom:6px; cursor:pointer; font-size:13px; }
.nch-row:hover { background:color-mix(in srgb, var(--primary) 12%, transparent); }
.nch-preview { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ===== 29.5.492 Habit Days Goal ===== */
.hdg-row { padding:10px 0; border-bottom:1px solid var(--border); }
.hdg-top { display:flex; align-items:center; gap:8px; margin-bottom:6px; font-size:13px; }
.hdg-name { flex:1; font-weight:700; }
.hdg-bar-wrap { background:var(--surface); border-radius:4px; height:8px; overflow:hidden; }
.hdg-bar { height:100%; background:var(--primary); border-radius:4px; transition:width .4s; }
.hdg-status { font-size:11px; color:var(--text-muted); margin-top:3px; }

/* ===== 29.5.493 Recurring Priorities ===== */
.rpr-row { display:flex; align-items:center; gap:8px; padding:8px 10px; background:var(--surface); border-radius:8px; margin-bottom:6px; font-size:13px; }
.rpr-freq { font-size:10px; font-weight:700; padding:2px 6px; border-radius:8px; text-transform:uppercase; }
.rpr-daily { background:color-mix(in srgb,var(--primary) 20%,transparent); color:var(--primary); }
.rpr-weekly { background:color-mix(in srgb,var(--success) 20%,transparent); color:var(--success); }
.rpr-monthly { background:color-mix(in srgb,var(--warning) 20%,transparent); color:var(--warning); }
.rpr-text { flex:1; }
.rpr-next { font-size:11px; color:var(--text-muted); }

/* ===== 29.5.494 Pomo Ambient Themes ===== */
/* Styles applied inline */

/* ===== 29.5.495 Welcome Tour ===== */
/* Uses shared modal styles */

/* ===== 29.5.496 Notes Focus Mode ===== */
/* Applied inline via JS */

/* ===== 29.5.497 Habit Custom Schedule ===== */
.hcs-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); }
.hcs-name { min-width:100px; font-size:13px; }
.hcs-days { display:flex; gap:4px; }
.hcs-day { width:28px; height:28px; border-radius:50%; border:1px solid var(--border); background:var(--surface); font-size:11px; cursor:pointer; font-weight:700; }
.hcs-active { background:var(--primary); border-color:var(--primary); color:#fff; }

/* ===== 29.5.498 Priority Time Block ===== */
.ptb-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); }
.ptb-hour { font-size:13px; font-weight:700; min-width:48px; color:var(--primary); }
.ptb-select { flex:1; }

/* ===== 29.5.499 Pomo Reflection Journal ===== */
.prh-row { padding:10px 0; border-bottom:1px solid var(--border); }
.prh-date { font-size:11px; color:var(--primary); font-weight:700; margin-bottom:4px; }
.prh-text { font-size:13px; color:var(--text-muted); line-height:1.4; }

/* ===== 29.5.500 Achievement Badges ===== */
/* Uses inline styles for badge grid */

/* ===== 29.5.501 Notes Table Generator ===== */
/* Preview uses monospace pre-formatted text */

/* ===== 29.5.502 Habit Notes Log ===== */
.hnl-row { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:1px solid var(--border); font-size:13px; }
.hnl-date { font-size:11px; color:var(--primary); font-weight:700; min-width:70px; }
.hnl-text { flex:1; }
.hnl-pick { padding:10px 12px; background:var(--surface); border-radius:8px; margin-bottom:6px; cursor:pointer; font-size:13px; }
.hnl-pick:hover { background:color-mix(in srgb, var(--primary) 12%, transparent); }

/* ===== 29.5.503 Priority Timeline ===== */
.ptl-date { font-size:12px; font-weight:700; color:var(--primary); padding:8px 0 4px; border-top:1px solid var(--border); }
.ptl-item { display:flex; align-items:center; gap:6px; padding:4px 0; font-size:13px; }
.ptl-dot { font-size:14px; }
.ptl-text { color:var(--text-muted); }

/* ===== 29.5.504 Pomo Visualization Chart ===== */
.pvc-col { display:flex; flex-direction:column; align-items:center; gap:2px; min-width:44px; }
.pvc-bars { display:flex; flex-direction:column-reverse; gap:2px; }
.pvc-bar { width:20px; height:12px; border-radius:2px; }
.pvc-filled { background:var(--primary); }
.pvc-empty { background:var(--surface); border:1px solid var(--border); }
.pvc-label { font-size:11px; color:var(--text-muted); font-weight:700; }
.pvc-cnt { font-size:13px; font-weight:700; color:var(--primary); }

/* ===== 29.5.505 Daily Challenge ===== */
/* Uses shared modal + gradient card styles */

/* ===== 29.5.506 Notes Spell Check ===== */
.toolbar-btn.active { background:color-mix(in srgb, var(--primary) 20%, transparent); color:var(--primary); border-color:var(--primary); }

/* ===== 29.5.507 Habit Streak Recovery ===== */
.hsr-row { display:flex; align-items:center; gap:10px; padding:8px 10px; background:var(--surface); border-radius:8px; margin-bottom:6px; }
.hsr-name { flex:1; font-size:13px; }

/* ===== 29.5.508 Priority Focus Score ===== */
.pfs-stat { background:var(--surface); border-radius:8px; padding:10px; text-align:center; }
.pfs-val { font-size:20px; font-weight:700; color:var(--primary); }
.pfs-label { font-size:11px; color:var(--text-muted); margin-top:2px; }

/* ===== 29.5.509 Pomo Batch Schedule ===== */
.pbs-row { padding:6px 10px; background:var(--surface); border-radius:6px; margin-bottom:4px; font-size:13px; }

/* ===== 29.5.510 Compact Stats Widget ===== */
.compact-stats-widget { background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:10px 14px; margin-bottom:12px; }
.csw-row { display:flex; gap:12px; justify-content:space-around; }
.csw-item { display:flex; align-items:center; gap:6px; }
.csw-val { font-size:18px; font-weight:700; color:var(--primary); }
.csw-icon { font-size:16px; }

/* ===== 29.5.511 Notes Version Snapshots ===== */
.nsv-row { padding:8px 10px; background:var(--surface); border-radius:8px; margin-bottom:6px; display:flex; align-items:center; justify-content:space-between; }
.nsv-meta { font-size:13px; }
.nsv-actions { display:flex; gap:6px; }

/* ===== 29.5.512 Habit Completion Prediction ===== */
.hp-row { display:flex; align-items:center; justify-content:space-between; padding:8px 10px; background:var(--surface); border-radius:8px; margin-bottom:6px; }
.hp-name { font-size:13px; flex:1; }
.hp-pct { font-size:13px; font-weight:700; }
.hp-high { color:var(--success); }
.hp-mid { color:var(--warning); }
.hp-low { color:var(--error); }

/* ===== 29.5.513 Priority Batch Import ===== */
/* Uses shared modal textarea styles */

/* ===== 29.5.514 Pomo Popcorn Mode ===== */
/* State only, no custom UI styles needed */

/* ===== 29.5.515 Weather Quote Widget ===== */
.weather-quote-widget { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:14px 16px; margin-bottom:12px; }
.wqw-text { font-size:13px; font-style:italic; color:var(--text-muted); line-height:1.5; }

/* ===== 29.5.516 Notes Auto-Save Indicator ===== */
.notes-save-indicator { font-size:11px; color:var(--success); margin-left:auto; padding:0 6px; align-self:center; }
.notes-save-indicator.unsaved { color:var(--warning); }

/* ===== 29.5.517 Habit Mini Graphs ===== */
.hmg-row { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.hmg-name { font-size:12px; min-width:90px; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hmg-cells { display:flex; gap:2px; }
.hmg-cell { width:12px; height:16px; border-radius:2px; }
.hmg-done { background:var(--success); }
.hmg-miss { background:var(--surface); border:1px solid var(--border); }

/* ===== 29.5.518 Priority Progress Rings ===== */
/* Uses SVG inline */

/* ===== 29.5.519 Break Workout ===== */
/* Uses shared modal styles */

/* ===== 29.5.520 Focus Music Player ===== */
.fmp-row { display:flex; align-items:center; gap:10px; padding:10px 12px; background:var(--surface); border-radius:8px; margin-bottom:6px; }
.fmp-icon { font-size:18px; }
.fmp-name { flex:1; font-size:13px; font-weight:700; }
.fmp-star { font-size:16px; }

/* ===== 29.5.521-525: Link Detector / Impact / Export / Silence / Goals ===== */
.nld-list { list-style: none; padding: 0; margin: 8px 0; max-height: 260px; overflow-y: auto; }
.nld-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; margin-bottom: 6px; font-size: 13px; }
.nld-row a { color: var(--primary); text-decoration: none; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nld-row a:hover { text-decoration: underline; }
.nld-copy { background: var(--primary); color: #fff; border: none; border-radius: 4px; padding: 2px 8px; font-size: 11px; cursor: pointer; flex-shrink: 0; }

.his-list { list-style: none; padding: 0; margin: 8px 0; }
.his-row { padding: 8px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 6px; }
.his-row-header { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.his-medal { font-size: 18px; }
.his-score { margin-left: auto; font-size: 13px; color: var(--text-muted); }
.his-bar-wrap { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.his-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary, #7c3aed)); border-radius: 3px; transition: width .4s; }

.dgm-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dgm-list { display: flex; flex-direction: column; gap: 10px; max-height: 280px; overflow-y: auto; }
.dgm-row { padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.dgm-top { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.dgm-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.dgm-bar-wrap { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
.dgm-bar { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #10b981, #34d399); transition: width .4s; }
.dgm-actions { display: flex; gap: 6px; }
.dgm-inc { background: var(--primary); color: #fff; border: none; border-radius: 4px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.dgm-del { background: transparent; border: 1px solid var(--border); border-radius: 4px; padding: 3px 8px; font-size: 12px; cursor: pointer; color: var(--text-muted); }
.dgm-del:hover { border-color: #ef4444; color: #ef4444; }
.psm-active { color: var(--warning); font-size: 12px; margin-left: 6px; }

/* ===== 29.5.526-530: Highlight / Time Tracker / Duplicate / CSV / Digest ===== */
.nch-grid { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; }
.nch-btn { flex: 1 1 calc(33% - 8px); border: none; border-radius: 8px; padding: 10px 8px; font-size: 13px; font-weight: 600; cursor: pointer; color: #333; transition: transform .15s, box-shadow .15s; }
.nch-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.nch-remove { background: var(--surface) !important; border: 1px solid var(--border) !important; color: var(--text-muted) !important; }

.htt-list { padding: 8px 0; max-height: 320px; overflow-y: auto; }
.htt-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.htt-name { flex: 1; font-size: 14px; }
.htt-total { font-size: 12px; color: var(--text-muted); min-width: 60px; text-align: right; }
.htt-start { background: var(--primary); color: #fff; border: none; border-radius: 4px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.htt-stop { background: #ef4444; color: #fff; border: none; border-radius: 4px; padding: 4px 10px; font-size: 12px; cursor: pointer; }

.pqd-list { padding: 8px 0; max-height: 320px; overflow-y: auto; }
.pqd-row { padding: 10px 14px; cursor: pointer; font-size: 14px; border-bottom: 1px solid var(--border); transition: background .15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pqd-row:hover { background: var(--surface); }

.ddw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-bottom: 4px; }
.ddw-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 8px; text-align: center; font-size: 20px; }
.ddw-val { font-size: 18px; font-weight: 700; margin: 4px 0 2px; }
.ddw-lbl { font-size: 11px; color: var(--text-muted); }
.ddw-trigger { position: fixed; bottom: 80px; left: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); font-size: 18px; cursor: pointer; z-index: 200; box-shadow: 0 2px 8px rgba(0,0,0,.2); transition: transform .15s; }
.ddw-trigger:hover { transform: scale(1.1); }
@media (max-width: 480px) { .ddw-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== 29.5.531-535: Font Size / Skip Log / Effort / Weekend / Line Counter ===== */
.nfs-ctrl { display: flex; align-items: center; gap: 6px; padding: 4px 0 6px; }
.nfs-ctrl button { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 2px 8px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--text); }
.nfs-ctrl button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.nfs-label { font-size: 11px; color: var(--text-muted); min-width: 32px; text-align: center; }

.hsr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 12px 0; }
.hsr-btn { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; font-size: 13px; cursor: pointer; text-align: left; transition: background .15s; }
.hsr-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.hsr-input { width: 100%; box-sizing: border-box; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; font-size: 13px; color: var(--text); margin-top: 8px; }

.pef-list { max-height: 340px; overflow-y: auto; }
.pef-row { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.pef-name { font-size: 14px; display: block; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pef-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.pef-btn { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 3px 10px; font-size: 11px; cursor: pointer; transition: all .15s; }
.pef-btn:hover { opacity: .85; }
.pef-active { font-weight: 700; }

.notes-line-counter { font-size: 11px; color: var(--text-muted); padding: 2px 6px; display: block; text-align: right; }

/* ===== 29.5.536-540: Pins / Bell / DueDates / Labels / Confetti ===== */
.npv-list { max-height: 340px; overflow-y: auto; padding: 4px 0; }
.npv-row { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.npv-date { font-size: 11px; color: var(--text-muted); }
.npv-text { margin: 4px 0; font-size: 13px; line-height: 1.4; }
.npv-del { background: transparent; border: 1px solid var(--border); border-radius: 4px; padding: 2px 8px; font-size: 11px; cursor: pointer; color: var(--text-muted); }
.npv-del:hover { border-color: #ef4444; color: #ef4444; }

.pdu-list { max-height: 320px; overflow-y: auto; }
.pdu-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.pdu-date { min-width: 90px; font-weight: 600; font-size: 12px; color: var(--text-muted); }
.pdu-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdu-overdue .pdu-date { color: #ef4444; }
.pdu-today .pdu-date { color: #f59e0b; }

/* ===== 29.5.541-545: Cheatsheet / HabitCal / Fib / BreakIdea / NotesSearch ===== */
.mdc-list { max-height: 340px; overflow-y: auto; }
.mdc-row { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--border); }
.mdc-sym { font-family: monospace; font-size: 13px; background: var(--surface); padding: 2px 6px; border-radius: 4px; min-width: 110px; }
.mdc-desc { flex: 1; font-size: 13px; color: var(--text-muted); }

.hrc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; padding: 8px 0; }
.hrc-cell { height: 28px; background: var(--primary); border-radius: 4px; cursor: default; }

.pfb-pt { border: 1px solid var(--border); background: var(--surface); border-radius: 6px; padding: 4px 8px; font-size: 13px; font-weight: 600; cursor: pointer; min-width: 32px; }
.pfb-pt:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pfb-pt-active { background: var(--primary); color: #fff; border-color: var(--primary); }

.pbi-idea { font-size: 22px; padding: 20px 12px; line-height: 1.4; }

.sns-hist-row { margin-bottom: 10px; font-size: 12px; color: var(--text-muted); }
.sns-hist { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 2px 8px; font-size: 11px; cursor: pointer; margin: 0 3px; }
.sns-hist:hover { border-color: var(--primary); color: var(--primary); }
.sns-match { padding: 6px 8px; background: var(--surface); border-radius: 6px; margin-bottom: 5px; font-size: 13px; line-height: 1.4; }
.sns-line { font-size: 10px; color: var(--text-muted); margin-right: 6px; }
.sns-match mark { background: #fef08a; color: #333; border-radius: 2px; padding: 0 2px; }

/* ===== 29.5.546-550: Reminders / Pause / Circle / ProdScore / Welcome ===== */
.pcw-widget { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; padding: 8px; border-radius: 12px; transition: background .15s; }
.pcw-widget:hover { background: var(--surface); }
.pcw-lbl { font-size: 11px; color: var(--text-muted); }

.dps-score { font-size: 56px; font-weight: 900; line-height: 1; margin: 12px 0 4px; }
.dps-grade { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.grade-s { color: #f59e0b; } .grade-a { color: #10b981; } .grade-b { color: #3b82f6; }
.grade-c { color: #8b5cf6; } .grade-d { color: #ef4444; } .grade-f { color: #6b7280; }
.dps-breakdown { background: var(--surface); border-radius: 10px; padding: 10px; width: 100%; }
.dps-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.dps-row:last-child { border: none; }

/* ===== 29.5.551-555: LineSorter / HabitGroups / PrioComments / Gratitude / Clock ===== */
.hbg-list { max-height: 340px; overflow-y: auto; }
.hbg-section { margin-bottom: 12px; }
.hbg-title { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; padding: 4px 12px; }
.hbg-item { padding: 6px 16px; font-size: 14px; border-bottom: 1px solid var(--border); }

.prc-list { max-height: 200px; overflow-y: auto; }
.prc-item { padding: 8px 10px; background: var(--surface); border-radius: 6px; margin-bottom: 6px; display: flex; flex-direction: column; gap: 3px; position: relative; }
.prc-date { font-size: 10px; color: var(--text-muted); }
.prc-text { font-size: 13px; line-height: 1.4; margin: 0; padding-right: 24px; }
.prc-item .npv-del { position: absolute; top: 6px; right: 6px; }

.lcw-widget { position: fixed; bottom: 16px; right: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; font-size: 20px; font-weight: 700; font-family: monospace; color: var(--primary); z-index: 200; box-shadow: 0 2px 10px rgba(0,0,0,.2); user-select: none; pointer-events: none; }

/* ===== 29.5.556-560: WordReplacer / HabitDep / Checklist / PomoStats / ThemeSched ===== */
.pcl-list { max-height: 240px; overflow-y: auto; margin: 4px 0; }
.pcl-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--surface); border-radius: 6px; margin-bottom: 5px; font-size: 14px; }
.pcl-item input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }
.pcl-item span { flex: 1; }
.pcl-item .npv-del { position: static; }

/* ===== 29.5.561-565: Compare / XPMult / ColorTag / Affirmation / StatsBar ===== */
.ncm-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: 220px; }
.ncm-pane { width: 100%; height: 100%; box-sizing: border-box; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 8px; font-size: 12px; font-family: monospace; color: var(--text); resize: none; }
.ncm-result { margin-top: 10px; max-height: 160px; overflow-y: auto; }
.ncm-diff { font-size: 12px; font-family: monospace; padding: 3px 6px; background: var(--surface); border-radius: 4px; margin-bottom: 3px; border-left: 3px solid var(--warning); }

.pct-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; }
.pct-dot-active { border-color: #fff; box-shadow: 0 0 0 2px var(--primary); }

.qsb-bar { display: flex; align-items: center; gap: 6px; padding: 4px 12px; background: var(--surface); border-bottom: 1px solid var(--border); font-size: 13px; flex-wrap: wrap; }
.qsb-item { font-weight: 600; }
.qsb-sep { color: var(--text-muted); }
@media (max-width: 480px) { .ncm-split { grid-template-columns: 1fr; } }

/* ===== 29.5.566-570: AutoIndent / SoundPack / TagFilter / PomoHeatmap / StickyNote ===== */
.phh-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; padding: 8px 0; }
.phh-cell { height: 28px; border-radius: 4px; cursor: default; }

.snw-widget { position: fixed; bottom: 90px; right: 16px; width: 220px; background: #fef9c3; border: 1px solid #fde047; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.2); z-index: 300; font-family: inherit; }
.snw-header { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; font-size: 12px; font-weight: 700; color: #854d0e; border-bottom: 1px solid #fde047; }
.snw-toggle { background: none; border: none; cursor: pointer; font-size: 14px; color: #854d0e; padding: 0 2px; }
.snw-body { width: 100%; box-sizing: border-box; height: 100px; border: none; background: transparent; padding: 8px 10px; font-size: 13px; color: #713f12; resize: none; outline: none; border-radius: 0 0 10px 10px; font-family: inherit; }

/* ===== 29.5.571-575: CodeBlock / ShareCard / BulkLevel / InterruptV2 / Opacity ===== */
.bpl-list { max-height: 260px; overflow-y: auto; padding: 8px 0; }
.bpl-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 14px; cursor: pointer; border-bottom: 1px solid var(--border); }
.bpl-row:hover { background: var(--surface); }
.bpl-check { width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }

.woc-row { display: flex; align-items: center; gap: 10px; }
.woc-name { font-size: 13px; min-width: 120px; }
.woc-slider { flex: 1; cursor: pointer; }
.woc-val { font-size: 12px; color: var(--text-muted); min-width: 36px; text-align: right; }

/* ===== 29.5.576-580: Outline / Certificate / QuickLabels / DistrAnal / ClockStyle ===== */
.nol-list { max-height: 320px; overflow-y: auto; }
.nol-item { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--border); font-size: 14px; transition: background .15s; }
.nol-item:hover { background: var(--surface); }
.nol-level { font-size: 10px; color: var(--primary); font-weight: 700; margin-right: 6px; background: var(--surface); padding: 1px 4px; border-radius: 3px; }

.hmc-cert { font-family: monospace; font-size: 12px; background: var(--surface); padding: 14px; border-radius: 8px; white-space: pre; overflow-x: auto; line-height: 1.5; }

.pql-badge { background: var(--primary); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 8px; margin-right: 4px; }

.pda-list { display: flex; flex-direction: column; gap: 8px; }
.pda-row { display: flex; align-items: center; gap: 10px; }
.pda-cat { min-width: 90px; font-size: 13px; font-weight: 600; }
.pda-cnt { font-size: 12px; color: var(--text-muted); min-width: 70px; text-align: right; }

/* ===== 29.5.581-585: WordFreq / MonthlyReport / Aging / FlowState / MiniCal ===== */
.hmr-list { max-height: 380px; overflow-y: auto; }
.hmr-row { padding: 8px 0; border-bottom: 1px solid var(--border); }
.hmr-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.hmr-pct { font-size: 11px; color: var(--primary); margin-left: 6px; }
.hmr-grid { display: flex; flex-wrap: wrap; gap: 3px; }
.hmr-cell { width: 22px; height: 22px; border-radius: 4px; background: var(--border); display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--text-muted); }
.hmr-done { background: var(--primary); color: #fff; }

.paa-list { max-height: 320px; overflow-y: auto; }
.paa-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.paa-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paa-age { font-size: 12px; color: var(--text-muted); min-width: 55px; text-align: right; }
.paa-medium .paa-age { color: #f59e0b; }
.paa-old .paa-age { color: #ef4444; font-weight: 700; }

.mcw-widget { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px; margin: 10px; font-size: 12px; }
.mcw-header { font-size: 13px; font-weight: 700; text-align: center; margin-bottom: 6px; }
.mcw-days-hdr { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; color: var(--text-muted); font-size: 10px; margin-bottom: 3px; }
.mcw-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mcw-grid span { padding: 2px; border-radius: 3px; font-size: 11px; }
.mcw-today { background: var(--primary); color: #fff; border-radius: 50%; font-weight: 700; }
.mcw-has-habits { background: rgba(59,130,246,.2); border-radius: 3px; }

/* ===== 29.5.586-590: Emoji / HabitCompare / ImpactMatrix / PomoGoal / TipWidget ===== */
.emp-cat { margin-bottom: 10px; }
.emp-cat-name { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.emp-row { display: flex; flex-wrap: wrap; gap: 4px; }
.emp-btn { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 4px 6px; font-size: 20px; cursor: pointer; transition: transform .1s; }
.emp-btn:hover { transform: scale(1.2); }

.hct-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hct-table th { padding: 6px 8px; background: var(--surface); border: 1px solid var(--border); font-size: 11px; text-align: center; }
.hct-name { padding: 6px 10px; border: 1px solid var(--border); font-weight: 600; white-space: nowrap; }
.hct-cell { padding: 6px 8px; border: 1px solid var(--border); text-align: center; color: var(--text-muted); font-size: 12px; }
.hct-done { color: var(--success, #10b981); font-weight: 700; }

.pif-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pif-quad { border: 2px solid; border-radius: 8px; padding: 10px; min-height: 80px; }
.pif-title { font-size: 11px; font-weight: 700; margin-bottom: 6px; }
.pif-item { font-size: 12px; padding: 3px 0; border-bottom: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pgc-progress { display: flex; justify-content: center; margin: 8px 0; }

.tip-widget { position: fixed; top: 70px; right: 16px; width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; z-index: 200; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.tip-header { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.tip-next { background: none; border: none; cursor: pointer; font-size: 14px; padding: 0; }
.tip-text { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin: 0; }
@media (max-width: 480px) { .pif-grid { grid-template-columns: 1fr; } .tip-widget { display: none; } }

/* 29.5.591 Notes Snippet Library */
.snl-list { display:flex; flex-direction:column; gap:6px; max-height:300px; overflow-y:auto; margin-bottom:12px; }
.snl-row { display:flex; align-items:center; gap:8px; padding:8px 10px; background:var(--surface); border:1px solid var(--border); border-radius:6px; }
.snl-title { font-weight:600; font-size:0.85rem; flex:0 0 100px; }
.snl-preview { flex:1; font-size:0.8rem; color:var(--text-muted); overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.snl-actions { display:flex; gap:4px; }
.snl-actions button { padding:3px 8px; font-size:0.75rem; border-radius:4px; border:none; cursor:pointer; }

/* 29.5.592 Habit Chain Reaction */
.hcr2-chain { display:flex; align-items:center; gap:4px; flex-wrap:wrap; margin:10px 0; }
.hcr2-dot { width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:0.7rem; font-weight:700; border:2px solid var(--border); background:var(--surface); transition:all 0.2s; }
.hcr2-dot.hcr2-active { background:var(--success); border-color:var(--success); color:#fff; }
.hcr2-line { width:16px; height:2px; background:var(--border); }
.hcr2-line.hcr2-active { background:var(--success); }
.hcr2-multiplier { font-size:1.4rem; font-weight:700; color:var(--primary); text-align:center; margin:8px 0; }

/* 29.5.593 Priority Week Planning */
.pwp-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); }
.pwp-text { flex:1; font-size:0.85rem; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.pwp-select { font-size:0.8rem; padding:3px 6px; border-radius:4px; border:1px solid var(--border); background:var(--surface); color:var(--text); }

/* 29.5.594 White Noise Generator */
.wng-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:10px 0; }
.wng-btn { padding:12px; border-radius:8px; border:2px solid var(--border); background:var(--surface); cursor:pointer; text-align:center; transition:all 0.2s; }
.wng-btn:hover { border-color:var(--primary); }
.wng-btn.wng-active { border-color:var(--primary); background:color-mix(in srgb,var(--primary) 15%,transparent); }
.wng-icon { font-size:1.6rem; display:block; margin-bottom:4px; }
.wng-label { font-size:0.8rem; font-weight:600; }

/* 29.5.595 Widget Dock */
.wdock-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:10px 0; }
.wdock-item { padding:10px; border-radius:8px; border:2px solid var(--border); background:var(--surface); cursor:pointer; text-align:center; transition:all 0.2s; }
.wdock-item:hover { border-color:var(--primary); }
.wdock-item.wdock-on { border-color:var(--success); background:color-mix(in srgb,var(--success) 12%,transparent); }
.wdock-icon { font-size:1.4rem; display:block; margin-bottom:4px; }
.wdock-name { font-size:0.78rem; font-weight:600; }

/* 29.5.596 Notes Reading List */
.nrl-add { display:flex; gap:8px; margin-bottom:10px; padding:0 12px; }
.nrl-list { display:flex; flex-direction:column; gap:6px; padding:0 12px 12px; max-height:300px; overflow-y:auto; }
.nrl-row { display:flex; align-items:center; gap:8px; padding:8px; background:var(--surface); border:1px solid var(--border); border-radius:6px; }
.nrl-done { font-size:1.1rem; flex-shrink:0; }
.nrl-title { flex:1; font-size:0.85rem; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }

/* 29.5.597 Habit Consistency */
.hcs-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); }
.hcs-name { flex:0 0 120px; font-size:0.85rem; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.hcs-bar-wrap { flex:1; height:10px; background:var(--border); border-radius:5px; overflow:hidden; }
.hcs-bar { height:100%; border-radius:5px; transition:width 0.5s; }
.hcs-pct { flex:0 0 40px; font-weight:700; font-size:0.85rem; text-align:right; }

/* 29.5.598 Recurring Priorities */
.prec-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); }
.prec-text { flex:1; font-size:0.85rem; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.prec-sel { font-size:0.8rem; padding:3px 6px; border-radius:4px; border:1px solid var(--border); background:var(--surface); color:var(--text); }

/* 29.5.599 Pomo Session Calendar */
.psc-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; padding:12px; }
.psc-cell { aspect-ratio:1; border-radius:4px; background:var(--primary); display:flex; align-items:center; justify-content:center; font-size:0.65rem; font-weight:700; color:#fff; cursor:default; transition:transform 0.15s; }
.psc-cell:hover { transform:scale(1.2); }

/* 29.5.600 Dashboard Full Screen */
.dfs-active .sidebar { width:0 !important; overflow:hidden !important; }
.dfs-active .main-content { margin-left:0 !important; }

/* 29.5.601 Notes Auto-Bullet — no extra CSS needed, toggle only */

/* 29.5.602 Habit Notification Scheduler */
.hns-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); }
.hns-name { flex:1; font-size:0.85rem; }
.hns-time { font-size:0.85rem; padding:4px 6px; border-radius:4px; border:1px solid var(--border); background:var(--surface); color:var(--text); }

/* 29.5.603 Bulk Archive Priorities */
.pba-row { display:flex; align-items:center; gap:10px; padding:7px 0; border-bottom:1px solid var(--border); font-size:0.85rem; }
.pba-cb { width:16px; height:16px; cursor:pointer; flex-shrink:0; }

/* 29.5.604 Pomo Milestone Badges */
.pmb-badge { display:flex; align-items:center; gap:12px; padding:10px; border-radius:8px; margin-bottom:6px; border:2px solid var(--border); }
.pmb-badge.pmb-earned { border-color:var(--warning); background:color-mix(in srgb,var(--warning) 10%,transparent); }
.pmb-badge.pmb-locked { opacity:0.45; }
.pmb-icon { font-size:1.6rem; flex-shrink:0; }
.pmb-label { flex:1; font-weight:600; font-size:0.9rem; }
.pmb-req { font-size:0.8rem; color:var(--text-muted); }

/* 29.5.605 Keyboard Shortcuts Help */
.ksh-row { display:flex; align-items:center; gap:12px; padding:8px 0; border-bottom:1px solid var(--border); }
.ksh-kbd { background:var(--surface); border:1px solid var(--border); border-radius:4px; padding:2px 8px; font-family:monospace; font-size:0.8rem; white-space:nowrap; box-shadow:0 1px 2px rgba(0,0,0,0.2); }
.ksh-desc { font-size:0.85rem; }

/* 29.5.606 Notes Multi-Tab */
.nmt-tabs-row { display:flex; gap:6px; padding:8px 12px; flex-wrap:wrap; border-bottom:1px solid var(--border); }
.nmt-tab { padding:5px 12px; border-radius:4px 4px 0 0; border:1px solid var(--border); background:var(--surface); cursor:pointer; font-size:0.82rem; }
.nmt-tab.nmt-active { background:var(--primary); color:#fff; border-color:var(--primary); }
.nmt-ta { width:100%; padding:10px 12px; border:none; border-bottom:1px solid var(--border); background:var(--bg); color:var(--text); font-size:0.9rem; font-family:inherit; resize:vertical; box-sizing:border-box; }

/* 29.5.607 Habit Streak Leaderboard */
.hsl-row { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--border); }
.hsl-rank { font-size:1.3rem; flex-shrink:0; width:30px; text-align:center; }
.hsl-name { flex:1; font-size:0.9rem; }
.hsl-streak { font-weight:700; font-size:0.9rem; }

/* 29.5.608 Priority Smart Groups */
.psg-group { margin-bottom:14px; }
.psg-title { font-size:0.8rem; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.05em; margin-bottom:6px; }
.psg-item { padding:6px 10px; background:var(--surface); border:1px solid var(--border); border-radius:5px; font-size:0.85rem; margin-bottom:4px; }

/* 29.5.609 Pomo Session Quote */
.psq-toast { position:fixed; bottom:80px; left:50%; transform:translateX(-50%); background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:14px 16px; max-width:400px; display:flex; gap:10px; align-items:flex-start; box-shadow:0 4px 16px rgba(0,0,0,0.3); z-index:9999; animation:slideUp 0.3s ease; }
.psq-icon { font-size:1.4rem; flex-shrink:0; }
.psq-text { flex:1; font-size:0.85rem; font-style:italic; line-height:1.5; }
.psq-close { background:none; border:none; cursor:pointer; color:var(--text-muted); font-size:1rem; }

/* 29.5.610 Dashboard Layout Lock */
.dll-locked .drag-handle { display:none !important; }
.dll-locked [draggable] { cursor:default !important; }

/* 29.5.611 Notes Handwriting Font Mode */
.nhw-row { padding:10px 12px; border-radius:6px; cursor:pointer; margin-bottom:4px; border:2px solid transparent; font-size:1rem; transition:all 0.2s; }
.nhw-row:hover { background:var(--surface); border-color:var(--border); }
.nhw-row.nhw-active { border-color:var(--primary); background:color-mix(in srgb,var(--primary) 10%,transparent); }

/* 29.5.612 Habit Monthly Streak Record */
.hmsr-row { display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--border); }
.hmsr-name { flex:1; font-size:0.85rem; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.hmsr-current, .hmsr-best { font-size:0.82rem; font-weight:600; white-space:nowrap; }
.hmsr-best { color:var(--warning); }

/* 29.5.613 Priority Time Budget */
.ptb-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); }
.ptb-text { flex:1; font-size:0.85rem; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.ptb-input { width:60px; padding:4px 6px; font-size:0.82rem; border-radius:4px; border:1px solid var(--border); background:var(--surface); color:var(--text); text-align:center; }

/* 29.5.614 Pomo Focus Summary */
.pfs-stat { background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:12px; text-align:center; }
.pfs-val { font-size:1.8rem; font-weight:700; color:var(--primary); }
.pfs-lbl { font-size:0.75rem; color:var(--text-muted); margin-top:4px; }

/* 29.5.615 News Ticker */
.nwt-bar { background:color-mix(in srgb,var(--primary) 15%,var(--surface)); border-bottom:1px solid var(--border); padding:6px 0; overflow:hidden; white-space:nowrap; }
.nwt-inner { display:inline-flex; align-items:center; gap:4px; animation:nwtScroll 30s linear infinite; }
.nwt-label { font-size:1rem; flex-shrink:0; margin-right:8px; }
.nwt-item { font-size:0.82rem; color:var(--text-muted); }
.nwt-sep { color:var(--border); }
@keyframes nwtScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* 29.5.616 Notes Watermark */
.nwm-overlay { position:fixed; top:50%; left:50%; transform:translate(-50%,-50%) rotate(-30deg); font-size:4rem; font-weight:700; opacity:0.06; pointer-events:none; user-select:none; z-index:5; color:var(--text); white-space:nowrap; letter-spacing:.1em; }

/* 29.5.617 Habit Mood Impact */
.hmi-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); }
.hmi-name { flex:1; font-size:0.85rem; }
.hmi-avg { font-weight:700; font-size:0.9rem; color:var(--primary); }

/* 29.5.618 Priority Value Scores */
.pvs-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); }
.pvs-text { flex:1; font-size:0.85rem; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.pvs-score { font-size:1.2rem; font-weight:700; flex-shrink:0; }

/* 29.5.619 Pomo Custom End Sound */
.pes-row { display:flex; align-items:center; justify-content:space-between; padding:10px 12px; border-radius:6px; cursor:pointer; margin-bottom:6px; border:2px solid var(--border); transition:all 0.2s; }
.pes-row:hover { border-color:var(--primary); }
.pes-row.pes-active { border-color:var(--success); background:color-mix(in srgb,var(--success) 10%,transparent); }
.pes-name { font-size:0.9rem; font-weight:600; }

/* 29.5.620 Dashboard Search Overlay */
.dso-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.6); backdrop-filter:blur(4px); z-index:10001; display:flex; align-items:flex-start; justify-content:center; padding-top:15vh; }
.dso-box { width:min(560px,90vw); background:var(--surface); border:1px solid var(--border); border-radius:12px; box-shadow:0 20px 60px rgba(0,0,0,0.5); overflow:hidden; }
.dso-input { width:100%; padding:16px 20px; font-size:1rem; background:transparent; border:none; border-bottom:1px solid var(--border); color:var(--text); outline:none; box-sizing:border-box; }
.dso-results { max-height:400px; overflow-y:auto; }
.dso-item { display:flex; align-items:center; gap:12px; padding:12px 16px; cursor:pointer; transition:background 0.15s; }
.dso-item:hover { background:var(--bg); }
.dso-icon { font-size:1.2rem; flex-shrink:0; }
.dso-name { font-size:0.9rem; font-weight:600; flex-shrink:0; }
.dso-desc { font-size:0.8rem; color:var(--text-muted); overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }

/* 29.5.621 Notes Export Menu — modal only, no extra CSS */

/* 29.5.622 Habit Milestone Tracker */
.hml-row { display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--border); }
.hml-name { flex:1; font-size:0.85rem; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.hml-streak { font-weight:700; font-size:0.85rem; flex-shrink:0; }
.hml-next { font-size:0.8rem; color:var(--text-muted); flex-shrink:0; }

/* 29.5.623 Priority Effort vs Impact Grid */
.pei-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:12px; }
.pei-quad { background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:10px; }
.pei-qtitle { font-size:0.72rem; font-weight:700; color:var(--text-muted); text-transform:uppercase; margin-bottom:6px; }
.pei-item { font-size:0.8rem; padding:4px 6px; background:var(--bg); border-radius:4px; margin-bottom:3px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }

/* 29.5.624 Pomo Session Review */
.psr2-row { display:grid; grid-template-columns:2fr 1fr 2fr 1fr; gap:4px; padding:7px 0; border-bottom:1px solid var(--border); font-size:0.82rem; }
.psr2-date { color:var(--text-muted); }
.psr2-dur, .psr2-lbl, .psr2-flow { font-weight:600; }

/* 29.5.625 Accent Color Picker */
.acp-grid { display:flex; gap:10px; flex-wrap:wrap; }
.acp-swatch { width:36px; height:36px; border-radius:50%; cursor:pointer; border:3px solid transparent; transition:all 0.2s; }
.acp-swatch:hover { transform:scale(1.15); }
.acp-swatch.acp-active { border-color:var(--text); transform:scale(1.15); }

/* 29.5.626 Encrypted Note — modal only */

/* 29.5.627 Habit Annual Progress */
.hap-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); }
.hap-name { flex:0 0 120px; font-size:0.82rem; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.hap-bar-wrap { flex:1; height:10px; background:var(--border); border-radius:5px; overflow:hidden; }
.hap-bar { height:100%; background:var(--primary); border-radius:5px; transition:width 0.5s; }
.hap-pct { flex:0 0 55px; font-size:0.78rem; font-weight:600; text-align:right; color:var(--text-muted); }

/* 29.5.628 Priority Kanban */
.pkv-board { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; padding:12px; overflow-x:auto; }
@media(max-width:600px) { .pkv-board { grid-template-columns:1fr 1fr; } }
.pkv-col { background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:8px; }
.pkv-col-title { font-size:0.78rem; font-weight:700; color:var(--text-muted); text-transform:uppercase; margin-bottom:6px; }
.pkv-col-title span { font-weight:400; }
.pkv-card { background:var(--bg); border:1px solid var(--border); border-radius:5px; padding:6px 8px; font-size:0.8rem; margin-bottom:4px; }

/* 29.5.629 Focus Music Links */
.pml-row { display:flex; align-items:center; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--border); }
.pml-name { font-size:0.88rem; }

/* 29.5.630 Status Bar */
.dsb-bar { position:fixed; bottom:0; left:0; right:0; background:var(--surface); border-top:1px solid var(--border); padding:5px 16px; display:flex; gap:20px; align-items:center; font-size:0.75rem; color:var(--text-muted); z-index:999; }
.dsb-bar span { display:flex; align-items:center; gap:4px; }

/* 29.5.631 Notes Template Gallery */
.ntg-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:12px; }
.ntg-card { padding:14px; background:var(--surface); border:2px solid var(--border); border-radius:8px; cursor:pointer; font-size:0.88rem; font-weight:600; text-align:center; transition:all 0.2s; }
.ntg-card:hover { border-color:var(--primary); transform:translateY(-2px); }

/* 29.5.632 Habit Completion Sparkle */
.hca-spark { position:fixed; pointer-events:none; font-size:1.2rem; z-index:9999; animation:hcaSpark 0.8s ease forwards; }
@keyframes hcaSpark { 0%{opacity:1;transform:scale(1) translateY(0)} 100%{opacity:0;transform:scale(1.5) translateY(-30px)} }

/* 29.5.633 Priority Smart Remind */
.psmr-section { margin-bottom:14px; }
.psmr-title { font-size:0.8rem; font-weight:700; color:var(--text-muted); text-transform:uppercase; margin-bottom:6px; }
.psmr-item { padding:6px 10px; background:var(--surface); border:1px solid var(--border); border-radius:5px; font-size:0.85rem; margin-bottom:4px; }
.psmr-item.psmr-urgent { border-color:var(--error); background:color-mix(in srgb,var(--error) 8%,transparent); }

/* 29.5.634 Zone Timer Widget */
.zt-widget { position:fixed; top:70px; right:16px; background:var(--primary); color:#fff; padding:8px 14px; border-radius:20px; font-weight:700; font-size:0.9rem; z-index:1000; cursor:default; box-shadow:0 2px 12px rgba(0,0,0,0.3); }

/* 29.5.635 Dashboard Changelog */
.dcl-entry { margin-bottom:16px; }
.dcl-version { font-weight:700; font-size:0.9rem; margin-bottom:4px; }
.dcl-date { font-weight:400; color:var(--text-muted); font-size:0.78rem; }
.dcl-list { margin:0; padding-left:18px; }
.dcl-list li { font-size:0.83rem; color:var(--text-muted); margin-bottom:2px; }

/* 29.5.636 Notes Word Count Goal Bar */
.nwg-bar { position:relative; height:20px; background:var(--border); border-radius:0 0 4px 4px; overflow:hidden; margin-top:2px; }
.nwg-fill { height:100%; border-radius:inherit; transition:width 0.3s; }
.nwg-label { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:0.68rem; font-weight:600; color:var(--text); }

/* 29.5.637 Habit Color Heatmap */
.hch-row { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.hch-name { flex:0 0 100px; font-size:0.8rem; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.hch-grid { display:flex; gap:3px; flex-wrap:wrap; }
.hch-cell { width:16px; height:16px; border-radius:3px; background:var(--border); }
.hch-cell.hch-done { background:var(--success); }

/* 29.5.638 Priority Velocity */
.pvel-col { display:flex; flex-direction:column; align-items:center; gap:2px; }
.pvel-bar { width:24px; background:var(--primary); border-radius:3px 3px 0 0; min-height:4px; }
.pvel-val { font-size:0.75rem; font-weight:700; }
.pvel-day { font-size:0.65rem; color:var(--text-muted); }

/* 29.5.639 Power Hour Widget */
.pph-widget { position:fixed; top:110px; right:16px; background:color-mix(in srgb,var(--warning) 90%,#000); color:#000; padding:8px 14px; border-radius:20px; font-weight:700; font-size:0.9rem; z-index:1001; box-shadow:0 2px 12px rgba(255,165,0,0.4); }
body.pph-active { border:2px solid var(--warning); }

/* 29.5.640 Quick Actions Bar */
.qab-bar { display:flex; gap:4px; padding:6px 12px; background:var(--surface); border-bottom:1px solid var(--border); overflow-x:auto; }
.qab-btn { display:flex; flex-direction:column; align-items:center; gap:2px; padding:6px 10px; border-radius:6px; border:1px solid var(--border); background:transparent; cursor:pointer; font-size:1.1rem; transition:all 0.15s; white-space:nowrap; }
.qab-btn:hover { background:var(--primary); color:#fff; border-color:var(--primary); }
.qab-label { font-size:0.65rem; }

/* 29.5.641 Notes Paragraph Counter */
.npc-count { display:block; font-size:0.72rem; color:var(--text-muted); padding:3px 8px; text-align:right; border-top:1px solid var(--border); }

/* 29.5.642 Habit Weekend Tracker */
.hwt-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); }
.hwt-name { flex:1; font-size:0.85rem; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.hwt-wd { font-size:0.8rem; color:var(--primary); font-weight:600; }
.hwt-we { font-size:0.8rem; color:var(--warning); font-weight:600; }

/* 29.5.643 Priority Deadline Countdown */
.pdc-row { display:flex; align-items:center; justify-content:space-between; padding:9px 0; border-bottom:1px solid var(--border); gap:10px; }
.pdc-text { flex:1; font-size:0.85rem; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.pdc-days { font-weight:700; font-size:0.85rem; flex-shrink:0; }

/* 29.5.644 Pomo Streak — modal only */

/* 29.5.645 Confetti Rain Canvas */
.confetti-rain-canvas { position:fixed; inset:0; pointer-events:none; z-index:9998; }

/* 29.5.646 Quick Bullets Menu */
.qbm-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; padding:12px; }
.qbm-btn { padding:10px; border-radius:6px; border:1px solid var(--border); background:var(--surface); cursor:pointer; font-size:1rem; transition:all 0.15s; }
.qbm-btn:hover { background:var(--primary); color:#fff; border-color:var(--primary); }

/* 29.5.647 Habit Best Time */
.hbta-col { display:flex; flex-direction:column; align-items:center; gap:2px; }
.hbta-bar { width:16px; background:var(--primary); border-radius:2px 2px 0 0; min-height:2px; }
.hbta-h { font-size:0.6rem; color:var(--text-muted); }

/* 29.5.648 Priority Notes Pad — textarea modal only */

/* 29.5.649 Pomo Intention — modal only */

/* 29.5.650 Dashboard Mini Map */
.dmm-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; padding:12px; }
@media(max-width:480px) { .dmm-grid { grid-template-columns:repeat(3,1fr); } }
.dmm-item { display:flex; flex-direction:column; align-items:center; gap:4px; padding:10px 6px; border-radius:8px; border:1px solid var(--border); background:var(--surface); cursor:pointer; text-decoration:none; color:var(--text); transition:all 0.15s; }
.dmm-item:hover { background:var(--primary); color:#fff; border-color:var(--primary); }
.dmm-icon { font-size:1.3rem; }
.dmm-name { font-size:0.72rem; font-weight:600; text-align:center; }

/* 29.5.651 Notes Highlight Marker */
.nhm2-swatch { width:32px; height:32px; border-radius:50%; cursor:pointer; border:2px solid rgba(0,0,0,0.15); transition:transform 0.15s; }
.nhm2-swatch:hover { transform:scale(1.2); }

/* 29.5.652 Habit Partner — modal only */

/* 29.5.653 Bulk Complete Tasks */
.pbc2-row { display:flex; align-items:center; gap:10px; padding:7px 0; border-bottom:1px solid var(--border); font-size:0.85rem; }
.pbc2-cb { width:16px; height:16px; cursor:pointer; flex-shrink:0; }

/* 29.5.654 Pomo Rewards */
.prw-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); }
.prw-label { flex:1; font-size:0.85rem; }
.prw-cost { font-size:0.82rem; color:var(--text-muted); flex-shrink:0; }

/* 29.5.655 Daily Focus Score */
.dfs2-ring { display:flex; justify-content:center; margin-bottom:8px; }

/* 29.5.656 Voice to Text */
.vtt-status { font-size:1.1rem; font-weight:600; padding:8px 16px; border-radius:8px; border:1px solid var(--border); display:inline-block; }

/* 29.5.657 Habit Celebration */
.hcel-overlay { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; z-index:9999; pointer-events:none; }
.hcel-card { background:var(--surface); border:2px solid var(--warning); border-radius:16px; padding:24px 32px; text-align:center; box-shadow:0 8px 32px rgba(0,0,0,0.4); animation:hcelPop 0.4s cubic-bezier(0.34,1.56,0.64,1); }
.hcel-emoji { font-size:3rem; }
.hcel-msg { font-size:1.5rem; font-weight:700; color:var(--warning); margin:8px 0; }
.hcel-name { font-size:0.9rem; color:var(--text-muted); }
@keyframes hcelPop { from{opacity:0;transform:scale(0.5)} to{opacity:1;transform:scale(1)} }

/* 29.5.658 Priority Daily Digest Auto */
.pdda-row { padding:7px 10px; border-radius:5px; border:1px solid var(--border); background:var(--surface); font-size:0.85rem; margin-bottom:4px; }
.pdda-row.pdda-urgent { border-color:var(--error); background:color-mix(in srgb,var(--error) 8%,transparent); }

/* 29.5.659 Motivation Booster — modal only */

/* 29.5.660 Dashboard Insights */
.din-item { padding:10px 14px; border-radius:8px; background:var(--surface); border:1px solid var(--border); font-size:0.9rem; margin-bottom:8px; }

/* 29.5.661 Flashcard Mode */
.fc-card { margin:12px; padding:24px; background:var(--surface); border:2px solid var(--border); border-radius:12px; cursor:pointer; min-height:100px; display:flex; align-items:center; justify-content:center; text-align:center; font-size:1rem; line-height:1.6; transition:all 0.3s; }
.fc-card:hover { border-color:var(--primary); }
.fc-back { color:var(--primary); }

/* 29.5.662 Perfect Week Badge — modal only */

/* 29.5.663 Priority Parking Lot */
.ppl-section { margin-bottom:12px; }
.ppl-title { font-size:0.75rem; font-weight:700; color:var(--text-muted); text-transform:uppercase; margin-bottom:6px; }
.ppl-row { display:flex; align-items:center; gap:8px; padding:7px 0; border-bottom:1px solid var(--border); font-size:0.85rem; }
.ppl-row span { flex:1; }

/* 29.5.664 Pomo Playlist Builder */
.ppb-add { display:flex; gap:6px; margin-bottom:6px; }
.ppb-row { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:1px solid var(--border); }
.ppb-track { flex:1; font-size:0.85rem; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }

/* 29.5.665 Clock Alarm Manager */
.cam-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); }
.cam-time { font-weight:700; font-size:0.9rem; font-family:monospace; flex-shrink:0; }
.cam-label { flex:1; font-size:0.85rem; color:var(--text-muted); }

/* 29.5.666 Notes Mindmap — SVG modal only */

/* 29.5.667 Habit Completion Certificate — pre modal only */

/* 29.5.668 Priority Sprint Planning */
.psp-row { display:flex; align-items:center; gap:10px; padding:7px 0; border-bottom:1px solid var(--border); font-size:0.85rem; }
.psp-cb { width:16px; height:16px; cursor:pointer; flex-shrink:0; }

/* 29.5.669 Pomo Session Timeline */
.pst2-timeline { padding:12px; }
.pst2-item { display:flex; gap:12px; align-items:flex-start; padding:8px 0; }
.pst2-dot { width:12px; height:12px; border-radius:50%; background:var(--primary); flex-shrink:0; margin-top:4px; }
.pst2-info { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.pst2-time { font-weight:700; font-size:0.85rem; font-family:monospace; }
.pst2-lbl { font-size:0.85rem; }
.pst2-dur { font-size:0.78rem; color:var(--text-muted); }

/* 29.5.670 App Shortcuts */
.aps-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; padding:12px; }
.aps-item { display:flex; flex-direction:column; align-items:center; gap:6px; padding:12px 8px; border-radius:10px; border:1px solid var(--border); background:var(--surface); cursor:pointer; text-decoration:none; color:var(--text); transition:all 0.15s; }
.aps-item:hover { background:var(--primary); color:#fff; border-color:var(--primary); transform:translateY(-2px); }
.aps-icon { font-size:1.5rem; }
.aps-name { font-size:0.78rem; font-weight:600; }

/* 29.5.672: Habit Completion Note */
.hcn-row { padding: 10px 0; border-bottom: 1px solid var(--border); }
.hcn-habit { font-weight: 600; color: var(--primary); display: block; }
.hcn-date { font-size: 11px; color: var(--text-dim); display: block; margin-bottom: 4px; }
.hcn-note { margin: 0; font-size: 13px; color: var(--text); white-space: pre-wrap; }
/* 29.5.673: Priority Progress Widget */
.ppw-widget { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ppw-label { font-size: 13px; font-weight: 600; white-space: nowrap; }
.ppw-bar-wrap { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.ppw-bar-fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width .4s; }
.ppw-pct { font-size: 12px; color: var(--text-dim); white-space: nowrap; }
/* 29.5.675: Date Navigator */
.dnav-stats { display: flex; gap: 12px; justify-content: center; margin-top: 4px; }
.dnav-stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 14px 20px; text-align: center; flex: 1; }
.dnav-val { font-size: 28px; font-weight: 700; color: var(--primary); display: block; }
.dnav-lbl { font-size: 12px; color: var(--text-dim); display: block; margin-top: 4px; }

/* 29.5.676: Notes Reading Time */
.nrt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nrt-stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 14px; text-align: center; }
.nrt-val { font-size: 22px; font-weight: 700; color: var(--primary); display: block; }
.nrt-lbl { font-size: 11px; color: var(--text-dim); display: block; margin-top: 4px; }
.nrt-highlight { border-color: var(--primary); }
/* 29.5.677: Habit Completion Calendar */
.hcc-table { border-collapse: collapse; font-size: 11px; }
.hcc-table th, .hcc-table td { border: 1px solid var(--border); padding: 4px 6px; }
.hcc-day { color: var(--text-dim); font-weight: normal; min-width: 22px; text-align: center; }
.hcc-name { white-space: nowrap; font-weight: 600; color: var(--text); padding-right: 10px; }
.hcc-cell { text-align: center; color: var(--text-dim); }
.hcc-done { background: var(--primary); color: #fff; font-weight: 700; border-radius: 3px; }
/* 29.5.678: Priority Tag Filter */
.ptf-wrap { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0; }
.ptf-tag { background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px; padding: 5px 12px; font-size: 13px; cursor: pointer; color: var(--text); transition: background .2s; }
.ptf-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.ptf-tag.ptf-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.ptf-count { opacity: .6; font-size: 11px; }
/* 29.5.679: Pomo Sound Visualizer */
.psv-bars { display: flex; align-items: flex-end; gap: 3px; height: 28px; padding: 4px 0; justify-content: center; }
.psv-bar { width: 4px; height: 4px; background: var(--primary); border-radius: 2px; transition: height .1s; }
/* 29.5.680: Dashboard Quick Help */
.dqh-btn { position: fixed; bottom: 70px; right: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: 16px; font-weight: 700; cursor: pointer; z-index: 900; display: flex; align-items: center; justify-content: center; }
.dqh-btn:hover { background: var(--primary); color: #fff; }
.dqh-tip { position: absolute; background: var(--surface); border: 1px solid var(--primary); border-radius: 8px; padding: 8px 12px; font-size: 12px; max-width: 240px; z-index: 950; box-shadow: 0 4px 12px rgba(0,0,0,.4); cursor: pointer; color: var(--text); }

/* 29.5.681: Notes Heading Navigator */
.nhn-item { padding: 8px 10px; cursor: pointer; border-radius: 6px; font-size: 13px; transition: background .15s; }
.nhn-item:hover { background: var(--surface-2); }
.nhn-marker { color: var(--primary); font-weight: 700; font-family: monospace; }
/* 29.5.682: Habit Skip Tracker */
.hsr-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.hsr-btn { background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px; font-size: 13px; cursor: pointer; color: var(--text); transition: background .15s; }
.hsr-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.hsr-log-row { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.hsr-log-name { font-weight: 600; color: var(--primary); flex: 1; }
.hsr-log-date { color: var(--text-dim); font-size: 11px; white-space: nowrap; }
.hsr-log-reason { color: var(--text-dim); font-size: 12px; }
/* 29.5.684: Pomo Goal Tracker */
.pgt-ring-wrap { display: flex; justify-content: center; margin-bottom: 8px; }

/* 29.5.686: Footnote Manager */
.fnm-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.fnm-num { color: var(--primary); font-weight: 700; font-size: 13px; white-space: nowrap; }
.fnm-text { flex: 1; font-size: 13px; color: var(--text); }
.fnm-del { background: none; border: none; color: var(--error); cursor: pointer; font-size: 14px; padding: 2px 6px; }
/* 29.5.687: Habit Monthly Report */
.hmr-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.hmr-name { flex: 0 0 120px; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hmr-bar-wrap { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.hmr-bar-fill { height: 100%; background: var(--primary); border-radius: 4px; }
.hmr-stat { font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.hmr-grade { font-weight: 700; font-size: 13px; padding: 2px 6px; border-radius: 4px; }
.hmr-grade-s { background: #ffd700; color: #000; }
.hmr-grade-a { background: var(--success); color: #fff; }
.hmr-grade-b { background: var(--primary); color: #fff; }
.hmr-grade-c { background: var(--warning); color: #000; }
.hmr-grade-d { background: var(--error); color: #fff; }
/* 29.5.689: Break Activity Suggester */
.bas-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin: 8px 0; }
.bas-text { font-size: 18px; font-weight: 600; color: var(--text); }

/* 29.5.691: Notes Autosave Options */
.nas-active { border-color: var(--primary) !important; color: var(--primary) !important; }
/* 29.5.692: Streak Shield */
.hss-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.hss-name { flex: 1; font-size: 13px; font-weight: 600; }
.hss-streak { font-size: 12px; color: var(--text-dim); }
.hss-used { font-size: 12px; color: var(--success); }
.hss-btn { font-size: 12px; padding: 4px 10px; }
/* 29.5.693: Weekly Digest */
.pwd-row { padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.pwd-done { color: var(--success); }
/* 29.5.694: Pomo Stats Comparison */
.psc-grid { display: flex; align-items: center; gap: 12px; justify-content: center; text-align: center; }
.psc-col { flex: 1; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 16px 12px; }
.psc-head { font-size: 12px; color: var(--text-dim); margin: 0 0 8px; }
.psc-big { font-size: 32px; font-weight: 700; color: var(--primary); display: block; }
.psc-sub { font-size: 11px; color: var(--text-dim); display: block; }
.psc-trend { font-size: 18px; font-weight: 700; color: var(--text); }
/* 29.5.695: Clock Style Picker */
.csp-btn { margin-bottom: 0; }
.csp-active { border-color: var(--primary) !important; color: var(--primary) !important; }
.clock-minimal { font-size: 14px; font-weight: 300; }
.clock-bold { font-size: 18px; font-weight: 900; letter-spacing: 2px; }
.clock-mono { font-family: monospace; font-size: 16px; }

/* 29.5.696: Character Inserter */
.nci-group { margin-bottom: 10px; }
.nci-label { font-size: 11px; color: var(--text-dim); display: block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.nci-row { display: flex; flex-wrap: wrap; gap: 4px; }
.nci-char { background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 4px 8px; font-size: 16px; cursor: pointer; transition: background .15s; }
.nci-char:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
/* 29.5.697: Habit Quant Goals */
.hqg-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.hqg-name { flex: 1; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hqg-input { width: 60px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 4px; padding: 4px 6px; font-size: 13px; }
.hqg-unit { width: 70px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 4px; padding: 4px 6px; font-size: 12px; }
/* 29.5.698: Bulk Tag Editor */
.pbte-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.pbte-text { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbte-tags { font-size: 11px; color: var(--primary); white-space: nowrap; }
/* 29.5.699: Pomo Label Browser */
.plb-section { border-bottom: 1px solid var(--border); cursor: pointer; }
.plb-head { display: flex; justify-content: space-between; padding: 10px 0; }
.plb-label { font-weight: 600; font-size: 13px; }
.plb-count { font-size: 12px; color: var(--text-dim); }
.plb-row { display: flex; justify-content: space-between; padding: 5px 12px; font-size: 12px; color: var(--text-dim); }
.plb-date { color: var(--text); }
.plb-dur { color: var(--primary); }
/* 29.5.700: Achievement Popups */
.ach-popup { position: fixed; top: 20px; right: 20px; background: linear-gradient(135deg, var(--primary), #8b5cf6); color: #fff; border-radius: 12px; padding: 14px 20px; z-index: 9999; transform: translateX(120%); transition: transform .4s; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.ach-popup.ach-show { transform: translateX(0); }
.ach-title { display: block; font-size: 11px; font-weight: 700; opacity: .8; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.ach-label { display: block; font-size: 16px; font-weight: 700; }
.ach-row { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.ach-earned { color: var(--success); }
.ach-locked { color: var(--text-dim); opacity: .5; }

/* 29.5.701: Code Block Formatter */
.cbf-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.cbf-btn { font-family: monospace; padding: 5px 12px; font-size: 12px; }
/* 29.5.702: Habit Sound Library */
.hsl2-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.hsl2-active { background: var(--surface-2); border-radius: 6px; padding-left: 8px; }
.hsl2-sel { border-color: var(--success) !important; color: var(--success) !important; }
/* 29.5.703: Priority Time Tracker */
.ptr-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); }
.ptr-text { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 8px; }
.ptr-mins { font-size: 12px; color: var(--primary); font-weight: 600; white-space: nowrap; }
/* 29.5.704: Pomo Energy Logger */
.pel-grid { display: flex; flex-direction: column; gap: 6px; }
.pel-btn { text-align: left; padding: 10px 14px; font-size: 14px; }
.per-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.per-lbl { flex: 0 0 110px; font-size: 12px; }
.per-bar-wrap { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.per-bar { height: 100%; background: var(--primary); border-radius: 4px; }
.per-count { font-size: 12px; color: var(--text-dim); width: 24px; text-align: right; }
/* 29.5.705: Wallpaper Picker */
.wp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wp-item { height: 60px; border-radius: 8px; display: flex; align-items: flex-end; padding: 6px; cursor: pointer; border: 2px solid transparent; transition: border-color .2s; }
.wp-item:hover, .wp-item.wp-active { border-color: var(--primary); }
.wp-label { font-size: 11px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); }

/* 29.5.706: Notes Search History */
.nsh-item { display: flex; align-items: center; gap: 8px; padding: 8px 4px; cursor: pointer; border-radius: 6px; font-size: 13px; transition: background .15s; }
.nsh-item:hover { background: var(--surface-2); }
.nsh-icon { color: var(--text-dim); }
/* 29.5.707: Habit Comparison */
.hcmp-grid { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; text-align: center; }
.hcmp-col { flex: 1; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 14px 8px; }
.hcmp-name { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hcmp-big { display: block; font-size: 32px; font-weight: 700; color: var(--primary); }
.hcmp-sub { display: block; font-size: 11px; color: var(--text-dim); }
.hcmp-vs { font-size: 13px; font-weight: 700; white-space: nowrap; }
/* 29.5.708: Focus Queue */
.pfq-task { font-size: 20px; font-weight: 700; color: var(--text); padding: 20px; background: var(--surface-2); border-radius: 10px; margin: 8px 0; line-height: 1.4; }
.pfq-done { background: var(--success) !important; border-color: var(--success) !important; color: #fff !important; }
/* 29.5.709: Session Rater */
.psr3-stars { display: flex; justify-content: center; gap: 8px; font-size: 32px; }
.psr3-star { background: none; border: none; cursor: pointer; color: var(--text-dim); font-size: 32px; transition: color .15s, transform .15s; }
.psr3-star:hover { color: #ffd700; transform: scale(1.2); }
.prs-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12px; }
.prs-bar-wrap { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.prs-bar { height: 100%; background: #ffd700; border-radius: 4px; }

/* 29.5.711: Notes Pinned Lines */
.npl-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.npl-text { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.npl-del { background: none; border: none; color: var(--error); cursor: pointer; font-size: 14px; padding: 2px 6px; }
/* 29.5.712: Habit Combo Streaks */
.hcbs-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.hcbs-name { flex: 1; font-size: 13px; font-weight: 600; }
.hcbs-streak { font-size: 14px; font-weight: 700; color: var(--primary); }
.hcbs-del { background: none; border: none; color: var(--error); cursor: pointer; font-size: 14px; }
/* 29.5.714: Pomo Lap Counter */
.plap-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.plap-num { font-weight: 600; color: var(--primary); flex: 0 0 60px; }
.plap-ts { color: var(--text-dim); flex: 0 0 80px; }
.plap-diff { color: var(--warning); flex: 0 0 60px; }
.plap-total { color: var(--text); font-weight: 600; }
/* 29.5.715: Import Data */
.idd-warn { background: var(--error) !important; border-color: var(--error) !important; color: #fff !important; }

/* 29.5.716: Notes Writing Streak */
.nws-ring { font-size: 48px; margin: 10px 0; }
.nws-big { font-size: 36px; font-weight: 700; color: var(--primary); margin: 0; }
/* 29.5.717: Habit Emoji Customizer */
.hec-row { border-bottom: 1px solid var(--border); padding: 8px 0; }
.hec-name { font-size: 13px; font-weight: 600; display: block; margin-bottom: 6px; }
.hec-emojis { display: flex; flex-wrap: wrap; gap: 4px; }
.hec-emoji { background: none; border: 1px solid var(--border); border-radius: 6px; padding: 4px 6px; font-size: 16px; cursor: pointer; transition: background .15s; }
.hec-emoji:hover { background: var(--surface-2); }
.hec-sel { background: var(--primary) !important; border-color: var(--primary) !important; }
/* 29.5.718: Priority Duplication */
.pdup-row { display: flex; align-items: center; gap: 8px; padding: 8px; border-bottom: 1px solid var(--border); cursor: pointer; border-radius: 6px; transition: background .15s; }
.pdup-row:hover { background: var(--surface-2); }
.pdup-text { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdup-badge { font-size: 11px; color: var(--text-dim); padding: 2px 6px; background: var(--surface-2); border-radius: 10px; }
/* 29.5.719: Weekend Stats */
.pws-grid { display: flex; gap: 12px; text-align: center; }
.pws-col { flex: 1; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 16px 12px; }
.pws-head { font-size: 13px; color: var(--text-dim); margin: 0 0 8px; }
.pws-big { font-size: 32px; font-weight: 700; color: var(--primary); display: block; }
.pws-sub { font-size: 11px; color: var(--text-dim); display: block; }
/* 29.5.720: Notification Log */
.nlog-item { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.nlog-ts { color: var(--text-dim); font-size: 11px; white-space: nowrap; flex-shrink: 0; }
.nlog-msg { color: var(--text); flex: 1; }

/* 29.5.721: Timestamp Inserter */
.tsi-btn { width: 100%; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; text-align: left; }
.tsi-label { font-weight: 600; }
.tsi-val { font-size: 12px; color: var(--text-dim); font-family: monospace; }
/* 29.5.722: If-Then Planner */
.itp-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.itp-text { flex: 1; font-size: 13px; }
.itp-del { background: none; border: none; color: var(--error); cursor: pointer; font-size: 14px; }
/* 29.5.723: Due Today Filter */
.dtf-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.dtf-text { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dtf-tag { font-size: 11px; padding: 2px 6px; border-radius: 10px; background: var(--surface-2); color: var(--text-dim); }
.dtf-late { background: var(--error) !important; color: #fff !important; }
/* 29.5.724: Distraction Logger */
.dlog-grid { display: flex; flex-direction: column; gap: 6px; }
.dlog-btn { text-align: left; padding: 9px 14px; }
.dlog-rep-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.dlog-rep-count { font-weight: 700; color: var(--warning); }
/* 29.5.725: Link Manager */
.nlm-row { display: flex; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.nlm-title { font-weight: 600; flex: 0 0 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nlm-url { flex: 1; color: var(--text-dim); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nlm-ins { padding: 3px 8px; font-size: 11px; }
.nlm-del { background: none; border: none; color: var(--error); cursor: pointer; font-size: 14px; }

/* === 29.5.726-730 CSS === */
.nwf-bar-row { display:flex; align-items:center; gap:8px; margin:4px 0; }
.nwf-word { min-width:80px; font-size:12px; color:var(--text); }
.nwf-bar { height:14px; background:var(--primary); border-radius:4px; transition:width 0.3s; }
.nwf-count { font-size:11px; color:var(--text-muted); }
.hcf-row { display:flex; justify-content:space-between; align-items:center; padding:6px 0; border-bottom:1px solid var(--border); }
.hcf-name { font-size:13px; color:var(--text); flex:1; }
.hcf-rate { font-size:12px; color:var(--text-muted); margin:0 8px; }
.hcf-pred { font-size:12px; font-weight:600; color:var(--primary); }
.ptz-item { margin:10px 0; padding:8px; background:var(--surface); border-radius:8px; }
.ptz-title { font-size:13px; font-weight:600; color:var(--text); margin-bottom:6px; }
.ptz-zones { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; }
.ptz-cell { font-size:11px; padding:4px 6px; background:var(--bg); border-radius:4px; }
.ptz-tz { color:var(--text-muted); display:block; }
.ptz-time { color:var(--text); font-weight:600; }
.pio-opt { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:10px 0; }
.pio-btn { padding:10px; background:var(--surface); border:1px solid var(--border); border-radius:8px; cursor:pointer; text-align:center; font-size:12px; }
.pio-btn:hover, .pio-btn.active { border-color:var(--primary); background:var(--primary-10,rgba(99,102,241,0.1)); }
.pio-label { font-weight:600; color:var(--text); margin-bottom:2px; }
.pio-desc { color:var(--text-muted); font-size:11px; }
pre.nom-content { background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:12px; font-family:monospace; font-size:13px; line-height:1.8; overflow-x:auto; white-space:pre-wrap; color:var(--text); }

/* === 29.5.731-735 CSS === */
.nsh-row { display:flex; justify-content:space-between; align-items:center; padding:5px 0; border-bottom:1px solid var(--border); }
.nsh-word { font-size:13px; color:var(--text); font-family:monospace; }
.nsh-count { font-size:11px; color:var(--text-muted); background:var(--surface); padding:2px 6px; border-radius:10px; }
.hwt-row { display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-bottom:1px solid var(--border); }
.hwt-name { font-size:13px; color:var(--text); }
.hwt-sel { background:var(--surface); color:var(--text); border:1px solid var(--border); border-radius:6px; padding:4px 8px; font-size:12px; }
.pes-row { display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-bottom:1px solid var(--border); }
.pes-title { font-size:12px; color:var(--text); flex:1; }
.pes-stars { display:flex; gap:4px; }
.pes-star { cursor:pointer; font-size:16px; opacity:0.3; }
.pes-star.active { opacity:1; }
.ptd-row { display:flex; align-items:center; gap:8px; margin:5px 0; }
.ptd-label { min-width:45px; font-size:12px; color:var(--text-muted); }
.ptd-bar { height:16px; background:var(--primary); border-radius:4px; transition:width 0.3s; min-width:4px; }
.ptd-count { font-size:12px; color:var(--text); }
body.zen-mode { --sidebar-width:0px; }
body.zen-mode #main-content { margin-left:0 !important; width:100% !important; }
body.zen-mode .page-content { max-width:900px; margin:0 auto; padding:20px; }

/* === 29.5.736-740 CSS === */
.ngt-tip { background:var(--surface); border-left:3px solid var(--primary); padding:12px 16px; border-radius:0 8px 8px 0; font-size:14px; line-height:1.6; color:var(--text); }
.hpm-row { display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-bottom:1px solid var(--border); }
.hpm-name { font-size:13px; color:var(--text); }
.hpm-btn { padding:5px 12px; border:1px solid var(--border); border-radius:6px; background:var(--surface); color:var(--text); cursor:pointer; font-size:12px; }
.hpm-btn.paused { border-color:var(--primary); color:var(--primary); }
.prf-row { padding:8px 0; border-bottom:1px solid var(--border); }
.prf-title { display:block; font-size:12px; color:var(--text); margin-bottom:4px; }
.prf-flags { font-size:11px; color:var(--warning); }
.pmt-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); }
.pmt-row.done .pmt-label { color:var(--text-muted); }
.pmt-icon { font-size:18px; }
.pmt-label { flex:1; font-size:13px; color:var(--text); }
.pmt-badge { font-size:11px; color:var(--success); font-weight:600; }
.pmt-left { font-size:11px; color:var(--text-muted); }
.pmt-total { padding:10px 0 14px; font-size:13px; color:var(--text); }
.nrp-prompt { background:var(--surface); border-radius:8px; padding:16px; font-size:14px; line-height:1.6; color:var(--text); font-style:italic; border:1px solid var(--border); }

/* === 29.5.741-745 CSS === */
.nsc-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:10px; }
.nsc-cell { background:var(--surface); border-radius:8px; padding:12px; text-align:center; }
.nsc-val { display:block; font-size:24px; font-weight:700; color:var(--primary); }
.nsc-lbl { display:block; font-size:11px; color:var(--text-muted); margin-top:4px; }
.hcrg-row { display:flex; align-items:center; gap:8px; margin:6px 0; }
.hcrg-name { min-width:100px; font-size:12px; color:var(--text); }
.hcrg-bar-wrap { flex:1; height:14px; background:var(--surface); border-radius:7px; overflow:hidden; }
.hcrg-bar { height:100%; background:var(--primary); border-radius:7px; transition:width 0.5s; }
.hcrg-pct { min-width:36px; font-size:12px; color:var(--text-muted); text-align:right; }
.pcl-row { display:flex; align-items:center; gap:8px; padding:7px 0; border-bottom:1px solid var(--border); }
.pcl-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.pcl-title { flex:1; font-size:12px; color:var(--text); }
.pcl-swatches { display:flex; gap:4px; flex-wrap:wrap; }
.pcl-swatch { width:18px; height:18px; border-radius:4px; cursor:pointer; transition:transform 0.15s; }
.pcl-swatch:hover { transform:scale(1.2); }
.pcl-swatch.sel { outline:2px solid var(--text); }
.pfr-ring-wrap { position:relative; display:flex; justify-content:center; margin:16px 0 8px; }
.pfr-pct { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); text-align:center; font-size:18px; font-weight:700; color:var(--primary); line-height:1.2; }
.pfr-pct small { font-size:11px; color:var(--text-muted); font-weight:400; }

/* === 29.5.746-750 CSS === */
.nvs-row { display:flex; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid var(--border); }
.nvs-date { flex:1; font-size:12px; color:var(--text); }
.nvs-len { font-size:11px; color:var(--text-muted); }
.nvs-btn { padding:4px 10px; background:var(--surface); border:1px solid var(--border); border-radius:6px; cursor:pointer; font-size:11px; color:var(--primary); }
.hj-entry { margin:10px 0; padding:10px; background:var(--surface); border-radius:8px; }
.hj-date { font-size:11px; color:var(--text-muted); display:block; margin-bottom:4px; }
.hj-text { margin:0; font-size:13px; color:var(--text); line-height:1.5; }
.hjp-row { padding:10px 12px; cursor:pointer; border-radius:8px; font-size:14px; color:var(--text); }
.hjp-row:hover { background:var(--surface); }
.pbdd-row { display:flex; align-items:center; gap:8px; padding:7px 0; border-bottom:1px solid var(--border); }
.pbdd-cb { cursor:pointer; }
.pbdd-title { flex:1; font-size:12px; color:var(--text); }
.pbdd-due { font-size:11px; color:var(--text-muted); min-width:75px; text-align:right; }
.psn-entry { margin:8px 0; padding:10px; background:var(--surface); border-radius:8px; }
.psn-date { font-size:11px; color:var(--text-muted); display:block; margin-bottom:4px; }
.psn-note { margin:0; font-size:13px; color:var(--text); line-height:1.5; }
.mini-stats-bar { display:flex; gap:14px; margin-left:auto; align-items:center; padding:0 8px; }
.msb-item { font-size:12px; color:var(--text-muted); white-space:nowrap; }

/* === 29.5.751-755 CSS === */
.nsd-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-top:12px; }
.nsd-cell { background:var(--surface); border-radius:8px; padding:10px 6px; text-align:center; }
.nsd-val { display:block; font-size:18px; font-weight:700; color:var(--primary); }
.nsd-lbl { display:block; font-size:10px; color:var(--text-muted); margin-top:3px; }
.hcp-vs { display:flex; align-items:center; gap:12px; margin:8px 0; }
.hcp-side { flex:1; text-align:center; }
.hcp-emoji { font-size:28px; }
.hcp-name { font-size:12px; color:var(--text); margin:4px 0; }
.hcp-count { font-size:22px; font-weight:700; color:var(--primary); }
.hcp-sep { font-size:16px; font-weight:700; color:var(--text-muted); }
.pbdf-chart { display:flex; align-items:flex-end; gap:8px; height:110px; padding:0 4px; border-bottom:1px solid var(--border); }
.pbdf-col { display:flex; flex-direction:column; align-items:center; flex:1; gap:2px; }
.pbdf-col.best .pbdf-bar { background:var(--primary); }
.pbdf-bar { width:100%; background:var(--border); border-radius:4px 4px 0 0; transition:height 0.5s; min-height:4px; }
.pbdf-day { font-size:10px; color:var(--text-muted); }
.pbdf-cnt { font-size:11px; color:var(--text); font-weight:600; }
.tpp-card { display:flex; justify-content:space-between; align-items:center; padding:10px 12px; margin:6px 0; background:var(--surface); border-radius:8px; cursor:pointer; }
.tpp-card:hover { opacity:0.85; }
.tpp-name { font-size:13px; color:var(--text); font-weight:500; }
.tpp-dots { display:flex; gap:4px; }
.tpp-dots span { width:16px; height:16px; border-radius:50%; border:1px solid rgba(255,255,255,0.1); }

/* === 29.5.756-760 CSS === */
.nfv-heading { font-weight:700; font-size:14px; color:var(--primary); padding:5px 0; cursor:pointer; display:flex; align-items:center; gap:6px; }
.nfv-line { font-size:13px; color:var(--text); padding:2px 8px; line-height:1.5; }
.nfv-fold-icon { font-size:10px; color:var(--text-muted); transition:transform 0.2s; }
.hxf-row { display:flex; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid var(--border); }
.hxf-emoji { font-size:20px; }
.hxf-name { flex:1; font-size:13px; color:var(--text); }
.hxf-streak { font-size:12px; color:var(--text-muted); min-width:32px; }
.hxf-rate { font-size:12px; color:var(--text-muted); min-width:36px; text-align:right; }
.hxf-score { font-size:13px; font-weight:700; color:var(--primary); min-width:48px; text-align:right; }
.pmp-row { display:flex; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid var(--border); }
.pmp-row.done .pmp-title { text-decoration:line-through; color:var(--text-muted); }
.pmp-icon { font-size:16px; }
.pmp-title { flex:1; font-size:13px; color:var(--text); }
.pmp-date { font-size:11px; color:var(--text-muted); }
.pmp-btn { padding:3px 8px; background:var(--surface); border:1px solid var(--border); border-radius:6px; cursor:pointer; font-size:11px; color:var(--text); }
.phs-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:12px; }
.phs-cell { background:var(--surface); border-radius:8px; padding:12px 6px; text-align:center; }
.phs-emoji { display:block; font-size:22px; margin-bottom:4px; }
.phs-val { display:block; font-size:20px; font-weight:700; color:var(--primary); }
.phs-lbl { display:block; font-size:10px; color:var(--text-muted); margin-top:2px; }

/* === 29.5.761-765 CSS === */
.hd-row { display:flex; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid var(--border); }
.hd-name { flex:1; font-size:13px; color:var(--text); }
.hd-dep { font-size:11px; color:var(--text-muted); min-width:60px; }
.hd-sel { background:var(--surface); color:var(--text); border:1px solid var(--border); border-radius:6px; padding:3px 6px; font-size:11px; }
.pce-card { text-align:center; padding:16px; }
.pce-big { font-size:48px; margin-bottom:8px; }
.pce-txt { font-size:14px; color:var(--text); margin:8px 0; line-height:1.5; }
.pce-disclaimer { font-size:10px; color:var(--text-muted); margin-top:12px; }
.ksl-row { display:flex; align-items:center; gap:12px; padding:8px 0; border-bottom:1px solid var(--border); }
kbd.ksl-key { background:var(--surface); border:1px solid var(--border); border-radius:5px; padding:3px 8px; font-size:12px; color:var(--primary); font-family:monospace; white-space:nowrap; }
.ksl-desc { font-size:13px; color:var(--text); }

/* === 29.5.766-770 CSS === */
.nre-row { padding:7px 0; border-bottom:1px solid var(--border); }
.nre-time { display:block; font-size:10px; color:var(--text-muted); margin-bottom:2px; }
.nre-preview { font-size:12px; color:var(--text); font-family:monospace; display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hms-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:10px 0; }
.hms-cell { background:var(--surface); border-radius:8px; padding:12px; text-align:center; }
.hms-val { display:block; font-size:22px; font-weight:700; color:var(--primary); }
.hms-lbl { display:block; font-size:11px; color:var(--text-muted); margin-top:4px; }
.pstag-section { margin:10px 0; }
.pstag-header { font-size:13px; font-weight:700; color:var(--primary); padding:6px 0; display:flex; align-items:center; gap:6px; }
.pstag-count { background:var(--primary); color:#fff; font-size:10px; padding:1px 6px; border-radius:10px; font-weight:400; }
.pstag-item { font-size:12px; color:var(--text); padding:5px 12px; border-bottom:1px solid var(--border); }
.pdfo-timer { font-size:72px; font-family:monospace; color:#fff; font-weight:700; letter-spacing:4px; text-shadow:0 0 30px rgba(99,102,241,0.8); }

/* === 29.5.771-775 CSS === */
.npc-row { display:flex; justify-content:space-between; align-items:center; padding:6px 0; border-bottom:1px solid var(--border); }
.npc-phrase { font-size:13px; color:var(--text); font-style:italic; }
.npc-cnt { font-size:12px; color:var(--primary); font-weight:600; }
.hlsr-row { display:flex; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid var(--border); }
.hlsr-rank { font-size:11px; color:var(--text-muted); min-width:22px; }
.hlsr-emoji { font-size:18px; }
.hlsr-name { flex:1; font-size:13px; color:var(--text); }
.hlsr-streak { font-size:14px; font-weight:700; color:var(--primary); }
.hlsr-crown { font-size:16px; }
.pst-row { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:1px solid var(--border); }
.pst-text { flex:1; font-size:13px; color:var(--text); }
.pst-text.done { text-decoration:line-through; color:var(--text-muted); }
.pst-del { background:none; border:none; color:var(--text-muted); cursor:pointer; font-size:14px; padding:0 4px; }
.plac-item { padding:10px 12px; cursor:pointer; border-radius:8px; font-size:13px; color:var(--text); }
.plac-item:hover { background:var(--surface); }
.dtw-widget { border-bottom:1px solid var(--border); background:var(--bg); }
.dtw-bar { display:flex; align-items:center; gap:6px; padding:6px 16px; flex-wrap:wrap; }
.dtw-item { font-size:11px; padding:3px 8px; background:var(--surface); border-radius:12px; cursor:pointer; color:var(--text); }
.dtw-item.done { text-decoration:line-through; color:var(--text-muted); }
.dtw-input { flex:1; min-width:120px; padding:4px 8px; background:var(--surface); color:var(--text); border:1px solid var(--border); border-radius:6px; font-size:11px; }
.dtw-btn { padding:4px 8px; background:var(--primary); color:#fff; border:none; border-radius:6px; cursor:pointer; font-size:12px; }

/* === 29.5.776-780 CSS === */
.htg-row { display:flex; align-items:center; gap:8px; margin:5px 0; }
.htg-name { min-width:100px; font-size:12px; color:var(--text); }
.htg-cells { display:flex; gap:4px; }
.htg-cell { width:24px; height:24px; border-radius:4px; background:var(--border); }
.htg-cell.done { background:var(--primary); }
.htg-day-row { display:flex; gap:4px; margin-bottom:4px; padding-left:108px; }
.htg-day-lbl { width:24px; font-size:10px; color:var(--text-muted); text-align:center; }
.pem-section { margin:10px 0; }
.pem-header { font-size:13px; font-weight:700; color:var(--text); margin-bottom:6px; display:flex; align-items:center; gap:8px; }
.pem-desc { font-size:11px; color:var(--text-muted); font-weight:400; }
.pem-item { font-size:12px; color:var(--text); padding:5px 8px; border-bottom:1px solid var(--border); }
.pem-empty { font-size:12px; color:var(--text-muted); padding:5px 8px; }
.ct-total { text-align:center; margin:12px 0; }
.ct-val { display:block; font-size:32px; font-weight:700; color:var(--primary); }
.ct-lbl { font-size:12px; color:var(--text-muted); }
.ct-btns { display:flex; flex-wrap:wrap; gap:6px; margin:12px 0; }
.ct-btn { padding:6px 10px; background:var(--surface); border:1px solid var(--border); border-radius:8px; cursor:pointer; font-size:12px; color:var(--text); }
.ct-btn:hover { border-color:var(--primary); }
.ct-entry { font-size:11px; color:var(--text-muted); padding:3px 0; }
.ctp-btn { display:flex; align-items:center; gap:8px; width:100%; padding:10px 12px; background:var(--surface); border:1px solid var(--border); border-radius:8px; cursor:pointer; font-size:13px; color:var(--text); margin:4px 0; }
.ctp-btn.active { border-color:var(--primary); }

/* === 29.5.781-785 CSS === */
.abm-row { display:flex; align-items:center; gap:8px; padding:7px 0; border-bottom:1px solid var(--border); }
.abm-key { font-family:monospace; font-size:13px; color:var(--primary); min-width:60px; }
.abm-arrow { color:var(--text-muted); }
.abm-val { flex:1; font-size:12px; color:var(--text); }
.abm-del { background:none; border:none; color:var(--text-muted); cursor:pointer; font-size:14px; }
.hws-row { display:flex; align-items:center; gap:8px; margin:6px 0; }
.hws-emoji { font-size:18px; }
.hws-name { min-width:90px; font-size:12px; color:var(--text); }
.hws-bar-wrap { flex:1; height:14px; background:var(--border); border-radius:7px; overflow:hidden; }
.hws-bar { height:100%; background:var(--primary); border-radius:7px; transition:width 0.5s; }
.hws-score { font-size:12px; color:var(--text-muted); min-width:40px; text-align:right; }
.pta-row { display:flex; align-items:center; gap:8px; margin:5px 0; }
.pta-tag { font-size:12px; color:var(--primary); min-width:80px; font-weight:600; }
.pta-bar-wrap { flex:1; height:12px; background:var(--border); border-radius:6px; overflow:hidden; }
.pta-bar { height:100%; background:var(--primary); border-radius:6px; }
.pta-stats { font-size:11px; color:var(--text-muted); min-width:36px; text-align:center; }
.pta-pct { font-size:12px; color:var(--text); min-width:36px; text-align:right; }
.prd-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:12px 0; }
.prd-cell { background:var(--surface); border-radius:8px; padding:12px; text-align:center; }
.prd-cell.prd-debt { border:1px solid var(--warning); }
.prd-val { display:block; font-size:20px; font-weight:700; color:var(--primary); }
.prd-lbl { display:block; font-size:10px; color:var(--text-muted); margin-top:3px; }

/* === 29.5.786-790 CSS === */
.net-grid { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin:10px 0; }
.net-btn { font-size:24px; background:var(--surface); border:1px solid var(--border); border-radius:50%; width:44px; height:44px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform 0.15s; }
.net-btn:hover { transform:scale(1.2); }
.net-entry { display:flex; align-items:center; gap:8px; padding:5px 0; border-bottom:1px solid var(--border); }
.net-emoji { font-size:18px; }
.net-date { font-size:11px; color:var(--text-muted); min-width:70px; }
.net-preview { font-size:12px; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hrs-row { display:flex; align-items:center; gap:8px; padding:7px 0; border-bottom:1px solid var(--border); }
.hrs-emoji { font-size:18px; }
.hrs-name { flex:1; font-size:13px; color:var(--text); }
.hrs-skips { font-size:11px; color:var(--text-muted); min-width:55px; }
.hrs-score { font-size:14px; font-weight:700; color:var(--primary); min-width:40px; text-align:right; }
.ptp-slot { margin:8px 0; padding:8px; background:var(--surface); border-radius:8px; }
.ptp-slot-name { font-size:12px; font-weight:700; color:var(--primary); margin-bottom:6px; }
.ptp-task { font-size:12px; color:var(--text); padding:3px 6px; border-bottom:1px solid var(--border); }
.ptp-empty { font-size:11px; color:var(--text-muted); padding:3px 6px; }
.pwar-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px; }
.pwar-cell { background:var(--surface); border-radius:8px; padding:12px; text-align:center; }
.pwar-val { display:block; font-size:18px; font-weight:700; color:var(--primary); }
.pwar-lbl { display:block; font-size:10px; color:var(--text-muted); margin-top:3px; }
.mr-btns { display:flex; flex-direction:column; gap:6px; }
.mr-btn { padding:10px 14px; border:1px solid var(--border); border-radius:8px; cursor:pointer; text-align:left; font-size:13px; color:var(--text); }
.mr-btn.active { font-weight:700; }
.mr-history { display:flex; gap:6px; margin-top:14px; padding-top:10px; border-top:1px solid var(--border); }
.mr-dot { width:28px; height:28px; border-radius:50%; border:2px solid rgba(255,255,255,0.1); }

/* 29.5.791-795 */
.jh-btn{padding:8px 16px;background:var(--primary);color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:13px}
.hcp2-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.hcp2-bar-wrap{flex:1;background:var(--border);border-radius:4px;height:8px;overflow:hidden}
.hcp2-bar{height:8px;background:var(--primary);border-radius:4px;transition:width .3s}
.hcp2-pct{font-size:12px;color:var(--primary);font-weight:600;min-width:36px;text-align:right}
.prp-row{display:flex;align-items:center;justify-content:space-between;padding:5px 0;border-bottom:1px solid var(--border);font-size:13px}
.prp-count{font-size:12px;background:var(--primary);color:#fff;border-radius:10px;padding:1px 7px}
.phs2-score{display:flex;flex-direction:column;align-items:center;padding:20px 0}
.phs2-val{font-size:48px;font-weight:700;color:var(--primary)}
.phs2-lbl{font-size:13px;color:var(--text-muted);margin-top:4px}
.fmv2-overlay{position:fixed;inset:0;background:linear-gradient(135deg,#0a0a1a 0%,#1a0a2e 50%,#0a1a2e 100%);z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px}
.fmv2-clock{font-size:72px;font-weight:300;color:#fff;letter-spacing:4px;font-family:monospace}
.fmv2-task{font-size:22px;color:rgba(255,255,255,.85);text-align:center;max-width:600px;padding:0 24px}
.fmv2-lbl{font-size:13px;color:rgba(255,255,255,.4);text-transform:uppercase;letter-spacing:2px}
.fmv2-btn{padding:10px 28px;background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.3);border-radius:8px;cursor:pointer;font-size:14px;margin-top:12px}
.fmv2-btn:hover{background:rgba(255,255,255,.2)}

/* 29.5.796-800 */
.nbm-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.nbm-line{font-size:11px;background:var(--primary);color:#fff;border-radius:4px;padding:1px 6px;min-width:32px;text-align:center}
.nbm-preview{flex:1;font-size:12px;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nbm-go{padding:3px 10px;background:var(--primary);color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:11px}
.hwpr-grid{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;padding:8px 0}
.hwpr-item{display:flex;flex-direction:column;align-items:center;gap:4px}
.hwpr-name{font-size:11px;color:var(--text-muted);text-align:center;max-width:56px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ptt-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.ptt-name{flex:1;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ptt-time{font-size:13px;font-weight:600;color:var(--primary);min-width:44px;text-align:center;font-family:monospace}
.ptt-btn{padding:4px 10px;background:var(--primary);color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:13px}
.psm-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.psm-icon{font-size:18px;min-width:24px;text-align:center}
.psm-label{font-size:13px;min-width:90px}
.psm-bar-wrap{flex:1;background:var(--border);border-radius:4px;height:8px;overflow:hidden}
.psm-bar{height:8px;background:var(--primary);border-radius:4px;transition:width .3s}
.psm-val{font-size:11px;color:var(--text-muted);min-width:48px;text-align:right}
.gpb-row{margin-bottom:12px}
.gpb-header{display:flex;justify-content:space-between;margin-bottom:4px}
.gpb-name{font-size:13px;font-weight:600}
.gpb-val{font-size:12px;color:var(--text-muted)}
.gpb-bar-wrap{background:var(--border);border-radius:4px;height:10px;overflow:hidden;margin-bottom:2px}
.gpb-bar{height:10px;background:var(--primary);border-radius:4px;transition:width .3s}
.gpb-pct{font-size:11px;color:var(--primary);text-align:right}

/* 29.5.801-805 */
.hmp-moon{display:flex;flex-direction:column;align-items:center;padding:12px 0}
.hmp-icon{font-size:48px}
.hmp-phase{font-size:14px;color:var(--text-muted);margin-top:4px}
.hmp-row{display:flex;align-items:center;gap:8px;padding:4px 0;font-size:13px}
.hmp-name{flex:1}
.ptbc-row{display:flex;align-items:center;gap:8px;padding:4px 0;border-bottom:1px solid var(--border)}
.ptbc-hour{font-size:12px;font-weight:600;color:var(--primary);min-width:44px;font-family:monospace}
.psg-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.psg-name{flex:1;font-size:13px;font-weight:600}
.psg-bpm{font-size:11px;color:var(--text-muted)}
.psg-btn{padding:4px 12px;background:var(--primary);color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:12px}
.lbw-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.lbw-label{font-size:13px;min-width:90px}
.lbw-val{font-size:13px;font-weight:600;color:var(--primary);min-width:20px;text-align:right}

/* 29.5.806-810 */
.nrp2-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0}
.nrp2-cell{display:flex;flex-direction:column;align-items:center;background:var(--border);border-radius:8px;padding:10px}
.nrp2-val{font-size:22px;font-weight:700;color:var(--primary)}
.nrp2-lbl{font-size:11px;color:var(--text-muted);margin-top:2px}
.hsch-picker{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:10px}
.hsch-tab{padding:4px 10px;background:var(--border);color:var(--text);border:none;border-radius:4px;cursor:pointer;font-size:11px}
.hsch-tab.active{background:var(--primary);color:#fff}
.hsch-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:3px;padding:4px 0}
.hsch-cell{width:20px;height:20px;border-radius:3px;background:var(--border)}
.hsch-cell.hsch-done{background:var(--primary)}
.pcs-row{display:flex;align-items:center;justify-content:space-between;padding:6px 0;border-bottom:1px solid var(--border)}
.pcs-name{font-size:13px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:8px}
.pcs-badge{font-size:10px;color:#fff;border-radius:10px;padding:2px 8px;white-space:nowrap}
.elt-btns{display:flex;justify-content:space-between;gap:6px;margin:8px 0}
.elt-btn{flex:1;padding:10px 4px;border:none;border-radius:8px;cursor:pointer;color:#fff;font-size:18px;text-align:center;line-height:1.4}
.elt-entry{font-size:12px;padding:4px 0;border-bottom:1px solid var(--border)}

/* 29.5.811-815 */
.nkc-chips{display:flex;flex-wrap:wrap;gap:6px;padding:4px 0}
.nkc-chip{background:var(--primary);color:#fff;border-radius:12px;padding:4px 10px;font-size:12px;display:flex;align-items:center;gap:4px}
.nkc-cnt{background:rgba(255,255,255,.3);border-radius:8px;padding:1px 5px;font-size:10px}
.hpr-row{display:flex;align-items:center;justify-content:space-between;padding:7px 0;border-bottom:1px solid var(--border)}
.hpr-name{font-size:13px;flex:1}
.hpr-record{font-size:13px;font-weight:700;color:var(--primary)}
.pqwf-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.pqwf-done{padding:4px 8px;background:var(--success);color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:14px}
.pqwf-text{font-size:13px;flex:1}
.pcvf-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:8px 0}
.pcvf-cell{display:flex;flex-direction:column;align-items:center;background:var(--border);border-radius:8px;padding:14px 8px}
.pcvf-val{font-size:26px;font-weight:700}
.pcvf-lbl{font-size:11px;color:var(--text-muted);margin-top:2px}
.pcvf-status{font-size:10px;color:var(--text-muted);margin-top:2px}
.gl-entry{display:flex;gap:8px;padding:5px 0;border-bottom:1px solid var(--border)}
.gl-date{font-size:11px;color:var(--text-muted);min-width:80px}
.gl-text{font-size:13px;flex:1}

/* 29.5.816-820 */
.pkv-board{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.pkv-col{background:var(--border);border-radius:8px;padding:8px;min-height:120px}
.pkv-col-title{font-size:12px;font-weight:700;margin-bottom:8px;padding:4px 6px;border-radius:4px}
.pkv-todo{background:rgba(255,193,7,.2);color:var(--text)}
.pkv-prog{background:rgba(33,150,243,.2);color:var(--text)}
.pkv-done{background:rgba(76,175,80,.2);color:var(--text)}
.pkv-card{background:var(--surface);border-radius:6px;padding:6px 8px;margin-bottom:6px;font-size:12px;border:1px solid var(--border)}
.phbd-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.phbd-rank{font-size:14px;min-width:28px;text-align:center}
.phbd-date{font-size:12px;color:var(--text-muted);min-width:88px;font-family:monospace}
.phbd-bar-wrap{flex:1;background:var(--border);border-radius:4px;height:8px;overflow:hidden}
.phbd-bar{height:8px;background:var(--primary);border-radius:4px}
.phbd-cnt{font-size:12px;font-weight:600;color:var(--primary);min-width:20px;text-align:right}
.dc-row{display:flex;align-items:center;justify-content:space-between;padding:6px 0;border-bottom:1px solid var(--border)}
.dc-name{font-size:13px;flex:1}
.dc-days{font-size:16px;font-weight:700}
@media(max-width:480px){.pkv-board{grid-template-columns:1fr}}

/* 29.5.821-825 */
.nrg-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}
.nrg-cell{background:var(--border);border-radius:8px;padding:12px;text-align:center;display:flex;flex-direction:column;gap:4px}
.nrg-val{font-size:24px;font-weight:700;color:var(--primary)}
.nrg-lbl{font-size:11px;color:var(--text-muted)}
.hpwc-header{display:flex;align-items:center;margin-bottom:4px;gap:4px}
.hpwc-dh{font-size:10px;color:var(--text-muted);width:28px;text-align:center}
.hpwc-row{display:flex;align-items:center;gap:4px;padding:3px 0}
.hpwc-name{font-size:11px;width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hpwc-days{display:flex;gap:4px}
.hpwc-cell{width:24px;height:24px;border-radius:4px;background:var(--border)}
.hpwc-cell.hpwc-done{background:var(--primary)}
.pdth-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.pdth-text{font-size:13px;flex:1}
.dq-card{background:var(--border);border-radius:10px;padding:16px;margin:8px 0}
.dq-text{font-size:16px;font-style:italic;color:var(--text);margin:0 0 10px;line-height:1.5}
.dq-author{font-size:13px;color:var(--primary);font-weight:600;margin:0;text-align:right}

/* 29.5.826-830 */
.hsi-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.hsi-name{flex:1;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hsi-streak{font-size:12px;color:var(--primary);font-weight:600;min-width:28px}
.hsi-badge{font-size:11px;padding:2px 8px;border-radius:10px}
.hsi-protected{background:rgba(76,175,80,.2);color:var(--success)}
.hsi-btn{padding:3px 10px;background:var(--warning);color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:11px}
.pwsl-row{display:flex;align-items:center;gap:8px;padding:5px 0;border-bottom:1px solid var(--border)}
.pwsl-date{font-size:10px;color:var(--text-muted);min-width:80px;font-family:monospace}
.pwsl-task{flex:1;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pwsl-dur{font-size:12px;font-weight:600;color:var(--primary);min-width:28px;text-align:right}
.plfs-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0}
.plfs-cell{background:var(--border);border-radius:8px;padding:12px;text-align:center;display:flex;flex-direction:column;gap:4px}
.plfs-val{font-size:26px;font-weight:700;color:var(--primary)}
.plfs-lbl{font-size:11px;color:var(--text-muted)}
.ab-item{border:1px solid var(--border);border-radius:8px;padding:8px;margin-bottom:6px}
.ab-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}
.ab-date{font-size:11px;color:var(--text-muted)}
.ab-del{background:none;border:none;cursor:pointer;color:var(--error);font-size:16px;padding:0}
.ab-text{font-size:13px;margin:0;color:var(--text)}

/* 29.5.831-835 */
.nsg-summary{background:var(--border);border-radius:8px;padding:12px}
.nsg-sentence{font-size:13px;margin:0 0 8px;color:var(--text);padding-bottom:8px;border-bottom:1px solid rgba(255,255,255,.1)}
.nsg-sentence:last-child{border-bottom:none;margin-bottom:0}
.hrm-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.hrm-name{flex:1;font-size:13px}
.hrm-btn{padding:4px 10px;background:var(--primary);color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:11px}
.ptsr-row{display:flex;align-items:center;justify-content:space-between;padding:6px 0;border-bottom:1px solid var(--border)}
.ptsr-name{font-size:13px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:8px}
.ptsr-time{font-size:13px;font-weight:600;color:var(--primary);white-space:nowrap}
.snw-wall{display:flex;flex-wrap:wrap;gap:10px;max-height:300px;overflow-y:auto;padding:4px}
.snw-card{width:130px;min-height:100px;border-radius:8px;padding:10px;box-shadow:2px 2px 6px rgba(0,0,0,.2);position:relative}
.snw-del{position:absolute;top:4px;right:6px;background:none;border:none;cursor:pointer;color:rgba(0,0,0,.4);font-size:16px}
.snw-text{font-size:12px;color:#333;margin:16px 0 0;word-break:break-word;line-height:1.4}

/* 29.5.836-840 */
.ntc-grid{display:flex;flex-wrap:wrap;gap:10px;padding:4px 0}
.ntc-cluster{background:var(--border);border-radius:8px;padding:10px;min-width:140px;flex:1}
.ntc-heading{font-size:13px;font-weight:700;color:var(--primary);margin-bottom:6px;border-bottom:1px solid rgba(255,255,255,.1);padding-bottom:4px}
.ntc-item{font-size:11px;color:var(--text-muted);padding:2px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ntc-empty{font-size:11px;color:var(--text-muted);font-style:italic}
.hwvw-row{margin-bottom:8px}
.hwvw-name{font-size:12px;font-weight:600;display:block;margin-bottom:4px}
.hwvw-bars{display:grid;grid-template-columns:1fr 36px 1fr 36px;align-items:center;gap:4px}
.hwvw-bar-wrap{background:var(--border);border-radius:4px;height:8px;overflow:hidden}
.hwvw-bar{height:8px;border-radius:4px;transition:width .3s}
.hwvw-wd{background:var(--primary)}
.hwvw-we{background:var(--warning)}
.hwvw-pct{font-size:11px;color:var(--text-muted);text-align:right}
.pal-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.pal-badge{font-size:10px;color:#fff;border-radius:10px;padding:2px 8px;white-space:nowrap}
.pal-text{font-size:13px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bdm-overlay{position:fixed;inset:0;background:var(--bg);z-index:9990;display:flex;flex-direction:column}
.bdm-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:var(--surface);border-bottom:1px solid var(--border);font-weight:700;font-size:16px}
.bdm-textarea{flex:1;background:var(--bg);color:var(--text);border:none;padding:24px;font-size:16px;line-height:1.8;resize:none;outline:none}
.bdm-footer{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;background:var(--surface);border-top:1px solid var(--border);font-size:13px;color:var(--text-muted)}
.bdm-footer button{padding:6px 16px;background:var(--primary);color:#fff;border:none;border-radius:6px;cursor:pointer}

/* 29.5.841-845 */
.nrf-row{display:flex;align-items:baseline;gap:8px;padding:5px 0;border-bottom:1px solid var(--border)}
.nrf-word{font-size:14px;font-weight:700;color:var(--primary);min-width:60px}
.nrf-rhymes{font-size:12px;color:var(--text-muted);flex:1}
.hap-form label{display:block}
.ppa-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.ppa-name{flex:1;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ppa-ctrl{display:flex;align-items:center;gap:6px}
.ppa-ctrl button{width:24px;height:24px;background:var(--primary);color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:16px;line-height:1}
.ppa-cnt{font-size:13px;min-width:48px;text-align:center}
.htl-row{display:flex;align-items:center;gap:8px;padding:5px 0;border-bottom:1px solid var(--border)}
.htl-habit{font-size:12px;min-width:96px;font-weight:600}
.ncc-pair{background:var(--border);border-radius:8px;padding:10px;margin-bottom:8px}
.ncc-a{font-size:12px;color:var(--text);padding-bottom:4px}
.ncc-vs{text-align:center;font-size:16px;color:var(--primary);padding:2px 0}
.ncc-b{font-size:12px;color:var(--text-muted);padding-top:4px}

/* 29.5.846-850 */
.ndf-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.ndf-dup{flex:1;font-size:12px;color:var(--text-muted);font-style:italic;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ndf-rm{padding:3px 10px;background:var(--error);color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:11px}
.hmc-row{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--border)}
.hmc-info{flex:1}
.hmc-name{font-size:13px;font-weight:700;display:block}
.hmc-desc{font-size:11px;color:var(--text-muted);display:block}
.hmc-btn{padding:5px 12px;background:var(--primary);color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:12px;white-space:nowrap}
.hmc-btn.hmc-active{background:var(--success)}
.psa-row{display:flex;align-items:center;gap:8px;padding:4px 0;border-bottom:1px solid var(--border)}
.psa-date{font-size:10px;color:var(--text-muted);min-width:76px;font-family:monospace}
.psa-text{font-size:12px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.psr-item{display:flex;align-items:center;gap:8px;padding:5px 0;border-bottom:1px solid var(--border)}
.psr-num{font-size:11px;color:var(--text-muted);min-width:24px}
.psr-icon{font-size:16px}
.psr-type{font-size:12px;font-weight:600;flex:1}
.psr-dur{font-size:11px;color:var(--text-muted);min-width:28px}
.psr-label{font-size:11px;background:var(--border);border-radius:8px;padding:1px 6px;color:var(--text-muted)}
.dps-breakdown{background:var(--border);border-radius:8px;padding:10px;margin-top:8px}
.dps-row{display:flex;justify-content:space-between;padding:4px 0;font-size:13px;border-bottom:1px solid rgba(255,255,255,.05)}
.dps-row:last-child{border-bottom:none}

/* 29.5.851-855 */
.nl-issue{display:flex;align-items:center;gap:8px;padding:5px 0;border-bottom:1px solid var(--border)}
.nl-line{font-size:11px;background:var(--error);color:#fff;border-radius:4px;padding:1px 6px;min-width:32px;text-align:center}
.nl-msg{font-size:12px;color:var(--text-muted)}
.hpr2-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.hpr2-medal{font-size:18px;min-width:24px;text-align:center}
.hpr2-name{flex:1;font-size:13px}
.hpr2-rate{font-size:13px;font-weight:600;color:var(--primary);min-width:36px}
.hpr2-pct{font-size:11px;background:var(--border);border-radius:8px;padding:1px 7px;color:var(--text-muted)}
.pspm-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
.pspm-btn{padding:12px;background:var(--primary);color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:14px;font-weight:600}
.pspm-countdown{text-align:center;font-size:18px;font-weight:700;color:var(--primary);padding:8px}
.sprint-bar{padding:2px 10px;background:var(--primary);color:#fff;border-radius:4px;font-size:11px;font-weight:700;margin-left:8px}
.phb-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.phb-name{flex:1;font-size:13px}
.phb-btn{padding:4px 10px;background:var(--success);color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:12px}
.zg-overlay{position:fixed;inset:0;background:linear-gradient(135deg,#0d2137 0%,#1a3a2a 100%);z-index:9999;display:flex;align-items:center;justify-content:center;cursor:pointer}
.zg-content{display:flex;flex-direction:column;align-items:center;gap:20px;text-align:center}
.zg-stone{width:80px;height:80px;background:rgba(255,255,255,.15);border-radius:50%;box-shadow:0 0 30px rgba(255,255,255,.1)}
.zg-msg{font-size:28px;font-weight:300;color:#fff;letter-spacing:2px;font-style:italic}
.zg-ripple{width:120px;height:120px;border:1px solid rgba(255,255,255,.2);border-radius:50%;animation:ripple 2s ease-out infinite}
@keyframes ripple{0%{transform:scale(0.8);opacity:1}100%{transform:scale(1.4);opacity:0}}

/* === 29.5.856-860 === */
.nls-preview{max-height:160px;overflow-y:auto;border:1px solid var(--border);border-radius:6px;padding:8px;background:var(--bg)}
.nls-line{font-size:12px;padding:2px 0;border-bottom:1px solid var(--border);color:var(--text)}
.hbm-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.hbm-name{flex:1;font-size:13px}
.hbm-month{font-size:12px;color:var(--text-secondary);min-width:70px}
.hbm-count{font-size:13px;font-weight:700;color:var(--primary);min-width:35px;text-align:right}
.pfs-item{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid var(--border)}
.pfs-num{width:20px;height:20px;border-radius:50%;background:var(--primary);color:#fff;font-size:11px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.pfs-text{flex:1;font-size:13px}
.pfs-badge{font-size:10px;padding:2px 6px;background:var(--success);color:#fff;border-radius:10px}
.pfs-item button{background:none;border:none;color:var(--text-secondary);cursor:pointer;font-size:14px}
.prj-entry{padding:6px 0;border-bottom:1px solid var(--border)}
.prj-date{font-size:11px;color:var(--text-secondary);display:block;margin-bottom:2px}
.prj-text{font-size:12px;color:var(--text);margin:0}
.hhs-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;margin:10px 0}
.hhs-cell{width:100%;aspect-ratio:1;border-radius:3px;cursor:default}
.hhs-legend{display:flex;align-items:center;gap:4px;margin-top:6px}

/* === 29.5.861-865 === */
.nwfm-grid{display:flex;flex-wrap:wrap;gap:8px;padding:8px;border:1px solid var(--border);border-radius:6px;background:var(--bg);min-height:80px}
.nwfm-word{color:var(--primary);cursor:default}
.hci-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.hci-name{flex:1;font-size:13px}
.hci-grade{font-size:16px;font-weight:900;min-width:22px;text-align:center}
.grade-A{color:var(--success)}.grade-B{color:var(--primary)}.grade-C{color:var(--warning)}.grade-D{color:var(--error)}
.hci-score{font-size:12px;color:var(--text-secondary);min-width:50px;text-align:right}
.pdu-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.pdu-text{flex:1;font-size:13px}
.pdu-label{font-size:11px;font-weight:700;min-width:70px;text-align:center}
.pdu-score{font-size:14px;font-weight:900;min-width:30px;text-align:right}
.wmc-chart{display:flex;gap:4px;align-items:flex-end;height:80px;border-bottom:1px solid var(--border);padding:0 4px}
.wmc-col{display:flex;flex-direction:column;align-items:center;gap:2px;flex:1}
.wmc-bars{display:flex;gap:2px;align-items:flex-end;height:70px}
.wmc-bar{width:10px;border-radius:2px 2px 0 0;min-height:2px}
.wmc-e{background:var(--primary)}.wmc-m{background:var(--success)}
.wmc-day{font-size:10px;color:var(--text-secondary)}

/* === 29.5.866-870 === */
.npf-grid{display:flex;flex-wrap:wrap;gap:8px;padding:8px;border:1px solid var(--border);border-radius:6px;background:var(--bg)}
.npf-word{background:var(--primary);color:#fff;padding:4px 10px;border-radius:12px;font-size:13px;font-weight:600}
.hdow-table{width:100%;border-collapse:collapse;font-size:12px}
.hdow-table th{padding:4px 6px;text-align:center;color:var(--text-secondary);font-weight:600;border-bottom:1px solid var(--border)}
.hdow-name{padding:4px 6px;font-size:12px;max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hdow-cell{padding:4px 6px;text-align:center;font-size:11px;border-radius:3px;cursor:default}
.pbc-row{display:flex;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid var(--border);cursor:pointer}
.pbc-row input{width:16px;height:16px;cursor:pointer}
.pbc-text{font-size:13px;flex:1}
.pgst-btn{padding:6px 14px;border-radius:6px;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;font-size:13px}
.pgst-btn.pgst-active{background:var(--primary);color:#fff;border-color:var(--primary)}
.lt-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.lt-dot{width:10px;height:10px;border-radius:50%;background:var(--primary);flex-shrink:0}
.lt-date2{font-size:11px;color:var(--text-secondary);min-width:85px}
.lt-text2{flex:1;font-size:13px}
.lt-del{background:none;border:none;color:var(--text-secondary);cursor:pointer;font-size:13px}

/* === 29.5.871-875 === */
.naf-group{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:6px;padding:6px;border:1px solid var(--border);border-radius:6px}
.naf-word{background:var(--surface);padding:3px 10px;border-radius:10px;font-size:13px;border:1px solid var(--border)}
.naf-sep{color:var(--primary);font-size:14px;font-weight:700}
.hts-row{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid var(--border)}
.hts-name{flex:1;font-size:13px}
.hts-ctrl{display:flex;gap:4px;flex-wrap:wrap}
.hts-btn{padding:3px 7px;border-radius:5px;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;font-size:11px}
.hts-btn.hts-active{background:var(--primary);color:#fff;border-color:var(--primary)}
.pis-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.pis-text{flex:1;font-size:13px}
.pis-score{font-size:16px;font-weight:900;min-width:35px;text-align:right}
.psnc-row{display:flex;align-items:center;gap:8px;padding:5px 0;border-bottom:1px solid var(--border)}
.psnc-time{font-size:11px;color:var(--text-secondary);min-width:45px}
.psnc-text{flex:1;font-size:13px}
.fmp-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.fmp-btn{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px;border:2px solid;border-radius:10px;background:var(--surface);cursor:pointer}
.fmp-name{font-size:13px;font-weight:600;color:var(--text)}
.fmp-hz{font-size:11px}

/* === 29.5.876-880 === */
.nsc2-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}
.nsc2-cell{background:var(--surface);border-radius:8px;padding:10px;text-align:center;border:1px solid var(--border)}
.nsc2-val{font-size:22px;font-weight:900;color:var(--primary)}
.nsc2-lbl{font-size:11px;color:var(--text-secondary);margin-top:2px}
.nsc2-row{display:flex;align-items:center;gap:8px;padding:4px 0;border-bottom:1px solid var(--border)}
.nsc2-text{flex:1;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nsc2-count{font-size:12px;font-weight:700;color:var(--primary);min-width:28px;text-align:right}
.hms2-row{display:flex;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid var(--border)}
.hms2-name{flex:1;font-size:13px}
.hms2-val{font-size:16px;font-weight:900;min-width:30px;text-align:right}
.ptc-cloud{display:flex;flex-wrap:wrap;gap:8px;padding:8px;border:1px solid var(--border);border-radius:8px;background:var(--bg)}
.ptc-tag{color:var(--primary);cursor:default;line-height:1.4}
.pfsd-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:16px}
.pfsd-cell{background:var(--surface);border-radius:8px;padding:10px;text-align:center;border:1px solid var(--border)}
.pfsd-val{font-size:20px;font-weight:900;color:var(--primary)}
.pfsd-lbl{font-size:11px;color:var(--text-secondary);margin-top:2px}
.wwb-item{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid var(--border)}
.wwb-trophy{font-size:18px}
.wwb-text{flex:1;font-size:13px}

/* === 29.5.881-885 === */
.hfw-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.hfw-day{font-weight:700;min-width:30px;font-size:13px}
.hfw-date{font-size:11px;color:var(--text-secondary);min-width:85px}
.hfw-count{font-size:14px;font-weight:700;color:var(--primary);min-width:20px;text-align:center}
.hfw-habits{flex:1;font-size:11px;color:var(--text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pscd-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.pscd-text{flex:1;font-size:13px}
.pscd-age{font-size:12px;font-weight:700;color:var(--warning);min-width:30px;text-align:right}
.pec-chart{display:flex;gap:3px;align-items:flex-end;height:80px;border-bottom:1px solid var(--border);padding-bottom:4px;overflow-x:auto}
.pec-col{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:28px}
.pec-bar{width:18px;background:var(--primary);border-radius:2px 2px 0 0;min-height:2px}
.pec-lbl{font-size:9px;color:var(--text-secondary)}
.hpa-row{padding:5px 0;border-bottom:1px solid var(--border)}
.hpa-text{font-size:12px;color:var(--warning)}

/* === 29.5.886-890 === */
.nslh-chart{display:flex;gap:8px;align-items:flex-end;height:100px;border-bottom:1px solid var(--border);padding:0 4px}
.nslh-col{display:flex;flex-direction:column;align-items:center;gap:2px;flex:1}
.nslh-bar{width:100%;background:var(--primary);border-radius:3px 3px 0 0;min-height:2px}
.nslh-cnt{font-size:11px;font-weight:700;color:var(--text)}
.nslh-lbl{font-size:10px;color:var(--text-secondary)}
.hvsc-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.hvsc-cell{width:100%;aspect-ratio:1;border-radius:3px;background:var(--border)}
.hvsc-done{background:var(--success)}
.hvsc-tab{padding:4px 10px;border-radius:6px;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;font-size:12px}
.hvsc-tab.hvsc-active{background:var(--primary);color:#fff;border-color:var(--primary)}
.pvem-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:8px;min-height:200px}
.pvem-q{padding:10px;border-radius:8px;border:1px solid var(--border);font-size:11px}
.pvem-q1{background:rgba(16,185,129,.1)}.pvem-q2{background:rgba(99,102,241,.1)}
.pvem-q3{background:rgba(245,158,11,.1)}.pvem-q4{background:rgba(239,68,68,.1)}
.pvem-item{font-size:11px;padding:2px 0;border-bottom:1px solid var(--border);color:var(--text)}
.cv-chart{display:flex;gap:12px;align-items:flex-end;height:100px;border-bottom:1px solid var(--border);padding:0 4px}
.cv-col{display:flex;flex-direction:column;align-items:center;gap:2px;flex:1}
.cv-bar{width:80%;background:var(--primary);border-radius:3px 3px 0 0;min-height:2px}
.cv-cnt{font-size:13px;font-weight:700;color:var(--text)}
.cv-lbl{font-size:10px;color:var(--text-secondary);text-align:center}

/* === 29.5.891-895 === */
.npvd-row{padding:5px 0;border-bottom:1px solid var(--border);font-size:12px;color:var(--warning)}
.hsrl-row{display:flex;gap:6px;padding:4px 0;border-bottom:1px solid var(--border);font-size:11px}
.hsrl-date{color:var(--text-secondary);min-width:70px}
.hsrl-habit{font-weight:700;min-width:80px;color:var(--primary)}
.hsrl-reason{flex:1;color:var(--text)}
.ptad-chart{display:flex;gap:8px;align-items:flex-end;height:100px;border-bottom:1px solid var(--border);padding:0 4px}
.ptad-col{display:flex;flex-direction:column;align-items:center;gap:2px;flex:1}
.ptad-bar{width:100%;border-radius:3px 3px 0 0;min-height:2px}
.ptad-cnt{font-size:12px;font-weight:700;color:var(--text)}
.ptad-lbl{font-size:10px;color:var(--text-secondary)}
.pcs2-btns{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.pcs2-btn{padding:10px;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;font-size:14px;text-align:left}
.pcs2-btn.pcs2-active{background:var(--primary);color:#fff;border-color:var(--primary)}
.hvgt-row{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid var(--border)}
.hvgt-name{flex:0 0 120px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hvgt-bar-wrap{flex:1;height:8px;background:var(--border);border-radius:4px;overflow:hidden}
.hvgt-bar{height:100%;border-radius:4px;transition:width .3s}
.hvgt-ratio{font-size:12px;font-weight:700;min-width:35px;text-align:right}

/* === 29.5.896-900 === */
.njd-chips{display:flex;flex-wrap:wrap;gap:6px;padding:8px;border:1px solid var(--border);border-radius:6px}
.njd-chip{background:rgba(239,68,68,.15);color:var(--error);border:1px solid var(--error);padding:3px 10px;border-radius:10px;font-size:12px}
.hcth-row{display:flex;align-items:center;gap:6px;padding:6px 0;border-bottom:1px solid var(--border)}
.hcth-name{flex:0 0 100px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hcth-cell{width:40px;height:28px;border:none;border-radius:4px;cursor:pointer;font-size:11px;font-weight:700;color:#fff}
.pwf-chart{display:flex;gap:6px;align-items:flex-end;height:100px;border-bottom:1px solid var(--border);padding:0 4px}
.pwf-col{display:flex;flex-direction:column;align-items:center;gap:2px;flex:1}
.pwf-bar{width:100%;border-radius:3px 3px 0 0;min-height:2px}
.pwf-cnt{font-size:11px;font-weight:700;color:var(--text)}
.pwf-lbl{font-size:10px;color:var(--text-secondary)}
.pam-row{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--border)}
.pam-name{flex:0 0 80px;font-size:13px;font-weight:600}
.pam-slider{flex:1;accent-color:var(--primary)}
.pam-vol{font-size:12px;color:var(--text-secondary);min-width:35px;text-align:right}
.mm-item{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid var(--border)}
.mm-icon{font-size:18px}
.mm-date{font-size:11px;color:var(--text-secondary);min-width:85px}
.mm-text{flex:1;font-size:13px}

/* === 29.5.901-905 === */
.hmvs-row{display:flex;align-items:center;justify-content:space-between;padding:7px 0;border-bottom:1px solid var(--border)}
.hmvs-name{font-size:13px}
.pta2-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.pta2-ctx{flex:0 0 110px;font-size:13px}
.pta2-bar-wrap{flex:1;height:8px;background:var(--border);border-radius:4px;overflow:hidden}
.pta2-bar{height:100%;background:var(--primary);border-radius:4px}
.pta2-pct{font-size:12px;color:var(--text-secondary);min-width:35px;text-align:right}
.pta2-cnt{font-size:12px;font-weight:700;color:var(--primary);min-width:25px;text-align:right}

/* === 29.5.906-910 === */
.nei-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-bottom:10px}
.nei-btn{font-size:22px;padding:8px;border:1px solid var(--border);border-radius:8px;background:var(--surface);cursor:pointer}
.hsp-row{padding:8px 0;border-bottom:1px solid var(--border)}
.hsp-fact{font-size:11px;color:var(--text-secondary);margin:4px 0 0;font-style:italic}
.prm-row{display:flex;align-items:center;gap:6px;padding:6px 0;border-bottom:1px solid var(--border)}
.prm-text{flex:1;font-size:13px}
.prm-freq{font-size:11px;padding:2px 7px;border-radius:10px;background:var(--primary);color:#fff}
.pmgs-grid{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.pmgs-btn{padding:10px 16px;border-radius:8px;border:2px solid;background:var(--surface);color:var(--text);cursor:pointer;font-size:14px;text-align:left}
.fst-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.fst-cell{background:var(--surface);border-radius:8px;padding:12px;text-align:center;border:1px solid var(--border)}
.fst-val{font-size:24px;font-weight:900;color:var(--primary)}
.fst-lbl{font-size:11px;color:var(--text-secondary);margin-top:3px}

/* === 29.5.911-915 === */
.nvh-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.nvh-ts{flex:1;font-size:12px;color:var(--text)}
.nvh-len{font-size:11px;color:var(--text-secondary);min-width:60px}
.hal-row{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid var(--border)}
.hal-rank{font-size:14px;font-weight:900;min-width:20px;text-align:center}
.hal-medal{font-size:20px}
.hal-name{flex:1;font-size:13px}
.hal-pct{font-size:14px;font-weight:700;color:var(--primary)}
.pnl-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.pnl-text{flex:1;font-size:12px}
.pnl-input{width:120px;padding:4px 6px;background:var(--surface);border:1px solid var(--border);color:var(--text);border-radius:4px;font-size:12px}

/* === 29.5.916-920 === */
.ndlr-preview { font-family: monospace; font-size: 12px; }
.hlgd-row { display:flex; justify-content:space-between; padding:6px 0; border-bottom:1px solid var(--border); font-size:13px; }
.pqn-row { background:var(--surface); border:1px solid var(--border); border-radius:6px; padding:8px; margin-bottom:8px; }
.pqn-row strong { display:block; font-size:12px; color:var(--primary); margin-bottom:4px; }
.pqn-row p { font-size:12px; color:var(--text); margin:0 0 4px; }
.pwr-chart { display:flex; gap:4px; align-items:flex-end; height:80px; margin:8px 0; }
.pwr-col { display:flex; flex-direction:column; align-items:center; flex:1; }
.pwr-bar { width:100%; border-radius:3px 3px 0 0; min-height:4px; }
.pwr-label { font-size:10px; color:var(--text-muted); margin-top:4px; }
.pwr-count { font-size:11px; color:var(--text); }
.ta-section { margin-bottom:12px; }
.ta-section strong { display:block; margin-bottom:4px; color:var(--primary); font-size:13px; }
.ta-row { display:flex; align-items:center; gap:8px; padding:4px 0; font-size:13px; }
.ta-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }

/* === 29.5.921-925 === */
.nss-row { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:1px solid var(--border); font-size:13px; }
.nss-wrong { color:var(--error); text-decoration:line-through; }
.nss-right { color:var(--success); }
.hcrt-row { display:flex; align-items:center; gap:12px; padding:6px 0; font-size:13px; }
.hcrt-row > span { min-width:100px; }
.hcrt-bars { display:flex; gap:3px; align-items:flex-end; height:40px; }
.hcrt-bar { width:16px; border-radius:2px 2px 0 0; }
.pcs3-chart { display:flex; gap:3px; align-items:flex-end; height:50px; margin:8px 0; }
.pcs3-col { display:flex; flex-direction:column; align-items:center; flex:1; }
.pcs3-bar { width:100%; background:var(--primary); border-radius:2px 2px 0 0; }
.pcs3-lbl { font-size:9px; color:var(--text-muted); margin-top:2px; }
.psh-grid { display:grid; grid-template-columns:repeat(7, 1fr); gap:4px; }
.psh-cell { width:100%; aspect-ratio:1; border-radius:3px; }
.pts2-row { display:flex; align-items:center; gap:8px; padding:5px 0; font-size:12px; }
.pts2-label { min-width:120px; max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pts2-bar-wrap { flex:1; background:var(--border); border-radius:3px; height:8px; }
.pts2-bar { height:100%; background:var(--primary); border-radius:3px; }
.pts2-val { min-width:35px; text-align:right; color:var(--text-muted); }

/* === 29.5.926-930 === */
.nrsg-row { display:flex; align-items:center; justify-content:space-between; padding:6px 0; border-bottom:1px solid var(--border); font-size:13px; gap:8px; }
.hww-row { display:flex; align-items:center; gap:8px; padding:6px 0; font-size:13px; }
.hww-row > span:first-child { min-width:100px; }
.hww-bars { flex:1; display:flex; height:12px; border-radius:6px; overflow:hidden; }
.hww-seg { height:100%; }
.pkn-board { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.pkn-col { background:var(--surface); border-radius:8px; padding:10px; }
.pkn-col-title { font-size:12px; font-weight:600; padding:4px 0 8px; margin-bottom:8px; }
.pkn-card { background:var(--bg); border:1px solid var(--border); border-radius:6px; padding:8px; margin-bottom:6px; }
.pkn-card p { font-size:12px; margin:4px 0 0; color:var(--text); }
.pkn-badge { font-size:10px; padding:2px 6px; border-radius:10px; color:#fff; }
.psr-row { display:flex; justify-content:space-between; padding:4px 0; font-size:12px; border-bottom:1px solid var(--border); }
.psr-stars { color:#f59e0b; }
.psr-input { display:flex; gap:8px; }
.psr-star-btn { font-size:24px; background:none; border:none; cursor:pointer; color:#f59e0b; }
.hch-tabs { display:flex; flex-wrap:wrap; gap:4px; margin-bottom:10px; }
.hch-tab { padding:4px 10px; border-radius:12px; border:1px solid var(--border); background:var(--surface); color:var(--text); cursor:pointer; font-size:12px; }
.hch-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.hch-cell { width:100%; aspect-ratio:1; border-radius:3px; background:var(--border); }
.hch-cell.hch-done { background:var(--success); }
@media(max-width:480px) { .pkn-board { grid-template-columns:1fr; } }

/* === 29.5.931-935 === */
.nhe-row { display:flex; align-items:center; gap:8px; padding:5px 0; font-size:13px; border-bottom:1px solid var(--border); }
.nhe-level { font-size:10px; font-weight:700; color:var(--primary); min-width:20px; }
.hmr-row { display:flex; align-items:center; gap:8px; padding:6px 0; font-size:12px; }
.hmr-row > span:first-child { min-width:100px; }
.hmr-bar-wrap { flex:1; background:var(--border); border-radius:3px; height:8px; }
.hmr-bar { height:100%; background:var(--success); border-radius:3px; }
.poe-row { display:flex; align-items:center; gap:8px; padding:6px 0; font-size:12px; border-bottom:1px solid var(--border); }
.poe-row > span:first-child { flex:1; }
.gpr-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; text-align:center; }
.gpr-ring-wrap { display:flex; flex-direction:column; align-items:center; gap:4px; }
.gpr-label { font-size:11px; color:var(--text-muted); }
@media(max-width:480px) { .gpr-grid { grid-template-columns:repeat(2,1fr); } }

/* === 29.5.936-940 === */
.nbl-row { display:flex; align-items:center; gap:8px; padding:5px 0; border-bottom:1px solid var(--border); font-size:12px; }
.nbl-num { font-size:10px; color:var(--primary); font-weight:700; min-width:28px; }
.hcp-row { display:flex; align-items:center; justify-content:space-between; padding:6px 0; font-size:13px; border-bottom:1px solid var(--border); }
.ptbs-row { display:flex; align-items:center; gap:12px; padding:5px 0; border-bottom:1px solid var(--border); }
.ptbs-hour { font-size:12px; font-weight:600; color:var(--primary); min-width:40px; }
.ptbs-sel { flex:1; background:var(--surface); border:1px solid var(--border); color:var(--text); padding:4px 6px; border-radius:4px; font-size:12px; }
.fpb-item { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:1px solid var(--border); font-size:13px; }
.fpb-item > span:first-child { flex:1; }
.brm-gauge { display:flex; justify-content:center; margin:8px 0; }

/* === 29.5.941-945 === */
.nhi-row { display:flex; justify-content:space-between; align-items:center; padding:5px 0; border-bottom:1px solid var(--border); }
.nhi-tag { color:var(--primary); font-size:13px; }
.nhi-count { font-size:11px; color:var(--text-muted); }
.hsm-row { display:flex; align-items:center; justify-content:space-between; padding:6px 0; border-bottom:1px solid var(--border); font-size:13px; }
.hsm-streak { color:var(--primary); font-weight:700; min-width:60px; text-align:center; }
.pdm-row { display:flex; align-items:center; gap:6px; padding:5px 0; border-bottom:1px solid var(--border); font-size:12px; flex-wrap:wrap; }
.pdm-text { min-width:120px; flex:1; }
.pdm-sel { background:var(--surface); border:1px solid var(--border); color:var(--text); padding:2px 4px; border-radius:4px; font-size:11px; }
.pdm-decision { min-width:60px; font-weight:700; font-size:11px; text-align:right; }
.pct-track { display:flex; justify-content:space-around; margin:8px 0; }
.pct-step { display:flex; flex-direction:column; align-items:center; gap:4px; }
.pct-dot { width:20px; height:20px; border-radius:50%; background:var(--border); }
.pct-step.pct-done .pct-dot { background:var(--success); }
.pct-step.pct-current .pct-dot { background:var(--primary); box-shadow:0 0 0 3px rgba(99,102,241,0.3); }
.pct-label { font-size:10px; color:var(--text-muted); }
.hmm-row { display:grid; grid-template-columns:1fr auto auto auto; gap:8px; align-items:center; padding:6px 0; border-bottom:1px solid var(--border); font-size:13px; }

/* === 29.5.946-950 === */
.nae-row { display:flex; align-items:center; gap:10px; padding:6px 0; border-bottom:1px solid var(--border); font-size:13px; }
.nae-acr { font-weight:700; color:var(--primary); min-width:50px; }
.nae-arrow { color:var(--text-muted); }
.hcb-row { display:flex; align-items:center; justify-content:space-between; padding:6px 0; border-bottom:1px solid var(--border); font-size:13px; }
.pce-row { display:flex; align-items:center; gap:8px; padding:5px 0; border-bottom:1px solid var(--border); font-size:12px; }
.pce-text { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pce-cost { min-width:60px; text-align:right; color:var(--success); font-weight:600; }
.swof-row { display:flex; align-items:center; gap:10px; padding:7px 0; border-bottom:1px solid var(--border); font-size:13px; }
.swof-medal { min-width:24px; text-align:center; }
.swof-row > span:nth-child(2) { flex:1; }
.swof-streak { color:var(--primary); font-weight:700; }

/* === 29.5.951-955 === */
.nst-chart { display:flex; gap:4px; align-items:flex-end; height:60px; }
.nst-col { display:flex; flex-direction:column; align-items:center; flex:1; }
.nst-bar { width:100%; border-radius:3px 3px 0 0; min-height:4px; }
.nst-lbl { font-size:9px; color:var(--text-muted); margin-top:2px; }
.hcm-grid { display:grid; gap:3px; }
.hcm-cell { padding:4px; text-align:center; font-size:11px; border-radius:3px; background:var(--surface); }
.hcm-head { font-weight:600; font-size:10px; color:var(--text-muted); background:transparent; }
.hcm-diag { background:var(--border); }
.pdp-row { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:1px solid var(--border); font-size:12px; }
.pdp-text { flex:1; }
.pdp-blocked { font-size:11px; color:var(--warning); }
.pgl-row { display:flex; align-items:center; justify-content:space-between; padding:6px 0; border-bottom:1px solid var(--border); font-size:13px; }
.pokr-row { background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:10px; margin-bottom:8px; }
.pokr-obj { font-weight:700; font-size:13px; margin-bottom:6px; color:var(--primary); }
.pokr-kr { display:flex; align-items:center; gap:8px; font-size:12px; margin-bottom:4px; }
.pokr-kr > span:first-child { flex:1; }
.pokr-bar-wrap { width:80px; background:var(--border); border-radius:3px; height:6px; }
.pokr-bar { height:100%; background:var(--success); border-radius:3px; }
.pokr-pct { min-width:30px; text-align:right; font-size:11px; color:var(--text-muted); }

/* === 29.5.956-960 === */
.nmf-grid { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.nmf-chip { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:4px 10px; font-size:12px; color:var(--primary); font-style:italic; }
.hpb-row { display:flex; align-items:center; justify-content:space-between; padding:6px 0; border-bottom:1px solid var(--border); font-size:13px; gap:8px; }
.pss-row { display:flex; align-items:center; justify-content:space-between; padding:6px 0; border-bottom:1px solid var(--border); font-size:12px; gap:8px; }
.pss-btns { display:flex; gap:4px; }
.pss-btn { padding:3px 8px; background:var(--surface); border:1px solid var(--border); border-radius:4px; color:var(--text); cursor:pointer; font-size:11px; }
.pss-btn:hover { background:var(--primary); color:#fff; border-color:var(--primary); }
.plsd-row { display:flex; align-items:center; justify-content:space-between; padding:6px 0; border-bottom:1px solid var(--border); font-size:13px; }
.plsd-count { color:var(--primary); font-weight:700; }
.fsl-letter { background:var(--surface); border:1px solid var(--primary); border-radius:8px; padding:12px; margin-bottom:10px; }
.fsl-header { font-size:11px; font-weight:700; color:var(--primary); margin-bottom:6px; }
.fsl-letter p { font-size:13px; white-space:pre-wrap; }
/* === 29.5.961 Note Template Library === */
.ntl-row{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border:1px solid var(--border);border-radius:8px;margin-bottom:6px;background:var(--surface)}
.ntl-name{font-weight:600;font-size:13px}
/* === 29.5.962 Habit Abstinence Counter === */
.hac-row{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid var(--border);flex-wrap:wrap}
.hac-days{font-weight:700;color:var(--success);font-size:13px;flex:1}
/* === 29.5.963 Priority Effort Log === */
.pel-row{display:flex;align-items:center;gap:8px;padding:6px 12px;border-bottom:1px solid var(--border)}
.pel-date{color:var(--text-muted);font-size:11px;min-width:80px}
.pel-mins{font-weight:700;color:var(--primary);font-size:12px;margin-left:auto}
/* === 29.5.964 Distraction-Free Mode === */
body.distraction-free .main-content{margin-left:0!important;padding-top:0!important}
/* === 29.5.965 Habit Heatmap Year === */
.hhy-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.hhy-tab{padding:4px 10px;border-radius:20px;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;font-size:12px}
.hhy-tab.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.hhy-grid{display:grid;grid-template-columns:repeat(52,12px);gap:2px;overflow-x:auto}
.hhy-cell{width:12px;height:12px;border-radius:2px;background:var(--border)}
.hhy-cell.hhy-done{background:var(--success)}
/* === 29.5.966 Notes Vocabulary Builder === */
.nvb-row{display:flex;align-items:center;justify-content:space-between;padding:6px 12px;border-bottom:1px solid var(--border)}
.nvb-word{font-weight:600;font-size:13px;text-transform:capitalize}
.nvb-count{font-size:12px;color:var(--primary);font-weight:700}
/* === 29.5.967 Habit Time-of-Day Tracker === */
.htt-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.htt-name{font-size:12px;font-weight:600;min-width:100px}
.htt-bars{flex:1;display:flex;height:10px;border-radius:5px;overflow:hidden;background:var(--border)}
.htt-bar{height:100%;transition:width .3s}
.htt-label{font-size:10px;color:var(--text-muted);min-width:80px;text-align:right}
/* === 29.5.968 Priority Focus List === */
.pfl-row{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid var(--border);gap:8px}
.pfl-row.pfl-focus{background:rgba(var(--primary-rgb,99,102,241),0.08);border-left:3px solid var(--primary)}
.pfl-text{flex:1;font-size:13px}
/* === 29.5.969 Pomo Soundtrack Replay === */
.psr2-row{display:flex;align-items:center;gap:8px;padding:6px 12px;border-bottom:1px solid var(--border)}
.psr2-date{color:var(--text-muted);font-size:11px;min-width:80px}
.psr2-task{flex:1;font-size:12px}
.psr2-dur{font-size:11px;color:var(--primary);font-weight:700}
/* === 29.5.970 Dashboard Micro-Journal === */
.mj-row{display:flex;align-items:flex-start;gap:8px;padding:8px 12px;border-bottom:1px solid var(--border)}
.mj-date{color:var(--text-muted);font-size:11px;min-width:80px;flex-shrink:0}
.mj-text{flex:1;font-size:12px;line-height:1.4}
/* === 29.5.971 Notes Rhyme Finder === */
.nrf-row{display:flex;align-items:center;gap:12px;padding:6px 12px;border-bottom:1px solid var(--border)}
.nrf-end{font-weight:700;color:var(--primary);min-width:60px;font-size:13px}
.nrf-words{flex:1;font-size:12px;color:var(--text-muted)}
/* === 29.5.972 Habit Cue-Routine-Reward === */
.hcrr-row{display:flex;align-items:center;gap:6px;padding:6px 0;border-bottom:1px solid var(--border);flex-wrap:wrap}
.hcrr-name{font-weight:600;font-size:12px;min-width:90px}
.hcrr-input{flex:1;min-width:100px;background:var(--surface);border:1px solid var(--border);color:var(--text);padding:4px 8px;border-radius:4px;font-size:11px}
/* === 29.5.973 Priority Blocker Log === */
.pbl-row{display:flex;align-items:center;gap:8px;padding:6px 12px;border-bottom:1px solid var(--border)}
.pbl-date{color:var(--text-muted);font-size:11px;min-width:80px}
.pbl-text{flex:1;font-size:12px}
.pbl-status{font-size:11px;font-weight:700;padding:2px 6px;border-radius:4px}
.pbl-ok{color:var(--success)}
.pbl-open{color:var(--warning)}
/* === 29.5.974 Pomo Ambient Scene === */
.ass-row{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid var(--border)}
.ass-name{font-size:13px;font-weight:600}
/* === 29.5.975 Dashboard Goal Countdown === */
.gc-row{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid var(--border)}
.gc-name{flex:1;font-size:13px;font-weight:600}
.gc-days{font-size:12px;color:var(--primary);min-width:65px;text-align:right}
.gc-days.gc-urgent{color:var(--error)}
.gc-bar{width:60px;height:6px;background:var(--border);border-radius:3px;overflow:hidden}
.gc-fill{height:100%;background:var(--success);border-radius:3px;transition:width .3s}
/* === 29.5.976 Notes Reading Speed Estimator === */
.nrs-stat{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:12px;text-align:center}
.nrs-val{font-size:24px;font-weight:800;color:var(--primary)}
.nrs-lbl{font-size:11px;color:var(--text-muted);margin-top:2px}
/* === 29.5.977 Habit Relapse Tracker === */
.hrt-row{display:flex;align-items:center;gap:8px;padding:6px 12px;border-bottom:1px solid var(--border);flex-wrap:wrap}
.hrt-name{font-weight:600;font-size:12px;flex:1}
.hrt-count{font-size:12px;color:var(--error);font-weight:700}
.hrt-last{font-size:11px;color:var(--text-muted)}
/* === 29.5.978 Priority Value Score === */
.pvs-row{display:flex;align-items:center;gap:8px;padding:6px 12px;border-bottom:1px solid var(--border)}
.pvs-text{flex:1;font-size:12px}
.pvs-val{font-weight:700;color:var(--primary);min-width:20px;text-align:center}
/* === 29.5.979 Pomo Energy Level Logger === */
.pel2-chart{display:flex;align-items:flex-end;gap:4px;height:50px;padding:8px 0;border-bottom:1px solid var(--border)}
/* === 29.5.980 Dashboard Reflection Prompts === */
.rp-prompt{font-size:14px;font-weight:600;color:var(--primary);padding:12px;background:rgba(99,102,241,0.08);border-radius:8px;line-height:1.4}
.rp-entry{padding:8px 0;border-bottom:1px solid var(--border)}
.rp-q{font-size:11px;color:var(--text-muted);font-style:italic}
.rp-a{font-size:12px;margin-top:2px}
.rp-date{font-size:10px;color:var(--text-muted);margin-top:2px}
/* === 29.5.981 Notes Citation Builder === */
.ncb-row{display:flex;align-items:center;gap:8px;padding:6px 12px;border-bottom:1px solid var(--border);flex-wrap:wrap}
.ncb-type{font-size:10px;font-weight:700;padding:2px 6px;background:var(--primary);color:#fff;border-radius:4px;text-transform:uppercase;flex-shrink:0}
.ncb-text{flex:1;font-size:11px;font-style:italic;color:var(--text-muted)}
/* === 29.5.982 Habit Best Day Finder === */
.hbdf-row{display:flex;align-items:flex-end;gap:8px;padding:6px 12px;border-bottom:1px solid var(--border)}
.hbdf-name{font-size:12px;font-weight:600;min-width:100px}
.hbdf-bars{display:flex;align-items:flex-end;gap:2px;height:30px;flex:1}
.hbdf-bar{width:14px;min-height:4px;border-radius:2px 2px 0 0}
.hbdf-best{font-weight:800;color:var(--success);font-size:12px;min-width:28px}
/* === 29.5.983 Priority Risk Assessment === */
.pra-row{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid var(--border);gap:8px}
.pra-text{flex:1;font-size:12px}
/* === 29.5.984 Pomo Streak Calendar === */
.psc-grid{display:grid;grid-template-columns:repeat(7,18px);gap:3px;padding:8px 0}
.psc-cell{width:18px;height:18px;border-radius:3px;background:var(--border)}
.psc-i1{background:rgba(99,102,241,0.3)}
.psc-i2{background:rgba(99,102,241,0.6)}
.psc-i3{background:var(--primary)}
.psc-legend{display:flex;align-items:center;gap:4px;margin-top:4px}
/* === 29.5.985 Dashboard Time Capsule === */
.tc-row{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid var(--border)}
.tc-row.tc-ready{background:rgba(16,185,129,0.08);border-left:3px solid var(--success)}
.tc-label{font-size:12px;font-weight:700;flex:1}
.tc-date{font-size:11px;color:var(--text-muted)}
.tc-message{font-size:14px;line-height:1.6;padding:16px;background:var(--surface);border-radius:8px;margin-top:12px;font-style:italic}
/* === 29.5.986 Notes Mind Map === */
/* SVG inline — no additional CSS needed */
/* === 29.5.987 Habit Frequency Adjuster === */
.hfa-row{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid var(--border);gap:8px}
.hfa-name{flex:1;font-size:13px;font-weight:600}
/* === 29.5.988 Priority Weekly Planner === */
.pwp-row{display:flex;align-items:center;gap:6px;padding:6px 12px;border-bottom:1px solid var(--border);flex-wrap:wrap}
.pwp-day{font-weight:700;font-size:12px;min-width:32px;color:var(--primary)}
.pwp-tasks{flex:1;display:flex;flex-wrap:wrap;gap:4px;min-height:20px}
.pwp-tag{font-size:10px;padding:2px 6px;background:rgba(99,102,241,0.15);border:1px solid var(--primary);border-radius:10px;color:var(--primary)}
/* === 29.5.989 Pomo Focus Word === */
.pfw-today{font-size:40px;font-weight:900;text-align:center;color:var(--primary);letter-spacing:2px;padding:16px 0}
.pfw-entry{display:flex;justify-content:space-between;padding:6px 12px;border-bottom:1px solid var(--border)}
.pfw-word{font-weight:700;font-size:13px}
.pfw-date{font-size:11px;color:var(--text-muted)}
/* === 29.5.990 Dashboard Mood Trend Chart === */
/* Uses inline styles for chart bars */
/* === 29.5.991 Notes Outline Numbered === */
.non-line{display:flex;align-items:baseline;gap:8px;padding:3px 0;font-size:12px}
.non-num{font-weight:700;color:var(--primary);min-width:32px;font-size:11px}
/* === 29.5.992 Habit Pair Suggestion === */
.hps-row{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid var(--border);gap:8px}
.hps-pair{font-weight:700;font-size:13px;flex:1}
.hps-reason{font-size:11px;color:var(--text-muted);font-style:italic}
/* === 29.5.993 Priority Delegation Tracker === */
.pdt-row{display:flex;align-items:center;gap:8px;padding:6px 12px;border-bottom:1px solid var(--border);flex-wrap:wrap}
.pdt-task{flex:1;font-size:12px}
.pdt-to{font-size:11px;color:var(--primary)}
.pdt-status{font-size:11px;font-weight:700}
.pdt-done{color:var(--success)}
.pdt-pending{color:var(--warning)}
/* === 29.5.994 Pomo Session Reviewer === */
.psr3-row{display:flex;align-items:center;gap:8px;padding:6px 12px;border-bottom:1px solid var(--border)}
.psr3-date{font-size:11px;color:var(--text-muted);min-width:80px}
.psr3-stars{color:#f59e0b;font-size:14px}
.psr3-note{flex:1;font-size:11px;color:var(--text-muted)}
/* === 29.5.995 Habit Speed Run === */
.hsr-timer{font-size:28px;font-weight:800;color:var(--primary);text-align:center;padding:8px 0}
.hsr-row{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid var(--border);gap:8px}
