.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.filter-row-label {
  font-size: 12px;
  color: #999;
  width: 64px;
  flex-shrink: 0;
  text-align: right;
}

.platform-checkbox-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin: 4px 0;
}

.platform-checkbox-row input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;
  cursor: pointer;
}

.platform-checkbox-row label {
  width: auto !important;
  padding-top: 0 !important;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.platform-checkbox-row input[type="checkbox"]:disabled + label,
.platform-checkbox-row label.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#daily-date-picker {
  width: 150px;
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  color: #111;
  background: white;
  cursor: pointer;
}

#daily-date-picker:focus {
  border-color: #2563eb;
  outline: none;
}

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */

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

html {
  font-size: 15px;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #111;
  background: #f8f8f7;
}

.page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ─── Tab Bar ───────────────────────────────────────────────────────────────── */

.tab-bar {
  display: flex;
  flex-direction: row;
  gap: 4px;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 20px;
  padding-bottom: 0;
}

.tab-bar__tab {
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  border: none;
  background: transparent;
  color: #666;
  font-family: inherit;
  line-height: 1.5;
  position: relative;
  bottom: -1px;
  transition: color 0.15s;
}

.tab-bar__tab:hover {
  color: #111;
}

.tab-bar__tab--active {
  background: #111;
  color: #ffffff;
  border-radius: 6px 6px 0 0;
}

.tab-content {
  display: none;
}

.tab-content--active {
  display: block;
}

/* ─── Cards ─────────────────────────────────────────────────────────────────── */

.card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  font-weight: 500;
  margin-bottom: 12px;
}

/* ─── Form Elements ─────────────────────────────────────────────────────────── */

input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #111;
  background: #ffffff;
  appearance: none;
  transition: border-color 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2563eb;
  outline: none;
}

textarea {
  min-height: 64px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #999;
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-family: inherit;
  color: #111;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn:hover {
  background: #f0f0f0;
}

.btn--primary {
  background: #111;
  color: #ffffff;
  border-color: #111;
}

.btn--primary:hover {
  background: #333;
  border-color: #333;
}

.btn--danger {
  background: #ffffff;
  color: #dc2626;
  border-color: #fca5a5;
}

.btn--danger:hover {
  background: #fef2f2;
}

.btn--sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* ─── Badges ────────────────────────────────────────────────────────────────── */

.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 4px;
  font-weight: 500;
}

.badge--info {
  background: #eff6ff;
  color: #1d4ed8;
}

.badge--success {
  background: #f0fdf4;
  color: #15803d;
}

.badge--warning {
  background: #fffbeb;
  color: #92400e;
}

.badge--danger {
  background: #fef2f2;
  color: #991b1b;
}

.badge--gray {
  background: #f5f5f4;
  color: #57534e;
}

/* ─── Checklist Items ───────────────────────────────────────────────────────── */

.checklist-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e5e5e5;
}

.checklist-item input[type="checkbox"] {
  display: inline-block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.checklist-item__label {
  font-size: 14px;
  color: #111;
}

.checklist-item--done .checklist-item__label {
  text-decoration: line-through;
  color: #999;
}

.comm-flag {
  font-size: 11px;
  color: #d97706;
  margin-left: 4px;
}

/* ─── Phase Pills ───────────────────────────────────────────────────────────── */

.phase-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.phase-pill {
  display: inline-block;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid #e5e5e5;
  background: #f5f5f4;
  color: #666;
  transition: background 0.15s, color 0.15s;
}

.phase-pill--active {
  background: #111;
  color: #ffffff;
  border-color: #111;
}

/* ─── Sprint Day Grid ───────────────────────────────────────────────────────── */

.sprint-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}

.sprint-day {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.15s;
}

.sprint-day:hover {
  background: #f8f8f7;
}

.sprint-day--current {
  border-color: #2563eb;
  background: #eff6ff;
}

.sprint-day--past {
  opacity: 0.45;
}

.sprint-day--milestone {
  border-color: #d97706;
}

/* ─── Checklist items (sprint day tasks) ────────────────────────────────────── */

.checklist-item {
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}

.checklist-item label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.checklist-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #111;
  cursor: pointer;
}

.checklist-item__label {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #111;
}

.checklist-item--done {
  color: #999;
  text-decoration: line-through;
}

@media (max-width: 640px) {
  .sprint-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 400px) {
  .sprint-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Log Entries ───────────────────────────────────────────────────────────── */

.log-entry {
  padding: 10px 12px;
  border-radius: 6px;
  background: #f8f8f7;
  border-left: 3px solid #e5e5e5;
  margin-bottom: 6px;
  font-size: 13px;
}

.log-entry--check {
  border-left-color: #16a34a;
}

.log-entry--comm {
  border-left-color: #d97706;
}

.log-entry--note {
  border-left-color: #2563eb;
}

.log-ts {
  font-size: 11px;
  color: #999;
  margin-bottom: 2px;
}

/* ─── Notification Bar ──────────────────────────────────────────────────────── */

.notif-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 12px 24px;
  font-size: 14px;
  font-family: inherit;
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.25s ease;
}

