:root {
    --bg-main: #05060a;
    --bg-main-soft: #0a0d14;
    --panel: #11151f;
    --panel-soft: #171b26;
    --panel-deep: #0c0f16;
    --line: rgba(255, 255, 255, 0.1);
    --text-main: #f2f4fa;
    --text-muted: #98a2b8;
    --accent: #ff4fa3;
    --accent-strong: #ff2a90;
    --accent-soft: #ffa6cf;
    --support: #7de3ff;
    --support-soft: #c8f5ff;
    --success: #4ade80;
    --danger: #ff6f91;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text-main);
}

.app-bg {
    position: relative;
    overflow-x: clip;
    background: radial-gradient(circle at 15% 0%, #13182a 0%, var(--bg-main) 45%), var(--bg-main);
    padding: 24px 14px;
}

.app-bg::before,
.app-bg::after {
    content: "";
    position: fixed;
    z-index: 0;
    border-radius: 50%;
    filter: blur(84px);
    pointer-events: none;
    will-change: transform, opacity;
}

.app-bg::before {
    width: 520px;
    height: 520px;
    top: 4vh;
    left: 4vw;
    background: rgba(255, 79, 163, 0.32);
    animation: glowFloatA 8s linear infinite;
}

.app-bg::after {
    width: 440px;
    height: 440px;
    top: 62vh;
    left: 72vw;
    background: rgba(125, 227, 255, 0.28);
    animation: glowFloatB 9.5s linear infinite;
}

.ambient-lights {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: clip;
}

.ambient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(86px);
    will-change: transform, opacity;
}

.ambient-orb.orb-a {
    width: 520px;
    height: 520px;
    top: -18vh;
    left: -12vw;
    background: rgba(255, 79, 163, 0.28);
    animation: ambientOrbitA 10s linear infinite;
}

.ambient-orb.orb-b {
    width: 460px;
    height: 460px;
    top: 64vh;
    left: 74vw;
    background: rgba(125, 227, 255, 0.28);
    animation: ambientOrbitB 11s linear infinite;
}

.ambient-orb.orb-c {
    width: 420px;
    height: 420px;
    top: 12vh;
    left: 86vw;
    background: rgba(255, 79, 163, 0.22);
    animation: ambientOrbitC 9s linear infinite;
}

.ambient-orb.orb-d {
    width: 380px;
    height: 380px;
    top: 82vh;
    left: -8vw;
    background: rgba(125, 227, 255, 0.24);
    animation: ambientOrbitD 12s linear infinite;
}

.planner-shell {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
    perspective: 1100px;
}

.planner-panel {
    width: min(1320px, 100%);
    background: linear-gradient(165deg, #111723 0%, #0c111a 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    overflow: hidden;
    transform: translateY(-2px) rotateX(0.35deg);
    box-shadow:
        0 38px 80px rgba(0, 0, 0, 0.56),
        0 12px 26px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -18px 28px rgba(3, 5, 9, 0.38);
}

.auth-page .planner-shell {
    min-height: calc(100vh - 48px);
    align-items: center;
}

.auth-panel {
    width: min(640px, 100%);
}

.auth-nav {
    display: flex;
    justify-content: center;
}

.auth-content {
    padding-top: 18px;
}

@keyframes glowFloatA {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.78;
    }
    12.5% {
        transform: translate3d(22vw, -8vh, 0) scale(1.1);
        opacity: 0.86;
    }
    25% {
        transform: translate3d(56vw, 2vh, 0) scale(1.14);
        opacity: 0.92;
    }
    37.5% {
        transform: translate3d(70vw, 30vh, 0) scale(1.04);
        opacity: 0.84;
    }
    50% {
        transform: translate3d(44vw, 66vh, 0) scale(1.18);
        opacity: 0.96;
    }
    62.5% {
        transform: translate3d(10vw, 72vh, 0) scale(1.1);
        opacity: 0.82;
    }
    75% {
        transform: translate3d(-10vw, 38vh, 0) scale(1.06);
        opacity: 0.76;
    }
    87.5% {
        transform: translate3d(-6vw, 6vh, 0) scale(1.1);
        opacity: 0.84;
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.78;
    }
}

