:root {
    --purple: #5f1e58;
    --purple-2: #7c3673;
    --purple-3: #9d6196;
    --purple-soft: #f1e7f0;
    --purple-pale: #f8f3f7;
    --ink: #241f24;
    --muted: #766c75;
    --line: #ded6dc;
    --surface: #ffffff;
    --background: #f5f3f5;
    --amber: #cb8525;
    --amber-soft: #fff3df;
    --red: #ad4051;
    --red-soft: #fbeaec;
    --bluegray: #586779;
    --bluegray-soft: #edf1f5;
    --shadow: 0 10px 28px rgba(69, 34, 65, .08);
    --shadow-soft: 0 4px 14px rgba(69, 34, 65, .06);
    --radius: 18px;
    --radius-sm: 12px;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
    margin: 0;
    background:
        radial-gradient(circle at 92% 0%, rgba(95,30,88,.07), transparent 30rem),
        var(--background);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

button, input, select, textarea {
    font: inherit;
}

a {
    color: var(--purple);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid rgba(95,30,88,.1);
    backdrop-filter: blur(16px);
}

.topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 76px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    text-decoration: none;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, var(--purple), var(--purple-2));
    box-shadow: 0 7px 16px rgba(95,30,88,.24);
    font-size: 20px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 17px;
    letter-spacing: -.02em;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.main-nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 10px 13px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 650;
    transition: .16s ease;
}

.main-nav a:hover {
    background: var(--purple-pale);
    color: var(--purple);
}

.main-nav a.active {
    color: var(--purple);
    background: var(--purple-soft);
}

