/* =========================================================
LANTERN DASHBOARD COCKPIT
========================================================= */

.lantern-dashboard {
    gap: 0;
}

.lantern-cockpit {
    position: relative;
    display: grid;
    grid-template-columns: minmax(248px, 25%) 6px minmax(430px, 1fr) 6px minmax(248px, 24%);
    gap: clamp(14px, 1.5vw, 20px);
    width: min(100%, 1320px);
    min-height: clamp(560px, calc(100vh - 148px), 720px);
    margin: -2px auto 0;
    padding: clamp(20px, 2.4vw, 32px) clamp(22px, 3vw, 30px) clamp(82px, 10vh, 104px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    overflow: hidden;
    background:
        linear-gradient(rgba(0, 9, 14, .20), rgba(0, 9, 14, .30)),
        url("../../images/lantern-wall.1c2e74e4d64c.png") center 40% / cover no-repeat;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .04),
        0 24px 60px rgba(0, 0, 0, .34);
}

.lantern-cockpit::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .025), transparent 24%, transparent 74%, rgba(255, 255, 255, .025)),
        radial-gradient(circle at 58% 51%, rgba(247, 236, 124, .16), transparent 15%);
}

.lantern-cockpit-left,
.lantern-cockpit-main,
.lantern-cockpit-right {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 16px;
}

.lantern-cockpit-main {
    justify-content: flex-start;
    align-items: center;
}

.lantern-cockpit-separator {
    position: relative;
    z-index: 1;
    width: 6px;
    align-self: stretch;
    margin: 20px 0 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(245, 248, 244, .78), rgba(122, 134, 133, .56));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 0 18px rgba(255, 255, 255, .22);
    opacity: .8;
}

.lantern-mini-stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.lantern-main-stats {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lantern-mini-stat,
.lantern-panel {
    border: 1px solid rgba(255, 255, 255, .44);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(238, 241, 238, .30), rgba(128, 137, 135, .46)),
        rgba(152, 159, 157, .48);
    color: rgba(255, 255, 255, .90);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, .25),
        inset 0 1px 1px rgba(255, 255, 255, .38),
        inset 0 -1px 1px rgba(49, 55, 55, .18);
    backdrop-filter: blur(14px) saturate(112%);
    -webkit-backdrop-filter: blur(14px) saturate(112%);
}

.lantern-mini-stat {
    min-height: 104px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
}

.lantern-mini-stat:hover,
.lantern-hold-panel:hover {
    border-color: rgba(139, 255, 236, .68);
    color: #fff;
}

.lantern-mini-stat span,
.lantern-panel h2,
.lantern-hold-panel span {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    font-weight: 400;
}

.lantern-mini-stat strong {
    align-self: flex-end;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(34px, 4.6vw, 44px);
    font-weight: 300;
    line-height: .9;
}

.lantern-mini-stat-wide {
    min-height: 104px;
}

.lantern-project-panel {
    padding: 13px 12px 15px;
}

.lantern-project-panel h2,
.lantern-log-panel h2,
.lantern-task-stack h2,
.lantern-calendar-panel h2 {
    margin-bottom: 12px;
}

.lantern-project-meter {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    margin-top: 7px;
}

.lantern-project-meter span {
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
}

.lantern-project-meter i,
.lantern-task-strip i {
    display: block;
    height: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .56);
    border-radius: 999px;
    background: rgba(246, 249, 246, .38);
    box-shadow: inset 0 1px 3px rgba(39, 45, 45, .28);
}

.lantern-project-meter b,
.lantern-task-strip b {
    display: block;
    width: 52%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(204, 201, 75, .84), rgba(250, 239, 121, .84));
    box-shadow: 0 0 10px rgba(245, 235, 96, .30);
}

.lantern-log-panel {
    flex: 1;
    min-height: 220px;
    padding: 12px;
    background:
        linear-gradient(145deg, rgba(247, 247, 244, .88), rgba(225, 227, 224, .78)),
        #e7e8e5;
    color: #343a3b;
}

.lantern-log-panel h2 {
    color: #343a3b;
}