.notif-bar--visible {
  transform: translateY(0);
}

.notif-bar--success {
  background: #f0fdf4;
  color: #15803d;
}

.notif-bar--error {
  background: #fef2f2;
  color: #991b1b;
}

/* ─── Modal ─────────────────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
}

.modal-box {
  background: #ffffff;
  max-width: 420px;
  width: 100%;
  padding: 24px;
  border-radius: 12px;
  overflow: hidden;
  word-break: break-word;
}

.custom-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  flex-wrap: wrap;
}

.custom-toggle {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: #e5e5e5;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s;
  border: 1.5px solid #ccc;
}

.custom-toggle--on {
  background: #111;
  border-color: #111;
}

.custom-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.custom-toggle--on .custom-toggle-knob {
  transform: translateX(18px);
}

.custom-toggle-label {
  font-size: 13px;
  color: #666;
}

.platform-custom-check-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.custom-check-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}

.custom-check-option--disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.custom-check-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid #ccc;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.custom-check-option--on .custom-check-box {
  background: #111;
  border-color: #111;
}

.custom-check-label {
  font-size: 13px;
  color: #333;
}

.custom-check-option--disabled .custom-check-label {
  color: #999;
}

/* ─── Two-Column Grid ───────────────────────────────────────────────────────── */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ─── Progress Bar ──────────────────────────────────────────────────────────── */

.progress-bar {
  height: 6px;
  background: #f0f0ef;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #16a34a;
  transition: width 0.3s ease;
}

/* ─── Empty State ───────────────────────────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 32px;
  color: #999;
  font-size: 14px;
}

/* ─── Field Rows ────────────────────────────────────────────────────────────── */

.field-row {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.field-row label {
  font-size: 13px;
  color: #666;
  width: 110px;
  min-width: 110px;
  flex-shrink: 0;
  padding-top: 9px;
}

/* ─── Section Heading ───────────────────────────────────────────────────────── */

.section-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #111;
}

.two-col label {
  white-space: nowrap;
}

/* ─── Combobox ──────────────────────────────────────────────────────────────── */

.combobox-wrapper {
  position: relative;
  width: 100%;
  flex: 1;
}

.combobox-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  z-index: 100;
  max-height: 160px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.combobox-option {
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.combobox-option:hover {
  background: #f8f8f7;
}

/* ─── Setup Tab ─────────────────────────────────────────────────────────────── */

.section-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.role-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #f5f5f4;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  font-size: 13px;
  color: #111;
}

.role-pill .pill-actions {
  display: inline-flex;
  gap: 2px;
  margin-left: 4px;
}

.people-group-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  margin: 12px 0 6px 0;
}

.person-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}

.person-row:last-child { border-bottom: none; }
.person-name { font-size: 14px; font-weight: 500; flex: 1; }


/* ─── Releases tab ──────────────────────────────────────────────────────────── */

.release-platform-android {
  background: #eff6ff;
  color: #1d4ed8;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.release-platform-ios {
  background: #f0fdf4;
  color: #15803d;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.release-group-header {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  margin: 16px 0 8px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e5e5;
}

.status-history-entry {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
}

.status-history-entry:last-child { border-bottom: none; }

.history-toggle {
  font-size: 12px;
  color: #2563eb;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 0;
  font-family: inherit;
  margin-top: 8px;
}


/* ─── Communications Log — comments & resolution ─────────────────────────── */

.comm-comment-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f4;
  max-width: 100%;
  overflow: hidden;
  font-size: 14px;
  color: #333;
}
.comm-comment-row:last-child { border-bottom: none; }

.comm-comment-text {
  flex: 1;
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
  white-space: pre-wrap;
}

.comm-comment-text.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.expand-toggle {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  display: block;
  margin-top: 4px;
}

.comm-comment-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 11px;
  color: #999;
  white-space: nowrap;
}

.comm-comments-section {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.comm-comments-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  margin-bottom: 6px;
}

.resolution-note-block {
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  border-radius: 0 6px 6px 0;
  padding: 8px 12px;
  margin: 8px 0 12px 0;
}

.resolution-note-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #15803d;
  margin-bottom: 4px;
}

.resolution-note-text {
  font-size: 13px;
  color: #166534;
  font-style: italic;
  line-height: 1.5;
}

.thread-action-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  flex-wrap: wrap;
}

.ghost-tasks-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #e5e5e5;
}

.ghost-tasks-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  margin-bottom: 2px;
}

.ghost-tasks-sublabel {
  font-size: 11px;
  color: #bbb;
  margin-bottom: 10px;
}

.ghost-task-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f5f5f4;
  opacity: 0.7;
}

.ghost-task-row:last-child {
  border-bottom: none;
}

.ghost-task-text {
  font-size: 13px;
  color: #999;
  flex: 1;
}

.ghost-task-text--done {
  text-decoration: line-through;
  color: #16a34a;
}

.ghost-task-done-label {
  font-size: 11px;
  color: #16a34a;
  white-space: nowrap;
}

.ghost-task-notdone-label {
  font-size: 11px;
  color: #bbb;
  white-space: nowrap;
}

