/**
 * Atelier WebOS - Taskbar Application Styles (apps/taskbar/style.css)
 * Modular styles for the independent WebOS Taskbar application.
 */

/* Frameless Taskbar App Root (Bottom-Docked Shell) */
.webos-taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.75rem;
  margin: 0;
  background: var(--menu-bar-bg, rgba(15, 23, 42, 0.92));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  border-radius: 0;
  box-shadow: none;
  z-index: 10000;
  user-select: none;
}

/* Ensure Desktop adapts if taskbar is disabled */
body.no-taskbar #webosDesktop {
  height: calc(100vh - 52px);
  min-height: calc(100vh - 52px);
}

/* Animations for window pills in taskbar */
.taskbar-item {
  animation: taskbarItemPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes taskbarItemPop {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================================================
   Phase E (Lot 2): Bottom-Left AI Copilot Quick Bar & Attached Popover
   ============================================================================ */
.taskbar-copilot-bar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 8px 0 4px;
  border-radius: 999px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.14));
  background: rgba(99, 102, 241, 0.12);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.taskbar-copilot-bar:hover,
.taskbar-copilot-bar:focus-within,
.taskbar-copilot-bar.open {
  border-color: var(--accent-primary, #6366f1);
  background: rgba(99, 102, 241, 0.2);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18);
}
.taskbar-copilot-bar.copilot-disabled {
  opacity: 0.55;
}
.taskbar-copilot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  cursor: pointer;
  font-size: 0.76rem;
  flex-shrink: 0;
  padding: 0;
}
.taskbar-copilot-quick-input {
  width: 158px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main, #f8fafc);
  font-size: 0.77rem;
  font-family: inherit;
  user-select: text;
}
.taskbar-copilot-quick-input::placeholder {
  color: var(--text-muted, #94a3b8);
}

.taskbar-copilot-popup {
  position: fixed;
  left: 10px;
  bottom: 52px;
  width: min(430px, calc(100vw - 20px));
  height: min(560px, calc(100vh - 110px));
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.16));
  background: var(--window-bg, rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.48);
  color: var(--text-main, #f8fafc);
  z-index: 10050;
  overflow: hidden;
  animation: taskbarItemPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.copilot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  background: rgba(99, 102, 241, 0.09);
}
.copilot-title-group {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
}
.copilot-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}
.copilot-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.copilot-icon-btn {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}
.copilot-icon-btn:hover,
.copilot-icon-btn.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--text-main, #f8fafc);
}
.copilot-icon-btn {
  position: relative;
}
.copilot-history-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--accent-primary, #6366f1);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
}
.copilot-active-thread-title {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
}

.copilot-history-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.copilot-history-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}
.copilot-htab-btn {
  border: 1px solid var(--border-color, rgba(148, 163, 184, 0.2));
  background: transparent;
  color: var(--text-muted, #94a3b8);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}
.copilot-htab-btn.active {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.45);
  color: var(--text-main, #f8fafc);
}
.copilot-history-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  overflow: hidden;
}
.copilot-history-toolbar,
.copilot-memory-add-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.copilot-history-search {
  flex: 1;
  min-width: 0;
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid var(--border-color, rgba(148, 163, 184, 0.25));
  background: var(--bg-main, rgba(15, 23, 42, 0.45));
  color: var(--text-main, #f8fafc);
  font-size: 0.78rem;
}
.copilot-history-clear-btn {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-radius: 8px;
  padding: 5px 8px;
  cursor: pointer;
  font-size: 0.78rem;
}
.copilot-conv-list,
.copilot-memory-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.copilot-history-empty {
  margin: auto;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
  padding: 18px 8px;
}
.copilot-conv-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--border-color, rgba(148, 163, 184, 0.16));
  background: var(--bg-card, rgba(30, 41, 59, 0.5));
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.copilot-conv-item:hover {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.1);
}
.copilot-conv-item.active {
  border-color: var(--accent-primary, #6366f1);
  background: rgba(99, 102, 241, 0.16);
}
.copilot-conv-main {
  min-width: 0;
  flex: 1;
}
.copilot-conv-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main, #f8fafc);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.copilot-conv-meta {
  font-size: 0.69rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 2px;
}
.copilot-conv-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.copilot-conv-act-btn {
  border: none;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.74rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.copilot-conv-act-btn:hover {
  background: rgba(148, 163, 184, 0.18);
  color: var(--text-main, #f8fafc);
}
.copilot-conv-act-btn.danger:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
}
.copilot-memory-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color, rgba(148, 163, 184, 0.2));
  background: var(--bg-card, rgba(30, 41, 59, 0.45));
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.copilot-memory-desc {
  margin: 0;
  font-size: 0.74rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.4;
}
.copilot-memory-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color, rgba(148, 163, 184, 0.16));
  background: var(--bg-card, rgba(30, 41, 59, 0.45));
  font-size: 0.78rem;
}
.copilot-memory-text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  word-break: break-word;
}

