:root {
    --pp-ink: #14212b;
    --pp-muted: #5b6b76;
    --pp-bg: #f3f6f8;
    --pp-panel: #ffffff;
    --pp-line: #d7e0e6;
    /* ProjectForge logo palette */
    --pp-navy: #002d62;
    --pp-orange: #ff7300;
    --pp-accent: var(--pp-orange);   /* knoppen */
    --pp-sidebar: var(--pp-navy);    /* sidebar */
    --pp-accent-2: var(--pp-navy);   /* links / secundair */
    --pp-warn: #b45309;
    --pp-danger: #b91c1c;
    --pp-ok: #15803d;
    --pp-shadow: 0 10px 30px rgba(20, 33, 43, 0.06);
    --pp-radius: 14px;
    --pp-font: "Sora", "Segoe UI", "Helvetica Neue", sans-serif;
    --pp-sidebar-width: 268px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--pp-font);
    color: var(--pp-ink);
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(0, 45, 98, 0.10), transparent 55%),
        radial-gradient(900px 400px at 100% 0%, rgba(255, 115, 0, 0.10), transparent 50%),
        var(--pp-bg);
    min-height: 100vh;
}
a { color: var(--pp-accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem 0; border-bottom: 1px solid rgba(215, 224, 230, 0.8);
    margin-bottom: 1.5rem;
}
.topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .75rem 1rem;
}
.brand { font-weight: 750; letter-spacing: -0.02em; color: var(--pp-ink); font-size: 1.15rem; }
.brand--logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.brand--logo img,
.app-topbar__logo img,
.hero-logo {
    display: block;
    width: auto;
    height: auto;
    max-height: 48px;
}
.brand--logo img { max-height: 52px; max-width: min(280px, 55vw); }
.app-topbar__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.app-topbar__logo img { max-height: 42px; max-width: min(220px, 42vw); }
.hero-logo { max-height: 72px; max-width: min(380px, 90vw); margin: 0 0 1rem; }
.nav { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.nav a { color: var(--pp-muted); font-weight: 600; }
.nav a.active, .nav a:hover { color: var(--pp-ink); text-decoration: none; }
.nav-more { position: relative; }
.nav-more > summary {
    list-style: none;
    cursor: pointer;
    color: var(--pp-muted);
    font-weight: 600;
}
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: " ▾"; font-size: .8em; }
.nav-more[open] > summary { color: var(--pp-ink); }
.nav-more-menu {
    position: absolute;
    right: 0;
    top: calc(100% + .45rem);
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--pp-line);
    border-radius: 12px;
    box-shadow: var(--pp-shadow);
    padding: .5rem;
    display: grid;
    gap: .15rem;
    z-index: 40;
}
.nav-more-menu a {
    display: block;
    padding: .45rem .65rem;
    border-radius: 8px;
    color: var(--pp-ink);
    text-decoration: none;
}
.nav-more-menu a:hover { background: #f3f6f8; }

/* Language switcher — standalone (outside .nav flex) */
.pf-locale {
    position: relative;
    flex-shrink: 0;
    z-index: 60;
}
.pf-locale__btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    padding: .5rem .9rem;
    border: 1px solid #d7dee5;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font: inherit;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.1;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.pf-locale__btn:hover { border-color: #c5ced8; background: #fafbfc; }
.pf-locale.is-open .pf-locale__btn {
    border-color: #b7c4d0;
    box-shadow: 0 0 0 3px rgba(0, 45, 98, 0.12);
}
.pf-locale__flag {
    display: block;
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
    flex-shrink: 0;
    background: #eef2f6;
}
.pf-locale__btn-text { white-space: nowrap; }
.pf-locale__chevron {
    width: .4rem;
    height: .4rem;
    margin-left: .15rem;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .15s ease;
}
.pf-locale.is-open .pf-locale__chevron {
    transform: rotate(225deg) translateY(-1px);
}
.pf-locale__menu {
    position: absolute;
    right: 0;
    top: calc(100% + .5rem);
    width: min(280px, calc(100vw - 2rem));
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: .45rem;
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}
.pf-locale__menu[hidden] { display: none !important; }
.pf-locale__option {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: .75rem;
    padding: .7rem .75rem;
    border-radius: 10px;
    color: #1e293b !important;
    text-decoration: none !important;
    font-weight: 500;
}
.pf-locale__texts {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
}
.pf-locale__country {
    font-weight: 700;
    font-size: .95rem;
    color: #1e293b;
    line-height: 1.2;
}
.pf-locale__lang {
    font-size: .82rem;
    color: #94a3b8;
    font-weight: 500;
    line-height: 1.2;
}
.pf-locale__option:hover {
    background: #f8fafc;
}
.pf-locale__option.is-active {
    background: #fff1e6;
}
.pf-locale__option.is-active .pf-locale__country { color: var(--pp-orange); }
.pf-locale__option.is-active .pf-locale__lang { color: #c45f00; }
.panel {
    background: var(--pp-panel);
    border: 1px solid var(--pp-line);
    border-radius: var(--pp-radius);
    box-shadow: var(--pp-shadow);
    padding: 1.25rem;
}
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
h1, h2, h3 { margin: 0 0 .75rem; letter-spacing: -0.02em; }
.muted { color: var(--pp-muted); }
.stat { padding: 1rem; }
.stat .value { font-size: 1.8rem; font-weight: 750; }
.btn, button.btn, input[type=submit].btn {
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 10px; padding: .65rem 1rem;
    background: var(--pp-accent); color: #fff; font-weight: 650; cursor: pointer;
}
.btn:hover { filter: brightness(1.06); text-decoration: none; color: #fff; }
.btn:active { filter: brightness(0.96); }
.btn-secondary { background: #e8eef2; color: var(--pp-ink); }
.btn-danger { background: var(--pp-danger); }
.btn-sm { padding: .4rem .7rem; font-size: .9rem; }
label { display: block; font-weight: 600; margin: .75rem 0 .35rem; }
input, select, textarea {
    width: 100%; padding: .65rem .75rem; border: 1px solid var(--pp-line);
    border-radius: 10px; background: #fff; font: inherit;
}
textarea { min-height: 100px; resize: vertical; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .7rem .4rem; border-bottom: 1px solid var(--pp-line); vertical-align: top; }
.badge {
    display: inline-block; padding: .2rem .55rem; border-radius: 999px;
    font-size: .78rem; font-weight: 700; background: #e8eef2; color: var(--pp-ink);
}
.badge.todo { background: #e2e8f0; }
.badge.in_progress { background: #dbeafe; color: #1e40af; }
.badge.done { background: #dcfce7; color: #166534; }
.badge.cancelled { background: #fee2e2; color: #991b1b; }
.badge.urgent, .badge.high { background: #ffedd5; color: #9a3412; }
.badge.overdue { background: #fee2e2; color: #991b1b; }
.flash {
    padding: .85rem 1rem; border-radius: 10px; margin-bottom: 1rem;
    background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0;
}
.errors { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; padding: .85rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.hero {
    display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center;
    min-height: calc(100vh - 6rem); padding: 2rem 0 3rem;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; margin-bottom: .75rem; }
.hero p { font-size: 1.1rem; color: var(--pp-muted); max-width: 36rem; }
.hero-visual {
    min-height: 280px; border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(0,45,98,.95), rgba(255,115,0,.88)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 28px);
    box-shadow: var(--pp-shadow);
}

/* —— Auth pages (login / register / password) —— */
body.is-auth {
    min-height: 100vh;
    background:
        linear-gradient(145deg, rgba(0, 45, 98, 0.72), rgba(11, 31, 58, 0.55) 45%, rgba(255, 115, 0, 0.35)),
        url('../img/auth-bg.jpg') center center / cover no-repeat fixed;
}
body.is-auth .auth-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.is-auth .topbar--auth {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 1rem 0 0;
}
body.is-auth .topbar--auth .nav a {
    color: rgba(255,255,255,.9);
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
body.is-auth .topbar--auth .nav a:hover { color: #fff; }
body.is-auth .brand--logo {
    padding: .35rem .55rem;
    background: rgba(255,255,255,.95);
    border-radius: 10px;
}
body.is-auth .panel {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 50px rgba(0, 20, 40, 0.28);
}
body.is-auth .auth-panel {
    width: min(560px, 100%);
    max-width: 560px;
    margin: 2.25rem auto 2rem;
    padding: 1.5rem 1.6rem 1.65rem;
    box-sizing: border-box;
}
body.is-auth .auth-panel .actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    align-items: center;
}
body.is-auth .auth-panel .actions .btn {
    min-width: 10.5rem;
}
body.is-auth .flash,
body.is-auth .errors {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
body.is-auth .locale-switcher__btn {
    background: rgba(255,255,255,.95);
    border-color: rgba(255,255,255,.7);
    color: var(--pp-ink);
}
body.is-auth .auth-shell > .panel,
body.is-auth .auth-shell form {
    position: relative;
    z-index: 1;
}
@media (max-width: 720px) {
    body.is-auth {
        background-attachment: scroll;
    }
}

/* —— Landing —— */
body.is-landing {
    background:
        radial-gradient(1100px 520px at 8% -8%, rgba(0, 45, 98, 0.14), transparent 55%),
        radial-gradient(900px 480px at 100% 0%, rgba(255, 115, 0, 0.16), transparent 52%),
        linear-gradient(180deg, #f7fafc 0%, #eef3f7 100%);
}
.landing-shell {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}
.topbar--landing {
    padding: 1rem 0 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.brand--logo img,
.app-topbar__logo img,
.hero-logo,
.sidebar__brand-mark {
    background: transparent !important;
}

.landing-hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    min-height: calc(100vh - 5.5rem);
    padding: 1.5rem 0 3rem;
}
.landing-hero__copy h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0 0 .85rem;
    color: var(--pp-navy);
    max-width: 14ch;
    animation: landing-rise .7s ease both;
}
.landing-hero__copy > p {
    font-size: 1.12rem;
    color: var(--pp-muted);
    max-width: 34rem;
    margin: 0;
    animation: landing-rise .7s ease .08s both;
}
.landing-hero__cta { margin-top: 1.4rem; animation: landing-rise .7s ease .14s both; }
.landing-hero__meta {
    margin-top: .9rem !important;
    font-size: .92rem !important;
    color: var(--pp-muted);
    animation: landing-rise .7s ease .2s both;
}
.hero-logo {
    max-height: 84px;
    max-width: min(420px, 92vw);
    margin: 0 0 1.1rem;
    animation: landing-rise .65s ease both;
}
.landing-hero__visual {
    position: relative;
    min-height: 340px;
    animation: landing-float-in .85s ease .12s both;
}
.landing-hero__visual::before {
    content: "";
    position: absolute;
    inset: 8% 4% 4% 8%;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(0,45,98,.92), rgba(255,115,0,.82));
    transform: rotate(3deg);
    z-index: 0;
}
.pf-mock {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(0,45,98,.08);
    border-radius: 22px;
    padding: 1rem;
    box-shadow: 0 24px 50px rgba(20, 33, 43, 0.12);
    backdrop-filter: blur(6px);
}
.pf-mock__top {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .85rem;
    color: var(--pp-navy);
}
.pf-mock__top span {
    width: 9px; height: 9px; border-radius: 50%;
    background: #d7e0e6;
}
.pf-mock__top span:nth-child(1) { background: #ff7300; }
.pf-mock__top span:nth-child(2) { background: #fbbf24; }
.pf-mock__top span:nth-child(3) { background: #34d399; }
.pf-mock__top strong { margin-left: .4rem; font-size: .95rem; }
.pf-mock__board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .55rem;
}
.pf-mock__col {
    background: #f4f7fa;
    border-radius: 12px;
    padding: .55rem;
    min-height: 150px;
}
.pf-mock__col em {
    display: block;
    font-style: normal;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--pp-muted);
    margin-bottom: .45rem;
}
.pf-mock__card {
    background: #fff;
    border: 1px solid var(--pp-line);
    border-radius: 10px;
    padding: .55rem .6rem;
    margin-top: .4rem;
}
.pf-mock__card b { display: block; font-size: .84rem; color: var(--pp-ink); }
.pf-mock__card i { display: block; font-style: normal; font-size: .72rem; color: var(--pp-muted); margin-top: .2rem; }
.pf-mock__card.is-active {
    border-color: rgba(255,115,0,.45);
    box-shadow: 0 0 0 2px rgba(255,115,0,.12);
}
.pf-mock__bars {
    display: grid;
    gap: .35rem;
    margin-top: .85rem;
}
.pf-mock__bars div {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pp-navy), var(--pp-orange));
    width: var(--w);
    opacity: .85;
}

.landing-section { padding: 2.5rem 0 1rem; }
.landing-section__head { max-width: 40rem; margin-bottom: 1.5rem; }
.landing-section__head h2 {
    margin: 0 0 .45rem;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    letter-spacing: -0.02em;
    color: var(--pp-navy);
}
.landing-section__head p { margin: 0; color: var(--pp-muted); }

.landing-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.landing-features article {
    padding: 1.1rem 1rem 1.2rem;
    border-top: 3px solid var(--pp-orange);
}
.landing-feature__icon {
    width: 40px; height: 40px;
    color: var(--pp-navy);
    margin-bottom: .65rem;
}
.landing-feature__icon svg { width: 100%; height: 100%; }
.landing-features h3 {
    margin: 0 0 .35rem;
    font-size: 1.05rem;
    color: var(--pp-ink);
}
.landing-features p {
    margin: 0;
    color: var(--pp-muted);
    font-size: .95rem;
    line-height: 1.45;
}

.landing-shots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.landing-shot { margin: 0; }
.landing-shot__frame {
    min-height: 180px;
    border-radius: 18px;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--pp-line);
    box-shadow: var(--pp-shadow);
}
.landing-shot figcaption {
    margin-top: .65rem;
    color: var(--pp-muted);
    font-size: .92rem;
}
.landing-shot__frame--gantt { display: grid; gap: .7rem; align-content: center; }
.gantt-row {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: .5rem;
    align-items: center;
}
.gantt-row span { font-size: .78rem; color: var(--pp-muted); }
.gantt-row i {
    display: block;
    height: 14px;
    margin-left: var(--l);
    width: var(--w);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pp-navy), var(--pp-orange));
}
.landing-shot__frame--time { display: grid; gap: .55rem; align-content: center; }
.time-pill {
    padding: .55rem .75rem;
    border-radius: 10px;
    background: #f4f7fa;
    font-size: .88rem;
    color: var(--pp-ink);
}
.time-pill.is-accent {
    background: rgba(255,115,0,.12);
    color: #9a3412;
    font-weight: 600;
}
.time-total {
    margin-top: .2rem;
    font-weight: 700;
    color: var(--pp-navy);
}
.landing-shot__frame--docs { display: grid; gap: .55rem; align-content: center; }
.doc-row {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    padding: .6rem .75rem;
    border-radius: 10px;
    background: #f4f7fa;
    font-size: .88rem;
}
.doc-row span {
    color: var(--pp-orange);
    font-weight: 700;
    font-size: .78rem;
}

.landing-cta {
    padding: 2.5rem 0 1rem;
}
.landing-cta__inner {
    padding: 2rem 1.5rem;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(0,45,98,.96), rgba(0,45,98,.88) 45%, rgba(255,115,0,.88));
    color: #fff;
    text-align: center;
}
.landing-cta__inner h2 {
    margin: 0 0 .5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #fff;
}
.landing-cta__inner p {
    margin: 0 auto 1.2rem;
    max-width: 34rem;
    color: rgba(255,255,255,.88);
}
.landing-cta__inner .btn {
    background: #fff;
    color: var(--pp-navy);
}
.landing-cta__inner .btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.45);
}

@keyframes landing-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes landing-float-in {
    from { opacity: 0; transform: translateY(22px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1000px) {
    .landing-hero { grid-template-columns: 1fr; min-height: auto; }
    .landing-features { grid-template-columns: 1fr 1fr; }
    .landing-shots { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .landing-features { grid-template-columns: 1fr; }
    .pf-mock__board { grid-template-columns: 1fr; }
    .hero-logo { max-height: 64px; }
}
.stack > * + * { margin-top: 1rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; }
.inline-form > * { flex: 1; min-width: 140px; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.task-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 1000px) {
    .hero { grid-template-columns: 1fr; }
    .task-board { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .task-board { grid-template-columns: 1fr; }
}
.board-col { background: #f8fafc; border: 1px solid var(--pp-line); border-radius: 12px; padding: .75rem; min-height: 120px; }
.board-col h3 { font-size: .95rem; color: var(--pp-muted); }
.board-item { background: #fff; border: 1px solid var(--pp-line); border-radius: 10px; padding: .65rem; margin-top: .5rem; }
.subtask { margin-left: 1rem; padding-left: .75rem; border-left: 2px solid var(--pp-line); }
.footer { margin: 2.5rem 0 1.5rem; color: var(--pp-muted); font-size: .9rem; }

/* —— App credit line —— */
.app-credit {
    margin: 2rem 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--pp-line, #e5eaf0);
    text-align: center;
}
.app-credit p {
    margin: 0;
    font-size: .88rem;
    color: var(--pp-muted, #64748b);
    font-weight: 500;
}

/* —— Legacy site-footer selectors (unused) —— */
.site-footer {
    margin: 2.75rem 0 0;
    background: #0b1f3a;
    color: rgba(255,255,255,.86);
    border-radius: 18px;
}
.has-sidebar .site-footer {
    margin-left: 0;
    margin-right: 0;
    border-radius: 16px;
}
body.is-landing .site-footer,
.legal-shell .site-footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    margin-top: 3rem;
}
.site-footer__inner {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.25rem 0 1.25rem;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
}
.site-footer__logo {
    display: inline-flex;
    align-items: center;
    padding: .45rem .65rem;
    background: #fff;
    border-radius: 10px;
    margin-bottom: .85rem;
}
.site-footer__logo img {
    display: block;
    max-height: 40px;
    width: auto;
    background: transparent !important;
}
.site-footer__brand > p {
    margin: 0 0 1rem;
    font-size: .92rem;
    line-height: 1.45;
    color: rgba(255,255,255,.78);
    max-width: 28rem;
}
.site-footer h3 {
    margin: 0 0 .75rem;
    font-size: .95rem;
    color: #fff;
}
.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .4rem;
}
.site-footer a {
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-size: .9rem;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__meta {
    margin-bottom: 1rem !important;
    font-size: .88rem;
    color: rgba(255,255,255,.72);
}
.site-footer__meta strong { color: rgba(255,255,255,.9); }
.site-footer__trust {
    gap: .35rem !important;
    font-size: .82rem;
    color: rgba(255,255,255,.7);
}
.site-footer__trust li::before {
    content: "✓ ";
    color: #34d399;
    font-weight: 700;
}
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem 1rem;
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: .84rem;
    color: rgba(255,255,255,.65);
}
.site-footer__bottom p { margin: 0; }
.site-footer__badges {
    display: flex !important;
    flex-wrap: wrap;
    gap: .65rem 1rem !important;
    grid: none !important;
}
.site-footer__badges li::before {
    content: "● ";
    color: #34d399;
}

.legal-page {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    margin-top: .5rem;
}
.legal-nav {
    position: sticky;
    top: 1rem;
    padding: .85rem 1rem;
    border: 1px solid var(--pp-line);
    border-radius: 14px;
    background: #fff;
}
.legal-nav__label {
    margin: 0 0 .55rem;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--pp-muted);
    font-weight: 700;
}
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.legal-nav a {
    display: block;
    padding: .4rem .5rem;
    border-radius: 8px;
    color: var(--pp-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
}
.legal-nav a:hover,
.legal-nav a.is-active {
    background: rgba(0,45,98,.06);
    color: var(--pp-navy);
}
.legal-doc h1 { margin-top: 0; color: var(--pp-navy); }
.legal-doc__intro { font-size: 1.02rem; }
.legal-doc__meta { font-size: .88rem; margin-bottom: 1.25rem; }
.legal-doc__section { margin-top: 1.25rem; }
.legal-doc__section h2 {
    margin: 0 0 .45rem;
    font-size: 1.1rem;
    color: var(--pp-ink);
}
.legal-doc__section p {
    margin: 0 0 .65rem;
    color: var(--pp-muted);
    line-height: 1.55;
}

@media (max-width: 980px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .legal-page { grid-template-columns: 1fr; }
    .legal-nav { position: static; }
}
@media (max-width: 640px) {
    .site-footer__grid { grid-template-columns: 1fr; }
}

.plan-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.plan-hint { margin: 0 0 1rem; font-size: .9rem; }
.plan-day-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1rem;
}
@media (max-width: 900px) {
    .plan-day-layout { grid-template-columns: 1fr; }
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .75rem;
}
@media (max-width: 1100px) {
    .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .week-grid { grid-template-columns: 1fr; }
}
.week-day.is-today { border-color: var(--pp-accent); box-shadow: 0 0 0 1px rgba(255,115,0,.28), var(--pp-shadow); }
.week-day.drag-over,
.month-day.drag-over,
.gantt-track.drag-over { outline: 2px dashed var(--pp-accent); outline-offset: 2px; }
.week-task {
    display: block;
    margin-top: .55rem;
    padding: .55rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--pp-line);
    color: inherit;
    cursor: grab;
}
.week-task:hover { text-decoration: none; border-color: var(--pp-accent); }
.week-task.is-dragging { opacity: .45; }
.week-task strong { display: block; }
.week-task .muted { display: block; font-size: .85rem; }

.month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .5rem;
}
.month-dow {
    font-size: .78rem;
    font-weight: 700;
    color: var(--pp-muted);
    text-align: center;
    padding: .25rem 0;
}
.month-day {
    min-height: 110px;
    padding: .55rem;
}
.month-day.is-outside { opacity: .45; }
.month-day.is-today { border-color: var(--pp-accent); }
.month-day__head { margin-bottom: .35rem; }
.month-task {
    display: block;
    font-size: .78rem;
    padding: .2rem .35rem;
    margin-top: .2rem;
    border-radius: 6px;
    background: #eef4f8;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: grab;
}
.month-task:hover { text-decoration: none; background: #e2ebf2; }
@media (max-width: 900px) {
    .month-grid { grid-template-columns: 1fr; }
    .month-dow { display: none; }
}

.timeline { display: grid; gap: 1rem; }
.timeline-day {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1rem;
}
.timeline-date { padding-top: .35rem; }
.timeline-items { display: grid; gap: .55rem; }
.timeline-card {
    display: grid;
    gap: .2rem;
    padding: .75rem .9rem;
    border: 1px solid var(--pp-line);
    border-radius: 12px;
    background: #fff;
    color: inherit;
}
.timeline-card:hover { text-decoration: none; border-color: var(--pp-accent); }
.timeline-card--project { border-left: 4px solid var(--pp-navy, #002d62); }
.timeline-card--task { border-left: 4px solid var(--pp-accent, #ff7300); }
@media (max-width: 700px) {
    .timeline-day { grid-template-columns: 1fr; }
}

.board-item.dragging { opacity: .55; }
.board-col.drag-over { outline: 2px dashed var(--pp-accent); }
tr.is-overload td { background: #fff5f5; }

.time-flags {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: .75rem;
}
.time-flags label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 550;
    margin: 0;
}
.time-flags input { width: auto; }
.time-edit { position: relative; }
.time-edit > summary { list-style: none; cursor: pointer; }
.time-edit > summary::-webkit-details-marker { display: none; }
.time-edit__form {
    position: absolute;
    right: 0;
    top: calc(100% + .35rem);
    z-index: 5;
    width: min(280px, 70vw);
    padding: .85rem;
    border: 1px solid var(--pp-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--pp-shadow, 0 10px 30px rgba(15,23,42,.12));
}

.gantt-head, .gantt-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: .75rem;
    align-items: center;
    margin-bottom: .65rem;
}
.gantt-label { min-width: 0; }
.gantt-timeline {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 0;
    position: relative;
}
.gantt-day {
    text-align: center;
    font-size: .72rem;
    color: var(--pp-muted);
    border-left: 1px solid #eef2f5;
    padding: .15rem 0;
}
.gantt-day.is-today { color: var(--pp-accent); font-weight: 700; }
.gantt-track {
    position: relative;
    height: 28px;
    background: linear-gradient(90deg, #f8fafc 0, #f8fafc 50%, #fff 50%, #fff);
    border: 1px solid var(--pp-line);
    border-radius: 8px;
    overflow: hidden;
}
.gantt-bar {
    position: absolute;
    top: 3px;
    bottom: 3px;
    border-radius: 6px;
    background: var(--pp-accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    padding: 0 .45rem;
    white-space: nowrap;
    overflow: hidden;
    text-decoration: none;
}
.gantt-bar.status-todo { background: #64748b; }
.gantt-bar.status-in_progress { background: #1d4e89; }
.gantt-bar.status-done { background: #15803d; }
.gantt-bar.status-cancelled { background: #b91c1c; }
.gantt-bar--project {
    background: #0b1f3a;
    opacity: .85;
    cursor: default;
}
.gantt-bar[draggable="true"] { cursor: grab; }
.gantt-row--project { opacity: .95; }
@media (max-width: 800px) {
    .gantt-head, .gantt-row { grid-template-columns: 1fr; }
}

.budget-bar {
    height: 10px;
    background: #e8eef2;
    border-radius: 999px;
    overflow: hidden;
    margin-top: .35rem;
}
.budget-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--pp-orange), var(--pp-navy));
    border-radius: inherit;
}

.notify-item {
    padding: .75rem;
    border: 1px solid var(--pp-line);
    border-radius: 10px;
    background: #fff;
}
.notify-item.is-unread {
    border-color: rgba(255, 115, 0, .35);
    background: #fff7f0;
}
.nav .badge { margin-left: .2rem; }

/* ===== Page help / info ===== */
.page-help {
    margin: 0 0 1.15rem;
    border: 1px solid #d9e3f0;
    border-radius: 12px;
    background: linear-gradient(180deg, #f5f9ff 0%, #fff 70%);
    box-shadow: 0 4px 14px rgba(0, 45, 98, 0.05);
}
.page-help__summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem 1rem;
    user-select: none;
}
.page-help__summary::-webkit-details-marker { display: none; }
.page-help__icon {
    display: inline-flex;
    color: var(--pp-navy);
    flex-shrink: 0;
}
.page-help__title {
    font-weight: 700;
    color: var(--pp-navy);
    flex: 1;
    min-width: 0;
}
.page-help__toggle {
    font-size: .82rem;
    font-weight: 650;
    color: var(--pp-orange);
    white-space: nowrap;
}
.page-help__toggle-show { display: none; }
.page-help:not([open]) .page-help__toggle-hide { display: none; }
.page-help:not([open]) .page-help__toggle-show { display: inline; }
.page-help__body {
    padding: 0 1rem 1rem 2.7rem;
    color: var(--pp-muted);
    font-size: .94rem;
    line-height: 1.5;
}
@media (max-width: 640px) {
    .page-help__body { padding-left: 1rem; }
}

/* ===== App shell + navy sidebar ===== */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
body.has-sidebar {
    background: #eef3f5;
}
.impersonation-flash {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    margin: 0; border-radius: 0;
}
.app-shell {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: var(--pp-sidebar-width);
    flex-shrink: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--pp-sidebar) 92%, #000) 0%, var(--pp-sidebar) 45%, color-mix(in srgb, var(--pp-sidebar) 88%, #0b3f3b) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    z-index: 80;
    box-shadow: 8px 0 28px rgba(15, 23, 42, 0.12);
}
.sidebar__brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.15rem 1.1rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: #fff !important;
    text-decoration: none !important;
}
.sidebar__brand:hover { background: rgba(255,255,255,.06); }
.sidebar__brand-mark {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.sidebar__brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}
.sidebar__brand-text strong {
    font-size: .98rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar__brand-text span {
    font-size: .75rem;
    opacity: .75;
    margin-top: .15rem;
}
.sidebar__nav {
    flex: 1;
    overflow-y: auto;
    padding: .85rem .7rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.35) transparent;
}
.sidebar__section + .sidebar__section { margin-top: .65rem; }
.sidebar__label {
    margin: 0 0 .4rem .55rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
}
.sidebar__group {
    margin: 0 0 .35rem;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
}
.sidebar__group[open] { background: rgba(255,255,255,.07); }
.sidebar__group-toggle {
    list-style: none;
    display: flex;
    align-items: center;
    gap: .7rem;
    width: 100%;
    padding: .62rem .7rem;
    border-radius: 12px;
    color: rgba(255,255,255,.95);
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}
.sidebar__group-toggle::-webkit-details-marker { display: none; }
.sidebar__group-toggle:hover { background: rgba(255,255,255,.1); }
.sidebar__chevron {
    margin-left: auto;
    width: 18px;
    height: 18px;
    display: inline-flex;
    opacity: .75;
    transition: transform .18s ease;
}
.sidebar__chevron svg { width: 16px; height: 16px; }
.sidebar__group[open] > .sidebar__group-toggle .sidebar__chevron { transform: rotate(90deg); }
.sidebar__group-body {
    padding: 0 .35rem .45rem .35rem;
    display: grid;
    gap: .05rem;
}
.sidebar__group-body .sidebar__link {
    padding: .5rem .65rem .5rem .85rem;
    font-size: .88rem;
    font-weight: 550;
}
.sidebar__link {
    display: flex;
    align-items: center;
    gap: .7rem;
    width: 100%;
    padding: .62rem .7rem;
    margin: 0 0 .15rem;
    border: 0;
    border-radius: 10px;
    color: rgba(255,255,255,.92) !important;
    background: transparent;
    font: inherit;
    font-size: .92rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none !important;
    cursor: pointer;
}
.sidebar__link:hover {
    background: rgba(255,255,255,.12);
    color: #fff !important;
}
.sidebar__link.is-active {
    background: rgba(255,255,255,.18);
    color: #fff !important;
    box-shadow: inset 3px 0 0 #fff;
}
.sidebar__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: .95;
}
.sidebar__icon svg {
    width: 20px;
    height: 20px;
    display: block;
}
.sidebar__badge {
    margin-left: auto;
    min-width: 1.35rem;
    padding: .1rem .4rem;
    border-radius: 999px;
    background: #fff;
    color: var(--pp-sidebar);
    font-size: .72rem;
    font-weight: 800;
    text-align: center;
}
.sidebar__footer {
    padding: .7rem;
    border-top: 1px solid rgba(255,255,255,.12);
}
.sidebar__logout { color: rgba(255,255,255,.88) !important; }
.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.app-topbar {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1.25rem;
    background: rgba(255,255,255,.86);
    border-bottom: 1px solid rgba(215, 224, 230, 0.9);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 40;
}
.app-topbar__title {
    font-weight: 750;
    font-size: 1.05rem;
    letter-spacing: -.01em;
    color: var(--pp-ink);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-topbar__actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.app-content {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.35rem 0 2rem;
    flex: 1;
}
.sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--pp-line);
    border-radius: 10px;
    background: #fff;
    padding: 10px 9px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}
.sidebar-toggle span:not(.sr-only) {
    display: block;
    height: 2px;
    background: var(--pp-ink);
    border-radius: 2px;
}
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .42);
    z-index: 70;
}
@media (max-width: 980px) {
    .sidebar-toggle { display: inline-flex; }
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-105%);
        transition: transform .2s ease;
    }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .app-content { width: min(1120px, calc(100% - 1.5rem)); }
}
@media (max-width: 720px) {
    .app-topbar__title { display: none; }
    .app-topbar__logo img { max-height: 36px; }
}
.billing-flash,
.trial-flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    margin: 0;
    border-radius: 0;
}
.billing-flash {
    background: #fff1f0;
    border-bottom: 1px solid #fecaca;
    color: #991b1b;
}
.trial-flash {
    background: #fff7ed;
    border-bottom: 1px solid #fed7aa;
    color: #9a3412;
}

.logo-picker {
    display: grid;
    gap: .65rem;
    margin-top: .35rem;
}
.logo-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    padding: .85rem 1rem;
    border: 1px dashed var(--pp-line);
    border-radius: 12px;
    background: #f8fafb;
}
.logo-preview__img {
    display: none;
    max-height: 72px;
    max-width: min(100%, 320px);
    width: auto;
    height: auto;
    object-fit: contain;
}
.logo-preview:not(.is-empty) .logo-preview__img { display: block; }
.logo-preview:not(.is-empty) .logo-preview__empty { display: none; }
.logo-preview.is-empty .logo-preview__img { display: none !important; }
.logo-preview__empty {
    color: var(--pp-muted);
    font-size: .92rem;
    text-align: center;
}
.logo-picker__remove {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-weight: 500;
    margin: 0;
}

/* Fallback if color-mix unsupported */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
    .sidebar { background: var(--pp-sidebar); }
}
