/*
 * TaskTool – Stylesheet. Schlicht und hell, an Asana angelehnt (NA07).
 * Alle Farben zentral als CSS-Variablen, damit sie leicht änderbar sind.
 */
:root {
    --bg: #ffffff;
    --bg-soft: #f9f8f8;
    --bg-sidebar: #f6f5f4;
    --bg-hover: #efedec;
    --bg-active: #e5e2e0;
    --border: #e6e4e3;
    --border-strong: #cfcbcb;
    --text: #1e1f21;
    --text-muted: #6d6e6f;
    --text-light: #9ca0a3;
    --primary: #4573d2;
    --primary-hover: #3a63b8;
    --success: #58a182;
    --success-bg: #e3f3eb;
    --danger: #c92f54;
    --danger-bg: #fbe9ee;
    --warn-bg: #fff6dc;
    --warn-border: #f1c75b;
    --overdue: #c92f54;
    --new: #e8384f;
    --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, .18);
    --radius: 8px;
    --sidebar-w: 248px;
    --topbar-h: 52px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); font-size: 14px; line-height: 1.45; color: var(--text); background: var(--bg); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; font-weight: 600; margin: 0; }
h2 { font-size: 16px; font-weight: 600; margin: 0 0 10px; }
code, pre { font-family: Consolas, "SF Mono", Menlo, monospace; font-size: 12.5px; }
[hidden] { display: none !important; }

.muted { color: var(--text-muted); }
.small { font-size: 12.5px; }
.pad { padding: 8px 12px; }
.inline { display: inline; }
.grow { flex: 1; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 6px;
    background: var(--bg); color: var(--text); font: inherit; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--bg-hover); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-success { background: var(--success-bg); border-color: var(--success); color: #24613f; }
.btn-success:hover { background: #d0ebdc; }
.btn-danger-light { color: var(--danger); }
.btn-danger-light:hover { background: var(--danger-bg); }
.btn-light { background: rgba(255, 255, 255, .85); border-color: rgba(0, 0, 0, .12); }
.btn-small { padding: 3px 8px; font-size: 12.5px; }
.btn-block { width: 100%; justify-content: center; }
.icon-btn { border: 0; background: none; cursor: pointer; font-size: 16px; padding: 4px 8px; border-radius: 6px; color: var(--text-muted); }
.icon-btn:hover { background: var(--bg-hover); }
.linklike { border: 0; background: none; color: var(--primary); cursor: pointer; padding: 0; font: inherit; }
.linklike:hover { text-decoration: underline; }
.linklike.danger, .danger { color: var(--danger); }

/* ---------- Topbar ---------- */
.topbar {
    position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h); z-index: 30;
    display: flex; align-items: center; gap: 12px; padding: 0 16px;
    background: var(--bg); border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; font-size: 16px; color: var(--text); width: calc(var(--sidebar-w) - 32px); }
.brand:hover { text-decoration: none; }
.search { flex: 1; max-width: 560px; }
.search input {
    width: 100%; padding: 7px 12px 7px 32px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg-soft) no-repeat 10px center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236d6e6f' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
    font: inherit;
}
.search input:focus { outline: none; border-color: var(--primary); background-color: var(--bg); }
.topbar-user { margin-left: auto; }
.menu-toggle { display: none; }