.copilot-context-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
  overflow-x: auto;
  flex-shrink: 0;
}
.copilot-ctx-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.copilot-chips {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}
.copilot-chip {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.14);
  color: var(--text-main, #f8fafc);
  white-space: nowrap;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.copilot-chip-muted {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted, #94a3b8);
}

.copilot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  user-select: text;
}
.copilot-empty-state {
  margin: auto;
  text-align: center;
  max-width: 300px;
  color: var(--text-muted, #94a3b8);
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.copilot-empty-state p {
  margin: 0;
  line-height: 1.45;
}
.copilot-cta-btn {
  padding: 7px 14px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}

.copilot-msg {
  display: flex;
}
.copilot-msg-user {
  justify-content: flex-end;
}
.copilot-msg-user .copilot-bubble {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.88), rgba(37, 99, 235, 0.88));
  color: #fff;
  border-radius: 12px 12px 3px 12px;
}
.copilot-msg-assistant .copilot-bubble {
  background: var(--bg-card, rgba(30, 41, 59, 0.72));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  border-radius: 12px 12px 12px 3px;
}
.copilot-msg-error .copilot-bubble {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border-radius: 10px;
}
.copilot-bubble {
  max-width: 90%;
  padding: 8px 11px;
  font-size: 0.82rem;
  line-height: 1.48;
  word-break: break-word;
}
.copilot-code-block {
  margin: 6px 0;
  padding: 8px;
  border-radius: 7px;
  background: rgba(2, 6, 23, 0.65);
  overflow-x: auto;
  font-size: 0.74rem;
}
.copilot-inline-code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(2, 6, 23, 0.4);
  font-size: 0.76rem;
}

