:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f7fb;
  color: #172033;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #f7f9fc 0%, #eef3fa 100%); }
.page--centered { display: grid; place-items: center; padding: 32px 16px; }
.card { background: #ffffff; border-radius: 16px; box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08); padding: 24px; }
.auth-card { width: min(420px, 100%); }
.form-stack { display: grid; gap: 12px; }
input, select { width: 100%; padding: 10px 12px; border: 1px solid #d5deeb; border-radius: 10px; font-size: 14px; background: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 10px; background: #2563eb; color: #fff; text-decoration: none; cursor: pointer; }
.btn--ghost { background: transparent; color: #172033; border: 1px solid #d5deeb; }
.alert { padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.alert--error { background: #fef2f2; color: #b91c1c; }
.hidden { display: none; }
.muted { color: #64748b; }
.navbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; background: #fff; border-bottom: 1px solid #e2e8f0; }
.navbar__brand { font-weight: 700; }
.navbar__links { display: flex; gap: 12px; flex: 1; }
.navbar__link { color: #334155; text-decoration: none; }
.navbar__link--active { color: #2563eb; font-weight: 700; }
.navbar__link--disabled { color: #94a3b8; }
.content-shell { padding: 24px; }
.hero-card { max-width: 720px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.metric-card h1, .metric-card h2 { margin-top: 0; }
.metric-value { font-size: 32px; font-weight: 700; }
.progress { margin: 12px 0; height: 10px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #2563eb, #22c55e); }
.status-row { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.status-dot--running { background: #22c55e; }
.status-dot--stopped { background: #ef4444; }
.status-dot--unknown { background: #94a3b8; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px; border-bottom: 1px solid #e2e8f0; text-align: left; }
.timeline { display: grid; gap: 16px; }
.timeline__item { border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; background: #f8fafc; }
.timeline__header { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.timeline__excerpt, .timeline__detail { white-space: pre-wrap; word-break: break-word; background: #fff; padding: 12px; border-radius: 8px; border: 1px solid #e2e8f0; }
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: #e2e8f0; color: #475569; font-size: 12px; }
.badge--warning { background: #fef3c7; color: #92400e; }
.board-page { display: grid; gap: 16px; }
.board-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.board-header h1 { margin-bottom: 8px; }
.board-header__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.board-ideas { display: grid; gap: 12px; }
.idea-pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.board-columns { display: grid; grid-template-columns: repeat(8, minmax(220px, 1fr)); gap: 16px; align-items: start; overflow-x: auto; }
.board-column { background: rgba(255, 255, 255, 0.7); border: 1px solid #dbe4f0; border-radius: 16px; padding: 16px; min-height: 320px; }
.board-column--review { border-color: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18); }
.board-column__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.board-column__header h2 { margin: 0; font-size: 18px; }
.board-column__cards { display: grid; gap: 12px; min-height: 200px; border-radius: 12px; }
.board-column__cards--drop-target { outline: 2px dashed #2563eb; background: rgba(37, 99, 235, 0.08); padding: 8px; }
.board-warnings { border: 1px solid #f59e0b; background: #fffbeb; }
.board-warnings__summary { margin-top: 0; font-weight: 600; color: #92400e; }
.board-warnings__list { margin: 0; padding-left: 20px; color: #78350f; }
.task-card { border: 1px solid #dbe4f0; border-radius: 14px; background: #fff; padding: 14px; display: grid; gap: 12px; }
.task-card--uncertain { border: 2px dashed #f59e0b; background: #fffbeb; }
.task-card__toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.task-card__icon-btn { border: 0; background: transparent; color: #64748b; font-size: 20px; line-height: 1; cursor: pointer; }
.task-card__link { color: inherit; text-decoration: none; display: grid; gap: 12px; }
.task-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.task-card__header h3 { margin: 8px 0 0; font-size: 16px; }
.task-card__meta-row { display: flex; flex-wrap: wrap; gap: 6px; }
.task-card__warning-badge { width: 24px; height: 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #f59e0b; color: #fff; font-weight: 700; }
.task-card__uncertain-note { margin: 0; color: #92400e; font-size: 13px; }
.task-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.reject-dialog { border: 0; border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 32px)); }
.reject-dialog::backdrop { background: rgba(15, 23, 42, 0.35); }
.reject-dialog__form { padding: 24px; }
.reject-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; }
textarea { width: 100%; padding: 10px 12px; border: 1px solid #d5deeb; border-radius: 10px; font-size: 14px; resize: vertical; }
.detail-page { display: grid; gap: 16px; }
.task-detail-header h1 { margin: 4px 0 12px; }
.task-detail-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-sections { display: grid; gap: 16px; }
.task-doc-section h2, .task-timeline h2 { margin-top: 0; }
.markdown-body p:first-child, .markdown-body h1:first-child, .markdown-body h2:first-child, .markdown-body h3:first-child { margin-top: 0; }
.markdown-body pre { overflow-x: auto; background: #0f172a; color: #e2e8f0; padding: 12px; border-radius: 10px; }
.markdown-body code { background: #e2e8f0; padding: 2px 6px; border-radius: 6px; }
.task-round { border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; }
.task-round summary { cursor: pointer; font-weight: 600; }
.task-review__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.task-timeline { display: grid; gap: 12px; }
.task-timeline__phase { border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; background: #f8fafc; }
.task-timeline__phase-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.task-timeline__bar { margin-top: 10px; height: 10px; border-radius: 999px; background: #dbe4f0; overflow: hidden; }
.task-timeline__bar span { display: block; height: 100%; background: linear-gradient(90deg, #2563eb, #22c55e); }
.task-timeline__bar--unknown span { background: repeating-linear-gradient(90deg, #94a3b8 0, #94a3b8 8px, #cbd5e1 8px, #cbd5e1 16px); }
