:root {
    --bg: #f3f6f4;
    --text: #102118;
    --muted: #5a6a61;
    --line: rgba(16, 33, 24, 0.12);
    --forest: #0c3d2b;
    --forest-soft: #d2e3da;
    --lime: #c7ff3a;
    --soft: #9ba9a4;
    --teal: #0ba88a;
    --radius: 18px;
    --gap: 28px;
    --shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
    --blur: blur(18px);
    --xs: 12px;
    --sm: 14px;
    --lg: 21px;
}

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

html {
    font-size: 16px;
    height: 100%;
    overflow: hidden;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: "Outfit", sans-serif;
    font-size: 15px;
}

.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #021814;
    transition:
        opacity 280ms ease,
        visibility 280ms ease;
}

.loading-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-shell {
    width: min(420px, 100%);
    padding: 28px 24px;
    border-radius: 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(204, 255, 0, 0.12);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.loading-logo {
    width: 64px;
    margin: 0 auto 16px;
}

.loading-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: #ffffff;
}

.loading-subtitle {
    font-size: 14px;
    color: #9db8af;
    margin-bottom: 18px;
}

.loading-bar {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.loading-bar span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0ba88a, #ccff00);
    animation: loading-fill 1.6s ease-in-out infinite;
}

@keyframes loading-fill {
    0% {
        width: 0%;
        transform: translateX(0%);
    }

    55% {
        width: 100%;
        transform: translateX(0%);
    }

    100% {
        width: 100%;
        transform: translateX(100%);
    }
}

/* ── App Shell Layout ─────────────────────────────────────── */
.app-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
    width: 300px;
    flex-shrink: 0;
    background: var(--forest);
    border-right: 1px solid rgba(199, 255, 58, 0.15);
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    gap: 0;
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 4px 24px;
}

.sidebar-logo-svg {
    width: 40px;
    height: 30px;
    flex-shrink: 0;
}

.sidebar-brand-name {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.sidebar-brand-sub {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.02em;
}

.sidebar-divider {
    height: 1px;
    background: rgba(199, 255, 58, 0.15);
    margin: 12px 0;
}

.sidebar-sprint {
    padding: 4px 0 10px;
}

.sidebar-sprint .sprint-select-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.sidebar-sprint .sprint-selector {
    width: 100%;
    border-radius: 10px;
    height: 40px;
    padding: 0 36px 0 14px;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23c7ff3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center / 12px,
        #0a2e1f;
    border: 1px solid rgba(199, 255, 58, 0.25);
    color: #ffffff;
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-sprint .sprint-selector:hover {
    border-color: rgba(199, 255, 58, 0.5);
}

.sidebar-sprint .sprint-selector:focus {
    border-color: var(--lime);
    box-shadow: 0 0 0 2px rgba(199, 255, 58, 0.12);
    outline: none;
}

.sidebar-sprint .sprint-selector option {
    background: #0a2e1f;
    color: #ffffff;
}

/* ── Sidebar Footer ───────────────────────────────────────── */
.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-footer .last-updated {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.4;
}

.sidebar-footer .refresh-btn {
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
    margin-left: 0;
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(199, 255, 58, 0.3);
    background: rgba(199, 255, 58, 0.08);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.sidebar-footer .refresh-btn:hover {
    background: rgba(199, 255, 58, 0.15);
    border-color: rgba(199, 255, 58, 0.55);
    color: #ffffff;
}

/* ── Main Content ─────────────────────────────────────────── */
.main-content {
    flex: 1;
    overflow-y: auto;
    background: var(--bg);
    scroll-behavior: smooth;
}

.page-inner {
    padding: var(--gap) calc(var(--gap) + 4px);
}

/* ── Content Sections ─────────────────────────────────────── */
.content-section {
    margin-bottom: var(--gap);
    scroll-margin-top: var(--gap);
}

.content-section:last-child {
    margin-bottom: 0;
    padding-bottom: var(--gap);
}

/* Tasks group-grid: no extra top margin */
#section-tasks .group-grid {
    margin-top: 0;
}

/* Sidebar filters stacked */
.sidebar-filters {
    padding: 4px 0 8px;
}

.sidebar-section-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    padding: 0 4px 10px;
}

.filter-group-col {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.filter-group-col .filter-select {
    width: 100%;
    border-radius: 8px;
    height: 38px;
    padding: 0 32px 0 12px;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23c7ff3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center / 11px,
        #0a2e1f;
    border: 1px solid rgba(199, 255, 58, 0.2);
    color: rgba(255, 255, 255, 0.85);
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-group-col .filter-select:hover {
    border-color: rgba(199, 255, 58, 0.45);
}

.filter-group-col .filter-select:focus {
    border-color: var(--lime);
    box-shadow: 0 0 0 2px rgba(199, 255, 58, 0.12);
    outline: none;
}

.filter-group-col .filter-select option {
    background: #0a2e1f;
    color: #ffffff;
}

/* Nav items as anchor links */
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-family: "Outfit", sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: all 0.15s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.9);
}

.nav-item.active {
    background: rgba(199, 255, 58, 0.12);
    color: var(--lime);
    border-color: rgba(199, 255, 58, 0.2);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo {
    width: 40px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.brand-copy h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.top-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

.topbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 12px;
    width: 100%;
}

.user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.sign-out-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
    cursor: pointer;
    padding: 0 0 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    transition: color 0.15s ease;
}

.sign-out-btn:hover {
    color: var(--lime);
}

.controls-divider {
    height: 1px;
    background: rgba(199, 255, 58, 0.18);
    margin: 14px 0 0 0;
}

.controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 0 0;
}

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

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* .filter-select styles unified with .sprint-selector below */