.copilot-tool-trace {
  font-size: 0.74rem;
  border-radius: 8px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  background: rgba(2, 6, 23, 0.3);
  padding: 5px 9px;
}
.copilot-tool-trace summary {
  cursor: pointer;
  color: var(--text-muted, #94a3b8);
  display: flex;
  align-items: center;
  gap: 6px;
}
.copilot-tool-status {
  margin-left: auto;
  font-size: 0.68rem;
  text-transform: uppercase;
  opacity: 0.75;
}
.copilot-tool-trace pre {
  margin: 6px 0 2px;
  max-height: 150px;
  overflow: auto;
  font-size: 0.7rem;
  color: var(--text-main, #e2e8f0);
}

.copilot-approval-card {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.copilot-approval-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fbbf24;
}
.copilot-approval-tool {
  font-size: 0.78rem;
}
.copilot-approval-args {
  margin: 0;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(2, 6, 23, 0.5);
  font-size: 0.71rem;
  max-height: 110px;
  overflow: auto;
}
.copilot-approval-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}
.copilot-btn-approve {
  padding: 5px 12px;
  border-radius: 7px;
  border: none;
  background: #16a34a;
  color: #fff;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
}
.copilot-btn-reject {
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
}
.copilot-thinking {
  font-size: 0.77rem;
  color: var(--text-muted, #94a3b8);
  padding: 4px 2px;
}

.copilot-footer {
  padding: 9px 10px 10px;
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  background: var(--bg-card, rgba(15, 23, 42, 0.75));
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.copilot-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  max-height: 130px;
  resize: none;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.14));
  background: var(--bg-main, rgba(2, 6, 23, 0.6));
  color: var(--text-main, #f8fafc);
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.4;
  outline: none;
}
.copilot-textarea:focus {
  border-color: var(--accent-primary, #6366f1);
}
.copilot-controls-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.copilot-models-row {
  gap: 6px;
}
.copilot-select {
  flex: 1;
  min-width: 0;
  height: 29px;
  padding: 0 7px;
  border-radius: 7px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.14));
  background: var(--bg-main, rgba(2, 6, 23, 0.55));
  color: var(--text-main, #f8fafc);
  font-size: 0.73rem;
  outline: none;
}
.copilot-select-family {
  flex: 1 1 52%;
}
.copilot-select-variant {
  flex: 1 1 48%;
}
.copilot-select-autonomy {
  flex: 1 1 auto;
}
.taskbar-copilot-bar.needs-approval {
  border-color: rgba(245, 158, 11, 0.9);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35);
}
.taskbar-copilot-popup.needs-approval {
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(245, 158, 11, 0.35);
}
.taskbar-copilot-popup.copilot-drop-active {
  border-color: var(--accent-primary, #6366f1);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(99, 102, 241, 0.55);
}
.copilot-drop-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 30;
  border-radius: inherit;
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(4px);
  border: 2px dashed var(--accent-primary, #6366f1);
  color: #f8fafc;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  pointer-events: none;
  text-align: center;
  padding: 20px;
}
.taskbar-copilot-popup.copilot-drop-active .copilot-drop-overlay {
  display: flex;
}
.copilot-chip-clickable {
  cursor: pointer;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.14));
  background: var(--bg-main, rgba(255, 255, 255, 0.06));
  color: var(--text-main, #e2e8f0);
  transition: border-color 0.15s, background 0.15s;
}
.copilot-chip-clickable:hover,
.copilot-chip-clickable.attached {
  border-color: var(--accent-primary, #6366f1);
  background: rgba(99, 102, 241, 0.22);
}
.copilot-attachments-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.copilot-att-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 190px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.71rem;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: var(--text-main, #f8fafc);
}
.copilot-att-chip.kind-window {
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(14, 165, 233, 0.45);
}
.copilot-att-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copilot-att-remove {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0 2px;
  font-size: 0.72rem;
  opacity: 0.75;
  line-height: 1;
}
.copilot-att-remove:hover {
  opacity: 1;
}
.copilot-attach-trigger {
  height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.14));
  background: var(--bg-main, rgba(255, 255, 255, 0.05));
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.copilot-attach-trigger:hover {
  color: var(--text-main, #f8fafc);
  border-color: var(--accent-primary, #6366f1);
}
.copilot-footer {
  position: relative;
}
.copilot-mention-menu {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(100% + 4px);
  max-height: 210px;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.18));
  background: var(--window-bg, rgba(15, 23, 42, 0.96));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
  padding: 4px;
  z-index: 25;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.copilot-mention-menu.open {
  display: flex;
}
.copilot-mention-section {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #94a3b8);
  padding: 4px 8px 2px;
}
.copilot-mention-item {
  width: 100%;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-main, #f8fafc);
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  text-align: left;
  font-size: 0.76rem;
}
.copilot-mention-item:hover,
.copilot-mention-item.active {
  background: rgba(99, 102, 241, 0.24);
}
.copilot-mention-meta {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--text-muted, #94a3b8);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copilot-mention-empty {
  padding: 8px 10px;
  font-size: 0.74rem;
  color: var(--text-muted, #94a3b8);
  text-align: center;
}
.copilot-msg-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 5px;
}
.copilot-msg-att-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.copilot-send-btn {
  width: 32px;
  height: 29px;
  border-radius: 7px;
  border: none;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.copilot-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.copilot-stop-btn {
  background: #dc2626;
}

@media (max-width: 640px) {
  .taskbar-copilot-quick-input {
    width: 92px;
  }
}

/* =============================================================
   PHASE H (LOT 4): FOCUS / POMODORO & WEB AUDIO POPOVER
   ============================================================= */
.taskbar-focus-popover {
  position: fixed;
  right: 16px;
  bottom: 54px;
  width: 286px;
  z-index: 99995;
  border-radius: 14px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.16));
  background: var(--window-bg, rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(18px);
  color: var(--text-main, #f8fafc);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
  padding: 12px 14px;
}
.focus-pop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.focus-pop-title {
  font-weight: 700;
  font-size: 0.88rem;
}
.focus-pop-sessions {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
}
.focus-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}
.focus-mode-btn {
  padding: 5px 4px;
  border-radius: 7px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  background: transparent;
  color: var(--text-muted, #94a3b8);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}
.focus-mode-btn.active {
  background: rgba(99, 102, 241, 0.22);
  border-color: var(--accent-primary, #6366f1);
  color: var(--text-main, #fff);
}
.focus-clock-readout {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  margin: 6px 0 10px;
}
.focus-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.focus-ctrl-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.14));
  background: var(--bg-card, rgba(255, 255, 255, 0.06));
  color: var(--text-main, #f8fafc);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.focus-primary-btn {
  background: var(--accent-primary, #4f46e5);
  border-color: transparent;
  color: #fff;
}
.focus-sound-section {
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  padding-top: 10px;
}
.focus-sound-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 7px;
}
.focus-sound-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.focus-sound-btn {
  padding: 6px 8px;
  border-radius: 7px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  background: transparent;
  color: var(--text-main, #e2e8f0);
  font-size: 0.74rem;
  cursor: pointer;
  text-align: left;
}
.focus-sound-btn.active {
  background: rgba(99, 102, 241, 0.22);
  border-color: var(--accent-primary, #6366f1);
}
.focus-vol-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-muted, #94a3b8);
}
.focus-vol-slider {
  flex: 1;
  accent-color: var(--accent-primary, #6366f1);
}
