/* ═══════════════════════════════════════════
   CAREER OS — COMPONENTS
   ═══════════════════════════════════════════ */

/* ── Glass Card ── */
.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-bd);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s6);
}
.card-sm { padding: var(--s4) var(--s5); }
.card-lg { padding: var(--s8); }

/* ── Stat Card ── */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  transition: border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}
.stat-card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
}
.stat-card-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: var(--s1);
}
.stat-card-value {
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--tx);
}
.stat-card-label {
  font-size: 12px;
  color: var(--tx-2);
  font-weight: 500;
}
.stat-card-sub {
  font-size: 11px;
  color: var(--tx-3);
  margin-top: var(--s1);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: var(--s2) var(--s5);
  border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 600;
  transition: all var(--dur-base) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--primary-glow);
}
.btn-secondary {
  background: var(--surface-2);
  color: var(--tx);
  border: 1px solid var(--border-2);
}
.btn-secondary:hover { background: var(--surface-3); }
.btn-ghost {
  background: transparent;
  color: var(--tx-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--tx); }
.btn-danger {
  background: var(--rose-dim);
  color: var(--rose);
  border: 1px solid var(--rose-dim);
}
.btn-danger:hover { background: var(--rose); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: var(--s3) var(--s8); font-size: 15px; }
.btn-icon {
  width: 34px; height: 34px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  font-size: 16px;
}

/* ── Badge / Pill ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.badge-primary { background: var(--primary-dim); color: var(--primary); }
.badge-accent  { background: var(--accent-dim);  color: var(--accent);  }
.badge-amber   { background: var(--amber-dim);   color: var(--amber);   }
.badge-rose    { background: var(--rose-dim);    color: var(--rose);    }
.badge-sky     { background: var(--sky-dim);     color: var(--sky);     }
.badge-green   { background: var(--green-dim);   color: var(--green);   }

.skill-badge {
  font-size: 10px; font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-full);
}
.skill-python   { background: var(--s-py-bg); color: var(--s-py-tx); }
.skill-dsa      { background: var(--s-ds-bg); color: var(--s-ds-tx); }
.skill-english  { background: var(--s-en-bg); color: var(--s-en-tx); }
.skill-math     { background: var(--s-ma-bg); color: var(--s-ma-tx); }
.skill-projects { background: var(--s-pr-bg); color: var(--s-pr-tx); }
.skill-interview{ background: var(--s-in-bg); color: var(--s-in-tx); }

/* ── Progress bar ── */
.prog-wrap {
  height: 6px;
  background: var(--surface-3);
  border-radius: var(--r-full);
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  border-radius: var(--r-full);
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.prog-sm { height: 3px; }
.prog-lg { height: 10px; }

/* ── Task row ── */
.task-row {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s3) var(--s3);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  border-radius: var(--r-md);
  transition: background var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
  position: relative;
  margin: 0 calc(-1 * var(--s3));
}
.task-row:last-child { border-bottom: none; }
.task-row:hover {
  background: var(--surface-2);
  transform: translateX(2px);
}
.task-row:active { transform: scale(0.99); }

.task-check {
  width: 18px; height: 18px; min-width: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
  transition: all var(--dur-base) var(--ease);
  font-size: 11px;
  color: transparent;
  flex-shrink: 0;
}
.task-check.done {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  animation: checkPop 0.25s var(--ease-spring);
}

.task-info { flex: 1; min-width: 0; }
.task-name {
  font-size: 13.5px;
  color: var(--tx);
  line-height: 1.5;
}
.task-name.done {
  text-decoration: line-through;
  color: var(--tx-3);
}
.task-sub {
  font-size: 11.5px;
  color: var(--tx-2);
  margin-top: 2px;
  line-height: 1.4;
}
.task-meta {
  display: flex; align-items: center; gap: var(--s2);
  margin-top: 4px;
}
.task-time {
  font-size: 10.5px;
  color: var(--tx-3);
  white-space: nowrap;
  padding-top: 2px;
  flex-shrink: 0;
}
.task-xp {
  font-size: 10px; font-weight: 700;
  color: var(--amber);
  white-space: nowrap;
  padding-top: 2px;
  flex-shrink: 0;
}