.chip {
    padding: 10px 14px;
    border-radius: 999px;
    font-size: var(--sm);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(236, 245, 242, 0.35);
    white-space: nowrap;
    color: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.chip strong {
    color: var(--lime);
    margin-right: 6px;
}

.sprint-select-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sprint-select-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lime);
    white-space: nowrap;
}

.sprint-selector,
.filter-select {
    appearance: none;
    -webkit-appearance: none;
    height: 40px;
    padding: 0 36px 0 16px;
    border: 1px solid rgba(236, 245, 242, 0.35);
    border-radius: 999px;
    color: #ffffff;
    font-family: "Outfit", sans-serif;
    font-size: var(--sm);
    font-weight: 600;
    cursor: pointer;
    outline: none;
    white-space: nowrap;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23c7ff3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center / 12px,
        rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sprint-selector:hover,
.filter-select:hover {
    border-color: rgba(199, 255, 58, 0.5);
    box-shadow: 0 0 12px rgba(199, 255, 58, 0.1);
}

.sprint-selector:focus,
.filter-select:focus {
    border-color: var(--lime);
    box-shadow: 0 0 0 2px rgba(199, 255, 58, 0.15);
    outline: none;
}

.sprint-selector option,
.filter-select option {
    background: #0c3d2b;
    color: #ffffff;
    font-family: "Outfit", sans-serif;
    padding: 8px 12px;
}

.filter-select.active {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center / 12px,
        var(--lime);
    color: #000000;
    border-color: var(--lime);
    font-weight: 700;
}

/* ── Custom Sidebar Dropdowns (.cs-*) ────────────────────── */
.cs-wrapper {
    position: relative;
    width: 100%;
}

.cs-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: #0a2e1f;
    border: 1px solid rgba(199, 255, 58, 0.22);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-family: "Outfit", sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cs-trigger:hover {
    border-color: rgba(199, 255, 58, 0.5);
}

.cs-wrapper.cs-open .cs-trigger {
    border-color: var(--lime);
    box-shadow: 0 0 0 2px rgba(199, 255, 58, 0.12);
}

.cs-trigger-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-placeholder-label {
    color: rgba(255, 255, 255, 0.4);
}

.cs-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.cs-wrapper.cs-open .cs-arrow {
    transform: rotate(180deg);
}

.cs-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #0c3322;
    border: 1px solid rgba(199, 255, 58, 0.25);
    border-radius: 10px;
    padding: 4px;
    z-index: 9999;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    max-height: 220px;
}