@keyframes glowFloatB {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.68;
    }
    12.5% {
        transform: translate3d(-16vw, -22vh, 0) scale(1.1);
        opacity: 0.78;
    }
    25% {
        transform: translate3d(-58vw, -28vh, 0) scale(1.16);
        opacity: 0.88;
    }
    37.5% {
        transform: translate3d(-72vw, 8vh, 0) scale(1.08);
        opacity: 0.78;
    }
    50% {
        transform: translate3d(-38vw, 34vh, 0) scale(1.2);
        opacity: 0.9;
    }
    62.5% {
        transform: translate3d(-4vw, 24vh, 0) scale(1.12);
        opacity: 0.82;
    }
    75% {
        transform: translate3d(12vw, -6vh, 0) scale(1.04);
        opacity: 0.72;
    }
    87.5% {
        transform: translate3d(-6vw, -18vh, 0) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.68;
    }
}

@keyframes ambientOrbitA {
    0% {
        transform: translate3d(0, 0, 0) scale(1.02);
        opacity: 0.7;
    }
    25% {
        transform: translate3d(48vw, 10vh, 0) scale(1.14);
        opacity: 0.9;
    }
    50% {
        transform: translate3d(66vw, 48vh, 0) scale(1.08);
        opacity: 0.76;
    }
    75% {
        transform: translate3d(8vw, 70vh, 0) scale(1.18);
        opacity: 0.92;
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1.02);
        opacity: 0.7;
    }
}

@keyframes ambientOrbitB {
    0% {
        transform: translate3d(0, 0, 0) scale(1.02);
        opacity: 0.74;
    }
    25% {
        transform: translate3d(-44vw, -22vh, 0) scale(1.16);
        opacity: 0.92;
    }
    50% {
        transform: translate3d(-72vw, 8vh, 0) scale(1.08);
        opacity: 0.8;
    }
    75% {
        transform: translate3d(-18vw, -44vh, 0) scale(1.2);
        opacity: 0.9;
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1.02);
        opacity: 0.74;
    }
}

@keyframes ambientOrbitC {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.66;
    }
    25% {
        transform: translate3d(-30vw, 18vh, 0) scale(1.14);
        opacity: 0.86;
    }
    50% {
        transform: translate3d(-68vw, 34vh, 0) scale(1.08);
        opacity: 0.74;
    }
    75% {
        transform: translate3d(-42vw, -22vh, 0) scale(1.17);
        opacity: 0.88;
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.66;
    }
}

@keyframes ambientOrbitD {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.64;
    }
    25% {
        transform: translate3d(34vw, -20vh, 0) scale(1.16);
        opacity: 0.88;
    }
    50% {
        transform: translate3d(76vw, -40vh, 0) scale(1.08);
        opacity: 0.76;
    }
    75% {
        transform: translate3d(42vw, 4vh, 0) scale(1.18);
        opacity: 0.9;
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.64;
    }
}

.planner-nav {
    padding: 14px 22px;
    background: var(--panel-deep);
    border-bottom: 1px solid var(--line);
}

.workspace-nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
}

.planner-brand,
.planner-brand:visited {
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 0.2px;
    font-size: 1.25rem;
}

.workspace-tabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111722;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 4px;
    justify-self: center;
}

.workspace-tab,
.workspace-tab:visited {
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
}

.workspace-tab:hover,
.workspace-tab:focus {
    color: var(--text-main);
}

.workspace-tab.active {
    background: var(--accent);
    color: #180611;
}

.workspace-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.workspace-round-btn,
.workspace-round-btn:visited {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #161b27;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
}

.workspace-round-btn:hover {
    background: #1d2433;
    color: var(--support);
}

.workspace-pill-btn {
    border: 1px solid rgba(255, 79, 163, 0.55);
    background: rgba(255, 79, 163, 0.16);
    color: var(--accent-soft);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 0.82rem;
}

.workspace-pill-btn:hover {
    background: rgba(255, 79, 163, 0.24);
}

.planner-content {
    color: var(--text-main);
    padding: 24px;
}

.alert {
    border: none;
    border-radius: 12px;
}

.card {
    background: var(--panel-soft);
    border: 1px solid var(--line) !important;
    color: var(--text-main);
    border-radius: 14px;
}

.card-header {
    background: rgba(255, 255, 255, 0.01) !important;
    border-bottom: 1px solid var(--line) !important;
    color: var(--text-main);
}

.text-muted {
    color: var(--text-muted) !important;
}

.list-group-item {
    color: var(--text-main);
    background: transparent;
    border-color: var(--line);
}

.list-group-item-action:hover {
    background: rgba(255, 255, 255, 0.03);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #190611;
    font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #fff;
}

.btn-outline-primary {
    color: var(--support-soft);
    border-color: rgba(125, 227, 255, 0.52);
}

.btn-outline-primary:hover {
    color: #03151c;
    background: var(--support);
    border-color: var(--support);
}

.btn-outline-secondary {
    color: #dae0ef;
    border-color: rgba(214, 219, 230, 0.26);
}

