:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #131720;
  --bg-tertiary: #1a1f2e;
  --bg-input: #0f131f;
  --bg-hover: #1f2533;

  --border-color: #252b3b;
  --border-hover: #2d3548;
  --border-subtle: #1d2332;

  --text-primary: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-tertiary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-primary: #10b981;
  --accent-hover: #059669;
  --accent-active: #047857;
  --accent-text: #ffffff;
  --accent-light: rgba(16, 185, 129, 0.1);

  --error-color: #ef4444;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

[data-theme="light"] {
  --bg-primary: #fafbfc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f7f9fb;
  --bg-input: #ffffff;
  --bg-hover: #f1f3f5;

  --border-color: #e5e9f0;
  --border-hover: #d1d8e0;
  --border-subtle: #eff2f7;

  --text-primary: #1e293b;
  --text-secondary: #334155;
  --text-tertiary: #475569;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --accent-primary: #10b981;
  --accent-hover: #059669;
  --accent-active: #047857;
  --accent-text: #ffffff;
  --accent-light: rgba(16, 185, 129, 0.08);

  --error-color: #ef4444;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

.card {
  background-color: var(--bg-secondary);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: all 0.2s ease;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-light);
}

textarea {
  resize: vertical;
  font-family: "Courier New", Consolas, Monaco, monospace;
  line-height: 1.6;
}

