/* =========================================================
   Espace Particulier – Layout, sidebar / bottom bar, dashboard cards
   Colours: css/theme-client.css
   File: /particulier2/css/dashboard-client.css
   ========================================================= */

/* Hide the public footer inside the pro area */
footer,
.footer,
.footer-section,
.pre-footer,
.bottom-menu-cover {
    display: none !important;
}

html,
body {
    min-height: 100%;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    background: var(--kp-bg) !important;
}

/* ---------- Layout ---------- */
.kp-dashboard {
    min-height: calc(100vh - var(--kp-header-h));
    background: var(--kp-bg);
    font-family: 'Roboto', 'Montserrat', Arial, sans-serif;
    color: var(--kp-text);
}

.kp-main {
    min-width: 0;
    margin-left: var(--kp-sidebar-w);
    padding: 2rem 2.25rem 3rem;
}

.kp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
}

.kp-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

/* ---------- Sidebar (desktop) ----------
   Fixed to the viewport: always runs from under the header to the
   bottom of the screen, whatever the page length or scroll position. */
.kp-sidebar {
    position: fixed;
    top: var(--kp-header-h);
    left: 0;
    bottom: 0;
    z-index: 900;
    width: var(--kp-sidebar-w);
    overflow-y: auto;
    padding: 1rem 0 2rem;
    background: var(--kp-primary);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.kp-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kp-nav-group {
    list-style: none;
    margin: 0;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.kp-nav-group:last-child {
    border-bottom: 0;
}

.kp-nav-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kp-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2px 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.kp-nav-link:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    text-decoration: none;
}

.kp-nav-link.is-active {
    background: #ffffff;
    color: var(--kp-primary-dark);
    font-weight: 600;
}

.kp-nav-link.is-active::before {
    content: "";
    position: absolute;
    left: -0.75rem;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--kp-accent);
}

.kp-nav-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kp-nav-link.kp-nav-cta .kp-nav-icon {
    width: 28px;
    height: 28px;
    padding: 4px;
    border-radius: 50%;
    background: var(--kp-accent);
    color: #ffffff;
    stroke-width: 2.4;
}

.kp-nav .gBuble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: auto;
    border-radius: 100px;
    background: var(--kp-red);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ---------- Page title ---------- */
.kp-welcome {
    margin: 0 0 1.75rem;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--kp-text);
}

.kp-welcome span {
    color: var(--kp-primary-dark);
    font-weight: 700;
}

/* ---------- Dark hero cards ---------- */
.kp-hero {
    position: relative;
    overflow: hidden;
    padding: 1.75rem 2rem 2rem;
    border-radius: var(--kp-radius);
    color: #ffffff;
    background: var(--kp-primary);
    box-shadow: var(--kp-shadow);
}

.kp-hero-title {
    margin: 0 0 1.75rem;
    font-size: 1.4rem;
    font-weight: 400;
    color: #ffffff;
}

.kp-hero-title.is-bold {
    font-weight: 700;
}

.kp-hero-name {
    margin: 0 0 0.4rem;
    padding-right: 120px;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    word-break: break-word;
}

.kp-hero-meta {
    margin: 0;
    padding-right: 120px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.kp-hero-icon {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 96px;
    height: 96px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.95;
}

.kp-btn-outline {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.6rem 1.25rem;
    border: 2px solid #ffffff;
    border-radius: 4px;
    background: transparent;
    color: #ffffff;
    font-size: 1.05rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.kp-btn-outline:hover {
    background: #ffffff;
    color: var(--kp-primary-dark);
    text-decoration: none;
}

/* ---------- White panels ---------- */
.kp-panel {
    background: var(--kp-card);
    border-radius: var(--kp-radius);
    box-shadow: var(--kp-shadow);
    overflow: hidden;
}

.kp-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.75rem;
    border-bottom: 3px solid var(--kp-bg);
}

.kp-panel-head h3 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 400;
    color: var(--kp-text);
}