.logout-link {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    text-decoration: none;
    color: var(--muted);
    border: 1px solid var(--line);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 24px 64px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.eyebrow,
.section-kicker {
    color: var(--purple-3);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

h1 {
    margin: 3px 0 0;
    font-size: clamp(38px, 5vw, 58px);
    line-height: .98;
    letter-spacing: -.055em;
}

h2 {
    margin: 3px 0 0;
    font-size: 25px;
    letter-spacing: -.035em;
}

h3 {
    letter-spacing: -.02em;
}

.muted, .meta {
    color: var(--muted);
}

.notice,
.growl {
    margin: 0 0 18px;
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.notice-success {
    border-color: rgba(95,30,88,.2);
    background: var(--purple-pale);
    color: var(--purple);
}

.growl {
    border-color: rgba(173,64,81,.24);
    background: var(--red-soft);
    color: #7e2938;
    font-weight: 650;
}

.growl.compact {
    margin-bottom: 20px;
    box-shadow: none;
}

.dashboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 15px 13px 18px;
    margin-bottom: 18px;
    border: 1px solid rgba(95,30,88,.12);
    border-radius: 15px;
    background: rgba(255,255,255,.72);
}

.sync-status {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
}

.sync-status b {
    color: var(--ink);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--purple-2);
    box-shadow: 0 0 0 4px rgba(95,30,88,.09);
    margin-right: 4px;
}

.status-separator {
    color: #b2a8b0;
}

.btn {
    appearance: none;
    border: 0;
    border-radius: 11px;
    padding: 10px 14px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 750;
    font-size: 14px;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(145deg, var(--purple), #722768);
    box-shadow: 0 8px 17px rgba(95,30,88,.20);
}

.btn-primary:hover {
    box-shadow: 0 10px 21px rgba(95,30,88,.28);
}

.btn-soft {
    color: var(--purple);
    background: var(--purple-soft);
}

.btn-ghost {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
}

.btn-done {
    color: #fff;
    background: var(--bluegray);
}

.btn-refresh {
    min-width: 135px;
}

.cockpit {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.cockpit-card {
    position: relative;
    overflow: hidden;
    min-height: 138px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.cockpit-card::after {
    content: "";
    position: absolute;
    width: 76px;
    height: 76px;
    right: -29px;
    top: -29px;
    border-radius: 50%;
    background: var(--purple-soft);
}

.cockpit-primary {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(145deg, var(--purple), #7c3471);
    box-shadow: 0 14px 28px rgba(95,30,88,.18);
}

.cockpit-primary::after {
    background: rgba(255,255,255,.09);
}

.cockpit-alert {
    border-color: rgba(203,133,37,.35);
    background: var(--amber-soft);
}

.cockpit-alert::after {
    background: rgba(203,133,37,.12);
}

.cockpit-label,
.cockpit-card small {
    display: block;
}

.cockpit-label {
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.cockpit-primary .cockpit-label,
.cockpit-primary small {
    color: rgba(255,255,255,.72);
}

.cockpit-card strong {
    position: relative;
    z-index: 1;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -.05em;
}

.cockpit-unit {
    position: relative;
    z-index: 1;
    margin-left: 4px;
    font-weight: 750;
}

.cockpit-card small {
    position: relative;
    z-index: 1;
    margin-top: 13px;
    color: var(--muted);
    font-size: 12px;
}

.day-context {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 34px;
    padding: 16px 18px;
    border-radius: 15px;
    background: var(--purple-pale);
    color: #4c3d49;
}

.day-context-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fff;
    color: var(--purple);
    font-size: 18px;
}

.day-context strong {
    color: var(--purple);
    font-size: 13px;
}

.day-context p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.today-section {
    margin-top: 4px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 15px;
}

.section-note {
    color: var(--muted);
    font-size: 13px;
}

.task-stack {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.planning-reason {
    padding: 2px 5px 0;
    color: var(--muted);
    font-size: 12px;
}

.planning-reason span {
    color: var(--purple);
    font-weight: 800;
    margin-right: 5px;
}

.task-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.task-card:hover {
    border-color: rgba(95,30,88,.22);
    box-shadow: var(--shadow);
}

.task-card[open] {
    border-color: rgba(95,30,88,.27);
}

.task-hard-deadline {
    border-left: 5px solid var(--amber);
}

.task-card summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
}

.task-card summary::-webkit-details-marker {
    display: none;
}

.task-summary-main {
    min-width: 0;
}

.task-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 9px;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.status-anne {
    color: var(--purple);
    background: var(--purple-soft);
}

.status-client {
    color: #4f5f70;
    background: var(--bluegray-soft);
}

.status-nomansland {
    color: #7d5368;
    background: #f4e9ef;
}

.chip-time {
    color: #625b61;
    background: #f1eff1;
}

.chip-deadline {
    color: #875513;
    background: var(--amber-soft);
}

.task-title {
    display: block;
    font-size: 20px;
    line-height: 1.22;
    letter-spacing: -.03em;
}

.task-project {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.deadline-line {
    margin-top: 8px;
    color: #875513;
    font-size: 12px;
    font-weight: 750;
}

.task-chevron {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border-right: 2px solid var(--purple-3);
    border-bottom: 2px solid var(--purple-3);
    transform: rotate(45deg);
    transition: transform .18s ease;
    margin: -5px 5px 0 0;
}

.task-card[open] .task-chevron {
    transform: rotate(225deg);
    margin-top: 5px;
}

.task-body {
    border-top: 1px solid #eee8ed;
    padding: 22px;
    background: #fff;
}

.task-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.task-detail-grid section {
    padding: 17px;
    border-radius: 13px;
    background: #f8f6f8;
}

.task-detail-grid .next-action {
    background: var(--purple-pale);
}

.task-body h3 {
    margin: 0 0 7px;
    color: var(--purple);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.task-body p {
    margin: 0;
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.facts span {
    min-width: 120px;
    padding: 10px 12px;
    border: 1px solid #eee8ed;
    border-radius: 10px;
    color: var(--muted);
    font-size: 12px;
}

.facts b {
    display: block;
    color: var(--ink);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.actions,
.tech-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.empty-state {
    padding: 42px 24px;
    border: 1px dashed rgba(95,30,88,.28);
    border-radius: var(--radius);
    background: rgba(255,255,255,.62);
    text-align: center;
}

.empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--purple-soft);
}

.empty-state h3 {
    margin: 0;
}

.empty-state p {
    max-width: 560px;
    margin: 8px auto 0;
    color: var(--muted);
}

.tech-panel {
    margin-top: 34px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.60);
}

.tech-panel > summary {
    cursor: pointer;
    padding: 14px 16px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.tech-panel-body {
    padding: 0 16px 16px;
    border-top: 1px solid #eee8ed;
}

.tech-panel-body p {
    color: var(--muted);
    font-size: 13px;
}

.capacity {
    margin: 0 0 20px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.capacity strong {
    color: var(--purple);
}

select,
input[type="text"],
input[type="email"],
textarea {
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
}

.site-footer {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 30px;
    color: #a398a1;
    font-size: 11px;
    text-align: right;
}

/* Week/projectpagina's krijgen alvast dezelfde jas zonder hun bestaande markup te breken. */
.container > .task-card,
.container > details.task-card {
    margin-bottom: 10px;
}

.container > p {
    color: var(--muted);
}

@media (max-width: 860px) {
    .topbar-inner {
        padding: 10px 18px;
        min-height: auto;
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    .brand {
        flex: 1;
    }

    .main-nav {
        width: 100%;
        order: 3;
        overflow-x: auto;
        margin: 2px 0 0;
        padding-bottom: 2px;
    }

    .main-nav a {
        white-space: nowrap;
    }

    .container {
        padding: 30px 18px 50px;
    }

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

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

@media (max-width: 560px) {
    h1 {
        font-size: 42px;
    }

    .dashboard-toolbar,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-toolbar form,
    .btn-refresh {
        width: 100%;
    }

    .cockpit {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .cockpit-card {
        min-height: 126px;
        padding: 15px;
    }

    .cockpit-card strong {
        font-size: 32px;
    }

    .task-card summary,
    .task-body {
        padding: 17px;
    }

    .task-title {
        font-size: 18px;
    }

    .actions .btn {
        flex: 1 1 calc(50% - 8px);
    }

    .actions .btn-primary,
    .actions .btn-done {
        flex-basis: 100%;
    }

    .sync-status {
        flex-wrap: wrap;
    }
}



/* ===== v0.8.1: Deze week ===== */
.week-hero,
.projects-hero,
.blackbook-hero {
    margin-bottom: 28px;
    padding: 26px 28px;
    border: 1px solid rgba(95,30,88,.12);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.94), rgba(248,243,247,.90)),
        var(--surface);
    box-shadow: var(--shadow-soft);
}

.week-hero,
.projects-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.week-hero > div:first-child,
.projects-hero > div:first-child {
    max-width: 510px;
}

.week-hero h2,
.projects-hero h2,
.blackbook-hero h2 {
    font-size: 30px;
    margin-top: 4px;
}

.week-hero p,
.projects-hero p,
.blackbook-hero p {
    margin: 8px 0 0;
    color: var(--muted);
}

.week-stats,
.project-overview-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(90px, 1fr));
    gap: 8px;
}

.week-stats > div,
.project-overview-stats > div {
    min-width: 92px;
    padding: 13px 14px;
    border-radius: 13px;
    background: #fff;
    border: 1px solid #ece5eb;
    text-align: center;
}

.week-stats strong,
.project-overview-stats strong {
    display: block;
    color: var(--purple);
    font-size: 25px;
    line-height: 1;
}

.week-stats span,
.project-overview-stats span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.week-stats .stat-warn {
    background: #f6edf2;
}

.week-stats .stat-deadline {
    background: var(--amber-soft);
}

.week-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .8fr);
    gap: 22px;
    align-items: start;
}

.column-heading,
.side-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
}

.column-heading > div,
.side-panel-heading {
    display: flex;
    align-items: center;
    gap: 11px;
}

.column-heading h2,
.side-panel-heading h2 {
    margin: 0;
    font-size: 22px;
}

.column-heading p,
.side-panel-heading p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.column-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    color: #fff;
    background: var(--purple);
}

.column-icon.pale {
    color: var(--purple);
    background: var(--purple-soft);
}

.week-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.side-panel {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.waiting-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.waiting-item {
    border: 1px solid #eee8ed;
    border-radius: 11px;
    background: #faf8fa;
}

.waiting-item summary {
    list-style: none;
    cursor: pointer;
    padding: 11px 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.waiting-item summary::-webkit-details-marker { display: none; }

.waiting-item strong {
    display: block;
    font-size: 13px;
}

.waiting-item summary span:not(.waiting-chevron) {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.waiting-chevron {
    color: var(--purple-3);
}

.waiting-body {
    padding: 0 12px 12px;
    border-top: 1px solid #eee8ed;
}

.waiting-body p {
    margin: 10px 0 5px;
    font-size: 12px;
}

.waiting-body small {
    color: var(--muted);
    font-size: 10px;
}

.side-panel-nomans.has-items {
    border-color: rgba(173,64,81,.25);
    background: #fcf5f6;
}

.all-clear {
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--purple);
    background: var(--purple-pale);
    font-size: 12px;
    font-weight: 750;
}

.nomans-item {
    padding: 12px 0;
    border-top: 1px solid #eadde3;
}

.nomans-item strong,
.nomans-item span {
    display: block;
}

.nomans-item span {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 8px;
}

.compact-empty {
    padding: 28px 18px;
}

/* ===== v0.8.1: Projecten ===== */
.project-section {
    margin-top: 34px;
}

.project-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.project-card summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.project-card summary::-webkit-details-marker { display: none; }

.project-card-main {
    min-width: 0;
    flex: 1;
}

.project-meta-row,
.project-task-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 7px;
}

.project-title {
    display: block;
    font-size: 21px;
    letter-spacing: -.03em;
}

.project-client {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.project-summary {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.project-card-side {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 0 0 auto;
}

.last-movement {
    text-align: right;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.last-movement b {
    color: var(--ink);
    font-size: 12px;
    text-transform: none;
}

.project-body {
    padding: 18px 22px 22px;
    border-top: 1px solid #eee8ed;
    background: #fbfafb;
}

.project-task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-task-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 15px;
    border: 1px solid #ece5eb;
    border-radius: 12px;
    background: #fff;
}

.project-task-row strong {
    font-size: 14px;
}

.project-task-row p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.project-deadline {
    flex: 0 0 auto;
    color: #875513;
    font-size: 10px;
    text-align: right;
    text-transform: uppercase;
}

.project-deadline b {
    font-size: 12px;
    text-transform: none;
}

.parked-section {
    opacity: .92;
}

.parked-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.parked-card {
    padding: 17px;
    border: 1px dashed #d7ccd4;
    border-radius: 14px;
    background: rgba(255,255,255,.55);
}

.parked-card strong,
.parked-card span {
    display: block;
}

.parked-card span {
    color: var(--muted);
    font-size: 11px;
}

.parked-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.archive-panel {
    margin-top: 30px;
    border-top: 1px solid var(--line);
}

.archive-panel summary {
    cursor: pointer;
    padding: 14px 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.archive-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.archive-list span {
    padding: 7px 9px;
    border-radius: 8px;
    color: var(--muted);
    background: #efedef;
    font-size: 11px;
}

/* ===== v0.8.1: Zwarte boekje ===== */
.blackbook-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background:
        radial-gradient(circle at 85% 20%, rgba(95,30,88,.10), transparent 18rem),
        linear-gradient(135deg, #fff, #f8f3f7);
}

.blackbook-copy {
    max-width: 610px;
}

.blackbook-status {
    min-width: 240px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(145deg, #30232e, #5f1e58);
    box-shadow: 0 12px 26px rgba(52,32,49,.18);
}

.book-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(255,255,255,.11);
    font-size: 23px;
}

.blackbook-status span,
.blackbook-status small {
    display: block;
    color: rgba(255,255,255,.72);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.blackbook-status strong {
    display: block;
    margin: 2px 0;
    font-size: 22px;
}

.blackbook-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(270px, .65fr);
    gap: 22px;
    align-items: start;
}

.count-badge {
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--purple);
    background: var(--purple-soft);
    font-weight: 850;
}

.candidate-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.candidate-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.candidate-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.candidate-head strong,
.candidate-head span {
    display: block;
}

.candidate-head span {
    color: var(--muted);
    font-size: 12px;
}

.confidence {
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--purple) !important;
    background: var(--purple-soft);
    font-weight: 850;
}

.candidate-match {
    margin-top: 13px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--purple-pale);
}

.candidate-match span {
    display: block;
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.candidate-card p {
    color: var(--muted);
    font-size: 12px;
}

.subject-snippets {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
}

.subject-snippets span {
    padding: 5px 7px;
    border-radius: 7px;
    background: #f0edf0;
    color: var(--muted);
    font-size: 10px;
}

.blackbook-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.book-panel {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.book-panel.subtle {
    background: #faf8fa;
    box-shadow: none;
}

.book-panel h3 {
    margin: 3px 0 8px;
}

.book-panel p,
.book-panel small {
    color: var(--muted);
    font-size: 12px;
}

.book-panel small {
    display: block;
    margin-top: 12px;
}

.book-rules {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 12px;
}

.book-rules li + li {
    margin-top: 7px;
}

.learned-section {
    margin-top: 35px;
}

.learned-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.learned-row {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.learned-row summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 15px;
}

.learned-row summary::-webkit-details-marker { display: none; }

.learned-row summary strong,
.learned-row summary span {
    display: block;
}

.learned-row summary strong {
    font-size: 13px;
}

.learned-row summary span {
    color: var(--muted);
    font-size: 11px;
}

.learned-meta {
    display: flex;
    align-items: center;
    gap: 11px;
}

.learned-meta b {
    color: var(--purple);
    font-size: 12px;
}

.learned-correction {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    padding: 12px 15px 15px;
    border-top: 1px solid #eee8ed;
    background: #faf8fa;
}

.move-form {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.move-form select {
    min-width: 230px;
}

@media (max-width: 940px) {
    .week-hero,
    .projects-hero,
    .blackbook-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .week-stats,
    .project-overview-stats {
        width: 100%;
    }

    .week-columns,
    .blackbook-grid {
        grid-template-columns: 1fr;
    }

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

    .blackbook-status {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .week-stats,
    .project-overview-stats {
        grid-template-columns: 1fr 1fr;
    }

    .project-card summary,
    .project-task-row,
    .learned-row summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-card-side {
        width: 100%;
        justify-content: space-between;
    }

    .last-movement {
        text-align: left;
    }

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

    .learned-meta {
        width: 100%;
        justify-content: space-between;
    }

    .move-form,
    .move-form select,
    .move-form .btn {
        width: 100%;
    }
}



/* ===== v0.8.2: poetsdoek / scanbaarheid ===== */

/* Week: prioriteit en wachttijd */
.week-priority-row {
    height: 0;
    position: relative;
    z-index: 3;
    pointer-events: none;
}

.week-priority {
    position: absolute;
    right: 18px;
    top: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.priority-next {
    color: #875513;
    background: var(--amber-soft);
}

.priority-week {
    color: var(--purple);
    background: var(--purple-soft);
}

.priority-kick {
    color: #8a3140;
    background: var(--red-soft);
}

.week-column-anne .task-kicker {
    padding-right: 92px;
}

.waiting-age-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
}

.waiting-age {
    min-width: 34px;
    padding: 3px 6px;
    border-radius: 999px;
    color: #6d6170 !important;
    background: #eee9ed;
    font-size: 9px !important;
    font-weight: 800;
    text-align: center;
}

/* Projecten: groepering + preview eerstvolgende actie */
.project-group + .project-group {
    margin-top: 24px;
}

.project-group-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 0 3px 9px;
}

.project-group-heading > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-group-heading strong {
    font-size: 14px;
}

.project-group-heading > span {
    color: var(--muted);
    font-size: 11px;
}

.project-group-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--purple);
}

.project-group-client .project-group-dot {
    background: var(--bluegray);
}

.project-group-quiet .project-group-dot {
    background: #aaa0a8;
}

.project-card summary {
    padding-top: 17px;
    padding-bottom: 17px;
}

.project-next-preview {
    margin-top: 9px;
    max-width: 760px;
}

.project-next-preview > span,
.project-context > span {
    display: block;
    margin-bottom: 2px;
    color: var(--purple-3);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.project-next-preview strong {
    display: block;
    font-size: 12px;
    color: var(--ink);
}

.project-next-preview p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.project-context {
    margin-bottom: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    background: var(--purple-pale);
}

.project-context p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.project-card-side {
    opacity: .78;
}

.project-card:hover .project-card-side,
.project-card[open] .project-card-side {
    opacity: 1;
}

.last-movement {
    color: #948990;
}

/* Zwarte boekje: zoeken en duidelijk statuslabel */
.learned-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.learned-search {
    width: min(320px, 100%);
}

.learned-search span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.learned-search input {
    width: 100%;
    min-height: 38px;
    background: rgba(255,255,255,.82);
}

.learned-status {
    display: inline-flex !important;
    align-items: center;
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 9px !important;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.learned-status.is-auto {
    color: var(--purple) !important;
    background: var(--purple-soft);
}

.learned-status.is-confirmed {
    color: #4f5f70 !important;
    background: var(--bluegray-soft);
}

.learned-row[hidden] {
    display: none;
}

@media (max-width: 600px) {
    .week-priority {
        position: static;
        display: inline-flex;
        margin: 0 0 6px 14px;
    }

    .week-priority-row {
        height: auto;
    }

    .week-column-anne .task-kicker {
        padding-right: 0;
    }

    .project-group-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .learned-toolbar {
        justify-content: stretch;
    }

    .learned-search {
        width: 100%;
    }
}


/* v0.9.3 — communicatie weer zichtbaar */
.chip-mail {
    color: var(--purple);
    background: #f2e7f1;
}

.mail-section {
    margin: 24px 0 28px;
}

.mail-section-heading {
    margin-bottom: 12px;
}

.mail-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid #e9e1e7;
    border-radius: 14px;
    background: rgba(255,255,255,.82);
    box-shadow: var(--shadow-soft);
}

.mail-row.is-today {
    border-left: 4px solid var(--purple);
    background: var(--purple-pale);
}

.mail-row-main {
    min-width: 0;
}

.mail-row-main strong {
    display: block;
    margin: 2px 0 3px;
    font-size: 15px;
    line-height: 1.25;
}

.mail-row-main > span {
    color: var(--muted);
    font-size: 12px;
}

.mail-row-top {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 3px;
}

.mail-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 7px;
    border-radius: 999px;
    color: #625b61;
    background: #eee9ed;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mail-badge-today {
    color: var(--purple);
    background: #ead8e8;
}

.mail-badge-age {
    color: #875513;
    background: var(--amber-soft);
}

.mail-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
    align-items: center;
}

.week-stats-five {
    grid-template-columns: repeat(5, minmax(82px, 1fr));
}

.week-stats .stat-mail {
    background: var(--purple-pale);
}

.side-panel-mail {
    margin-bottom: 16px;
    border-color: rgba(95,30,88,.18);
}

.mail-waiting-item {
    background: var(--purple-pale);
}

.week-mail-actions {
    margin-top: 10px;
}

@media (max-width: 940px) {
    .week-stats-five {
        grid-template-columns: repeat(5, minmax(70px, 1fr));
    }
}

@media (max-width: 700px) {
    .mail-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .mail-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .week-stats-five {
        grid-template-columns: 1fr 1fr;
    }
}


/* v0.9.4 — zichtbaar maildashboard, ook bij nul */
.mail-empty {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px dashed rgba(95,30,88,.20);
    border-radius: 14px;
    background: rgba(255,255,255,.55);
    color: var(--muted);
    font-size: 12px;
}

.mail-empty strong {
    color: var(--ink);
}


/* v1.0 RC — standalone afmaakronde */
.quick-add-link {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    text-decoration: none;
    font-size: 21px;
    font-weight: 700;
    background: #fff;
}

.page-actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: -4px 0 18px;
}

.editor-card {
    max-width: 860px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.form-field > span {
    color: var(--purple);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.form-field textarea {
    resize: vertical;
}

.checkline {
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkline input {
    width: auto;
}

.editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

.project-editor-link {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.health-hero {
    display: grid;
    grid-template-columns: 1.5fr .9fr;
    gap: 18px;
    align-items: center;
    padding: 22px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.health-hero h2 {
    margin: 5px 0 4px;
}

.health-hero p {
    margin: 0;
    color: var(--muted);
}

.health-runtime {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border-radius: 12px;
}

.health-runtime.is-ok {
    background: #f3edf3;
    color: var(--purple);
}

.health-runtime.is-warn {
    background: var(--amber-soft);
    color: #7f541a;
}

.health-runtime span {
    font-size: 12px;
}

.health-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.health-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.health-card.ok {
    border-left: 4px solid var(--purple);
}

.health-card.warn {
    border-left: 4px solid #c6913f;
}

.health-card.error {
    border-left: 4px solid #a54d4d;
}

.health-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.health-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.health-chip {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.health-chip.ok {
    background: #f0e5ef;
    color: var(--purple);
}

.health-chip.warn {
    background: var(--amber-soft);
    color: #7f541a;
}

.health-chip.error {
    background: #f7e2e2;
    color: #843737;
}

.rc-note {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--purple-pale);
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 760px) {
    .form-grid,
    .health-grid,
    .health-hero {
        grid-template-columns: 1fr;
    }

    .page-actions-row {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}


/* v1.0 RC3.5.1 — systeemstatus presentatie */
.health-current {
    margin-top: 12px;
    padding: 12px 13px;
    border: 1px solid rgba(95,30,88,.10);
    border-radius: 11px;
    background: var(--purple-pale);
    color: var(--ink);
    font-size: 12px;
    line-height: 1.55;
}

.health-current-label {
    display: block;
    margin-bottom: 5px;
    color: var(--purple-3);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.health-source-link {
    display: inline-flex;
    margin-top: 8px;
    color: var(--purple);
    font-weight: 750;
    text-decoration: none;
}

.health-source-link:hover {
    text-decoration: underline;
}

/* v1.0 RC3.13 — Annie tikt aan */
.notification-panel {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin: 0 0 18px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.notification-panel h2 {
    margin: 4px 0 5px;
}

.notification-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.notification-panel .notification-state {
    margin-top: 8px;
    color: var(--ink);
}

.notification-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.notification-actions .btn:disabled {
    cursor: not-allowed;
    opacity: .55;
}

@media (max-width: 760px) {
    .notification-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .notification-actions {
        justify-content: flex-start;
    }
}


/* v1.0 RC3.14 — notificatiediagnose */
.notification-panel .notification-diagnostic {
    margin-top: 6px;
    font-weight: 700;
}
.notification-diagnostic[data-kind="ok"] { color: #2d6a4f; }
.notification-diagnostic[data-kind="warn"] { color: #8a5a00; }
.notification-diagnostic[data-kind="error"] { color: #9a2f3f; }

/* v1.0 RC3.15 — diagnostische notificatietoets */
.notification-panel .notification-diagnostic { white-space: pre-line; line-height: 1.45; }

/* v1.0 RC3.16 — betrouwbare Annie-tik fallback */
.annie-attention-bar {
    position: sticky;
    top: 0;
    z-index: 900;
    border-bottom: 1px solid rgba(95,30,88,.20);
    background: #5f1e58;
    color: #fff;
    box-shadow: 0 8px 24px rgba(45, 19, 43, .16);
}

.annie-attention-bar[hidden] {
    display: none;
}

.annie-attention-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.annie-attention-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.annie-attention-copy strong {
    font-size: 13px;
}

.annie-attention-copy span {
    font-size: 12px;
    line-height: 1.35;
    opacity: .92;
}

.annie-attention-link {
    flex: 0 0 auto;
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.12);
    color: #fff;
}

.notification-fallback-status {
    margin-top: 6px !important;
    font-weight: 700;
    white-space: normal;
}
.notification-fallback-status[data-kind="ok"] { color: var(--purple); }
.notification-fallback-status[data-kind="warn"] { color: #8a5a00; }
.notification-fallback-status[data-kind="error"] { color: #9a2f3f; }

html.annie-needs-attention .brand-mark {
    animation: annie-pulse 1.8s ease-in-out infinite;
}

@keyframes annie-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.16); }
}

@media (max-width: 760px) {
    .annie-attention-inner {
        align-items: flex-start;
        flex-direction: column;
        width: min(100% - 24px, 1180px);
    }
}

/* v1.0 RC3.18 — compact overzicht voor lang wachtende klantballen */
.waiting-review-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    padding: 26px 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

.waiting-review-hero h2 { margin: 4px 0 8px; }
.waiting-review-hero p { margin: 0; color: var(--muted); max-width: 760px; }
.waiting-review-count {
    min-width: 112px;
    padding: 14px 18px;
    border-radius: 18px;
    background: var(--soft-purple);
    text-align: center;
    color: var(--purple);
}
.waiting-review-count strong { display: block; font-size: 30px; line-height: 1; }
.waiting-review-count span { display: block; margin-top: 4px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

.waiting-review-list { display: grid; gap: 14px; }
.waiting-review-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}
.waiting-review-card h3 { margin: 7px 0 4px; font-size: 18px; }
.waiting-review-meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; font-weight: 700; }
.waiting-age-large { padding: 5px 8px; border-radius: 999px; background: var(--soft-purple); color: var(--purple); font-weight: 900; }
.waiting-review-project { margin: 0; color: var(--muted); font-size: 13px; }
.waiting-review-next { margin: 10px 0 6px; line-height: 1.45; }
.waiting-review-main small { color: var(--muted); }
.waiting-review-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 430px; }
.waiting-review-empty { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.waiting-review-empty p { color: var(--muted); }

@media (max-width: 860px) {
    .waiting-review-card { grid-template-columns: 1fr; }
    .waiting-review-actions { justify-content: flex-start; max-width: none; }
}
@media (max-width: 640px) {
    .waiting-review-hero { align-items: flex-start; flex-direction: column; }
}

/* v1.0 RC3.19 — opvolgmail als veilig Gmail-concept */
.waiting-review-actions {
    align-items: center;
}
.waiting-review-action-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.followup-draft-hero {
    margin-bottom: 18px;
    padding: 24px 26px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}
.followup-draft-hero h2 { margin: 4px 0 8px; }
.followup-draft-hero p { margin: 0; max-width: 780px; color: var(--muted); }

.followup-draft-card {
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}
.followup-draft-context {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--soft-purple);
}
.followup-draft-context strong { color: var(--purple); }
.followup-draft-context span,
.followup-draft-context small { color: var(--muted); }

.followup-draft-form {
    display: grid;
    gap: 16px;
}
.followup-draft-form label {
    display: grid;
    gap: 7px;
}
.followup-draft-form label > span {
    font-size: 12px;
    font-weight: 850;
    color: var(--ink);
}
.followup-draft-form input,
.followup-draft-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    padding: 11px 12px;
}
.followup-draft-form textarea {
    min-height: 220px;
    resize: vertical;
    line-height: 1.5;
}
.followup-draft-form input:focus,
.followup-draft-form textarea:focus {
    outline: 2px solid rgba(95,30,88,.18);
    border-color: var(--purple);
}
.followup-draft-form small,
.followup-draft-note {
    color: var(--muted);
    font-size: 12px;
}
.followup-draft-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}
.followup-draft-note { margin: -4px 0 0; text-align: right; }

@media (max-width: 860px) {
    .waiting-review-action-form { justify-content: flex-start; }
    .followup-draft-actions { justify-content: flex-start; }
    .followup-draft-note { text-align: left; }
}

/* RC3.22.1 — projectstagnatie: visuele verfijning, logica ongewijzigd */
.attention-section {
    margin: 30px 0 34px;
}

.attention-section-heading {
    margin-bottom: 14px;
}

.attention-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.attention-card,
.attention-empty {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.attention-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 18px 19px 17px;
    overflow: hidden;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.attention-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--bluegray);
}

.attention-card:hover {
    border-color: rgba(95,30,88,.20);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.attention-high::before {
    background: var(--amber);
}

.attention-urgent::before {
    background: var(--red);
}

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

.attention-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .045em;
    text-transform: uppercase;
    white-space: nowrap;
}

.attention-badge-watch {
    color: var(--bluegray);
    background: var(--bluegray-soft);
}

.attention-badge-high {
    color: #875513;
    background: var(--amber-soft);
}

.attention-badge-urgent {
    color: #7e2938;
    background: #f7dce1;
}

.attention-level-text {
    min-width: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-align: right;
}

.attention-card-title {
    min-width: 0;
}

.attention-client {
    display: block;
    margin-bottom: 3px;
    color: var(--purple);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.attention-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: -.015em;
}

.attention-task-count {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.attention-next {
    margin-top: 15px;
    padding: 12px 13px;
    border-radius: 12px;
    background: #f8f6f8;
}

.attention-next-label {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.attention-next strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.attention-next p {
    display: -webkit-box;
    overflow: hidden;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.attention-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 5px;
    margin-top: auto;
    padding-top: 14px;
    color: var(--purple);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.attention-link span {
    transition: transform .16s ease;
}

.attention-link:hover span {
    transform: translateX(2px);
}

.attention-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    color: var(--muted);
}

.attention-empty-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: var(--purple);
    background: var(--purple-soft);
    font-weight: 900;
}

.attention-empty strong {
    display: block;
    color: var(--ink);
    margin-bottom: 2px;
}

.attention-empty span:not(.attention-empty-icon) {
    font-size: 12px;
}

@media (max-width: 860px) {
    .attention-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .attention-section {
        margin-top: 24px;
    }

    .attention-section-heading {
        align-items: flex-start;
    }

    .attention-section-heading .section-note {
        display: none;
    }

    .attention-card {
        padding: 16px 16px 15px;
    }

    .attention-card-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .attention-level-text {
        text-align: left;
    }
}

/* RC3.25 — tijdsignalen */
.attention-secondary-signal{display:block;margin-top:4px;font-size:12px;color:#7b737c;line-height:1.35}
.attention-card.attention-check{border-left-color:#9a8f9d}
.attention-badge-check{background:#f1edf2;color:#6f6372}


/* RC3.25.2 — aandachtprojecten: zes rustig in beeld, rest uitklapbaar */
.attention-more {
    margin-top: 12px;
}
.attention-more > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.58);
    color: var(--purple);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    list-style: none;
}
.attention-more > summary::-webkit-details-marker { display: none; }
.attention-more > summary::after {
    content: "⌄";
    font-size: 16px;
    line-height: 1;
    transition: transform .16s ease;
}
.attention-more[open] > summary::after { transform: rotate(180deg); }
.attention-more-count {
    margin-left: auto;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}
.attention-grid-more {
    margin-top: 12px;
}
@media (max-width: 560px) {
    .attention-more > summary { padding: 11px 13px; }
}


/* RC3.26 — belangrijke grotere klussen die vandaag geen passend bouwblok hebben */
.blocked-priority-list {
    display: grid;
    gap: 8px;
    margin: 0 0 14px;
}
.blocked-priority-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid #eadde9;
    border-radius: 13px;
    background: rgba(255,255,255,.62);
}
.blocked-priority-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.blocked-priority-label {
    color: var(--purple);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}
.blocked-priority-copy strong {
    font-size: 13px;
    line-height: 1.25;
}
.blocked-priority-copy > span:last-child {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}
@media (max-width: 700px) {
    .blocked-priority-item {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* RC3.27 — projectafhandeling vanuit projectdetail */
.project-control-card,
.project-open-tasks-card {
    max-width: 860px;
    margin-bottom: 16px;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}
.project-control-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.project-control-copy h2 { margin: 4px 0 5px; }
.project-control-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.project-control-actions,
.project-detail-task-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}
.project-control-actions form,
.project-detail-task-actions form { margin: 0; }
.compact-heading { margin-bottom: 12px; }
.project-detail-task-list { display: grid; gap: 9px; }
.project-detail-task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 15px;
    border: 1px solid #ece5eb;
    border-radius: 12px;
    background: #fbfafb;
}
.project-detail-task-copy { min-width: 0; }
.project-detail-task-copy > strong { display: block; margin-top: 6px; font-size: 14px; }
.project-detail-task-copy p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.btn-small { min-height: 34px; padding: 7px 10px; font-size: 12px; border-radius: 9px; }
@media (max-width: 760px) {
    .project-control-card,
    .project-detail-task { align-items: stretch; flex-direction: column; }
    .project-control-actions,
    .project-detail-task-actions { justify-content: flex-start; }
}