.lantern-log-feed {
    position: relative;
    display: grid;
    align-content: start;
    gap: 7px;
    height: calc(100% - 32px);
    min-height: 170px;
    border-radius: 4px;
    overflow: hidden;
    background-image: radial-gradient(rgba(77, 83, 82, .18) 1px, transparent 1px);
    background-size: 12px 12px;
}

.lantern-log-row {
    position: relative;
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    column-gap: 7px;
    align-items: center;
    min-height: 26px;
    padding: 4px 7px;
    border: 1px solid rgba(62, 70, 69, .12);
    border-radius: 4px;
    background: rgba(255, 255, 255, .50);
    color: #2f3738;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(40, 45, 45, .07);
}

.lantern-log-row span {
    grid-row: 1 / span 2;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(86, 206, 194, .82);
    box-shadow: 0 0 8px rgba(86, 206, 194, .42);
}

.lantern-log-row strong,
.lantern-log-row small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lantern-log-row strong {
    font-size: 11px;
    font-weight: 600;
}

.lantern-log-row small {
    color: rgba(43, 50, 50, .68);
    font-size: 10px;
}

.lantern-log-row:hover {
    background: rgba(255, 255, 255, .76);
    color: #182020;
}

.lantern-dot-grid {
    height: calc(100% - 32px);
    min-height: 170px;
    border-radius: 4px;
    background-image: radial-gradient(rgba(77, 83, 82, .22) 1px, transparent 1px);
    background-size: 12px 12px;
}

.lantern-task-stack {
    position: relative;
    width: min(100%, 500px);
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    border-color: rgba(255, 255, 255, .50);
    background:
        linear-gradient(145deg, rgba(238, 244, 241, .40), rgba(126, 139, 136, .50)),
        rgba(142, 153, 150, .48);
}

.lantern-slide-viewport {
    overflow: hidden;
    border-radius: inherit;
}

