/* === Reset & Tokens === */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } /* === Utility Classes === */ .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } /* === Touch Target Utility === Ensures interactive elements meet the 44px minimum touch target recommended by Apple HIG and WCAG 2.5.8. Apply to interactive elements that are too small on mobile (links, small buttons, icons). */ .touch-target { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; } /* === Design Tokens (Theme-Agnostic Defaults) === */ :root { /* Typography */ --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; --font-mono: "SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* Spacing Scale */ --space-xs: 4px; --space-sm: 8px; --space-md: 12px; --space-lg: 16px; --space-xl: 24px; --space-2xl: 32px; /* Border Radius Scale */ --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px; --radius-pill: 10px; /* Component-specific tokens */ --btn-padding: var(--space-sm) var(--space-lg); --btn-border-width: 1px; --card-padding: 10px 12px; --modal-padding: var(--space-lg) 20px; --header-padding: var(--space-md) var(--space-xl); --column-gap: var(--space-md); --board-padding: var(--space-lg) var(--space-xl); /* Layout tokens for fixed footer (ExecutorStatusBar) */ --header-height: 57px; --executor-footer-height: 0px; --executor-footer-height-mobile: 0px; /* PWA standalone mode bottom gap (FN-1626): extra breathing room for iOS home indicator */ --standalone-bottom-gap: 0px; /* Shadow tokens */ --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1); --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1); --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.4); --shadow-glow: 0 0 8px rgba(88, 166, 255, 0.3); --glow-success: 0 0 8px rgba(46, 160, 67, 0.3); --glow-warning: 0 0 8px rgba(227, 179, 65, 0.3); --glow-danger: 0 0 8px rgba(248, 81, 73, 0.3); --focus-ring: 0 0 0 2px rgba(88, 166, 255, 0.15); --focus-ring-strong: 0 0 0 2px rgba(88, 166, 255, 0.3); /* Animation tokens */ --transition-instant: 0.1s ease; --transition-fast: 0.15s ease; --transition-normal: 0.2s ease; --transition-slow: 0.3s ease; /* Backward-compatible aliases */ --radius: var(--radius-md); --shadow: var(--shadow-lg); /* Mobile breakpoint tokens (documentation only): CSS custom properties cannot be used directly in @media query conditions. */ --mobile-breakpoint: 768px; --tablet-breakpoint: 1024px; --small-breakpoint: 480px; --xsmall-breakpoint: 640px; } :root { --bg: #0d1117; --surface: #161b22; --card: #21262d; --card-hover: #282e36; --bg-secondary: color-mix(in srgb, var(--surface) 70%, var(--card)); --bg-tertiary: color-mix(in srgb, var(--surface) 40%, var(--card)); --border: #30363d; --text: #e6edf3; --text-muted: #8b949e; --text-dim: #484f58; --triage: #d29922; --todo: #58a6ff; --in-progress: #00e5ff; --in-progress-rgb: 0, 229, 255; --in-review: #3fb950; --done: #8b949e; --color-success: #3fb950; --color-error: #f85149; --color-error-dark: #da3633; --color-muted: #8b949e; --color-info: #1f6feb; --color-warning: #ca8a04; /* Workflow Step type / state colors */ --ws-pre-merge: #3b82f6; --ws-post-merge: #0ea58c; --ws-info: #06b6d4; --ws-warning: #ca8a04; --ws-success: #22c55e; --ws-error: #ef4444; --ws-error-dark: #dc2626; --ws-teal: #0ea58c; --ws-quality: #3b82f6; --ws-security: #ef4444; /* Status background tokens (theme-aware via color-mix) */ --status-triage-bg: color-mix(in srgb, var(--triage) 15%, transparent); --status-triage-bg-deep: color-mix(in srgb, var(--triage) 20%, transparent); --status-todo-bg: color-mix(in srgb, var(--todo) 15%, transparent); --status-in-progress-bg: color-mix(in srgb, var(--in-progress) 15%, transparent); --status-in-review-bg: color-mix(in srgb, var(--in-review) 15%, transparent); --status-done-bg: color-mix(in srgb, var(--done) 15%, transparent); --status-archived-bg: color-mix(in srgb, var(--text-muted, #8b949e) 10%, transparent); --status-done-bg-deep: color-mix(in srgb, var(--done) 20%, transparent); --status-error-bg: color-mix(in srgb, var(--color-error-dark, #da3633) 15%, transparent); --status-error-bg-deep: color-mix(in srgb, var(--color-error-dark, #da3633) 20%, transparent); /* Executor status bar state accents */ --executor-status-error-bg: color-mix(in srgb, var(--color-error) 8%, transparent); /* Logo & branding tokens */ --logo-accent: var(--todo); /* Task-creation CTA tokens */ --cta-bg: #238636; --cta-border: #2ea043; --cta-text: #fff; --cta-bg-hover: #2ea043; --cta-border-hover: #3fb950; --cta-glow: 0 0 8px rgba(46, 160, 67, 0.3); /* === Agent State Colors === */ --state-idle-bg: rgba(139, 148, 158, 0.15); --state-idle-text: #8b949e; --state-idle-border: #8b949e; --state-active-bg: rgba(46, 160, 67, 0.15); --state-active-text: #3fb950; --state-active-border: #3fb950; --state-paused-bg: rgba(227, 179, 65, 0.15); --state-paused-text: #e3b541; --state-paused-border: #e3b541; --state-error-bg: rgba(248, 81, 73, 0.15); --state-error-text: #f85149; --state-error-border: #f85149; /* === Mission & Milestone Status Colors === */ --mission-planning-bg: color-mix(in srgb, var(--triage) 15%, transparent); --mission-planning-text: var(--triage); --mission-active-bg: color-mix(in srgb, var(--in-review) 15%, transparent); --mission-active-text: var(--in-review); --mission-blocked-bg: color-mix(in srgb, var(--color-error) 15%, transparent); --mission-blocked-text: var(--color-error); --mission-complete-bg: color-mix(in srgb, #3b82f6 15%, transparent); --mission-complete-text: #3b82f6; --mission-archived-bg: var(--bg-tertiary); --mission-archived-text: var(--text-secondary); /* === Slice Status Colors === */ --slice-pending-bg: color-mix(in srgb, var(--triage) 15%, transparent); --slice-pending-text: var(--triage); --slice-active-bg: color-mix(in srgb, var(--in-review) 15%, transparent); --slice-active-text: var(--in-review); --slice-complete-bg: color-mix(in srgb, #3b82f6 15%, transparent); --slice-complete-text: #3b82f6; /* === Feature (Task) Status Colors === */ --feature-defined-bg: color-mix(in srgb, var(--triage) 15%, transparent); --feature-defined-text: var(--triage); --feature-triaged-bg: color-mix(in srgb, #a855f7 15%, transparent); --feature-triaged-text: #a855f7; --feature-in-progress-bg: color-mix(in srgb, var(--in-review) 15%, transparent); --feature-in-progress-text: var(--in-review); --feature-done-bg: color-mix(in srgb, #3b82f6 15%, transparent); --feature-done-text: #3b82f6; /* === Autopilot State Colors === */ --autopilot-inactive-bg: color-mix(in srgb, #94a3b8 15%, transparent); --autopilot-inactive-text: #94a3b8; --autopilot-watching-bg: color-mix(in srgb, var(--in-review) 15%, transparent); --autopilot-watching-text: var(--in-review); --autopilot-activating-bg: color-mix(in srgb, #3b82f6 15%, transparent); --autopilot-activating-text: #3b82f6; --autopilot-completing-bg: color-mix(in srgb, #a855f7 15%, transparent); --autopilot-completing-text: #a855f7; /* === Loop State Colors === */ --loop-idle-bg: var(--bg-tertiary); --loop-idle-text: var(--text-secondary); --loop-idle-indicator: var(--text-dim); --loop-implementing-bg: color-mix(in srgb, var(--in-review) 15%, transparent); --loop-implementing-text: var(--in-review); --loop-implementing-indicator: var(--in-review); --loop-validating-bg: color-mix(in srgb, var(--color-warning) 15%, transparent); --loop-validating-text: var(--color-warning); --loop-validating-indicator: var(--color-warning); --loop-needs-fix-bg: color-mix(in srgb, #f97316 15%, transparent); --loop-needs-fix-text: #f97316; --loop-needs-fix-indicator: #f97316; --loop-passed-bg: color-mix(in srgb, var(--color-success) 15%, transparent); --loop-passed-text: var(--color-success); --loop-passed-indicator: var(--color-success); --loop-blocked-bg: color-mix(in srgb, var(--color-error) 15%, transparent); --loop-blocked-text: var(--color-error); --loop-blocked-indicator: var(--color-error); /* === Assertion Status Colors === */ --assertion-pending-bg: color-mix(in srgb, var(--triage) 15%, transparent); --assertion-pending-text: var(--triage); --assertion-passed-bg: color-mix(in srgb, var(--color-success) 15%, transparent); --assertion-passed-text: var(--color-success); --assertion-failed-bg: color-mix(in srgb, var(--color-error) 15%, transparent); --assertion-failed-text: var(--color-error); --assertion-blocked-bg: color-mix(in srgb, var(--color-warning) 15%, transparent); --assertion-blocked-text: var(--color-warning); /* === Interview Modal Icon Colors === */ --icon-milestone: var(--triage); --icon-slice: var(--in-review); --icon-feature: #3b82f6; /* === Accent Color === */ --accent: #7c5cbf; /* === Log Entry Background Tokens === */ --log-tool-bg: color-mix(in srgb, var(--accent) 8%, transparent); --log-success-bg: color-mix(in srgb, var(--color-success) 6%, transparent); --log-error-bg: color-mix(in srgb, var(--color-error) 6%, transparent); /* === Mailbox compose FAB & badges === */ --fab-bg: var(--todo); --fab-text: #fff; /* === Mission autopilot indicators === */ --autopilot-pulse: var(--color-success); --autopilot-icon: #eab308; --autopilot-shadow: rgba(34, 197, 94, 0.4); /* === Mission toggle & badge backgrounds === */ --toggle-checked-bg: rgba(34, 197, 94, 0.2); --meta-badge-bg: rgba(63, 185, 80, 0.1); /* === Mission event type colors (semantic — adapted for light in [data-theme="light"]) === */ --event-error-text: #fca5a5; --event-state-text: #93c5fd; --event-task-text: #6ee7b7; --event-slice-text: #fcd34d; --event-autopilot-text: #d8b4fe; --event-error-bg: rgba(239, 68, 68, 0.15); --event-state-bg: rgba(59, 130, 246, 0.15); --event-task-bg: rgba(16, 185, 129, 0.15); --event-slice-bg: rgba(245, 158, 11, 0.15); --event-autopilot-bg: rgba(168, 85, 247, 0.15); /* === Card mission badge === */ --badge-mission-text: #a78bfa; --badge-mission-text-hover: #c4b5fd; --badge-mission-bg: rgba(167, 139, 250, 0.12); --badge-mission-bg-hover: rgba(167, 139, 250, 0.22); /* === Terminal background === */ --terminal-bg: #1e1e1e; /* === Model combobox favorite star === */ --star-idle: #6b7280; --star-active: #f59e0b; } html, body { height: 100%; font-family: var(--font-primary); background: var(--bg); color: var(--text); overflow: hidden; } #root { height: 100%; display: flex; flex-direction: column; min-height: 0; overflow: hidden; } /* === Header === */ .header { display: flex; align-items: center; justify-content: space-between; padding: var(--header-padding); border-bottom: 1px solid var(--border); background: var(--surface); } .header-wrapper { position: relative; } .header-floating-search { background: var(--surface); padding: var(--space-xs) var(--space-md) var(--space-sm); border: 1px solid var(--border); border-top: none; border-bottom-left-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md); box-shadow: var(--shadow-md); } .header-floating-search .header-search { width: 100%; max-width: none; } .header-left { display: flex; align-items: center; gap: var(--space-sm); } .header-brand { display: flex; align-items: center; gap: var(--space-xs); } .header-logo { width: 24px; height: 24px; flex-shrink: 0; color: var(--logo-accent); } .header-actions { display: flex; align-items: center; gap: var(--space-sm); position: relative; } .quick-scripts-dropdown { position: relative; } .quick-scripts-dropdown__trigger { gap: var(--space-xs); width: auto; min-width: 28px; padding: 0 7px; } .quick-scripts-dropdown__trigger-chevron { color: currentColor; transition: transform var(--transition-fast); } .quick-scripts-dropdown__trigger-chevron.rotate { transform: rotate(180deg); } .quick-scripts-dropdown__menu { position: absolute; top: calc(100% + 6px); right: 0; width: min(320px, 72vw); min-width: 260px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: 120; display: flex; flex-direction: column; gap: var(--space-xs); outline: none; } .quick-scripts-dropdown__loading, .quick-scripts-dropdown__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px 16px; text-align: center; color: var(--text-muted); } .quick-scripts-dropdown__empty-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: var(--card); color: var(--text-muted); } .quick-scripts-dropdown__empty p { margin: 0; color: var(--text); font-size: 13px; font-weight: 500; } .quick-scripts-dropdown__empty-action { min-height: 28px; } .quick-scripts-dropdown__list { display: flex; flex-direction: column; gap: 2px; max-height: min(360px, 60vh); overflow-y: auto; } .quick-scripts-dropdown__item, .quick-scripts-dropdown__manage { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; background: none; border: none; border-radius: var(--radius-sm); color: var(--text); text-align: left; cursor: pointer; transition: background var(--transition-fast), color var(--transition-fast); } .quick-scripts-dropdown__item:hover, .quick-scripts-dropdown__item.highlighted, .quick-scripts-dropdown__manage:hover, .quick-scripts-dropdown__manage.highlighted { background: var(--card); } .quick-scripts-dropdown__item-icon, .quick-scripts-dropdown__manage svg { flex-shrink: 0; color: var(--text-muted); } .quick-scripts-dropdown__item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; } .quick-scripts-dropdown__item-name { color: var(--text); font-size: 13px; font-weight: 500; line-height: 1.3; } .quick-scripts-dropdown__item-command { color: var(--text-muted); font-size: 12px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .quick-scripts-dropdown__footer { padding-top: 4px; border-top: 1px solid var(--border); } .quick-scripts-dropdown__manage { color: var(--text-muted); font-size: 13px; font-weight: 500; } .quick-scripts-dropdown__manage span { flex: 1; } .btn-icon { display: flex; align-items: center; justify-content: center; height: 28px; width: 28px; background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; padding: 0; border-radius: var(--radius-md); transition: color var(--transition-fast), background var(--transition-fast); } .btn-icon svg { stroke: currentColor; } @media (hover: hover) { .btn-icon:hover { color: var(--text); background: var(--border); } } .btn-icon:focus-visible { box-shadow: var(--focus-ring-strong); outline: none; } .btn-icon:active { opacity: 0.7; } .btn-icon--terminal { position: relative; } .btn-icon--terminal:disabled { opacity: 0.4; cursor: not-allowed; } .btn-icon--terminal:disabled:hover { color: var(--text-muted); background: none; } .btn-icon--active { color: var(--text); background: var(--border); border-color: var(--todo); } .btn-badge { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px; background: var(--in-progress); color: var(--bg); font-size: 10px; font-weight: 700; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; } .btn-icon--paused { color: var(--triage); } @media (hover: hover) { .btn-icon--paused:hover { color: var(--triage); } } .btn-icon--stopped { color: var(--color-error); } @media (hover: hover) { .btn-icon--stopped:hover { color: var(--color-error); } } /* Header badge for active sessions */ .btn-icon--has-indicator { position: relative; } .header-badge { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--triage); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; pointer-events: none; box-sizing: border-box; } .header-badge--pulse { animation: header-badge-pulse 2s ease-in-out infinite; } @keyframes header-badge-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } } .mobile-overflow-item--has-indicator { position: relative; } .mobile-overflow-icon-wrapper { position: relative; display: inline-flex; flex-shrink: 0; } /* Node Selector */ .header-node-selector { position: relative; display: flex; align-items: center; gap: var(--space-xs); margin-right: var(--space-sm); } .node-selector-trigger { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; background: none; border: none; border-radius: var(--radius-sm); color: var(--text-muted); cursor: pointer; transition: all var(--transition-fast); } .node-selector-trigger:hover { color: var(--text); background: var(--card-hover); } .node-selector-trigger--open { color: var(--todo); background: var(--card-hover); } .node-selector-chevron { transition: transform var(--transition-fast); } .node-selector-chevron--open { transform: rotate(90deg); } .node-selector-dropdown { position: absolute; top: calc(100% + var(--space-xs)); left: 0; min-width: 180px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: var(--space-xs); z-index: 100; } .node-selector-option { display: flex; align-items: center; gap: var(--space-sm); width: 100%; padding: var(--space-sm) var(--space-md); background: none; border: none; border-radius: var(--radius-sm); color: var(--text); font-size: 13px; text-align: left; cursor: pointer; transition: background var(--transition-fast); } .node-selector-option:hover { background: var(--card-hover); } .node-selector-option--active { background: var(--card); color: var(--todo); } .node-selector-option-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } .node-selector-option-dot--local { background: var(--color-success); } .node-selector-option-dot--online { background: var(--color-success); } .node-selector-option-dot--offline { background: var(--color-error); } .node-selector-option-dot--connecting { background: var(--triage); animation: node-connecting-pulse 1s ease-in-out infinite; } .node-selector-option-dot--error { background: var(--color-error); } @keyframes node-connecting-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } } .node-selector-option-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .node-selector-option-status { font-size: 11px; color: var(--text-muted); text-transform: capitalize; } /* Node Status Indicator */ .node-status-indicator { display: flex; align-items: center; gap: var(--space-xs); padding: 2px var(--space-sm); border-radius: var(--radius-sm); font-size: 12px; } .node-status-indicator--local { background: var(--state-active-bg); color: var(--state-active-text); } .node-status-indicator--remote { background: var(--card); border: 1px solid var(--border); color: var(--text); } .node-status-indicator__dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; } .node-status-indicator__dot--online { background: var(--color-success); } .node-status-indicator__dot--offline { background: var(--color-error); } .node-status-indicator__dot--connecting { background: var(--triage); animation: node-connecting-pulse 1s ease-in-out infinite; } .node-status-indicator__dot--error { background: var(--color-error); } .node-status-indicator__spinner { display: block; width: 6px; height: 6px; border: 1px solid var(--triage); border-top-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .node-status-indicator__label { font-weight: 500; } .node-status-indicator__name { font-weight: 500; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .node-status-indicator__details { font-size: 11px; color: var(--text-muted); text-transform: capitalize; } /* View Toggle */ .view-toggle { display: flex; align-items: center; gap: 2px; height: 32px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2px; box-sizing: border-box; } .view-toggle-btn { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: none; border: none; border-radius: var(--radius-sm); color: var(--text-muted); cursor: pointer; transition: all var(--transition-fast); } .view-toggle-btn:hover { color: var(--text); background: var(--card-hover); } .view-toggle-btn:focus-visible { box-shadow: var(--focus-ring-strong); outline: none; } .view-toggle-btn.active { background: var(--todo); color: var(--bg); } .view-toggle-btn.active:hover { background: var(--todo); color: var(--bg); } /* Header Search */ .header-search { display: flex; align-items: center; gap: var(--space-sm); flex: 1; min-width: 160px; max-width: 280px; height: 28px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 8px; box-sizing: border-box; transition: border-color var(--transition-fast); } .header-search:focus-within { border-color: var(--todo); } .header-search-icon { color: var(--text-muted); flex-shrink: 0; } .header-search-input { flex: 1; background: none; border: none; color: var(--text); font-size: 13px; font-family: inherit; outline: none; min-width: 0; } .header-search-input::placeholder { color: var(--text-dim); } .header-search-clear { display: flex; align-items: center; justify-content: center; background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 2px; border-radius: var(--radius-sm); flex-shrink: 0; transition: color var(--transition-fast), background var(--transition-fast); } .header-search-clear:hover { color: var(--text); background: var(--border); } /* === Compact Overflow Menu (mobile + tablet) === */ /* Styles for the overflow menu used on mobile and tablet viewports. Visibility is controlled by React rendering, not CSS display. */ .compact-overflow-trigger { display: flex; align-items: center; justify-content: center; } .mobile-overflow-menu { position: absolute; top: calc(100% + 4px); right: 12px; min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: 100; padding: var(--space-xs); display: flex; flex-direction: column; gap: 2px; } .mobile-overflow-item { display: flex; align-items: center; gap: var(--space-md); padding: 10px 12px; background: none; border: none; border-radius: var(--radius-sm); color: var(--text); font-size: 13px; cursor: pointer; text-align: left; transition: background var(--transition-fast); } .mobile-overflow-item:hover { background: var(--card); } .mobile-overflow-item svg { color: var(--text-muted); flex-shrink: 0; } /* Terminal submenu in overflow */ .mobile-overflow-group { display: flex; flex-direction: column; } .mobile-overflow-split-row { display: flex; flex-direction: row; align-items: stretch; } .mobile-overflow-split-primary { flex: 1; min-width: 0; } .mobile-overflow-split-toggle { display: flex; align-items: center; justify-content: center; padding: 10px 10px; background: none; border: none; border-radius: var(--radius-sm); color: var(--text-muted); cursor: pointer; transition: background var(--transition-fast); } .mobile-overflow-split-toggle:hover { background: var(--card); } .mobile-overflow-chevron { color: var(--text-muted); transition: transform var(--transition-fast); } .mobile-overflow-chevron--open { transform: rotate(90deg); } .mobile-overflow-submenu { display: flex; flex-direction: column; gap: 2px; padding-left: var(--space-md); } .mobile-overflow-subitem { padding-left: 28px; } .mobile-overflow-submenu-loading { display: flex; align-items: center; gap: var(--space-sm); padding: 8px 12px 8px 28px; color: var(--text-muted); font-size: 12px; } .mobile-overflow-subitem--manage { color: var(--text-muted); border-top: 1px solid var(--border); margin-top: 2px; padding-top: 8px; } .logo { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; color: var(--logo-accent); } /* === Buttons === */ .btn { padding: var(--btn-padding); border-style: solid; border-width: var(--btn-border-width); border-color: var(--border); border-radius: var(--radius-md); background: var(--card); color: var(--text); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast); } .btn:hover { background: var(--card-hover); border-color: var(--text-muted); } .btn:focus-visible { box-shadow: var(--focus-ring-strong); border-color: var(--todo); outline: none; } .btn:active { transform: scale(0.97); } /* Primary buttons use CTA tokens so colors adapt to the selected color theme */ .btn-primary { background: var(--cta-bg); border-color: var(--cta-border); color: var(--cta-text); } .btn-primary:hover { background: var(--cta-bg-hover); border-color: var(--cta-border-hover); box-shadow: var(--cta-glow); } /* Theme-driven task-creation CTA — uses tokens so every color theme updates consistently */ .btn-task-create { background: var(--cta-bg); border-color: var(--cta-border); color: var(--cta-text); } .btn-task-create:hover { background: var(--cta-bg-hover); border-color: var(--cta-border-hover); box-shadow: var(--cta-glow); } .btn-danger { background: var(--color-error-dark); border-color: var(--color-error); color: #fff; } .btn-danger:hover { background: var(--color-error); box-shadow: var(--glow-danger); } .btn-warning { background: var(--triage); border-color: color-mix(in srgb, var(--triage) 80%, white); color: #fff; } .btn-warning:hover { background: color-mix(in srgb, var(--triage) 80%, white); box-shadow: var(--glow-warning); } .btn-sm { padding: 4px 10px; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; } /* === Button Modifiers (BEM style) === */ .btn--sm { padding: 4px 8px; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; } .btn--primary { background: var(--todo); color: var(--bg); border-color: var(--todo); } .btn--primary:hover { background: color-mix(in srgb, var(--todo) 80%, white); border-color: color-mix(in srgb, var(--todo) 80%, white); } .btn--danger { background: var(--color-error); color: #fff; border-color: var(--color-error); } .btn--danger:hover { background: var(--color-error-dark); border-color: var(--color-error-dark); } .btn--warning { background: var(--triage); color: var(--bg); border-color: var(--triage); } .btn--warning:hover { opacity: 0.9; } /* === Board === */ .board { display: grid; grid-template-columns: repeat(6, minmax(260px, 1fr)); gap: var(--column-gap); padding: var(--board-padding); height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding-inline: 50%; scrollbar-color: var(--border) transparent; scrollbar-width: thin; } .board::-webkit-scrollbar { height: 6px; } .board::-webkit-scrollbar-track { background: transparent; } .board::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-sm); } .column { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; min-width: 0; min-height: 0; transition: border-color var(--transition-normal); scroll-snap-align: center; } .column.drag-over { border-color: var(--todo); box-shadow: inset 0 0 0 1px var(--todo); } .column-header { display: flex; align-items: center; gap: var(--space-sm); padding: calc(var(--space-lg) - 2px) calc(var(--space-lg) - 2px) 0; } .column-dot { width: 10px; height: 10px; border-radius: 50%; } .dot-triage { background: var(--triage); } .dot-todo { background: var(--todo); } .dot-in-progress { background: var(--in-progress); } .dot-in-review { background: var(--in-review); } .dot-done { background: var(--done); } .dot-archived { background: var(--text-muted); } .column-header h2 { font-size: 14px; font-weight: 600; flex: 1; } .column-count { font-size: 12px; color: var(--text-muted); background: var(--card); padding: calc(var(--space-xs) / 2) var(--space-sm); border-radius: var(--radius-xl); min-width: 24px; text-align: center; } @keyframes count-flash-bg { from { background: var(--color-success); } to { background: var(--card); } } .column-count.count-flash { animation: count-flash-bg 1400ms ease-out; } .column-desc { font-size: 11px; color: var(--text-dim); padding: var(--space-xs) calc(var(--space-lg) - 2px) calc(var(--space-md) - 2px); } .column-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: var(--space-xs) var(--space-sm) var(--space-sm); display: flex; flex-direction: column; gap: calc(var(--space-sm) - 2px); } .column-body::-webkit-scrollbar { width: 4px; } .column-body::-webkit-scrollbar-track { background: transparent; } .column-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-sm); } /* === Cards === */ .card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--card-padding); cursor: grab; transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-normal); user-select: none; touch-action: pan-x pan-y; } .card:hover { background: var(--card-hover); border-color: var(--text-muted); } .card:focus-visible { box-shadow: var(--focus-ring-strong); border-color: var(--todo); outline: none; } .card:active { cursor: grabbing; } .card.dragging { opacity: 0.4; transform: scale(0.98); } .card.file-drop-target { border: 2px dashed var(--todo); background: rgba(88, 166, 255, 0.08); } /* Agent-active glow: animated border glow when an agent is actively working on a task. Uses the in-progress column color to stay consistent with the theme. */ .card.agent-active { border-color: var(--in-progress); box-shadow: 0 0 8px rgba(var(--in-progress-rgb), 0.4), 0 0 20px rgba(var(--in-progress-rgb), 0.15); animation: agent-glow 2.5s ease-in-out infinite; } @keyframes agent-glow { 0%, 100% { box-shadow: 0 0 8px rgba(var(--in-progress-rgb), 0.4), 0 0 20px rgba(var(--in-progress-rgb), 0.15); } 50% { box-shadow: 0 0 12px rgba(var(--in-progress-rgb), 0.6), 0 0 28px rgba(var(--in-progress-rgb), 0.25); } } .card-header { display: flex; align-items: center; gap: 6px; margin-bottom: var(--space-xs); } .card-id { display: inline-block; font-size: 11px; font-weight: 600; color: var(--text-muted); font-family: var(--font-mono); } .card-title { font-size: 13px; line-height: 1.4; word-break: break-word; } /* z-index + position: relative so .card-dep-badge tooltip renders above .card-title */ .card-meta { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-sm); font-size: 11px; color: var(--text-dim); position: relative; z-index: 1; } .card-status-badge { display: inline-flex; align-items: center; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 8px; border-radius: var(--radius-pill); } .card-status-badge.pulsing { animation: pulse 1.5s ease-in-out infinite; } .card-status-badge.failed { background: var(--status-error-bg); color: var(--color-error-dark); } .card-status-badge.stuck { background: var(--status-triage-bg-deep); color: var(--triage); animation: stuck-pulse 2s ease-in-out infinite; } .card-status-badge.paused { background: var(--status-done-bg-deep); color: var(--text-muted, #8b949e); } .card-status-badge.awaiting-approval { background: var(--status-triage-bg-deep); color: var(--triage); } .card-status-badge--triage { background: var(--status-triage-bg); color: var(--triage); } .card-status-badge--todo { background: var(--status-todo-bg); color: var(--todo); } .card-status-badge--in-progress { background: var(--status-in-progress-bg); color: var(--in-progress); } .card-status-badge--in-review { background: var(--status-in-review-bg); color: var(--in-review); } .card-status-badge--done { background: var(--status-done-bg); color: var(--done); } .card-status-badge--archived { background: var(--status-archived-bg); color: var(--text-muted, #8b949e); } .card.stuck { border-left: 3px solid var(--triage); background: color-mix(in srgb, var(--triage) 6%, transparent); } @keyframes stuck-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.65; } } /* Size badge: positioned in card header, subtle color coding for effort estimation */ .card-size-badge { display: inline-flex; align-items: center; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 8px; border-radius: var(--radius-pill); } /* Size S: subtle green tint (low effort) */ .card-size-badge.size-s { background: color-mix(in srgb, var(--color-success) 15%, transparent); color: var(--color-success); } /* Size M: neutral tint (medium effort) */ .card-size-badge.size-m { background: color-mix(in srgb, var(--text-muted) 15%, transparent); color: var(--text-muted); } /* Size L: subtle amber tint (higher effort) */ .card-size-badge.size-l { background: color-mix(in srgb, var(--triage) 15%, transparent); color: var(--triage); } .card.failed { border-left: 3px solid var(--color-error-dark); } /* Error display on failed task cards */ .card-error { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0; padding: 6px var(--space-sm); background: rgba(218, 54, 51, 0.1); border: 1px solid rgba(218, 54, 51, 0.3); border-radius: var(--radius); font-size: 11px; color: var(--color-error-dark); line-height: 1.4; } .card-error-icon { flex-shrink: 0; font-size: 12px; } .card-error-text { word-break: break-word; } /* Awaiting manual plan approval: amber left border + subtle pulsing background to signal human review needed. Distinct from agent-active (purple glow), failed (red left border + error block), and paused (dimmed opacity). */ .card.awaiting-approval { border-left: 3px solid var(--triage); background: rgba(210, 153, 34, 0.06); animation: approval-pulse 3s ease-in-out infinite; } @keyframes approval-pulse { 0%, 100% { background: rgba(210, 153, 34, 0.06); } 50% { background: rgba(210, 153, 34, 0.12); } } .card.paused { opacity: 0.55; border-left: 3px solid var(--text-secondary, #888); cursor: default; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .card-dep-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--triage); position: relative; cursor: default; } .card-dep-badge.clickable { cursor: pointer; transition: color var(--transition-fast), text-decoration var(--transition-fast); } .card-dep-badge.clickable:hover { color: var(--todo); text-decoration: underline; } .card-dep-list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); } .card-scope-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--in-progress); position: relative; cursor: default; } .card-scope-badge[data-tooltip]:hover::after { content: attr(data-tooltip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--bg-card); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-xs) var(--space-sm); font-size: 11px; white-space: nowrap; z-index: 10; pointer-events: none; margin-bottom: var(--space-xs); box-shadow: var(--shadow-md); } /* Mission badge: clickable link to mission from task card */ .card-mission-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; font-family: var(--font-mono); color: var(--badge-mission-text); background: var(--badge-mission-bg); padding: 2px 6px; border-radius: var(--radius-pill); cursor: pointer; transition: color var(--transition-fast), background var(--transition-fast); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .card-mission-badge:hover { color: var(--badge-mission-text-hover); background: var(--badge-mission-bg-hover); } .card-agent-badge { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs); font-weight: 600; font-family: var(--font-mono); color: var(--text-muted); background: var(--card-agent-badge-bg, rgba(139, 148, 158, 0.15)); border: 1px solid var(--card-agent-badge-border, rgba(139, 148, 158, 0.28)); padding: 2px 6px; border-radius: 9999px; } .card-progress { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-sm); } .card-session-files { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-sm); padding: 0; border: none; background: transparent; color: var(--text-muted); font-size: 12px; cursor: pointer; } .card-session-files:hover { color: var(--text); } .card-session-files:disabled { cursor: default; opacity: 0.7; } .card-progress-bar { flex: 1; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; } .card-progress-fill { height: 100%; border-radius: 2px; transition: width 0.3s; } .card-progress-label { font-size: 11px; font-weight: 600; color: var(--text-muted); font-family: var(--font-mono); flex-shrink: 0; } /* Steps toggle and list */ .card-steps-toggle { display: flex; align-items: center; gap: var(--space-xs); margin-top: 6px; padding: 0; background: none; border: none; cursor: pointer; font-size: 11px; color: var(--text-muted); transition: color var(--transition-fast); } .card-steps-toggle:hover { color: var(--text); } .card-steps-toggle:focus { outline: 1px solid var(--todo); outline-offset: 1px; border-radius: 2px; } .card-steps-toggle-icon { transition: transform var(--transition-normal); } .card-steps-toggle-icon.expanded { transform: rotate(180deg); } .card-steps-list { display: flex; flex-direction: column; gap: var(--space-xs); margin-top: var(--space-sm); max-height: 200px; overflow-y: auto; } .card-step-item { display: flex; align-items: center; gap: 6px; font-size: 12px; } .card-step-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; } .card-step-dot--pending { background: var(--border, #30363d); } .card-step-dot--in-progress { background: var(--todo, #58a6ff); } .card-step-dot--done { background: var(--color-success, #3fb950); } .card-step-dot--skipped { background: var(--text-dim, #484f58); } .card-step-name { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .card-step-name.completed { text-decoration: line-through; opacity: 0.6; } /* === ProjectCard Component === */ .project-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-lg); cursor: pointer; transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast); display: flex; flex-direction: column; gap: var(--space-md); min-width: 280px; } .project-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--text-dim); } .project-card:active { transform: translateY(0); } .project-card-loading { opacity: 0.7; pointer-events: none; } .project-card-errored { border-color: var(--color-error); box-shadow: 0 0 0 1px var(--color-error); } .project-card-header { display: flex; align-items: flex-start; gap: var(--space-md); } .project-card-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--surface); border-radius: var(--radius-md); color: var(--todo); flex-shrink: 0; } .project-card-title-section { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .project-card-name { font-size: 15px; font-weight: 600; color: var(--text); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .project-card-path { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .project-card-status-badge { display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-sm); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid currentColor; flex-shrink: 0; } .project-card-health { display: flex; gap: var(--space-lg); padding: var(--space-md) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); } .project-card-metric { display: flex; flex-direction: column; gap: 2px; } .project-card-metric-value { font-size: 18px; font-weight: 700; color: var(--text); font-family: var(--font-mono); } .project-card-metric-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; } .project-card-metric-empty { flex: 1; align-items: center; justify-content: center; } .project-card-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); } .project-card-activity { display: flex; align-items: center; gap: 6px; font-size: 12px; } .project-card-activity-label { color: var(--text-dim); } .project-card-activity-time { color: var(--text-muted); } .project-card-actions { display: flex; align-items: center; gap: var(--space-sm); } .project-card-action { display: inline-flex; align-items: center; gap: var(--space-xs); padding: 6px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-muted); font-size: 12px; font-weight: 500; cursor: pointer; transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast); } .project-card-action:hover:not(:disabled) { background: var(--card-hover); border-color: var(--text-dim); color: var(--text); } .project-card-action:disabled { opacity: 0.5; cursor: not-allowed; } .project-card-action-resume { color: var(--color-success); } .project-card-action-resume:hover:not(:disabled) { background: rgba(63, 185, 80, 0.1); border-color: var(--color-success); } .project-card-action-pause { color: var(--warning, #e3b341); } .project-card-action-pause:hover:not(:disabled) { background: rgba(227, 179, 65, 0.1); border-color: var(--warning, #e3b341); } .project-card-action-open { color: var(--todo); } .project-card-action-open:hover:not(:disabled) { background: rgba(88, 166, 255, 0.1); border-color: var(--todo); } .project-card-action-remove { padding: 6px; color: var(--color-error); } .project-card-action-remove:hover:not(:disabled) { background: rgba(248, 81, 73, 0.1); border-color: var(--color-error); } .project-card-action-remove.is-armed { background: color-mix(in srgb, var(--color-error) 14%, transparent); } /* Animation for initializing spinner */ @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .animate-spin { animation: spin 1s linear infinite; } /* === ProjectOverview Component === */ .project-overview { display: flex; flex-direction: column; flex: 1; min-height: 0; gap: var(--space-lg); padding: var(--space-xl); max-width: 1400px; margin: 0 auto; width: 100%; overflow-y: auto; height: 100%; -webkit-overflow-scrolling: touch; } .project-overview--empty { display: flex; align-items: center; justify-content: center; } .project-overview--loading { padding: var(--space-xl); } /* --- Overview Header --- */ .project-overview__header { display: flex; align-items: center; gap: var(--space-xl); flex-wrap: wrap; } .project-overview__title { display: flex; align-items: center; gap: var(--space-sm); font-size: 20px; font-weight: 700; color: var(--text); margin: 0; white-space: nowrap; } .project-overview__stats { display: flex; align-items: center; gap: var(--space-md); flex: 1; flex-wrap: wrap; } .project-stat { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); } .project-stat__icon { display: flex; align-items: center; justify-content: center; color: var(--text-muted); } .project-stat__content { display: flex; flex-direction: column; gap: 1px; } .project-stat__value { font-size: 16px; font-weight: 700; color: var(--text); font-family: var(--font-mono); line-height: 1.2; } .project-stat__label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; line-height: 1; } .project-stat--active .project-stat__icon { color: var(--in-progress); } .project-stat--active .project-stat__value { color: var(--in-progress); } .project-stat--completed .project-stat__icon { color: var(--color-success); } .project-stat--completed .project-stat__value { color: var(--color-success); } .project-stat--error .project-stat__icon { color: var(--color-error); } .project-stat--error { border-color: rgba(248, 81, 73, 0.3); background: rgba(248, 81, 73, 0.08); } .project-stat--error .project-stat__value { color: var(--color-error); } .project-overview__add-btn { white-space: nowrap; display: inline-flex; align-items: center; gap: var(--space-sm); } /* --- Filter Tabs --- */ .project-overview__filters { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; } .project-filter-tabs { display: flex; align-items: center; gap: var(--space-xs); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-xs); } .project-filter-tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast); } .project-filter-tab:hover { color: var(--text); background: var(--card); } .project-filter-tab.active { color: var(--text); background: var(--card); border-color: var(--border); box-shadow: var(--shadow-sm); } .project-filter-tab.has-errors { color: var(--color-error); } .project-filter-tab.has-errors.active { background: rgba(248, 81, 73, 0.12); border-color: rgba(248, 81, 73, 0.3); } .project-filter-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; font-weight: 600; font-family: var(--font-mono); background: var(--border); border-radius: var(--radius-pill); color: var(--text-muted); line-height: 1; } .project-filter-tab.active .project-filter-count { background: var(--text-dim); color: var(--bg); } .project-filter-tab.has-errors .project-filter-count { background: rgba(248, 81, 73, 0.2); color: var(--color-error); } /* --- Sort Dropdown --- */ .project-sort { display: flex; align-items: center; gap: var(--space-sm); color: var(--text-muted); font-size: 13px; } .project-sort-select { appearance: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-muted); font-size: 13px; padding: 6px 28px 6px 10px; cursor: pointer; font-family: var(--font-primary); transition: border-color var(--transition-fast), color var(--transition-fast); background-image: none; } .project-sort-select:hover { border-color: var(--text-dim); color: var(--text); } .project-sort-select:focus { outline: none; border-color: var(--todo); box-shadow: var(--focus-ring); } /* --- Project Grid --- */ .project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--space-lg); } .project-grid--skeleton { pointer-events: none; } /* --- No Results --- */ .project-overview__no-results { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); padding: var(--space-2xl); color: var(--text-muted); text-align: center; } .project-overview__no-results svg { opacity: 0.4; } .project-overview__no-results p { font-size: 15px; } /* --- Empty State --- */ .project-empty-state { display: flex; flex-direction: column; align-items: center; gap: var(--space-lg); padding: var(--space-2xl); max-width: 480px; text-align: center; } .project-empty-state__icon { display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; background: var(--surface); border: 2px dashed var(--border); border-radius: var(--radius-xl); color: var(--text-dim); } .project-empty-state__title { font-size: 20px; font-weight: 700; color: var(--text); margin: 0; } .project-empty-state__description { font-size: 14px; color: var(--text-muted); line-height: 1.6; max-width: 380px; } .project-empty-state__cta { display: inline-flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-sm); padding: 10px 20px; font-size: 14px; font-weight: 600; } /* --- Loading Skeleton --- */ @keyframes skeleton-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } } .project-overview__header-skeleton { display: flex; flex-direction: column; gap: var(--space-xl); margin-bottom: var(--space-lg); } .project-overview__stats-row { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; } .project-overview__stat-skeleton { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); } .project-overview__filters-skeleton { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-lg); } .project-skeleton { background: var(--card); border-radius: var(--radius-md); } .project-skeleton-icon { color: var(--text-dim); opacity: 0.5; } .project-skeleton--icon { width: 36px; height: 36px; border-radius: var(--radius-md); animation: skeleton-pulse 1.5s ease-in-out infinite; } .project-skeleton--value { width: 32px; height: 16px; border-radius: var(--radius-sm); animation: skeleton-pulse 1.5s ease-in-out infinite; } .project-skeleton--label { width: 48px; height: 10px; border-radius: var(--radius-sm); animation: skeleton-pulse 1.5s ease-in-out infinite; } .project-skeleton--tab { width: 80px; height: 32px; border-radius: var(--radius-sm); animation: skeleton-pulse 1.5s ease-in-out infinite; } .project-skeleton--icon-circle { width: 36px; height: 36px; border-radius: 50%; animation: skeleton-pulse 1.5s ease-in-out infinite; } .project-skeleton__text-group { display: flex; flex-direction: column; gap: var(--space-xs); flex: 1; } .project-skeleton--title { width: 120px; height: 14px; border-radius: var(--radius-sm); animation: skeleton-pulse 1.5s ease-in-out infinite; } .project-skeleton--path { width: 180px; height: 10px; border-radius: var(--radius-sm); animation: skeleton-pulse 1.5s ease-in-out infinite; } .project-skeleton--badge { width: 60px; height: 22px; border-radius: var(--radius-sm); animation: skeleton-pulse 1.5s ease-in-out infinite; } .project-skeleton--metric { width: 60px; height: 40px; border-radius: var(--radius-sm); animation: skeleton-pulse 1.5s ease-in-out infinite; } .project-skeleton--activity { width: 120px; height: 12px; border-radius: var(--radius-sm); animation: skeleton-pulse 1.5s ease-in-out infinite; } .project-skeleton--actions { width: 160px; height: 28px; border-radius: var(--radius-sm); animation: skeleton-pulse 1.5s ease-in-out infinite; } /* Skeleton Card Layout */ .project-card--skeleton { pointer-events: none; opacity: 0.7; } .project-card-skeleton__header { display: flex; align-items: flex-start; gap: var(--space-md); } .project-card-skeleton__health { display: flex; gap: var(--space-lg); padding: var(--space-md) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); } .project-card-skeleton__footer { display: flex; align-items: center; justify-content: space-between; } /* Stagger skeleton animation delays for visual polish */ .project-card--skeleton:nth-child(2) .project-skeleton--title { animation-delay: 0.1s; } .project-card--skeleton:nth-child(3) .project-skeleton--title { animation-delay: 0.2s; } .project-card--skeleton:nth-child(4) .project-skeleton--title { animation-delay: 0.3s; } .project-card--skeleton:nth-child(5) .project-skeleton--title { animation-delay: 0.4s; } .project-card--skeleton:nth-child(6) .project-skeleton--title { animation-delay: 0.5s; } /* === ProjectOverview Mobile Responsive (FN-1316) === */ @media (max-width: 768px) { /* Overview container */ .project-overview { padding: var(--space-md); } /* Header */ .project-overview__header { flex-direction: column; align-items: stretch; gap: var(--space-md); } .project-overview__title { font-size: 18px; } .project-overview__stats { flex-direction: row; flex-wrap: wrap; flex: none; } .project-stat { padding: var(--space-xs) var(--space-sm); } .project-stat__value { font-size: 14px; } .project-stat__label { font-size: 10px; } .project-overview__add-btn { width: 100%; justify-content: center; } /* Filters */ .project-overview__filters { flex-direction: column; align-items: stretch; } .project-filter-tabs { width: 100%; justify-content: space-between; } .project-filter-tab { flex: 1; justify-content: center; font-size: 12px; padding: 6px 8px; } .project-sort { width: 100%; justify-content: space-between; } .project-sort-select { flex: 1; margin-left: var(--space-sm); } /* Grid */ .project-grid { grid-template-columns: 1fr; gap: var(--space-md); } /* Cards */ .project-card { min-width: 0; } .project-card-health { flex-wrap: wrap; gap: var(--space-md); } .project-card-footer { flex-direction: column; align-items: stretch; gap: var(--space-sm); } .project-card-actions { justify-content: flex-end; flex-wrap: wrap; } /* Empty state */ .project-empty-state { padding: var(--space-lg); max-width: 100%; } } /* --- Dashboard Loader --- */ @keyframes dashboard-loader-pulse { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } } .dashboard-loader { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: var(--space-xl); background: var(--bg); } .dashboard-loader__content { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); min-width: min(100%, 320px); } .dashboard-loader__logo { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: 0.01em; color: var(--text); animation: dashboard-loader-pulse 1.8s ease-in-out infinite; } .dashboard-loader__message { margin: 0; font-size: 14px; color: var(--text-secondary); } .dashboard-loader__steps { display: flex; flex-direction: column; gap: var(--space-sm); width: 100%; margin: 0; padding: 0; list-style: none; } .dashboard-loader__step { display: flex; align-items: center; gap: var(--space-sm); font-size: 14px; line-height: 1.4; } .dashboard-loader__step-icon { display: inline-flex; width: 16px; min-width: 16px; justify-content: center; } .dashboard-loader__step--done { color: var(--success, #22c55e); } .dashboard-loader__step--active { color: var(--text); } .dashboard-loader__step--pending { color: var(--text-secondary); opacity: 0.5; } .dashboard-loader__spinner { display: block; } /* === ActivityFeed Component === */ .activity-feed { display: flex; flex-direction: column; gap: var(--space-lg); max-height: 600px; overflow-y: auto; padding: var(--space-md); } .activity-feed-group { display: flex; flex-direction: column; gap: var(--space-sm); } .activity-feed-group-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-sm) 0; border-bottom: 1px solid var(--border); margin-bottom: var(--space-sm); position: sticky; top: 0; background: var(--surface); z-index: 1; } .activity-feed-group-date { font-size: 13px; font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: 0.5px; } .activity-feed-group-count { font-size: 11px; color: var(--text-muted); background: var(--card); padding: 2px 8px; border-radius: var(--radius-sm); } .activity-feed-list { display: flex; flex-direction: column; gap: var(--space-sm); } .activity-feed-item { display: flex; gap: var(--space-md); padding: var(--space-md); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); transition: background-color var(--transition-fast); } .activity-feed-item:hover { background: var(--card-hover); } .activity-feed-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--surface); border-radius: var(--radius-md); flex-shrink: 0; } .activity-feed-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-xs); } .activity-feed-header { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; } .activity-feed-type { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); } .activity-feed-project-badge { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: 11px; color: var(--todo); background: color-mix(in srgb, var(--todo) 10%, transparent); padding: 2px 8px; border-radius: var(--radius-sm); } .activity-feed-details { display: flex; flex-direction: column; gap: 2px; } .activity-feed-task-id { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); } .activity-feed-task-title { font-size: 14px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .activity-feed-description { font-size: 13px; color: var(--text-muted); line-height: 1.4; } .activity-feed-meta { display: flex; align-items: center; gap: var(--space-sm); margin-top: 2px; } .activity-feed-time { font-size: 11px; color: var(--text-dim); } /* Activity Feed States */ .activity-feed-loading { display: flex; align-items: center; justify-content: center; min-height: 200px; } .activity-feed-skeleton { display: flex; flex-direction: column; gap: var(--space-md); width: 100%; } .activity-feed-skeleton-item { display: flex; gap: var(--space-md); padding: var(--space-md); } .activity-feed-skeleton-icon { width: 32px; height: 32px; background: var(--border); border-radius: var(--radius-md); flex-shrink: 0; animation: pulse 1.5s ease-in-out infinite; } .activity-feed-skeleton-content { flex: 1; display: flex; flex-direction: column; gap: var(--space-sm); } .activity-feed-skeleton-line { height: 12px; background: var(--border); border-radius: var(--radius-sm); animation: pulse 1.5s ease-in-out infinite; } .activity-feed-skeleton-line.short { width: 60%; } .activity-feed-error { display: flex; align-items: center; justify-content: center; min-height: 200px; padding: var(--space-xl); } .activity-feed-error-message { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); color: var(--color-error); text-align: center; } .activity-feed-empty { display: flex; align-items: center; justify-content: center; min-height: 300px; padding: var(--space-xl); } .activity-feed-empty-state { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); color: var(--text-muted); text-align: center; } .activity-feed-empty-state p { font-size: 15px; font-weight: 500; color: var(--text); margin: 0; } .activity-feed-empty-hint { font-size: 13px; color: var(--text-dim); max-width: 300px; } /* === Modals === */ .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); z-index: 100; justify-content: center; align-items: flex-start; padding-top: var(--overlay-padding-top, 10vh); } .modal-overlay.open { display: flex; } .modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); width: 480px; max-height: 80vh; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; } .modal-lg { width: 640px; } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: var(--modal-padding); border-bottom: 1px solid var(--border); background: rgba(0, 0, 0, 0.1); } .modal-header h3 { font-size: 15px; font-weight: 600; letter-spacing: 0.3px; } .modal-close { background: none; border: none; color: var(--text-muted); font-size: 22px; cursor: pointer; padding: 0 4px; line-height: 1; } .modal-close:hover { color: var(--text); } .modal-close:focus-visible { box-shadow: var(--focus-ring-strong); outline: none; border-radius: var(--radius-sm); } .modal-send-to-background { width: 28px; height: 28px; border-radius: 50%; border: none; background: transparent; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; } .modal-send-to-background:hover { color: var(--text-primary); } .modal-send-to-background:focus-visible { box-shadow: var(--focus-ring-strong); outline: none; } .modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: var(--modal-padding); border-top: 1px solid var(--border); background: rgba(0, 0, 0, 0.05); } .modal-actions-left { display: flex; gap: 10px; margin-right: auto; } .modal-actions-right { display: flex; gap: 10px; } .import-preview-list { margin: 8px 0; padding-left: 20px; font-size: 12px; color: var(--text-muted); } .import-preview-list li { margin: 4px 0; } /* === Forms === */ .form-group { padding: 0 var(--space-xl); margin-top: var(--space-lg); } .form-group:last-of-type { margin-bottom: var(--space-sm); } .form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; } .optional { font-weight: 400; text-transform: none; letter-spacing: 0; } .form-group input:not([type="checkbox"]), .form-group textarea { width: 100%; padding: var(--space-sm) var(--space-md); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); font-size: 14px; font-family: inherit; outline: none; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); } .form-group input:not([type="checkbox"]):focus, .form-group textarea:focus { border-color: var(--todo); box-shadow: var(--focus-ring); } .form-group input[type="checkbox"] { width: 16px; height: 16px; padding: 0; margin: 0; accent-color: var(--todo); cursor: pointer; border-radius: var(--radius-sm); transition: box-shadow var(--transition-fast); } .form-group input[type="checkbox"]:focus-visible { box-shadow: var(--focus-ring-strong); outline: none; } .checkbox-label { display: flex !important; align-items: center; gap: var(--space-sm); text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important; color: var(--text) !important; font-size: 13px !important; cursor: pointer; } .form-group textarea { resize: vertical; } /* === Select Styling === */ .form-group select { width: 100%; padding: 8px 32px 8px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 14px; font-family: inherit; outline: none; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b949e' d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); } .form-group select:focus { border-color: var(--todo); box-shadow: var(--focus-ring); } .form-group select:hover:not(:focus) { border-color: var(--text-dim); } .form-group select optgroup { background: var(--surface); color: var(--text-muted); font-weight: 600; } .form-group select option { background: var(--surface); color: var(--text); padding: var(--space-xs) var(--space-sm); } /* === Global Input & Select Classes === */ .input { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px; font-size: 13px; font-family: var(--font-primary); outline: none; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); } .input:focus { border-color: var(--todo); box-shadow: var(--focus-ring); } .input::placeholder { color: var(--text-dim); } .select { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px; font-size: 13px; font-family: var(--font-primary); cursor: pointer; outline: none; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); } .select:focus { border-color: var(--todo); box-shadow: var(--focus-ring); } /* === Helper Text & Field Errors === */ .form-group small { display: block; margin-top: 6px; font-size: 12px; color: var(--text-muted); line-height: 1.4; } .form-group .field-error { color: var(--color-error); font-weight: 500; } /* === Settings Layout === */ .settings-layout { display: flex; flex-direction: row; min-height: 300px; overflow: hidden; } .settings-sidebar { width: 170px; min-width: 170px; border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 10px 8px; gap: 2px; background: rgba(0, 0, 0, 0.1); } .settings-nav-item { display: block; width: 100%; padding: var(--space-sm) var(--space-md); font-size: 13px; font-weight: 500; color: var(--text-muted); background: none; border: none; border-left: 3px solid transparent; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; text-align: left; transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast); } .settings-nav-item:hover { background: var(--bg); color: var(--text); border-left-color: var(--border); } .settings-nav-item:focus-visible { box-shadow: var(--focus-ring-strong); outline: none; } .settings-nav-item.active { background: var(--bg); color: var(--todo); font-weight: 600; border-left-color: var(--todo); } /* Settings group headers - visual separators between global and project sections */ .settings-group-header { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: var(--space-md) var(--space-md) var(--space-xs); margin-top: var(--space-sm); user-select: none; } .settings-group-header:first-child { margin-top: 0; } .settings-content { flex: 1; overflow-y: auto; padding: 4px 0 12px; } .settings-content > * { animation: settingsFadeIn var(--transition-normal); } @keyframes settingsFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } } .settings-section-heading { font-size: 14px; font-weight: 600; padding: 12px 20px 10px; margin: 0 20px 0 0; color: var(--text); border-bottom: 1px solid var(--border); margin-bottom: var(--space-xs); } /* Scope indicators in sidebar nav items */ .settings-scope-icon { margin-right: 6px; display: inline-flex; vertical-align: middle; color: var(--text-muted); } /* Scope banner above section content */ .settings-scope-banner { display: flex; align-items: center; gap: var(--space-sm); padding: 8px 20px; margin: 0 0 4px 0; font-size: 12px; border-radius: var(--radius); color: var(--text-muted); } .settings-scope-global { background: color-mix(in srgb, var(--color-info) 8%, transparent); border-left: 3px solid color-mix(in srgb, var(--color-info) 40%, transparent); } .settings-scope-project { background: color-mix(in srgb, var(--color-success) 8%, transparent); border-left: 3px solid color-mix(in srgb, var(--color-success) 40%, transparent); } .settings-scope-mixed { background: color-mix(in srgb, var(--triage) 8%, transparent); border-left: 3px solid color-mix(in srgb, var(--triage) 40%, transparent); } /* Helper note styling for Settings sections — aligns with form-group horizontal gutters */ .settings-note { display: block; padding: 0 var(--space-xl); margin-top: var(--space-xs); font-size: 12px; color: var(--text-muted); } @media (max-width: 768px) { .settings-note { padding: 0 var(--space-lg); } } /* === Auth Provider Cards === */ .auth-section-hint { padding: 12px 16px; margin-bottom: 12px; background: var(--bg-tertiary); border-radius: var(--radius); font-size: 13px; color: var(--text-muted); border-left: 3px solid var(--text-muted); } .auth-provider-group { margin-bottom: 16px; } .auth-group-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 8px; padding: 0 4px; } .auth-provider-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 8px; overflow: hidden; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); } .auth-provider-card:hover { border-color: var(--text-dim); } .auth-provider-card--authenticated { border-color: color-mix(in srgb, var(--color-success) 40%, var(--border)); background: color-mix(in srgb, var(--color-success) 5%, var(--surface)); } .auth-provider-card--authenticated:hover { border-color: color-mix(in srgb, var(--color-success) 60%, var(--border)); } .auth-provider-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; gap: 12px; } .auth-provider-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; min-width: 0; } .auth-provider-info strong { font-weight: 500; color: var(--text); } .auth-status-badge { display: inline-flex; align-items: center; gap: var(--space-xs); padding: 3px 8px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; letter-spacing: 0.3px; white-space: nowrap; } .auth-status-badge.authenticated { background: color-mix(in srgb, var(--color-success) 20%, transparent); color: var(--color-success); } .auth-status-badge.not-authenticated { background: color-mix(in srgb, var(--color-error) 15%, transparent); color: var(--color-error); } .auth-hint { display: block; padding: 12px 4px 0; font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border); margin-top: 8px; } .auth-apikey-section { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; flex-shrink: 0; } .auth-apikey-input-row { display: flex; gap: 6px; align-items: center; } .auth-apikey-input { background: var(--bg-input); border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: 6px 10px; font-size: 13px; width: 180px; font-family: monospace; } .auth-apikey-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2); } .auth-apikey-input:disabled { opacity: 0.6; } .auth-apikey-progress { font-size: 11px; color: var(--text-muted); padding-right: 4px; } .auth-apikey-error { font-size: 11px; color: var(--color-error); padding-right: 4px; } .settings-empty-state { padding: 12px 20px; font-size: 13px; } .settings-muted { color: var(--text-muted); } .settings-loading { text-align: center; } /* === Model Lane Status Badges === */ .settings-lane-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 500; white-space: nowrap; } .settings-lane-badge--override { background-color: color-mix(in srgb, var(--color-accent) 20%, transparent); color: var(--color-accent); } .settings-lane-badge--inherited { background-color: color-mix(in srgb, var(--color-text-muted) 15%, transparent); color: var(--text-muted); } .settings-description { font-size: 13px; color: var(--text-secondary); margin-bottom: var(--space-md); line-height: 1.5; } /* === Task Comments === */ .comments-header-row { justify-content: space-between; gap: var(--space-md); } .comments-author-row { display: flex; align-items: center; gap: var(--space-sm); } .comments-actions-row { display: flex; gap: var(--space-sm); } .comments-edit-form { display: grid; gap: var(--space-sm); margin-top: var(--space-sm); } .comments-edit-actions { display: flex; gap: var(--space-sm); justify-content: flex-end; } .comments-outcome-text { white-space: pre-wrap; } .comments-compose-form { display: grid; gap: var(--space-sm); margin-top: var(--space-md); } .comments-type-toggle { display: flex; gap: var(--space-sm); } .comments-guidance-hint { font-size: 0.875rem; color: var(--text-muted); } .comments-footer-row { display: flex; justify-content: space-between; align-items: center; } .comments-char-count { font-size: 0.75rem; } .comments-char-count--over { color: var(--color-error); } /* === PR Section === */ .pr-section-icon { vertical-align: middle; margin-right: var(--space-sm); } .pr-section-icon--sm { vertical-align: middle; margin-right: var(--space-xs); } .pr-hint--muted { opacity: 0.8; font-size: 13px; } .pr-hint--subtle { margin-top: var(--space-sm); opacity: 0.7; font-size: 12px; } .pr-card--status { border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-md); } .pr-header { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); } .pr-status-icon { font-size: 16px; } .pr-status-badge { padding: 2px var(--space-sm); border-radius: var(--radius-lg); font-size: 12px; font-weight: 500; text-transform: capitalize; } /* PR status badge theme-aware colors */ .pr-status-badge--open { background: var(--status-in-review-bg); color: var(--in-review); } .pr-status-badge--closed { background: var(--status-error-bg); color: var(--color-error-dark); } .pr-status-badge--merged { background: color-mix(in srgb, var(--in-progress) 15%, transparent); color: var(--in-progress); } /* PR card status background */ .pr-card--status-open { background: var(--status-in-review-bg); } .pr-card--status-closed { background: var(--status-error-bg); } .pr-card--status-merged { background: color-mix(in srgb, var(--in-progress) 15%, transparent); } /* GitHub badge base styles */ .card-github-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: var(--radius-pill); cursor: pointer; white-space: nowrap; } /* GitHub badge theme-aware colors */ .card-github-badge--open { background: color-mix(in srgb, var(--in-review) 20%, transparent); color: var(--in-review); } .card-github-badge--closed { background: color-mix(in srgb, var(--color-error) 20%, transparent); color: var(--color-error); } .card-github-badge--merged { background: color-mix(in srgb, var(--in-progress) 20%, transparent); color: var(--in-progress); } .card-github-badge--completed { background: color-mix(in srgb, var(--in-progress) 20%, transparent); color: var(--in-progress); } .card-github-badge--not-planned { background: color-mix(in srgb, var(--text-muted, #8b949e) 15%, transparent); color: var(--text-muted, #8b949e); } .pr-number { font-size: 14px; opacity: 0.8; } .pr-spacer { flex: 1; } .pr-refresh-btn { padding: var(--space-xs) var(--space-sm); } .pr-title { font-weight: 500; margin-bottom: var(--space-sm); } .pr-meta { font-size: 12px; opacity: 0.7; margin-bottom: var(--space-sm); } .pr-meta-arrow { margin: 0 var(--space-sm); } .pr-hint--info { margin-bottom: var(--space-sm); font-size: 12px; } .pr-footer { display: flex; align-items: center; gap: var(--space-md); } .pr-comments { display: flex; align-items: center; gap: var(--space-xs); } .pr-link { display: flex; align-items: center; gap: var(--space-xs); color: var(--todo); text-decoration: none; font-size: 12px; } .pr-link:hover { text-decoration: underline; } /* === Merge Details Card === */ .merge-details-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-md); } /* === Detail Modal === */ .detail-title-row { display: flex; align-items: center; gap: 10px; } .detail-id { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text-muted); } .detail-column-badge { font-size: 11px; padding: 2px 8px; border-radius: var(--radius-pill); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } .badge-triage { background: rgba(210, 153, 34, 0.15); color: var(--triage); } .badge-todo { background: rgba(88, 166, 255, 0.15); color: var(--todo); } .badge-in-progress { background: rgba(188, 140, 255, 0.15); color: var(--in-progress); } .badge-in-review { background: rgba(63, 185, 80, 0.15); color: var(--in-review); } .badge-done { background: rgba(139, 148, 158, 0.15); color: var(--done); } .detail-body { padding: 20px; overflow-x: hidden; overflow-y: auto; flex: 1; } /* When the Agent Log tab is active, switch to flex layout so the log section can stretch to fill the remaining space above the action bar. The detail-body itself should NOT scroll; the agent-log-viewer scrolls instead. */ .detail-body--agent-log { display: flex; flex-direction: column; overflow-y: hidden; } .detail-title { font-size: 18px; font-weight: 600; margin-bottom: var(--space-md); } .detail-meta { font-size: 12px; color: var(--text-muted); margin-bottom: var(--space-lg); } /* Error alert in task detail modal */ .detail-error-alert { display: flex; align-items: flex-start; gap: var(--space-md); margin: var(--space-md) 0 var(--space-lg); padding: 12px 14px; background: rgba(218, 54, 51, 0.1); border: 1px solid rgba(218, 54, 51, 0.3); border-radius: var(--radius); } .detail-error-icon { flex-shrink: 0; font-size: 18px; line-height: 1; } .detail-error-content { flex: 1; min-width: 0; } .detail-error-title { font-size: 13px; font-weight: 600; color: var(--color-error-dark); margin-bottom: var(--space-xs); } .detail-error-message { font-size: 12px; color: var(--text-muted); line-height: 1.5; word-break: break-word; } .detail-section { margin-top: var(--space-lg); } /* Agent Log tab: stretch to fill the remaining modal body height so the log viewer uses all available space above the action bar. */ .detail-section--agent-log { display: flex; flex-direction: column; flex: 1; min-height: 0; margin-top: var(--space-lg); } .detail-section--agent-log .agent-log-viewer { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; font-family: monospace; font-size: 13px; line-height: 1.5; padding: 12px; background: var(--bg-secondary); border-radius: 6px; white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word; } .agent-log-model-header { display: flex; flex-wrap: wrap; gap: 16px; padding: 8px 12px; margin-bottom: 12px; background: var(--bg-tertiary); border-radius: 4px; font-size: 12px; color: var(--text-muted); overflow: hidden; min-width: 0; align-items: center; } .agent-log-model-group { display: flex; align-items: center; gap: 6px; } .agent-log-model-label { font-weight: 600; } .agent-log-model-value { display: flex; align-items: center; gap: 4px; color: var(--text-muted); } .agent-log-model-header-toggle { margin-left: auto; } .agent-log-badge-row { display: inline-flex; align-items: center; } .agent-log-tool { color: var(--accent); margin: 4px 0; padding: 2px 6px; border-left: 3px solid var(--accent); background: var(--log-tool-bg); } .agent-log-tool-detail { color: var(--text-muted); font-size: 12px; margin-left: 6px; } .agent-log-tool-result { color: var(--color-success); margin: 2px 0; padding: 2px 6px; border-left: 3px solid var(--color-success); background: var(--log-success-bg); font-size: 12px; } .agent-log-tool-error { color: var(--color-error); margin: 2px 0; padding: 2px 6px; border-left: 3px solid var(--color-error); background: var(--log-error-bg); font-size: 12px; } .agent-log-thinking { font-style: italic; color: var(--text-muted); opacity: 0.7; } .agent-log-agent-badge { color: var(--text-muted); font-size: 11px; margin-right: 6px; font-weight: 600; text-transform: uppercase; } .agent-log-timestamp { color: var(--text-muted); font-size: 10px; margin-right: 6px; opacity: 0.7; } /* Agent Log markdown/plain-text mode toggle */ .agent-log-mode-toggle { padding: 3px 8px; font-size: 11px; font-weight: 500; color: var(--text-muted); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: all 0.15s ease; line-height: 1; } .agent-log-mode-toggle:hover { background: var(--card-hover); color: var(--text); } .agent-log-mode-toggle[aria-pressed="true"] { background: var(--accent); color: var(--text-on-accent, #fff); border-color: var(--accent); } /* Agent log pagination summary */ .agent-log-summary { padding: var(--space-xs) var(--space-md); font-size: var(--text-xs, 12px); color: var(--text-muted, #8b949e); border-bottom: 1px solid var(--border); text-align: center; } /* Agent log load more button */ .agent-log-load-more { padding: var(--space-md); text-align: center; border-top: 1px solid var(--border); } .agent-log-load-more .agent-log-mode-toggle { min-width: 120px; } /* Fullscreen mode for agent log viewer */ .agent-log-viewer--fullscreen { position: fixed; inset: 0; z-index: 10000; background: var(--surface); overflow-y: auto; overflow-x: hidden; padding: var(--space-lg); } .agent-log-viewer--fullscreen .agent-log-model-header { position: sticky; top: 0; background: var(--surface); z-index: 1; padding-bottom: var(--space-md); margin-bottom: var(--space-md); border-bottom: 1px solid var(--border); } .detail-spec-edit-trigger { margin-bottom: var(--space-md); } .detail-attachments-grid { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-bottom: var(--space-sm); } .detail-attachment-card { position: relative; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-xs); background: var(--card); } .detail-attachment-link { display: block; } .detail-attachment-image { display: block; max-width: 150px; max-height: 100px; border-radius: var(--radius-sm); } .detail-attachment-meta { margin-top: var(--space-xs); font-size: 11px; opacity: 0.7; } .detail-attachment-delete { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; padding: 0; border: none; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff; cursor: pointer; font-size: 12px; line-height: 20px; text-align: center; } .detail-empty-inline { margin-bottom: var(--space-sm); opacity: 0.5; } .detail-hidden-file-input { display: none; } .dep-remove-btn { margin-left: 6px; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; padding: 0 4px; } .dep-trigger-wrap { position: relative; } .modal-actions-spacer { flex: 1; } /* Detail modal split-menu dropdowns */ .detail-actions-dropdown, .detail-move-dropdown { position: relative; } .detail-actions-menu, .detail-move-menu { position: absolute; bottom: calc(100% + 4px); z-index: 50; min-width: 140px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); overflow: hidden; } .detail-actions-menu { left: 0; } .detail-move-menu { right: 0; } .detail-actions-menu-item, .detail-move-menu-item { display: block; width: 100%; padding: 8px 12px; font-size: 13px; font-weight: 400; color: var(--text); background: transparent; border: none; cursor: pointer; text-align: left; transition: background 0.1s; } .detail-actions-menu-item:hover, .detail-move-menu-item:hover { background: var(--surface-hover, rgba(0, 0, 0, 0.04)); } .detail-actions-menu-item:focus, .detail-move-menu-item:focus { outline: none; background: var(--surface-hover, rgba(0, 0, 0, 0.04)); } .detail-actions-menu-item-danger { color: var(--color-error, #dc3545); } .detail-actions-menu-item-danger:hover { background: rgba(220, 53, 69, 0.08); } .detail-refine-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.7); z-index: 100; } .detail-refine-modal { max-width: 500px; width: 90%; margin: 0; } .detail-refine-title { margin: 0; } .detail-refine-help { margin-bottom: var(--space-md); opacity: 0.8; } .detail-refine-textarea { width: 100%; min-height: 120px; padding: var(--space-md); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: 14px; resize: vertical; } .detail-refine-input-group { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-sm); gap: var(--space-sm); } .detail-refine-char-count { font-size: 12px; opacity: 0.6; } .task-changes-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-sm); padding: var(--space-xl); min-height: 180px; border: 1px dashed var(--border); border-radius: var(--radius-md); background: var(--card); text-align: center; color: var(--text-muted); } .task-changes-state--loading, .task-changes-state--error { flex-direction: row; min-height: auto; padding: var(--space-md); justify-content: flex-start; border-style: solid; } .task-changes-state--error { color: var(--color-error); background: rgba(248, 81, 73, 0.08); border-color: rgba(248, 81, 73, 0.25); } .task-changes-state-hint { font-size: 12px; color: var(--text-dim); max-width: 440px; line-height: 1.5; } .task-changes-tab { display: flex; flex-direction: column; gap: var(--space-md); } .changes-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; } .changes-header h4 { display: inline-flex; align-items: center; gap: var(--space-sm); margin: 0; } .changes-header-actions { display: inline-flex; align-items: center; gap: var(--space-sm); } .changes-header-actions-wrapper { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-xs); } .changes-header-actions-secondary { display: inline-flex; align-items: center; gap: var(--space-sm); } .changes-nav { display: inline-flex; align-items: center; gap: var(--space-xs); } .changes-nav-indicator { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); min-width: 32px; text-align: center; } .changes-file-list { display: flex; flex-direction: column; gap: var(--space-sm); } .changes-file-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); overflow: hidden; } .changes-file-item.expanded { border-color: var(--text-dim); background: var(--surface); } .changes-file-header { width: 100%; display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); background: transparent; border: none; color: var(--text); text-align: left; cursor: pointer; } .changes-file-header:hover { background: var(--card-hover); } .changes-file-header:focus-visible { outline: none; box-shadow: var(--focus-ring-strong); } .changes-file-header:active { background: var(--border); } .changes-file-toggle { display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); flex-shrink: 0; } .changes-file-status { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; flex-shrink: 0; } /* Semantic status colors for changed-file entries — theme-aware via CSS variables */ .changes-file-status--added { color: var(--status-color-added, #3fb950); } .changes-file-status--modified { color: var(--status-color-modified, #58a6ff); } .changes-file-status--deleted { color: var(--status-color-deleted, #f85149); } .changes-file-status--unknown { color: var(--status-color-unknown, #8b949e); } /* Stat summary in changes header */ .changes-stat-summary { display: inline-flex; align-items: center; gap: 2px; margin-left: var(--space-sm); font-size: 12px; font-family: var(--font-mono); } .changes-stat-summary .diff-add { color: var(--status-color-added, #3fb950); } .changes-stat-summary .diff-del { color: var(--status-color-deleted, #f85149); } /* Task-specific changes header: stacked title + stats layout */ .task-changes-tab .task-changes-header-title { display: flex; flex-direction: column; gap: 2px; } .task-changes-tab .task-changes-header-title h4 { margin: 0; } .task-changes-tab .task-changes-stats { margin-left: calc(16px + var(--space-sm)); /* align with text after icon + gap */ } .changes-file-path { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; font-family: var(--font-mono); font-size: 12px; } .changes-file-stat { flex-shrink: 0; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); } .changes-file-content { border-top: 1px solid var(--border); } .changes-diff-patch { margin: 0; padding: var(--space-sm) 0; background: rgba(0, 0, 0, 0.14); font-family: var(--font-mono); font-size: 11px; line-height: 1.5; overflow-x: auto; white-space: pre-wrap; word-break: break-word; } .changes-diff-patch.changes-diff-patch--wrap { white-space: pre-wrap; word-break: break-word; } .changes-diff-patch.changes-diff-patch--nowrap { white-space: pre; word-break: normal; } /* Summary section - styled for done tasks with success accent */ .detail-summary { background: rgba(63, 185, 80, 0.08); border: 1px solid rgba(63, 185, 80, 0.25); border-radius: var(--radius-md); padding: var(--space-lg); } .detail-summary h4 { color: var(--color-success, #3fb950); margin-bottom: var(--space-md); } .detail-summary .markdown-body { font-size: 14px; line-height: 1.6; } .detail-summary .markdown-body p:first-child { margin-top: 0; } .detail-summary .markdown-body p:last-child { margin-bottom: 0; } /* Spec tab layout - allows SpecEditor to fill available vertical space */ .detail-section--spec { display: flex; flex-direction: column; flex: 1; min-height: 0; margin-top: 0; } /* Back button for changed-files modal - hidden on desktop */ .changed-files-back-button { display: none; } /* Changed-files loading spinner */ .changed-files-loading-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--text-muted); border-radius: 50%; animation: changed-files-spin 0.6s linear infinite; } @keyframes changed-files-spin { to { transform: rotate(360deg); } } /* Changed-files empty state */ .changed-files-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-sm); padding: var(--space-xl) var(--space-lg); color: var(--text-muted); font-size: 14px; text-align: center; } .changed-files-empty-icon { font-size: 24px; opacity: 0.6; } /* Changed-files error state */ .changed-files-error { display: flex; align-items: center; gap: var(--space-sm); } .changed-files-error-icon { flex-shrink: 0; } /* Renamed file label */ .changed-files-renamed { color: var(--text-muted); font-size: 12px; } /* Mobile responsive for changed-files modal */ @media (max-width: 768px) { .changed-files-modal .changed-files-layout { grid-template-columns: 1fr; grid-template-rows: 1fr; } /* Mobile two-state view: show only list or diff at a time */ .changed-files-sidebar.mobile { display: none; } .changed-files-sidebar.mobile.active { display: flex; flex: 1; flex-direction: column; border-right: none; border-bottom: none; max-height: none; overflow-y: auto; padding: 0; background: var(--surface); } .changed-files-sidebar.mobile.active .file-browser-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; } .changed-files-sidebar.mobile.active .gm-diff-loading, .changed-files-sidebar.mobile.active .changed-files-loading { margin: var(--space-lg); } .changed-files-sidebar.mobile.active .gm-diff-error, .changed-files-sidebar.mobile.active .changed-files-error { margin: var(--space-lg); } .changed-files-sidebar.mobile.active .file-browser-empty, .changed-files-sidebar.mobile.active .changed-files-empty { flex: 1; } /* Larger touch targets for file entries on mobile */ .changed-files-sidebar.mobile .changed-files-entry { padding: 10px var(--space-md); min-height: 36px; } /* Clearer active state on mobile */ .changed-files-sidebar.mobile .changed-files-entry.active { background: var(--card-hover); border-left: 3px solid var(--in-progress); } .changed-files-content.mobile { display: none; } .changed-files-content.mobile.active { display: flex; flex: 1; flex-direction: column; padding: var(--space-sm); overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--bg); } .changed-files-modal .file-browser-file-info { flex-wrap: wrap; gap: var(--space-sm); } .changed-files-modal .file-browser-file-info strong { font-size: 12px; word-break: break-all; } /* Diff viewer fills available space on mobile */ .changed-files-content.mobile.active .changed-files-diff-section { flex: 1; display: flex; flex-direction: column; min-height: 0; } .changed-files-content.mobile.active .gm-diff-viewer { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; } .changed-files-content.mobile.active .gm-diff-patch { flex: 1; max-height: none; overflow: auto; -webkit-overflow-scrolling: touch; } /* Back button styles for mobile */ .changed-files-back-button { display: inline-flex; align-items: center; gap: var(--space-sm); padding: 6px 12px; background: transparent; border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); font-size: 13px; cursor: pointer; transition: background var(--transition-fast); margin-right: 8px; } .changed-files-back-button:hover { background: var(--card-hover); } .changed-files-back-button:focus { outline: none; box-shadow: var(--focus-ring); } .detail-section--spec { flex: 1; min-height: 0; } } .detail-section h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: var(--space-sm); } .detail-prompt { padding: 14px; font-size: 13px; line-height: 1.6; font-family: var(--font-mono); white-space: pre-wrap; word-break: break-word; color: var(--text-muted); } .spec-loading { padding: 14px; font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; } .spec-loading::before { content: ""; display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--text-secondary); border-radius: 50%; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* === Markdown Prose === */ .markdown-body { font-size: 13px; line-height: 1.6; color: var(--text); word-break: break-word; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 { color: var(--text); font-weight: 600; margin-top: 1.2em; margin-bottom: 0.5em; line-height: 1.3; } .markdown-body h1 { font-size: 1.4em; border-bottom: 1px solid var(--border); padding-bottom: 0.3em; } .markdown-body h2 { font-size: 1.2em; border-bottom: 1px solid var(--border); padding-bottom: 0.3em; } .markdown-body h3 { font-size: 1.05em; } .markdown-body h4 { font-size: 1em; color: var(--text-muted); } .markdown-body h1:first-child, .markdown-body h2:first-child, .markdown-body h3:first-child, .markdown-body h4:first-child { margin-top: 0; } .markdown-body p { margin: 0.6em 0; } .markdown-body ul, .markdown-body ol { padding-left: 1.6em; margin: 0.5em 0; } .markdown-body ul { list-style: disc; } .markdown-body ol { list-style: decimal; } .markdown-body li { margin: 0.25em 0; } .markdown-body li > ul, .markdown-body li > ol { margin: 0.15em 0; } .markdown-body code { background: var(--card); border-radius: var(--radius-sm); padding: 0.15em 0.4em; font-size: 0.9em; font-family: var(--font-mono); } .markdown-body pre { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-md); overflow-x: auto; margin: 0.6em 0; } .markdown-body pre > code { background: none; padding: 0; border-radius: 0; font-size: 0.85em; } .markdown-body a { color: var(--todo); text-decoration: none; } .markdown-body a:hover { text-decoration: underline; } .markdown-body blockquote { border-left: 3px solid var(--border); padding: 0.3em 0.8em; margin: 0.6em 0; color: var(--text-muted); } .markdown-body table { border-collapse: collapse; width: 100%; margin: 0.6em 0; font-size: 0.9em; } .markdown-body th, .markdown-body td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; } .markdown-body th { background: var(--card); font-weight: 600; } .markdown-body input[type="checkbox"] { margin-right: 0.4em; vertical-align: middle; accent-color: var(--todo); } .markdown-body hr { border: none; border-top: 1px solid var(--border); margin: 1em 0; } .markdown-body strong { color: var(--text); } .markdown-body em { font-style: italic; } .markdown-body img { max-width: 100%; border-radius: var(--radius); } .detail-deps { margin-top: var(--space-lg); } .detail-deps h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 6px; } .detail-dep-list { list-style: none; font-size: 13px; } .detail-dep-item { display: flex; align-items: center; padding: 4px 0; } .detail-dep-link { color: var(--todo); font-family: var(--font-mono); cursor: pointer; transition: text-decoration var(--transition-fast); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; } .detail-dep-link:hover { text-decoration: underline; } .detail-dep-link:focus { outline: 1px solid var(--todo); outline-offset: 2px; border-radius: 2px; } .detail-dep-id { font-family: var(--font-mono); font-weight: 500; flex-shrink: 0; } .detail-dep-label { color: var(--text-muted); font-family: var(--font-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .detail-agent-section { margin-top: var(--space-lg); } .detail-meta-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); } .detail-meta-label { display: inline-flex; align-items: center; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); } .detail-agent-actions { position: relative; display: inline-flex; align-items: center; } .detail-agent-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 9999px; background: var(--surface); color: var(--text); font-size: 12px; } .detail-agent-clear { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: none; border-radius: 50%; background: transparent; color: var(--text-dim); cursor: pointer; } .detail-agent-clear:hover { background: var(--card-hover); color: var(--text); } .detail-agent-actions > .agent-picker-dropdown { position: absolute; top: calc(100% + var(--space-xs)); right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-width: 240px; max-width: 320px; max-height: 240px; overflow-y: auto; z-index: 220; box-shadow: var(--shadow-lg); } .agent-picker-loading, .agent-picker-empty { padding: 10px 12px; font-size: 12px; color: var(--text-dim); } .agent-picker-item { width: 100%; display: flex; align-items: center; gap: var(--space-sm); padding: 6px 12px; font-size: 12px; color: var(--text); text-align: left; background: transparent; border: none; cursor: pointer; } .agent-picker-item:hover, .agent-picker-item.selected { background: var(--card-hover); } .agent-picker-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; } .agent-picker-role { font-family: var(--font-mono); color: var(--text-muted); flex-shrink: 0; } /* === Step Progress === */ .detail-step-progress { margin-top: var(--space-lg); } .detail-step-progress h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: var(--space-sm); } .step-progress-wrapper { display: flex; align-items: center; gap: var(--space-md); } .step-progress-bar { flex: 1; display: flex; gap: 2px; height: 8px; } .step-progress-segment { flex: 1; height: 100%; border-radius: 2px; transition: filter 0.15s ease, transform 0.15s ease; cursor: pointer; position: relative; } .step-progress-segment:hover { filter: brightness(1.2); transform: scaleY(1.1); } .step-progress-segment[data-tooltip]:hover::after { content: attr(data-tooltip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-xs) var(--space-sm); font-size: 11px; white-space: nowrap; z-index: 10; pointer-events: none; margin-bottom: var(--space-xs); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); } .step-progress-label { font-size: 11px; font-weight: 600; color: var(--text-muted); font-family: var(--font-mono); flex-shrink: 0; } .step-progress-empty { font-size: 13px; color: var(--text-dim); opacity: 0.7; } /* === Activity Timeline === */ .detail-activity { margin-top: 20px; } .detail-activity-list { display: flex; flex-direction: column; gap: 0; } .detail-log-entry { padding: 8px 0 8px 14px; border-left: 2px solid var(--border); position: relative; } .detail-log-entry::before { content: ""; position: absolute; left: -4px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); } .detail-log-entry:first-child::before { background: var(--todo); } .detail-log-header { display: flex; flex-direction: column; gap: 2px; } .detail-log-timestamp { font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); } .detail-log-action { font-size: 13px; color: var(--text-muted); line-height: 1.4; } .detail-log-outcome { margin-top: 6px; padding: var(--space-sm) var(--space-md); background: var(--bg); border-left: 3px solid var(--border); border-radius: 0 var(--radius) var(--radius) 0; font-size: 12px; line-height: 1.5; color: var(--text-muted); white-space: pre-wrap; word-break: break-word; } .detail-log-empty { font-size: 13px; color: var(--text-dim); padding: 12px 0; } /* === Toasts === */ .toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column-reverse; gap: var(--space-sm); } .toast { padding: 10px 16px; border-radius: var(--radius); font-size: 13px; color: #fff; animation: toast-in 0.25s ease-out; box-shadow: var(--shadow); } .toast-success { background: var(--cta-bg); } .toast-error { background: var(--color-error-dark); } .toast-info { background: var(--color-info); } @media (max-width: 768px) { .toast-container { bottom: calc(44px + env(safe-area-inset-bottom, 0px)); right: 8px; left: 8px; } .toast { width: 100%; font-size: 14px; } } @keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } } /* === Worktree Groups === */ .worktree-group { background: var(--surface); border-left: 3px solid var(--in-progress); border-radius: var(--radius); padding: var(--space-sm); margin-bottom: var(--space-sm); display: flex; flex-direction: column; gap: 6px; } .worktree-group-header { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); padding: 2px 4px; } .worktree-icon { font-size: 12px; line-height: 1; } .worktree-label { font-family: var(--font-mono); } /* Queued preview cards */ .card.queued { opacity: 0.55; border-style: dashed; cursor: default; } .card.queued:hover { cursor: default; } .card.queued:active { cursor: default; } .queued-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--todo); } /* === Card Inline Editing === */ /* Card in edit mode - highlighted border matching column theme */ .card.card-editing { border: 1px solid var(--todo); border-left: 3px solid var(--todo); background: var(--card); cursor: default; } .card.card-editing[data-column="triage"] { border-color: var(--triage); border-left-color: var(--triage); } .card.card-editing[data-column="todo"] { border-color: var(--todo); border-left-color: var(--todo); } /* Edit content container */ .card-editing-content { display: flex; flex-direction: column; gap: var(--space-sm); } /* Description textarea in edit mode - follows InlineCreateCard patterns */ .card-edit-desc-textarea { width: 100%; padding: 6px 8px; background: transparent; border: 1px solid transparent; color: var(--text); font-size: 13px; font-family: inherit; outline: none; resize: none; overflow: hidden; line-height: 1.4; min-height: 80px; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); } .card-edit-desc-textarea:focus { border-color: var(--todo); box-shadow: var(--focus-ring); border-radius: var(--radius); } .card-edit-desc-textarea::placeholder { color: var(--text-dim); } .card-edit-desc-textarea:disabled { opacity: 0.6; cursor: not-allowed; } /* Card header actions container - groups size badge and buttons on the right */ .card-header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; } /* Edit button - visible on hover */ .card-edit-btn { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; background: transparent; border: none; border-radius: var(--radius-sm); color: var(--text-muted); cursor: pointer; opacity: 0; transition: opacity 0.15s, background 0.15s, color 0.15s; } .card:hover .card-edit-btn { opacity: 1; } .card-edit-btn:hover { background: var(--border); color: var(--text); } .card-edit-btn:focus { opacity: 1; outline: 1px solid var(--todo); outline-offset: 1px; } /* Delete button - visible on hover for triage column */ .card-delete-btn { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; background: transparent; border: none; border-radius: var(--radius-sm); color: var(--text-secondary); cursor: pointer; opacity: 0; transition: opacity 0.15s, color 0.15s; } .card:hover .card-delete-btn { opacity: 1; } .card-delete-btn:hover { color: var(--color-error, #f85149); } .card-delete-btn:focus { outline: 2px solid var(--accent); outline-offset: 1px; opacity: 1; } /* Archive/Unarchive buttons */ .card-archive-btn, .card-unarchive-btn { display: inline-flex; align-items: center; justify-content: center; padding: 2px 8px; margin-left: 8px; font-size: 11px; font-weight: 500; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); cursor: pointer; opacity: 0; transition: opacity 0.15s, background 0.15s, color 0.15s, border-color 0.15s; } .card:hover .card-archive-btn, .card:hover .card-unarchive-btn { opacity: 1; } .card-archive-btn:hover, .card-unarchive-btn:hover { background: var(--card-hover); color: var(--text); border-color: var(--border-hover); } .card-archive-btn:focus, .card-unarchive-btn:focus { opacity: 1; outline: 1px solid var(--todo); outline-offset: 1px; } /* Send Back button and dropdown */ .card-send-back { position: relative; } .card-send-back-btn { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px; margin-left: 8px; font-size: 11px; font-weight: 500; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); cursor: pointer; opacity: 0; transition: opacity 0.15s, background 0.15s, color 0.15s, border-color 0.15s; } .card:hover .card-send-back-btn { opacity: 1; } .card-send-back-btn:hover { background: var(--card-hover); color: var(--text); border-color: var(--border-hover); } .card-send-back-btn:focus { opacity: 1; outline: 1px solid var(--todo); outline-offset: 1px; } .card-send-back-menu { position: absolute; top: calc(100% + 4px); right: 0; z-index: 50; min-width: 100px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); overflow: hidden; } .card-send-back-menu-item { display: block; width: 100%; padding: 6px 12px; font-size: 12px; font-weight: 400; color: var(--text); background: transparent; border: none; cursor: pointer; text-align: left; transition: background 0.1s; } .card-send-back-menu-item:hover { background: var(--surface-hover, rgba(0, 0, 0, 0.04)); } .card-send-back-menu-item:focus { outline: none; background: var(--surface-hover, rgba(0, 0, 0, 0.04)); } /* Loading state during save */ .card-edit-loading { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-xs); font-size: 11px; color: var(--text-muted); } .card-edit-loading-spinner { width: 12px; height: 12px; border: 2px solid var(--border); border-top-color: var(--todo); border-radius: 50%; animation: spin 1s linear infinite; } .card-edit-loading-text { font-size: 11px; color: var(--text-muted); } /* === Modal Edit Mode Styles === */ .modal-header-actions { display: flex; align-items: center; gap: var(--space-sm); } .modal-edit-btn { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; background: transparent; border: none; border-radius: var(--radius-sm); color: var(--text-muted); cursor: pointer; transition: all 0.15s; } .modal-edit-btn:hover { background: var(--border); color: var(--text); } .modal-edit-btn:focus { outline: 1px solid var(--todo); outline-offset: 1px; } .modal-edit-form { display: flex; flex-direction: column; gap: var(--space-md); } .modal-edit-form .form-group textarea { min-height: 160px; } .modal-edit-input { width: 100%; padding: var(--space-sm) var(--space-md); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); font-size: 14px; font-weight: 500; font-family: inherit; outline: none; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); } .modal-edit-input:focus { border-color: var(--todo); box-shadow: var(--focus-ring); } .modal-edit-input::placeholder { color: var(--text-dim); font-weight: 400; } .modal-edit-input:disabled { opacity: 0.6; cursor: not-allowed; } .modal-edit-textarea { width: 100%; padding: var(--space-sm) var(--space-md); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); font-size: 14px; font-family: inherit; outline: none; resize: vertical; min-height: 80px; line-height: 1.5; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); } .modal-edit-textarea:focus { border-color: var(--todo); box-shadow: var(--focus-ring); } .modal-edit-textarea::placeholder { color: var(--text-dim); } .modal-edit-textarea:disabled { opacity: 0.6; cursor: not-allowed; } /* Edit-mode hint text now lives in modal-actions footer */ .modal-edit-hint { font-size: 12px; color: var(--text-dim); } .modal-edit-hint kbd { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px 6px; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); } /* Card saving state */ .card.card-saving { opacity: 0.7; } /* === Inline Create Card === */ .inline-create-card { background: var(--card); border: 1px solid var(--todo); border-left: 3px solid var(--todo); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: var(--space-sm); } .inline-create-input { width: 100%; padding: 6px 8px; background: transparent; border: none; color: var(--text); font-size: 13px; font-family: inherit; outline: none; resize: none; overflow: hidden; line-height: 1.4; } .inline-create-input:focus { border-bottom: 1px solid var(--todo); box-shadow: 0 1px 0 0 var(--todo); } .inline-create-input::placeholder { color: var(--text-dim); } /* Inline Create Card textarea wrap for expand button positioning */ .inline-create-textarea-wrap { position: relative; flex: 1; min-width: 0; width: 100%; } /* Inline Create Card expand button - bottom-right of textarea */ .inline-create-expand-btn { position: absolute; bottom: 6px; right: 32px; padding: 4px; opacity: 0.6; transition: opacity var(--transition-fast); z-index: 1; } .inline-create-expand-btn:hover { opacity: 1; } /* Inline Create Card fullscreen mode */ .inline-create-input--fullscreen { flex: 1; padding-right: 70px; min-height: unset; resize: none; border-radius: var(--radius-md); font-size: 15px; line-height: 1.6; } /* Inline Create Card Toggle Button */ .inline-create-toggle { display: inline-flex; align-items: center; justify-content: center; padding: var(--space-xs); height: 28px; width: 28px; flex-shrink: 0; background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--text-muted); cursor: pointer; transition: all var(--transition-fast); } .inline-create-toggle:hover { background: var(--card-hover); border-color: var(--border); color: var(--text); } .inline-create-toggle:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; } /* Inline Create Card Main Row */ .inline-create-main-row { display: flex; align-items: flex-start; gap: var(--space-sm); } .inline-create-main-row .inline-create-input { flex: 1; min-width: 0; } /* Collapsed state */ .inline-create-card--collapsed { padding: 8px 10px; } .inline-create-card--collapsed .inline-create-input { min-height: 28px; } /* Expanded state */ .inline-create-card--expanded { padding: 10px 12px; } .inline-create-card--expanded .inline-create-input { min-height: 32px; } .inline-create-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-sm); flex-wrap: wrap; } .inline-create-controls { display: flex; align-items: center; gap: var(--space-sm); flex: 1 1 auto; flex-wrap: wrap; min-width: 0; } .inline-create-actions { display: flex; align-items: center; gap: var(--space-sm); margin-left: auto; } .inline-create-hint { font-size: 11px; color: var(--text-dim); margin-left: auto; } .inline-create-previews { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-md); max-height: 120px; overflow-y: auto; padding: 2px; } .inline-create-preview { position: relative; width: 48px; height: 48px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--card); flex-shrink: 0; } .inline-create-preview img { width: 100%; height: 100%; object-fit: cover; display: block; } .inline-create-preview-remove { position: absolute; top: 2px; right: 2px; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.6); color: #fff; border: none; border-radius: 50%; width: 16px; height: 16px; cursor: pointer; font-size: 10px; line-height: 1; padding: 0; transition: background 0.15s ease; } .inline-create-preview-remove:hover { background: rgba(248, 81, 73, 0.9); } .dep-trigger-wrap { position: relative; } .agent-trigger-wrap { position: relative; } .inline-create-model-wrap { position: relative; } .dep-trigger, .inline-create-model-trigger { font-size: 12px; padding: 3px 8px; } .dep-dropdown { position: absolute; top: 100%; left: 0; margin-top: var(--space-xs); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-width: 280px; max-width: 400px; max-height: 320px; overflow-y: auto; z-index: 200; box-shadow: var(--shadow-lg); } /* Portal-rendered dependency dropdown - uses fixed positioning from JS */ .dep-dropdown--portal { position: fixed !important; top: auto; left: auto; margin-top: 0; } /* Portal-rendered agent picker dropdown - uses fixed positioning from JS */ .agent-picker-dropdown--portal { position: fixed !important; top: auto; left: auto; margin-top: 0; z-index: 201; } .dep-dropdown-search-header { position: sticky; top: 0; padding: 6px 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); background: var(--surface); border-bottom: 1px solid var(--border); z-index: 1; } .dep-dropdown-search { position: sticky; top: 0; width: 100%; box-sizing: border-box; padding: 6px 12px; font-size: 12px; font-family: inherit; background: var(--surface); border: none; border-bottom: 1px solid var(--border); color: var(--text); outline: none; z-index: 1; } .dep-dropdown-search::placeholder { color: var(--text-dim); } .dep-dropdown-search:focus { border-bottom-color: var(--accent, #58a6ff); } .dep-dropdown-empty { padding: 10px 12px; font-size: 12px; color: var(--text-dim); } .dep-dropdown-item { display: flex; align-items: center; gap: var(--space-sm); padding: 6px 12px; font-size: 12px; cursor: pointer; transition: background 0.1s; } .dep-dropdown-item:hover { background: var(--card-hover); } .dep-dropdown-item.selected { background: rgba(88, 166, 255, 0.15); } .dep-dropdown-id { font-family: var(--font-mono); font-weight: 600; color: var(--text-muted); flex-shrink: 0; } .dep-dropdown-title { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* === AI Refine Menu === */ .refine-trigger-wrap { position: relative; } .refine-menu { position: absolute; top: 100%; left: 0; margin-top: var(--space-xs); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); min-width: 200px; max-width: 280px; z-index: 100; overflow: hidden; } .refine-menu--portal { position: fixed; z-index: 1000; min-width: 200px; max-width: calc(100vw - 16px); margin-top: 0; } .refine-button { display: inline-flex; align-items: center; gap: var(--space-xs); } .refine-button--loading { opacity: 0.7; cursor: not-allowed; } .refine-menu-item { padding: 10px 14px; cursor: pointer; transition: background 0.1s ease; border-bottom: 1px solid var(--border); } .refine-menu-item:last-child { border-bottom: none; } .refine-menu-item:hover { background: var(--card-hover); } .refine-menu-item-title { font-weight: 500; font-size: 13px; color: var(--text); margin-bottom: 2px; } .refine-menu-item-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; } /* NewTaskModal description with refine button */ .description-label-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); } .description-auto-save-status { font-size: 11px; color: var(--color-success); opacity: 0; text-transform: none; letter-spacing: 0; transition: opacity var(--transition-fast); } .description-auto-save-status.is-visible { opacity: 1; } .description-with-refine { position: relative; } /* Description expand button positioning. The expand button sits in the top-right corner of the description textarea. When the Refine button is visible (non-empty description), the expand button is offset left (right: 40px) to avoid overlap. When Refine is absent (empty description), the expand button sits flush in the corner (right: 8px). */ .description-expand-btn { position: absolute; top: 8px; right: 8px; /* Default: flush placement when Refine is absent */ } /* Offset placement when Refine button is visible (non-empty description) */ .description-expand-btn--offset { right: 40px; } .description-fullscreen-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-md); font-size: 13px; font-weight: 600; color: var(--text-muted); } .description--fullscreen { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10000; background: var(--surface); padding: var(--space-lg); display: flex; flex-direction: column; } .description--fullscreen textarea { flex: 1; padding-right: 70px; min-height: unset; resize: none; border-radius: var(--radius-md); font-size: 15px; line-height: 1.6; } .description--fullscreen .refine-button { position: fixed; top: 8px; right: 8px; z-index: 10001; } .description--fullscreen .description-expand-btn { position: fixed; top: 8px; right: 40px; z-index: 10001; } /* AI-assisted description actions — sits directly below description in TaskForm */ .task-form-description-actions { display: flex; align-items: center; gap: 6px; margin-top: 4px; margin-bottom: 4px; flex-wrap: wrap; } .description-with-refine .refine-button { position: absolute; top: 8px; right: 8px; } .description-with-refine textarea { padding-right: 70px; /* Make room for the refine button */ } .refine-menu--modal { right: 0; left: auto; top: calc(100% + 4px); } .inline-create-model-dropdown { position: absolute; top: 100%; left: 0; margin-top: var(--space-xs); width: min(320px, calc(100vw - 32px)); max-width: calc(100vw - 32px); padding: var(--space-md); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; z-index: 500; box-shadow: var(--shadow); } .inline-create-model-row { display: flex; flex-direction: column; gap: 6px; } .inline-create-model-label { font-size: 12px; font-weight: 600; color: var(--text-muted); } .inline-create-model-select { width: 100%; min-width: 0; padding: 7px 10px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 12px; font-family: inherit; outline: none; } .inline-create-model-select:focus { border-color: var(--todo); box-shadow: var(--focus-ring); } .inline-create-model-empty { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); font-size: 12px; color: var(--text-dim); } .inline-create-model-row .model-badge { width: fit-content; } @media (max-width: 640px) { .inline-create-actions { width: 100%; justify-content: space-between; margin-left: 0; } .inline-create-hint { margin-left: 0; } .inline-create-model-dropdown { left: 0; right: auto; width: min(360px, calc(100vw - 48px)); max-width: calc(100vw - 48px); } } /* === Empty state === */ .empty-column { display: flex; align-items: center; justify-content: center; height: 80px; font-size: 12px; color: var(--text-dim); border: 1px dashed var(--border); border-radius: var(--radius); margin: 4px; } /* Auto-merge toggle */ .auto-merge-toggle { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; margin-left: auto; } .auto-merge-toggle input { display: none; } .toggle-slider { position: relative; width: 28px; height: 16px; background: var(--border); border-radius: var(--radius-md); transition: background var(--transition-normal); flex-shrink: 0; } .toggle-slider::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; background: var(--card); border-radius: 50%; transition: transform var(--transition-normal); } .auto-merge-toggle input:checked + .toggle-slider { background: var(--in-review); } .auto-merge-toggle input:checked + .toggle-slider::after { transform: translateX(12px); } .toggle-label { font-size: 11px; color: var(--text-muted); white-space: nowrap; } /* === Detail Tabs === */ .detail-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: var(--space-md); } .detail-tab { padding: var(--space-sm) var(--space-lg); background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-muted); cursor: pointer; font-size: 14px; font-weight: 400; font-family: inherit; transition: color var(--transition-fast), border-color var(--transition-fast); } .detail-tab:hover { color: var(--text); } .detail-tab:focus-visible { box-shadow: var(--focus-ring-strong); outline: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0; } .detail-tab-active { border-bottom-color: var(--in-progress); color: var(--text); font-weight: 600; } /* === Log Subview Toggle === */ .log-subview-toggle { display: inline-flex; gap: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 2px; margin-bottom: var(--space-md); } .log-subview-btn { padding: 4px 12px; background: none; border: none; border-radius: var(--radius-sm); color: var(--text-muted); cursor: pointer; font-size: 12px; font-weight: 500; font-family: inherit; transition: color var(--transition-fast), background var(--transition-fast); } .log-subview-btn:hover { color: var(--text); background: var(--card-hover); } .log-subview-btn-active { color: var(--text); background: var(--surface); box-shadow: var(--shadow-sm); } @media (display-mode: standalone) { #root { /* FN-1626: additive bottom spacing = safe-area inset + 8px home bar gap */ padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--standalone-bottom-gap)); } /* PWA standalone mode: 8px extra breathing room for iOS home indicator */ --standalone-bottom-gap: 8px; } /* === Mobile Responsive Overrides === On narrow viewports (≤768px) the board switches from a 5-column grid to a horizontally-scrollable flex layout so only one scrollbar appears. Each column gets a fixed min-width and snap-scrolling for a polished swipe feel. The modal also goes full-screen with reduced spacing. */ @media (max-width: 768px) { /* Prevent iOS Safari auto-zoom on focus: all inputs must be >= 16px */ input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], input[type="tel"], input:not([type]), select, textarea { font-size: 16px; } /* Prevent ancestor elements from producing a second horizontal scrollbar */ html, body { overflow: hidden; } #root { overflow: hidden; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); } /* Prevent horizontal overflow from wide content */ * { max-width: 100vw; } pre, code, .code-block { overflow-x: auto; max-width: 100%; word-break: break-all; word-break: break-word; } img, svg { max-width: 100%; } img { height: auto; } table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; } /* Global touch target enforcement on mobile */ .btn:not(.btn-icon):not(.btn-badge):not(.btn-sm):not(.btn--sm) { min-height: 36px; } .btn-icon { min-width: 36px; min-height: 36px; } /* Column-header action buttons (e.g. archive) stay compact */ .column-header .btn-icon { min-width: 28px; min-height: 28px; } input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], select, textarea { min-height: 36px; } .detail-tab { min-height: 36px; } /* Dropdown items and overflow menu actions */ .dep-dropdown-item, .mobile-overflow-item, .mobile-overflow-split-toggle, .list-column-dropdown-item { min-height: 36px; } /* Small tappable controls — adequate touch sizing for mobile */ .view-toggle-btn, .header-search-clear, .inline-create-toggle, .quick-entry-toggle, .modal-edit-btn, .gm-icon-btn, .activity-log-clear, .terminal-tab-close, .workflow-results-edit-toggle, .agent-tree__toggle, .quick-chat-panel-input button { min-width: 36px; min-height: 36px; } /* Board: flex layout with single horizontal scroll + snap */ .board { display: flex; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; scroll-padding-inline: calc(50% - 140px); scroll-behavior: smooth; scrollbar-width: none; padding: var(--space-md); padding-bottom: var(--space-md); gap: var(--space-md); height: 100%; } .board::-webkit-scrollbar { display: none; } .board > .column { width: 280px; min-width: 280px; flex-shrink: 0; scroll-snap-align: center; } /* Column header: natural height from padding and font is sufficient */ /* Column count badge: slightly wider on mobile for tapping */ .column-count { min-width: 28px; } /* Reduce header padding to reclaim horizontal space */ .header { padding: var(--space-md); padding-left: max(var(--space-md), env(safe-area-inset-left, 0px)); padding-right: max(var(--space-md), env(safe-area-inset-right, 0px)); padding-top: max(var(--space-md), env(safe-area-inset-top, 0px)); } /* Hide project selector on mobile (belt-and-suspenders with conditional rendering) */ .project-selector { display: none; } /* Mobile header: collapsible search and overflow menu */ .mobile-search-trigger { display: flex; align-items: center; justify-content: center; } /* Mobile search expanded - inside header-floating-search container */ .mobile-search-expanded { width: 100%; } /* Mobile: floating search must respect safe-area-inset to stay on-screen */ .header-floating-search { padding-left: max(var(--space-md), env(safe-area-inset-left, 0px)); padding-right: max(var(--space-md), env(safe-area-inset-right, 0px)); } /* Mobile view toggle in header — compact 2-button board/list switcher */ .header-actions > .view-toggle { height: 32px; gap: 2px; padding: 2px; } .header-actions > .view-toggle .view-toggle-btn { width: 28px; height: 28px; min-width: unset; min-height: unset; } /* Modal: full-screen on mobile */ .modal-overlay { padding-top: 0; align-items: stretch; } .modal, .modal-lg { width: 100%; max-width: 100%; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; border-radius: 0; border: none; padding-bottom: env(safe-area-inset-bottom, 0px); } .workflow-step-manager-modal { width: 100%; max-width: 100%; max-height: 100vh; max-height: 100dvh; border-radius: 0; } .detail-body { padding: 14px; overflow-x: hidden; overflow-y: auto; } .detail-title { font-size: 16px; } .modal-actions { flex-wrap: wrap; gap: var(--space-sm); padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)); } .modal-actions .btn { min-width: 0; } /* Mobile dropdown menus — position above action bar, constrained to viewport */ .detail-actions-menu, .detail-move-menu { bottom: calc(100% + 4px); max-width: calc(100vw - 28px); max-height: calc(100dvh - 120px); overflow-y: auto; -webkit-overflow-scrolling: touch; } .modal-header { padding: 12px 14px; } .detail-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .detail-tabs::-webkit-scrollbar { display: none; } .detail-tab { padding: var(--space-sm) var(--space-md); font-size: 13px; flex-shrink: 0; } /* Settings modal: stack sidebar above content for mobile */ .settings-layout { flex-direction: column; min-height: 0; } .settings-sidebar { width: auto; min-width: 0; flex-direction: row; align-items: center; border-right: none; border-bottom: 1px solid var(--border); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 6px 8px; gap: 2px; } .settings-sidebar::-webkit-scrollbar { display: none; } .settings-nav-item { display: flex; align-items: center; justify-content: center; gap: 4px; border-left: none; border-bottom: 2px solid transparent; border-radius: var(--radius) var(--radius) 0 0; padding: 6px 12px; white-space: nowrap; } .settings-nav-item:hover { border-left-color: transparent; border-bottom-color: var(--border); } .settings-nav-item.active { border-left-color: transparent; border-bottom-color: var(--todo); } /* Hide group headers on mobile - they don't fit well in horizontal scroll row */ .settings-group-header { display: none; } .settings-scope-icon { margin-right: 0; } .settings-content { flex: 1; min-height: 0; overflow-y: auto; } .settings-content input, .settings-content select, .settings-content textarea { font-size: 16px; } .settings-section-heading { padding: 12px 14px 10px; margin-right: 14px; } .form-group { padding: 0 14px; } .settings-content .btn, .auth-provider-row .btn { min-height: 36px; } .auth-provider-row { flex-wrap: wrap; padding: 12px 14px; gap: var(--space-sm); } .auth-section-hint { margin: 0 14px 12px; padding: 10px 14px; } .auth-provider-group { margin-bottom: 12px; } .auth-group-label { padding: 0 14px; } .auth-provider-card { margin: 0 14px 8px; } .auth-provider-header { flex-wrap: wrap; padding: 10px 14px; gap: 10px; } .auth-provider-info { width: 100%; flex-basis: 100%; } .auth-apikey-section { width: 100%; flex-basis: 100%; align-items: stretch; } .auth-apikey-input-row { flex-wrap: wrap; } .auth-apikey-input { flex: 1; min-width: 120px; width: auto; } .auth-apikey-input-row .btn { flex-shrink: 0; } .auth-hint { padding: 12px 14px 0; } .backup-list ul { max-height: 220px; overflow-y: auto; -webkit-overflow-scrolling: touch; } /* Card edit button: always visible on mobile (no hover) */ .card-edit-btn { opacity: 1; width: 32px; height: 32px; margin-right: -8px; margin-top: -8px; margin-bottom: -8px; border-radius: var(--radius-md); } .card-edit-btn svg { width: 16px; height: 16px; } /* Card delete button: always visible on mobile (no hover) */ .card-delete-btn { opacity: 1; width: 32px; height: 32px; margin-right: -8px; margin-top: -8px; margin-bottom: -8px; border-radius: var(--radius-md); } .card-delete-btn svg { width: 16px; height: 16px; } /* Git Manager remote edit buttons: always visible on mobile (no hover) */ .gm-remote-edit-btn { opacity: 1; width: 36px; height: 36px; margin-right: -8px; margin-top: -8px; margin-bottom: -8px; border-radius: var(--radius-md); } .gm-remote-edit-btn svg { width: 16px; height: 16px; } /* Card: always show action buttons on mobile (no hover state) */ .card-header-actions { gap: 4px; flex-shrink: 0; } .card-archive-btn, .card-unarchive-btn { opacity: 1; padding: 4px 10px; } /* Card: compact progress bar on narrow cards */ .card-progress { gap: var(--space-xs); } .card-progress-label { font-size: 10px; min-width: 30px; } .card-steps-toggle { padding: 4px 0; } /* Card: smaller status badges for 280px width */ .card-status-badge { font-size: 9px; padding: 1px 6px; } .card-mission-badge { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* Card: wrap dependency badges */ .card-dep-list { flex-wrap: wrap; } /* Inline create: fit within 280px column */ .inline-create-card { max-width: 100%; box-sizing: border-box; } .inline-create-main-row { gap: var(--space-xs); } .inline-create-input { font-size: 16px; } /* Inline create: mobile-friendly touch sizing */ .inline-create-toggle { min-width: 36px; min-height: 36px; flex-shrink: 0; } /* Inline create: wrap footer controls at 280px */ .inline-create-controls { flex-wrap: wrap; gap: var(--space-xs); } .inline-create-controls .btn { min-height: 36px; font-size: 12px; } /* Inline create: constrain dependency dropdown to card width */ .dep-dropdown { left: 0; right: 0; min-width: 0; width: 100%; max-width: 100%; max-height: 200px; } /* Model combobox dropdown: mobile-friendly sizing */ .model-combobox-dropdown { max-height: 50vh; width: min(360px, calc(100vw - 32px)); } .model-combobox-search { font-size: 16px; } .model-combobox-option { min-height: 36px; } /* Task detail modal: prevent header clipping + full-screen refine flow */ .detail-title-row { flex-wrap: wrap; gap: var(--space-xs); } .modal-header-actions { flex-shrink: 0; } .detail-refine-overlay { align-items: stretch; justify-content: stretch; } .detail-refine-modal { width: 100%; max-width: 100%; max-height: 100dvh; border-radius: 0; border: none; } .detail-refine-textarea { font-size: 16px; } .modal-edit-form .form-group { padding: 0; } /* New task + task form: stacked mobile fields and bounded popovers */ .new-task-modal { display: flex; flex-direction: column; } .new-task-modal .modal-body { max-height: unset; overflow-y: auto; flex: 1; min-height: 0; padding: 14px 0; } .new-task-modal .form-group { padding: 0 14px; } .task-form .dep-dropdown { left: 0; right: 0; max-width: 100%; } .model-select-row { flex-direction: column; align-items: stretch; gap: var(--space-xs); } .model-select-label { width: auto; text-align: left; } .refine-menu--modal { left: 14px; right: 14px; } .task-form-description-actions { width: 100%; flex-wrap: wrap; gap: var(--space-xs); } .task-form-more-options-toggle { margin: 0 14px var(--space-sm); width: calc(100% - 28px); } .task-form-more-options { margin-left: 0; padding-left: 0; border-left: none; } .task-form .checkbox-label { flex-wrap: wrap; } .task-form .checkbox-label > div { flex: 1; min-width: 0; } /* Settings modal: keep model preset rows stackable on narrow screens */ .settings-preset-list { display: flex; flex-direction: column; gap: var(--space-sm); } /* Git manager: align breakpoint behavior with global 768px mobile modal rules */ .gm-layout { flex-direction: column; } .gm-sidebar { flex-direction: row; width: 100%; min-width: unset; border-right: none; border-bottom: 1px solid var(--border); overflow-x: auto; -webkit-overflow-scrolling: touch; padding: var(--space-xs) var(--space-sm); gap: var(--space-xs); } .gm-nav-item { border-left: none; border-bottom: 2px solid transparent; text-align: center; justify-content: center; min-height: 36px; } .gm-nav-item.active { border-left-color: transparent; border-bottom-color: var(--todo); } .gm-content { min-height: 200px; padding: var(--space-md); padding-bottom: max(var(--space-md), env(safe-area-inset-bottom, 0px)); } .gm-status-grid { grid-template-columns: 1fr; } } /* === Tablet Responsive Tier (769px–1024px) === */ /* On tablet-width screens the header uses a compact layout: view toggle and engine controls stay inline while lower-priority actions move into the overflow menu. */ @media (min-width: 769px) and (max-width: 1024px) { /* Reduce header padding slightly to reclaim horizontal space */ .header { padding: var(--space-md) var(--space-lg); } /* Hide project selector on tablet (controlled by React rendering too) */ .project-selector { display: none; } /* Compact search: narrower than desktop */ .header-search { max-width: 200px; min-width: 120px; } } /* === GitHub Import Modal === Note: Some hardcoded colors below (e.g. #238636, #2ea043, #f0883e, #1f6feb) are intentional GitHub brand colors and should NOT be replaced with design tokens. */ /* Compact Toolbar Layout */ .github-import-toolbar { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md) var(--space-lg); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); } .github-import-toolbar__zone { display: flex; align-items: center; } .github-import-toolbar__zone--remote { flex: 0 0 auto; min-width: 140px; } .github-import-toolbar__zone--filter { flex: 1 1 auto; min-width: 0; } .github-import-toolbar__zone--filter input { width: 100%; min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); padding: var(--space-sm) var(--space-md); font-size: 13px; } .github-import-toolbar__zone--filter input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.2); outline: none; } .github-import-toolbar__zone--filter input:disabled { opacity: 0.5; cursor: not-allowed; } .github-import-toolbar__zone--filter input::placeholder { color: var(--text-dim); } .github-import-toolbar__zone--action { flex: 0 0 auto; } .github-import-toolbar__loading { display: flex; align-items: center; gap: var(--space-sm); color: var(--text-muted); font-size: 13px; } .github-import-toolbar__no-remote { color: var(--text-muted); font-size: 13px; font-style: italic; } /* Remote pill for single remote */ .github-import-remote-pill { display: flex; flex-direction: column; gap: 2px; } .github-import-remote-pill__name { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); } .github-import-remote-pill__repo { font-size: 13px; font-weight: 500; color: var(--text); } /* Remote select dropdown */ .github-import-remote-select select { min-width: 180px; padding: var(--space-sm) var(--space-md); font-size: 13px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); } .github-import-remote-select select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.2); } /* Load button */ .github-import-load-button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); min-height: 36px; padding: var(--space-sm) var(--space-md); } .github-import-load-button span { font-size: 13px; } /* Two-pane layout */ .github-import-workspace { display: flex; gap: var(--space-lg); min-height: 0; flex: 1; } .github-import-list-pane, .github-import-preview-pane { display: flex; flex-direction: column; min-height: 0; } .github-import-list-pane { flex: 0 0 clamp(280px, 40%, 400px); border-right: 1px solid var(--border); padding-right: var(--space-lg); } .github-import-preview-pane { flex: 1; min-width: 0; } .github-import-pane-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding-bottom: var(--space-sm); margin-bottom: var(--space-sm); border-bottom: 1px solid var(--border); } .github-import-pane-header h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: var(--text); } .github-import-pane-content { flex: 1; min-height: 0; overflow-y: auto; } /* Wider modal for two-pane layout */ .github-import-modal { width: min(900px, calc(100vw - 32px)); max-height: min(800px, calc(100vh - 64px)); } .github-import-modal__header { align-items: flex-start; } .github-import-modal__subtitle { margin-top: var(--space-xs); color: var(--text-muted); font-size: 13px; line-height: 1.5; } .github-import-modal__body { display: flex; flex-direction: column; gap: var(--space-md); padding: var(--space-lg) var(--space-xl); overflow-y: auto; min-height: 0; } .github-import-modal__actions { align-items: center; } /* Tab styles for GitHub Import Modal */ .github-import-tabs { display: flex; gap: var(--space-xs); padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--border); background: var(--surface); } .github-import-tab { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-sm) var(--space-md); border: 1px solid transparent; border-radius: var(--radius-md); background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s ease; } .github-import-tab:hover:not(:disabled) { background: var(--surface-hover); color: var(--text); } .github-import-tab.active { background: var(--card); border-color: var(--border); color: var(--text); } .github-import-tab:disabled { opacity: 0.5; cursor: not-allowed; } .github-import-filter-hint { color: var(--text-muted); font-size: 13px; font-style: italic; } .pull-branch-info { display: block; margin-top: 2px; color: var(--text-muted); font-size: 12px; font-family: var(--font-mono, monospace); } .preview-branch { margin-bottom: var(--space-sm); padding: var(--space-sm); background: var(--surface); border-radius: var(--radius-sm); font-size: 12px; font-family: var(--font-mono, monospace); } .preview-branch strong { color: var(--text-muted); font-weight: 500; } /* Legacy section styles - kept for compatibility */ .github-import-section { display: flex; flex-direction: column; gap: var(--space-md); padding: var(--space-lg); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); } .github-import-section__header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); } .github-import-section__header h4 { font-size: 14px; font-weight: 600; letter-spacing: 0.01em; } .github-import-section__helper { margin-top: var(--space-xs); color: var(--text-muted); font-size: 13px; line-height: 1.5; } .github-import-repository-pill { min-width: 180px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); text-align: right; } .github-import-repository-pill__label { display: block; color: var(--text-muted); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; } .github-import-repository-pill__value { display: block; margin-top: 2px; color: var(--text); font-size: 13px; font-weight: 500; word-break: break-word; } .github-import-controls-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 220px); gap: var(--space-md); } .github-import-form-group { margin-top: 0; padding: 0; } .github-import-form-group:last-of-type { margin-bottom: 0; } .github-import-form-group--remote { grid-column: 1 / -1; } .github-import-form-group--action { display: flex; flex-direction: column; } .github-import-remote-card { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-md); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); } .github-import-remote-card__eyebrow { color: var(--text-muted); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; } .github-import-remote-card__title { margin-top: 2px; font-size: 14px; font-weight: 600; } .github-import-remote-card__title span { color: var(--text-muted); font-weight: 500; } .github-import-badge { display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px; border: 1px solid var(--color-success); border-radius: var(--radius-lg); color: var(--color-success); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; } .github-import-command { display: block; padding: var(--space-sm) var(--space-md); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); font-family: var(--font-mono); font-size: 12px; line-height: 1.5; overflow-x: auto; } .form-error { margin: var(--space-md) 0; padding: var(--space-sm) var(--space-md); background: color-mix(in srgb, var(--color-error) 10%, transparent); border: 1px solid var(--color-error); border-radius: var(--radius-md); color: var(--color-error); font-size: 13px; line-height: 1.45; } .github-import-banner { margin: 0; } .github-import-section--results, .github-import-section--preview { min-height: 100%; } .github-import-results-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-sm); color: var(--text-muted); font-size: 12px; } .github-import-results-meta span { padding: var(--space-xs) var(--space-sm); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); } .github-import-state { display: flex; align-items: flex-start; gap: var(--space-md); padding: var(--space-md); border: 1px dashed var(--border); border-radius: var(--radius-md); background: var(--surface); } .github-import-state strong { display: block; font-size: 13px; font-weight: 600; } .github-import-state span { display: block; margin-top: 2px; color: var(--text-muted); font-size: 13px; line-height: 1.5; } .github-import-state--loading { border-style: solid; } .github-import-state--warning { border-style: solid; } .github-import-state--error { border-style: solid; border-color: var(--color-error); } .github-import-state--error strong { color: var(--color-error); } .github-import-state--empty, .github-import-state--idle { border-color: var(--border); } .issues-list { display: flex; flex-direction: column; max-height: none; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); } .issue-item { display: flex; align-items: flex-start; gap: var(--space-md); padding: var(--space-md); border-bottom: 1px solid var(--border); cursor: pointer; transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast); } .issue-item:last-child { border-bottom: none; } .issue-item input[type="radio"] { margin-top: 2px; flex-shrink: 0; accent-color: var(--in-progress); } .issue-item.imported input[type="radio"] { opacity: 0.5; cursor: not-allowed; } .issue-item:hover:not(.imported) { background: var(--card-hover); } .issue-item.selected { background: rgba(var(--in-progress-rgb), 0.12); box-shadow: inset 0 0 0 1px rgba(var(--in-progress-rgb), 0.35); } .issue-item.imported { opacity: 0.65; cursor: not-allowed; } .issue-main { flex: 1; min-width: 0; } .issue-heading-row { display: flex; align-items: baseline; gap: var(--space-sm); min-width: 0; } .issue-number { color: var(--text-muted); font-size: 12px; font-weight: 600; flex-shrink: 0; } .issue-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; } .issue-labels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-sm); } .label-chip { padding: 3px 8px; font-size: 11px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text-muted); } .imported-badge { display: inline-flex; align-items: center; justify-content: center; align-self: center; padding: 4px 10px; font-size: 11px; font-weight: 600; border: 1px solid var(--color-success); border-radius: var(--radius-lg); color: var(--color-success); text-transform: uppercase; letter-spacing: 0.08em; } .issue-preview { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-lg); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); } .preview-meta { color: var(--text-muted); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; } .preview-title { font-size: 16px; font-weight: 600; line-height: 1.35; } .preview-body { font-size: 13px; color: var(--text-muted); line-height: 1.6; white-space: pre-wrap; word-break: break-word; } /* Back button - hidden on desktop by default */ .github-import-back-button { display: none; } /* Light theme overrides for GitHub import components */ [data-theme="light"] .github-import-tabs { background: var(--bg-secondary); } [data-theme="light"] .github-import-tab.active { background: var(--card); border-color: var(--border); box-shadow: 0 1px 3px rgba(31, 35, 40, 0.06); } [data-theme="light"] .github-import-toolbar { background: var(--bg-secondary); border-bottom-color: var(--border); } [data-theme="light"] .github-import-toolbar__zone--filter input { background: var(--card); border-color: var(--border); } [data-theme="light"] .github-import-toolbar__zone--filter input:focus { border-color: var(--color-primary, var(--todo)); box-shadow: 0 0 0 2px rgba(var(--in-progress-rgb), 0.15); } [data-theme="light"] .issues-list { background: var(--card); border-color: var(--border); } [data-theme="light"] .issue-item:hover:not(.imported) { background: var(--card-hover); } [data-theme="light"] .issue-item.selected { background: rgba(var(--in-progress-rgb), 0.08); box-shadow: inset 0 0 0 1px rgba(var(--in-progress-rgb), 0.3); } [data-theme="light"] .issue-item.imported input[type="radio"] { opacity: 0.4; } [data-theme="light"] .github-import-state { background: var(--bg-secondary); border-color: var(--border); } [data-theme="light"] .issue-preview { background: var(--bg-secondary); border-color: var(--border); } [data-theme="light"] .label-chip { background: var(--bg-secondary); border-color: var(--border); } /* Responsive breakpoints */ @media (max-width: 860px) { .github-import-modal { width: calc(100vw - (var(--space-lg) * 2)); } .github-import-workspace { flex-direction: column; } .github-import-list-pane { flex: none; border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: var(--space-md); max-height: 50%; } .github-import-preview-pane { flex: none; max-height: 50%; } } @media (max-width: 640px) { .github-import-modal { width: calc(100vw - 16px); max-height: 90vh; } .github-import-modal__body { padding: var(--space-md); gap: var(--space-md); } .github-import-toolbar { flex-wrap: wrap; gap: var(--space-sm); padding: var(--space-sm); } .github-import-toolbar__zone--remote { flex: 1 1 100%; order: 1; } .github-import-toolbar__zone--filter { flex: 1 1 auto; order: 2; min-width: 140px; } .github-import-toolbar__zone--action { flex: 0 0 auto; order: 3; } .github-import-remote-select select { width: 100%; min-width: 0; } .github-import-section { padding: var(--space-md); } .github-import-section__header { flex-direction: column; } .github-import-repository-pill { width: 100%; min-width: 0; text-align: left; } .github-import-controls-grid { grid-template-columns: 1fr; } .github-import-results-meta { justify-content: flex-start; } .issue-item { flex-wrap: wrap; min-height: 36px; } .imported-badge { align-self: flex-start; margin-left: 28px; } .issues-list { max-height: 50vh; } /* Mobile pane visibility - show one at a time */ .github-import-list-pane.mobile { display: none; } .github-import-list-pane.mobile.active { display: flex; flex: 1; border-right: none; padding-right: 0; max-height: none; } .github-import-preview-pane.mobile { display: none; } .github-import-preview-pane.mobile.active { display: flex; flex: 1; max-height: none; } /* Back button styles */ .github-import-back-button { display: inline-flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); background: transparent; border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); font-size: 13px; cursor: pointer; transition: background var(--transition-fast); } .github-import-back-button:hover { background: var(--card-hover); } .github-import-back-button:focus { outline: none; box-shadow: var(--focus-ring); } .github-import-pane-header:has(.github-import-back-button) { justify-content: flex-start; gap: var(--space-md); } } @keyframes spin { to { transform: rotate(360deg); } } .spin { animation: spin 1s linear infinite; } /* === List View === */ .list-view { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--bg); } .list-toolbar { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md) var(--space-xl); border-bottom: 1px solid var(--border); background: var(--surface); } .list-stats { font-size: 12px; color: var(--text-muted); margin-left: auto; } /* Section expand/collapse controls */ .list-section-controls { display: flex; align-items: center; gap: 6px; } .list-section-controls .btn { white-space: nowrap; } .list-stats-hidden { color: var(--text-dim); font-style: italic; } /* Selection stats */ .list-selection-stats { display: flex; align-items: center; gap: var(--space-sm); font-size: 13px; color: var(--text); background: var(--todo-bg, rgba(59, 130, 246, 0.1)); border: 1px solid var(--todo-border, rgba(59, 130, 246, 0.3)); border-radius: var(--radius); padding: var(--space-xs) var(--space-md); } .selection-count { font-weight: 500; color: var(--todo); } /* Bulk edit toolbar */ .bulk-edit-toolbar { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-sm) var(--space-md); background: var(--surface-hover, rgba(0, 0, 0, 0.03)); border: 1px solid var(--border); border-radius: var(--radius); margin-left: auto; } .bulk-edit-label { font-size: 12px; font-weight: 500; color: var(--text-muted); white-space: nowrap; } .bulk-edit-dropdown { min-width: 180px; } .bulk-edit-dropdown .model-combobox-trigger { font-size: 12px; padding: 6px 10px; } .bulk-edit-apply-btn { white-space: nowrap; } .bulk-edit-apply-btn:disabled { opacity: 0.6; cursor: not-allowed; } /* Checkbox column in table */ .list-header-checkbox, .list-cell-checkbox { width: 40px; text-align: center; padding: 8px 4px; } .list-header-checkbox input[type="checkbox"], .list-cell-checkbox input[type="checkbox"] { cursor: pointer; accent-color: var(--todo); } .list-cell-checkbox input[type="checkbox"]:disabled { cursor: not-allowed; opacity: 0.5; } /* Column toggle dropdown */ .list-column-toggle { position: relative; } .list-column-toggle .btn { display: flex; align-items: center; gap: 6px; } .list-create-area { width: 100%; padding: var(--space-md) var(--space-xl); background: var(--surface); border-bottom: 1px solid var(--border); } .list-create-area .quick-entry-box { max-width: 800px; margin: 0 auto; } /* New class for QuickEntryBox positioned above the table in list view */ .list-quick-entry-above-table { width: 100%; padding: var(--space-md) var(--space-xl); background: var(--surface); border-bottom: 1px solid var(--border); } .list-quick-entry-above-table .quick-entry-box { max-width: 800px; margin: 0 auto; } .list-column-dropdown { position: absolute; top: 100%; left: 0; margin-top: var(--space-xs); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-width: 160px; padding: 6px 0; z-index: 100; box-shadow: var(--shadow); animation: dropdown-in 0.15s ease-out; } @keyframes dropdown-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } } .list-column-dropdown-item { display: flex; align-items: center; gap: 10px; padding: var(--space-sm) var(--space-md); font-size: 13px; color: var(--text); cursor: pointer; transition: background var(--transition-fast); } .list-column-dropdown-item:hover { background: var(--card-hover); } .list-column-dropdown-item.disabled { opacity: 0.5; cursor: not-allowed; } .list-column-dropdown-item.disabled:hover { background: none; } .list-column-dropdown-item input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--todo); cursor: pointer; } .list-column-dropdown-item.disabled input[type="checkbox"] { cursor: not-allowed; } /* Hide done tasks toggle */ .list-hide-done-toggle { display: flex; align-items: center; gap: 6px; } /* Drop zones for drag and drop */ .list-drop-zones { display: flex; gap: var(--space-sm); padding: var(--space-md) var(--space-xl); border-bottom: 1px solid var(--border); background: var(--surface); overflow-x: auto; } .list-drop-zone { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: all var(--transition-fast); flex-shrink: 0; } .list-drop-zone:hover { background: var(--card-hover); border-color: var(--text-muted); } .list-drop-zone.active { border-color: var(--todo); background: rgba(88, 166, 255, 0.15); box-shadow: 0 0 0 1px var(--todo); } .list-drop-zone.drag-over { border-color: var(--todo); box-shadow: 0 0 0 1px var(--todo); background: rgba(88, 166, 255, 0.1); } .drop-zone-dot { width: 8px; height: 8px; border-radius: 50%; } .drop-zone-label { font-size: 12px; font-weight: 500; color: var(--text); white-space: nowrap; } .drop-zone-count { font-size: 11px; color: var(--text-muted); background: var(--bg); padding: 2px 6px; border-radius: var(--radius-pill); min-width: 20px; text-align: center; } /* Table container */ .list-table-container { flex: 1; overflow: auto; padding: 0; } .list-table { width: 100%; border-collapse: collapse; font-size: 13px; } .list-table thead { position: sticky; top: 0; z-index: 10; } .list-header-cell { text-align: left; padding: var(--space-md) var(--space-lg); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); background: var(--surface); border-bottom: 1px solid var(--border); cursor: pointer; user-select: none; transition: color var(--transition-fast); white-space: nowrap; } /* Reduce padding on ID column header to match data cells */ .list-table th:first-child.list-header-cell { padding-right: 8px; } .list-header-cell:hover { color: var(--text); } .sort-icon { vertical-align: middle; margin-left: 4px; opacity: 0.5; transition: opacity var(--transition-fast); } .sort-icon.active { opacity: 1; color: var(--todo); } /* Table rows */ .list-row { cursor: pointer; transition: background var(--transition-fast), opacity var(--transition-fast); } .list-row:hover { background: var(--card-hover); } .list-row.dragging { opacity: 0.4; } .list-row.failed { border-left: 3px solid var(--color-error-dark); } .list-row.paused { opacity: 0.55; } .list-row.stuck { border-left: 3px solid var(--triage); background: rgba(210, 153, 34, 0.06); } .list-row.agent-active { border-color: var(--in-progress); box-shadow: 0 0 8px rgba(var(--in-progress-rgb), 0.4), 0 0 20px rgba(var(--in-progress-rgb), 0.15); animation: agent-glow 2.5s ease-in-out infinite; } /* Table cells */ .list-cell { padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--border); vertical-align: middle; } .list-cell-id { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap; padding: 12px 8px 12px 16px; /* Reduced right padding to tighten space with title */ } .list-cell-title { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .list-cell-date { font-size: 12px; color: var(--text-muted); white-space: nowrap; } .list-cell-deps { text-align: center; } /* Badges */ .list-status-badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--card); color: var(--text-muted); } .list-status-badge.failed { background: rgba(218, 54, 51, 0.15); color: var(--color-error-dark); } .list-status-badge.stuck { background: rgba(210, 153, 34, 0.2); color: var(--triage); animation: stuck-pulse 2s ease-in-out infinite; } .list-status-badge.pulsing { animation: pulse 1.5s ease-in-out infinite; } .list-status-badge--triage { background: var(--status-triage-bg); color: var(--triage); } .list-status-badge--todo { background: var(--status-todo-bg); color: var(--todo); } .list-status-badge--in-progress { background: var(--status-in-progress-bg); color: var(--in-progress); } .list-status-badge--in-review { background: var(--status-in-review-bg); color: var(--in-review); } .list-status-badge--done { background: var(--status-done-bg); color: var(--done); } .list-status-badge--archived { background: var(--status-archived-bg); color: var(--text-muted, #8b949e); } .list-column-badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 10px; border-radius: var(--radius-pill); } .list-dep-badge { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: 11px; color: var(--triage); } /* Progress bar */ .list-cell-progress { min-width: 100px; } .list-progress { display: flex; align-items: center; gap: var(--space-sm); } .list-progress-bar { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; } .list-progress-fill { height: 100%; border-radius: 2px; transition: width 0.3s; } .list-progress-label { font-size: 11px; font-weight: 600; color: var(--text-muted); font-family: var(--font-mono); flex-shrink: 0; min-width: 30px; text-align: right; } /* Empty state */ .list-empty { display: flex; align-items: center; justify-content: center; height: 200px; font-size: 14px; color: var(--text-muted); } /* Section headers for grouped list view */ .list-section-header { background: var(--surface); border-bottom: 1px solid var(--border); cursor: pointer; user-select: none; transition: background var(--transition-fast); } .list-section-header:hover { background: var(--card-hover); } .list-section-header--collapsed { background: var(--card); border-bottom-color: var(--border); transition: background var(--transition-fast); } .list-section-header--collapsed:hover { background: var(--card-hover); } .list-section-chevron { display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; color: var(--text-muted); transition: transform var(--transition-fast), color var(--transition-fast); transform: rotate(0deg); vertical-align: middle; } .list-section-chevron--expanded { transform: rotate(90deg); color: var(--text); } .list-section-cell { padding: 10px 16px; text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text); background: var(--surface); border-bottom: 1px solid var(--border); } .list-section-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; } .list-section-title { display: inline-block; vertical-align: middle; margin-right: 8px; } .list-section-count { display: inline-block; font-size: 11px; color: var(--text-muted); background: var(--card); padding: 2px 8px; border-radius: var(--radius-pill); min-width: 24px; text-align: center; vertical-align: middle; } /* Section expand/collapse animation - only for expanded sections */ @keyframes section-expand { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } } .list-section-header ~ tr { animation: section-expand 0.2s ease-out; } /* Empty section row */ .list-section-empty { background: var(--bg); } .list-section-empty:hover { background: var(--bg); /* Prevent hover effect on empty section rows */ } .list-empty-cell { padding: 24px 16px; text-align: center; font-size: 13px; color: var(--text-dim); font-style: italic; border-bottom: 1px solid var(--border); } /* === List View Mobile Responsive === */ @media (max-width: 768px) { .list-toolbar { padding: var(--space-md); flex-wrap: wrap; } .list-create-area { padding: var(--space-sm) var(--space-md); } .list-stats { order: 1; } .list-column-toggle { order: 3; margin-left: auto; } .list-drop-zones { padding: var(--space-sm) var(--space-md); gap: 6px; } .drop-zone-label { display: none; } .list-table-container { overflow-x: auto; } .list-table { min-width: auto; } .list-cell-title { max-width: 150px; } .list-cell-date { display: none; } .list-header-cell:nth-child(5), .list-header-cell:nth-child(6) { display: none; } } /* === List View Mobile Cards (FN-1140) === */ @media (max-width: 768px) { /* Hide the table on mobile — card layout is rendered via JS */ .list-table { display: none; } /* Mobile card layout */ .list-cards { display: flex; flex-direction: column; width: 100%; padding: var(--space-sm) var(--space-md); padding-bottom: max(var(--space-md), env(safe-area-inset-bottom, 0px)); } .list-card-section-header { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-md) var(--space-md) var(--space-sm); cursor: pointer; min-height: 36px; user-select: none; -webkit-tap-highlight-color: transparent; } .list-card-section-header:active { opacity: 0.7; } .list-card-section-header:focus-visible { outline: 2px solid var(--todo); outline-offset: 1px; border-radius: var(--radius-sm); } .list-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-md); margin: var(--space-xs) 0; cursor: pointer; transition: background var(--transition-fast), border-color var(--transition-fast); min-height: 36px; position: relative; -webkit-tap-highlight-color: transparent; } .list-card:hover { background: var(--card-hover); border-color: var(--text-muted); } .list-card:active { background: var(--surface); transform: scale(0.99); } .list-card.agent-active { border-color: var(--in-progress); box-shadow: 0 0 8px rgba(var(--in-progress-rgb), 0.4), 0 0 20px rgba(var(--in-progress-rgb), 0.15); animation: agent-glow 2.5s ease-in-out infinite; } .list-card-row { display: flex; align-items: center; gap: var(--space-sm); } .list-card-row + .list-card-row { margin-top: var(--space-sm); } .list-card-id { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--text-muted); flex-shrink: 0; } .list-card-spacer { flex: 1; } .list-card-title { font-size: 14px; line-height: 1.4; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; } .list-card-meta { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; } .list-card-checkbox { position: absolute; top: var(--space-xs); left: var(--space-xs); min-width: 36px; min-height: 36px; display: flex; align-items: center; justify-content: center; } .list-card--selectable { padding-left: 32px; } .list-card-empty { padding: var(--space-lg) var(--space-md); text-align: center; font-size: 13px; color: var(--text-muted); font-style: italic; background: transparent; } /* Drop zones hidden on mobile — drag not practical on touch */ .list-drop-zones { display: none; } /* Toolbar stacking on mobile */ .list-toolbar { padding: var(--space-sm) var(--space-md); flex-wrap: wrap; gap: var(--space-sm); } .list-stats { width: 100%; order: 10; text-align: center; margin-left: 0; font-size: 11px; } .list-selection-stats { width: 100%; justify-content: center; } .bulk-edit-toolbar { flex-wrap: wrap; width: 100%; margin-left: 0; margin-top: var(--space-sm); } .bulk-edit-dropdown { min-width: 140px; flex: 1; } } /* === Terminal Modal === */ .terminal-modal { width: 90vw; max-width: 1200px; min-height: 90vh; max-height: 90vh; background: var(--card); display: flex; flex-direction: column; } .terminal-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); background: var(--surface); padding: 0; gap: 0; } .terminal-tabs { display: flex; flex: 1; min-width: 0; overflow-x: auto; gap: 0; padding: 0 4px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; } .terminal-tabs::-webkit-scrollbar { height: 4px; } .terminal-tabs::-webkit-scrollbar-track { background: transparent; } .terminal-tabs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; } .terminal-tab { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-md) var(--space-lg); background: none; border: none; border-bottom: 3px solid transparent; color: var(--text-muted); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: color var(--transition-fast), border-color var(--transition-fast); position: relative; min-height: 44px; } .terminal-tab:hover { color: var(--text); background: var(--card-hover); } .terminal-tab--active { color: var(--text); border-bottom-color: var(--in-progress); } .terminal-tab--active:hover { border-bottom-color: var(--in-progress); } .terminal-tab-indicator { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--in-progress); border-radius: var(--radius-sm) var(--radius-sm) 0 0; } .terminal-tab-label { font-family: var(--font-mono); font-size: 12px; } .terminal-tab-close { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; padding: 0; margin-left: 4px; background: transparent; border: none; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 14px; cursor: pointer; opacity: 0; transition: opacity var(--transition-fast), background var(--transition-fast), color var(--transition-fast); } .terminal-tab:hover .terminal-tab-close, .terminal-tab--active .terminal-tab-close { opacity: 1; } .terminal-tab-close:hover { background: var(--card-hover); color: var(--text); } .terminal-tab--new { color: var(--text-muted); background: none; border: 1px dashed var(--border); border-radius: var(--radius-sm); min-width: 32px; justify-content: center; padding: var(--space-xs) var(--space-sm); } .terminal-tab--new:hover { color: var(--text); background: var(--card-hover); border-color: var(--text-muted); } .terminal-tab--empty { color: var(--text-muted); cursor: default; font-style: italic; } .terminal-tab--empty:hover { background: none; color: var(--text-muted); } .terminal-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: none; border-left: 1px solid var(--border); color: var(--text-muted); cursor: pointer; transition: color var(--transition-fast), background var(--transition-fast); } .terminal-close:hover { color: var(--text); background: var(--card-hover); } .terminal-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); } .terminal-empty-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-md); color: var(--text-muted); text-align: center; padding: 40px; } .terminal-empty-state p { margin: 0; line-height: 1.5; } .terminal-empty-state p:first-child { font-size: 16px; font-weight: 500; color: var(--text); } .terminal-empty-state p:last-child { font-size: 13px; } .terminal-toolbar { display: flex; align-items: center; justify-content: space-between; padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--border); background: var(--surface); } .terminal-task-info { display: flex; align-items: center; gap: var(--space-md); min-width: 0; } .terminal-task-id { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text-muted); flex-shrink: 0; } .terminal-task-title { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .terminal-clear-btn { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-muted); font-size: 12px; cursor: pointer; transition: all var(--transition-fast); flex-shrink: 0; } .terminal-clear-btn:hover { color: var(--text); border-color: var(--text-muted); background: var(--card-hover); } .terminal-log-container { flex: 1; overflow: hidden; display: flex; flex-direction: column; } .terminal-log-container .agent-log-viewer { flex: 1; max-height: none; background: var(--card); border-radius: 0; } /* === Interactive Terminal Styles === */ .terminal-title { display: flex; align-items: center; gap: var(--space-sm); padding: 0 16px; font-size: 14px; font-weight: 500; color: var(--text); flex: 1; } .terminal-actions { display: flex; align-items: center; gap: 0; } .terminal-output { flex: 1; overflow-y: auto; padding: var(--space-lg); background: var(--bg); font-family: var(--font-mono); font-size: 13px; line-height: 1.6; } .terminal-welcome { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-lg); padding: 40px 20px; text-align: center; color: var(--text-muted); height: 100%; } .terminal-welcome-icon { color: var(--in-progress); opacity: 0.8; } .terminal-welcome h3 { margin: 0; font-size: 18px; font-weight: 600; color: var(--text); } .terminal-welcome p { margin: 0; max-width: 400px; line-height: 1.5; } .terminal-commands-list { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; margin: 8px 0; } .terminal-commands-list span { display: inline-block; padding: 4px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 12px; font-family: var(--font-mono); color: var(--text-muted); } .terminal-shortcuts { font-size: 12px; color: var(--text-muted); } .terminal-shortcuts kbd { display: inline-block; padding: 2px 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 11px; color: var(--text); } .terminal-history { display: flex; flex-direction: column; gap: var(--space-lg); } .terminal-entry { display: flex; flex-direction: column; gap: var(--space-sm); } .terminal-prompt-line { display: flex; align-items: center; gap: var(--space-sm); } .terminal-prompt { color: var(--success); font-weight: 600; flex-shrink: 0; } .terminal-command { color: var(--text); font-weight: 500; } .terminal-output-text { margin: 0; padding: var(--space-md) var(--space-lg); background: var(--card); border-radius: var(--radius); color: var(--text); white-space: pre-wrap; word-break: break-word; overflow-x: auto; } .terminal-output-error { background: rgba(239, 68, 68, 0.1); border-left: 3px solid var(--failed); } .terminal-running-indicator { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-lg); color: var(--text-muted); font-size: 12px; } .terminal-spinner { width: 12px; height: 12px; border: 2px solid var(--border); border-top-color: var(--in-progress); border-radius: 50%; animation: terminal-spin 1s linear infinite; } @keyframes terminal-spin { to { transform: rotate(360deg); } } .terminal-input-area { border-top: 1px solid var(--border); background: var(--surface); padding: var(--space-md) var(--space-lg); } .terminal-form { display: flex; align-items: center; gap: var(--space-sm); } .terminal-input-prompt { color: var(--success); font-weight: 600; font-family: var(--font-mono); font-size: 13px; flex-shrink: 0; } .terminal-input { flex: 1; padding: var(--space-sm) var(--space-md); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: var(--font-mono); font-size: 13px; outline: none; transition: border-color var(--transition-fast); } .terminal-input:focus { border-color: var(--in-progress); } .terminal-input:disabled { opacity: 0.6; cursor: not-allowed; } .terminal-input::placeholder { color: var(--text-muted); } .terminal-kill-btn { padding: var(--space-sm) var(--space-lg); background: var(--failed); border: none; border-radius: var(--radius); color: white; font-size: 12px; font-weight: 500; cursor: pointer; transition: opacity var(--transition-fast); flex-shrink: 0; } .terminal-kill-btn:hover { opacity: 0.9; } /* === PTY Terminal Styles === */ .terminal-container { flex: 1; min-height: 0; position: relative; background: var(--terminal-bg); overflow: hidden; } .terminal-xterm { width: 100%; height: 100%; padding: var(--space-xs); } .terminal-xterm .xterm { height: 100%; } /* * Override xterm's hidden textarea positioning so mobile browsers show the * virtual keyboard when the terminal is tapped. The upstream CSS sets * width:0, height:0 and left:-9999em which causes many mobile browsers to * skip showing the soft keyboard entirely. We give the textarea minimal * (1×1 px) dimensions and move it above the viewport instead of to the * left — this keeps it invisible while remaining a valid focus target. */ .terminal-xterm .xterm .xterm-helper-textarea { left: 0 !important; top: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; z-index: -1 !important; } .terminal-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; position: absolute; inset: 0; z-index: 2; background: var(--terminal-bg); gap: var(--space-lg); color: var(--text-muted); } .terminal-loading .terminal-spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--in-progress); border-radius: 50%; animation: terminal-spin 1s linear infinite; } @keyframes terminal-spin { to { transform: rotate(360deg); } } .terminal-shell-name { font-size: 12px; color: var(--text-muted); font-family: "SF Mono", Monaco, Consolas, monospace; margin-left: 8px; } .terminal-status { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 8px; } .terminal-status.connected { background: var(--done); } .terminal-status.connecting, .terminal-status.reconnecting { background: var(--in-progress); animation: terminal-pulse 1.5s ease-in-out infinite; } .terminal-status.disconnected { background: var(--error); } @keyframes terminal-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .terminal-status-bar { display: flex; align-items: center; justify-content: space-between; padding: var(--space-sm) var(--space-lg); background: var(--surface); border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); } .terminal-connection-status { font-weight: 500; } .terminal-connection-status.connected { color: var(--done); } .terminal-connection-status.connecting, .terminal-connection-status.reconnecting { color: var(--in-progress); } .terminal-connection-status.disconnected { color: var(--error); } .terminal-exit-code { color: var(--error); font-weight: 500; } .terminal-reconnect-btn, .terminal-restart-btn { display: flex; align-items: center; gap: var(--space-xs); padding: 6px 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 12px; font-weight: 500; cursor: pointer; transition: all var(--transition-fast); } .terminal-reconnect-btn:hover, .terminal-restart-btn:hover { background: var(--card-hover); border-color: var(--text-muted); } .terminal-error { padding: var(--space-md) var(--space-lg); background: rgba(179, 38, 38, 0.1); border-bottom: 1px solid var(--border); color: var(--error); font-size: 13px; } .terminal-error-content { display: flex; flex-direction: column; align-items: center; gap: var(--space-md, 12px); } .terminal-error-content span { color: var(--error, #f48771); text-align: center; } .terminal-retry-btn { display: flex; align-items: center; gap: var(--space-xs, 4px); padding: 6px 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 12px; font-weight: 500; cursor: pointer; transition: all var(--transition-fast); } .terminal-retry-btn:hover { background: var(--card-hover); border-color: var(--text-muted); } /* === Terminal Modal Mobile Responsive === */ @media (max-width: 768px) { .terminal-modal { width: 100%; max-width: 100%; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; border-radius: 0; border: none; } /* Stack tabs and actions on separate rows */ .terminal-header { flex-wrap: wrap; padding-top: env(safe-area-inset-top, 0); } /* Tabs get their own full-width row and remain scrollable */ .terminal-tabs { flex: 1 1 100%; min-width: 100%; order: 1; } /* Hide the redundant title/status indicator on mobile — .terminal-status-bar shows connection state */ .terminal-title { display: none; } /* Actions sit on a compact second row */ .terminal-actions { flex: 1 1 100%; order: 2; justify-content: flex-end; border-top: 1px solid var(--border); padding: 0 4px; min-height: 32px; } /* Hide text labels on action buttons to save space */ .terminal-action-label { display: none; } .terminal-reconnect-btn, .terminal-restart-btn, .terminal-clear-btn { padding: 8px; min-height: 32px; min-width: 32px; justify-content: center; } .terminal-tab { min-height: 36px; padding: 6px 10px; font-size: 13px; } .terminal-tab-label { font-size: 13px; } .terminal-close { width: 36px; height: 36px; } .terminal-toolbar { padding: 10px 12px; padding-bottom: max(10px, env(safe-area-inset-bottom, 0)); } .terminal-task-title { font-size: 12px; max-width: 200px; } .terminal-empty-state { padding: var(--space-xl); padding-bottom: max(24px, env(safe-area-inset-bottom, 0)); } /* Mobile styles for interactive terminal */ .terminal-output { padding: var(--space-md); font-size: 12px; } .terminal-welcome { padding: 24px 16px; } .terminal-welcome h3 { font-size: 16px; } .terminal-commands-list { gap: 6px; } .terminal-commands-list span { padding: 3px 8px; font-size: 11px; } .terminal-shortcuts { font-size: 11px; } .terminal-shortcuts kbd { padding: 1px 4px; font-size: 10px; } .terminal-input-area { padding: 10px 12px; padding-bottom: max(10px, env(safe-area-inset-bottom, 0)); } .terminal-input { font-size: 12px; padding: 6px 10px; } .terminal-kill-btn { padding: 6px 12px; font-size: 11px; } .terminal-output-text { padding: 10px 12px; font-size: 12px; } /* When a virtual keyboard is open, constrain the modal to fit entirely above the keyboard so the status bar / entry area stays visible. --vv-height is the visualViewport.height in pixels (set by JS) and works uniformly across Chrome Android and iOS Safari. Falls back to 100dvh - overlap when --vv-height is not available. */ .terminal-modal[style*="--keyboard-overlap"] { /* Neutralize inherited desktop min-height (90vh) so the modal can shrink below the full-viewport mobile default when the keyboard is open. Without this, min-height keeps the modal taller than the available space and the bottom overlaps the keyboard. */ min-height: auto; /* Apply both height and max-height so the modal is *exactly* the visual viewport height — not just capped at it. Using height ensures the element cannot be taller than max-height due to inherited min-height or flex layout. */ height: var(--vv-height, calc(100dvh - var(--keyboard-overlap, 0px))); max-height: var(--vv-height, calc(100dvh - var(--keyboard-overlap, 0px))); /* Clip any content that exceeds the constrained height during the keyboard-open transition so the terminal doesn't poke out below the visible area while xterm re-fits. */ overflow: hidden; } } /* === Model Selector Tab === */ .model-selector-tab { padding: 16px 0; } .model-selector-tab h4 { margin-bottom: var(--space-sm); } .model-selector-intro { color: var(--text-muted); font-size: 13px; margin-bottom: var(--space-lg); } .model-selector-loading, .model-selector-empty { padding: var(--space-xl); text-align: center; color: var(--text-muted); font-size: 13px; } .model-selector-error { padding: var(--space-lg); background: rgba(248, 81, 73, 0.1); color: var(--color-error); border-radius: var(--radius); font-size: 13px; } .model-selector-current { margin-bottom: var(--space-sm); } .model-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 500; } .model-badge-default { background: var(--text-dim); color: var(--text); } .model-badge-custom { display: inline-flex; align-items: center; gap: var(--space-xs); background: var(--todo); color: var(--bg); } .model-badge-custom .provider-icon { display: inline-flex; flex-shrink: 0; } .model-selector-actions { display: flex; gap: var(--space-sm); margin-top: var(--space-xl); padding-top: 16px; border-top: 1px solid var(--border); } .model-selector-status { margin-top: var(--space-md); font-size: 12px; color: var(--text-muted); font-style: italic; } .model-selector-filter { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); position: relative; } .model-selector-filter-input { flex: 1; padding: var(--space-sm) var(--space-md); padding-right: 32px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 14px; font-family: inherit; outline: none; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); } .model-selector-filter-input:focus { border-color: var(--todo); box-shadow: var(--focus-ring); } .model-selector-filter-input::placeholder { color: var(--text-dim); } .model-selector-filter-clear { position: absolute; right: 64px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; transition: color var(--transition-fast); } .model-selector-filter-clear:hover { color: var(--text); } .model-selector-filter-clear:disabled { opacity: 0.4; cursor: not-allowed; } .model-selector-results-count { font-size: 11px; color: var(--text-muted); white-space: nowrap; min-width: 50px; text-align: right; } .model-selector-no-results { padding: var(--space-md); color: var(--text-muted); font-size: 13px; font-style: italic; background: var(--surface); border-radius: var(--radius); margin-top: var(--space-sm); } /* === Model Combobox Component === */ .model-combobox { position: relative; width: 100%; } .model-combobox-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: var(--space-sm) var(--space-md); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 14px; font-family: inherit; cursor: pointer; outline: none; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); } .model-combobox-trigger:hover:not(:disabled) { border-color: var(--text-dim); } .model-combobox-trigger:focus { border-color: var(--todo); box-shadow: var(--focus-ring); } .model-combobox-trigger:disabled { opacity: 0.6; cursor: not-allowed; } .model-combobox-trigger-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; } .model-combobox-trigger-icon { display: inline-flex; margin-right: 8px; flex-shrink: 0; } .model-combobox-trigger-arrow { font-size: 10px; color: var(--text-muted); margin-left: 8px; transition: transform 0.15s; } .model-combobox-trigger[aria-expanded="true"] .model-combobox-trigger-arrow { transform: rotate(180deg); } .model-combobox-dropdown { position: fixed; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 1000; max-height: 320px; display: flex; flex-direction: column; overflow: hidden; } .model-combobox-search-wrapper { position: relative; flex-shrink: 0; border-bottom: 1px solid var(--border); } .model-combobox-search { width: 100%; padding: 10px 36px 10px 12px; background: var(--bg); border: none; border-radius: var(--radius) var(--radius) 0 0; color: var(--text); font-size: 14px; font-family: inherit; outline: none; } .model-combobox-search::placeholder { color: var(--text-dim); } .model-combobox-search:focus { background: var(--card); } .model-combobox-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; transition: color var(--transition-fast); } .model-combobox-clear:hover { color: var(--text); } .model-combobox-results-count { flex-shrink: 0; padding: 6px 12px; font-size: 11px; color: var(--text-muted); background: var(--bg); border-bottom: 1px solid var(--border); } .model-combobox-list { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 0; } .model-combobox-option { display: flex; align-items: center; justify-content: space-between; padding: var(--space-sm) var(--space-md); cursor: pointer; transition: background 0.1s; overflow: hidden; } .model-combobox-option:hover, .model-combobox-option--highlighted { background: var(--card-hover); } .model-combobox-option--selected { background: rgba(88, 166, 255, 0.15); } .model-combobox-option--selected:hover, .model-combobox-option--selected.model-combobox-option--highlighted { background: rgba(88, 166, 255, 0.25); } .model-combobox-option-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--text); } .model-combobox-option-text--default { color: var(--text-muted); font-style: italic; } .model-combobox-option-id { font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); margin-left: 8px; flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40%; } .model-combobox-group { border-bottom: 1px solid var(--border); } .model-combobox-group:last-child { border-bottom: none; } .model-combobox-optgroup { display: flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); background: var(--bg); cursor: default; overflow: hidden; } .model-combobox-optgroup-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* Provider favorite star (in optgroup header) */ .model-combobox-optgroup-favorite { padding: 2px 4px; font-size: 14px; color: var(--star-idle); background: none; border: none; cursor: pointer; line-height: 1; flex-shrink: 0; } .model-combobox-optgroup-favorite:hover { color: var(--star-active); } .model-combobox-optgroup-favorite--active { color: var(--star-active); } /* Model favorite star (inside option row) */ .model-combobox-option-favorite { padding: 2px 4px; font-size: 12px; color: var(--star-idle); background: none; border: none; cursor: pointer; line-height: 1; margin-left: auto; flex-shrink: 0; } .model-combobox-option-favorite:hover { color: var(--star-active); } .model-combobox-option-favorite--active { color: var(--star-active); } /* Favorited model pinned row */ .model-combobox-option--favorite { padding-left: 12px; background: var(--bg-secondary); } .model-combobox-divider { height: 1px; background: var(--border); margin: 4px 0; } .model-combobox-no-results { padding: 16px 12px; text-align: center; font-size: 13px; color: var(--text-muted); font-style: italic; } /* Mobile responsive model dropdown */ @media (max-width: 768px) { .model-combobox-dropdown { max-height: 50vh; max-height: 50dvh; /* Use dynamic viewport height where supported */ width: min(360px, calc(100vw - 32px)); } .model-combobox-search { font-size: 16px; } .model-combobox-option { min-height: 36px; } } @media (max-width: 640px) { .model-combobox-dropdown { max-height: 50vh; max-height: 50dvh; width: min(360px, calc(100vw - 32px)); } } /* ============================================================ THEME SYSTEM ============================================================ */ /* Smooth transitions for theme changes */ html, html *, html *::before, html *::after { transition: background-color var(--transition-normal), color var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal); } /* Disable transitions on specific elements that shouldn't animate */ html .card.dragging, html .card.dragging *, html .list-row.dragging, html .list-row.dragging *, html .column.drag-over, html .column.drag-over * { transition: none !important; } /* ============================================================ LIGHT THEME (data-theme="light") ============================================================ */ [data-theme="light"] { /* Backgrounds */ --bg: #ffffff; --surface: #f6f8fa; --card: #ffffff; --card-hover: #f3f4f6; --bg-secondary: #f6f8fa; --bg-tertiary: #eaeef2; --border: #d0d7de; /* Text */ --text: #1f2328; --text-muted: #656d76; --text-dim: #8c959f; /* Status colors (adjusted for light backgrounds) */ --triage: #9a6700; --todo: #0969da; --in-progress: #00bcd4; --in-progress-rgb: 0, 188, 212; --in-review: #1a7f37; --done: #6e7781; /* Feedback colors */ --color-success: #1a7f37; --color-error: #cf222e; --color-muted: #6e7781; --color-warning: #9a6700; /* Executor status bar state accents (lower intensity for light backgrounds) */ --executor-status-error-bg: color-mix(in srgb, var(--color-error) 6%, transparent); /* Changed-file status colors (adjusted for light backgrounds) */ --status-color-added: #1a7f37; --status-color-modified: #0969da; --status-color-deleted: #cf222e; --status-color-unknown: #6e7781; /* Shadow for light mode */ --shadow-sm: 0 1px 2px rgba(31, 35, 40, 0.08); --shadow-md: 0 4px 6px rgba(31, 35, 40, 0.12); --shadow-lg: 0 4px 24px rgba(31, 35, 40, 0.15); --shadow-glow: 0 0 8px rgba(9, 105, 218, 0.18); --glow-success: 0 0 8px rgba(26, 127, 55, 0.3); --glow-warning: 0 0 8px rgba(154, 103, 0, 0.3); --glow-danger: 0 0 8px rgba(207, 34, 46, 0.3); --focus-ring: 0 0 0 2px rgba(9, 105, 218, 0.12); --focus-ring-strong: 0 0 0 2px rgba(9, 105, 218, 0.24); /* CTA tokens for light mode */ --cta-bg: #1a7f37; --cta-border: #1f883d; --cta-text: #fff; --cta-bg-hover: #1f883d; --cta-border-hover: #2ea043; --cta-glow: 0 0 8px rgba(26, 127, 55, 0.3); /* Info color for light mode */ --color-info: #0969da; /* Workflow Step colors for light mode */ --ws-pre-merge: #2563eb; --ws-post-merge: #0d9488; --ws-info: #0891b2; --ws-warning: #a16207; --ws-success: #16a34a; --ws-error: #dc2626; --ws-error-dark: #b91c1c; --ws-teal: #0d9488; --ws-quality: #2563eb; --ws-security: #dc2626; /* Status error colors for light mode */ --color-error-dark: #a40e26; --status-error-bg: color-mix(in srgb, var(--color-error-dark, #a40e26) 15%, transparent); --status-error-bg-deep: color-mix(in srgb, var(--color-error-dark, #a40e26) 20%, transparent); /* Logo accent for light mode */ --logo-accent: var(--todo); /* Accent color for light mode */ --accent: #6a4fa0; /* Log entry backgrounds (lower intensity for light backgrounds) */ --log-tool-bg: color-mix(in srgb, var(--accent) 6%, transparent); --log-success-bg: color-mix(in srgb, var(--color-success) 5%, transparent); --log-error-bg: color-mix(in srgb, var(--color-error) 5%, transparent); --shadow: var(--shadow-lg); /* Mailbox FAB & badge text — ensure contrast on light backgrounds */ --fab-text: #fff; /* Mission autopilot — darker for light backgrounds */ --autopilot-icon: #ca8a04; --autopilot-shadow: rgba(34, 197, 94, 0.4); /* Terminal background */ --terminal-bg: #f6f8fa; /* Card mission badge — darker purple for light bg */ --badge-mission-text: #7c3aed; --badge-mission-text-hover: #8b5cf6; --badge-mission-bg: rgba(124, 58, 237, 0.12); --badge-mission-bg-hover: rgba(124, 58, 237, 0.22); /* Mission event type colors — darker/more saturated for light readability */ --event-error-text: #dc2626; --event-state-text: #2563eb; --event-task-text: #059669; --event-slice-text: #d97706; --event-autopilot-text: #9333ea; --event-error-bg: rgba(220, 38, 38, 0.12); --event-state-bg: rgba(37, 99, 235, 0.12); --event-task-bg: rgba(5, 150, 105, 0.12); --event-slice-bg: rgba(217, 119, 6, 0.12); --event-autopilot-bg: rgba(147, 51, 234, 0.12); /* Mission toggle & badge backgrounds */ --toggle-checked-bg: rgba(34, 197, 94, 0.15); --meta-badge-bg: rgba(63, 185, 80, 0.08); /* Star favorites */ --star-idle: #9ca3af; --star-active: #d97706; } /* Light theme specific overrides */ [data-theme="light"] .modal-overlay { background: rgba(31, 35, 40, 0.5); } [data-theme="light"] .modal-header { background: rgba(246, 248, 250, 0.8); } [data-theme="light"] .modal-actions { background: rgba(246, 248, 250, 0.6); } [data-theme="light"] .settings-sidebar { background: rgba(246, 248, 250, 0.6); } [data-theme="light"] .toast-success { background: var(--cta-bg); } [data-theme="light"] .toast-error { background: var(--color-error-dark); } [data-theme="light"] .toast-info { background: var(--color-info); } [data-theme="light"] .btn-task-create { background: var(--cta-bg); border-color: var(--cta-border); } [data-theme="light"] .btn-task-create:hover { background: var(--cta-bg-hover); border-color: var(--cta-border-hover); box-shadow: var(--cta-glow); } [data-theme="light"] .btn-primary { background: var(--cta-bg); border-color: var(--cta-border); } [data-theme="light"] .btn-primary:hover { background: var(--cta-bg-hover); border-color: var(--cta-border-hover); box-shadow: var(--cta-glow); } [data-theme="light"] .btn-danger { background: #cf222e; border-color: #a40e26; } [data-theme="light"] .btn-danger:hover { background: #a40e26; box-shadow: var(--glow-danger); } [data-theme="light"] .btn-warning { background: var(--triage); border-color: color-mix(in srgb, var(--triage) 70%, black); } [data-theme="light"] .btn-warning:hover { background: color-mix(in srgb, var(--triage) 70%, black); box-shadow: var(--glow-warning); } /* ============================================================ THEME SELECTOR COMPONENT STYLES ============================================================ */ .theme-selector { padding: 0 20px 20px; } .theme-mode-toggle { display: flex; align-items: center; gap: var(--space-sm); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-xs); margin-bottom: 20px; } .theme-mode-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: var(--space-sm) var(--space-lg); background: none; border: none; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 13px; font-weight: 500; cursor: pointer; transition: all var(--transition-fast); flex: 1; } .theme-mode-btn:hover { color: var(--text); background: var(--card-hover); } .theme-mode-btn.active { background: var(--todo); color: var(--bg); } .theme-mode-btn.active:hover { background: var(--todo); color: var(--bg); } .theme-section-title { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: var(--space-md); } .theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); } @media (max-width: 768px) { .theme-grid { grid-template-columns: repeat(2, 1fr); } } .theme-option { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); padding: var(--space-md); background: var(--card); border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: all var(--transition-fast); } .theme-option:hover { border-color: var(--todo); background: var(--card-hover); } .theme-option.active { border-color: var(--todo); background: rgba(88, 166, 255, 0.1); } .theme-option-swatch { width: 48px; height: 48px; border-radius: var(--radius); border: 2px solid var(--border); position: relative; overflow: hidden; } .theme-option-swatch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--bg) 50%, var(--surface) 50%); } .theme-option-label { font-size: 12px; font-weight: 500; color: var(--text); text-align: center; } /* Theme preview swatch colors */ .theme-swatch-default { --bg: #0d1117; --surface: #161b22; } .theme-swatch-ocean { --bg: #0a1929; --surface: #132f4c; } .theme-swatch-forest { --bg: #0d2818; --surface: #1a472a; } .theme-swatch-sunset { --bg: #2d1f1f; --surface: #4a2c2c; } .theme-swatch-zen { --bg: #0c0c0c; --surface: #111111; } .theme-swatch-berry { --bg: #1a0b2e; --surface: #2d1b4e; } .theme-swatch-monochrome { --bg: #0d0d0d; --surface: #1a1a1a; } .theme-swatch-slate { --bg: #1e293b; --surface: #334155; } .theme-swatch-ash { --bg: #292524; --surface: #44403c; } .theme-swatch-graphite { --bg: #18181b; --surface: #27272a; } .theme-swatch-ember { --bg: #18181b; --surface: #27272a; } .theme-swatch-rust { --bg: #0f0b09; --surface: #1a1410; } .theme-swatch-copper { --bg: #0e0c0a; --surface: #181410; } .theme-swatch-foundry { --bg: #0c0806; --surface: #15100c; } .theme-swatch-carbon { --bg: #0a0b0d; --surface: #111318; } .theme-swatch-sandstone { --bg: #1a1712; --surface: #241f18; } .theme-swatch-lagoon { --bg: #0a1214; --surface: #101c1f; } .theme-swatch-frost { --bg: #0c0e14; --surface: #121520; } .theme-swatch-lavender { --bg: #14101a; --surface: #1c1624; } .theme-swatch-neon-bloom { --bg: #120a18; --surface: #1a1024; } .theme-swatch-sepia { --bg: #161210; --surface: #201a16; } .theme-swatch-silver { --bg: #27272a; --surface: #3f3f46; } .theme-swatch-high-contrast { --bg: #000000; --surface: #0a0a0a; } .theme-swatch-industrial { --bg: #0c0c0c; --surface: #1a1a1a; } .theme-swatch-solarized { --bg: #002b36; --surface: #073642; } .theme-swatch-factory { --bg: #0a0a0a; --surface: #111111; } .theme-swatch-ayu { --bg: #0f1419; --surface: #131d27; } .theme-swatch-one-dark { --bg: #282c34; --surface: #21252b; } .theme-swatch-nord { --bg: #2e3440; --surface: #3b4252; } .theme-swatch-dracula { --bg: #282a36; --surface: #21222c; } .theme-swatch-gruvbox { --bg: #282828; --surface: #1d2021; } .theme-swatch-tokyo-night { --bg: #1a1b26; --surface: #16161e; } .theme-swatch-catppuccin-mocha { --bg: #1e1e2e; --surface: #181825; } .theme-swatch-github-dark { --bg: #0d1117; --surface: #010409; } .theme-swatch-everforest { --bg: #2d353b; --surface: #272e33; } .theme-swatch-rose-pine { --bg: #191724; --surface: #1f1d2e; } .theme-swatch-kanagawa { --bg: #1f1f28; --surface: #16161d; } .theme-swatch-night-owl { --bg: #011627; --surface: #01111d; } .theme-swatch-palenight { --bg: #292d3e; --surface: #1e2235; } .theme-swatch-monokai-pro { --bg: #2d2a2e; --surface: #252229; } .theme-swatch-slime { --bg: #0a0e09; --surface: #0f150d; } .theme-swatch-brutalist { --bg: #101010; --surface: #1d1d1d; } .theme-swatch-neon-city { --bg: #0d0d15; --surface: #171933; } .theme-swatch-parchment { --bg: #1b1712; --surface: #2f281f; } .theme-swatch-terminal { --bg: #0a0a0a; --surface: #121712; } .theme-swatch-glass { --bg: #13111f; --surface: #362c52; } .theme-swatch-horizon { --bg: #1c1e26; --surface: #16161c; } .theme-swatch-vitesse { --bg: #121817; --surface: #0d1210; } .theme-swatch-outrun { --bg: #0a0a14; --surface: #0d0d1a; } .theme-swatch-snazzy { --bg: #282a36; --surface: #1e1f29; } .theme-swatch-porple { --bg: #292d3e; --surface: #1e2030; } .theme-swatch-espresso { --bg: #2c1f1a; --surface: #231813; } .theme-swatch-mars { --bg: #1a1210; --surface: #140e0c; } .theme-swatch-poimandres { --bg: #1a1b26; --surface: #14151f; } /* Light mode swatch overrides */ [data-theme="light"] .theme-swatch-factory { --bg: #f5f5f5; --surface: #ffffff; } [data-theme="light"] .theme-swatch-ayu { --bg: #fafafa; --surface: #f3f3f3; } [data-theme="light"] .theme-swatch-zen { --bg: #f5f5f5; --surface: #fafafa; } [data-theme="light"] .theme-swatch-nord { --bg: #eceff4; --surface: #e5e9f0; } [data-theme="light"] .theme-swatch-dracula { --bg: #f8f8f2; --surface: #efeefa; } [data-theme="light"] .theme-swatch-gruvbox { --bg: #fbf1c7; --surface: #f2e5bc; } [data-theme="light"] .theme-swatch-tokyo-night { --bg: #e1e2e7; --surface: #d5d6db; } [data-theme="light"] .theme-swatch-catppuccin-mocha { --bg: #eff1f5; --surface: #e6e9ef; } [data-theme="light"] .theme-swatch-github-dark { --bg: #ffffff; --surface: #f6f8fa; } [data-theme="light"] .theme-swatch-everforest { --bg: #fdf6e3; --surface: #f4f0d9; } [data-theme="light"] .theme-swatch-rose-pine { --bg: #faf4ed; --surface: #fffaf3; } [data-theme="light"] .theme-swatch-kanagawa { --bg: #edeadd; --surface: #e1ddd4; } [data-theme="light"] .theme-swatch-one-dark { --bg: #fafafa; --surface: #f0f0f0; } [data-theme="light"] .theme-swatch-night-owl { --bg: #f6f7f9; --surface: #eef0f4; } [data-theme="light"] .theme-swatch-palenight { --bg: #f5f7fa; --surface: #ebeef5; } [data-theme="light"] .theme-swatch-monokai-pro { --bg: #faf8f5; --surface: #f0ece5; } [data-theme="light"] .theme-swatch-slime { --bg: #f2f7ea; --surface: #e6efda; } [data-theme="light"] .theme-swatch-brutalist { --bg: #ece9e4; --surface: #f7f4ef; } [data-theme="light"] .theme-swatch-neon-city { --bg: #f7f5ff; --surface: #f1edff; } [data-theme="light"] .theme-swatch-parchment { --bg: #f5f0e8; --surface: #efe7dc; } [data-theme="light"] .theme-swatch-terminal { --bg: #e7f5dd; --surface: #deefd2; } [data-theme="light"] .theme-swatch-glass { --bg: #eceaf5; --surface: #ffffff; } [data-theme="light"] .theme-swatch-slate { --bg: #f1f5f9; --surface: #e2e8f0; } [data-theme="light"] .theme-swatch-ash { --bg: #fafaf9; --surface: #f5f5f4; } [data-theme="light"] .theme-swatch-graphite { --bg: #fafafa; --surface: #f4f4f5; } [data-theme="light"] .theme-swatch-ember { --bg: #fafafa; --surface: #f4f4f5; } [data-theme="light"] .theme-swatch-rust { --bg: #f5efe8; --surface: #ebe3d8; } [data-theme="light"] .theme-swatch-copper { --bg: #f3ede6; --surface: #e8e0d6; } [data-theme="light"] .theme-swatch-foundry { --bg: #f5f0e6; --surface: #ebe4d6; } [data-theme="light"] .theme-swatch-carbon { --bg: #eef0f4; --surface: #e2e6ec; } [data-theme="light"] .theme-swatch-sandstone { --bg: #f5f0e8; --surface: #ebe4d8; } [data-theme="light"] .theme-swatch-lagoon { --bg: #eef5f3; --surface: #e0ebe8; } [data-theme="light"] .theme-swatch-frost { --bg: #f0f4f8; --surface: #e4eaf0; } [data-theme="light"] .theme-swatch-lavender { --bg: #f4f0f8; --surface: #e8e2f0; } [data-theme="light"] .theme-swatch-neon-bloom { --bg: #f8f0f8; --surface: #f0e4f0; } [data-theme="light"] .theme-swatch-sepia { --bg: #f5f0e4; --surface: #ece4d4; } [data-theme="light"] .theme-swatch-silver { --bg: #fafafa; --surface: #f4f4f5; } [data-theme="light"] .theme-swatch-horizon { --bg: #fdf0ed; --surface: #f9cec0; } [data-theme="light"] .theme-swatch-vitesse { --bg: #f8f5f0; --surface: #efe9e0; } [data-theme="light"] .theme-swatch-outrun { --bg: #f0f0f5; --surface: #e8e8ef; } [data-theme="light"] .theme-swatch-snazzy { --bg: #fafafa; --surface: #f0f0f2; } [data-theme="light"] .theme-swatch-porple { --bg: #f5f3f7; --surface: #eae7ef; } [data-theme="light"] .theme-swatch-espresso { --bg: #f5ece4; --surface: #ebe1d6; } [data-theme="light"] .theme-swatch-mars { --bg: #f5ece6; --surface: #ebe0d4; } [data-theme="light"] .theme-swatch-poimandres { --bg: #f0f0f5; --surface: #e6e6ee; } /* Reset to defaults button */ .theme-reset-btn { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); margin-top: 20px; padding: 10px 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-muted); font-size: 13px; font-weight: 500; cursor: pointer; transition: all var(--transition-fast); width: 100%; } .theme-reset-btn:hover { background: var(--card-hover); color: var(--text); border-color: var(--text-muted); } /* Theme current preview in settings */ .theme-current-preview { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md) var(--space-lg); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; } .theme-preview-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--surface); border-radius: var(--radius); color: var(--todo); } .theme-preview-info { flex: 1; } .theme-preview-label { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; } .theme-preview-value { font-size: 14px; font-weight: 600; color: var(--text); text-transform: capitalize; } /* === File Browser === */ .file-browser-modal { width: 90vw; max-width: 1200px; height: 80vh; max-height: calc(100vh - 2 * var(--overlay-padding-top, 10vh)); display: flex; flex-direction: column; } .file-browser-split { display: flex; flex: 1; overflow: hidden; } .file-browser-sidebar { width: 260px; min-width: 260px; border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; background: var(--bg); } .file-browser-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; min-height: 0; } /* File Browser Component */ .file-browser { display: flex; flex-direction: column; flex: 1; overflow: hidden; } .file-browser-header { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--border); background: var(--surface); min-height: 44px; } .file-browser-up { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); background: none; border: none; color: var(--todo); font-size: 12px; cursor: pointer; border-radius: var(--radius); transition: background var(--transition-fast); } .file-browser-up:hover { background: var(--card-hover); } .file-browser-path { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .file-browser-list { flex: 1; overflow-y: auto; padding: 8px 0; } .file-browser-empty { padding: var(--space-xl); text-align: center; color: var(--text-dim); font-size: 13px; font-style: italic; } .file-browser-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-md); padding: 40px; color: var(--text-muted); flex: 1; } .file-browser-error { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); padding: var(--space-xl); text-align: center; color: var(--color-error); flex: 1; } .file-browser-error p { margin: 0; } /* File Node */ .file-node { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-lg); cursor: pointer; transition: background var(--transition-fast); font-size: 13px; } .file-node:hover { background: var(--card-hover); } .file-node--directory { color: var(--todo); } .file-node--file { color: var(--text); } .file-node-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-muted); } .file-node--directory .file-node-icon { color: var(--todo); } .file-node-name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; } .file-node-size { font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); flex-shrink: 0; } .file-node-time { color: var(--text-dim); font-family: var(--font-mono); flex-shrink: 0; margin-left: 8px; } /* File Browser Context Menu */ .context-menu-overlay { position: fixed; inset: 0; z-index: 1000; } .file-browser-context-menu { position: fixed; min-width: 180px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: var(--space-xs); display: flex; flex-direction: column; gap: 2px; z-index: 1001; } .file-browser-context-menu__item { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); background: none; border: none; border-radius: var(--radius-sm); color: var(--text); font-size: 13px; text-align: left; cursor: pointer; width: 100%; transition: background var(--transition-fast); } .file-browser-context-menu__item:hover { background: var(--card-hover); } .file-browser-context-menu__item-icon { color: var(--text-muted); flex-shrink: 0; display: flex; align-items: center; } .file-browser-context-menu__disabled { opacity: 0.5; cursor: not-allowed; } .file-browser-context-menu__disabled:hover { background: none; } /* Delete action gets danger styling */ .file-browser-context-menu__item--danger:hover { background: rgba(248, 81, 73, 0.1); color: var(--color-error); } .file-browser-context-menu__item--danger .file-browser-context-menu__item-icon { color: var(--color-error); } .file-browser-context-menu__divider { height: 1px; background: var(--border); margin: var(--space-xs) var(--space-sm); } /* File Browser Operation Dialog */ .file-browser-dialog { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-lg); z-index: 1001; } .file-browser-dialog-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: var(--space-sm); } .file-browser-dialog-message { font-size: 13px; color: var(--text-muted); margin-bottom: var(--space-md); line-height: 1.5; } .file-browser-dialog-info { font-size: 12px; color: var(--text-dim); margin-bottom: var(--space-md); font-family: var(--font-mono); word-break: break-all; padding: var(--space-sm) var(--space-md); background: var(--card); border-radius: var(--radius-sm); border: 1px solid var(--border); } .file-browser-dialog-input { width: 100%; padding: var(--space-sm) var(--space-md); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 13px; font-family: var(--font-mono); outline: none; box-sizing: border-box; margin-bottom: var(--space-md); } .file-browser-dialog-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); } .file-browser-dialog-error { font-size: 12px; color: var(--color-error); margin-bottom: var(--space-md); padding: var(--space-sm) var(--space-md); background: rgba(248, 81, 73, 0.1); border-radius: var(--radius-sm); line-height: 1.4; } .file-browser-dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-sm); } /* File Editor Toolbar */ .file-browser-toolbar { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--border); background: var(--surface); min-height: 44px; flex-wrap: wrap; } .file-path { font-size: 13px; font-weight: 500; color: var(--text); font-family: var(--font-mono); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .file-mtime { font-size: 11px; color: var(--text-muted); flex-shrink: 0; } .file-actions { display: flex; gap: var(--space-sm); flex-shrink: 0; } .file-actions .btn { display: flex; align-items: center; gap: 6px; } /* File Editor Container */ .file-editor-container { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); min-height: 0; } .file-editor-container .cm-editor { height: 100%; } /* File Editor Toolbar */ .file-editor-toolbar { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-sm) var(--space-lg); border-bottom: 1px solid var(--border); background: var(--surface); flex-shrink: 0; } .file-editor-mode-toggle { display: flex; align-items: center; gap: var(--space-xs); } .file-editor-mode-toggle .btn { display: inline-flex; align-items: center; gap: 6px; } /* File Editor Preview */ .file-editor-preview { flex: 1; height: 100%; min-height: 0; overflow-y: auto; padding: var(--space-lg); } /* Textarea-based file editor */ .file-editor-textarea { flex: 1; min-height: 0; width: 100%; min-width: 100%; height: 100%; box-sizing: border-box; background: var(--bg); color: var(--text); font-family: var(--font-mono); font-size: 14px; line-height: 1.5; padding: var(--space-lg); border: none; outline: none; resize: none; overflow: auto; white-space: pre; overflow-wrap: normal; tab-size: 2; } .file-editor-textarea.file-editor-textarea--wrap { white-space: pre-wrap; overflow-wrap: break-word; } .file-editor-textarea:focus { outline: 1px solid var(--border); outline-offset: -1px; } .file-editor-textarea::selection { background: var(--todo); color: var(--bg); } /* File States */ .file-error { padding: var(--space-md) var(--space-lg); background: rgba(248, 81, 73, 0.1); border-left: 3px solid var(--color-error); color: var(--color-error); font-size: 13px; margin: var(--space-md) var(--space-lg); border-radius: 0 var(--radius) var(--radius) 0; } .file-binary-notice { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 14px; font-style: italic; } .file-loading { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 14px; } .file-placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-md); color: var(--text-muted); font-size: 14px; } .placeholder-icon { color: var(--text-dim); opacity: 0.5; } /* Keyboard Hints */ .keyboard-hints { font-size: 11px; color: var(--text-dim); display: flex; align-items: center; gap: var(--space-xs); margin-right: auto; } .keyboard-hints kbd { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px 6px; font-size: 10px; font-family: var(--font-mono); } /* === File Browser Mobile Responsive === */ @media (max-width: 768px) { .file-browser-modal { width: 100%; max-width: 100%; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; border-radius: 0; border: none; } .file-browser-split { flex-direction: column; } .file-browser-sidebar { width: 100%; min-width: 0; max-height: 40vh; border-right: none; border-bottom: 1px solid var(--border); } .file-browser-toolbar { flex-direction: column; align-items: flex-start; gap: var(--space-sm); padding: 10px 14px; } .file-path { max-width: 100%; } .file-actions { width: 100%; justify-content: flex-end; } .keyboard-hints { display: none; } .changed-files-modal { width: 100%; max-width: 100%; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; border-radius: 0; border: none; } } .file-browser-split { display: flex; flex: 1; overflow: hidden; } /* === File Browser === */ .file-browser-modal { width: 90vw; max-width: 1200px; height: 80vh; max-height: calc(100vh - 2 * var(--overlay-padding-top, 10vh)); } .file-browser-modal-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); } .file-browser-header-title { display: flex; align-items: center; gap: var(--space-sm); font-size: 15px; font-weight: 600; min-width: 0; flex: 1 1 auto; } .file-browser-header-title > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .file-browser-header-actions { display: flex; align-items: center; gap: var(--space-md); } .file-browser-modal-header .modal-close { position: static; } /* Commit metadata for task changes (done tasks with merge details) */ .commit-diff-meta { padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; background: var(--surface); } .commit-diff-sha { display: flex; align-items: center; gap: var(--space-xs); font-size: 12px; color: var(--text-muted); } .commit-diff-sha code { font-family: var(--font-mono); background: var(--card); padding: 1px 6px; border-radius: var(--radius-sm); } .commit-diff-message { font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .commit-diff-timestamp { font-size: 11px; color: var(--text-dim); } /* ChangesDiffModal — two-panel diff browser */ .changes-diff-modal { width: 90vw; max-width: 1200px; height: 80vh; max-height: calc(100vh - 2 * var(--overlay-padding-top, 10vh)); display: flex; flex-direction: column; } .changes-diff-modal-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); } .changes-diff-modal-header .modal-close { position: static; } .changes-diff-header-title { display: flex; align-items: center; gap: var(--space-sm); font-size: 15px; font-weight: 600; } .changes-diff-header-actions { display: flex; align-items: center; gap: var(--space-sm); } .changes-diff-body { display: flex; flex: 1; overflow: hidden; } .changes-diff-sidebar { width: 280px; min-width: 280px; border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; background: var(--surface); } .changes-diff-file-list { flex: 1; overflow-y: auto; padding: 8px 0; } .changes-diff-file-item { display: flex; align-items: center; gap: var(--space-sm); width: 100%; padding: var(--space-sm) var(--space-md); background: transparent; border: none; border-left: 3px solid transparent; color: var(--text); text-align: left; cursor: pointer; font-size: 12px; transition: background var(--transition-fast), border-color var(--transition-fast); } .changes-diff-file-item:hover { background: var(--card-hover); } .changes-diff-file-item.selected { background: var(--card-hover); border-left-color: var(--todo); } .changes-diff-file-path { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--font-mono); font-size: 12px; } .changes-diff-file-stat { flex-shrink: 0; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); } .changes-diff-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; min-height: 0; } .changes-diff-file-header-bar { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--border); background: var(--surface); min-height: 40px; } .changes-diff-file-header-name { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .changes-diff-file-header-stats { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); flex-shrink: 0; } .changes-diff-viewer { flex: 1; overflow: auto; padding: var(--space-sm) 0; } .changes-diff-viewer .changes-diff-patch { border: none; border-radius: 0; } .changes-diff-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-md); flex: 1; color: var(--text-muted); padding: var(--space-xl); text-align: center; } .changes-diff-empty p { margin: 0; font-size: 14px; } /* Mobile responsive for changes-diff-modal */ @media (max-width: 768px) { .changes-diff-modal { width: 100vw; height: 100vh; max-width: 100%; max-height: 100%; border-radius: 0; } .changes-diff-header-title { flex: 1; min-width: 0; } .changes-diff-header-actions { flex-wrap: wrap; gap: var(--space-xs); } .changes-diff-body { flex-direction: column; } .changes-diff-sidebar { width: 100%; min-width: unset; max-height: 40%; border-right: none; border-bottom: 1px solid var(--border); } .changes-diff-file-list { padding: 4px 0; } .changes-diff-file-item { min-height: 36px; } .changes-diff-content { overflow-x: auto; } } .file-browser-header-path { color: var(--text-muted); font-weight: 400; font-size: 13px; margin-left: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .file-browser-body { display: flex; flex: 1; overflow: hidden; } .file-browser-sidebar { width: 280px; min-width: 280px; border-right: 1px solid var(--border); display: flex; flex-direction: column; background: var(--surface); } .file-browser-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; min-height: 0; } .file-browser { display: flex; flex-direction: column; height: 100%; overflow: hidden; } .file-browser-header { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-md); border-bottom: 1px solid var(--border); background: var(--bg); } .file-browser-up { display: flex; align-items: center; gap: var(--space-xs); background: none; border: none; color: var(--todo); cursor: pointer; font-size: 12px; padding: var(--space-xs); } .file-browser-up:hover { text-decoration: underline; } .file-browser-path { font-size: 12px; color: var(--text-muted); margin-left: auto; } .file-browser-list { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 0; min-height: 0; } .file-browser-empty { padding: var(--space-xl); text-align: center; color: var(--text-muted); font-style: italic; } .file-browser-loading, .file-browser-error { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-md); padding: var(--space-xl); height: 100%; color: var(--text-muted); } .file-node { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); cursor: pointer; font-size: 13px; transition: background var(--transition-fast); } .file-node:hover { background: var(--card-hover); } .file-node-icon { color: var(--text-muted); display: flex; align-items: center; } .file-node--directory .file-node-icon { color: var(--todo); } .file-node-name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; } .file-node-size, .file-node-time { font-size: 11px; color: var(--text-dim); white-space: nowrap; } .file-browser-toolbar { display: flex; align-items: center; justify-content: space-between; padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--border); background: var(--surface); gap: var(--space-md); } .file-browser-file-info { display: flex; align-items: center; gap: var(--space-md); font-size: 13px; } .file-browser-mtime { font-size: 11px; color: var(--text-muted); } .file-browser-binary-indicator { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: 11px; color: var(--text-muted); background: var(--bg-tertiary); padding: 2px 8px; border-radius: var(--radius-sm); } .file-browser-loading { font-size: 11px; color: var(--todo); } .file-browser-actions { display: flex; gap: var(--space-sm); } .file-browser-error-banner { background: rgba(248, 81, 73, 0.1); color: var(--color-error); padding: var(--space-sm) var(--space-lg); font-size: 13px; border-bottom: 1px solid var(--border); } .file-editor-wrapper { flex: 1; overflow: hidden; background: var(--bg); min-width: 0; min-height: 0; display: flex; flex-direction: column; } .file-browser-image-preview { flex: 1; overflow: auto; background: var(--bg); min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; padding: var(--space-lg); } .file-browser-image { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-md); box-shadow: var(--shadow-md); } .file-browser-footer { display: flex; align-items: center; justify-content: space-between; padding: var(--space-sm) var(--space-lg); border-top: 1px solid var(--border); background: var(--surface); font-size: 12px; color: var(--text-muted); } .file-browser-unsaved { color: var(--triage); font-weight: 500; } .file-browser-placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-lg); color: var(--text-muted); } .file-browser-placeholder p { font-size: 14px; opacity: 0.7; } /* Mobile responsive */ @media (max-width: 768px) { .file-browser-modal { width: 100vw; height: 100dvh; max-width: 100%; max-height: 100dvh; border-radius: 0; } .file-browser-body { flex-direction: column; } .file-browser-modal-header { overflow: hidden; flex-wrap: wrap; align-items: flex-start; gap: var(--space-sm); } .file-browser-header-title { overflow: hidden; min-width: 0; flex: 1; } .file-browser-header-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50vw; } .file-browser-header-actions { flex-shrink: 0; justify-content: flex-end; } .file-browser-modal-header .modal-close { padding: 10px; display: flex; align-items: center; justify-content: center; } .file-browser-sidebar { width: 100%; height: 40%; border-right: none; border-bottom: 1px solid var(--border); } /* Mobile two-state view: show only list or editor at a time */ .file-browser-sidebar.mobile { display: none; } .file-browser-sidebar.mobile.active { display: flex; flex: 1; height: 100%; max-height: none; border-bottom: none; } .file-browser-content.mobile { display: none; } .file-browser-content.mobile.active { display: flex; flex: 1; height: 100%; } /* Back button styles */ .file-browser-back-button { display: inline-flex; align-items: center; gap: var(--space-sm); padding: 6px 12px; background: transparent; border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); font-size: 13px; cursor: pointer; transition: background var(--transition-fast); margin-right: 8px; } .file-browser-back-button:hover { background: var(--card-hover); } .file-browser-back-button:focus { outline: none; box-shadow: var(--focus-ring); } .file-browser-image-preview { padding: var(--space-md); } .file-browser-image { max-width: 100%; max-height: calc(100dvh - 200px); } } /* === Planning Mode Styles === */ .planning-modal-overlay { display: flex; align-items: center; justify-content: center; } .planning-modal { width: 90vw; max-width: 640px; min-height: 400px; max-height: 90vh; overflow: hidden; } .planning-modal .modal-header { flex-shrink: 0; } .planning-modal .text-muted { color: var(--text-muted); } .planning-modal-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; position: relative; } .planning-error { flex-shrink: 0; margin: 24px 24px 0; } .planning-view-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-xl); padding: var(--space-xl); } .planning-view-footer { display: flex; justify-content: center; padding: 16px 24px 24px; border-top: 1px solid var(--border); flex-shrink: 0; } .planning-model-select-group { display: flex; flex-direction: column; gap: var(--space-sm); max-width: 420px; margin: 0 auto; width: 100%; } .planning-model-select-group .form-label { font-size: 13px; color: var(--text-muted); text-align: left; } .session-lock-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); display: flex; align-items: flex-start; justify-content: center; padding-top: 20%; z-index: 10; backdrop-filter: blur(2px); } .session-lock-banner { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px 24px; display: flex; align-items: center; gap: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); } .session-lock-take-control { margin-left: auto; } /* Initial View */ .planning-initial { display: flex; flex-direction: column; align-items: stretch; text-align: center; flex: 1; min-height: 0; overflow: hidden; } .planning-intro { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); max-width: 520px; margin: 0 auto; } .planning-intro h4 { font-size: 20px; line-height: 1.3; } .planning-intro p { max-width: 480px; line-height: 1.6; } .planning-icon { color: var(--triage); margin-bottom: var(--space-sm); } .planning-description { color: var(--text-muted); font-size: 14px; max-width: 480px; line-height: 1.5; } .planning-textarea { width: 100%; min-height: 120px; padding: var(--space-md); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: inherit; font-size: 14px; resize: vertical; outline: none; transition: border-color var(--transition-normal), box-shadow var(--transition-normal); } .planning-textarea:focus { border-color: var(--todo); box-shadow: var(--focus-ring); } .planning-char-count { text-align: right; font-size: 12px; color: var(--text-muted); margin-top: var(--space-xs); } .planning-initial .form-group, .planning-summary-form .form-group { width: 100%; padding: 0; margin-top: 0; } .planning-initial .form-group, .planning-examples { max-width: 520px; margin: 0 auto; } .planning-initial .form-group { text-align: left; } .planning-examples { width: 100%; } .planning-examples-label { font-size: 12px; color: var(--text-muted); margin-bottom: var(--space-sm); display: block; } .planning-example-chips { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; } .planning-example-chip { padding: 8px 14px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; font-size: 12px; line-height: 1.4; color: var(--text-muted); cursor: pointer; transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast); } .planning-example-chip:hover { background: var(--card-hover); border-color: var(--todo); color: var(--text); transform: translateY(-1px); box-shadow: var(--focus-ring); } .planning-start-btn { display: inline-flex; align-items: center; gap: var(--space-sm); } .planning-initial .planning-view-footer { width: 100%; max-width: 568px; margin: 0 auto; justify-content: center; } /* Question View */ .planning-question { display: flex; flex-direction: column; gap: 20px; flex: 1; min-height: 0; } .planning-progress { display: flex; flex-direction: column; gap: var(--space-sm); padding-bottom: 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; } .planning-progress-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); } .planning-progress-step { height: 4px; border-radius: 999px; background: var(--border); transition: background-color var(--transition-fast); } .planning-progress-step.active { background: var(--todo); } .planning-progress-text { font-size: 12px; color: var(--text-muted); } .planning-question-form { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; } .planning-question-scroll { gap: 20px; } .planning-question-panel { display: flex; flex-direction: column; gap: 20px; padding: 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); } .planning-question-content { display: flex; flex-direction: column; gap: var(--space-lg); } .planning-question-text { font-size: 16px; font-weight: 600; } .planning-question-desc { font-size: 14px; color: var(--text-muted); line-height: 1.4; } /* Options */ .planning-options { display: flex; flex-direction: column; gap: var(--space-md); max-height: 40vh; overflow-y: auto; padding-right: var(--space-xs); } .planning-option { display: flex; align-items: flex-start; gap: var(--space-md); padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast); } .planning-option--radio, .planning-option--checkbox { width: 100%; } .planning-option:hover { background: var(--card-hover); border-color: var(--todo); box-shadow: var(--focus-ring); transform: translateY(-1px); } .planning-option input[type="radio"], .planning-option input[type="checkbox"] { margin-top: 2px; accent-color: var(--todo); } .planning-option-content { flex: 1; display: flex; flex-direction: column; gap: var(--space-xs); } .planning-option-label { font-weight: 500; color: var(--text); } .planning-option-desc { font-size: 12px; color: var(--text-muted); } .planning-radio-group, .planning-checkbox-group { display: flex; flex-direction: column; gap: var(--space-sm); } .planning-confirm-group { display: flex; gap: var(--space-md); } .planning-confirm-btn { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); flex: 1; padding: var(--space-md) var(--space-xl); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); } .planning-confirm-btn.selected { background: var(--todo); color: var(--bg); border-color: var(--todo); } /* Actions */ .planning-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: 16px 24px 24px; border-top: 1px solid var(--border); flex-shrink: 0; } .planning-actions .btn { flex-shrink: 0; } .planning-actions-primary { margin-left: auto; } .planning-back-btn { display: inline-flex; align-items: center; gap: var(--space-sm); } /* Summary View */ .planning-summary { display: flex; flex-direction: column; gap: 20px; flex: 1; min-height: 0; overflow: hidden; } .planning-summary-header { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); text-align: center; } .planning-summary-icon { color: var(--color-success); } .planning-summary-scroll { gap: 20px; } .planning-summary-form { display: flex; flex-direction: column; gap: var(--space-xl); flex: 1; min-height: 0; } .planning-summary-form .form-group { display: flex; flex-direction: column; gap: 10px; padding: var(--space-lg); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); } .planning-summary-form .form-group label { display: flex; align-items: center; gap: var(--space-sm); } .planning-expand-btn { margin-left: auto; padding: 0; background: none; border: none; color: var(--todo); font-size: 12px; font-weight: 500; cursor: pointer; } .planning-expand-btn:hover { text-decoration: underline; } .planning-size-label { font-size: 11px; color: var(--text-muted); } /* Taller description textarea in subtask breakdown */ .planning-summary-form .form-group textarea { min-height: 120px; resize: vertical; } /* Compact size dropdown */ .planning-size-select { width: 100%; padding: 10px 36px 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); font-size: 14px; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; } .planning-size-select:focus { outline: none; border-color: var(--todo); box-shadow: var(--focus-ring); } .planning-size-select:hover:not(:focus) { border-color: var(--text-muted); } .planning-deps-list { display: flex; flex-wrap: wrap; align-content: flex-start; gap: var(--space-sm); max-height: 180px; overflow-y: auto; padding-right: 4px; overscroll-behavior: contain; } .planning-dep-chip { display: inline-flex; align-items: center; gap: var(--space-sm); min-width: 0; padding: var(--space-sm) var(--space-md); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: 12px; cursor: pointer; transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast); } .planning-dep-chip:hover { background: var(--card-hover); border-color: var(--todo); box-shadow: var(--focus-ring); transform: translateY(-1px); } .planning-dep-chip.selected { background: var(--card-hover); border-color: var(--todo); box-shadow: inset 0 0 0 1px var(--todo); } .planning-dep-chip input[type="checkbox"] { accent-color: var(--todo); } .planning-dep-id { font-family: var(--font-mono); font-weight: 600; color: var(--text-muted); } .planning-dep-title { color: var(--text); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .planning-deliverables { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; font-size: 14px; color: var(--text); } .planning-deliverables li { position: relative; padding-left: 16px; line-height: 1.5; } .planning-deliverables li::before { content: "•"; position: absolute; left: 0; color: var(--todo); } .planning-summary-actions { justify-content: space-between; } .planning-summary-actions-right { display: flex; gap: var(--space-sm); align-items: center; } /* Loading State */ .planning-loading { display: flex; flex: 1; min-height: 0; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-lg); padding: var(--space-xl); color: var(--text-muted); } /* AI Thinking Output Display */ .planning-thinking-container { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); width: 100%; max-width: 600px; } .planning-thinking-toggle { padding: 6px 12px; font-size: 13px; font-weight: 500; color: var(--text-muted); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer; transition: all 0.15s ease; } .planning-thinking-toggle:hover { background: var(--card-hover); color: var(--text); } .planning-thinking-output { width: 100%; max-height: 300px; overflow-y: auto; overflow-x: hidden; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-lg); text-align: left; } .planning-thinking-output pre { margin: 0; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: break-word; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--text); } /* Subtask Drag-and-Drop Styles */ .subtask-item { transition: opacity var(--transition-fast), transform var(--transition-fast); } .subtask-item-dragging { opacity: 0.5; transform: scale(0.98); } .subtask-item-drop-target { background: rgba(88, 166, 255, 0.08); border-color: var(--todo); } .subtask-item-drop-before { position: relative; } .subtask-item-drop-before::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--todo); z-index: 1; } .subtask-item-drop-after { position: relative; } .subtask-item-drop-after::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--todo); z-index: 1; } .subtask-item-header { display: flex; align-items: center; gap: var(--space-sm); } .subtask-drag-handle { display: flex; align-items: center; gap: var(--space-sm); cursor: grab; color: var(--text-dim); transition: color var(--transition-fast); user-select: none; } .subtask-drag-handle:hover { color: var(--text-muted); } .subtask-item-dragging .subtask-drag-handle { cursor: grabbing; color: var(--todo); } .subtask-item-actions { display: flex; align-items: center; gap: var(--space-xs); } .subtask-item-actions .btn-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; background: transparent; border: 1px solid transparent; border-radius: var(--radius-md); color: var(--text-dim); cursor: pointer; transition: all var(--transition-fast); } @media (hover: hover) { .subtask-item-actions .btn-icon:hover:not(:disabled) { background: var(--card-hover); border-color: var(--border); color: var(--text); } } .subtask-item-actions .btn-icon:disabled { opacity: 0.3; cursor: not-allowed; } /* Responsive */ @media (max-width: 768px) { .planning-modal { width: 100vw; height: 100vh; height: 100dvh; min-height: 100vh; min-height: 100dvh; max-width: 100%; max-height: 100%; border-radius: 0; } .planning-error { margin: var(--space-lg) var(--space-lg) 0; } .planning-view-scroll { padding: var(--space-lg); gap: 20px; } .planning-view-footer, .planning-actions { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); } .planning-actions { flex-direction: column; align-items: stretch; } .planning-actions .btn, .planning-start-btn { width: 100%; justify-content: center; } .planning-actions-primary { margin-left: 0; } .planning-example-chips { flex-direction: column; align-items: stretch; } .planning-example-chip { width: 100%; text-align: left; border-radius: var(--radius-lg); } .planning-deps-list { flex-direction: column; flex-wrap: nowrap; max-height: 200px; } .planning-dep-chip { width: 100%; padding: 10px 12px; border-radius: var(--radius-lg); } .planning-dep-title { max-width: none; } /* Planning thinking output mobile adjustments */ .planning-thinking-container { max-width: 100%; } .planning-thinking-output { max-height: 200px; padding: var(--space-md); } .planning-thinking-output pre { font-size: 12px; } /* Prevent mobile zoom on focus for planning text inputs (16px minimum) */ .planning-textarea { font-size: 16px; } /* Planning options compact on mobile */ .planning-option { padding: 12px; } /* Subtask breakdown: touch-friendly drag handles with padding */ .subtask-drag-handle { min-width: 36px; min-height: 36px; padding: 10px; display: flex; align-items: center; justify-content: center; } /* Subtask action buttons: mobile-friendly sizing */ .subtask-item-actions .btn-icon { min-width: 36px; min-height: 36px; } /* Subtask items: prevent overflow */ .subtask-item-header { flex-wrap: wrap; gap: var(--space-xs); } /* Dependency chips: touch-friendly */ .planning-dep-chip { min-height: 36px; } /* Size select: prevent iOS zoom */ .planning-size-select { font-size: 16px; } /* Progress bar compact on narrow screens */ .planning-progress-bar { gap: var(--space-xs); } .planning-progress-text { font-size: 11px; } /* Confirm buttons: mobile-friendly sizing */ .planning-confirm-btn { min-height: 36px; padding: var(--space-sm) var(--space-md); } /* Model selection: rows don't overflow */ .planning-modal-body .inline-create-model-row { gap: var(--space-sm); } .planning-modal-body .model-badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; } /* Model selection: prevent iOS zoom on select elements */ .planning-modal-body select { font-size: 16px; } } /* === Planning & Breakdown Modal — Inline Style Replacements === */ /* Icon color utilities */ .icon-triage { color: var(--triage); } .icon-triage-lg { color: var(--triage); margin-bottom: 12px; } .icon-todo { color: var(--todo); } .icon-success { color: var(--color-success); } .icon-text-secondary { color: var(--text-secondary); flex-shrink: 0; } .icon-milestone { color: var(--icon-milestone); flex-shrink: 0; } .icon-slice { color: var(--icon-slice); flex-shrink: 0; } .icon-feature { color: var(--icon-feature); margin-top: 4px; flex-shrink: 0; } /* Icon margin utilities */ .icon-mr-4 { margin-right: 4px; } .icon-mr-6 { margin-right: 6px; } .icon-mr-8 { margin-right: 8px; } .icon-ml-4 { margin-left: 4px; } .icon-ml-6 { margin-left: 6px; } /* Error panel */ .ai-error-panel { border: 1px solid var(--color-error); border-radius: 10px; background: color-mix(in srgb, var(--color-error) 10%, transparent); padding: 14px; display: grid; gap: 10px; } .ai-error-icon { font-size: 20px; } .ai-error-actions { display: flex; gap: 8px; } /* Text link button */ .text-link-btn { font-size: 12px; background: none; border: none; color: inherit; text-decoration: underline; cursor: pointer; padding: 0; } /* Form hint error variant */ .form-hint-error { margin-top: 6px; font-size: 12px; color: var(--color-error); } /* Text muted small */ .text-muted-sm { margin-left: 8px; font-size: 12px; } /* Model selector spacing */ .model-select-row--left { margin-right: auto; min-width: min(100%, 320px); max-width: 420px; text-align: left; } .model-selector-current--spaced { margin-top: 8px; } /* Roadmap hierarchy (MissionInterviewModal) */ .roadmap-list { display: flex; flex-direction: column; gap: 8px; } .roadmap-card { border: 1px solid var(--border-primary); border-radius: 8px; overflow: hidden; } .roadmap-card-header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--bg-secondary); cursor: pointer; } .roadmap-card-body { padding: 0 12px 12px 36px; } .roadmap-textarea-sm { font-size: 12px; margin-top: 2px; } .roadmap-textarea-md { font-size: 12px; margin-top: 8px; } .roadmap-textarea-xs { font-size: 11px; margin-top: 2px; } .roadmap-field-label { font-size: 11px; color: var(--text-secondary); font-weight: 500; } .roadmap-field-group { margin-top: 6px; } .roadmap-slice-card { margin-top: 8px; border: 1px solid var(--border-primary); border-radius: 6px; overflow: hidden; } .roadmap-slice-header { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--bg-tertiary); cursor: pointer; } .roadmap-slice-body { padding: 8px 10px 10px 30px; } .roadmap-slice-field-group { margin-bottom: 8px; } .roadmap-input-title { flex: 1; padding: 4px 8px; font-size: 13px; font-weight: 600; } .roadmap-input-subtitle { flex: 1; padding: 3px 6px; font-size: 12px; font-weight: 500; } .roadmap-input-feature { width: 100%; padding: 2px 6px; font-size: 12px; } .roadmap-feature-row { display: flex; align-items: flex-start; gap: 6px; padding: 6px 0; } .roadmap-feature-row + .roadmap-feature-row { border-top: 1px solid var(--border-primary); } .roadmap-feature-text { font-size: 11px; color: var(--text-secondary); margin: 2px 0 0 6px; } .roadmap-feature-text--italic { font-size: 11px; color: var(--text-secondary); margin: 2px 0 0 6px; font-style: italic; } .roadmap-feature-content { flex: 1; min-width: 0; } .roadmap-add-feature-btn { font-size: 11px; padding: 4px 8px; margin-top: 6px; gap: 4px; display: flex; align-items: center; } .roadmap-shrink { flex-shrink: 0; } /* Subtask header override */ .subtask-item-header--between { justify-content: space-between; } /* ============================================================ USAGE INDICATOR STYLES ============================================================ */ /* Modal sizing */ .usage-modal { width: 520px; max-width: 90vw; } .usage-header { display: flex; align-items: center; gap: var(--space-sm); } .usage-header-icon { color: var(--in-progress); } /* Header actions with view toggle */ .usage-header-actions { display: flex; align-items: center; gap: var(--space-md); } /* View mode toggle */ .usage-view-toggle { display: flex; align-items: center; gap: 2px; background: var(--card); padding: 3px; border-radius: var(--radius-sm); border: 1px solid var(--border); } .usage-view-toggle-btn { padding: 4px 10px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; border: none; background: transparent; color: var(--text-muted); cursor: pointer; transition: all 0.2s ease; } .usage-view-toggle-btn:hover { color: var(--text); } .usage-view-toggle-btn.active { background: var(--todo); color: var(--bg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); } .usage-view-toggle-btn.active:hover { background: var(--todo); color: var(--bg); } /* Content area */ .usage-content { max-height: 60vh; overflow-y: auto; padding: 0; } /* Provider cards */ .usage-providers { display: flex; flex-direction: column; gap: var(--space-lg); padding: var(--space-lg); } .usage-provider { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; } .usage-provider-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-sm); } .usage-provider-info { display: flex; align-items: center; gap: var(--space-sm); } .usage-provider-icon { font-size: 18px; line-height: 1; } .usage-provider-name { font-weight: 600; font-size: 14px; } /* Status badges */ .usage-status-badge { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; padding: 3px 8px; border-radius: var(--radius-pill); } .usage-status-badge--connected { background: rgba(63, 185, 80, 0.15); color: var(--color-success); } .usage-status-badge--error { background: rgba(248, 81, 73, 0.15); color: var(--color-error); } .usage-status-badge--not-configured { background: rgba(139, 148, 158, 0.15); color: var(--text-muted); } /* Provider meta (plan, email) */ .usage-provider-meta { display: flex; gap: var(--space-md); margin-bottom: var(--space-md); font-size: 12px; color: var(--text-muted); } .usage-provider-plan { font-weight: 500; color: var(--todo); } .usage-provider-email { font-family: var(--font-mono); font-size: 11px; } /* Provider error */ .usage-provider-error { font-size: 12px; color: var(--color-error); background: rgba(248, 81, 73, 0.1); border-left: 3px solid var(--color-error); border-radius: 0 var(--radius) var(--radius) 0; padding: var(--space-sm) var(--space-md); margin-bottom: var(--space-md); } /* Usage windows */ .usage-provider-windows { display: flex; flex-direction: column; gap: var(--space-md); } .usage-window { display: flex; flex-direction: column; gap: var(--space-xs); } .usage-window-header { display: flex; justify-content: space-between; align-items: center; font-size: 12px; } .usage-window-label { font-weight: 500; color: var(--text); } .usage-window-percentage { font-weight: 600; color: var(--text-muted); font-family: var(--font-mono); } /* Progress bar */ .usage-progress-bar { height: 8px; background: var(--border); border-radius: var(--radius-sm); overflow: hidden; } .usage-progress-fill { height: 100%; border-radius: var(--radius-sm); transition: width 0.3s ease, background-color 0.3s ease; } .usage-progress-fill--low { background: var(--color-success); } .usage-progress-fill--medium { background: var(--triage); } .usage-progress-fill--high { background: var(--color-error); } /* Window footer */ .usage-window-footer { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); } .usage-window-left { font-weight: 500; } .usage-window-reset { font-style: italic; } .usage-window-reset-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .usage-window-reset-at { font-size: 11px; color: var(--text-muted); white-space: nowrap; background: var(--bg-tertiary); padding: 1px 5px; border-radius: 3px; } /* Pace marker and text */ .usage-progress-wrapper { position: relative; } .usage-pace-marker { position: absolute; top: -1px; width: 2px; height: 10px; background: var(--text-muted); border-radius: 1px; z-index: 2; transform: translateX(-50%); } .usage-pace-row { display: flex; align-items: center; gap: 6px; font-size: 11px; margin-top: var(--space-xs); } .pace-icon { flex-shrink: 0; } .pace-text { font-weight: 500; } /* ahead = over pace, consuming faster than expected (warning - red) */ .pace-ahead { color: var(--color-error); } /* on-track = good/expected usage (unchanged) */ .pace-ontrack { color: var(--color-success); } /* behind = under pace, consuming slower than expected (positive - green) */ .pace-behind { color: var(--color-success); } /* Empty state */ .usage-provider-empty { font-size: 12px; color: var(--text-muted); font-style: italic; padding: 8px 0; } /* Loading skeleton */ .usage-skeleton { display: flex; flex-direction: column; gap: var(--space-lg); padding: var(--space-lg); } .usage-skeleton-provider { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; } .usage-skeleton-header { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); } .usage-skeleton-icon, .usage-skeleton-name, .usage-skeleton-badge, .usage-skeleton-bar, .usage-skeleton-text { background: var(--border); border-radius: var(--radius-sm); animation: skeleton-pulse 1.5s ease-in-out infinite; } .usage-skeleton-icon { width: 24px; height: 24px; border-radius: 50%; } .usage-skeleton-name { flex: 1; height: 14px; max-width: 120px; } .usage-skeleton-badge { width: 80px; height: 18px; border-radius: var(--radius-pill); } .usage-skeleton-bar { height: 8px; width: 100%; border-radius: var(--radius-sm); margin-bottom: var(--space-sm); } .usage-skeleton-text { height: 12px; width: 60%; } @keyframes skeleton-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.8; } } /* Error state */ .usage-error { padding: var(--space-xl); text-align: center; } .usage-error p:first-child { font-weight: 600; color: var(--color-error); margin-bottom: var(--space-sm); } .usage-error-message { font-size: 12px; color: var(--text-muted); margin-bottom: var(--space-lg); } /* Empty state */ .usage-empty { padding: 32px 24px; text-align: center; } .usage-empty p:first-child { font-weight: 500; color: var(--text-muted); margin-bottom: var(--space-sm); } .usage-empty-hint { font-size: 12px; color: var(--text-dim); } /* Actions */ .usage-actions { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); } .usage-last-updated { font-size: 11px; color: var(--text-dim); flex: 1; } /* Mobile responsive */ @media (max-width: 768px) { .usage-modal { width: 100%; max-width: 100%; max-height: 100vh; border-radius: 0; } .usage-content { max-height: calc(100vh - 120px); } .usage-actions { flex-wrap: wrap; } .usage-last-updated { width: 100%; text-align: center; order: 3; margin-top: var(--space-sm); } } /* === Spec Editor === */ .spec-editor { display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: hidden; } /* Double-click to edit cursor - only when not readOnly */ .spec-editor:not(.spec-editor-readonly) .markdown-body { cursor: pointer; } /* Toolbar - fixed at top */ .spec-editor-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); flex-shrink: 0; } .spec-editor-mode-toggle { display: flex; align-items: center; gap: var(--space-xs); } .spec-editor-actions { display: flex; align-items: center; gap: var(--space-sm); } /* Actions row for Save/Cancel in Definition tab edit mode */ .spec-editor-actions-row { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-sm); margin-top: var(--space-sm); } /* Edit mode container in Definition tab */ .spec-editor-edit-mode { display: flex; flex-direction: column; gap: var(--space-sm); } /* Content area - flexible and scrollable */ .spec-editor-content { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 12px 0; } /* Textarea - fills available space in edit mode */ .spec-editor-textarea { width: 100%; min-height: 200px; height: 100%; flex: 1; padding: var(--space-md); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: var(--font-mono); font-size: 13px; line-height: 1.6; resize: none; outline: none; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); } .spec-editor-textarea:focus { border-color: var(--todo); box-shadow: var(--focus-ring); } .spec-editor-textarea:disabled { opacity: 0.6; cursor: not-allowed; } /* Empty state */ .spec-editor-empty { padding: var(--space-xl); text-align: center; color: var(--text-muted); font-size: 13px; font-style: italic; } /* Keyboard hint - stays above revision section */ .spec-editor-hint { display: flex; align-items: center; gap: var(--space-xs); padding: 8px 0; font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border); flex-shrink: 0; } .spec-editor-hint kbd { display: inline-block; padding: 2px 6px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 11px; font-family: var(--font-mono); } /* AI Revision section - fixed at bottom */ .spec-editor-revision { padding: 16px 0; border-top: 1px solid var(--border); flex-shrink: 0; } .spec-editor-revision h4 { font-size: 13px; font-weight: 600; margin: 0 0 4px 0; color: var(--text); } .spec-editor-revision-help { font-size: 12px; color: var(--text-muted); margin: 0 0 8px 0; } .spec-editor-feedback { width: 100%; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: inherit; font-size: 13px; line-height: 1.5; resize: vertical; outline: none; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); } .spec-editor-feedback:focus { border-color: var(--todo); box-shadow: var(--focus-ring); } .spec-editor-feedback:disabled { opacity: 0.6; cursor: not-allowed; } .spec-editor-revision-actions { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-sm); } .spec-editor-char-count { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); } /* Mobile responsive */ @media (max-width: 768px) { .spec-editor-content { padding: 8px 0; } .spec-editor-textarea { min-height: 150px; padding: 10px; font-size: 14px; } .spec-editor-toolbar { padding: 6px 0; flex-wrap: wrap; gap: var(--space-sm); } .spec-editor-hint { padding: 6px 0; font-size: 11px; } .spec-editor-revision { padding: 12px 0; } .spec-editor-revision h4 { font-size: 12px; } .spec-editor-revision-help { font-size: 11px; } } /* === Quick Entry Box === */ .quick-entry-box { padding: 8px 10px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: var(--space-sm); } .quick-entry-box:focus-within { border-color: var(--todo); } .quick-entry-input { width: 100%; padding: 6px 8px; background: transparent; border: none; border-bottom: 1px solid var(--border); color: var(--text); font-size: 13px; line-height: 1.4; font-family: inherit; outline: none; resize: none; min-height: 36px; max-height: 200px; transition: border-color var(--transition-fast), box-shadow var(--transition-fast), min-height 0.2s ease; } .quick-entry-input--expanded { min-height: 80px; } @media (max-width: 768px) { .quick-entry-input--expanded { min-height: 60px; } } .quick-entry-input:focus { border-bottom-color: var(--triage); box-shadow: 0 1px 0 0 var(--triage); } .quick-entry-input::placeholder { color: var(--text-dim); } .quick-entry-input:disabled { opacity: 0.6; cursor: not-allowed; } /* Quick Entry Box textarea wrap for expand button positioning */ .quick-entry-textarea-wrap { position: relative; flex: 1; min-width: 0; width: 100%; } /* Override padding from .description-with-refine textarea to fill available width */ /* The refine button is in the controls panel, not overlaid on textarea */ .quick-entry-textarea-wrap textarea { padding-right: 8px; } /* Quick Entry Box expand button - bottom-right of textarea */ .quick-entry-expand-btn { position: absolute; bottom: 6px; right: 32px; padding: 4px; opacity: 0.6; transition: opacity var(--transition-fast); z-index: 1; } .quick-entry-expand-btn:hover { opacity: 1; } /* Quick Entry Box fullscreen mode */ .quick-entry-input--fullscreen { flex: 1; padding-right: 70px; min-height: unset; resize: none; border-radius: var(--radius-md); font-size: 15px; line-height: 1.6; } /* Quick Entry Box expanded controls */ .quick-entry-controls { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-sm); margin-top: var(--space-sm); padding-top: 8px; border-top: 1px solid var(--border); flex-wrap: wrap; } /* Consolidated action buttons in disclosure panel */ .quick-entry-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1 1 auto; } .quick-entry-model-wrap { position: relative; } .quick-entry-subtasks-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); cursor: pointer; margin-left: 8px; } .quick-entry-subtasks-toggle input[type="checkbox"] { width: 14px; height: 14px; margin: 0; accent-color: var(--todo); cursor: pointer; } .quick-entry-hint { font-size: 11px; color: var(--text-dim); margin-left: auto; white-space: nowrap; } .quick-entry-model-trigger { font-size: 12px; padding: 3px 8px; } /* Nested model menu (replaces ModelSelectionModal in quick entry) */ .model-nested-menu { position: absolute; top: 100%; left: 0; margin-top: 4px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); z-index: 100; min-width: 240px; max-width: 320px; overflow: hidden; } /* Portaled variant — rendered via createPortal to escape column overflow clipping */ .model-nested-menu--portal { position: fixed; margin-top: 0; z-index: 1000; max-width: 360px; } /* Mobile: portaled model menu uses wider viewport-clamped width set via inline styles */ .model-menu-items { display: flex; flex-direction: column; padding: 4px; } .model-menu-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; background: none; border: none; border-radius: 6px; color: var(--text-primary); cursor: pointer; text-align: left; font-size: 13px; transition: background-color 0.15s; } .model-menu-item:hover { background: var(--bg-hover); } .model-menu-item--active { color: var(--text-accent, var(--todo)); } .model-menu-item-label { display: flex; align-items: center; font-weight: 500; white-space: nowrap; } .model-menu-item-value { flex: 1; text-align: right; font-size: 11px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; } .model-submenu { display: flex; flex-direction: column; padding: 8px; gap: 8px; } .model-submenu-back { display: flex; align-items: center; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 12px; padding: 4px 0; width: fit-content; } .model-submenu-back:hover { color: var(--text-primary); } .model-submenu-header { font-size: 12px; font-weight: 600; color: var(--text-primary); padding-bottom: 4px; border-bottom: 1px solid var(--border); } .model-submenu-error { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--text-error, #e53e3e); padding-top: 4px; } /* Responsive: model menu on mobile */ @media (max-width: 640px) { .model-nested-menu { left: 0; right: 0; min-width: unset; max-width: unset; width: calc(100vw - 32px); } /* Portaled variant on mobile: remove max-width constraint so JS-driven width takes full effect */ .model-nested-menu--portal { max-width: none; } } /* Responsive layout for quick entry controls */ @media (max-width: 640px) { .quick-entry-controls { flex-direction: column; align-items: flex-start; gap: 10px; } .quick-entry-hint { margin-left: 0; width: 100%; text-align: center; } } /* Quick Entry Box main row with toggle */ .quick-entry-main-row { display: flex; align-items: flex-start; gap: var(--space-sm); } .quick-entry-main-row .quick-entry-input { flex: 1; min-width: 0; } .quick-entry-toggle { display: inline-flex; align-items: center; justify-content: center; padding: 6px; height: 32px; width: 32px; flex-shrink: 0; background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--text-muted); cursor: pointer; transition: all var(--transition-fast); } .quick-entry-toggle:hover { background: var(--card-hover); border-color: var(--border); color: var(--text); } .quick-entry-toggle:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; } /* Expanded state - normal padding */ .quick-entry-box--expanded { padding: 8px 10px; } /* Only apply container-level min-height when input is NOT expanded. This prevents container selectors from overriding the expanded min-height. */ .quick-entry-box--expanded .quick-entry-input:not(.quick-entry-input--expanded) { min-height: 36px; } /* Collapsed state - minimal padding */ .quick-entry-box--collapsed { padding: 6px 8px; } /* Only apply container-level min-height when input is NOT expanded. When input is expanded (e.g., via focus), use the expanded min-height. */ .quick-entry-box--collapsed .quick-entry-input:not(.quick-entry-input--expanded) { min-height: 32px; border-bottom-color: transparent; } .quick-entry-box--collapsed .quick-entry-input:focus { border-bottom-color: var(--triage); } /* Responsive adjustments for quick entry */ @media (max-width: 640px) { .quick-entry-controls { flex-direction: column; align-items: flex-start; gap: 10px; } .quick-entry-hint { margin-left: 0; width: 100%; text-align: center; } .quick-entry-toggle { height: 28px; width: 28px; padding: var(--space-xs); } } /* === New Task Modal === */ .new-task-modal { min-height: min(520px, 80vh); } .new-task-modal .modal-body { padding: 20px 24px; overflow-y: auto; max-height: calc(80vh - 120px); flex: 1; min-height: 0; } .new-task-modal .form-group { margin-top: 0; margin-bottom: 20px; padding: 0; } .new-task-modal .form-group:last-of-type { margin-bottom: 0; } .new-task-modal .form-group label { margin-bottom: var(--space-sm); } .new-task-modal .checkbox-label { margin-bottom: 4px !important; } .task-form-primary-section { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-sm); } .task-form-primary-section .form-group { margin-bottom: 0; } .task-form-primary-section .description-with-refine { padding: var(--space-sm); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-tertiary); } .task-form-primary-section .description-with-refine textarea { min-height: 120px; padding: 12px 70px 12px 12px; line-height: 1.5; background: var(--surface); } .task-form-primary-section .description-with-refine.description--fullscreen { padding: var(--space-lg); border: none; background: var(--surface); } .task-form-primary-section .description-with-refine.description--fullscreen textarea { min-height: unset; } .task-form-description-actions { display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--space-sm); width: fit-content; margin-top: 0; margin-bottom: 0; padding: 6px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-tertiary); } .task-form-description-actions .btn { border-color: var(--border); } .task-form-more-options-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding: 10px 2px; margin: 0 0 var(--space-sm); border: none; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); background: transparent; color: var(--text-secondary, var(--text-muted)); font-size: 12px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; cursor: pointer; transition: color var(--transition-fast), border-color var(--transition-fast); } .task-form-more-options-toggle:hover:not(:disabled) { color: var(--text); border-color: var(--border); } .task-form-more-options-toggle:disabled { opacity: 0.6; cursor: not-allowed; } .task-form-more-options-toggle svg { color: var(--text-dim); } .task-form-more-options { margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--border-subtle); overflow: hidden; max-height: 2400px; opacity: 1; transition: max-height 0.24s ease, opacity 0.2s ease, margin-top 0.2s ease, padding 0.2s ease, border-color 0.2s ease; } .task-form-more-options.collapsed { max-height: 0; opacity: 0; pointer-events: none; margin-top: 0; padding-top: 0; padding-bottom: 0; border-left-color: transparent; } .task-form-more-options .form-group { margin-bottom: var(--space-md); } .task-form-more-options .form-group:last-of-type { margin-bottom: 0; } .task-form-more-options .form-group label { font-size: 11px; color: var(--text-dim); letter-spacing: 0.4px; } .task-form-more-options .form-group small { margin-top: 6px; color: var(--text-secondary, var(--text-muted)); } .task-form-more-options .model-select-row { margin-bottom: var(--space-sm); } /* Workflow step reorder controls */ .workflow-step-order { margin-top: var(--space-sm); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-sm); } .workflow-step-order-label { display: block; margin-bottom: var(--space-xs); color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; } .workflow-step-order-item { display: flex; align-items: center; gap: var(--space-sm); padding: 4px 6px; border-radius: var(--radius-sm); transition: background var(--transition-fast); } .workflow-step-order-item + .workflow-step-order-item { border-top: 1px solid var(--border-subtle); margin-top: 2px; padding-top: 6px; } .workflow-step-order-item:hover { background: var(--card-hover); } .workflow-step-order-number { display: flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; border-radius: var(--radius-sm); background: var(--bg-tertiary); color: var(--text-secondary); font-size: 11px; font-weight: 600; flex-shrink: 0; } .workflow-step-order-name { flex: 1; font-size: 13px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .workflow-step-order-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; } .workflow-step-order-actions .btn-icon { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--text-dim); cursor: pointer; transition: all var(--transition-fast); } @media (hover: hover) { .workflow-step-order-actions .btn-icon:hover:not(:disabled) { background: var(--card-hover); border-color: var(--border); color: var(--text); } } .workflow-step-order-actions .btn-icon:disabled { opacity: 0.3; cursor: not-allowed; } /* === Workflow Step Manager Modal === */ .workflow-step-manager-modal { width: 560px; overflow: hidden; } .wfm-body { padding: var(--space-md); max-height: 70vh; overflow-y: auto; } /* Loading / empty states */ .wfm-empty { text-align: center; padding: var(--space-xl); color: var(--text-muted); font-size: 14px; } .wfm-loading { text-align: center; padding: var(--space-xl); color: var(--text-muted); } /* Tab navigation row */ .wfm-tab-row { display: flex; gap: var(--space-sm); margin-bottom: var(--space-md); border-bottom: 1px solid var(--border); padding-bottom: var(--space-sm); } .wfm-tab-btn { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 12px; } /* Step list */ .wfm-step-list { display: flex; flex-direction: column; gap: var(--space-sm); } /* Step card */ .wfm-step-card { padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-secondary); } .wfm-step-card-top { display: flex; justify-content: space-between; align-items: flex-start; } .wfm-step-card-info { flex: 1; min-width: 0; } .wfm-step-card-title-row { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: 4px; } .wfm-step-card-name { font-weight: 600; font-size: 14px; } .wfm-step-card-desc { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wfm-step-card-actions { display: flex; gap: 4px; margin-left: var(--space-sm); flex-shrink: 0; } .wfm-delete-confirm { display: flex; gap: 4px; align-items: center; } /* Badges */ .wfm-badge { font-size: 11px; padding: 2px 6px; border-radius: var(--radius-sm); } .wfm-badge-enabled { background: color-mix(in srgb, var(--ws-success) 15%, transparent); color: var(--ws-success); } .wfm-badge-disabled { background: var(--bg-tertiary); color: var(--text-muted); } .wfm-badge-prompt { background: color-mix(in srgb, var(--ws-pre-merge) 15%, transparent); color: var(--ws-pre-merge); } .wfm-badge-script { background: color-mix(in srgb, var(--ws-post-merge) 15%, transparent); color: var(--ws-post-merge); } .wfm-badge-pre-merge { background: color-mix(in srgb, var(--ws-pre-merge) 15%, transparent); color: var(--ws-pre-merge); } .wfm-badge-post-merge { background: color-mix(in srgb, var(--ws-info) 15%, transparent); color: var(--ws-info); } .wfm-badge-default-on { background: color-mix(in srgb, var(--ws-warning) 15%, transparent); color: var(--ws-warning); } .wfm-badge-category { font-size: 11px; padding: 2px 6px; border-radius: var(--radius-sm); } .wfm-badge-category-quality { background: color-mix(in srgb, var(--ws-quality) 15%, transparent); color: var(--ws-quality); } .wfm-badge-category-security { background: color-mix(in srgb, var(--ws-security) 15%, transparent); color: var(--ws-security); } .wfm-delete-confirm-btn { color: var(--ws-error); } /* Template cards */ .wfm-template-list { display: flex; flex-direction: column; gap: 12px; } .wfm-template-card { padding: var(--space-md); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-secondary); } .wfm-template-inner { display: flex; gap: 12px; align-items: flex-start; } .wfm-template-icon { padding: var(--space-sm); border-radius: var(--radius-sm); background: var(--bg-tertiary); color: var(--text); flex-shrink: 0; } .wfm-template-content { flex: 1; min-width: 0; } .wfm-template-title-row { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: 4px; } .wfm-template-name { font-weight: 600; font-size: 14px; } .wfm-template-desc { font-size: 12px; color: var(--text-muted); margin-bottom: var(--space-sm); } .wfm-template-add-btn { font-size: 12px; padding: 4px 12px; display: flex; align-items: center; gap: 4px; } /* Edit/create form */ .wfm-form { padding: var(--space-md); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-secondary); } .wfm-form-title { margin: 0 0 12px; font-size: 14px; font-weight: 600; } .wfm-form-fields { display: flex; flex-direction: column; gap: var(--space-md); } .wfm-field label, .wfm-field-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; } .wfm-field input[type="text"], .wfm-field textarea, .wfm-field select { width: 100%; padding: 8px 12px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 13px; font-family: inherit; outline: none; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); } .wfm-field input[type="text"]:focus, .wfm-field textarea:focus, .wfm-field select:focus { border-color: var(--todo); box-shadow: var(--focus-ring); } .wfm-field textarea { resize: vertical; } .wfm-field textarea.wfm-prompt-textarea { font-family: var(--font-mono, monospace); } /* Mode selector */ .wfm-mode-selector { display: flex; gap: var(--space-sm); } .wfm-mode-btn { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 6px 12px; flex: 1; justify-content: center; } /* Prompt header row (label + refine button) */ .wfm-prompt-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; } .wfm-refine-btn { font-size: 12px; display: flex; align-items: center; gap: 4px; } .wfm-refine-btn span { font-size: 11px; } /* No-scripts placeholder */ .wfm-no-scripts { padding: 8px 12px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg-tertiary); color: var(--text-muted); font-size: 12px; } /* Checkbox toggle */ .wfm-checkbox-label { display: flex; align-items: center; gap: var(--space-sm); font-size: 13px; cursor: pointer; } .wfm-checkbox-label input[type="checkbox"] { accent-color: var(--todo); } /* Form actions */ .wfm-form-actions { display: flex; justify-content: flex-end; gap: var(--space-sm); margin-top: 4px; } /* Footer */ .wfm-footer { padding: 12px 16px; border-top: 1px solid var(--border); } .wfm-footer-add-btn { display: flex; align-items: center; gap: 6px; } /* Spinner */ .wfm-spinner { margin: 0 auto var(--space-sm); } .wfm-model-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .wfm-model-header label { margin-bottom: 0; } .wfm-model-clear-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-tertiary); background: none; border: none; cursor: pointer; padding: 2px 6px; border-radius: 4px; } .wfm-model-clear-btn:hover { color: var(--text-secondary); background: var(--bg-tertiary); } .wfm-model-hint { display: block; font-size: 11px; color: var(--text-tertiary); margin-bottom: 6px; } @media (max-width: 768px) { .wfm-body { flex: 1; min-height: 0; max-height: none; overflow-y: auto; } .wfm-tab-row { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .wfm-tab-row::-webkit-scrollbar { display: none; } .wfm-tab-btn { flex-shrink: 0; white-space: nowrap; } .wfm-step-card-top { flex-wrap: wrap; gap: var(--space-sm); } .wfm-step-card-actions { flex-wrap: wrap; margin-left: 0; width: 100%; justify-content: flex-end; } .wfm-step-card-desc { overflow: visible; text-overflow: clip; white-space: normal; word-break: break-word; } .wfm-template-inner { flex-direction: column; } .wfm-mode-selector { flex-wrap: wrap; } .wfm-form-actions { flex-direction: column; } .wfm-form-actions .btn { width: 100%; } .wfm-footer { padding: 12px 14px; } } /* === Agent Prompts Manager === */ .prompt-manager { display: flex; flex-direction: column; gap: var(--space-md); } .prompt-manager-tabs { display: flex; gap: var(--space-xs); border-bottom: 1px solid var(--border); padding-bottom: var(--space-sm); } .prompt-manager-tab { display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-sm) var(--space-md); background: none; border: 1px solid transparent; border-radius: var(--radius-md); color: var(--text-muted); font-size: 13px; cursor: pointer; transition: all var(--transition-fast); } .prompt-manager-tab:hover { color: var(--text); background: var(--surface); } .prompt-manager-tab.active { color: var(--text); background: var(--surface); border-color: var(--border); } .prompt-manager-content { min-height: 200px; } .prompt-manager-templates-tab, .prompt-manager-assignments-tab, .prompt-manager-overrides-tab { display: flex; flex-direction: column; gap: var(--space-lg); } /* Templates Tab */ .prompt-template-section { display: flex; flex-direction: column; gap: var(--space-md); } .prompt-template-section-title { font-size: 14px; font-weight: 600; color: var(--text); margin: 0; } .prompt-template-section-desc { font-size: 12px; color: var(--text-muted); margin: 0; } .prompt-template-list { display: flex; flex-direction: column; gap: var(--space-md); } .prompt-template-card { padding: var(--space-md); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); transition: border-color var(--transition-fast); } .prompt-template-card:hover { border-color: var(--text-dim); } .prompt-template-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-sm); } .prompt-template-card-info { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-sm); } .prompt-template-card-name { font-weight: 600; color: var(--text); font-size: 14px; } .prompt-template-badge-built-in, .prompt-template-badge-custom, .prompt-template-badge-override { display: inline-flex; align-items: center; padding: 2px 6px; font-size: 10px; font-weight: 500; border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: 0.02em; } .prompt-template-badge-built-in { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); } .prompt-template-badge-custom { background: color-mix(in srgb, var(--ws-info) 15%, transparent); color: var(--ws-info); } .prompt-template-badge-override { background: color-mix(in srgb, var(--ws-warning) 15%, transparent); color: var(--ws-warning); } .prompt-template-badge-role { display: inline-flex; align-items: center; padding: 2px 6px; font-size: 10px; font-weight: 500; border-radius: var(--radius-sm); } .prompt-template-card-actions { display: flex; gap: var(--space-xs); } .prompt-template-card-actions .btn-icon { padding: var(--space-xs); } .prompt-template-card-description { font-size: 12px; color: var(--text-muted); margin: 0 0 var(--space-sm) 0; line-height: 1.4; } .prompt-template-card-preview { background: var(--surface); border-radius: var(--radius-sm); padding: var(--space-sm); overflow: hidden; } .prompt-template-card-preview code { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); white-space: pre-wrap; word-break: break-word; display: block; max-height: 60px; overflow: hidden; } .prompt-template-empty { padding: var(--space-lg); text-align: center; color: var(--text-muted); font-size: 13px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-md); } .prompt-template-add-btn { align-self: flex-start; margin-top: var(--space-sm); } /* Template Editor */ .prompt-template-editor { padding: var(--space-lg); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: var(--space-lg); } .prompt-template-editor-title { font-size: 14px; font-weight: 600; color: var(--text); margin: 0 0 var(--space-md) 0; } .prompt-template-editor-fields { display: flex; flex-direction: column; gap: var(--space-md); } .prompt-template-field { display: flex; flex-direction: column; gap: var(--space-xs); } .prompt-template-field label { font-size: 12px; font-weight: 500; color: var(--text-muted); } .prompt-template-field input, .prompt-template-field select, .prompt-template-prompt-textarea { padding: var(--space-sm) var(--space-md); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); font-size: 13px; transition: border-color var(--transition-fast); } .prompt-template-field input:focus, .prompt-template-field select:focus, .prompt-template-prompt-textarea:focus { outline: none; border-color: var(--todo); } .prompt-template-prompt-textarea { font-family: var(--font-mono); font-size: 12px; line-height: 1.5; resize: vertical; min-height: 120px; } .prompt-template-error { padding: var(--space-sm); background: color-mix(in srgb, var(--color-error) 10%, transparent); border: 1px solid var(--color-error); border-radius: var(--radius-sm); color: var(--color-error); font-size: 12px; } .prompt-template-editor-actions { display: flex; gap: var(--space-sm); justify-content: flex-end; margin-top: var(--space-sm); } /* Delete confirmation */ .prompt-template-delete-confirm { padding: var(--space-md); background: color-mix(in srgb, var(--color-error) 10%, transparent); border: 1px solid var(--color-error); border-radius: var(--radius-md); display: flex; flex-direction: column; gap: var(--space-sm); } .prompt-template-delete-confirm p { margin: 0; font-size: 13px; color: var(--text); } .prompt-template-delete-actions { display: flex; gap: var(--space-sm); } /* Assignments Tab */ .prompt-assignments-desc { font-size: 12px; color: var(--text-muted); margin: 0; } .prompt-role-assignment-list { display: flex; flex-direction: column; gap: var(--space-md); } .prompt-role-assignment-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); padding: var(--space-md); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); } .prompt-role-assignment-label { display: flex; align-items: center; gap: var(--space-md); } .prompt-role-badge { display: inline-flex; align-items: center; padding: var(--space-xs) var(--space-sm); font-size: 12px; font-weight: 600; border-radius: var(--radius-sm); } .prompt-role-assignment-status { font-size: 12px; color: var(--text-muted); } .prompt-role-select { min-width: 200px; padding: var(--space-sm) var(--space-md); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); font-size: 13px; cursor: pointer; } .prompt-role-select:focus { outline: none; border-color: var(--todo); } .prompt-assignments-note { margin-top: var(--space-md); padding: var(--space-md); background: var(--surface); border-radius: var(--radius-md); font-size: 12px; color: var(--text-muted); line-height: 1.5; } .prompt-assignments-note strong { color: var(--text); } /* Overrides Tab */ .prompt-overrides-desc { font-size: 12px; color: var(--text-muted); margin: 0; } .prompt-overrides-list { display: flex; flex-direction: column; gap: var(--space-md); } .prompt-override-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; } .prompt-override-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-md); cursor: pointer; transition: background var(--transition-fast); } .prompt-override-header:hover { background: var(--card-hover); } .prompt-override-info { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-sm); } .prompt-override-name { font-weight: 600; color: var(--text); font-size: 13px; } .prompt-override-key { font-size: 11px; font-family: var(--font-mono); color: var(--text-muted); padding: 2px 4px; background: var(--surface); border-radius: var(--radius-sm); } .prompt-override-badge { display: inline-flex; align-items: center; padding: 2px 6px; font-size: 10px; font-weight: 500; background: color-mix(in srgb, var(--ws-warning) 15%, transparent); color: var(--ws-warning); border-radius: var(--radius-sm); } .prompt-override-expand-btn { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: none; border: none; color: var(--text-muted); cursor: pointer; border-radius: var(--radius-sm); transition: color var(--transition-fast), background var(--transition-fast); } .prompt-override-expand-btn:hover { color: var(--text); background: var(--surface); } .prompt-override-description { font-size: 12px; color: var(--text-muted); margin: 0; padding: 0 var(--space-md) var(--space-md); line-height: 1.4; } .prompt-override-editor { padding: var(--space-md); border-top: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: var(--space-sm); } .prompt-override-textarea { padding: var(--space-sm) var(--space-md); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); font-size: 12px; font-family: var(--font-mono); line-height: 1.5; resize: vertical; min-height: 80px; transition: border-color var(--transition-fast); } .prompt-override-textarea:focus { outline: none; border-color: var(--todo); } .prompt-override-footer { display: flex; align-items: center; gap: var(--space-md); } .prompt-override-hint { font-size: 11px; color: var(--text-muted); } /* Responsive */ @media (max-width: 768px) { .prompt-manager-tabs { flex-wrap: wrap; } .prompt-manager-tab { flex: 1; justify-content: center; min-width: calc(50% - var(--space-xs)); } .prompt-role-assignment-row { flex-direction: column; align-items: stretch; gap: var(--space-sm); } .prompt-role-select { width: 100%; } .prompt-template-editor-actions { flex-direction: column; } .prompt-template-editor-actions .btn { width: 100%; } } .new-task-modal .form-group small { display: block; margin-top: var(--space-sm); font-size: 12px; color: var(--text-muted); line-height: 1.4; } .new-task-modal textarea { min-height: 80px; transition: height 0.1s ease-out; } .selected-deps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-sm); padding: 2px 0; } .dep-chip { display: inline-flex; align-items: center; gap: var(--space-xs); padding: 3px 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: 12px; color: var(--text); font-family: var(--font-mono); max-width: 100%; } .dep-chip-remove { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 12px; line-height: 1; padding: 0; margin-left: 2px; border-radius: 50%; transition: background 0.1s, color 0.1s; } .dep-chip-remove:hover { color: var(--color-error); background: color-mix(in srgb, var(--color-error) 10%, transparent); } .model-select-row { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); } .model-select-row:last-child { margin-bottom: 0; } .model-select-label { width: 70px; flex-shrink: 0; font-size: 13px; color: var(--text-muted); text-align: right; } /* === Scripts Modal === */ .scripts-modal { display: flex; flex-direction: column; } .scripts-modal-body { padding: 16px; max-height: 70vh; overflow-y: auto; } @media (max-width: 768px) { .scripts-modal-body { max-height: none; flex: 1; min-height: 0; } .scripts-modal-list-header { flex-wrap: wrap; gap: var(--space-sm); } .scripts-modal-list-header .btn { width: 100%; justify-content: center; } .scripts-modal-form-actions { flex-wrap: wrap; gap: var(--space-sm); } .scripts-modal-form-actions .btn { flex: 1; min-width: 0; } .script-card-header { flex-wrap: wrap; gap: var(--space-sm); } .script-card-actions { flex-wrap: wrap; width: 100%; margin-left: 0; justify-content: flex-end; } .script-delete-confirm { display: flex; flex-wrap: wrap; } } /* ── Scheduled Tasks ──────────────────────────────────────────────── */ .schedule-modal-content { padding: var(--space-lg) 20px; overflow-y: auto; max-height: 70vh; } .schedule-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-md); padding: 48px 24px; color: var(--text-muted); text-align: center; } .schedule-empty-state h4 { margin: 0; font-size: 16px; color: var(--text-primary); } .schedule-empty-state p { margin: 0; font-size: 13px; } .schedule-empty-state .btn { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-sm); } .schedule-list { display: flex; flex-direction: column; gap: var(--space-md); } .schedule-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; background: var(--card-bg); transition: border-color 0.15s; } .schedule-card:hover { border-color: var(--border-hover, var(--border)); } .schedule-card.disabled { opacity: 0.55; } .schedule-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-md); } .schedule-card-info { flex: 1; min-width: 0; } .schedule-card-name-row { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; } .schedule-card-name { font-weight: 600; font-size: 14px; color: var(--text-primary); } .schedule-type-badge { font-size: 11px; font-weight: 500; padding: 1px 7px; border-radius: 999px; border: 1px solid; line-height: 1.5; white-space: nowrap; } .schedule-card-description { margin: 4px 0 0; font-size: 12px; color: var(--text-muted); line-height: 1.4; } .schedule-card-actions { display: flex; align-items: center; gap: var(--space-xs); flex-shrink: 0; } .schedule-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); margin-top: 10px; font-size: 12px; color: var(--text-muted); } .schedule-meta-item { display: flex; align-items: center; gap: var(--space-xs); } .schedule-meta-label { font-weight: 500; } .schedule-cron { font-size: 11px; padding: 1px 5px; background: var(--bg-secondary); border-radius: var(--radius-sm); } .schedule-run-badge { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: 11px; font-weight: 500; padding: 1px 7px; border-radius: 999px; } .schedule-run-badge.success { color: var(--ws-success); background: color-mix(in srgb, var(--ws-success) 10%, transparent); } .schedule-run-badge.failure { color: var(--ws-error); background: color-mix(in srgb, var(--ws-error) 10%, transparent); } .schedule-run-duration { opacity: 0.7; } /* Run History */ .schedule-card-history { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 8px; } .schedule-history-toggle { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); background: none; border: none; cursor: pointer; padding: 2px 0; width: 100%; text-align: left; } .schedule-history-toggle:hover { color: var(--text-primary); } .schedule-history-list { display: flex; flex-direction: column; gap: var(--space-xs); margin-top: var(--space-sm); } .schedule-history-item { border-radius: var(--radius-sm); } .schedule-history-header { display: flex; align-items: center; gap: var(--space-sm); width: 100%; padding: 4px 6px; font-size: 12px; color: var(--text-muted); background: none; border: none; cursor: pointer; border-radius: var(--radius-sm); } .schedule-history-header:hover { background: var(--bg-secondary); } .schedule-history-status.success { color: var(--ws-success); } .schedule-history-status.failure { color: var(--ws-error); } .schedule-history-time { flex: 1; } .schedule-history-duration { opacity: 0.6; } .schedule-history-detail { padding: 4px 6px 8px 26px; } .schedule-history-output { font-size: 11px; line-height: 1.4; margin: 0; padding: var(--space-sm); background: var(--bg-secondary); border-radius: var(--radius-sm); overflow-x: auto; max-height: 200px; overflow-y: auto; white-space: pre-wrap; word-break: break-all; } .schedule-history-error { font-size: 11px; color: var(--ws-error); margin-top: var(--space-xs); } .schedule-history-more { font-size: 11px; color: var(--text-muted); padding: 4px 6px; text-align: center; } /* Schedule card: step count badge */ .schedule-steps-badge { font-size: 11px; font-weight: 500; color: var(--text-secondary); } .schedule-meta-command-preview { max-width: 200px; overflow: hidden; } .schedule-command-preview { font-size: 11px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; } /* Step result indicators (dots in run history header) */ .step-results-indicator { display: inline-flex; gap: 3px; align-items: center; margin: 0 4px; } .step-result-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; } .step-result-dot.success { background: var(--ws-success); } .step-result-dot.failure { background: var(--ws-error); } /* Per-step results in run history detail */ .schedule-step-results { display: flex; flex-direction: column; gap: var(--space-xs); margin-bottom: var(--space-sm); padding: 6px; border-radius: var(--radius-sm); background: var(--bg-secondary); } .schedule-step-result { display: flex; align-items: center; gap: 6px; font-size: 11px; } .schedule-step-result-status { display: flex; align-items: center; } .schedule-step-result.success .schedule-step-result-status { color: var(--ws-success); } .schedule-step-result.failure .schedule-step-result-status { color: var(--ws-error); } .schedule-step-result-name { font-weight: 500; color: var(--text-primary); } .schedule-step-result-error { color: var(--ws-error); font-size: 10px; } /* Step type badges */ .step-type-badge { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: 0.02em; } .step-type-command { color: var(--ws-pre-merge); background: color-mix(in srgb, var(--ws-pre-merge) 12%, transparent); } .step-type-ai-prompt { color: var(--ws-teal); background: color-mix(in srgb, var(--ws-teal) 12%, transparent); } /* Steps editor */ .steps-editor { margin: 8px 0; } .steps-editor-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-sm); } .steps-editor-title { font-size: 12px; font-weight: 600; color: var(--text-secondary); } .steps-empty-state { padding: var(--space-lg); text-align: center; color: var(--text-muted); font-size: 12px; border: 1px dashed var(--border); border-radius: var(--radius-sm); margin-bottom: var(--space-sm); } .steps-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-sm); } .step-card { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-primary); } .step-card-row { display: flex; align-items: center; gap: var(--space-sm); padding: 8px 10px; } .step-card-drag { color: var(--text-muted); cursor: grab; display: flex; align-items: center; } .step-card-index { font-size: 10px; font-weight: 700; color: var(--text-muted); min-width: 16px; text-align: center; } .step-card-name { flex: 1; font-size: 12px; font-weight: 500; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .step-card-flag { font-size: 10px; } .step-card-actions { display: flex; gap: 2px; align-items: center; } /* Step editor inline form */ .step-editor { padding: var(--space-md); } .step-editor .form-group { margin-bottom: var(--space-sm); } .step-editor-actions { display: flex; gap: var(--space-sm); justify-content: flex-end; margin-top: var(--space-md); } /* Steps add buttons */ .steps-add-buttons { display: flex; gap: var(--space-sm); } .steps-add-buttons .btn { display: inline-flex; align-items: center; gap: var(--space-xs); } /* Schedule form mode toggle */ .schedule-mode-toggle { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; } .schedule-mode-btn { flex: 1; padding: 6px 12px; font-size: 12px; font-weight: 500; border: none; background: var(--bg-secondary); color: var(--text-secondary); cursor: pointer; transition: background 0.15s, color 0.15s; } .schedule-mode-btn:hover { background: var(--bg-tertiary, var(--bg-secondary)); } .schedule-mode-btn.active { background: var(--ws-pre-merge); color: white; } .form-group-row { display: flex; gap: var(--space-md); } .form-group-row .form-group { flex: 1; } /* Schedule form within modal */ .schedule-form { padding: 0; } .schedule-form .modal-actions { padding: 16px 0 0; border-top: 1px solid var(--border); margin-top: var(--space-lg); } @media (max-width: 768px) { .schedule-modal-content { max-height: none; padding: var(--space-md) 14px; } .schedule-card-header { flex-wrap: wrap; gap: var(--space-sm); } .schedule-card-actions { flex-wrap: wrap; width: 100%; justify-content: flex-end; } } /* ── Routines ──────────────────────────────────────────────────── */ .routine-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-md); padding: 48px 24px; color: var(--text-muted); text-align: center; } .routine-empty-state h4 { margin: 0; font-size: 16px; color: var(--text-primary); } .routine-empty-state p { margin: 0; font-size: 13px; } .routine-empty-state .btn { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-sm); } .routine-list { display: flex; flex-direction: column; gap: var(--space-md); } .routine-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; background: var(--card-bg); transition: border-color 0.15s; } .routine-card:hover { border-color: var(--border-hover, var(--border)); } .routine-card.disabled { opacity: 0.55; } .routine-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-md); } .routine-card-info { flex: 1; min-width: 0; } .routine-card-name-row { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; } .routine-card-name { font-weight: 600; font-size: 14px; color: var(--text-primary); } .routine-trigger-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; padding: 1px 7px; border-radius: 999px; border: 1px solid; line-height: 1.5; white-space: nowrap; } .routine-card-description { margin: 4px 0 0; font-size: 12px; color: var(--text-muted); line-height: 1.4; } .routine-card-actions { display: flex; align-items: center; gap: var(--space-xs); flex-shrink: 0; } .routine-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); margin-top: 10px; font-size: 12px; color: var(--text-muted); } .routine-meta-item { display: flex; align-items: center; gap: var(--space-xs); } .routine-meta-label { font-weight: 500; } .routine-cron { font-size: 11px; padding: 1px 5px; background: var(--bg-secondary); border-radius: var(--radius-sm); } .routine-policy-badge { font-size: 11px; padding: 1px 7px; background: var(--bg-secondary); border-radius: var(--radius-sm); color: var(--text-secondary); } .routine-card-history { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 8px; } .routine-history-trigger-type { font-size: 10px; padding: 0px 4px; background: var(--bg-tertiary); border-radius: var(--radius-sm); color: var(--text-muted); margin-left: 4px; } /* Routine form */ .routine-form { padding: 0; } .routine-form .modal-actions { padding: 16px 0 0; border-top: 1px solid var(--border); margin-top: var(--space-lg); } .routine-trigger-type-selector { display: flex; gap: var(--space-sm); flex-wrap: wrap; } .routine-trigger-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); color: var(--text-secondary); font-size: 13px; font-weight: 500; cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s; } .routine-trigger-btn:hover { border-color: var(--border-hover, var(--border)); background: var(--bg-secondary); color: var(--text-primary); } .routine-trigger-btn.active { border-color: var(--in-progress); background: color-mix(in srgb, var(--in-progress) 10%, transparent); color: var(--in-progress); } .routine-trigger-info { display: block; padding: var(--space-md); background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 13px; color: var(--text-secondary); } /* Routine mobile responsive */ @media (max-width: 768px) { .routine-card-header { flex-wrap: wrap; gap: var(--space-sm); } .routine-card-actions { flex-wrap: wrap; width: 100%; justify-content: flex-end; } .routine-trigger-type-selector { flex-direction: column; } .routine-trigger-btn { justify-content: center; } } /* ── Activity Log Modal ─────────────────────────────────────────── */ .activity-log-modal { max-height: 80vh; display: flex; flex-direction: column; } .activity-log-header { /* Extends shared .modal-header with activity-log-specific overrides */ gap: var(--space-sm); } .activity-log-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--text); } .activity-log-actions { display: flex; align-items: center; gap: var(--space-sm); } .activity-log-filter { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); } .activity-log-filter-select { background: transparent; border: none; color: var(--text); font-size: 13px; cursor: pointer; outline: none; } .activity-log-refresh, .activity-log-clear { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: none; background: transparent; color: var(--text-muted); cursor: pointer; border-radius: var(--radius-sm); transition: background var(--transition-fast), color var(--transition-fast); } .activity-log-refresh:hover, .activity-log-clear:hover { background: var(--card-hover); color: var(--text); } .activity-log-content { flex: 1; overflow-y: auto; padding: var(--space-lg) 20px; min-height: 300px; } .activity-log-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; color: var(--text-muted); text-align: center; } .activity-log-empty-icon { opacity: 0.3; margin-bottom: var(--space-lg); } .activity-log-empty p { font-size: 14px; margin: 0; } .activity-log-error { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-md) var(--space-lg); background: color-mix(in srgb, var(--ws-error) 10%, transparent); color: var(--ws-error); border-radius: var(--radius-md); margin-bottom: var(--space-lg); font-size: 13px; } .activity-log-list { display: flex; flex-direction: column; gap: var(--space-md); } .activity-log-entry { display: flex; gap: var(--space-md); padding: var(--space-md); background: var(--bg-secondary); border-radius: var(--radius-md); border: 1px solid var(--border); } .activity-log-entry-icon { flex-shrink: 0; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); } .activity-icon { color: var(--text-muted); } .activity-icon.created { color: var(--todo); } .activity-icon.moved { color: var(--in-progress); } .activity-icon.updated { color: var(--color-info); } .activity-icon.deleted { color: var(--ws-error); } .activity-icon.merged { color: var(--done); } .activity-icon.failed { color: var(--ws-error); } .activity-icon.settings { color: var(--text-muted); } .activity-log-entry-content { flex: 1; min-width: 0; } .activity-log-entry-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-xs); } .activity-log-entry-type { font-size: 12px; font-weight: 600; color: var(--text); text-transform: capitalize; } .activity-log-entry-time { font-size: 11px; color: var(--text-muted); } .activity-log-entry-details { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-xs); } .activity-log-task-link { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--todo); background: none; border: none; padding: 0; cursor: pointer; text-decoration: none; } .activity-log-task-link:hover { text-decoration: underline; } .activity-log-task-title { font-size: 13px; font-weight: 500; color: var(--text); } .activity-log-entry-text { font-size: 13px; color: var(--text-muted); } .activity-log-entry-metadata { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: 6px; } .activity-log-metadata-item { font-size: 11px; padding: 2px 8px; background: var(--bg); border-radius: var(--radius-sm); color: var(--text-muted); } .activity-log-metadata-item.success { color: var(--color-success); background: color-mix(in srgb, var(--color-success) 10%, transparent); } .activity-log-metadata-item.error { color: var(--ws-error); background: color-mix(in srgb, var(--ws-error) 10%, transparent); } .activity-log-load-more { width: 100%; padding: var(--space-md); margin-top: var(--space-lg); background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); font-size: 13px; cursor: pointer; transition: background var(--transition-fast); } .activity-log-load-more:hover { background: var(--card-hover); } .activity-log-loading { display: flex; align-items: center; justify-content: center; padding: 20px; } .activity-log-loading .spin { animation: spin 1s linear infinite; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } /* Active filters bar */ .activity-log-active-filters { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) 20px; border-bottom: 1px solid var(--border); background: var(--bg-secondary); flex-wrap: wrap; } .activity-log-filter-label { font-size: 12px; color: var(--text-muted); font-weight: 500; } .activity-log-filter-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--text-muted); font-size: 11px; font-weight: 600; } .activity-log-clear-filters { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); font-size: 11px; cursor: pointer; transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast); } .activity-log-clear-filters:hover { background: var(--card-hover); color: var(--text); border-color: var(--text-dim); } /* Project filter variant */ .activity-log-filter--project { min-width: 140px; } /* Confirmation dialog */ .activity-log-confirm-overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--text) 50%, transparent); display: flex; align-items: center; justify-content: center; z-index: 100; border-radius: var(--radius-lg); } .activity-log-confirm-dialog { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-xl); max-width: 360px; text-align: center; } .activity-log-confirm-dialog h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--text); } .activity-log-confirm-dialog p { margin: 0 0 20px; font-size: 13px; color: var(--text-muted); } .activity-log-confirm-actions { display: flex; gap: var(--space-md); justify-content: center; } .activity-log-confirm-cancel, .activity-log-confirm-clear { padding: 10px 20px; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; cursor: pointer; transition: background var(--transition-fast); } .activity-log-confirm-cancel { background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text); } .activity-log-confirm-cancel:hover { background: var(--card-hover); } .activity-log-confirm-clear { background: var(--ws-error); border: 1px solid var(--ws-error); color: var(--cta-text); } .activity-log-confirm-clear:hover { background: var(--ws-error-dark); border-color: var(--ws-error-dark); } /* ── Activity Log — Mobile (≤ 768px) ─────────────────────────────── */ @media (max-width: 768px) { /* Full-screen modal on mobile, matching .modal/.modal-lg pattern */ .activity-log-modal { max-height: 100vh; max-height: 100dvh; } /* Header: stack title above actions */ .activity-log-header { flex-wrap: wrap; gap: var(--space-sm); padding: var(--space-md) var(--space-lg); } .activity-log-title { flex: 1 1 auto; } .activity-log-actions { flex: 1 1 100%; flex-wrap: wrap; gap: var(--space-xs); } /* Close button: move before actions in visual order, pin to right edge */ .activity-log-header .modal-close { order: -1; margin-left: auto; } /* Filter containers fill available width */ .activity-log-filter, .activity-log-filter--project { flex: 1 1 0; min-width: 0; } .activity-log-filter-select { width: 100%; } /* Action buttons stay inline but shrink */ .activity-log-refresh, .activity-log-clear { width: 28px; height: 28px; flex-shrink: 0; } /* Active filters bar wraps on small screens */ .activity-log-active-filters { flex-wrap: wrap; padding: var(--space-sm) var(--space-lg); gap: var(--space-xs); } .activity-log-clear-filters { margin-left: 0; } /* Content area tighter padding */ .activity-log-content { padding: var(--space-md) var(--space-lg); min-height: 200px; } /* Entries: allow content to wrap freely */ .activity-log-entry { min-height: 36px; gap: var(--space-sm); padding: var(--space-sm); } .activity-log-entry-icon { width: 24px; height: 24px; } .activity-log-entry-header { flex-wrap: wrap; gap: var(--space-xs); } .activity-log-entry-details { flex-wrap: wrap; word-break: break-word; } .activity-log-entry-text { word-break: break-word; } /* Empty state compact */ .activity-log-empty { padding: var(--space-xl) var(--space-lg); } /* Confirmation dialog fills more of the viewport */ .activity-log-confirm-dialog { max-width: calc(100vw - 32px); margin: 0 var(--space-lg); } .activity-log-confirm-actions { flex-direction: column; gap: var(--space-sm); } .activity-log-confirm-cancel, .activity-log-confirm-clear { width: 100%; text-align: center; } } /* ══════════════════════════════════════════════════════════════════ GIT MANAGER MODAL ══════════════════════════════════════════════════════════════════ */ /* Modal size override - flex layout for sidebar + content */ .gm-modal { width: 900px; max-width: 95vw; max-height: 85vh; display: flex; flex-direction: column; overflow: hidden; } /* Main layout: sidebar + content */ .gm-layout { display: flex; flex: 1; min-height: 0; overflow: hidden; } /* ── Sidebar ── */ .gm-sidebar { display: flex; flex-direction: column; width: 160px; min-width: 160px; border-right: 1px solid var(--border); background: rgba(0, 0, 0, 0.05); padding: var(--space-sm) 0; overflow-y: auto; } .gm-nav-item { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-lg); background: none; border: none; color: var(--text-muted); font-size: 13px; cursor: pointer; transition: all var(--transition-fast); text-align: left; width: 100%; border-left: 3px solid transparent; } .gm-nav-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); } .gm-nav-item.active { color: var(--text); background: rgba(88, 166, 255, 0.08); border-left-color: var(--todo); font-weight: 500; } /* ── Header Actions ── */ .gm-header-actions { display: flex; align-items: center; gap: var(--space-sm); } /* ── Content Area ── */ .gm-content { flex: 1; display: flex; flex-direction: column; overflow-y: auto; padding: var(--space-lg); min-height: 400px; position: relative; } /* ── Loading / Error ── */ .gm-loading { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); padding: var(--space-2xl); color: var(--text-muted); font-size: 14px; } .gm-error { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-lg); background: rgba(248, 81, 73, 0.1); border: 1px solid rgba(248, 81, 73, 0.2); border-radius: var(--radius-md); color: var(--color-error); font-size: 13px; } .gm-error .btn { margin-left: auto; } /* ── Panel Container ── */ .gm-panel { display: flex; flex: 1; flex-direction: column; min-height: 0; gap: var(--space-md); } .gm-panel-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); } .gm-panel-header h4 { font-size: 15px; font-weight: 600; margin: 0; } /* ── Empty State ── */ .gm-empty { display: flex; align-items: center; justify-content: center; padding: var(--space-xl); color: var(--text-dim); font-size: 13px; font-style: italic; } /* ── Status Panel ── */ .gm-status-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); } .gm-status-card { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-md); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); } .gm-status-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); } .gm-status-value { display: flex; align-items: center; gap: var(--space-xs); font-size: 14px; color: var(--text); } .gm-status-badge { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: 13px; font-weight: 500; padding: 2px 8px; border-radius: var(--radius-sm); } .gm-status-badge.clean { color: var(--color-success); background: rgba(63, 185, 80, 0.1); } .gm-status-badge.dirty { color: var(--color-error); background: rgba(248, 81, 73, 0.1); } .gm-hash { font-family: var(--font-mono); font-size: 12px; background: rgba(255, 255, 255, 0.05); padding: 2px 6px; border-radius: var(--radius-sm); color: var(--todo); } .gm-ahead { display: inline-flex; align-items: center; gap: 2px; color: var(--color-success); font-size: 13px; font-weight: 500; } .gm-behind { display: inline-flex; align-items: center; gap: 2px; color: var(--color-error); font-size: 13px; font-weight: 500; } .gm-in-sync { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--color-success); font-size: 13px; } /* ── Icon Button ── */ .gm-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: none; border: none; border-radius: var(--radius-sm); color: var(--text-muted); cursor: pointer; transition: all var(--transition-fast); flex-shrink: 0; } .gm-icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); } /* ── Search Box ── */ .gm-search-box { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); flex: 0 0 auto; max-width: 200px; } .gm-search-box input { background: none; border: none; color: var(--text); font-size: 12px; outline: none; width: 100%; min-width: 0; } .gm-search-box svg { color: var(--text-muted); flex-shrink: 0; } /* ── Changes Panel ── */ .gm-changes-header { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-sm) var(--space-md); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); } .gm-branch-indicator { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: 13px; font-weight: 500; color: var(--text); } .gm-dirty-badge { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: var(--radius-sm); background: rgba(248, 81, 73, 0.1); color: var(--color-error); } /* ── File Section ── */ .gm-file-section { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; } .gm-file-section-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-sm) var(--space-md); background: rgba(0, 0, 0, 0.1); border-bottom: 1px solid var(--border); } .gm-file-section-header h5 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; color: var(--text-muted); margin: 0; } .gm-file-section-actions { display: flex; gap: var(--space-xs); } /* ── File List ── */ .gm-file-list { max-height: 200px; overflow-y: auto; } .gm-file-item { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-md); border-bottom: 1px solid rgba(255, 255, 255, 0.03); font-size: 13px; transition: background var(--transition-fast); } .gm-file-item:last-child { border-bottom: none; } .gm-file-item:hover { background: rgba(255, 255, 255, 0.03); } .gm-file-item.staged { background: rgba(63, 185, 80, 0.03); } .gm-file-checkbox { display: flex; align-items: center; cursor: pointer; flex-shrink: 0; } .gm-file-checkbox input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--todo); } .gm-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: 12px; color: var(--text); } .gm-file-icon { flex-shrink: 0; } .gm-file-added { color: var(--color-success); } .gm-file-modified { color: var(--todo); } .gm-file-deleted { color: var(--color-error); } .gm-file-renamed { color: var(--in-progress); } .gm-file-badge { font-family: var(--font-mono); font-size: 10px; font-weight: 700; padding: 1px 4px; border-radius: var(--radius-sm); flex-shrink: 0; } .gm-file-badge-added, .gm-file-badge-untracked { background: rgba(63, 185, 80, 0.15); color: var(--color-success); } .gm-file-badge-modified { background: rgba(88, 166, 255, 0.15); color: var(--todo); } .gm-file-badge-deleted { background: rgba(248, 81, 73, 0.15); color: var(--color-error); } .gm-file-badge-renamed, .gm-file-badge-copied { background: rgba(188, 140, 255, 0.15); color: var(--in-progress); } /* ── Diff Viewer ── */ .gm-diff-section { display: flex; flex-direction: column; gap: var(--space-sm); } .changed-files-diff-section { height: 100%; } .gm-diff-viewer { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--card); } .gm-diff-stat { padding: var(--space-sm) var(--space-md); background: var(--surface); font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); border-bottom: 1px solid var(--border); margin: 0; white-space: pre-wrap; word-break: break-all; } .gm-diff-patch { padding: var(--space-sm) var(--space-md); font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: var(--text); max-height: 420px; overflow: auto; margin: 0; white-space: pre-wrap; word-break: break-all; } .gm-diff-loading { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); padding: var(--space-lg); color: var(--text-muted); font-size: 13px; background: var(--surface); border-radius: var(--radius-md); border: 1px solid var(--border); } .gm-diff-error { padding: var(--space-md); color: var(--color-error); font-size: 13px; background: var(--surface); border-radius: var(--radius-md); border: 1px solid var(--border); } .changed-files-layout { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); min-height: 60vh; } .changed-files-sidebar { border-right: 1px solid var(--border); background: var(--surface); } .changed-files-content { padding: var(--space-md); min-width: 0; display: flex; flex-direction: column; overflow-y: auto; } .changed-files-entry { /* Button reset — entries are