/* ---------- Shell & Sidebar ---------- */
.shell { display: flex; padding-top: var(--topbar-h); min-height: 100vh; }
.sidebar {
    position: fixed; top: var(--topbar-h); bottom: 0; left: 0; width: var(--sidebar-w); z-index: 20;
    display: flex; flex-direction: column; overflow-y: auto; padding: 12px 8px;
    background: var(--bg-sidebar); border-right: 1px solid var(--border);
}
.nav-item {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border-radius: 6px;
    color: var(--text); text-decoration: none; text-align: left;
}
.nav-item:hover { background: var(--bg-hover); text-decoration: none; }
.nav-item.active { background: var(--bg-active); font-weight: 600; }
.nav-ico { width: 18px; text-align: center; color: var(--text-muted); }
.nav-heading { display: flex; justify-content: space-between; align-items: center; padding: 16px 10px 6px; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.nav-add { color: var(--text-muted); font-size: 15px; padding: 0 4px; border-radius: 4px; }
.nav-add:hover { background: var(--bg-hover); text-decoration: none; }
.project-list { list-style: none; margin: 0; padding: 0; }
.project-item { position: relative; display: flex; align-items: center; border-radius: 6px; border-left: 3px solid transparent; }
.project-item a { flex: 1; display: flex; align-items: center; gap: 8px; padding: 6px 8px; color: var(--text); text-decoration: none; min-width: 0; }
.project-item:hover { background: var(--bg-hover); }
.project-item.active { background: var(--bg-active); border-left-color: var(--pc, var(--primary)); }
.project-item.active a { font-weight: 600; }
.project-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-item .drag-handle { opacity: 0; cursor: grab; color: var(--text-light); padding: 0 6px; font-size: 11px; letter-spacing: -2px; }
.project-item:hover .drag-handle { opacity: 1; }
.project-item.drop-target { outline: 2px dashed var(--pc, var(--primary)); background: var(--bg); }
.archived-projects { margin-top: 10px; }
.archived-projects summary { cursor: pointer; padding: 6px 10px; font-size: 12.5px; color: var(--text-muted); border-radius: 6px; }
.archived-projects summary:hover { background: var(--bg-hover); }
.project-list.archived .project-item { opacity: .6; filter: grayscale(.7); }
.sidebar-bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.sidebar-bottom form { margin: 0; }
.sidebar-backdrop { display: none; }

.proj-icon { width: 20px; height: 20px; border-radius: 5px; flex: none; object-fit: cover; }
.proj-icon-fallback { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.proj-icon-lg { width: 40px; height: 40px; border-radius: 9px; font-size: 18px; }

/* ---------- Content ---------- */
.content { flex: 1; margin-left: var(--sidebar-w); min-width: 0; }
.page-header {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 18px 28px; background: var(--pc); color: var(--pc-text);
}
.page-header.neutral { background: var(--bg); color: var(--text); border-bottom: 1px solid var(--border); }
.page-header-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.page-header h1 { word-break: break-word; }
.page-header .crumbs { font-size: 13px; opacity: .9; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.page-header .crumbs a { color: inherit; }
.page-header .sep { opacity: .7; }
.page-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-body { padding: 20px 28px 60px; }
.page-body.narrow { max-width: 860px; }

.flash { margin: 12px 28px 0; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-soft); }
.flash-success { background: var(--success-bg); border-color: #bfe2cf; }
.flash-error { background: var(--danger-bg); border-color: #f2c2cf; color: #8d1f3b; }
.banner { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--border); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.content > .banner { margin: 12px 28px 0; }
.banner.warn { background: var(--warn-bg); border-color: var(--warn-border); }
.empty { padding: 50px 20px; text-align: center; color: var(--text-muted); font-size: 16px; }

.pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11.5px; background: var(--bg-active); color: var(--text-muted); vertical-align: middle; }
.pill-light { background: rgba(255, 255, 255, .3); color: inherit; }
.pill-danger { background: var(--danger-bg); color: var(--danger); }
.pill-ok { background: var(--success-bg); color: #24613f; }
.count { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.color-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pc); display: inline-block; }

/* ---------- Avatare (NA10) ---------- */
.avatar {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 11.5px; font-weight: 600; line-height: 1;
}
.avatar-lg { width: 40px; height: 40px; font-size: 18px; }

/* ---------- Task-Listen ---------- */
.group { margin-bottom: 26px; }
.group-title { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.group-title a { color: var(--text); }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); margin: 22px 0 8px; }
.task-list { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.task-list.compact { border: 0; border-radius: 0; }
.task-row {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: var(--text);
    border-bottom: 1px solid var(--border); text-decoration: none; min-height: 42px;
}
.task-row:last-child { border-bottom: 0; }
.task-row:hover { background: var(--bg-soft); text-decoration: none; }
.task-row[draggable="true"] { cursor: grab; }
.task-row.overdue .task-title { font-weight: 700; } /* NA11 */
.task-row.done .task-title { color: var(--text-muted); text-decoration: line-through; }
.status-dot {
    width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border-strong); flex: none;
    display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #fff;
}
.status-dot.is-done { background: var(--success); border-color: var(--success); }
.task-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.task-meta { display: flex; align-items: center; gap: 8px; flex: none; }
.label { font-size: 11.5px; padding: 1px 7px; border-radius: 4px; background: var(--bg-active); color: var(--text-muted); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.label-board { background: #e9eefb; color: #3456a6; }
.label-project { background: color-mix(in srgb, var(--pc) 15%, white); color: var(--text); }
.badge-new { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 8px; background: var(--new); color: #fff; font-size: 10.5px; font-weight: 700; vertical-align: middle; }
.due { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; min-width: 70px; text-align: right; }
.due.overdue, .overdue .due { color: var(--overdue); font-weight: 700; }
.comments-count { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

/* ---------- Projektansicht ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.category-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.category-card h2 { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; margin: 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.category-card h2 a { color: var(--text); }
.category-card.is-archive { background: var(--bg-soft); }
.category-card .task-row { padding: 7px 14px; }
.category-card .label-board { max-width: 120px; }
.more-link { display: block; margin-top: auto; padding: 9px 14px; font-size: 12.5px; border-top: 1px solid var(--border); }
.empty-card { justify-content: center; align-items: center; padding: 30px; color: var(--text-muted); box-shadow: none; border-style: dashed; }

/* ---------- Kategorieansicht ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.chip { padding: 5px 12px; border: 1px solid var(--border-strong); border-radius: 16px; color: var(--text); font-size: 13px; }
.chip:hover { background: var(--bg-hover); text-decoration: none; }
.chip.on { background: #e9eefb; border-color: #9fb5e7; color: #2d4f9e; }
.board-block { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; background: var(--bg); }
.board-block summary { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; list-style: none; border-radius: var(--radius); }
.board-block summary::-webkit-details-marker { display: none; }
.board-block summary:hover { background: var(--bg-soft); }
.board-block .caret { transition: transform .15s; color: var(--text-muted); width: 12px; }
.board-block[open] .caret { transform: rotate(90deg); }
.board-block .board-link { font-weight: 600; color: var(--text); }
.board-block .task-list { border: 0; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); }
.drop-zone { min-height: 44px; }
.drop-target { outline: 2px dashed var(--primary); outline-offset: -2px; background: #f2f6fd !important; }

/* ---------- Kanban ---------- */
.board-page { padding-right: 0; }
.kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 20px; align-items: flex-start; }
.kanban-col { flex: 0 0 280px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; max-height: calc(100vh - 190px); }
.kanban-col.is-done { background: #f2f8f5; }
.kanban-col-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; }
.kanban-col-head h2 { margin: 0; font-size: 14px; }
.kanban-cards { padding: 0 8px 8px; overflow-y: auto; min-height: 40px; display: flex; flex-direction: column; gap: 8px; }
.card {
    display: block; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 7px;
    color: var(--text); box-shadow: var(--shadow); text-decoration: none;
}
.card:hover { border-color: var(--border-strong); text-decoration: none; }
.card[draggable="true"] { cursor: grab; }
.card.dragging, .task-row.dragging { opacity: .45; }
.card-title { display: block; margin-bottom: 8px; word-break: break-word; }
.card.overdue .card-title { font-weight: 700; }
.card-meta { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.card-meta .due { text-align: left; min-width: 0; }
.card-meta .avatar { margin-left: auto; }
.card-done { padding: 7px 10px; color: var(--text-muted); box-shadow: none; }
.card-done.is-hidden-more { display: none; }
.kanban-col.show-all .card-done.is-hidden-more { display: block; }
.show-all-done { font-size: 12.5px; text-align: left; padding: 4px; }
.kanban-add { display: block; padding: 8px 12px; color: var(--text-muted); border-top: 1px solid var(--border); }
.kanban-add:hover { background: var(--bg-hover); text-decoration: none; color: var(--text); }

/* ---------- Task-Detail ---------- */
.task-page { max-width: 900px; }
.task-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.status-banner { padding: 8px 12px; border-radius: var(--radius); margin-bottom: 12px; }
.status-banner.done { background: var(--success-bg); color: #24613f; }
.task-heading { font-size: 24px; padding: 4px 6px; margin: 0 -6px 12px; border-radius: 6px; border: 1px solid transparent; word-break: break-word; }
.editable { cursor: text; border: 1px solid transparent; border-radius: 6px; }
.editable:hover { border-color: var(--border-strong); }
.inline-input { width: 100%; font: inherit; padding: 4px 6px; border: 1px solid var(--primary); border-radius: 6px; }
.fields { display: grid; grid-template-columns: 140px 1fr; gap: 12px 16px; margin: 0 0 24px; align-items: start; }
.fields dt { color: var(--text-muted); padding-top: 6px; }
.fields dd { margin: 0; min-height: 30px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fields dd.overdue input { color: var(--overdue); font-weight: 700; }
.fields select, .fields input[type="date"] { font: inherit; padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); }
.fields select:hover, .fields input[type="date"]:hover { border-color: var(--border-strong); }
.assignee-edit { display: inline-flex; align-items: center; gap: 8px; }
.description { width: 100%; min-height: 60px; padding: 6px 8px; white-space: normal; word-break: break-word; }
.description:empty::before { content: attr(data-placeholder); color: var(--text-light); }
.description-input { width: 100%; min-height: 120px; font: inherit; padding: 6px 8px; border: 1px solid var(--primary); border-radius: 6px; resize: vertical; }
.links { list-style: none; margin: 0; padding: 0; width: 100%; }
.links li { padding: 2px 0; word-break: break-all; }
.links-editor { width: 100%; }
.comments { border-top: 1px solid var(--border); padding-top: 18px; }
.comment { padding: 10px 0; border-bottom: 1px solid var(--border); }
.comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comment-tools { margin-left: auto; display: flex; gap: 10px; }
.comment-body { margin: 6px 0 0 32px; word-break: break-word; }
.comment-edit { margin: 8px 0 0 32px; display: grid; gap: 6px; }
.comment-edit textarea, .comment-new textarea { width: 100%; font: inherit; padding: 8px; border: 1px solid var(--border-strong); border-radius: 6px; resize: vertical; }
.comment-new { margin-top: 14px; display: grid; gap: 8px; justify-items: start; }
.assign-offer { margin: 10px 0 0 32px; display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; background: #f2f6fd; border-radius: var(--radius); }
.assign-offer .avatar { width: 18px; height: 18px; font-size: 10px; }
.history { margin-top: 24px; }
.history-list { list-style: none; padding: 0; margin: 12px 0 0; border-left: 2px solid var(--border); }
.history-list li { padding: 6px 0 6px 14px; }
.history-diff { margin-top: 3px; font-size: 12.5px; display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.history-diff .old { color: var(--text-muted); text-decoration: line-through; }
.history-diff .new { color: var(--text); }
.history-diff .arrow { color: var(--text-light); }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-weight: 500; }
.form input[type="text"], .form input[type="email"], .form input[type="password"], .form input[type="url"],
.form input[type="number"], .form input[type="date"], .form select, .form textarea, .inline-form input, .manage-list input[type="text"], .link-row input {
    font: inherit; font-weight: 400; padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--bg); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus, .inline-form input:focus { outline: 2px solid #c8d6f4; border-color: var(--primary); }
.form input[type="color"] { width: 64px; height: 36px; padding: 2px; border: 1px solid var(--border-strong); border-radius: 6px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.form-actions { display: flex; gap: 8px; }
.inline-form { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.inline-form input { flex: 1; }
.card-form { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; background: var(--bg); }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; margin: 0; }
legend { padding: 0 4px; font-weight: 500; }
.link-rows { display: grid; gap: 6px; margin-bottom: 6px; }
.link-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 6px; align-items: center; }
.icon-preview { margin-bottom: 10px; }

.manage-list { list-style: none; margin: 0 0 8px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); }
.manage-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--border); background: var(--bg); flex-wrap: wrap; }
.manage-list li:last-child { border-bottom: 0; }
.manage-list li form.inline { display: flex; gap: 6px; align-items: center; }
.manage-list li form.grow { flex: 1 1 220px; }
.manage-list .drag-handle { cursor: grab; color: var(--text-light); letter-spacing: -2px; }
.manage-list .drag-handle.off { cursor: default; letter-spacing: 0; }
.manage-list li.is-system { background: var(--bg-soft); color: var(--text-muted); }
.sort-placeholder { opacity: .4; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.table tr.inactive td { color: var(--text-light); }
.inline-details { display: inline-block; margin-right: 10px; }
.inline-details[open] form { margin-top: 6px; min-width: 220px; }
pre.code { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 10px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.plain-list { padding-left: 18px; }
.plain-list li { margin-bottom: 6px; }
.search-big { display: flex; gap: 8px; margin-bottom: 14px; }
.search-big input { flex: 1; font: inherit; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 6px; }

/* ---------- Modal & Toast ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(30, 31, 33, .45); }
.modal-box { position: relative; background: var(--bg); border-radius: 10px; box-shadow: var(--shadow-lg); width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; padding: 20px; }
.modal-box h2 { margin-bottom: 14px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; background: #1e1f21; color: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow-lg); max-width: 90vw; }
.toast.error { background: var(--danger); }

/* ---------- Login / Wizard ---------- */
body.plain { background: var(--bg-sidebar); min-height: 100vh; padding: 40px 16px; }
.plain-box { max-width: 400px; margin: 40px auto; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 28px; box-shadow: var(--shadow); }
.plain-box.wide { max-width: 760px; }
.plain-box h1 { margin-bottom: 8px; }
.plain-box .flash { margin: 12px 0; }
.plain-flash { max-width: 400px; margin: 0 auto !important; }
.wizard-steps { list-style: none; padding: 0; margin: 16px 0 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.wizard-steps li { font-size: 12.5px; color: var(--text-muted); padding: 4px 10px; border-radius: 14px; background: var(--bg-soft); }
.wizard-steps li span { font-weight: 700; }
.wizard-steps li.current { background: var(--primary); color: #fff; }
.wizard-steps li.done { background: var(--success-bg); color: #24613f; }

/* ---------- Responsiv (NA08) ---------- */
@media (max-width: 860px) {
    .menu-toggle { display: inline-block; }
    .brand { width: auto; }
    .sidebar { transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
    body.sidebar-open .sidebar { transform: none; }
    body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: var(--topbar-h) 0 0 0; background: rgba(0, 0, 0, .3); z-index: 15; }
    .content { margin-left: 0; }
    .page-header, .page-body { padding-left: 16px; padding-right: 16px; }
    .flash, .content > .banner { margin-left: 16px; margin-right: 16px; }
    .fields { grid-template-columns: 1fr; gap: 4px; }
    .fields dt { padding-top: 10px; font-size: 12.5px; }
    .task-row { flex-wrap: wrap; }
    .task-meta { width: 100%; padding-left: 28px; justify-content: flex-start; flex-wrap: wrap; }
    .due { text-align: left; min-width: 0; }
    .kanban-col { flex-basis: 85vw; max-height: none; }
    .link-row { grid-template-columns: 1fr auto; }
    .link-row input[name="link_url[]"] { grid-column: 1; }
    .category-grid { grid-template-columns: 1fr; }
    .table { display: block; overflow-x: auto; }
}
