:root {
    --app-navy: #172b4d;
    --app-navy-soft: #253858;
    --app-blue: #0c66e4;
    --app-blue-dark: #0055cc;
    --app-blue-soft: #e9f2ff;
    --app-purple: #7e57c2;
    --app-success: #1f845a;
    --app-warning: #b65c02;
    --app-danger: #c9372c;
    --app-surface: #ffffff;
    --app-canvas: #f7f8fa;
    --app-border: #dfe1e6;
    --app-muted: #626f86;
    --app-shadow-sm: 0 1px 2px rgba(9, 30, 66, .08), 0 2px 6px rgba(9, 30, 66, .05);
    --app-shadow-md: 0 8px 24px rgba(9, 30, 66, .12);
    --app-radius: .75rem;
    --bs-primary: var(--app-blue);
    --bs-primary-rgb: 12, 102, 228;
    --bs-link-color: var(--app-blue);
    --bs-link-hover-color: var(--app-blue-dark);
    --bs-body-color: var(--app-navy);
    --bs-body-bg: var(--app-canvas);
    --bs-border-color: var(--app-border);
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--app-navy);
    background: var(--app-canvas);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    text-underline-offset: .18em;
}

.skip-link {
    position: fixed;
    z-index: 2000;
    top: .75rem;
    left: .75rem;
    padding: .65rem 1rem;
    color: #fff;
    background: var(--app-navy);
    border-radius: .5rem;
}

.app-header {
    position: sticky;
    z-index: 1030;
    top: 0;
    min-height: 4rem;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--app-border);
    box-shadow: 0 1px 0 rgba(9, 30, 66, .04);
    backdrop-filter: blur(14px);
}

    .app-header .navbar {
        min-height: 4rem;
        padding-block: .5rem;
    }

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--app-navy);
    font-size: 1.2rem;
    text-decoration: none;
    letter-spacing: -.02em;
}

    .app-brand:hover {
        color: var(--app-blue);
    }

.app-brand-mark {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--app-blue), #579dff);
    border-radius: .65rem;
    box-shadow: 0 5px 14px rgba(12, 102, 228, .25);
}

    .app-brand-mark svg {
        width: 1.35rem;
        fill: currentColor;
    }

.app-primary-nav .nav-link,
.app-account-nav .nav-link {
    margin: .1rem;
    padding: .55rem .75rem;
    color: #44546f;
    border-radius: .45rem;
    font-weight: 600;
}

    .app-primary-nav .nav-link:hover,
    .app-primary-nav .nav-link.active,
    .app-account-nav .nav-link:hover {
        color: var(--app-blue-dark);
        background: var(--app-blue-soft);
    }

    .app-primary-nav .nav-link.active {
        box-shadow: inset 0 -2px 0 var(--app-blue);
    }

.app-account-nav .dropdown-menu {
    min-width: 15rem;
    padding: .5rem;
    border-color: var(--app-border);
    border-radius: .75rem;
}

.app-account-nav .dropdown-item {
    padding: .65rem .75rem;
    border-radius: .4rem;
}

.app-user-menu {
    display: flex;
    align-items: center;
    gap: .55rem;
    border: 0;
    background: transparent;
}

.app-avatar {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--app-purple), #b39ddb);
    border-radius: 50%;
    font-size: .8rem;
    font-weight: 800;
}

.app-icon-button {
    display: inline-grid;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    color: #44546f;
    border-radius: 50%;
}

    .app-icon-button:hover {
        color: var(--app-blue-dark);
        background: var(--app-blue-soft);
    }

    .app-icon-button svg {
        width: 1.4rem;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.notification-count {
    position: absolute;
    top: -.1rem;
    right: -.2rem;
    display: grid;
    min-width: 1.2rem;
    height: 1.2rem;
    padding-inline: .25rem;
    place-items: center;
    color: #fff;
    background: var(--app-danger);
    border: 2px solid #fff;
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 800;
    line-height: 1;
}

.notification-count-pulse {
    animation: notification-pulse 1.1s ease-out;
}

@keyframes notification-pulse {
    0%, 100% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.45);
        box-shadow: 0 0 0 .5rem rgba(201, 55, 44, .16);
    }
}

.notification-announcer {
    position: fixed;
    z-index: 1090;
    top: 4.75rem;
    right: 1rem;
    max-width: min(24rem, calc(100vw - 2rem));
    padding: .85rem 1rem;
    color: #fff;
    background: var(--app-navy);
    border-radius: .65rem;
    box-shadow: var(--app-shadow-md);
    opacity: 0;
    transform: translateY(-.75rem);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

    .notification-announcer.show {
        opacity: 1;
        transform: translateY(0);
    }

.app-main {
    min-height: calc(100vh - 8.5rem);
    padding-block: 1.5rem 3rem;
}

.app-public .app-main {
    padding-top: 0;
}

.app-footer {
    padding-block: 1.2rem;
    color: var(--app-muted);
    background: #fff;
    border-top: 1px solid var(--app-border);
    font-size: .875rem;
}

.app-flash {
    max-width: 72rem;
    margin: 0 auto 1.25rem;
    border: 0;
    box-shadow: var(--app-shadow-sm);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--app-navy);
    letter-spacing: -.018em;
}

.text-muted,
.text-body-secondary {
    color: var(--app-muted) !important;
}

.card {
    background: var(--app-surface);
    border-color: var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow-sm);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

    a.card:hover,
    .card:has(.stretched-link:hover) {
        border-color: #b6c2cf;
        box-shadow: var(--app-shadow-md);
        transform: translateY(-2px);
    }

.card-header,
.card-footer {
    border-color: var(--app-border);
}