.cs-wrapper.cs-open .cs-panel {
    display: block;
    animation: cs-fade-in 0.12s ease;
}

@keyframes cs-fade-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cs-option {
    display: block;
    width: 100%;
    padding: 9px 12px;
    background: transparent;
    border: none;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.65);
    font-family: "Outfit", sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.1s ease, color 0.1s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-option:hover {
    background: rgba(199, 255, 58, 0.1);
    color: #ffffff;
}

.cs-option.cs-selected {
    color: var(--lime);
    font-weight: 700;
    background: rgba(199, 255, 58, 0.07);
}

.cs-option.cs-placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
}

.cs-divider {
    height: 1px;
    background: var(--lime);
    margin: 4px 6px;
    opacity: 0.4;
    border-radius: 1px;
}

.sidebar-sprint .cs-trigger {
    height: 40px;
    font-size: 14px;
}

.last-updated {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.updated-dot {
    color: var(--lime);
    font-size: 16px;
    font-weight: 800;
    margin: 0 6px;
    vertical-align: middle;
}

.updated-time {
    color: var(--lime);
    font-weight: 700;
}

.list-name-cell {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    opacity: 0.8;
}

.refresh-btn {
    appearance: none;
    cursor: pointer;
    margin-left: 8px;
    border: 1px solid rgba(199, 255, 58, 0.5);
    background: rgba(199, 255, 58, 0.22);
    color: #ffffff;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: var(--sm);
    font-weight: 700;
    font-family: "Outfit", sans-serif;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.refresh-btn:disabled {
    opacity: 0.72;
    cursor: wait;
}

.folder-btn {
    appearance: none;
    cursor: pointer;
    border-radius: 999px;
    border: 1px solid rgba(236, 245, 242, 0.35);
    background: rgba(255, 255, 255, 0.08);
    font-family: inherit;
    font-size: var(--sm);
    font-weight: 600;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: nowrap;
}

.folder-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.folder-picker-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.folder-picker-card {
    background: #0c3d2b;
    border: 1px solid rgba(199, 255, 58, 0.3);
    border-radius: 16px;
    padding: 28px 32px;
    width: 360px;
    max-width: 90vw;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.folder-picker-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--lime);
    letter-spacing: -0.02em;
}

.folder-picker-card p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.folder-picker-card input {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(199, 255, 58, 0.4);
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-family: inherit;
    font-size: var(--sm);
    outline: none;
}

.folder-picker-card input:focus {
    border-color: var(--lime);
}

.folder-picker-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.folder-picker-actions button {
    appearance: none;
    cursor: pointer;
    padding: 9px 18px;
    border-radius: 999px;
    font-family: inherit;
    font-size: var(--sm);
    font-weight: 700;
    border: 1px solid rgba(199, 255, 58, 0.5);
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
}

.folder-picker-actions button.primary {
    background: rgba(199, 255, 58, 0.22);
    color: #ffffff;
}

.folder-picker-actions button:hover {
    opacity: 0.85;
}

.rocks-section {
    background: #0c3d2b;
    border: 1px solid rgba(199, 255, 58, 0.25);
    border-radius: var(--radius);
    padding: var(--gap);
    margin-bottom: var(--gap);
    box-shadow: var(--shadow);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    color: #ffffff;
    position: relative;
}

.rocks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--gap);
    gap: var(--gap);
}

.rocks-header h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
    color: var(--lime);
}

.rocks-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-align: right;
}

