    /* --- Mode Selector --- */
    .mode-toggle {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      margin-bottom: 32px;
      background: var(--color-bg);
      border: 1px solid var(--color-border);
      border-radius: 6px;
      padding: 3px;
      max-width: 420px;
      margin-left: auto;
      margin-right: auto;
    }
    .mode-btn {
      flex: 1;
      padding: 9px 16px;
      border: none;
      border-radius: 4px;
      background: transparent;
      font-family: var(--font-body);
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--color-text-muted);
      cursor: pointer;
      transition: all 150ms ease;
      white-space: nowrap;
    }
    .mode-btn.active {
      background: var(--color-surface);
      box-shadow: var(--shadow-sm);
    }
    .mode-btn.active[data-mode="focus"] { color: var(--color-primary); }
    .mode-btn.active[data-mode="short"] { color: #059669; }
    .mode-btn.active[data-mode="long"] { color: #7c3aed; }
    .mode-btn:hover:not(.active) { color: var(--color-text); }

    /* --- Timer Display --- */
    .timer-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 28px;
      margin-bottom: 32px;
    }

    .timer-ring-wrapper {
      position: relative;
      width: 280px;
      height: 280px;
    }
    .timer-ring-svg {
      width: 280px;
      height: 280px;
      transform: rotate(-90deg);
    }
    .timer-ring-bg {
      fill: none;
      stroke: var(--color-border-light);
      stroke-width: 8;
    }
    .timer-ring-progress {
      fill: none;
      stroke: var(--color-primary);
      stroke-width: 8;
      stroke-linecap: round;
      transition: stroke-dashoffset 1s linear, stroke 300ms ease;
    }
    .timer-ring-wrapper[data-mode="focus"] .timer-ring-progress { stroke: var(--color-primary); }
    .timer-ring-wrapper[data-mode="short"] .timer-ring-progress { stroke: #059669; }
    .timer-ring-wrapper[data-mode="long"] .timer-ring-progress { stroke: #7c3aed; }

    .timer-inner {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
    }
    .timer-digits {
      font-family: var(--font-mono);
      font-size: 3.6rem;
      font-weight: 700;
      color: var(--color-text);
      line-height: 1;
      letter-spacing: -0.02em;
    }
    .timer-mode-label {
      font-size: 0.82rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }
    .timer-ring-wrapper[data-mode="focus"] .timer-mode-label { color: var(--color-primary); }
    .timer-ring-wrapper[data-mode="short"] .timer-mode-label { color: #059669; }
    .timer-ring-wrapper[data-mode="long"] .timer-mode-label { color: #7c3aed; }

    /* --- Session Indicator --- */
    .session-indicator {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.85rem;
      color: var(--color-text-secondary);
      font-weight: 500;
    }
    .session-dots {
      display: flex;
      gap: 6px;
    }
    .session-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--color-border);
      transition: background 200ms ease;
    }
    .session-dot.filled { background: var(--color-primary); }

    /* --- Controls --- */
    .timer-controls {
      display: flex;
      align-items: center;
      gap: 12px;
      justify-content: center;
    }
    .ctrl-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 28px;
      border: none;
      border-radius: var(--radius-sm);
      font-family: var(--font-body);
      font-size: 0.92rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 150ms ease;
    }
    .ctrl-btn svg { flex-shrink: 0; }
    .ctrl-start {
      background: var(--color-primary);
      color: white;
    }
    .ctrl-start:hover { background: var(--color-primary-hover); }
    .ctrl-start[data-mode="short"] { background: #059669; }
    .ctrl-start[data-mode="short"]:hover { background: #047857; }
    .ctrl-start[data-mode="long"] { background: #7c3aed; }
    .ctrl-start[data-mode="long"]:hover { background: #6d28d9; }

    .ctrl-pause {
      background: var(--color-text);
      color: white;
    }
    .ctrl-pause:hover { background: #0f172a; }

    .ctrl-reset {
      background: transparent;
      color: var(--color-text-muted);
      border: 1px solid var(--color-border);
    }
    .ctrl-reset:hover {
      color: var(--color-text);
      border-color: var(--color-text-muted);
      background: var(--color-bg);
    }
    .ctrl-skip {
      background: transparent;
      color: var(--color-text-muted);
      border: 1px solid var(--color-border);
      padding: 12px 18px;
    }
    .ctrl-skip:hover {
      color: var(--color-text);
      border-color: var(--color-text-muted);
      background: var(--color-bg);
    }

    /* --- Settings Panel --- */
    .settings-toggle {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 4px;
    }
    .settings-toggle-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 16px;
      border: none;
      border-radius: var(--radius-sm);
      background: transparent;
      color: var(--color-text-muted);
      font-family: var(--font-body);
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 150ms ease;
    }
    .settings-toggle-btn:hover { color: var(--color-text-secondary); background: var(--color-bg); }
    .settings-toggle-btn svg {
      transition: transform 200ms ease;
    }
    .settings-toggle-btn.open svg { transform: rotate(180deg); }

    .settings-panel {
      max-height: 0;
      overflow: hidden;
      transition: max-height 300ms ease, padding 300ms ease;
      background: var(--color-bg);
      border: 1px solid transparent;
      border-radius: var(--radius-md);
      margin-bottom: 28px;
    }
    .settings-panel.open {
      max-height: 600px;
      border-color: var(--color-border);
      padding: 20px 24px;
    }
    .settings-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px 24px;
    }
    .setting-item {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .setting-item label {
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--color-text-muted);
    }
    .setting-item input[type="number"] {
      width: 100%;
      padding: 9px 12px;
      border: 1px solid var(--color-border);
      border-radius: var(--radius-sm);
      font-family: var(--font-mono);
      font-size: 0.88rem;
      color: var(--color-text);
      background: var(--color-surface);
      outline: none;
    }
    .setting-item input[type="number"]:focus {
      border-color: var(--color-primary);
      box-shadow: 0 0 0 3px var(--color-primary-light);
    }
    .setting-toggle-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 6px 0;
    }
    .setting-toggle-row span {
      font-size: 0.85rem;
      font-weight: 500;
      color: var(--color-text-secondary);
    }

    /* Toggle switch */
    .toggle-switch {
      position: relative;
      width: 42px;
      height: 24px;
      flex-shrink: 0;
    }
    .toggle-switch input {
      opacity: 0;
      width: 0;
      height: 0;
      position: absolute;
    }
    .toggle-slider {
      position: absolute;
      cursor: pointer;
      top: 0; left: 0; right: 0; bottom: 0;
      background: var(--color-border);
      border-radius: 24px;
      transition: background 200ms ease;
    }
    .toggle-slider::before {
      content: "";
      position: absolute;
      width: 18px;
      height: 18px;
      left: 3px;
      bottom: 3px;
      background: white;
      border-radius: 50%;
      transition: transform 200ms ease;
    }
    .toggle-switch input:checked + .toggle-slider {
      background: var(--color-primary);
    }
    .toggle-switch input:checked + .toggle-slider::before {
      transform: translateX(18px);
    }

    /* --- Stats Section --- */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      margin-bottom: 8px;
    }
    .stat-card {
      padding: 18px 20px;
      border-radius: var(--radius-md);
      border: 1px solid var(--color-border);
      background: var(--color-surface);
      display: flex;
      flex-direction: column;
      gap: 4px;
      text-align: center;
    }
    .stat-label {
      font-size: 0.72rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--color-text-muted);
    }
    .stat-value {
      font-family: var(--font-mono);
      font-size: 1.6rem;
      font-weight: 700;
      color: var(--color-text);
      line-height: 1.2;
    }
    .stat-sub {
      font-size: 0.78rem;
      color: var(--color-text-muted);
    }

    /* --- Toast --- */
    .toast-msg {
      position: fixed;
      bottom: 24px;
      right: 24px;
      padding: 12px 20px;
      border-radius: var(--radius-sm);
      font-size: 0.85rem;
      font-weight: 600;
      color: white;
      background: var(--color-text);
      box-shadow: var(--shadow-lg);
      z-index: 999;
      opacity: 0;
      transform: translateY(12px);
      transition: all 250ms ease;
      pointer-events: none;
    }
    .toast-msg.show { opacity: 1; transform: translateY(0); }

    /* --- Notification Banner --- */
    .timer-notification {
      display: none;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 14px 20px;
      border-radius: var(--radius-md);
      font-size: 0.9rem;
      font-weight: 600;
      margin-bottom: 20px;
      animation: notifPulse 1.5s ease infinite;
    }
    .timer-notification.show { display: flex; }
    .timer-notification.focus-done {
      background: #ecfdf5;
      color: #059669;
      border: 1px solid #a7f3d0;
    }
    .timer-notification.break-done {
      background: var(--color-primary-light);
      color: var(--color-primary);
      border: 1px solid var(--color-primary-subtle);
    }
    @keyframes notifPulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.7; }
    }

    /* --- Responsive --- */
    @media (max-width: 768px) {
      .stats-grid { grid-template-columns: 1fr 1fr; }
      .settings-grid { grid-template-columns: 1fr; }
      .timer-ring-wrapper { width: 240px; height: 240px; }
      .timer-ring-svg { width: 240px; height: 240px; }
      .timer-digits { font-size: 3rem; }
    }
    @media (max-width: 480px) {
      .timer-ring-wrapper { width: 220px; height: 220px; }
      .timer-ring-svg { width: 220px; height: 220px; }
      .timer-digits { font-size: 2.6rem; }
      .mode-toggle { flex-direction: column; gap: 2px; }
      .mode-btn { width: 100%; text-align: center; }
      .timer-controls { flex-wrap: wrap; }
      .ctrl-btn { padding: 10px 20px; font-size: 0.85rem; }
      .stats-grid { grid-template-columns: 1fr 1fr; }
      .stat-value { font-size: 1.3rem; }
    }
