
:root {
    --bg: #0d1117;
    --panel: #161b22;
    --panel2: #21262d;
    --border: #30363d;
    --text: #f0f6fc;
    --muted: #8b949e;
    --accent: #58a6ff;
    --must: #f85149;
    --should: #d29922;
    --could: #3fb950;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.container {
    max-width: 1200px;
    margin: auto;
    padding: 28px;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
.brand {
    font-size: 30px;
    font-weight: 800;
}
.brand span {
    color: var(--accent);
}
.status {
    color: var(--could);
    font-weight: 700;
}
.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
}
.hero {
    margin-bottom: 22px;
}
.label {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    font-weight: 800;
}
.next-title {
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 800;
    margin: 14px 0 22px;
}
.priority {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 800;
    margin-bottom: 18px;
}
.must {
    background: rgba(248,81,73,.15);
    color: var(--must);
}
.should {
    background: rgba(210,153,34,.15);
    color: var(--should);
}
.could {
    background: rgba(63,185,80,.15);
    color: var(--could);
}
button {
    border: 0;
    border-radius: 14px;
    padding: 17px 22px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    min-height: 58px;
}
button:disabled {
    opacity: .4;
    cursor: not-allowed;
}
.primary {
    background: var(--accent);
    color: #07111f;
}
.secondary {
    background: var(--panel2);
    color: var(--text);
    border: 1px solid var(--border);
}
.lost {
    background: var(--must);
    color: white;
}
.actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 22px;
}
.metric {
    font-size: 36px;
    font-weight: 800;
    margin-top: 8px;
}
.quick {
    margin-top: 22px;
}
.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
}
.empty {
    color: var(--muted);
}
/* Task capture modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.72);
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}
.modal.open {
    display: flex;
}
.modal-card {
    width: min(600px, 100%);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 26px;
}
.modal-card h2 {
    margin-top: 0;
    font-size: 28px;
}
.task-input {
    width: 100%;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    font-size: 18px;
    margin: 10px 0 18px;
}
.priority-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}
.priority-choice {
    background: var(--panel2);
    color: var(--text);
    border: 2px solid transparent;
}
.priority-choice.selected.must-choice {
    border-color: var(--must);
}
.priority-choice.selected.should-choice {
    border-color: var(--should);
}
.priority-choice.selected.could-choice {
    border-color: var(--could);
}
.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.error {
    color: var(--must);
    margin-bottom: 14px;
    display: none;
}
@media (max-width: 750px) {
    .container {
        padding: 18px;
    }
    .grid,
    .actions,
    .quick-grid {
        grid-template-columns: 1fr;
    }
    .priority-picker {
        grid-template-columns: 1fr;
    }
    .brand {
        font-size: 24px;
    }
    header {
        align-items: flex-start;
        gap: 12px;
    }
}

/* ------------------------------
   PRODUCT PIPELINE
------------------------------ */

.pipeline-section {
    margin-top: 22px;
}

.pipeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.pipeline-header h2 {
    margin: 6px 0 0;
    font-size: 28px;
}

.pipeline {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x proximity;
}

.pipeline-column {
    flex: 0 0 270px;
    min-height: 210px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    scroll-snap-align: start;
}

.pipeline-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.pipeline-stage {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .8px;
}

.pipeline-count {
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--panel2);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.product-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
}

.product-card:last-child {
    margin-bottom: 0;
}

.product-name {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.product-notes {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
    margin-top: 8px;
}

.pipeline-empty {
    color: var(--muted);
    font-size: 14px;
    padding: 10px 2px;
}

.pipeline::-webkit-scrollbar {
    height: 10px;
}

.pipeline::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 999px;
}