.rocks-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rocks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.rock-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 24px;
    border: 1px solid rgba(199, 255, 58, 0.15);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.2s ease, border-color 0.2s ease;
    min-height: 120px;
}

.rock-card:hover {
    transform: translateY(-2px);
    border-color: var(--lime);
    background: rgba(255, 255, 255, 0.05);
}

.rock-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* New wrapper for content to manage title/description and progress vertically */
.rock-content-wrapper {
    flex-grow: 1;
    /* Allows this wrapper to take up all available horizontal space */
    display: flex;
    flex-direction: column;
    /* Stack main content and progress container vertically */
    justify-content: space-between;
    /* Pushes progress to bottom */
    align-items: flex-start;
    /* Aligns content to the left */
}

.rock-main-content {
    /* Contains title and description */
    flex-grow: 1;
    /* Allows main content to take up available vertical space */
    margin-bottom: 12px;
    /* Space between main content and progress container */
}

.rock-title-line {
    padding-bottom: 15px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #F5F5F5;
}

.rock-main-content p {
    /* Assuming description is now in a <p> tag within rock-main-content */
    margin: 0;
    /* Reset default paragraph margin */
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* Container for the progress pill, positioned at the bottom right of the card */
.rock-progress-container {
    width: 100%;
    /* Take full width for text-align to work */
    text-align: right;
    /* Align the inline-flex progress pill to the right */
    /* No need for position:absolute here anymore, the pill itself will be absolute */
    padding-top: 10px;
    /* Space above the pill if main content pushed it down */
}

.rock-status-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--lime);
    padding-top: 15px;
    margin-top: auto;
    font-size: 14px;
    text-transform: uppercase;
}

.rock-target-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    color: var(--lime);
    line-height: 1.1;
    letter-spacing: 0.03em;
}

.target-label {
    font-weight: normal;
    opacity: 0.7;
    padding-right: 5px;
}

.target-date {
    font-weight: bold;
    color: var(--lime);
}

.rock-progress-pill {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.07);
    padding: 5px 12px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted);
}

.rock-status-not-started .status-dot {
    background: #94a3b8;
}

.rock-status-on-track .status-dot {
    background: #3b82f6;
}

.rock-status-at-risk .status-dot {
    background: #f97316;
}

.rock-status-off-track .status-dot {
    background: #ef4444;
}

.rock-status-completed .status-dot {
    background: #22c55e;
}

.rock-status-canceled .status-dot {
    background: #94a3b8;
}

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

    .rocks-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

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

    .rocks-section {
        padding: 20px;
    }

    .rock-card {
        padding: 20px;
    }
}

.assignee-group {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
}

.assignee-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(199, 255, 58, 0.2);
}

.assignee-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap);
    margin-bottom: var(--gap);
}

.card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 0;
}

.card-pad {
    padding: var(--gap);
}