.btn {
    min-height: 2.5rem;
    padding: .55rem .9rem;
    border-radius: .45rem;
    font-weight: 650;
}

.btn-sm {
    min-height: 2rem;
    padding: .35rem .65rem;
}

.btn-primary {
    background: var(--app-blue);
    border-color: var(--app-blue);
    box-shadow: 0 1px 2px rgba(9, 30, 66, .16);
}

    .btn-primary:hover {
        background: var(--app-blue-dark);
        border-color: var(--app-blue-dark);
    }

.btn-outline-primary {
    color: var(--app-blue-dark);
    border-color: #85b8ff;
}

    .btn-outline-primary:hover {
        color: var(--app-blue-dark);
        background: var(--app-blue-soft);
        border-color: var(--app-blue);
    }

.form-control,
.form-select {
    min-height: 2.65rem;
    color: var(--app-navy);
    background-color: #fff;
    border-color: #b7c1d1;
    border-radius: .45rem;
}

    .form-control:hover,
    .form-select:hover {
        border-color: #8590a2;
    }

    .form-control:focus,
    .form-select:focus {
        border-color: var(--app-blue);
        box-shadow: 0 0 0 .2rem rgba(12, 102, 228, .14);
    }

.form-label {
    margin-bottom: .4rem;
    color: #344563;
    font-weight: 650;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: #f1f5fa;
    color: var(--app-navy);
}

    .table thead th {
        padding-block: .75rem;
        color: var(--app-muted);
        background: #f7f8fa;
        border-bottom-width: 1px;
        font-size: .75rem;
        letter-spacing: .045em;
        text-transform: uppercase;
    }

    .table tbody td,
    .table tbody th {
        padding-block: .8rem;
        border-color: #eef0f3;
    }

.badge {
    padding: .38em .62em;
    border-radius: .35rem;
    font-weight: 700;
}

.breadcrumb {
    margin-bottom: 1.25rem;
    font-size: .875rem;
}

    .breadcrumb a {
        color: var(--app-muted);
        text-decoration: none;
    }

        .breadcrumb a:hover {
            color: var(--app-blue);
        }

.list-group-item {
    padding: 1rem 1.1rem;
    border-color: var(--app-border);
}

.alert {
    border-radius: .65rem;
}

.page-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-heading-copy {
    max-width: 48rem;
}