.kp-panel-head h3.is-bold {
    font-weight: 700;
}

.kp-panel-more {
    color: var(--kp-text);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
    text-decoration: none;
}

.kp-panel-more:hover {
    color: var(--kp-primary-dark);
    text-decoration: none;
}

.kp-panel-body {
    padding: 1.25rem 1.75rem 1.5rem;
}

/* ---------- Notifications (Évènements) ---------- */
.imp-notice ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.imp-notice ul li {
    margin: 0;
}

/* ---------- Orders (Prestations récentes) ---------- */
.orders ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.orders ul .list {
    position: relative;
    overflow: hidden;
    padding: 1rem 0.25rem;
    border-bottom: 1px solid var(--kp-border);
    transition: background 0.2s;
}

.orders ul .list:last-child {
    border-bottom: 0;
}

.orders ul .list:hover {
    background: #f6f8fb;
}

.orders ul .list p.date,
.orders ul .list p.postal {
    color: var(--kp-text);
}

.noRecords {
    text-align: center;
    padding: 7rem 2rem 2rem;
    background-color: #f4f6f9;
    border-radius: var(--kp-radius);
    background-image: url(https://www.meilleurservice.com/images/noRecords.svg);
    border: 1px dashed #c3ccd6;
    background-position: center 1.5rem;
    background-size: 80px;
    background-repeat: no-repeat;
    color: var(--kp-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.processBar {
    background: #ffffff24;
    border-radius: 100px;
    overflow: hidden;
}

.processBar span {
    font-size: 8px;
    background: #ffffff;
    width: 489px;
    color: var(--kp-blue);
    padding-left: 70%;
    font-weight: 600;
    padding-right: 10px;
}

span.dot {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    padding: 0;
    border-radius: 0;
    color: transparent;
}

span.dot.Termine { background: var(--kp-green); }
span.dot.encours { background: var(--kp-orange); }
span.dot.refused { background: var(--kp-red); }
span.dot.cloture { background: #000000; }
span.dot.valid   { background: var(--kp-blue); }

a.overClick button {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0.001;
    cursor: pointer;
}

a.down img {
    position: absolute;
    width: 30px;
    right: 1rem;
    bottom: 1rem;
    display: none;
}

/* ---------- Profile completion notice (dashboard) ---------- */
.kp-complete {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #d3e6c6;
    border-radius: var(--kp-radius);
    background: var(--kp-primary-soft);
}

.kp-complete-ring {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.kp-complete-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.kp-complete-ring circle {
    fill: none;
    stroke-width: 5;
}

.kp-complete-ring .bg { stroke: #ffffff; }
.kp-complete-ring .fg { stroke: var(--kp-primary); stroke-linecap: round; }

.kp-complete-ring span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--kp-primary-dark);
}

.kp-complete-body {
    flex: 1;
    min-width: 0;
}

.kp-complete-body strong {
    display: block;
    color: var(--kp-text);
    font-size: 1rem;
}

.kp-complete-body p {
    margin: 0.1rem 0 0.4rem;
    color: var(--kp-muted);
    font-size: 0.85rem;
}

.kp-complete-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.kp-complete-tags span {
    padding: 0.15rem 0.6rem;
    border-radius: 100px;
    background: #ffffff;
    border: 1px solid #f1c9a8;
    color: #a3561d;
    font-size: 0.75rem;
    font-weight: 600;
}

.kp-complete-btn {
    flex-shrink: 0;
    padding: 0.55rem 1.1rem;
    border-radius: 4px;
    background: var(--kp-primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.kp-complete-btn:hover {
    background: var(--kp-primary-dark);
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .kp-complete {
        flex-wrap: wrap;
    }

    .kp-complete-btn {
        width: 100%;
        text-align: center;
    }
}

/* ---------- Évènements: empty state ---------- */
.kp-events-empty {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: var(--kp-radius);
    background: var(--kp-green-soft);
}

.kp-events-ok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--kp-primary);
    color: #ffffff;
}

.kp-events-ok svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kp-events-empty strong {
    display: block;
    color: var(--kp-text);
}

.kp-events-empty p {
    margin: 0.1rem 0 0;
    font-size: 0.88rem;
    color: var(--kp-muted);
}

/* ---------- Mon compte page inside the new layout ---------- */
.kp-main-account .acct {
    max-width: 1400px;
    margin: 0 auto;
}

.kp-main-account .acct-head {
    margin-top: 0;
}

/* ---------- Analytics (dashboard right column) ---------- */
.kp-panel-note {
    font-size: 0.82rem;
    color: var(--kp-muted);
    white-space: nowrap;
}

.kp-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
}

.kp-kpi {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1.1rem 1.2rem;
    border-radius: var(--kp-radius);
    background: var(--kp-card);
    box-shadow: var(--kp-shadow);
    color: var(--kp-text);
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.kp-kpi:hover {
    color: var(--kp-text);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(31, 56, 22, 0.1);
}

.kp-kpi-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 0.5rem;
    border-radius: 10px;
}

.kp-kpi-ico svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kp-kpi-ico.is-green-main { background: var(--kp-primary-soft); color: var(--kp-primary-dark); }
.kp-kpi-ico.is-blue  { background: var(--kp-blue-soft); color: var(--kp-accent); }
.kp-kpi-ico.is-green { background: var(--kp-green-soft); color: #3E6F2A; }
.kp-kpi-ico.is-amber { background: #fdf1e4; color: #b4651c; }
.kp-kpi-ico.is-red   { background: #fdecea; color: var(--kp-red); }

.kp-kpi-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--kp-muted);
}

.kp-kpi-value {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--kp-text);
    font-variant-numeric: tabular-nums;
}

.kp-kpi-sub {
    font-size: 0.78rem;
    color: var(--kp-muted);
}

.kp-chart {
    position: relative;
    height: 240px;
}

.kp-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--kp-muted);
}

.kp-chart-legend span,
.kp-split-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.kp-chart-legend i,
.kp-split-list i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.kp-split {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.kp-chart-donut {
    width: 190px;
    height: 190px;
    flex-shrink: 0;
}

.kp-split-list {
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.kp-split-list li {
    display: flex;
    font-size: 0.92rem;
    color: var(--kp-text);
}

.kp-split-list li span {
    flex: 1;
}

.kp-split-list strong {
    font-variant-numeric: tabular-nums;
}

.kp-split-list em {
    min-width: 3.2rem;
    text-align: right;
    font-style: normal;
    font-size: 0.82rem;
    color: var(--kp-muted);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 575.98px) {
    .kp-kpis {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .kp-kpi {
        padding: 0.9rem;
    }

    .kp-kpi-value {
        font-size: 1.35rem;
    }

    .kp-split {
        flex-direction: column;
        align-items: stretch;
    }

    .kp-chart-donut {
        margin: 0 auto;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .kp-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 991.98px) {
    .kp-main {
        padding: 1.5rem;
    }

    .kp-nav-link {
        font-size: 0.95rem;
    }
}

/* Mobile: the sidebar becomes a white app-style bottom bar */
@media (max-width: 798.98px) {
    .kp-main {
        margin-left: 0;
        padding: 1.25rem 1rem calc(var(--kp-bottombar-h) + 2rem + env(safe-area-inset-bottom));
    }

    .kp-sidebar {
        top: auto;
        bottom: 0;
        right: 0;
        width: 100%;
        height: calc(var(--kp-bottombar-h) + env(safe-area-inset-bottom));
        padding: 0 0 env(safe-area-inset-bottom);
        overflow: visible;
        background: #ffffff;
        border-top: 1px solid var(--kp-border);
        box-shadow: 0 -4px 16px rgba(31, 56, 22, 0.08);
        z-index: 1000;
    }

    .kp-nav {
        display: flex;
        height: var(--kp-bottombar-h);
        align-items: stretch;
    }

    .kp-nav-group,
    .kp-nav-group ul {
        display: contents;
    }

    .kp-nav li {
        flex: 1;
        display: flex;
        min-width: 0;
    }

    .kp-hide-mobile {
        display: none !important;
    }

    .kp-nav-link {
        flex: 1;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        margin: 0;
        padding: 6px 2px;
        border-radius: 0;
        color: var(--kp-muted);
        font-size: 0.68rem;
        text-align: center;
        white-space: nowrap;
    }

    .kp-nav-link:hover {
        background: transparent;
        color: var(--kp-primary-dark);
    }

    .kp-nav-link.is-active {
        background: transparent;
        color: var(--kp-primary-dark);
        font-weight: 600;
    }

    .kp-nav-link.is-active::before {
        left: 30%;
        right: 30%;
        top: 0;
        bottom: auto;
        width: auto;
        height: 3px;
        border-radius: 0 0 3px 3px;
    }

    .kp-nav-icon {
        width: 22px;
        height: 22px;
    }

    .kp-nav-link.kp-nav-cta {
        color: var(--kp-text);
    }

    .kp-nav-link.kp-nav-cta .kp-nav-icon {
        width: 52px;
        height: 52px;
        margin-top: -30px;
        padding: 12px;
        border: 4px solid #ffffff;
        box-sizing: border-box;
        box-shadow: 0 6px 14px rgba(50, 104, 183, 0.35);
    }

    .kp-nav-link.kp-nav-cta.is-active::before {
        display: none;
    }

    .kp-nav .gBuble {
        position: absolute;
        top: 6px;
        left: calc(50% + 6px);
        margin: 0;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        font-size: 0.6rem;
        border: 2px solid #ffffff;
        box-sizing: content-box;
    }

    .kp-welcome {
        font-size: 1.3rem;
    }

    .kp-hero {
        padding: 1.5rem 1.25rem;
    }

    .kp-hero-name {
        font-size: 1.5rem;
        padding-right: 70px;
    }

    .kp-hero-meta {
        font-size: 0.95rem;
        padding-right: 70px;
    }

    .kp-hero-icon {
        width: 60px;
        height: 60px;
        right: 1.25rem;
    }

    .kp-panel-head,
    .kp-panel-body {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* =========================================================
   Espace Particulier additions
   ========================================================= */

/* Sidebar help box */
.kp-nav-help {
    margin: 0.5rem 1.5rem 0;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1.4;
}

.kp-nav-help strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.kp-nav-help span {
    display: block;
    opacity: 0.9;
}

.kp-nav-help a {
    display: inline-block;
    margin-top: 0.6rem;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}

.kp-nav-help a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* "Quel est votre besoin ?" card */
.kp-new-project {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    border-radius: var(--kp-radius);
    background: var(--kp-primary);
    color: #ffffff;
    text-decoration: none;
    box-shadow: var(--kp-shadow);
    transition: background 0.2s;
}

.kp-new-project:hover {
    background: var(--kp-primary-dark);
    color: #ffffff;
    text-decoration: none;
}

.kp-new-project-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #ffffff;
    color: var(--kp-primary-dark);
}

.kp-new-project-ico svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.kp-new-project-body {
    flex: 1;
    min-width: 0;
}

.kp-new-project-body strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
}

.kp-new-project-body span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.95rem;
    opacity: 0.92;
}

.kp-new-project-go {
    flex-shrink: 0;
    padding: 0.6rem 1.1rem;
    border-radius: 100px;
    background: #ffffff;
    color: var(--kp-primary-dark);
    font-weight: 700;
    font-size: 0.9rem;
}

.kp-new-project.is-compact {
    padding: 1.1rem 1.4rem;
}

.kp-new-project.is-compact .kp-new-project-ico {
    width: 44px;
    height: 44px;
}

.kp-new-project.is-compact .kp-new-project-body strong {
    font-size: 1.1rem;
}

/* Panel header link */
.kp-panel-link {
    color: var(--kp-primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.kp-panel-link:hover {
    text-decoration: underline;
    color: var(--kp-primary-dark);
}

/* Recent projects */
.kp-recent {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kp-recent li[hidden] {
    display: none;
}

.kp-recent-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--kp-border);
    border-radius: var(--kp-radius);
    background: #ffffff;
    color: var(--kp-text);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.kp-recent-item:hover {
    border-color: var(--kp-primary);
    background: var(--kp-primary-soft);
    color: var(--kp-text);
    text-decoration: none;
}

.kp-recent-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.kp-recent-top b {
    font-size: 1rem;
}

.kp-recent-work {
    font-weight: 500;
}

.kp-recent-meta {
    color: var(--kp-muted);
    font-size: 0.85rem;
}

.kp-recent-item .kp-status {
    margin-top: 0.35rem;
}

/* Pager */
.kp-pager {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 1.25rem;
}

.kp-pager button {
    min-width: 36px;
    height: 36px;
    padding: 0 0.6rem;
    border: 1px solid var(--kp-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--kp-text);
    font-weight: 600;
    font-size: 0.9rem;
}

.kp-pager button:hover:not(:disabled) {
    border-color: var(--kp-primary);
    color: var(--kp-primary-dark);
}

.kp-pager button.is-active {
    border-color: var(--kp-primary);
    background: var(--kp-primary);
    color: #ffffff;
}

.kp-pager button:disabled {
    opacity: 0.4;
    cursor: default;
}

/* Évènements */
.kp-events {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kp-event {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    border-left: 4px solid var(--kp-primary);
    border-radius: var(--kp-radius);
    background: var(--kp-primary-soft);
    color: var(--kp-text);
    text-decoration: none;
}

.kp-event:hover {
    color: var(--kp-text);
    text-decoration: none;
    filter: brightness(0.98);
}

.kp-event-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--kp-primary);
    color: #ffffff;
}

.kp-event-ico svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kp-event-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.kp-event-body span {
    font-size: 0.9rem;
}

.kp-event-body small {
    color: var(--kp-muted);
    font-size: 0.8rem;
}

.kp-event-go {
    flex-shrink: 0;
    color: var(--kp-primary-dark);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Waiting more than 3 days / 5 days (same thresholds as before) */
.kp-event.is-warn { border-left-color: #d9962b; background: #fdf3e2; }
.kp-event.is-warn .kp-event-ico { background: #d9962b; }
.kp-event.is-warn .kp-event-go { color: #9a5d00; }

.kp-event.is-late { border-left-color: var(--kp-red); background: #fdecea; }
.kp-event.is-late .kp-event-ico { background: var(--kp-red); }
.kp-event.is-late .kp-event-go { color: #b42d17; }

.kp-events-empty p,
.kp-complete-body p {
    margin: 0.15rem 0 0;
    color: var(--kp-muted);
    font-size: 0.88rem;
}

/* Help card */
.kp-help-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--kp-radius);
    background: var(--kp-card);
    box-shadow: var(--kp-shadow);
}

.kp-help-card strong {
    font-size: 1.05rem;
}

.kp-help-card p {
    margin: 0.15rem 0 0;
    color: var(--kp-muted);
    font-size: 0.9rem;
}

.kp-help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 575.98px) {
    .kp-new-project {
        flex-wrap: wrap;
        padding: 1.25rem;
    }

    .kp-new-project-go {
        width: 100%;
        text-align: center;
    }

    .kp-help-actions,
    .kp-help-actions a {
        width: 100%;
        justify-content: center;
    }
}

.kp-new-project-go,
.kp-help-actions a {
    box-sizing: border-box;
}

.kp-panel-link {
    white-space: nowrap;
}
.kp-nav .gBuble.is-amber { background: #d9962b; }

.kp-nav-help a.kp-nav-help-faq {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.92;
}