.kpi {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0c3d2b 0%, #0a3224 100%);
    border: 1px solid rgba(199, 255, 58, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.kpi::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(199, 255, 58, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.kpi .label {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.kpi .value {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
    color: #ffffff;
}

.kpi .delta {
    color: var(--lime);
    font-size: var(--sm);
    font-weight: 600;
}


.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    margin-bottom: var(--gap);
}

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

.section-title h2,
.section-title h5 {
    margin: 0;
    letter-spacing: -0.01em;
}

.section-title h2 {
    font-size: 18px;
}

.section-title h5 {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

.chart-wrap {
    height: 100%;
    min-height: 200px;
    flex: 1;
}

.card.chart-card {
    display: flex;
    flex-direction: column;
}

.health-list {
    display: grid;
    gap: 10px;
}

.health-row {
    padding: 12px;
    border-radius: 14px;
    background: rgba(244, 249, 246, 0.82);
    border: 1px solid rgba(12, 61, 43, 0.12);
}

.health-head,
.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.health-head {
    font-size: var(--sm);
    font-weight: 700;
    margin-bottom: 8px;
}

.meta-row {
    color: var(--muted);
    font-size: var(--xs);
    margin-top: 8px;
}

.bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(219, 229, 223, 0.85);
    overflow: hidden;
}

.bar>span {
    display: block;
    height: 100%;
    background: var(--teal);
    border-radius: inherit;
}

.table-card {
    margin-bottom: 16px;
}

.table-wrap {
    overflow-x: auto;
}

.status-divider-row td {
    padding: 6px 0 2px;
    border: none !important;
}

.status-divider-line {
    height: 1px;
    background: var(--lime);
    border-radius: 1px;
    opacity: 0.35;
}

/* ── Status Group Rows (inside table) ────────────────────── */
.status-group-row td {
    padding: 10px 16px;
    border-top: none;
    border-bottom: none;
}

.status-group-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.status-group-count {
    margin-left: 10px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0.6;
    letter-spacing: 0.02em;
}

/* Inline status select (editor only) */
.status-inline-select {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 10px;
    border: 1px solid rgba(199, 255, 58, 0.22);
    padding: 8px 32px 8px 12px;
    font-family: "Outfit", sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    width: 100%;
    background-color: #0a2e1f;
    color: rgba(255, 255, 255, 0.85);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23c7ff3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 11px;
}

.status-inline-select:hover {
    border-color: rgba(199, 255, 58, 0.5);
}

.status-inline-select:focus {
    border-color: var(--lime);
    box-shadow: 0 0 0 2px rgba(199, 255, 58, 0.12);
}

.status-inline-select option {
    background: #0c3d2b;
    color: #ffffff;
    font-weight: 600;
}

/* ── Table status dropdown trigger: compact pill colored by status ── */
.cs-table-status .cs-trigger {
    padding: 4px 24px 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid transparent;
    box-shadow: none;
    min-height: unset;
    height: auto;
}

.cs-table-status .cs-trigger:hover,
.cs-wrapper.cs-open.cs-table-status .cs-trigger {
    box-shadow: none;
}

.cs-table-status .cs-arrow svg path {
    stroke: currentColor;
}

.cs-table-status {
    background: transparent;
}

/* Light-mode trigger pill colors — class is on the trigger button itself */
.cs-table-status .cs-trigger.status-ondeck {
    background: #d1d5db;
    color: #111827;
    border-color: rgba(0, 0, 0, 0.15);
}

.cs-table-status .cs-trigger.status-scoping {
    background: #c4b5fd;
    color: #4c1d95;
    border-color: rgba(124, 58, 237, 0.3);
}

.cs-table-status .cs-trigger.status-progress {
    background: #bfdbfe;
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.3);
}

.cs-table-status .cs-trigger.status-feedback {
    background: #fed7aa;
    color: #9a3412;
    border-color: rgba(249, 115, 22, 0.3);
}

.cs-table-status .cs-trigger.status-blocked {
    background: #fca5a5;
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.3);
}

.cs-table-status .cs-trigger.status-approval {
    background: #fde68a;
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.3);
}

.cs-table-status .cs-trigger.status-hold {
    background: #fed7aa;
    color: #92400e;
    border-color: rgba(234, 88, 12, 0.3);
}

.cs-table-status .cs-trigger.status-done {
    background: #86efac;
    color: #14532d;
    border-color: rgba(34, 197, 94, 0.3);
}

.cs-table-status .cs-trigger.status-default {
    background: #dbeafe;
    color: #1e40af;
    border-color: rgba(147, 197, 253, 0.4);
}

/* Dark-mode trigger pill colors */

/* Table status panel — light mode */
.cs-table-panel {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.cs-table-panel .cs-option {
    color: #1a2e22;
}

.cs-table-panel .cs-option:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
}

.cs-table-panel .cs-option.cs-selected {
    background: rgba(0, 0, 0, 0.06);
    color: #000000;
    font-weight: 700;
}

.cs-table-panel .cs-divider {
    background: rgba(0, 0, 0, 0.12);
    opacity: 1;
}