.page-eyebrow {
    margin-bottom: .35rem;
    color: var(--app-blue-dark);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.empty-state {
    display: grid;
    min-height: 18rem;
    padding: 2.5rem 1.25rem;
    place-items: center;
    text-align: center;
    background: radial-gradient(circle at 50% 0, rgba(12, 102, 228, .1), transparent 40%), #fff;
    border: 1px dashed #b7c1d1;
    border-radius: 1rem;
}

    .empty-state > div {
        max-width: 34rem;
    }

.metric-card {
    position: relative;
    overflow: hidden;
}

    .metric-card::before {
        position: absolute;
        inset: 0 auto 0 0;
        width: .25rem;
        content: "";
        background: var(--metric-color, var(--app-blue));
    }

.metric-primary {
    --metric-color: var(--app-blue);
}

.metric-warning {
    --metric-color: #f5a623;
}

.metric-danger {
    --metric-color: var(--app-danger);
}

.metric-info {
    --metric-color: #00a3bf;
}

.metric-success {
    --metric-color: var(--app-success);
}

.metric-value {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 750;
    letter-spacing: -.04em;
}

.action-card {
    position: relative;
    padding: 1.1rem;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: .75rem;
}

.action-card-number {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    color: var(--app-blue-dark);
    background: var(--app-blue-soft);
    border-radius: .55rem;
    font-weight: 800;
}

.project-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: clamp(1.35rem, 3vw, 2.2rem);
    background: radial-gradient(circle at 90% 10%, rgba(87, 157, 255, .2), transparent 30%), linear-gradient(145deg, #fff, #f1f6ff);
    border: 1px solid #cce0ff;
    border-radius: 1rem;
    box-shadow: var(--app-shadow-sm);
}

.project-admin-card {
    top: 5.5rem;
}

.action-card p {
    min-height: 3rem;
}

.action-card .stretched-link::after {
    border-radius: .75rem;
}

@media (max-width: 991.98px) {
    .app-header {
        position: relative;
    }

        .app-header .navbar-collapse {
            padding-block: .75rem;
        }

    .app-user-email {
        display: inline;
    }

    .app-account-nav {
        padding-top: .5rem;
        border-top: 1px solid var(--app-border);
    }
}

@media (min-width: 992px) {
    .app-user-email {
        max-width: 13rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.board-scroll {
    overflow-x: auto;
    padding: .25rem .15rem 1.25rem;
    scrollbar-color: #b7c1d1 transparent;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(var(--board-column-count), minmax(18rem, 1fr));
    gap: 1rem;
    min-width: max-content;
    align-items: start;
}

.board-column {
    width: min(21rem, 82vw);
    min-height: 20rem;
    overflow: hidden;
    background: #f1f3f6;
    border: 1px solid #d8dee8;
    border-radius: .9rem;
    box-shadow: 0 1px 2px rgba(9, 30, 66, .06);
}

.board-column-limit {
    border-color: var(--bs-danger);
}

.board-column-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: .75rem;
    padding: 1rem 1rem .85rem;
    background: rgba(255, 255, 255, .78);
    border-bottom: 1px solid var(--bs-border-color);
}

.board-card-list {
    min-height: 12rem;
    padding: .85rem;
}

    .board-card-list > [role="listitem"] + [role="listitem"] {
        margin-top: .75rem;
    }

.board-card[data-board-card] {
    cursor: pointer;
    border: 0;
    border-left: 3px solid var(--app-blue);
    box-shadow: 0 1px 3px rgba(9, 30, 66, .14);
}

.board-card-movable .board-card[data-board-card] {
    cursor: grab;
}

.board-card[data-board-card]:hover {
    box-shadow: 0 5px 14px rgba(9, 30, 66, .14);
    transform: translateY(-1px);
}

.board-card[data-board-card]:focus-visible {
    outline: 3px solid rgba(var(--bs-primary-rgb), .45);
    outline-offset: 2px;
}

.board-card[aria-busy="true"] {
    opacity: .6;
    pointer-events: none;
}

.board-card-ghost {
    opacity: .35;
}

.board-card-chosen {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .18) !important;
}

.board-empty {
    display: grid;
    place-items: center;
    min-height: 8rem;
    margin: 0;
    color: var(--app-muted);
    background: rgba(255, 255, 255, .45);
    border: 2px dashed #c5cbd5;
    border-radius: .5rem;
}

.guide-hero {
    position: relative;
    overflow: hidden;
    margin-inline: -1rem;
    padding-inline: clamp(1rem, 4vw, 3rem);
    background: radial-gradient(circle at 82% 10%, rgba(87, 157, 255, .3), transparent 32%), radial-gradient(circle at 12% 90%, rgba(126, 87, 194, .15), transparent 30%), linear-gradient(145deg, #f7fbff 0%, #e9f2ff 52%, #f5f0ff 100%);
    border-bottom: 1px solid #cce0ff;
}

@media (min-width: 768px) {
    .guide-hero {
        margin-inline: -1.5rem;
    }
}

.guide-hero .display-4 {
    max-width: 13ch;
    font-size: clamp(2.7rem, 6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.guide-step {
    padding: 1.5rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background: var(--bs-body-bg);
    box-shadow: var(--app-shadow-sm);
}

    .guide-step > span {
        display: inline-grid;
        place-items: center;
        width: 2.25rem;
        height: 2.25rem;
        margin-bottom: 1rem;
        border-radius: 50%;
        color: #fff;
        background: var(--bs-primary);
        font-weight: 700;
    }

.guide-section {
    scroll-margin-top: 5rem;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    border: 1px solid var(--bs-border-color);
    border-radius: 1.25rem;
}

.guide-list {
    padding-left: 1.25rem;
}

    .guide-list li {
        margin-bottom: .9rem;
        padding-left: .35rem;
    }

.mention-suggestions {
    z-index: 1080;
    max-height: 16rem;
    overflow-y: auto;
}

.label-color-dot {
    display: inline-block;
    width: 0.85rem;
    height: 0.85rem;
    margin-right: 0.25rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    vertical-align: -0.05rem;
}

.label-badge {
    color: #111;
    background-color: color-mix(in srgb, var(--label-color) 28%, white);
    border: 1px solid var(--label-color);
}

.label-badge-archived {
    filter: grayscale(1);
    opacity: 0.75;
}

.hero-copy {
    max-width: 42rem;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.report-stat {
    display: flex;
    min-height: 7rem;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #fff, #f7f9fc);
    box-shadow: var(--app-shadow-sm);
}

    .report-stat::after {
        position: absolute;
        right: -1rem;
        bottom: -1.5rem;
        width: 5rem;
        height: 5rem;
        content: "";
        background: rgba(12, 102, 228, .07);
        border-radius: 50%;
    }

    .report-stat span {
        color: var(--bs-secondary-color);
    }

    .report-stat strong {
        font-size: clamp(1.5rem, 3vw, 2.25rem);
    }

.report-metric-panel {
    height: 100%;
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    background: linear-gradient(145deg, #f7f9fc, #fff);
}

.report-progress-cell {
    min-width: 9rem;
}

    .report-progress-cell progress {
        width: 100%;
        accent-color: var(--bs-primary);
    }

.report-table-scroll {
    max-height: 28rem;
}

.sprint-progress-summary {
    display: grid;
    min-width: min(100%, 16rem);
    gap: .4rem;
}

    .sprint-progress-summary progress {
        width: 100%;
        height: 1rem;
        accent-color: var(--bs-success);
    }

.report-sprint-totals > div {
    margin-top: .75rem;
}

.report-sprint-totals dt {
    color: var(--bs-secondary-color);
    font-size: .875rem;
    font-weight: 500;
}

.report-sprint-totals dd {
    margin-bottom: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.report-chart {
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    background: linear-gradient(180deg, #fff, #f8faff);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8);
}

.workspace-card,
.project-card {
    overflow: hidden;
}

    .workspace-card::before,
    .project-card::before {
        display: block;
        height: .28rem;
        content: "";
        background: linear-gradient(90deg, var(--app-blue), #579dff, var(--app-purple));
    }

.workspace-avatar {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--app-navy-soft), var(--app-blue));
    border-radius: .8rem;
    font-size: 1.15rem;
    font-weight: 800;
    box-shadow: 0 6px 15px rgba(9, 30, 66, .18);
}

.notification-list {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: .85rem;
    box-shadow: var(--app-shadow-sm);
}

.notification-item {
    display: grid;
    grid-template-columns: .35rem 1fr;
    border-bottom: 1px solid #eef0f3;
}

    .notification-item:last-child {
        border-bottom: 0;
    }

.notification-item-marker {
    background: transparent;
}

.notification-item.is-unread {
    background: linear-gradient(90deg, #f3f8ff, #fff 38%);
}

    .notification-item.is-unread .notification-item-marker {
        background: var(--app-blue);
    }

.notification-item-content {
    padding: 1.15rem 1.25rem;
}

.empty-state-icon {
    display: inline-grid;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1rem;
    place-items: center;
    color: var(--app-success);
    background: #dcfff1;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 800;
}

code {
    padding: .14rem .35rem;
    color: #5e4db2;
    background: #f3f0ff;
    border-radius: .3rem;
}

.report-chart svg {
    display: block;
    width: 100%;
    min-height: 12rem;
}

.report-chart-axis {
    stroke: var(--bs-border-color);
    stroke-width: 1;
}

.report-chart-line {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.report-chart-ideal {
    stroke: var(--bs-secondary-color);
    stroke-dasharray: 10 7;
}

.report-chart-actual {
    stroke: var(--bs-danger);
}

.report-chart-scope {
    stroke: var(--bs-primary);
}

.report-chart-completed {
    stroke: var(--bs-success);
}

.report-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

    .report-chart-legend span::before {
        display: inline-block;
        width: 1.5rem;
        height: .25rem;
        margin-right: .4rem;
        content: "";
        vertical-align: middle;
        background: var(--legend-color);
    }

.report-legend-ideal {
    --legend-color: var(--bs-secondary-color);
}

.report-legend-actual {
    --legend-color: var(--bs-danger);
}

.report-legend-scope {
    --legend-color: var(--bs-primary);
}

.report-legend-completed {
    --legend-color: var(--bs-success);
}

/* Simple, AdminLTE-inspired authenticated shell. The public landing page remains full width. */
.app-authenticated {
    --app-sidebar-width: 17rem;
}

    .app-authenticated .app-sidebar {
        width: var(--app-sidebar-width);
        height: 100vh;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        color: #d9e2f2;
        background: linear-gradient(180deg, #172b4d 0%, #0f1f38 100%);
        border-right: 0;
        box-shadow: .25rem 0 1.5rem rgba(9, 30, 66, .18);
    }

.app-sidebar-header {
    display: flex !important;
    min-height: 4rem;
    flex: 0 0 auto;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.app-brand-inverse, .app-brand-inverse:hover {
    color: #fff;
}

.app-sidebar-body {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1rem .8rem calc(1rem + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
}

    .app-sidebar-body::-webkit-scrollbar {
        display: none;
        height: 0;
        width: 0;
    }

.app-sidebar-label {
    margin: .25rem .75rem .5rem;
    color: #9fb0ca;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.app-sidebar-nav {
    gap: .18rem;
}

    .app-sidebar-nav .nav-link {
        display: flex;
        align-items: center;
        gap: .75rem;
        min-height: 2.85rem;
        padding: .7rem .8rem;
        color: #d9e2f2;
        border-radius: .55rem;
        text-decoration: none;
    }

        .app-sidebar-nav .nav-link > span {
            display: inline-grid;
            width: 1.35rem;
            place-items: center;
            color: #9fb0ca;
            font-size: 1.05rem;
        }

        .app-sidebar-nav .nav-link:hover {
            color: #fff;
            background: rgba(255,255,255,.09);
        }

        .app-sidebar-nav .nav-link.active {
            color: #fff;
            background: var(--app-blue);
            box-shadow: 0 .35rem 1rem rgba(0,85,204,.32);
        }

            .app-sidebar-nav .nav-link.active > span {
                color: #fff;
            }

.app-project-switcher {
    margin: .2rem 0 .45rem;
}

    .app-project-switcher details {
        position: relative;
    }

    .app-project-switcher summary {
        display: flex;
        align-items: center;
        gap: .7rem;
        padding: .75rem .8rem;
        color: #fff;
        background: rgba(255,255,255,.08);
        border: 1px solid rgba(255,255,255,.12);
        border-radius: .65rem;
        cursor: pointer;
        list-style: none;
    }

        .app-project-switcher summary::-webkit-details-marker {
            display: none;
        }

        .app-project-switcher summary:hover {
            background: rgba(255,255,255,.13);
        }

        .app-project-switcher summary:focus-visible {
            outline: .18rem solid #85b8ff;
            outline-offset: .12rem;
        }

.app-project-badge, .app-project-key {
    display: inline-grid;
    width: 1.8rem;
    height: 1.8rem;
    flex: 0 0 auto;
    place-items: center;
    color: #fff !important;
    background: #579dff;
    border-radius: .4rem;
    font-size: .75rem;
    font-weight: 900;
}

.app-project-summary-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

    .app-project-summary-copy strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-project-summary-copy small {
        color: #b8c5d8;
        font-size: .72rem;
    }

.app-project-chevron {
    color: #b8c5d8;
    transition: transform .15s ease;
}

.app-project-switcher details[open] .app-project-chevron {
    transform: rotate(180deg);
}

.app-project-menu {
    display: grid;
    gap: .2rem;
    margin-top: .35rem;
    padding: .4rem;
    background: #0b192d;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: .65rem;
}

    .app-project-menu a {
        display: grid;
        grid-template-columns: 3.5rem 1fr;
        gap: .5rem;
        padding: .55rem .6rem;
        color: #d9e2f2;
        border-radius: .45rem;
        text-decoration: none;
    }

        .app-project-menu a span {
            color: #9fb0ca;
            font-size: .72rem;
            font-weight: 800;
        }

        .app-project-menu a:hover, .app-project-menu a.active {
            color: #fff;
            background: rgba(255,255,255,.1);
        }

    .app-project-menu .app-project-menu-all {
        display: block;
        color: #85b8ff;
        border-top: 1px solid rgba(255,255,255,.1);
        border-radius: 0;
        font-size: .82rem;
        font-weight: 750;
    }

.app-project-quick-link strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-sidebar-help {
    margin: 2rem .25rem .25rem;
    padding: 1rem;
    color: #d9e2f2;
    background: rgba(255,255,255,.08);
    border-radius: .7rem;
}

    .app-sidebar-help span {
        display: block;
        margin-top: .2rem;
        color: #b8c5d8;
        font-size: .82rem;
    }

.app-topbar-title {
    color: var(--app-muted);
    font-weight: 650;
}

@media (min-width: 992px) {
    .app-authenticated .app-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        visibility: visible !important;
        transform: none !important;
    }

    .app-authenticated .app-header,
    .app-authenticated .app-main,
    .app-authenticated .app-footer {
        margin-left: var(--app-sidebar-width);
    }

    .app-authenticated .app-header {
        width: calc(100% - var(--app-sidebar-width));
    }
}

@media (max-width: 991.98px) {
    .app-authenticated .app-header .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }

    .app-authenticated .app-user-email {
        display: none;
    }
}

.timer-display {
    color: var(--app-navy);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    letter-spacing: -.05em;
}

.status-live {
    color: #075e40;
    background: #dcfff1;
}

.timer-project-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-height: 6rem;
    padding: 1rem;
    color: var(--app-navy);
    background: #fff;
    border: 2px solid var(--app-border);
    border-radius: .8rem;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

    .timer-project-card:hover {
        border-color: #85b8ff;
        box-shadow: var(--app-shadow-sm);
        transform: translateY(-1px);
    }

.timer-project-input:focus-visible + .timer-project-card {
    outline: .2rem solid rgba(12, 102, 228, .25);
    outline-offset: .15rem;
}

.timer-project-input:checked + .timer-project-card {
    border-color: var(--app-blue);
    background: var(--app-blue-soft);
    box-shadow: 0 0 0 .2rem rgba(12, 102, 228, .12);
}

.timer-project-mark {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    background: var(--app-blue);
    border-radius: .65rem;
}

.timer-project-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

    .timer-project-copy strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .timer-project-copy small {
        color: var(--app-muted);
    }

.timer-project-check {
    color: var(--app-blue);
    font-weight: 900;
    opacity: 0;
}

.timer-project-input:checked + .timer-project-card .timer-project-check {
    opacity: 1;
}

.timer-task-step {
    padding-top: 1.25rem;
    border-top: 1px solid var(--app-border);
}

.calendar-agenda {
    display: grid;
    gap: 1rem;
}

.calendar-event {
    display: grid;
    grid-template-columns: minmax(9rem, 12rem) 1fr;
    gap: 1rem;
    padding: 1rem;
    background: #f8faff;
    border: 1px solid var(--app-border);
    border-left: .35rem solid var(--app-blue);
    border-radius: .65rem;
}

.calendar-date {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

    .calendar-date span {
        color: var(--app-muted);
        font-size: .9rem;
    }

.calendar-details p {
    margin-bottom: .5rem;
}

.activity-timeline {
    position: relative;
    display: grid;
    gap: .9rem;
    padding-left: 1.4rem;
}

    .activity-timeline::before {
        position: absolute;
        inset: .35rem auto .35rem .35rem;
        width: 2px;
        content: "";
        background: var(--app-border);
    }

    .activity-timeline > li {
        position: relative;
        padding: .8rem 1rem;
        background: #f8faff;
        border-radius: .55rem;
        list-style: none;
    }

        .activity-timeline > li::before {
            position: absolute;
            top: 1rem;
            left: -1.38rem;
            width: .75rem;
            height: .75rem;
            content: "";
            background: var(--app-blue);
            border: 2px solid #fff;
            border-radius: 50%;
            box-shadow: 0 0 0 1px var(--app-blue);
        }

.activity-dot {
    display: none;
}

@media (max-width: 575.98px) {
    .calendar-event {
        grid-template-columns: 1fr;
    }
}

.app-sidebar-group > details > summary {
    align-items: center;
    color: rgba(255, 255, 255, .68);
    cursor: pointer;
    display: flex;
    font-size: .72rem;
    font-weight: 800;
    justify-content: space-between;
    letter-spacing: .08em;
    padding: .55rem .8rem;
    text-transform: uppercase;
}

    .app-sidebar-group > details > summary::-webkit-details-marker {
        display: none;
    }

.app-sidebar-group > details[open] > summary span:last-child {
    transform: rotate(180deg);
}

.app-sidebar-group > details > .navbar-nav {
    gap: .15rem;
}

.work-item-filter-panel > summary {
    cursor: pointer;
    list-style: none;
}

    .work-item-filter-panel > summary::-webkit-details-marker {
        display: none;
    }

.work-item-filter-panel[open] .filter-chevron {
    transform: rotate(180deg);
}

.filter-chevron {
    display: inline-block;
    transition: transform .15s ease;
}

.work-item-table th {
    background: var(--bs-tertiary-bg);
    color: var(--bs-secondary-color);
    font-size: .78rem;
    letter-spacing: .035em;
    text-transform: uppercase;
    white-space: nowrap;
}

.work-item-table td {
    padding-block: .9rem;
}

.work-item-table tbody tr:hover {
    background: rgba(13, 110, 253, .035);
}

.work-item-title-link {
    color: var(--bs-body-color);
    font-weight: 600;
    text-decoration: none;
}

    .work-item-title-link:hover {
        color: var(--bs-link-color);
        text-decoration: underline;
    }

.inline-status-control.is-submitting {
    opacity: .7;
    pointer-events: none;
}

    .inline-status-control.is-submitting .form-select {
        background-image: none;
    }

.comment-composer {
    background: var(--bs-body-bg);
    border: 1px solid #cbd5e1;
    border-radius: .8rem;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

    .comment-composer:focus-within {
        border-color: var(--bs-primary);
        box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .1);
    }

.comment-composer-input {
    background: transparent;
    border: 0;
    display: block;
    min-height: 6.5rem;
    outline: 0;
    padding: .9rem 1rem .45rem;
    resize: vertical;
    width: 100%;
}

.comment-composer-toolbar {
    align-items: center;
    background: #f8fafc;
    border-top: 1px solid var(--bs-border-color-translucent);
    display: flex;
    gap: .55rem;
    min-height: 2.8rem;
    padding: .4rem .6rem;
}

.conversation-format-toolbar {
    display: flex;
    align-items: center;
    gap: .2rem;
    padding: .4rem .55rem;
    border-bottom: 1px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg);
}

.conversation-format-button {
    display: inline-flex;
    min-width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    padding: 0 .45rem;
    border: 0;
    border-radius: .4rem;
    color: var(--bs-secondary-color);
    background: transparent;
    cursor: pointer;
    list-style: none;
}

    .conversation-format-button:hover,
    .conversation-format-button:focus-visible {
        color: var(--bs-primary);
        background: var(--bs-primary-bg-subtle);
    }

    .conversation-format-button::-webkit-details-marker {
        display: none;
    }

.conversation-emoji-picker,
.conversation-reaction-picker,
.conversation-message-react {
    position: relative;
}

.conversation-emoji-menu,
.conversation-reaction-menu {
    position: absolute;
    z-index: 20;
    display: flex;
    gap: .2rem;
    width: max-content;
    padding: .4rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .65rem;
    background: var(--bs-body-bg);
    box-shadow: 0 .5rem 1rem rgba(15, 23, 42, .14);
}

    .conversation-emoji-menu button,
    .conversation-reaction-menu button {
        width: 2.1rem;
        height: 2.1rem;
        padding: 0;
        border: 0;
        border-radius: .45rem;
        background: transparent;
        font-size: 1.1rem;
    }

        .conversation-emoji-menu button:hover,
        .conversation-reaction-menu button:hover {
            background: var(--bs-tertiary-bg);
        }

.conversation-text-line {
    min-height: 1.4em;
    overflow-wrap: anywhere;
}

.conversation-text-quote {
    padding-left: .75rem;
    border-left: .2rem solid var(--bs-border-color);
    color: var(--bs-secondary-color);
}

.conversation-text-list-item {
    padding-left: .25rem;
}

.conversation-text-line code {
    color: var(--bs-code-color);
}

.conversation-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-top: .55rem;
}

    .conversation-reactions form,
    .conversation-reaction-menu form {
        display: inline-flex;
    }

.conversation-reaction {
    padding: .18rem .52rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 999px;
    background: var(--bs-body-bg);
    font-size: .82rem;
}

    .conversation-reaction:hover,
    .conversation-reaction.is-selected {
        border-color: var(--bs-primary);
        background: var(--bs-primary-bg-subtle);
        color: var(--bs-primary-text-emphasis);
    }

.conversation-message-react {
    margin-top: .4rem;
}

    .conversation-message-react > summary {
        width: fit-content;
        color: var(--bs-secondary-color);
        font-size: .78rem;
        cursor: pointer;
        list-style: none;
    }

        .conversation-message-react > summary::-webkit-details-marker {
            display: none;
        }

.comment-clip-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.05rem;
    height: 2rem;
    justify-content: center;
    transition: background .15s ease, color .15s ease;
    width: 2rem;
}

    .comment-clip-button:hover,
    .comment-clip-button:focus-visible {
        background: rgba(13, 110, 253, .1);
        color: var(--bs-primary);
        outline: 0;
    }

.comment-pending-preview {
    align-items: center;
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: .55rem;
    display: inline-flex;
    gap: .65rem;
    margin: .35rem .75rem .65rem;
    max-width: calc(100% - 1.5rem);
    overflow: hidden;
    padding: .4rem;
}

    .comment-pending-preview[hidden] {
        display: none;
    }

    .comment-pending-preview img {
        border-radius: .4rem;
        height: 5rem;
        object-fit: cover;
        width: 7rem;
    }

    .comment-pending-preview > span:last-child {
        display: grid;
        min-width: 0;
    }

    .comment-pending-preview strong {
        max-width: 20rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .comment-pending-preview small {
        color: var(--bs-secondary-color);
    }

.comment-attachment-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin: .5rem 0 .85rem;
}

.comment-image-preview,
.comment-file-preview {
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .65rem;
    color: var(--bs-body-color);
    overflow: hidden;
    text-decoration: none;
}

.comment-image-preview {
    display: grid;
    width: min(14rem, 100%);
}

    .comment-image-preview img {
        height: 8rem;
        object-fit: cover;
        width: 100%;
    }

    .comment-image-preview > span {
        font-size: .78rem;
        overflow: hidden;
        padding: .4rem .55rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.comment-file-preview {
    align-items: center;
    display: flex;
    gap: .65rem;
    max-width: 20rem;
    padding: .65rem .8rem;
}

    .comment-file-preview > span:first-child {
        font-size: 1.4rem;
    }

    .comment-file-preview > span:last-child {
        display: grid;
        min-width: 0;
    }

    .comment-file-preview strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .comment-file-preview small {
        color: var(--bs-secondary-color);
    }

    .comment-image-preview:hover,
    .comment-file-preview:hover {
        border-color: var(--bs-primary);
        color: var(--bs-primary);
    }

.work-item-conversation .card-body {
    padding: clamp(1rem, 2vw, 1.5rem) !important;
}

.comment-compose-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: .75rem;
}

.comment-send-button {
    align-items: center;
    display: inline-flex;
    gap: .35rem;
    justify-content: center;
    min-width: 5.25rem;
}

.comment-thread-list {
    display: grid;
    gap: 1rem;
}

.comment-thread-item {
    align-items: flex-start;
    display: grid;
    gap: .7rem;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    position: relative;
}

    .comment-thread-item::before {
        background: #e2e8f0;
        bottom: -1rem;
        content: "";
        left: 1.1rem;
        position: absolute;
        top: 2.5rem;
        width: 1px;
    }

    .comment-thread-item:last-child::before {
        display: none;
    }

.comment-thread-reply {
    margin-left: clamp(1rem, 5vw, 3rem);
}

.comment-author-avatar {
    align-items: center;
    background: #e0e7ff;
    border: 2px solid var(--bs-body-bg);
    border-radius: 50%;
    color: #3730a3;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 800;
    height: 2.25rem;
    justify-content: center;
    position: relative;
    width: 2.25rem;
    z-index: 1;
}

.comment-thread-content {
    min-width: 0;
}

.comment-thread-bubble {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: .85rem;
    padding: .85rem 1rem;
}

.comment-body {
    margin: 0;
    white-space: pre-line;
}

.comment-reply-label {
    color: var(--bs-secondary-color);
    font-size: .78rem;
    font-weight: 500;
    margin-left: .4rem;
}

.comment-action-row {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    min-height: 2rem;
    padding: .2rem .25rem 0;
}

.comment-action-details {
    min-width: 0;
}

    .comment-action-details > summary {
        list-style: none;
    }

        .comment-action-details > summary::-webkit-details-marker {
            display: none;
        }

.comment-action-button {
    align-items: center;
    border-radius: .45rem;
    color: var(--bs-secondary-color);
    cursor: pointer;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 650;
    gap: .3rem;
    padding: .3rem .5rem;
    user-select: none;
}

    .comment-action-button:hover,
    .comment-action-button:focus-visible {
        background: #eef2ff;
        color: var(--bs-primary);
        outline: none;
    }

.comment-action-details[open] {
    flex: 1 1 100%;
}

    .comment-action-details[open] > .comment-action-button {
        background: #eef2ff;
        color: var(--bs-primary);
    }

    .comment-action-details[open] > form,
    .comment-action-details[open] > p {
        background: var(--bs-body-bg);
        border: 1px solid #e2e8f0;
        border-radius: .75rem;
        margin-top: .45rem !important;
        padding: .75rem;
    }

.comment-manage-details[open] {
    min-width: min(100%, 28rem);
}

@media (max-width: 575.98px) {
    .comment-thread-reply {
        margin-left: .5rem;
    }

    .comment-thread-item {
        grid-template-columns: 2rem minmax(0, 1fr);
    }

    .comment-author-avatar {
        height: 2rem;
        width: 2rem;
    }

    .comment-thread-item::before {
        left: 1rem;
    }
}

.discussion-topic-list .list-group-item {
    border-left: .25rem solid transparent;
}

    .discussion-topic-list .list-group-item:hover {
        border-left-color: var(--bs-primary);
    }

.discussion-chat-shell {
    min-height: 70vh;
    overflow: hidden;
}

.discussion-message-stream {
    background: color-mix(in srgb, var(--bs-tertiary-bg) 75%, transparent);
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 1rem;
    max-height: 62vh;
    min-height: 22rem;
    overflow-y: auto;
}

.discussion-message {
    align-items: flex-start;
    display: flex;
    gap: .7rem;
    max-width: 85%;
}

.discussion-message-own {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.discussion-avatar {
    align-items: center;
    background: var(--bs-primary);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 2.35rem;
    font-weight: 700;
    height: 2.35rem;
    justify-content: center;
    width: 2.35rem;
}

.discussion-avatar-small {
    flex-basis: 1.85rem;
    font-size: .78rem;
    height: 1.85rem;
    width: 1.85rem;
}

.discussion-bubble {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .25rem 1rem 1rem 1rem;
    box-shadow: 0 .15rem .6rem rgba(15, 23, 42, .06);
    min-width: 12rem;
    padding: .8rem 1rem;
}

.discussion-message-own .discussion-bubble {
    background: color-mix(in srgb, var(--bs-primary) 10%, var(--bs-body-bg));
    border-color: color-mix(in srgb, var(--bs-primary) 35%, var(--bs-border-color));
    border-radius: 1rem .25rem 1rem 1rem;
}

.discussion-message-body {
    white-space: pre-wrap;
}

.discussion-attachment {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .7rem;
    overflow: hidden;
}

    .discussion-attachment img {
        display: block;
        max-height: 15rem;
        object-fit: cover;
        width: min(24rem, 100%);
    }

.discussion-composer {
    border: 1px solid var(--bs-border-color);
    border-radius: .8rem;
    overflow: hidden;
}

    .discussion-composer:focus-within {
        border-color: var(--bs-primary);
        box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .15);
    }

.discussion-selected-image {
    border-radius: .5rem;
    height: 4rem;
    object-fit: cover;
    width: 5rem;
}

.pending-attachment-remove {
    align-items: center;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.15rem;
    height: 2rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 2rem;
}

.discussion-participants .min-w-0 {
    min-width: 0;
}

.discussion-inbox-table thead th {
    background: var(--bs-tertiary-bg);
    color: var(--bs-secondary-color);
    font-size: .75rem;
    letter-spacing: .045em;
    padding: .85rem 1rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.discussion-inbox-row td {
    border-left: 0;
    padding: 1rem;
}

    .discussion-inbox-row td:first-child {
        border-left: .25rem solid var(--bs-primary);
    }

.discussion-inbox-row:hover td {
    background: var(--bs-tertiary-bg);
}

.discussion-inbox-row.is-unread td {
    background: rgba(var(--bs-primary-rgb), .045);
}

.discussion-inbox-content {
    min-width: 20rem;
    max-width: 36rem;
}

.discussion-inbox-preview {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discussion-inbox-check {
    align-items: center;
    background: rgba(var(--bs-success-rgb), .12);
    border-radius: 50%;
    color: var(--bs-success);
    display: flex;
    font-size: 1.35rem;
    font-weight: 700;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

@media (max-width: 767.98px) {
    .discussion-inbox-table thead {
        display: none;
    }

    .discussion-inbox-table, .discussion-inbox-table tbody, .discussion-inbox-table tr, .discussion-inbox-table td {
        display: block;
        width: 100%;
    }

    .discussion-inbox-row {
        border-bottom: var(--bs-border-width) solid var(--bs-border-color);
        padding: .75rem 1rem;
    }

        .discussion-inbox-row:last-child {
            border-bottom: 0;
        }

        .discussion-inbox-row td, .discussion-inbox-row td:first-child {
            border: 0;
            padding: .35rem 0;
            text-align: left !important;
        }

            .discussion-inbox-row td::before {
                color: var(--bs-secondary-color);
                content: attr(data-label);
                display: block;
                font-size: .7rem;
                font-weight: 700;
                letter-spacing: .04em;
                margin-bottom: .15rem;
                text-transform: uppercase;
            }

    .discussion-inbox-content {
        min-width: 0;
        max-width: none;
    }

    .discussion-inbox-preview {
        white-space: normal;
    }
}

.empty-state-icon {
    font-size: 2.25rem;
}

@media (max-width: 575.98px) {
    .discussion-message {
        max-width: 96%;
    }

    .discussion-bubble {
        min-width: 0;
    }
}

.app-member-avatar {
    align-items: center;
    background: var(--bs-primary-bg-subtle);
    border-radius: 50%;
    color: var(--bs-primary-text-emphasis);
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 700;
    height: 1.75rem;
    justify-content: center;
    width: 1.75rem;
}

.project-team-summary > summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    list-style: none;
}

    .project-team-summary > summary::-webkit-details-marker {
        display: none;
    }

.project-team-summary[open] > summary > :last-child {
    transform: rotate(180deg);
}

/* ==========================================================================
   ProjectFlow — Organization admin reporting tab
   Additive only: no rule here redefines .card, .metric-card, .metric-value,
   or any other class already styled above, so the original card design
   used by "My work" is untouched.
   ========================================================================== */

:root {
    --pf-blue: #2f6fed;
    --pf-red: #dc2626;
    --pf-muted-2: #98a2b3;
    --pf-border: #e7eaf2;
    --pf-radius: 12px;
    --pf-radius-sm: 8px;
}

/* ---------- Range bar ---------- */
.admin-range-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius-sm);
    padding: 12px 16px;
}

.admin-range-note {
    color: var(--pf-muted-2);
    font-size: 12.5px;
    white-space: nowrap;
}

.admin-range-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-custom-range {
    align-items: center;
    margin-left: auto;
    padding: 6px 10px;
    background: #f8faff;
    border: 1px dashed #c7d6fb;
    border-radius: var(--pf-radius-sm);
}

.admin-custom-range-label {
    color: var(--pf-muted-2);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.admin-custom-range-input.form-control {
    min-height: 2.5rem;
    max-width: 9.5rem;
    padding-block: .4rem;
}

@media (max-width: 767.98px) {
    .admin-custom-range {
        width: 100%;
        margin-left: 0;
        border-style: solid;
    }

    .admin-custom-range-input.form-control {
        max-width: none;
        flex: 1 1 auto;
    }
}

.admin-period-toggle .btn {
    font-weight: 600;
    font-size: 13px;
}

/* ---------- KPI grid (primary + secondary rows use the same plain card) ---------- */
.admin-kpi-grid {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
}

.admin-kpi-card {
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius-sm);
}

    .admin-kpi-card .card-body {
        padding: 14px 16px;
    }

.admin-kpi-label {
    font-size: 13px;
    margin-bottom: 2px;
}

.admin-kpi-card .metric-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.admin-kpi-card--alert {
    border-color: #f3c6c6;
}

    .admin-kpi-card--alert .metric-value {
        color: var(--pf-red);
    }

/* ---------- Hours-logged / insight panel ---------- */
.admin-insight-panel {
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius);
    overflow: hidden;
}

    .admin-insight-panel .card-header {
        border-bottom: 1px solid var(--pf-border);
        padding: 16px 20px;
    }

    .admin-insight-panel progress {
        width: 120px;
        height: 8px;
        border-radius: 6px;
        overflow: hidden;
        accent-color: var(--pf-blue);
    }

    .admin-insight-panel table th,
    .admin-insight-panel table td {
        font-size: 13px;
        vertical-align: middle;
    }

/* ---------- Filter row: align Apply/Clear with the input fields ---------- */
.admin-filter-actions {
    align-items: stretch;
}

.admin-filter-actions__spacer {
    margin-bottom: 0.25rem; /* matches .form-label height above the other inputs */
    visibility: hidden;
}

/* ---------- Responsibilities list ---------- */
#responsibilities-heading ~ .list-group .list-group-item,
.list-group-item-action {
    transition: background-color 0.12s ease;
}

    .list-group-item-action:hover {
        background-color: #fafbff;
    }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .admin-kpi-card .metric-value {
        font-size: 22px;
    }

    .admin-range-bar {
        align-items: flex-start;
    }
}
