/* Projekter — wrap-up checkhæfte per produktion */
#panel-projekter { padding: 0; }

.projects-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 18px 22px 8px;
}
.projects-header h1 {
    font-family: "Fraunces", Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}
.projects-header h1 em { color: var(--cream-mute); font-style: italic; font-weight: 400; }
.projects-header .meta {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 10px;
    color: var(--cream-faint);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    padding: 8px 22px 28px;
    align-content: start;
    overflow-y: auto;
}

.projects-empty {
    color: var(--cream-faint);
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 12px;
    padding: 40px;
    text-align: center;
}

.projects-card {
    background: var(--ink-3);
    border: 1px solid var(--rule-2);
    border-left: 4px solid var(--proj-color, #4a90d9);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: opacity 0.2s ease;
}
.projects-card-done { opacity: 0.55; }
/* Fremhævning når man hopper hertil fra Timeline ("Vis i Projekter") */
.projects-card.projects-card-highlight {
    box-shadow: 0 0 0 3px var(--accent), 0 0 24px rgba(212, 92, 47, 0.5);
    transition: box-shadow 0.3s;
}

.projects-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* Fold-ud/ind chevron — projekt-kort er kollapsede som default (kun titel synlig) */
.projects-collapse-toggle {
    flex-shrink: 0; width: 18px; height: 18px; padding: 0; margin: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    color: var(--cream-mute, #b8b2a5); font-size: 11px; line-height: 1;
    transition: transform .15s ease, color .15s ease;
}
.projects-collapse-toggle:hover { color: var(--cream, #f0ece2); }
.projects-card:not(.collapsed) .projects-collapse-toggle { transform: rotate(90deg); }
.projects-card.collapsed .projects-card-body { display: none; }
.projects-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.projects-name {
    font-family: "Fraunces", Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    line-height: 1.2;
}
.projects-progress {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    color: var(--cream-mute);
    background: var(--ink-4);
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}
.projects-progress.done { background: var(--ok, #7ba55d); color: #0e0d0b; }

.projects-dates {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 10px;
    color: var(--cream-faint);
    letter-spacing: 0.04em;
}

.projects-people-label,
.projects-checklist-label {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 9px;
    color: var(--cream-faint);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* ✎ Rediger checkliste for ét projekt (engangs-kopi) */
.projects-checklist-edit {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: none;
    color: var(--cream-mute);
    background: transparent;
    border: 1px solid var(--rule-2, rgba(242,237,226,0.14));
    border-radius: 5px;
    padding: 2px 7px;
    cursor: pointer;
    transition: color 0.12s, border-color 0.12s;
}
.projects-checklist-edit:hover { color: var(--cream); border-color: var(--cream-mute); }

.projects-people {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.projects-person {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 10px;
    color: var(--cream-dim);
    background: var(--ink-4);
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.projects-person-empty {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 10px;
    color: var(--cream-faint);
    font-style: italic;
}

.projects-checklist {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 2px;
}
.projects-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Geist", system-ui, sans-serif;
    font-size: 12px;
    color: var(--cream-dim);
    cursor: pointer;
    padding: 3px 4px;
    border-radius: 6px;
    transition: background 0.15s ease;
}
.projects-check:hover { background: rgba(255,255,255,0.04); }
.projects-check input[type="checkbox"] {
    width: 15px; height: 15px;
    accent-color: var(--proj-color, #4a90d9);
    cursor: pointer;
    flex-shrink: 0;
}
.projects-check.checked span {
    color: var(--cream-faint);
    text-decoration: line-through;
}

/* v0.7.62 — Ansvarlig-postassistent visning (kolonner) + ansvarlig-felt + toggle */
.projects-header { position: relative; }
.projects-view-toggle {
    display: inline-flex;
    gap: 4px;
    margin-left: auto;
    padding-left: 16px;
}
.projects-view-btn {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid var(--rule-2);
    background: var(--ink-3);
    color: var(--cream-mute);
    cursor: pointer;
    transition: all 0.15s ease;
}
.projects-view-btn:hover { color: var(--cream-dim); }
.projects-view-btn.active { background: var(--ink-5); color: var(--cream); border-color: var(--rule); }

/* Grid-visning (flad) */
.projects-grid.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Kolonne-visning (Trello-stil, pr. ansvarlig) */
.projects-grid.mode-columns {
    display: flex;
    flex-direction: row;
    gap: 14px;
    overflow-x: auto;
    align-items: flex-start;
}
.projects-col {
    flex: 0 0 300px;
    background: var(--ink-2);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - 130px);
}
.projects-col-none { opacity: 0.92; border-style: dashed; }
.projects-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px 6px;
    border-bottom: 1px solid var(--rule);
}
.projects-col-name {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.projects-col-count {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    color: var(--cream-mute);
    background: var(--ink-4);
    padding: 1px 8px;
    border-radius: 10px;
}
.projects-col-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}
.projects-col .projects-card { padding: 12px 13px; }
/* Aktiv postassistent uden opgaver — diskret tom kolonne, så fraværet af opgaver er let at se */
.projects-col-empty { opacity: 0.72; border-style: dashed; }
.projects-col-empty .projects-col-count { background: transparent; color: var(--cream-mute); }
.projects-col-empty-hint {
    font-size: 11.5px;
    color: var(--cream-mute);
    font-style: italic;
    text-align: center;
    padding: 14px 4px;
    opacity: 0.85;
}

/* Ansvarlig-felt på kortet */
.projects-resp {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 2px;
}
.projects-resp-label {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 9px;
    color: var(--cream-faint);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.projects-resp-input {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 12px;
    color: var(--cream);
    background: var(--ink-4);
    border: 1px solid var(--rule-2);
    border-radius: 6px;
    padding: 5px 8px;
    width: 100%;
}
.projects-resp-input:focus {
    outline: none;
    border-color: var(--accent-hot, #f05a38);
    background: var(--ink-5);
}

/* v0.7.63 — Postassistent-liste (select), ferie-badge + styrings-modal */
.projects-manage-btn {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid var(--rule-2);
    background: var(--ink-4);
    color: var(--cream-dim);
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.15s ease;
}
.projects-manage-btn:hover { color: var(--cream); border-color: var(--rule); }

/* Ansvarlig-select (samme look som det gamle input) */
.projects-resp-select {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 12px;
    color: var(--cream);
    background: var(--ink-4);
    border: 1px solid var(--rule-2);
    border-radius: 6px;
    padding: 5px 8px;
    width: 100%;
    cursor: pointer;
}
.projects-resp-select:focus {
    outline: none;
    border-color: var(--accent-hot, #f05a38);
    background: var(--ink-5);
}

/* v0.9.12 — Flere ligestillede ansvarlige: chips + tilføj-select */
.projects-resp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}
.projects-resp-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    color: var(--cream);
    background: var(--ink-5);
    border: 1px solid var(--rule-2);
    border-radius: 6px;
    padding: 3px 4px 3px 8px;
}
.projects-resp-remove {
    background: none;
    border: none;
    color: var(--cream-mute);
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    padding: 0 3px;
    border-radius: 4px;
}
.projects-resp-remove:hover { color: #fff; background: var(--danger, #d9482c); }
.projects-resp-empty {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 11px;
    color: var(--cream-faint);
}
.projects-resp-add {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 11px;
    color: var(--cream-dim);
    background: var(--ink-4);
    border: 1px dashed var(--rule-2);
    border-radius: 6px;
    padding: 3px 6px;
    cursor: pointer;
}
.projects-resp-add:focus { outline: none; border-color: var(--accent-hot, #f05a38); background: var(--ink-5); }

/* Ferie-badge på kolonne-hoved */
.projects-vac-badge {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 9px;
    font-weight: 700;
    color: #0e0d0b;
    background: var(--warn, #d4a34a);
    padding: 1px 7px;
    border-radius: 10px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.projects-col-vac .projects-col-name { color: var(--warn, #d4a34a); }

/* Styrings-modal */
.pa-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; max-height: 50vh; overflow-y: auto; }
.pa-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pa-row .pa-name {
    flex: 1 1 auto;
    min-width: 100px;
    font-family: "Geist", system-ui, sans-serif;
    font-size: 13px;
    color: var(--cream);
    background: var(--ink-4);
    border: 1px solid var(--rule-2);
    border-radius: 6px;
    padding: 6px 9px;
}
.pa-vac-label {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 9px;
    color: var(--cream-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.pa-row input[type="date"] {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 11px;
    color: var(--cream-dim);
    background: var(--ink-4);
    border: 1px solid var(--rule-2);
    border-radius: 6px;
    padding: 5px 7px;
    color-scheme: dark;
}
.pa-vac-dash { color: var(--cream-faint); }
.pa-remove {
    background: none;
    border: none;
    color: var(--cream-mute);
    cursor: pointer;
    font-size: 14px;
    padding: 4px 6px;
    border-radius: 6px;
}
.pa-remove:hover { color: var(--accent-hot, #f05a38); background: rgba(217,72,44,0.1); }
.pa-add {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 12px;
    color: var(--cream-dim);
    background: var(--ink-3);
    border: 1px dashed var(--rule-2);
    border-radius: 8px;
    padding: 8px;
    width: 100%;
    cursor: pointer;
    margin-bottom: 8px;
}
.pa-add:hover { color: var(--cream); border-color: var(--rule); }

/* v0.7.64 — Rolle-tags, custom punkter, arkivering, historik */
.projects-check { position: relative; }
.projects-check-label { flex: 1; }
.projects-role-badge {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: auto;
    flex-shrink: 0;
}
.projects-role-badge.role-admin { background: rgba(217,72,44,0.22); color: #f0795a; }
.projects-role-badge.role-leder { background: rgba(212,163,74,0.22); color: #d4a34a; }
.projects-role-badge.role-postassistent { background: rgba(91,141,239,0.22); color: #7da0ef; }

.projects-item-remove {
    background: none; border: none; color: var(--cream-faint);
    cursor: pointer; font-size: 11px; padding: 0 2px; margin-left: 4px; flex-shrink: 0;
}
.projects-item-remove:hover { color: var(--accent-hot, #f05a38); }

.projects-additem {
    display: flex; gap: 5px; margin-top: 8px;
}
.projects-additem-input {
    flex: 1; min-width: 0;
    font-family: "Geist", system-ui, sans-serif;
    font-size: 11px; color: var(--cream);
    background: var(--ink-4); border: 1px solid var(--rule-2);
    border-radius: 6px; padding: 4px 7px;
}
.projects-additem-role {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 10px; color: var(--cream-dim);
    background: var(--ink-4); border: 1px solid var(--rule-2);
    border-radius: 6px; padding: 3px; cursor: pointer;
}
.projects-additem-btn {
    background: var(--ink-5); border: 1px solid var(--rule-2);
    color: var(--cream); border-radius: 6px; padding: 3px 9px;
    cursor: pointer; font-weight: 700;
}
.projects-additem-btn:hover { border-color: var(--rule); }

.projects-card-foot { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--rule); display: flex; gap: 6px; }
.projects-archive-btn, .projects-delete-btn {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 11px; font-weight: 600;
    padding: 5px 10px; border-radius: 7px;
    border: 1px solid var(--rule-2); background: var(--ink-4);
    color: var(--cream-dim); cursor: pointer; flex: 1; width: auto;
}
.projects-archive-btn:hover { color: var(--cream); border-color: var(--rule); }
.projects-archive-btn.restore { color: var(--ok, #7ba55d); }
.projects-delete-btn { color: var(--danger, #d9482c); }
.projects-delete-btn:hover { color: #fff; background: var(--danger, #d9482c); border-color: var(--danger, #d9482c); }
.projects-card-archived { opacity: 0.75; border-left-style: dashed; }

.projects-resphist {
    font-family: "Geist Mono", ui-monospace, monospace;
    color: var(--cream-mute);
}

/* Skabelon-modal rækker */
.tpl-row { display: flex; align-items: center; gap: 8px; }
.tpl-row .tpl-label {
    flex: 1 1 auto; min-width: 0; width: auto;
    font-family: "Geist", system-ui, sans-serif; font-size: 13px;
    color: var(--cream); background: var(--ink-4); border: 1px solid var(--rule-2);
    border-radius: 6px; padding: 6px 9px;
}
.tpl-row .tpl-role {
    flex: 0 0 auto; width: auto; min-width: 96px;
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px;
    color: var(--cream-dim); background: var(--ink-4); border: 1px solid var(--rule-2);
    border-radius: 6px; padding: 5px 7px; cursor: pointer;
}

/* v0.7.66 — Tidligere ansvarlige (historik, overlever sletning) */
.projects-resphist-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 2px;
}
.projects-resphist-chip {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 10px;
    color: var(--cream-dim);
    background: rgba(91,141,239,0.14);
    border: 1px solid rgba(91,141,239,0.3);
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}
.projects-resphist-chip em {
    color: var(--cream-faint);
    font-style: normal;
    font-size: 9px;
}
.projects-resphist { cursor: help; }

/* v0.7.82 — FCP-version pr. projekt (Projekter) */
.projects-version { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.projects-version-select {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 12px; color: var(--cream); background: var(--ink-4);
    border: 1px solid var(--rule-2); border-radius: 6px; padding: 5px 8px; width: 100%; cursor: pointer;
}
.projects-version-select:focus { outline: none; border-color: var(--accent-hot, #f05a38); background: var(--ink-5); }
.projects-version-select:disabled { opacity: 0.6; cursor: default; }
.projects-version-missing {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 9px; font-weight: 700;
    color: #f0b03a; border: 1px solid rgba(240,176,58,0.45); border-radius: 4px;
    padding: 1px 5px; margin-left: 6px; white-space: nowrap; flex-shrink: 0;
}
.projects-view-warn { color: #f0b03a !important; }
.projects-view-warn.active { background: rgba(240,176,58,0.18) !important; border-color: rgba(240,176,58,0.5) !important; }

/* ── Kort: klikbar head + tæller-badges + åbn-knap ── */
.projects-card-open { cursor: pointer; }
.projects-card-open:hover .projects-name { color: var(--accent-hot, #f05a38); }
.projects-counts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.projects-count {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; font-weight: 600;
    color: var(--cream-mute); background: var(--ink-4); border: 1px solid var(--rule-2);
    border-radius: 5px; padding: 2px 8px;
}
.projects-open-btn {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; font-weight: 600;
    color: var(--cream-mute); background: transparent; border: 1px solid var(--rule-2);
    border-radius: 6px; padding: 5px 10px; cursor: pointer; margin-right: auto;
    transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.projects-open-btn:hover { color: var(--cream); border-color: var(--cream-mute); background: var(--ink-4); }

/* ── Arbejdsrum (fuld-view-swap) ── */
.projects-workspace { display: flex; flex-direction: column; gap: 0; padding: 4px 2px 24px; }
.ws-header {
    display: flex; align-items: center; gap: 12px;
    padding-bottom: 14px; margin-bottom: 0; border-bottom: 1px solid var(--rule-2);
}
.ws-back {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; font-weight: 600;
    color: var(--cream-mute); background: var(--ink-4); border: 1px solid var(--rule-2);
    border-radius: 8px; padding: 6px 12px; cursor: pointer; transition: all 0.12s;
}
.ws-back:hover { color: var(--cream); border-color: var(--cream-mute); }
.ws-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.ws-title { font-family: "Fraunces", Georgia, serif; font-size: 22px; font-weight: 600; color: var(--cream); letter-spacing: -0.01em; }
.ws-archived-badge {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--cream-mute);
    background: var(--ink-4); border: 1px solid var(--rule-2); border-radius: 5px; padding: 2px 8px;
}
.ws-spacer { flex: 1; }

.ws-tabs { display: flex; gap: 4px; padding: 14px 0 0; flex-wrap: wrap; }
.ws-tab {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; font-weight: 600;
    color: var(--cream-mute); background: transparent; border: 1px solid transparent;
    border-radius: 8px; padding: 7px 14px; cursor: pointer; transition: all 0.12s;
}
.ws-tab:hover { color: var(--cream); background: var(--ink-4); }
.ws-tab.active { color: var(--cream); background: var(--ink-5); border-color: var(--rule); }

.ws-body { padding: 20px 2px 0; }
.ws-section { max-width: 760px; }
.ws-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ws-section-head h3 { font-family: "Fraunces", Georgia, serif; font-size: 17px; font-weight: 600; color: var(--cream); }
.ws-overview { display: flex; flex-direction: column; gap: 2px; max-width: 720px; }
.ws-ov-row { display: flex; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.ws-ov-row:last-child { border-bottom: none; }
.ws-ov-label {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--cream-faint);
    width: 130px; flex-shrink: 0;
}
.ws-count-note { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; color: var(--cream-mute); }
.ws-empty { color: var(--cream-faint); font-size: 14px; padding: 16px 2px; }

/* Opgaver */
/* Lister får deres egen solide baggrund så det faste side-gitter (body::before) ikke skinner igennem */
.ws-tasks {
    display: flex; flex-direction: column; gap: 0;
    background: var(--ink-2); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden;
}
.ws-task {
    border-bottom: 1px solid var(--rule);
}
.ws-task:last-child { border-bottom: none; }
.ws-task:hover { background: var(--ink-4); }
.ws-task-main { display: flex; align-items: center; gap: 12px; padding: 10px 10px; }
.ws-task-check { width: 17px; height: 17px; flex-shrink: 0; cursor: pointer; accent-color: var(--accent); }
.ws-task-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--cream-faint); }
.ws-task-dot.done { background: var(--accent); }
.ws-task-title { flex: 1; color: var(--cream); font-size: 14.5px; }
.ws-task.done .ws-task-title { color: var(--cream-faint); text-decoration: line-through; }
/* Chevron + trin-panel */
.ws-task-chevron {
    background: none; border: none; color: var(--cream-mute); cursor: pointer;
    font-size: 17px; line-height: 1; width: 20px; flex-shrink: 0; padding: 0; transition: color 0.12s;
}
.ws-task-chevron:hover { color: var(--cream); }
.ws-task-chevron-spacer { width: 20px; flex-shrink: 0; }
/* Hele rækken er klikbar (folder trin ud) når opgaven har et panel — undtagen mærker/knapper */
.ws-task.expandable .ws-task-main { cursor: pointer; }
/* Fremhævet opgave (fx efter højreklik-hop fra en Levering-celle) — bliver til fane-skift */
.ws-task.hl {
    background: rgba(217,72,44,0.10);
    box-shadow: inset 0 0 0 1px rgba(217,72,44,0.55);
}
.ws-task.hl:hover { background: rgba(217,72,44,0.14); }
.ws-task-progress {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; color: var(--cream-mute);
    background: var(--ink-4); border: 1px solid var(--rule-2); border-radius: 5px; padding: 1px 7px; white-space: nowrap;
}
.ws-task-progress.all-done { color: #7fbf8b; border-color: rgba(127,191,139,0.3); }
.ws-task-linkbadge {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; color: var(--cream-dim);
    background: rgba(127,191,139,0.12); border: 1px solid rgba(127,191,139,0.25);
    border-radius: 5px; padding: 1px 7px; white-space: nowrap; cursor: pointer; transition: all 0.12s;
}
.ws-task-linkbadge:hover { background: rgba(127,191,139,0.22); color: var(--cream); }
.ws-task-linkbadge.dead { background: var(--ink-4); border-color: var(--rule-2); color: var(--cream-faint); cursor: default; }
.ws-task-steps {
    display: flex; flex-direction: column; gap: 2px;
    margin: 0 10px 8px 38px; padding: 8px 10px; background: var(--ink-3);
    border: 1px solid var(--rule); border-radius: 8px;
}
.ws-step-row { display: flex; align-items: center; gap: 10px; padding: 4px 2px; }
.ws-step-check { width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; accent-color: var(--accent); }
.ws-step-text { flex: 1; color: var(--cream-dim); font-size: 13.5px; }
.ws-step-row.done .ws-step-text { color: var(--cream-faint); text-decoration: line-through; }
.ws-step-empty { color: var(--cream-faint); font-size: 13px; padding: 2px; }
.ws-step-remove {
    background: none; border: none; color: var(--cream-faint); cursor: pointer; font-size: 12px;
    opacity: 0; padding: 2px 4px; transition: opacity 0.12s, color 0.12s;
}
.ws-step-row:hover .ws-step-remove { opacity: 1; }
.ws-step-remove:hover { color: #ff8e8e; }
.ws-step-add { display: flex; gap: 6px; margin-top: 4px; }
.ws-step-input {
    flex: 1; font-size: 13px; color: var(--cream); background: var(--ink-4);
    border: 1px solid var(--rule-2); border-radius: 6px; padding: 5px 9px;
}
.ws-step-input:focus { outline: none; border-color: var(--accent-hot, #f05a38); }
.ws-step-addbtn {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; color: var(--cream-mute);
    background: var(--ink-5); border: 1px solid var(--rule); border-radius: 6px; padding: 5px 11px; cursor: pointer;
}
.ws-step-addbtn:hover { color: var(--cream); border-color: var(--accent); }
.ws-task-linkedit {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--rule-2);
}
.ws-task-linkedit-label { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; color: var(--cream-mute); }
.ws-task-linkedit-empty { font-size: 12px; color: var(--cream-faint); font-style: italic; }
.ws-link-ep, .ws-link-step {
    font-size: 12.5px; color: var(--cream); background: var(--ink-4);
    border: 1px solid var(--rule-2); border-radius: 6px; padding: 4px 8px; cursor: pointer; max-width: 180px;
}
.ws-link-clear {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; color: var(--cream-faint);
    background: none; border: 1px solid var(--rule-2); border-radius: 6px; padding: 4px 9px; cursor: pointer;
}
.ws-link-clear:hover { color: #ff8e8e; border-color: rgba(255,142,142,0.4); }

/* Visnings-toggle (Liste/Uge) */
.ws-viewtoggle { margin-left: auto; display: inline-flex; background: var(--ink-4); border: 1px solid var(--rule-2); border-radius: 7px; padding: 2px; }
.ws-vt-btn {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; color: var(--cream-mute);
    background: none; border: none; border-radius: 5px; padding: 4px 12px; cursor: pointer; transition: all 0.12s;
}
.ws-vt-btn:hover { color: var(--cream); }
.ws-vt-btn.active { color: var(--cream); background: var(--ink-5); }
.ws-task-assignee {
    font-size: 12px; color: var(--cream-mute); background: var(--ink-4);
    border: 1px solid var(--rule-2); border-radius: 5px; padding: 2px 9px; white-space: nowrap;
}
.ws-task-due {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 11.5px; color: var(--cream-mute);
    white-space: nowrap; min-width: 56px; text-align: right;
}
.ws-task-due.overdue { color: #ff8e8e; font-weight: 600; }
.ws-task-remove {
    background: none; border: none; color: var(--cream-faint); cursor: pointer; font-size: 13px;
    opacity: 0; padding: 2px 4px; transition: opacity 0.12s, color 0.12s;
}
.ws-task:hover .ws-task-remove { opacity: 1; }
.ws-task-remove:hover { color: #ff8e8e; }

.ws-task-add { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.ws-task-input {
    flex: 1; min-width: 180px; font-size: 14px; color: var(--cream); background: var(--ink-4);
    border: 1px solid var(--rule-2); border-radius: 7px; padding: 8px 11px;
}
.ws-task-input:focus { outline: none; border-color: var(--accent-hot, #f05a38); background: var(--ink-5); }
.ws-task-assignee-sel, .ws-task-date {
    font-size: 13px; color: var(--cream); background: var(--ink-4);
    border: 1px solid var(--rule-2); border-radius: 7px; padding: 8px 10px; cursor: pointer;
}
.ws-task-addbtn {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; font-weight: 600;
    color: var(--cream); background: var(--ink-5); border: 1px solid var(--rule);
    border-radius: 7px; padding: 8px 14px; cursor: pointer; transition: all 0.12s;
}
.ws-task-addbtn:hover { border-color: var(--accent); background: rgba(212,92,47,0.18); }

/* Overleveringer / videndeling — note-kort */
.ws-notes { display: flex; flex-direction: column; gap: 10px; }
.ws-note {
    background: var(--ink-3); border: 1px solid var(--rule-2); border-radius: 10px; padding: 14px 16px;
}
.ws-note-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ws-note-title { font-weight: 600; font-size: 15px; color: var(--cream); flex: 1; }
.ws-note-meta { font-family: "Geist Mono", ui-monospace, monospace; font-size: 10.5px; color: var(--cream-faint); white-space: nowrap; }
.ws-note-edit, .ws-note-remove {
    background: none; border: none; color: var(--cream-faint); cursor: pointer; font-size: 13px;
    padding: 2px 5px; opacity: 0; transition: opacity 0.12s, color 0.12s;
}
.ws-note:hover .ws-note-edit, .ws-note:hover .ws-note-remove { opacity: 1; }
.ws-note-edit:hover { color: var(--cream); }
.ws-note-remove:hover { color: #ff8e8e; }
.ws-note-body { font-size: 14px; color: var(--cream-dim); line-height: 1.55; white-space: pre-wrap; }

.ws-note-editing { display: flex; flex-direction: column; gap: 8px; }
.ws-note-title-input, .ws-note-body-input {
    font-family: inherit; font-size: 14px; color: var(--cream); background: var(--ink-4);
    border: 1px solid var(--rule-2); border-radius: 7px; padding: 8px 11px; width: 100%; resize: vertical;
}
.ws-note-title-input { font-weight: 600; }
.ws-note-title-input:focus, .ws-note-body-input:focus { outline: none; border-color: var(--accent-hot, #f05a38); background: var(--ink-5); }
.ws-note-actions { display: flex; gap: 8px; }
.ws-note-save, .ws-note-cancel {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; font-weight: 600;
    border-radius: 7px; padding: 7px 14px; cursor: pointer; transition: all 0.12s;
}
.ws-note-save { color: var(--cream); background: var(--ink-5); border: 1px solid var(--rule); }
.ws-note-save:hover { border-color: var(--accent); background: rgba(212,92,47,0.18); }
.ws-note-cancel { color: var(--cream-mute); background: transparent; border: 1px solid var(--rule-2); }
.ws-note-cancel:hover { color: var(--cream); border-color: var(--cream-mute); }
.ws-note-add {
    margin-top: 12px; font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; font-weight: 600;
    color: var(--cream-mute); background: transparent; border: 1px dashed var(--rule-2);
    border-radius: 8px; padding: 9px 16px; cursor: pointer; transition: all 0.12s;
}
.ws-note-add:hover { color: var(--cream); border-color: var(--cream-mute); background: var(--ink-4); }

/* Videndeling */
.ws-know-searchwrap { margin-bottom: 12px; }
.ws-know-search {
    width: 100%; font-size: 14px; color: var(--cream); background: var(--ink-4);
    border: 1px solid var(--rule-2); border-radius: 8px; padding: 9px 12px;
}
.ws-know-search:focus { outline: none; border-color: var(--accent-hot, #f05a38); background: var(--ink-5); }
.ws-know-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ws-know-tag {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; color: var(--cream-mute);
    background: var(--ink-4); border: 1px solid var(--rule-2); border-radius: 5px; padding: 2px 8px;
}
.ws-know-editing { display: flex; flex-direction: column; gap: 8px; }
.ws-know-problem-input, .ws-know-solution-input, .ws-know-tags-input {
    font-family: inherit; font-size: 14px; color: var(--cream); background: var(--ink-4);
    border: 1px solid var(--rule-2); border-radius: 7px; padding: 8px 11px; width: 100%; resize: vertical;
}
.ws-know-problem-input { font-weight: 600; }
.ws-know-tags-input { font-size: 13px; }
.ws-know-problem-input:focus, .ws-know-solution-input:focus, .ws-know-tags-input:focus { outline: none; border-color: var(--accent-hot, #f05a38); background: var(--ink-5); }
.ws-know-save, .ws-know-cancel {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; font-weight: 600;
    border-radius: 7px; padding: 7px 14px; cursor: pointer; transition: all 0.12s;
}
.ws-know-save { color: var(--cream); background: var(--ink-5); border: 1px solid var(--rule); }
.ws-know-save:hover { border-color: var(--accent); background: rgba(212,92,47,0.18); }
.ws-know-cancel { color: var(--cream-mute); background: transparent; border: 1px solid var(--rule-2); }
.ws-know-cancel:hover { color: var(--cream); border-color: var(--cream-mute); }

/* Wrap-up deadlines */
.projects-check-overdue { color: #ff8e8e; font-size: 12px; flex-shrink: 0; }
.projects-check-due { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; color: var(--cream-mute); white-space: nowrap; flex-shrink: 0; }
.projects-check-due.overdue { color: #ff8e8e; font-weight: 600; }
.projects-check-doneat { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; color: #7fbf8b; white-space: nowrap; flex-shrink: 0; }
.projects-check-dueset {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; color: var(--cream-mute);
    background: var(--ink-4); border: 1px solid var(--rule-2); border-radius: 5px; padding: 2px 6px; cursor: pointer; flex-shrink: 0;
}
.projects-check-dueset:focus { outline: none; border-color: var(--accent-hot, #f05a38); }
.ws-cl-due {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; color: var(--cream-mute);
    background: var(--ink-4); border: 1px solid var(--rule-2); border-radius: 5px; padding: 3px 6px; cursor: pointer; flex-shrink: 0;
}
.ws-cl-due:focus { outline: none; border-color: var(--accent-hot, #f05a38); }
.ws-cl-check { width: 17px; height: 17px; flex-shrink: 0; cursor: pointer; accent-color: var(--accent); }
.ws-cl-remove { background: none; border: none; color: var(--cream-faint); cursor: pointer; font-size: 13px; opacity: 0; padding: 2px 4px; transition: opacity 0.12s, color 0.12s; }
.ws-task:hover .ws-cl-remove { opacity: 1; }
.ws-cl-remove:hover { color: #ff8e8e; }
.ws-cl-input { flex: 1; min-width: 180px; font-size: 14px; color: var(--cream); background: var(--ink-4); border: 1px solid var(--rule-2); border-radius: 7px; padding: 8px 11px; }
.ws-cl-input:focus { outline: none; border-color: var(--accent-hot, #f05a38); background: var(--ink-5); }
.ws-cl-date { font-size: 13px; color: var(--cream); background: var(--ink-4); border: 1px solid var(--rule-2); border-radius: 7px; padding: 8px 10px; cursor: pointer; }
.ws-cl-addbtn { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; font-weight: 600; color: var(--cream); background: var(--ink-5); border: 1px solid var(--rule); border-radius: 7px; padding: 8px 14px; cursor: pointer; transition: all 0.12s; }
.ws-cl-addbtn:hover { border-color: var(--accent); background: rgba(212,92,47,0.18); }

/* Fane-tællere + overbliks-berigelser + tvær-projekt-viden + ✎-redigér */
.ws-tab-count {
    font-size: 10px; font-weight: 700; margin-left: 7px;
    background: var(--ink-5); border: 1px solid var(--rule-2); border-radius: 9px; padding: 1px 7px;
    color: var(--cream-dim); vertical-align: 1px;
}
.ws-tab.active .ws-tab-count { border-color: var(--accent); color: var(--cream); }
.ws-person-seat { font-family: "Geist Mono", ui-monospace, monospace; font-size: 10.5px; color: var(--cream-mute); }
.ws-ov-hint { font-size: 11px; color: var(--cream-faint); }
.ws-know-others-label {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--cream-faint);
    margin: 18px 0 10px; padding-top: 14px; border-top: 1px dashed var(--rule-2);
}
#ws-know-others .ws-note { opacity: 0.85; }
.ws-know-other-prod {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; color: var(--cream-mute);
    white-space: nowrap; flex-shrink: 0;
}
.ws-task-edit, .ws-cl-edit {
    background: none; border: none; color: var(--cream-faint); cursor: pointer; font-size: 13px;
    opacity: 0; padding: 2px 4px; transition: opacity 0.12s, color 0.12s;
}
.ws-task:hover .ws-task-edit, .ws-task:hover .ws-cl-edit { opacity: 1; }
.ws-task-edit:hover, .ws-cl-edit:hover { color: var(--cream); }
.projects-overdue-badge {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 10px; font-weight: 700;
    color: #ff8e8e; background: rgba(217,72,44,0.18); border-radius: 4px; padding: 1px 6px; margin-left: 4px; white-space: nowrap;
}

/* ── Levering-fane (trin × episode-grid: trin som rækker, episoder som kolonner) ── */
.ws-section-wide { max-width: none; }
.lvl-edit-steps {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; font-weight: 600;
    color: var(--cream-mute); background: var(--ink-4); border: 1px solid var(--rule-2);
    border-radius: 7px; padding: 5px 11px; cursor: pointer; transition: all 0.12s; margin-left: auto;
}
.lvl-edit-steps:hover { color: var(--cream); border-color: var(--cream-mute); }

.lvl-table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--rule-2); border-radius: 10px; }
.lvl-table { border-collapse: collapse; font-size: 12px; }
.lvl-corner {
    position: sticky; left: 0; z-index: 3;
    background: var(--ink-3); border-bottom: 1px solid var(--rule-2);
}
.lvl-ep-col {
    position: relative; background: var(--ink-3);
    border-bottom: 1px solid var(--rule-2); border-left: 1px solid var(--rule);
    padding: 10px 8px 8px; min-width: 72px; text-align: center; vertical-align: bottom;
}
.lvl-ep-col.col-hl { background: var(--ink-5); }
.lvl-episode-title { display: block; color: var(--cream); font-size: 13px; font-weight: 600; }
.lvl-episode-house {
    display: inline-block; margin-top: 4px;
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 10px; color: var(--cream-mute);
    background: var(--ink-4); border: 1px solid var(--rule-2); border-radius: 5px; padding: 1px 5px;
}
.lvl-ep-progress {
    display: block; margin-top: 5px;
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 10px; color: var(--cream-faint);
}
.lvl-ep-progress.all-done { color: #7fbf8b; }
.lvl-episode-remove {
    position: absolute; top: 2px; right: 2px;
    background: none; border: none; color: var(--cream-faint); cursor: pointer; font-size: 11px;
    opacity: 0; padding: 2px 4px; transition: opacity 0.12s, color 0.12s;
}
.lvl-ep-col:hover .lvl-episode-remove { opacity: 1; }
.lvl-episode-remove:hover { color: #ff8e8e; }

.lvl-group-divider td {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--cream-mute);
    background: var(--ink-4); border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2);
    padding: 6px 12px; text-align: left;
}
.lvl-step-label {
    position: sticky; left: 0; z-index: 2;
    background: var(--ink-3); border-bottom: 1px solid var(--rule-2);
    padding: 7px 14px 7px 12px; white-space: nowrap; text-align: left;
    color: var(--cream-dim); font-size: 12.5px;
}
.lvl-step-row:hover .lvl-step-label { background: var(--ink-4); color: var(--cream); }
.lvl-cell {
    position: relative;
    width: 38px; min-width: 38px; height: 30px;
    border-bottom: 1px solid var(--rule-2); border-left: 1px solid var(--rule-2);
    text-align: center; vertical-align: middle;
    font-size: 13px; font-weight: 700; color: #7fbf8b;
    background: rgba(217,72,44,0.14);
}
.lvl-cell.done { background: rgba(127,191,139,0.18); }
/* Gul = mangler OG haster nu (opgave-deadline i dag/ugen) — erstatter rød */
.lvl-cell.urgent { background: rgba(245,200,66,0.20); }
.lvl-cell.clickable { cursor: pointer; transition: background 0.1s; }
/* Kryds-sigte: rækken markeres af :hover, kolonnen af .col-hl (sættes i JS) —
   cellen i selve krydset får dobbelt markering og står tydeligst */
.lvl-step-row:hover .lvl-cell { background: rgba(217,72,44,0.24); }
.lvl-step-row:hover .lvl-cell.done { background: rgba(127,191,139,0.28); }
.lvl-step-row:hover .lvl-cell.urgent { background: rgba(245,200,66,0.32); }
.lvl-cell.col-hl { background: rgba(217,72,44,0.24); }
.lvl-cell.done.col-hl { background: rgba(127,191,139,0.28); }
.lvl-cell.urgent.col-hl { background: rgba(245,200,66,0.32); }
.lvl-step-row:hover .lvl-cell.col-hl { background: rgba(217,72,44,0.40); }
.lvl-step-row:hover .lvl-cell.done.col-hl { background: rgba(127,191,139,0.45); }
.lvl-step-row:hover .lvl-cell.urgent.col-hl { background: rgba(245,200,66,0.48); }

/* Haster-mode segmenteret kontrol (Status · I dag · Uge) */
.lvl-urgency { margin-left: auto; display: inline-flex; background: var(--ink-4); border: 1px solid var(--rule-2); border-radius: 7px; padding: 2px; }
.lvl-urg-btn {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; color: var(--cream-mute);
    background: none; border: none; border-radius: 5px; padding: 4px 11px; cursor: pointer; transition: all 0.12s;
}
.lvl-urg-btn:hover { color: var(--cream); }
.lvl-urg-btn.active { color: var(--ink); background: #f5c842; }
/* Skabelon-kopiér-vælger i Rediger-trin-modalen */
.lvl-copy-select {
    width: 100%; margin-bottom: 12px; font-size: 13px; color: var(--cream);
    background: var(--ink-4); border: 1px solid var(--rule-2); border-radius: 7px; padding: 7px 10px; cursor: pointer;
}
.lvl-copy-select:focus { outline: none; border-color: var(--accent-hot, #f05a38); }

.lvl-add-episode { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.lvl-ep-name, .lvl-ep-house {
    font-size: 14px; color: var(--cream); background: var(--ink-4);
    border: 1px solid var(--rule-2); border-radius: 7px; padding: 8px 11px;
}
.lvl-ep-name { flex: 1; min-width: 140px; }
.lvl-ep-house { width: 140px; }
.lvl-ep-name:focus, .lvl-ep-house:focus { outline: none; border-color: var(--accent-hot, #f05a38); background: var(--ink-5); }
.lvl-ep-addbtn {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; font-weight: 600;
    color: var(--cream); background: var(--ink-5); border: 1px solid var(--rule);
    border-radius: 7px; padding: 8px 14px; cursor: pointer; transition: all 0.12s;
}
.lvl-ep-addbtn:hover { border-color: var(--accent); background: rgba(212,92,47,0.18); }

/* Skabelon-modal "gruppe"-tekstfelt (fri-tekst variant af .tpl-role) */
.tpl-row .tpl-group {
    flex: 0 0 auto; width: 140px;
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px;
    color: var(--cream-dim); background: var(--ink-4); border: 1px solid var(--rule-2);
    border-radius: 6px; padding: 5px 7px;
}
.tpl-row .tpl-group:focus { outline: none; border-color: var(--accent-hot, #f05a38); }

/* Markør-prik i Levering-grid: celle (ikke-færdig) har ≥1 åben koblet opgave.
   Vises kun på røde celler — i hjørnet, så den aldrig forveksles med fluebenet. */
.lvl-task-dot {
    position: absolute; top: 3px; right: 3px;
    width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
/* Flash når man hopper til en celle fra en opgaves Levering-link-badge */
@keyframes lvl-flash {
    0%, 100% { box-shadow: inset 0 0 0 0 rgba(217,72,44,0); }
    20%, 60% { box-shadow: inset 0 0 0 3px var(--accent); }
}
.lvl-cell.flash { animation: lvl-flash 1.8s ease-in-out; }

/* ── Uge-visning (Opgaver-fane + "Min uge") ── */
.ww-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ww-nav {
    font-size: 13px; color: var(--cream-mute); background: var(--ink-4);
    border: 1px solid var(--rule-2); border-radius: 7px; padding: 4px 11px; cursor: pointer; transition: all 0.12s;
}
.ww-nav:hover { color: var(--cream); border-color: var(--cream-mute); }
.ww-title { font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; color: var(--cream); }
.ww-today {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; color: var(--cream-mute);
    background: var(--ink-5); border: 1px solid var(--rule); border-radius: 7px; padding: 4px 11px; cursor: pointer;
}
.ww-today:hover { color: var(--cream); border-color: var(--accent); }
.ww-days {
    display: flex; flex-direction: column; gap: 0;
    background: var(--ink-2); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden;
}
.ww-day { display: flex; gap: 14px; border-bottom: 1px solid var(--rule); padding: 4px 0; }
.ww-day:last-child { border-bottom: none; }
.ww-day.today { background: rgba(217,72,44,0.06); }
.ww-day.weekend .ww-day-name { color: var(--cream-faint); }
.ww-day-label {
    width: 124px; flex-shrink: 0; padding: 10px 6px 10px 10px;
    display: flex; flex-direction: column; gap: 2px; position: relative;
}
.ww-day-name {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--cream-dim);
}
.ww-day.today .ww-day-name { color: var(--accent); }
.ww-day-date { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; color: var(--cream-faint); }
.ww-add {
    position: absolute; top: 8px; right: 4px;
    width: 22px; height: 22px; line-height: 1; font-size: 15px;
    color: var(--cream-mute); background: var(--ink-4); border: 1px solid var(--rule-2);
    border-radius: 6px; cursor: pointer; opacity: 0; transition: opacity 0.12s, color 0.12s;
}
.ww-day:hover .ww-add { opacity: 1; }
.ww-add:hover { color: var(--cream); border-color: var(--accent); }
.ww-add-input {
    margin-top: 4px; font-size: 13px; color: var(--cream); background: var(--ink-4);
    border: 1px solid var(--accent); border-radius: 6px; padding: 5px 8px; width: 100%;
}
.ww-add-input:focus { outline: none; }
.ww-day-tasks { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
.ww-day-empty { color: var(--cream-faint); font-size: 13px; padding: 8px 10px; }
.ww-bucket { margin-top: 18px; }
.ww-bucket-head {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--cream-mute); margin-bottom: 6px;
}
.ww-bucket-overdue .ww-bucket-head { color: #ff8e8e; }
.ww-bucket-count { color: var(--cream-faint); }

/* Min uge: filterbar + projekt-chip */
.projects-myweek { display: block; padding: 0 4px; }
.ww-filterbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ww-filter-label { font-family: "Fraunces", Georgia, serif; font-size: 18px; font-weight: 600; color: var(--cream); }
.ww-assignee-filter {
    font-size: 13px; color: var(--cream); background: var(--ink-4);
    border: 1px solid var(--rule-2); border-radius: 7px; padding: 6px 11px; cursor: pointer;
}
.ww-prod-chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--cream-mute); background: var(--ink-4);
    border: 1px solid var(--rule-2); border-radius: 5px; padding: 2px 9px; cursor: pointer; white-space: nowrap;
}
.ww-prod-chip:hover { color: var(--cream); border-color: var(--cream-mute); }
.ww-prod-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Min uge: kompakt Levering-overblik nederst */
.mw-section { margin-top: 28px; }
.mw-section-head {
    font-family: "Fraunces", Georgia, serif; font-size: 16px; font-weight: 600; color: var(--cream);
    margin-bottom: 12px; display: flex; align-items: baseline; gap: 10px;
}
.mw-section-note { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; color: var(--cream-mute); font-weight: 400; }
.mw-mini { margin-bottom: 16px; background: var(--ink-2); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; }
.mw-mini-open {
    display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px;
    font-size: 13px; font-weight: 500; color: var(--cream);
    background: none; border: none; cursor: pointer; padding: 0; transition: color 0.12s;
}
.mw-mini-open:hover { color: var(--accent); }
.mw-mini-empty { color: var(--cream-faint); font-size: 12px; }
.mw-mini-wrap { overflow-x: auto; max-width: 100%; }
.mw-mini-table { border-collapse: collapse; font-size: 10px; }
.mw-mini-corner { position: sticky; left: 0; z-index: 2; background: var(--ink-2); }
.mw-mini-ep {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 10px; font-weight: 600; color: var(--cream-dim);
    padding: 3px 4px; border-bottom: 1px solid var(--rule-2); border-left: 1px solid var(--rule-2); white-space: nowrap;
}
.mw-mini-divider td {
    font-family: "Geist Mono", ui-monospace, monospace; font-size: 9px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--cream-mute);
    background: var(--ink-3); padding: 3px 8px; text-align: left;
}
.mw-mini-label {
    position: sticky; left: 0; z-index: 1; background: var(--ink-2);
    color: var(--cream-dim); font-size: 10.5px; padding: 3px 10px 3px 6px; white-space: nowrap; text-align: left;
    border-bottom: 1px solid var(--rule);
}
.mw-mini-cell {
    width: 20px; min-width: 20px; height: 18px; text-align: center; vertical-align: middle;
    font-size: 10px; font-weight: 700; color: #7fbf8b;
    border-bottom: 1px solid var(--rule-2); border-left: 1px solid var(--rule-2);
    background: rgba(217,72,44,0.14);
}
.mw-mini-cell.done { background: rgba(127,191,139,0.18); }
.mw-mini-cell.urgent { background: rgba(245,200,66,0.22); }

/* "Efter ansvarlig"-DnD: træk produktions-kort mellem ansvarlig-kolonner. */
.projects-card[draggable="true"] { cursor: grab; }
.projects-card.dragging { opacity: 0.45; cursor: grabbing; }
.projects-col.drag-over {
    outline: 2px dashed var(--accent, #d9482c);
    outline-offset: -3px;
    background: rgba(217, 72, 44, 0.06);
    border-radius: 10px;
}
/* Valg-modal (ekstra ansvarlig vs overtager) — store klik-venlige valg-knapper. */
.projects-resp-choices { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 6px; }
.projects-resp-choice-btn {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    width: 100%; text-align: left;
    padding: 11px 14px; border-radius: 9px;
    border: 1px solid var(--rule-2, rgba(255,255,255,.16));
    background: var(--ink-4, rgba(255,255,255,.04)); color: var(--cream, #efe9dd);
    cursor: pointer; font: inherit;
    transition: border-color .12s, background .12s;
}
.projects-resp-choice-btn:hover { border-color: var(--accent, #d9482c); background: rgba(217,72,44,.10); }
.projects-resp-choice-btn .prc-label { font-weight: 600; font-size: 13.5px; }
.projects-resp-choice-btn .prc-hint { font-size: 11.5px; color: var(--cream-mute, #b8b2a5); }

/* "+ Ny produktion" i Projekter-toolbaren (åbner samme wizard som Timeline-fanens +). */
.projects-new-btn {
    font: inherit; font-size: 12.5px; font-weight: 600;
    background: var(--accent, #d9482c); color: #fff;
    border: 1px solid var(--accent, #d9482c); border-radius: 8px;
    padding: 6px 14px; cursor: pointer; white-space: nowrap;
    transition: filter .12s;
}
.projects-new-btn:hover { filter: brightness(1.08); }