/* Per-status background + text colors for group header rows */
.status-group-row.status-ondeck td {
    background: #d1d5db;
    color: #111827;
}

.status-group-row.status-scoping td {
    background: #c4b5fd;
    color: #4c1d95;
}

.status-group-row.status-progress td {
    background: #bfdbfe;
    color: #1d4ed8;
}

.status-group-row.status-feedback td {
    background: #fed7aa;
    color: #9a3412;
}

.status-group-row.status-blocked td {
    background: #fca5a5;
    color: #b91c1c;
}

.status-group-row.status-approval td {
    background: #fde68a;
    color: #92400e;
}

.status-group-row.status-hold td {
    background: #fed7aa;
    color: #92400e;
}

.status-group-row.status-done td {
    background: #86efac;
    color: #14532d;
}

.status-group-row.status-default td {
    background: #dbeafe;
    color: #1e40af;
}

/* ── Task rows: 50-level color blended 50% with white — lighter than before ── */
tr.task-row.status-ondeck td   { background: #fcfcfd; } /* gray,   halfway to white */
tr.task-row.status-scoping td  { background: #faf9ff; } /* violet, halfway to white */
tr.task-row.status-progress td { background: #f7fbff; } /* blue,   halfway to white */
tr.task-row.status-feedback td { background: #fffbf6; } /* orange, halfway to white */
tr.task-row.status-blocked td  { background: #fff8f8; } /* red,    halfway to white */
tr.task-row.status-approval td { background: #fffdf5; } /* amber,  halfway to white */
tr.task-row.status-hold td     { background: #fffbf6; } /* orange, halfway to white */
tr.task-row.status-done td     { background: #f7fef9; } /* green,  halfway to white */
tr.task-row.status-default td  { background: #f7fbff; } /* blue,   halfway to white */

tr.task-row td { transition: background 0.15s ease; }
tr.task-row:hover td { filter: brightness(0.98); }



table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--sm);
    table-layout: fixed;
}

th,
td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

th:first-child,
td:first-child {
    padding-left: 24px;
}

th {
    color: #eaf4ef;
    font-size: var(--xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--forest);
    position: sticky;
    top: 0;
    z-index: 1;
}

tbody tr:hover {
    background: rgba(212, 224, 218, 0.06);
}

tbody tr:last-child td {
    border-bottom: none;
}

.task-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-pill,
.priority-pill,
.capacity-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: var(--xs);
    font-weight: 700;
    border: 2px solid transparent;
    white-space: nowrap;
    text-transform: capitalize;
}

.status-pill::before,
.priority-pill::before,
.capacity-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    flex: 0 0 auto;
}

.status-ondeck {
    color: #111827;
    background: #d1d5db;
    border-color: #9ca3af;
}

.status-scoping {
    color: #4c1d95;
    background: #c4b5fd;
    border-color: #7c3aed;
}

.status-progress {
    color: #1d4ed8;
    background: #bfdbfe;
    border-color: #3b82f6;
}

.status-feedback {
    color: #9a3412;
    background: #fed7aa;
    border-color: #f97316;
}

.status-blocked {
    color: #b91c1c;
    background: #fca5a5;
    border-color: #ef4444;
}

.status-approval {
    color: #92400e;
    background: #fde68a;
    border-color: #f59e0b;
}

.status-hold {
    color: #92400e;
    background: #fed7aa;
    border-color: #ea580c;
}

.status-done {
    color: #14532d;
    background: #86efac;
    border-color: #22c55e;
}

.status-default {
    color: #1e40af;
    background: #dbeafe;
    border-color: #93c5fd;
}

.priority-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.priority-text::before {
    content: "⚑";
    font-size: 13px;
}

.priority-text.priority-urgent,
.priority-urgent { color: #dc2626; }

.priority-text.priority-high,
.priority-high { color: #b45309; }

.priority-text.priority-normal,
.priority-normal { color: #2563eb; }

.priority-text.priority-low,
.priority-low,
.priority-text.priority-default,
.priority-default { color: rgba(255, 255, 255, 0.25); }

.capacity-good {
    color: #15803d;
    background: #dcfce7;
    border-color: #4ade80;
}

.capacity-mid {
    color: #b45309;
    background: #fef3c7;
    border-color: #fbbf24;
}

.capacity-high {
    color: #b91c1c;
    background: #fee2e2;
    border-color: #fca5a5;
}

.capacity-over {
    color: #7f1d1d;
    background: #fee2e2;
    border-color: #f87171;
}

.group-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap);
    margin-top: var(--gap);
    margin-bottom: var(--gap);
}

.group-controls {
    display: none;
}

.collapse-arrow {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--lime);
    color: #000000;
    font-size: 9px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    user-select: none;
}

.collapse-arrow.collapsed {
    transform: rotate(-90deg);
}

.group-card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.group-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    cursor: pointer;
}

.group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.group-title::after {
    content: "";
    flex: 1;
    border-bottom: 1px dashed rgba(236, 245, 242, 0.18);
    margin: 0 12px;
}

.group-title h3 {
    margin: 0;
    font-size: 17px;
}

.badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.dot-major {
    background: var(--lime);
}

.dot-other {
    background: var(--teal);
}

.dot-quick {
    background: var(--coral);
}

.dot-support {
    background: var(--soft);
}

.dot-achievement {
    background: var(--teal);
}

.dot-milestone {
    background: var(--lime);
}

.dot-element {
    background: var(--soft);
}

.mini-note {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: var(--xs);
    white-space: nowrap;
    justify-self: end;
}

.tabbed-card {
    padding: 0;
    overflow: hidden;
}

.tab-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px 14px;
    background: var(--forest);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.5);
    font-family: "Outfit", sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
    color: #000000;
    background: var(--lime);
    border-color: var(--lime);
    font-weight: 700;
}

.tab-meta {
    font-size: 11px;
    font-weight: 500;
    color: inherit;
    opacity: 0.6;
    margin-left: 2px;
}

.tab-body {
    padding: 0 0 16px 0;
}

.group-body {
    display: block;
    padding: 0 16px 16px;
}

.empty {
    color: var(--muted);
    font-size: var(--sm);
    padding: 32px 24px;
    text-align: center;
}

@media (max-width: 1080px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 720px) {
    .app {
        padding: 12px;
    }

    .topbar {
        padding: 14px;
    }

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

    .brand-copy h1 {
        font-size: 20px;
    }

    .chart-wrap {
        height: 100%;
        min-height: 180px;
    }

    .card.chart-card {
        min-height: 300px;
    }

    th,
    td {
        padding: 10px 8px;
    }

    .group-header {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .mini-note {
        width: 100%;
        text-align: left;
        justify-self: start;
    }
}

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

    .top-meta {
        width: 100%;
        justify-content: flex-start;
    }

    .task-name {
        min-width: 180px;
    }

    .brand-logo {
        width: 34px;
        height: 26px;
    }

    .brand-copy h1 {
        font-size: 18px;
    }
}

/* ── Category Badges ─────────────────────────────────────────── */
.category-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Projects → chart bar #0C3D2B (forest green) */
.category-badge.category-achievement {
    background: #d2e8de;
    color: #0c3d2b;
    border: 1px solid rgba(12, 61, 43, 0.25);
}

/* Quick Wins → chart bar #0BA88A (teal) */
.category-badge.category-milestone {
    background: #c2f0e8;
    color: #077a65;
    border: 1px solid rgba(11, 168, 138, 0.3);
}

/* Tasks → chart bar #9BA9A4 (soft gray-green) */
.category-badge.category-element {
    background: #e4ecea;
    color: #4a5c56;
    border: 1px solid rgba(155, 169, 164, 0.4);
}