/* Show note icon only on hover */
.task-note-btn {
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
  color: var(--tx-3);
  cursor: pointer;
}
.task-note-btn:hover { color: var(--primary); }
.task-note-btn.active { opacity: 1; color: var(--primary); }
.task-row:hover .task-note-btn { opacity: 1; }

.task-note-display {
  margin: 4px 0 4px 28px;
  padding: 8px 12px;
  background: var(--surface-2);
  border-left: 2px solid var(--primary);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 12px;
  color: var(--tx-2);
  line-height: 1.5;
}

.note-editor {
  margin: var(--s2) 0 var(--s3) 28px;
  background: var(--surface-2);
  padding: var(--s3);
  border-radius: var(--r-md);
  border: 1px solid var(--border-2);
}
.note-textarea {
  width: 100%; min-height: 60px;
  background: transparent; border: none;
  color: var(--tx); font-size: 12.5px;
  outline: none; resize: vertical;
}
.note-actions {
  display: flex; gap: var(--s2);
  justify-content: flex-end; margin-top: var(--s2);
}

/* ── Month accordion ── */
.month-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: var(--s3);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease);
}
.month-card:hover { border-color: var(--border-2); }

.month-hdr {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s4) var(--s5);
  cursor: pointer;
  user-select: none;
  transition: background var(--dur-fast) var(--ease);
}
.month-hdr:hover { background: var(--surface-2); }

.month-badge {
  font-size: 11px; font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.month-title-wrap { flex: 1; min-width: 0; }
.month-title {
  font-size: 14px; font-weight: 600;
  color: var(--tx);
  line-height: 1.3;
}
.month-badges {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: 4px;
}
.month-prog-wrap {
  height: 3px;
  background: var(--surface-3);
  border-radius: var(--r-full);
  margin-top: 6px;
  overflow: hidden;
}
.month-prog-fill {
  height: 100%;
  border-radius: var(--r-full);
  transition: width 0.5s var(--ease);
}
.month-prog-txt {
  font-size: 11px; color: var(--tx-3);
  white-space: nowrap; margin-left: 4px;
}
.month-chev {
  font-size: 16px; color: var(--tx-3);
  transition: transform var(--dur-base) var(--ease);
  flex-shrink: 0;
}
.month-body {
  display: none;
  padding: 0 var(--s5) var(--s4);
}
.month-body.open { display: block; }
.week-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: .04em;
  padding: var(--s4) 0 var(--s2);
  text-transform: uppercase;
}
.month-win {
  background: linear-gradient(135deg, var(--accent-dim), transparent);
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  padding: var(--s3) var(--s4);
  margin-top: var(--s4);
  font-size: 12px;
  color: var(--tx-2);
  line-height: 1.6;
  position: relative;
  padding-left: var(--s8);
}
.month-win::before {
  content: '🎯';
  position: absolute;
  left: var(--s3);
  top: var(--s3);
  font-size: 14px;
}
.month-win strong { color: var(--accent); font-weight: 700; }

.month-rule {
  background: var(--amber-dim);
  border: 1px solid var(--amber);
  border-radius: var(--r-md);
  padding: var(--s3) var(--s4);
  margin-top: var(--s3);
  font-size: 12px;
  color: var(--tx-2);
  line-height: 1.6;
  font-style: normal;
  position: relative;
  padding-left: var(--s8);
}
.month-rule::before {
  content: '⚠';
  position: absolute;
  left: var(--s3);
  top: var(--s3);
  font-size: 14px;
  color: var(--amber);
}