.btn-primary {
  width: 100%;
  padding: 14px 24px;
  background-color: var(--accent-primary);
  color: var(--accent-text);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-primary:active {
  background-color: var(--accent-active);
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.theme-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.2s ease;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.theme-icon {
  display: block;
  line-height: 1;
}

.app-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.app-header {
  margin-bottom: 32px;
}

.run-brand {
  margin-bottom: 20px;
}

.run-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.run-brand-link:hover {
  opacity: 0.8;
}

.run-brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 10px;
}

.run-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.header-title-section {
  flex: 1;
  min-width: 0;
}

.run-title {
  margin: 0 0 6px 0;
  font-size: 2rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.run-title-editable {
  cursor: pointer;
  padding: 4px 8px;
  margin-left: -8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-block;
}

.run-title-editable:hover {
  background-color: var(--accent-light);
  color: var(--accent-primary);
}

.run-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.meta-separator {
  margin: 0 4px;
  color: var(--text-dim);
}

.run-countdown {
  font-weight: 600;
  color: var(--text-tertiary);
  padding: 2px 8px;
  border-radius: 6px;
  background-color: var(--bg-tertiary);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.run-countdown.warning {
  background-color: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.run-countdown.critical {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error-color);
  animation: pulse 2s ease-in-out infinite;
}

.run-countdown.expired {
  background-color: rgba(107, 114, 128, 0.1);
  color: var(--text-dim);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.terminate-run-btn {
  background-color: var(--bg-tertiary);
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.terminate-run-btn:hover {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: var(--error-color);
  color: var(--error-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.terminate-run-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.terminate-run-btn svg {
  display: block;
  flex-shrink: 0;
}

.leave-run-btn {
  background-color: var(--bg-tertiary);
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.leave-run-btn:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.leave-run-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.leave-run-btn svg {
  display: block;
}

.share-container {
  position: relative;
}

.share-button {
  background-color: var(--bg-tertiary);
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.share-button:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-hover);
  color: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.share-button:active {
  transform: translateY(0);
  box-shadow: none;
}

.share-button svg {
  display: block;
}

.share-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 1000;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.share-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.share-option:hover {
  background-color: var(--accent-light);
  color: var(--accent-primary);
}

.share-option svg {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.share-option:hover svg {
  color: var(--accent-primary);
}

.share-option span {
  flex: 1;
}

.header-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .header-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-share-card {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .header-info-grid {
    grid-template-columns: 2fr 1.5fr 2.5fr;
  }

  .header-share-card {
    grid-column: auto;
  }
}

.header-info-card {
  background-color: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.header-info-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.info-card-icon {
  width: 40px;
  height: 40px;
  background-color: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-primary);
}

.info-card-content {
  flex: 1;
  min-width: 0;
}

.info-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.info-card-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.run-progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--bg-tertiary);
  border-radius: 999px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

#run-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary), #34d399);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.connected-avatars {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.share-link-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.run-link-value {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-secondary);
  word-break: break-all;
  font-family: 'Courier New', monospace;
  background-color: var(--bg-tertiary);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.btn-copy-link {
  padding: 8px 16px;
  background-color: var(--accent-primary);
  color: var(--accent-text);
  border: none;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.btn-copy-link:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-copy-link:active {
  background-color: var(--accent-active);
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.app-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.join-card {
  max-width: 500px;
  margin: 0 auto;
}

.join-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1.5px solid var(--border-subtle);
}

.join-header h2 {
  margin: 0 0 12px 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.join-header p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.join-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.join-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.join-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.join-input {
  width: 100%;
  padding: 14px 16px;
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

.join-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background-color: var(--bg-input);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.join-input::placeholder {
  color: var(--text-dim);
}

.join-submit-btn {
  width: 100%;
  padding: 16px 24px;
  background: var(--accent-primary);
  color: var(--accent-text);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.join-submit-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.join-submit-btn:active {
  background: var(--accent-active);
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.join-submit-btn svg {
  transition: transform 0.2s ease;
}

.join-submit-btn:hover svg {
  transform: translateX(2px);
}

.status-message {
  font-size: 0.875rem;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  display: none;
}

.status-message:not(:empty) {
  display: block;
  background-color: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.run-card h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.form-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.form-row input[type="text"] {
  flex: 1;
}

.form-row button {
  border-radius: 10px;
  border: none;
  padding: 10px 18px;
  font-size: 0.9375rem;
  cursor: pointer;
  background: var(--accent-primary);
  color: var(--accent-text);
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.form-row button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.status-line {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.run-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 1024px) {
  .run-container {
    flex-direction: row;
    align-items: flex-start;
  }

  .run-card {
    flex: 1;
  }

  .timeline-card {
    width: 320px;
    flex-shrink: 0;
  }
}

.run-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.connection-status {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background-color: var(--accent-light);
  color: var(--accent-primary);
}

.task-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 900px) {
  .task-groups {
    flex-direction: row;
    align-items: flex-start;
  }
}

.task-group {
  flex: 1;
}

.task-group h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 700;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100px;
  padding: 8px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.add-task-form {
  margin-top: 12px;
}

.add-task-form input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

.add-task-form input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-primary);
  background-color: var(--bg-input);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.add-task-form input[type="text"]::placeholder {
  color: var(--text-dim);
}

.task-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background-color: var(--bg-tertiary);
  border: 1.5px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.task-drag-handle {
  color: var(--text-dim);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.3;
  transition: all 0.2s ease;
  padding: 4px;
  align-self: flex-end;
  margin-left: auto;
}

.task-row:hover .task-drag-handle {
  opacity: 0.6;
}

.task-row {
  cursor: grab;
}

.task-row:active {
  cursor: grabbing;
}

.task-row.dragging {
  opacity: 0.5;
  transform: scale(0.98);
}

.task-row.drop-before {
  border-top: 3px solid var(--accent-primary);
  margin-top: -3px;
}

.task-row.drop-after {
  border-bottom: 3px solid var(--accent-primary);
  margin-bottom: -3px;
}

.task-row.done {
  background-color: var(--accent-light);
  border-color: var(--accent-primary);
  opacity: 0.8;
}

.task-time-editable.time-status-on-time {
  color: var(--accent-primary);
}

.task-time-editable.time-status-on-time::before {
  content: '✓ ';
  font-size: 0.75rem;
}

.task-time-editable.time-status-warning {
  color: #f59e0b;
}

.task-time-editable.time-status-warning::before {
  content: '⚠ ';
  font-size: 0.75rem;
}

.task-time-editable.time-status-overdue {
  color: var(--error-color);
}

.task-time-editable.time-status-overdue::before {
  content: '⚠ ';
  font-size: 0.75rem;
}

.task-list.drag-over {
  background-color: var(--accent-light);
  border: 2px dashed var(--accent-primary);
  box-shadow: 0 0 0 4px var(--accent-light);
}

.task-list:empty::before {
  content: 'Drop tasks here';
  display: block;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.875rem;
  padding: 32px 16px;
  opacity: 0.5;
}

.task-complete-btn {
  margin-top: 3px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.task-complete-btn:hover {
  background: var(--bg-hover);
  color: var(--text-secondary);
  transform: scale(1.05);
}

.task-complete-btn.completed {
  color: var(--accent-primary);
}

.task-complete-btn.completed:hover {
  background: var(--accent-light);
  color: var(--accent-primary);
}

.task-main {
  flex: 1;
}

.task-delete-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  opacity: 0;
  flex-shrink: 0;
  line-height: 1;
  margin-top: -2px;
}

.task-row:hover .task-delete-btn {
  opacity: 1;
}

.task-delete-btn:hover {
  background-color: var(--error-color);
  color: #ffffff;
  transform: scale(1.1);
}

.task-delete-btn:active {
  transform: scale(0.95);
}

.task-line {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.task-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.task-text-editable,
.task-time-editable,
.task-owner-editable {
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.task-text-editable:hover {
  background-color: var(--accent-light);
}

.task-time-editable:hover,
.task-owner-editable:hover {
  background-color: var(--accent-light);
}

.inline-edit {
  width: 100%;
  padding: 4px 8px;
  background-color: var(--bg-input);
  border: 1.5px solid var(--accent-primary);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: inherit;
  box-shadow: 0 0 0 3px var(--accent-light);
}

.inline-edit:focus {
  outline: none;
}

.time-picker {
  width: auto;
  min-width: 120px;
  color-scheme: dark;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid var(--bg-secondary);
}

.task-avatar {
  width: 22px;
  height: 22px;
  font-size: 0.65rem;
  border-width: 1.5px;
}

.task-done-info {
  margin-left: 4px;
}

.timeline-card {
  display: flex;
  flex-direction: column;
  max-height: 600px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
}

.timeline-card::-webkit-scrollbar {
  width: 6px;
}

.timeline-card::-webkit-scrollbar-track {
  background: var(--bg-input);
  border-radius: 3px;
}

.timeline-card::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.timeline-card::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

.timeline-header {
  margin: 0 0 20px 0;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex: 1;
}

.timeline-container::-webkit-scrollbar {
  width: 6px;
}

.timeline-container::-webkit-scrollbar-track {
  background: var(--bg-input);
  border-radius: 3px;
}

.timeline-container::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.timeline-container::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

.timeline-event {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.timeline-event:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.event-details {
  flex: 1;
  min-width: 0;
}

.event-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  word-wrap: break-word;
  line-height: 1.5;
}

.event-time {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.timeline-empty {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 20px;
}

.side-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.side-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.side-tab {
  flex: 1;
  background-color: var(--bg-tertiary);
  border: 1.5px solid var(--border-color);
  padding: 8px 12px;
  font-size: 0.8125rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 600;
  transition: all 0.2s ease;
}

.side-tab:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-hover);
}

.side-tab.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--accent-text);
  box-shadow: var(--shadow-sm);
}

.chat-badge {
  display: inline-block;
  background: var(--error-color);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 6px;
  min-width: 18px;
  text-align: center;
  line-height: 1.2;
}

.side-content {
  flex: 1;
  min-height: 0;
}

.side-panel-view {
  display: none;
  height: 100%;
}

.side-panel-view.active {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: var(--bg-input);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

.chat-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f9fafb;
  flex-shrink: 0;
  border: 2px solid var(--bg-secondary);
}

.chat-body {
  flex: 1;
  min-width: 0;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.chat-author {
  font-weight: 600;
  color: var(--text-secondary);
}

.chat-time {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.chat-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  word-wrap: break-word;
  line-height: 1.5;
}

.chat-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1.5px solid var(--border-color);
  position: relative;
}

.chat-input-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-form input[type="text"] {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

.chat-form input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.emoji-btn {
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.emoji-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  transform: scale(1.05);
}

.emoji-picker {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-width: 280px;
  animation: slideUp 0.2s ease;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.emoji-item {
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border-subtle);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.emoji-item:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
  transform: scale(1.1);
}

.hidden {
  display: none;
}

@media (max-width: 1023px) {
  .timeline-card {
    max-height: 400px;
  }
}

.btn-secondary {
  padding: 10px 18px;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.btn-secondary:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-danger {
  padding: 10px 18px;
  background-color: var(--error-color);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-danger:hover {
  background-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-danger:active {
  background-color: #b91c1c;
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-save-template {
  margin-left: 12px;
  padding: 6px 12px;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-save-template:hover {
  background-color: var(--bg-hover);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: var(--bg-secondary);
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  border: 1.5px solid var(--border-color);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 20px 24px;
  border-bottom: 1.5px solid var(--border-color);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
  background-color: var(--bg-hover);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 20px 24px 24px 24px;
  border-top: 1.5px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.delete-modal-content {
  max-width: 440px;
  border: 1.5px solid var(--border-color);
}

.delete-modal-content .modal-body {
  padding: 28px 24px;
}

.delete-modal-content .modal-body p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.confetti-container {
  position: fixed;
  width: 0;
  height: 0;
}

.confetti-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 0;
  animation: confetti-fall 0.8s ease-out forwards;
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) rotate(var(--rotation));
  }
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 20px;
}

.templates-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 20px;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.template-card {
  background-color: var(--bg-tertiary);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.template-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.template-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.template-card-title {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text-primary);
  font-weight: 700;
  flex: 1;
  letter-spacing: -0.01em;
}

.template-task-count {
  background-color: var(--bg-input);
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--border-subtle);
}

.template-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.template-meta {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 4px;
}

.template-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.template-actions .btn-primary {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.template-actions .btn-secondary,
.template-actions .btn-danger {
  padding: 8px 12px;
  font-size: 0.9rem;
}

.loading-state,
.error-state {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
  font-size: 0.95rem;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.empty-state .btn-primary {
  max-width: 200px;
  margin: 0 auto;
}

.template-edit-card {
  max-width: 800px;
  margin: 0 auto;
}

.tasks-edit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.task-edit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background-color: var(--bg-tertiary);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
}

.drag-handle {
  color: var(--text-dim);
  cursor: move;
  font-size: 1rem;
  padding: 4px;
  user-select: none;
}

.task-edit-fields {
  display: flex;
  gap: 8px;
  flex: 1;
}

.task-edit-text {
  flex: 2;
  min-width: 0;
}

.task-edit-time,
.task-edit-owner {
  flex: 1;
  min-width: 0;
}

.btn-add-task {
  width: 100%;
}

.btn-task-delete {
  padding: 4px 8px;
  font-size: 1.2rem;
  line-height: 1;
  min-width: 32px;
}

@media (max-width: 768px) {
  .app-shell {
    padding: 16px;
  }

  .card {
    padding: 28px 20px;
  }

  .container {
    padding: 24px 16px;
  }

  .title {
    font-size: 1.875rem;
  }

  .run-title {
    font-size: 1.5rem;
  }

  .header-actions {
    gap: 8px;
  }

  .terminate-run-btn {
    height: 40px;
    padding: 0 12px;
    font-size: 0.8125rem;
  }

  .terminate-run-btn {
    width: 40px;
    padding: 0;
  }

  .terminate-run-btn svg {
    width: 16px;
    height: 16px;
  }

  .terminate-run-btn span {
    display: none;
  }

  .leave-run-btn {
    width: 40px;
    height: 40px;
  }

  .leave-run-btn svg {
    width: 18px;
    height: 18px;
  }

  .run-countdown {
    font-size: 0.75rem;
  }

  .join-card {
    padding: 28px 20px;
  }

  .join-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
  }

  .join-header h2 {
    font-size: 1.5rem;
  }

  .join-header p {
    font-size: 0.875rem;
  }

  .join-submit-btn {
    padding: 14px 20px;
    font-size: 0.9375rem;
  }

  .header-info-card {
    padding: 16px;
  }

  .info-card-icon {
    width: 36px;
    height: 36px;
  }

  .info-card-icon svg {
    width: 14px;
    height: 14px;
  }

  .info-card-value {
    font-size: 1rem;
  }

  .run-link-value {
    font-size: 0.8125rem;
  }

  .task-groups {
    gap: 16px;
  }

  .timeline-card {
    max-height: 300px;
  }

  .avatar {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .task-avatar {
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
  }

  .page-header,
  .templates-header {
    flex-direction: column;
    align-items: stretch;
  }

  .templates-grid {
    grid-template-columns: 1fr;
  }

  .task-edit-fields {
    flex-direction: column;
  }

  .task-edit-text,
  .task-edit-time,
  .task-edit-owner {
    flex: 1;
  }

  .header-actions {
    flex-direction: column;
  }

  .emoji-picker {
    right: 0;
    left: 0;
    max-width: calc(100vw - 48px);
    margin: 0 8px 8px 8px;
  }

  .emoji-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .emoji-item {
    width: 36px;
    height: 36px;
    font-size: 1.125rem;
  }
}

.landingShell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

.landingHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.landingBrand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landingLogo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: var(--accent-light);
  border: 1.5px solid var(--accent-primary);
  color: var(--accent-primary);
}

.logoImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

.landingName {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
}

.landingTag {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.landingNav {
  display: flex;
  gap: 14px;
}

.navLink {
  text-decoration: none;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.navLink:hover {
  color: var(--text-primary);
}

.landingMain {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 980px) {
  .landingMain {
    grid-template-columns: 1fr;
  }
}

.landingH1 {
  font-size: 40px;
  line-height: 1.06;
  margin: 0 0 10px 0;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.landingSub {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  max-width: 62ch;
  line-height: 1.6;
}

.landingSub .highlight {
  background: var(--accent-light);
  color: var(--accent-primary);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.createCard {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
}

.createTop {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.createTitle {
  font-weight: 900;
  font-size: 15px;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.createHint {
  font-size: 12px;
  color: var(--text-muted);
}

.createMeta {
  font-size: 12px;
  color: var(--text-dim);
  text-align: right;
  align-self: center;
}

.createTextarea {
  width: 100%;
  border-radius: 16px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-primary);
  padding: 12px;
  outline: none;
  resize: vertical;
  min-height: 260px;
  font-family: inherit;
  line-height: 1.6;
}

.createTextarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.createTextarea::placeholder {
  color: var(--text-dim);
  opacity: 1;
  line-height: 1.6;
}

.createActions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.createSmallHint {
  font-size: 12px;
  color: var(--text-dim);
}

.joinRow {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-tertiary);
}

.joinLabel {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.joinControls {
  display: flex;
  gap: 10px;
}

@media (max-width: 980px) {
  .landingRight {
    order: -1;
  }
}

@media (max-width: 768px) {
  .landingShell {
    padding: 16px;
  }

  .landingHeader {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .landingH1 {
    font-size: 32px;
    line-height: 1.1;
  }

  .landingSub {
    font-size: 15px;
  }

  .createCard {
    padding: 12px;
  }

  .createTop {
    flex-direction: column;
    gap: 8px;
  }

  .createMeta {
    text-align: left;
  }

  .createTextarea {
    min-height: 200px;
    font-size: 14px;
  }

  .landingFooter {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .joinControls {
    flex-direction: column;
  }

  .landingH1 {
    font-size: 28px;
  }

  .createActions {
    flex-direction: column;
    align-items: stretch;
  }

  .createSmallHint {
    text-align: center;
  }
}

.infoCard {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
}

.infoTitle {
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.infoText {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.formatBlock {
  border-radius: 14px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-input);
  padding: 10px;
  margin-bottom: 10px;
}

.formatHead {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 800;
}

.formatPre {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.formatNotes {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.noteRow {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.noteKey {
  color: var(--text-muted);
  font-weight: 800;
}

.noteVal {
  color: var(--text-muted);
  text-align: right;
}

.valueList {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.landingFooter {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1.5px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.footDim {
  color: var(--text-dim);
}

.btnPrimary {
  padding: 12px 24px;
  background: var(--accent-primary);
  color: var(--accent-text);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btnPrimary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btnPrimary:active {
  background: var(--accent-active);
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btnGhost {
  padding: 10px 20px;
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btnGhost:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btnGhost:active {
  transform: translateY(0);
}

.input {
  flex: 1;
  padding: 10px 14px;
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.input::placeholder {
  color: var(--text-dim);
}

.modeTabs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.tabBtn {
  border: 1.5px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tabBtn:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
}

.tabActive {
  border-color: var(--accent-primary);
  background: var(--accent-light);
  color: var(--accent-primary);
}

.emptyRunMessage {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
}

.emptyRunMessage p {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.runSettings {
  margin-top: 12px;
  padding: 14px;
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settingRow {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settingLabel {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.checkboxLabel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 500;
}

.settingCheckbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent-primary);
}

.createError {
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1.5px solid var(--error-color);
  border-radius: 12px;
  color: var(--error-color);
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
  text-align: center;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.joinError {
  margin-top: 10px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1.5px solid var(--error-color);
  border-radius: 10px;
  color: var(--error-color);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  animation: slideDown 0.2s ease;
}

.joinError.hidden {
  display: none;
}