.lantern-slide-track {
    display: flex;
    transition: transform .48s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

.lantern-slide-panel {
    flex: 0 0 100%;
    min-width: 0;
    padding: 16px 15px 18px;
}

.lantern-slide-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.lantern-slide-head h2 {
    margin-bottom: 0;
}

.lantern-slide-controls {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lantern-slide-controls button {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    background: rgba(226, 232, 229, .28);
    color: rgba(255, 255, 255, .86);
    font-size: 9px;
    line-height: 1;
}

.lantern-slide-controls .lantern-slide-dot {
    width: 7px;
    height: 7px;
    border-color: rgba(255, 255, 255, .50);
    background: rgba(255, 255, 255, .40);
}

.lantern-slide-controls button.active {
    border-color: rgba(105, 255, 229, .74);
    background: rgba(105, 255, 229, .74);
    box-shadow: 0 0 9px rgba(105, 255, 229, .38);
}

.lantern-slide-controls button:hover {
    background: rgba(105, 255, 229, .45);
}

.lantern-slide-controls button:disabled {
    cursor: default;
    opacity: .42;
}

.lantern-task-stack-list {
    position: relative;
    min-height: 0;
}

.lantern-stack-stage {
    position: relative;
    min-height: 178px;
}

.lantern-stack-stage.moving-forward .lantern-stack-card {
    animation: lanternCardForward .54s cubic-bezier(.22, 1, .36, 1);
}

.lantern-stack-stage.moving-back .lantern-stack-card {
    animation: lanternCardBack .54s cubic-bezier(.22, 1, .36, 1);
}

.lantern-stack-stage.moving-forward .lantern-stack-layer {
    animation: lanternLayerForward .54s cubic-bezier(.22, 1, .36, 1);
}

.lantern-stack-stage.moving-back .lantern-stack-layer {
    animation: lanternLayerBack .54s cubic-bezier(.22, 1, .36, 1);
}

.lantern-stack-stage.moving-forward .lantern-task-strip,
.lantern-stack-stage.moving-back .lantern-task-strip {
    animation: lanternRowsSettle .42s cubic-bezier(.22, 1, .36, 1);
}

.lantern-stack-card {
    position: relative;
    z-index: 4;
    display: grid;
    gap: 7px;
    min-height: 92px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 5px;
    background:
        linear-gradient(180deg, rgba(245, 248, 246, .70), rgba(215, 224, 221, .58)),
        rgba(232, 238, 235, .56);
    box-shadow:
        inset 0 1px 4px rgba(255, 255, 255, .58),
        0 12px 24px rgba(0, 0, 0, .16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@keyframes lanternCardForward {
    0% {
        opacity: .58;
        transform: translateY(26px) scale(.94);
        filter: blur(1px);
    }
    54% {
        opacity: .86;
        transform: translateY(-6px) scale(1.012);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes lanternCardBack {
    0% {
        opacity: .58;
        transform: translateY(-18px) scale(.95);
        filter: blur(1px);
    }
    54% {
        opacity: .88;
        transform: translateY(5px) scale(1.01);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes lanternLayerForward {
    0% {
        transform: perspective(260px) rotateX(-10deg) translateY(-12px) scaleX(.92);
    }
    62% {
        transform: perspective(260px) rotateX(-10deg) translateY(4px) scaleX(1.02);
    }
    100% {
        transform: perspective(260px) rotateX(-10deg) translateY(0) scaleX(1);
    }
}

@keyframes lanternLayerBack {
    0% {
        transform: perspective(260px) rotateX(-10deg) translateY(10px) scaleX(.92);
    }
    62% {
        transform: perspective(260px) rotateX(-10deg) translateY(-4px) scaleX(1.02);
    }
    100% {
        transform: perspective(260px) rotateX(-10deg) translateY(0) scaleX(1);
    }
}

@keyframes lanternRowsSettle {
    0% {
        opacity: .45;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.lantern-stack-layers {
    position: absolute;
    z-index: 1;
    inset: 28px 0 auto;
    height: 132px;
    pointer-events: none;
}

.lantern-stack-layer {
    position: absolute;
    display: block;
    height: 14px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 0 0 16px 16px;
    background:
        linear-gradient(180deg, rgba(237, 244, 240, .56), rgba(169, 184, 180, .42));
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, .34),
        0 7px 12px rgba(0, 0, 0, .10);
    transform: perspective(260px) rotateX(-10deg);
    transform-origin: top center;
}

.lantern-task-strip {
    min-height: 30px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(72px, auto) minmax(110px, 34%);
    align-items: center;
    gap: 9px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, .56);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(250, 252, 250, .80), rgba(224, 230, 227, .72));
    color: #343c3d;
    font-size: 11px;
    text-decoration: none;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, .54), 0 2px 9px rgba(0, 0, 0, .10);
}

.lantern-task-strip span,
.lantern-task-strip small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lantern-task-strip small {
    color: rgba(35, 44, 44, .70);
    font-size: 10px;
    text-align: right;
}

.lantern-empty-strip {
    pointer-events: none;
}

.lantern-stack-shadow {
    display: none;
}

.lantern-hold-panel {
    min-height: 118px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: inherit;
    text-decoration: none;
}

.lantern-hold-panel strong {
    align-self: flex-end;
    color: rgba(255, 255, 255, .70);
    font-size: 42px;
    font-weight: 300;
    line-height: 1;
}

.lantern-calendar-panel {
    flex: 1;
    min-height: 220px;
    padding: 18px 12px 16px;
}

.lantern-calendar-panel h2 {
    padding-left: 14px;
}

.lantern-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    margin-top: 8px;
}

.lantern-calendar-grid button {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 4px;
    background: rgba(229, 233, 230, .24);
    color: rgba(255, 255, 255, .76);
    font-size: 11px;
    text-decoration: none;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .20);
}

.lantern-calendar-grid button:hover,
.lantern-calendar-grid button.active,
.lantern-calendar-grid button.selected {
    background: rgba(239, 243, 240, .66);
    color: #333b3b;
}

.lantern-calendar-grid button.today {
    border-color: rgba(101, 255, 230, .76);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .22), 0 0 10px rgba(101, 255, 230, .24);
}

.lantern-calendar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0 14px;
    color: rgba(255, 255, 255, .86);
    font-size: 11px;
    text-decoration: none;
}

.lantern-calendar-link:hover {
    color: #7fffe9;
}

.lantern-dashboard > .workspace-page-header {
    width: min(100%, 1400px);
    margin: 0 auto;
}

@media(max-width: 1100px) {
    .lantern-cockpit {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .lantern-cockpit-separator {
        width: 100%;
        height: 5px;
        margin: 0;
    }

    .lantern-main-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lantern-task-stack {
        width: 100%;
    }

    .lantern-task-strip {
        grid-template-columns: minmax(0, 1fr) minmax(110px, 35%);
    }

    .lantern-task-strip small {
        display: none;
    }
}

@media(min-width: 1101px) {
    body.lantern-dashboard-page {
        overflow: hidden;
    }

    body.lantern-dashboard-page .main-content {
        height: 100vh;
        min-height: 100vh;
        padding: 10px 18px 0;
        overflow: hidden;
    }

    body.lantern-dashboard-page .page-content,
    body.lantern-dashboard-page #app,
    body.lantern-dashboard-page .lantern-dashboard {
        height: calc(100vh - 134px);
        min-height: 0;
        overflow: hidden;
    }

    body.lantern-dashboard-page .page-content {
        padding-bottom: 0;
    }

    body.lantern-dashboard-page .lantern-cockpit {
        height: 100%;
        min-height: 0;
        margin-top: 0;
        padding-top: clamp(16px, 2vh, 24px);
        padding-bottom: clamp(82px, 9vh, 102px);
    }

    body.lantern-dashboard-page .lantern-log-panel,
    body.lantern-dashboard-page .lantern-calendar-panel {
        min-height: 0;
    }
}

@media(max-width: 640px) {
    .lantern-cockpit {
        padding: 18px 12px 150px;
    }

    .lantern-mini-stat-row,
    .lantern-main-stats {
        grid-template-columns: 1fr 1fr;
    }

    .lantern-mini-stat {
        min-height: 96px;
    }

    .lantern-mini-stat strong {
        font-size: 34px;
    }

    .lantern-footer {
        z-index: 120;
    }
}

/* User/project bird's-eye overview */
.birdseye-panel { min-width: 0; }
.birdseye-search { max-width: 240px; }
.birdseye-scroll { overflow: auto; max-height: 480px; border: 1px solid var(--border-color, #dce1e8); border-radius: 10px; }
.birdseye-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.birdseye-table th, .birdseye-table td { min-width: 125px; height: 40px; padding: 9px 14px; border-right: 1px solid var(--border-color, #dce1e8); border-bottom: 1px solid var(--border-color, #dce1e8); white-space: nowrap; }
.birdseye-table thead th { position: sticky; top: 0; z-index: 2; background: var(--body-bg, #f8fafc); color: var(--text-color, #334155); }
.birdseye-table th:first-child { position: sticky; left: 0; z-index: 1; min-width: 180px; }
.birdseye-table thead th:first-child { z-index: 3; }
.birdseye-table th small { display: block; font-weight: 400; font-size: 11px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.birdseye-table th a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.birdseye-table td { font-weight: 500; }

.birdseye-page { padding-bottom: 120px; }
.birdseye-page .birdseye-scroll { max-height: calc(100vh - 320px); min-height: 180px; }

.birdseye-table .birdseye-person { display: inline-flex; align-items: center; gap: 9px; background: transparent; border: 0; border-radius: 5px; color: inherit !important; font: inherit; padding: 0; text-align: left; cursor: pointer; }
.birdseye-table .birdseye-person:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.birdseye-avatar { display: inline-flex; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid currentColor; }
.birdseye-initials { align-items: center; justify-content: center; background: rgba(255,255,255,.35); font-size: 11px; font-weight: 700; }
html body .birdseye-tooltip { position: fixed; z-index: 2200; box-sizing: border-box; padding: 16px; border: 1px solid #64748b; border-radius: 12px; background: #15232d; color: #f8fafc; box-shadow: 0 8px 28px rgba(0,0,0,.3); font-size: 13px; white-space: normal; }
html body .birdseye-tooltip strong { color: #f8fafc; }
.birdseye-tooltip-project { display: block; color: #cbd5e1; margin: 3px 0 12px; }
.birdseye-tooltip-count { margin-bottom: 12px; }
.birdseye-tooltip-count b { font-size: 22px; margin-right: 5px; }
.birdseye-tooltip progress { display: block; width: 100%; height: 8px; margin: 8px 0; accent-color: #5eead4; }
.birdseye-tooltip-note { display: block; margin-top: 10px; color: #cbd5e1; }