/* ── Filter tabs ── */
.filter-tabs {
  display: flex; gap: var(--s2); flex-wrap: wrap;
  margin-bottom: var(--s5);
}
.filter-tab {
  font-size: 12.5px; font-weight: 500;
  padding: 5px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-2);
  cursor: pointer;
  background: transparent;
  color: var(--tx-2);
  transition: all var(--dur-fast) var(--ease);
}
.filter-tab:hover { background: var(--surface-2); color: var(--tx); }
.filter-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Toast ── */
.toasts-container {
  position: fixed;
  bottom: calc(var(--bottomnav-h) + var(--s4));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  pointer-events: none;
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: var(--s3) var(--s5);
  font-size: 13px;
  font-weight: 500;
  color: var(--tx);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--s3);
  white-space: nowrap;
  animation: toastIn 0.3s var(--ease-spring) both;
  pointer-events: all;
}
.toast.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}
.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.toast.success .toast-icon { background: var(--accent-dim); color: var(--accent); }
.toast.xp .toast-icon      { background: var(--primary-dim); color: var(--primary); }
.toast.badge .toast-icon   { background: var(--amber-dim); color: var(--amber); }
.toast-exit { animation: toastOut 0.25s var(--ease) both; }

/* ── Input ── */
.input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: var(--s3) var(--s4);
  font-size: 13.5px;
  color: var(--tx);
  outline: none;
  transition: border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}
.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}
.input::placeholder { color: var(--tx-3); }

.input-group { display: flex; flex-direction: column; gap: var(--s2); }
.input-label { font-size: 12.5px; font-weight: 600; color: var(--tx-2); }

/* ── Select ── */
.select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: var(--s3) var(--s4);
  font-size: 13.5px;
  color: var(--tx);
  outline: none;
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease);
}
.select:focus { border-color: var(--primary); }

/* ── Toggle switch ── */
.toggle-wrap {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--border);
}
.toggle-wrap:last-child { border-bottom: none; }
.toggle-info { flex: 1; }
.toggle-title { font-size: 14px; font-weight: 500; color: var(--tx); }
.toggle-desc  { font-size: 12px; color: var(--tx-3); margin-top: 2px; }
.toggle {
  position: relative;
  width: 44px; height: 24px; flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--surface-3);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--dur-base) var(--ease-spring);
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.toggle input:checked + .toggle-slider { background: var(--primary); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── Section heading ── */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--s4);
}
.section-title {
  font-size: 15px; font-weight: 700;
  color: var(--tx); letter-spacing: -0.01em;
}

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: var(--s12) var(--s6);
  color: var(--tx-3);
}
.empty-state-icon { font-size: 40px; margin-bottom: var(--s4); }
.empty-state-title { font-size: 16px; font-weight: 600; color: var(--tx-2); margin-bottom: var(--s2); }
.empty-state-desc  { font-size: 13px; line-height: 1.6; }

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--s5) 0;
}

/* ── Year Header ── */
.year-header {
  font-size: 13px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--tx-2);
  margin: var(--s8) 0 var(--s4);
  display: flex; align-items: center; gap: var(--s2);
  border-left: 3.5px solid var(--primary);
  padding-left: var(--s3);
  background: linear-gradient(90deg, var(--surface-2), transparent);
  padding-top: var(--s2);
  padding-bottom: var(--s2);
}

/* ── Modal System ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s4);
  animation: fadeIn 0.2s ease;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: var(--s8);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s var(--ease-spring);
  position: relative;
}
.modal-title {
  font-size: 19px; font-weight: 700;
  color: var(--tx); margin-bottom: var(--s6);
}
.form-group { margin-bottom: var(--s5); }
.form-label {
  display: block; font-size: 11.5px; font-weight: 700;
  color: var(--tx-2); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: var(--s2);
}
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--surface-2);
  border: 1px solid var(--border-2); border-radius: var(--r-md);
  padding: var(--s3) var(--s4); color: var(--tx);
  font-size: 14px; font-family: var(--font);
  transition: all var(--dur-base) var(--ease);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}
.form-textarea { min-height: 90px; resize: vertical; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.modal-actions {
  display: flex; gap: var(--s3);
  justify-content: flex-end; margin-top: var(--s8);
  padding-top: var(--s6); border-top: 1px solid var(--border);
}
.form-error {
  color: var(--rose); font-size: 12px; font-weight: 500;
  margin-top: 4px; display: block;
}

/* ── Star Rating ── */
.star-rating { display: flex; gap: var(--s1); margin-top: var(--s1); }
.star-btn {
  font-size: 26px; cursor: pointer; color: var(--surface-3);
  transition: all var(--dur-fast) var(--ease);
  background: none; border: none; padding: 0;
}
.star-btn.active { color: var(--amber); transform: scale(1.1); }
.star-label { font-size: 12px; color: var(--tx-3); margin-top: 4px; }