.btn-outline-secondary:hover {
    background: rgba(214, 219, 230, 0.16);
    border-color: rgba(214, 219, 230, 0.4);
    color: #fff;
}

.btn-outline-danger {
    color: var(--danger);
    border-color: rgba(255, 111, 145, 0.5);
}

.btn-outline-danger:hover {
    background: rgba(255, 111, 145, 0.15);
    border-color: rgba(255, 111, 145, 0.65);
    color: #fff;
}

.form-control,
.form-select {
    background: #0f1521;
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: var(--text-main);
}

.form-control::placeholder {
    color: #8a96ae;
}

.form-check-label {
    color: var(--text-main);
}

.form-control:focus,
.form-select:focus {
    color: var(--text-main);
    background: #0d131e;
    border-color: rgba(255, 79, 163, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(255, 79, 163, 0.2);
}

.quick-add-link {
    display: block;
    width: 100%;
    background: #121928;
    color: #a6b1ca;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 10px;
    padding: 12px 14px;
    text-decoration: none;
    margin-bottom: 16px;
    font-weight: 600;
}

.quick-add-link:hover {
    color: #f0f4fc;
    border-color: rgba(255, 79, 163, 0.48);
}

.task-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.task-row:last-child {
    border-bottom: none;
}

.status-dot {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    color: #cad3e6;
    background: transparent;
}

.status-dot-action {
    width: auto;
    min-width: 62px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.66rem;
    letter-spacing: 0.2px;
}

.status-dot.is-done {
    color: #04150d;
    background: var(--success);
    border-color: var(--success);
}

.task-copy h6 {
    margin: 1px 0 2px;
    font-size: 1.05rem;
    font-weight: 700;
}

.task-copy .desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.task-copy .done-text {
    text-decoration: line-through;
    color: #8f9db5;
}

.task-side {
    display: flex;
    align-items: center;
    gap: 8px;
}

.priority-pill {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.priority-pill.high {
    background: rgba(255, 79, 163, 0.2);
    color: #ffb8db;
}

.priority-pill.medium {
    background: rgba(125, 227, 255, 0.18);
    color: #b6f2ff;
}

.priority-pill.low {
    background: rgba(164, 180, 255, 0.2);
    color: #d4ddff;
}

.task-menu,
.task-menu:visited {
    color: #a2aec6;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
}

.task-menu:hover {
    color: #fff;
}

.badge.bg-success {
    background: rgba(74, 222, 128, 0.2) !important;
    color: #a8f7c4;
}

.badge.bg-secondary {
    background: rgba(178, 188, 208, 0.22) !important;
    color: #d7deeb;
}

.badge.bg-warning {
    background: rgba(255, 79, 163, 0.2) !important;
    color: #ffc4e2 !important;
}

.progress {
    background: rgba(255, 255, 255, 0.08);
}

.progress-bar {
    background: linear-gradient(90deg, var(--accent) 0%, var(--support) 100%);
}

.workspace-hero {
    text-align: center;
    margin-bottom: 18px;
}

.workspace-hero h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
}

.workspace-hero p {
    margin: 6px 0 0;
    color: var(--text-muted);
}

.workspace-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.metric-card {
    background: rgba(255, 79, 163, 0.2);
    border: 1px solid rgba(255, 79, 163, 0.38);
    border-radius: 16px;
    padding: 16px;
    min-height: 130px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-card-accent {
    background: rgba(255, 79, 163, 0.2);
    border-color: rgba(255, 79, 163, 0.38);
}

.metric-card-accent .metric-label,
.metric-card-accent .metric-note {
    color: #ffd0e9;
}

.metric-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 79, 163, 0);
    pointer-events: none;
    z-index: 0;
    animation: metricEdgeGlow 5s linear infinite;
}

.metric-card > * {
    position: relative;
    z-index: 1;
}

.workspace-metrics .metric-card:nth-child(1)::after {
    animation-delay: 0s;
}

.workspace-metrics .metric-card:nth-child(2)::after {
    animation-delay: 0.6s;
}

.workspace-metrics .metric-card:nth-child(3)::after {
    animation-delay: 1.2s;
}

.workspace-metrics .metric-card:nth-child(4)::after {
    animation-delay: 1.8s;
}

.metric-label {
    margin: 0;
    color: #f4c2dd;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-weight: 700;
}

.metric-card h3 {
    margin: 6px 0 0;
    font-size: 2.4rem;
    line-height: 1;
    font-weight: 800;
}

.metric-note {
    color: #f4c2dd;
    font-size: 0.83rem;
}