/* ── Search Bar ── */
.search-wrap { position: relative; margin-bottom: var(--s6); }
.search-icon {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%); color: var(--tx-3);
  width: 18px; height: 18px; pointer-events: none;
}
.search-input {
  width: 100%; background: var(--surface);
  border: 1px solid var(--border-2); border-radius: var(--r-xl);
  padding: var(--s4) var(--s4) var(--s4) 48px;
  color: var(--tx); font-size: 15px; outline: none;
  transition: all var(--dur-base) var(--ease);
}
.search-input:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-dim);
}
.search-clear {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%); width: 26px; height: 26px;
  border-radius: 50%; background: var(--surface-3);
  color: var(--tx-2); display: flex; align-items: center;
  justify-content: center; cursor: pointer; border: none;
}
.search-highlight {
  background: var(--amber-dim); color: var(--amber);
  border-radius: 2px; padding: 0 2px; font-weight: 600;
}

/* ════════════════════════════════════════
   POMODORO — FOCUS VIEW
   ════════════════════════════════════════ */

.view-focus {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--s4) var(--s4) var(--s16);
}

/* ── Shell card ── */
.pomo-shell {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-2xl);
  padding: var(--s6) var(--s6) var(--s5);
  margin-bottom: var(--s6);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.5s ease;
}

/* Radial glow at the top of the card — changes per mode */
.pomo-shell::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 180px;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 60% at 50% -20%,
    var(--primary-dim), transparent 70%
  );
  transition: background 0.5s ease;
}
.pomo-shell.mode-short::before {
  background: radial-gradient(
    ellipse 70% 60% at 50% -20%,
    var(--accent-dim), transparent 70%
  );
}
.pomo-shell.mode-long::before {
  background: radial-gradient(
    ellipse 70% 60% at 50% -20%,
    var(--sky-dim), transparent 70%
  );
}

/* ── Header row ── */
.pomo-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s5);
  position: relative; /* above ::before pseudo */
  z-index: 1;
}

.pomo-header-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx-3);
}

/* ── Session dots ── */
.pomo-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.pomo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1.5px solid var(--border-2);
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

/* Current active session: glowing violet dot, slightly larger */
.pomo-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  transform: scale(1.25);
}

/* Completed session: solid green dot */
.pomo-dot.done {
  background: var(--accent);
  border-color: var(--accent);
}

/* ── SVG ring wrap ── */
.pomo-ring-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto var(--s4);
}

/* ── Ambient pulse ring (behind SVG, fills ring-wrap) ── */
.pomo-ambient {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, border-color 0.5s ease;
}
/* Active state: breathing animation + visible */
.pomo-ambient.is-active {
  opacity: 0.22;
  animation: pomoBreathe 3.5s ease-in-out infinite;
}
.pomo-ambient.is-break {
  border-color: var(--accent);
}
@keyframes pomoBreathe {
  0%, 100% { transform: scale(1);    opacity: 0.22; }
  50%       { transform: scale(1.05); opacity: 0.07; }
}

/* ── SVG itself ── */
.pomo-svg {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

/* Static background track */
.pomo-track {
  fill: none;
  stroke: var(--surface-3);
  stroke-width: 6;
}

/* Progress arc */
.pomo-arc {
  fill: none;
  stroke: var(--primary);
  stroke-width: 6;
  stroke-linecap: round;
  /* Start from top (12 o'clock) */
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  /* Smooth 1-second transition for each tick */
  transition: stroke-dashoffset 1s linear, stroke 0.5s ease;
}

/* Large MM:SS time display */
.pomo-time-text {
  font-family: var(--font-mono);
  font-size: 18px;        /* in SVG units: 18/100 of viewBox = large */
  font-weight: 600;
  fill: var(--tx);
  text-anchor: middle;
  dominant-baseline: middle;
  letter-spacing: -0.5px;
}

/* "Focus Session" / "Short Break" label below time */
.pomo-mode-text {
  font-family: var(--font);
  font-size: 6.5px;
  font-weight: 500;
  fill: var(--tx-3);
  text-anchor: middle;
  dominant-baseline: middle;
  letter-spacing: 0.04em;
}

/* ── Motivational message ── */
.pomo-msg {
  font-size: 13px;
  color: var(--tx-3);
  font-style: italic;
  letter-spacing: 0.02em;
  height: 20px;
  margin: 0 0 var(--s4);
  transition: opacity 0.4s ease;
  line-height: 1;
}
.pomo-msg.fade {
  opacity: 0;
}

/* ── Duration selector ── */
.pomo-dur-row {
  display: flex;
  gap: var(--s2);
  justify-content: center;
  margin-bottom: var(--s5);
  transition: opacity 0.3s ease, visibility 0.3s;
}
.pomo-dur-row.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pomo-dur-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--tx-3);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}
.pomo-dur-btn:hover {
  background: var(--surface-3);
  color: var(--tx);
}
.pomo-dur-btn.active {
  background: var(--primary-dim);
  color: var(--primary);
  border-color: var(--primary);
}

/* ── Controls: reset | PLAY | skip ── */
.pomo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  margin-bottom: var(--s5);
}

/* Base control button */
.pomo-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--tx-2);
  transition: all 0.2s ease;
}
.pomo-ctrl:hover {
  background: var(--surface-3);
  color: var(--tx);
  transform: scale(1.06);
}
.pomo-ctrl:active { transform: scale(0.94); }

/* Smaller side buttons (reset + skip) */
.pomo-ctrl-side {
  width: 46px;
  height: 46px;
}
.pomo-ctrl-side i, .pomo-ctrl-side [data-lucide] {
  width: 18px;
  height: 18px;
}

/* Large primary play button */
.pomo-ctrl-main {
  width: 68px;
  height: 68px;
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 24px var(--primary-glow);
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.pomo-ctrl-main:hover {
  filter: brightness(1.12);
  transform: scale(1.08);
  box-shadow: 0 6px 32px var(--primary-glow);
}
.pomo-ctrl-main:active { transform: scale(0.94); }
.pomo-ctrl-main [data-lucide], .pomo-ctrl-main i {
  width: 24px;
  height: 24px;
}

/* Break mode: play button turns accent */
.pomo-ctrl-main.break-mode {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 24px hsla(162,76%,48%,.35);
}

/* ── Mode tabs ── */
.pomo-tabs {
  display: flex;
  gap: 2px;
  justify-content: center;
  margin-bottom: var(--s5);
  background: var(--surface-2);
  border-radius: var(--r-full);
  padding: 3px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.pomo-tab {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: var(--r-full);
  cursor: pointer;
  color: var(--tx-3);
  background: transparent;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.pomo-tab:hover { color: var(--tx-2); }
.pomo-tab.active {
  background: var(--surface);
  color: var(--tx);
  box-shadow: 0 1px 6px rgba(0,0,0,.3);
}

/* ── Stats row ── */
.pomo-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s5);
  background: var(--surface-2);
  border-radius: var(--r-lg);
  padding: var(--s3) var(--s5);
  margin-bottom: var(--s3);
}
.pomo-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.pomo-stat-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--tx);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.pomo-stat-lbl {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tx-3);
}
.pomo-stat-sep {
  width: 1px;
  height: 30px;
  background: var(--border-2);
}

/* ── Keyboard hint ── */
.pomo-kbd {
  font-size: 10px;
  color: var(--tx-3);
  letter-spacing: 0.02em;
}
kbd {
  font-family: var(--font-mono);
  font-size: 9px;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--tx-2);
}

/* ── Tasks section ── */
.pomo-tasks { margin-bottom: var(--s4); }
.pomo-tasks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s3);
}
.pomo-all-link {
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
}
.pomo-all-link:hover { text-decoration: underline; }