@keyframes metricEdgeGlow {
    0% {
        border-color: rgba(255, 79, 163, 0);
        box-shadow: none;
    }
    74% {
        border-color: rgba(255, 79, 163, 0);
        box-shadow: none;
    }
    84% {
        border-color: rgba(255, 79, 163, 0.62);
        box-shadow: 0 0 20px rgba(255, 79, 163, 0.33), 0 0 26px rgba(125, 227, 255, 0.24);
    }
    92% {
        border-color: rgba(125, 227, 255, 0.5);
        box-shadow: 0 0 16px rgba(125, 227, 255, 0.3), 0 0 18px rgba(255, 79, 163, 0.2);
    }
    100% {
        border-color: rgba(255, 79, 163, 0);
        box-shadow: none;
    }
}

.workspace-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.7fr;
    gap: 14px;
    margin-bottom: 14px;
}

.workspace-card {
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
}

.workspace-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.workspace-card-head h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.workspace-card-head span {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.pulse-bars {
    display: grid;
    gap: 10px;
}

.pulse-item {
    display: grid;
    gap: 8px;
}

.pulse-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pulse-meta span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pulse-meta strong {
    font-size: 0.95rem;
}

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

.pulse-track span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--support) 100%);
}

.chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.chip,
.chip:visited {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: var(--text-muted);
    border-radius: 999px;
    font-size: 0.78rem;
    text-decoration: none;
    padding: 7px 12px;
    font-weight: 700;
    line-height: 1;
}

.chip:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.34);
}

.chip-active,
.chip-active:visited {
    background: rgba(255, 79, 163, 0.2);
    color: var(--accent-soft);
    border-color: rgba(255, 79, 163, 0.55);
}

.timeline-list {
    display: grid;
    gap: 12px;
}

.timeline-item {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.timeline-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.timeline-top p {
    margin: 0;
    font-weight: 700;
}

.timeline-top span {
    color: var(--support-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

.timeline-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.timeline-track span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--support) 100%);
}

.timeline-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.timeline-bottom small {
    color: var(--text-muted);
}

.timeline-bottom a,
.timeline-bottom a:visited {
    color: var(--accent-soft);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
}

.timeline-bottom a:hover {
    color: #ffe5f2;
}

.recent-card {
    margin-top: 2px;
}

.task-stream {
    display: grid;
    gap: 10px;
}

.stream-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.stream-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stream-main h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.stream-main p {
    margin: 3px 0 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.empty-copy {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.planner-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--line);
    margin: -24px -24px 20px;
}

.planner-tabs a {
    text-align: center;
    text-decoration: none;
    color: #8f9bb2;
    padding: 13px 4px 11px;
    font-weight: 700;
    border-bottom: 2px solid transparent;
}

.planner-tabs a.active {
    color: var(--text-main);
    border-bottom-color: var(--accent);
}

.day-title {
    text-align: center;
    margin: 16px 0 24px;
}

.day-title h2 {
    margin: 0;
    font-size: 1.95rem;
    font-weight: 800;
}

.day-title p {
    margin: 4px 0 0;
    color: #92a0ba;
    font-size: 1.08rem;
}

.day-title .subline {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #a8b2c6;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.metric-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
}

.metric-box .label {
    color: #9ba8bf;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 3px;
}

.metric-box .value {
    font-size: 1.4rem;
    font-weight: 800;
}

@media (max-width: 1060px) {
    .workspace-nav {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
    }

    .workspace-actions {
        width: 100%;
        justify-content: center;
    }

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

    .workspace-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .app-bg::before,
    .app-bg::after {
        filter: blur(54px);
        opacity: 0.85;
    }

    .ambient-orb {
        width: 260px !important;
        height: 260px !important;
        filter: blur(56px);
        opacity: 0.9;
    }

    .planner-panel {
        transform: none;
    }

    .planner-content {
        padding: 16px;
    }

    .planner-tabs {
        margin: -16px -16px 16px;
    }

    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .task-row {
        grid-template-columns: auto 1fr;
    }

    .task-side {
        grid-column: 2 / 3;
        justify-content: flex-start;
    }

    .workspace-hero h2 {
        font-size: 1.55rem;
    }

    .workspace-metrics {
        grid-template-columns: 1fr;
    }

    .workspace-tab {
        padding: 9px 16px;
    }

    .chip-row {
        justify-content: flex-start;
    }

    .workspace-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-page .planner-shell {
        min-height: auto;
        align-items: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-bg::before,
    .app-bg::after,
    .ambient-orb {
        animation: none;
    }
}