/* ── Completion flash effect on the shell ── */
@keyframes pomoFlash {
  0%   { box-shadow: inset 0 0 0 0 var(--primary-dim); }
  40%  { box-shadow: inset 0 0 0 30px var(--primary-dim); }
  100% { box-shadow: inset 0 0 0 0 transparent; }
}
.pomo-shell.flash { animation: pomoFlash 0.7s ease-out; }
.pomo-shell.flash-break { animation: pomoFlashBreak 0.7s ease-out; }
@keyframes pomoFlashBreak {
  0%   { box-shadow: inset 0 0 0 0 var(--accent-dim); }
  40%  { box-shadow: inset 0 0 0 30px var(--accent-dim); }
  100% { box-shadow: inset 0 0 0 0 transparent; }
}

/* ── Pipeline / Kanban ── */
.pipeline-container {
  display: flex; gap: var(--s4); overflow-x: auto;
  padding-bottom: var(--s4); margin: 0 calc(-1 * var(--s6));
  padding-left: var(--s6); padding-right: var(--s6);
}
.pipeline-column {
  flex: 1; min-width: 240px; background: var(--bg-2);
  border-radius: var(--r-lg); border: 1px solid var(--border);
  padding: var(--s4); height: fit-content;
}
.pipeline-col-header {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: var(--s4);
  color: var(--tx-3); display: flex; align-items: center;
  justify-content: space-between;
}
.pipeline-count {
  background: var(--surface-3); padding: 2px 8px;
  border-radius: var(--r-full); font-size: 10px;
}
.pipeline-card {
  background: var(--surface); border-radius: var(--r-md);
  padding: var(--s4); margin-bottom: var(--s3);
  border-left: 3px solid var(--tx-3); cursor: pointer;
  transition: transform var(--dur-fast) var(--ease);
}
.pipeline-card:hover { transform: translateY(-2px); }
.pipeline-card-title { font-size: 14px; font-weight: 600; color: var(--tx); margin-bottom: 4px; }
.pipeline-card-sub { font-size: 12px; color: var(--tx-2); }

/* ── Daily Goal Ring ── */
.goal-ring-wrap {
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s4) var(--s5); background: var(--surface-2);
  border-radius: var(--r-lg); margin-bottom: var(--s6);
}
.goal-ring-visual { position: relative; width: 54px; height: 54px; flex-shrink: 0; }
.goal-ring-txt {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 700;
}

/* ── Sidebar & Nav Progress ── */
.sidebar-progress { padding: var(--s6) var(--s6) 0; }
.sidebar-prog-bar {
  height: 6px; background: var(--surface-3);
  border-radius: var(--r-full); overflow: hidden;
  margin-bottom: var(--s2);
}
.sidebar-prog-fill {
  height: 100%; background: var(--primary);
  width: 0%; transition: width 1s ease;
}
.sidebar-prog-label { font-size: 11px; color: var(--tx-3); font-weight: 600; }

.nav-badge {
  margin-left: auto; font-size: 10px; font-weight: 700;
  padding: 1px 7px; background: var(--surface-3);
  border-radius: var(--r-full); color: var(--tx-3);
}
.nav-item.active .nav-badge { background: var(--primary-dim); color: var(--primary); }

.jump-current-btn {
  position: fixed; bottom: calc(var(--bottomnav-h) + var(--s5));
  right: var(--s5); background: var(--primary); color: #fff;
  border-radius: var(--r-full); padding: var(--s3) var(--s5);
  font-size: 13px; font-weight: 600; box-shadow: 0 4px 20px var(--primary-glow);
  display: flex; align-items: center; gap: var(--s2);
  z-index: 50; transition: all var(--dur-base) var(--ease);
  opacity: 0; pointer-events: none; transform: translateY(12px);
}
.jump-current-btn.visible { opacity: 1; pointer-events: all; transform: translateY(0); }

.current-badge {
  font-size: 9px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 3px 10px; background: var(--accent-dim);
  color: var(--accent); border-radius: var(--r-full);
  margin-left: auto; margin-right: var(--s3); animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(0.95); }
}
