/* =====================================================================
   Tablica — system wizualny (redesign 2026)
   ===================================================================== */

:root {
    --bg-app:    #1a1e2b;
    --bg-app-grad: linear-gradient(180deg, #1d2230 0%, #181c28 100%);
    --canvas:    #f4f5f8;
    --surface:   #ffffff;
    --surface-2: #f7f8fa;

    --ink:       #1d2027;
    --muted:     #6b7280;
    --faint:     #9aa1ad;

    --line:      #e6e8ee;
    --line-soft: #eef0f4;
    --line-strong: #d3d7df;

    --accent:    #c9821f;
    --accent-d:  #ad6e12;
    --accent-sf: #fbf3e3;
    --accent-ring: rgba(201,130,31,.22);

    --st-todo:    #8a90a2;
    --st-current: #3b82c4;
    --st-review:  #8a6fd4;
    --st-done:    #3f9d6b;

    --pr-high:   #db5247;
    --pr-medium: #e0992f;
    --pr-low:    #98a0ac;

    --success:   #3f9d6b;
    --danger:    #db5247;

    --r:    14px;
    --r-s:  10px;
    --r-xs: 8px;

    --sh-sm: 0 1px 2px rgba(20,24,40,.05);
    --sh:    0 1px 3px rgba(20,24,40,.06), 0 1px 2px rgba(20,24,40,.04);
    --sh-md: 0 4px 14px rgba(20,24,40,.08), 0 2px 4px rgba(20,24,40,.04);
    --sh-lg: 0 24px 60px rgba(16,20,38,.28);

    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --disp: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0; font-family: var(--sans); color: var(--ink); background: var(--canvas);
    font-size: 15px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-sf); }

.picklist::-webkit-scrollbar, .sub-scroll::-webkit-scrollbar, .modal-box::-webkit-scrollbar, .dropdown-menu::-webkit-scrollbar { width: 9px; }
.picklist::-webkit-scrollbar-thumb, .sub-scroll::-webkit-scrollbar-thumb, .modal-box::-webkit-scrollbar-thumb, .dropdown-menu::-webkit-scrollbar-thumb { background: #d7dae1; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }

/* ---------- Szkielet ---------- */

.shell { display: flex; min-height: 100vh; }
.sidebar { width: 232px; flex: 0 0 232px; background: var(--bg-app-grad); color: #c8cdd9; display: flex; flex-direction: column; padding: 22px 16px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 26px; font-family: var(--disp); font-size: 22px; font-weight: 600; color: #fff; letter-spacing: .2px; }
.brand-mark { color: var(--accent); font-size: 18px; display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; background: rgba(201,130,31,.14); border-radius: 9px; }
.nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: var(--r-s); color: #a4abba; font-size: 14.5px; font-weight: 500; transition: background .16s, color .16s; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item.is-active { background: rgba(255,255,255,.09); color: #fff; }
.nav-item.is-active .nav-ico { color: var(--accent); }
.nav-ico { width: 18px; text-align: center; font-size: 15px; opacity: .92; display: inline-flex; }
.nav-logout { color: #828a99; margin-top: auto; }
.nav-logout:hover { background: rgba(219,82,71,.12); color: #ec8b82; }
.main { flex: 1; min-width: 0; padding: 30px 36px 64px; display: flex; flex-direction: column; }

/* ---------- Topbar / filtry ---------- */

.topbar { margin-bottom: 24px; }
.topbar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-title { font-family: var(--disp); font-size: 29px; font-weight: 600; margin: 0; letter-spacing: -.3px; }
.page-sub { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search { position: relative; flex: 1; min-width: 220px; max-width: 360px; }
.search-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search input { width: 100%; padding: 10px 12px 10px 38px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); font: inherit; font-size: 14px; color: var(--ink); box-shadow: var(--sh-sm); transition: border-color .15s, box-shadow .15s; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }

/* ---------- Dropdown (własny komponent) ---------- */

.dropdown { position: relative; }
.dropdown-trigger { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 200px; padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); box-shadow: var(--sh-sm); font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.dropdown-trigger:hover { border-color: var(--line-strong); }
.dropdown.open .dropdown-trigger { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.dropdown-value { display: inline-flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropdown-value .opt-main { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.dropdown-chev { color: var(--faint); transition: transform .18s; flex: none; }
.dropdown.open .dropdown-chev { transform: rotate(180deg); }
.dropdown-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-lg); padding: 6px; display: flex; flex-direction: column; gap: 2px; max-height: 300px; overflow-y: auto; animation: pop .14s ease-out; }
.dropdown-menu[hidden] { display: none; }
.dropdown-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: none; background: transparent; border-radius: 8px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; text-align: left; white-space: nowrap; }
.dropdown-opt:hover { background: var(--surface-2); }
.dropdown-opt.is-active { background: var(--accent-sf); color: var(--accent-d); font-weight: 600; }
.opt-main { display: inline-flex; align-items: center; gap: 9px; }
.opt-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.opt-dot--none { background: #fff; border: 1.5px dashed var(--line-strong); }
.opt-check { color: var(--accent); font-weight: 700; opacity: 0; }
.dropdown-opt.is-active .opt-check { opacity: 1; }

/* ---------- Tablica Kanban ---------- */

.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; flex: 1; }
.column { background: #eaecf1; border-radius: var(--r); padding: 11px; min-height: 140px; display: flex; flex-direction: column; }
.column-head { display: flex; align-items: center; gap: 9px; padding: 6px 8px 13px; font-size: 12.5px; font-weight: 700; color: #5a606c; text-transform: uppercase; letter-spacing: .05em; }
.column-name { flex: 1; }
.column-count { background: #dadce3; color: #5b616d; border-radius: 20px; padding: 1px 9px; font-size: 12px; font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot--todo { background: var(--st-todo); } .dot--current { background: var(--st-current); }
.dot--review { background: var(--st-review); } .dot--done { background: var(--st-done); }
.column-body { display: flex; flex-direction: column; gap: 10px; min-height: 70px; flex: 1; border-radius: var(--r-s); padding: 2px; transition: background .12s, outline-color .12s; outline: 2px dashed transparent; outline-offset: -3px; }
.column-body.is-over { background: rgba(201,130,31,.09); outline-color: rgba(201,130,31,.45); }
.column-empty { margin: auto 0; padding: 22px 8px; text-align: center; color: var(--faint); font-size: 13px; }
.column-body .card ~ .column-empty { display: none; }

/* ---------- Karty ---------- */

.card { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--pr-low); border-radius: 12px; padding: 14px 15px; box-shadow: var(--sh); cursor: grab; transition: box-shadow .16s, transform .08s, border-color .16s; }
.card--high { border-left-color: var(--pr-high); } .card--medium { border-left-color: var(--pr-medium); } .card--low { border-left-color: var(--pr-low); }
.card:hover { box-shadow: var(--sh-md); transform: translateY(-1px); }
.card:active { cursor: grabbing; }
.card.dragging { opacity: .4; }
.card.is-hidden { display: none; }
.card-head { display: flex; align-items: flex-start; gap: 10px; }
.card-title { margin: 0; font-size: 14.5px; font-weight: 550; line-height: 1.4; flex: 1; }
.prio-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 7px; border-radius: 6px; white-space: nowrap; margin-top: 1px; }
.prio-tag--high { color: #a8362c; background: #fdecea; } .prio-tag--medium { color: #9a6712; background: #fbf1df; } .prio-tag--low { color: #6a7280; background: #f0f1f4; }
.card-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 11px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px 3px 8px; border-radius: 20px; color: color-mix(in srgb, var(--chip) 70%, #181818); background: color-mix(in srgb, var(--chip) 14%, #fff); }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--chip); }
.chip--none { color: var(--faint); background: #f1f2f5; }
.card-foot { display: flex; align-items: center; gap: 11px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line-soft); font-size: 12px; }
.subpill { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-weight: 600; }
.subpill.is-complete { color: var(--success); }
.card-ico { color: var(--faint); display: inline-flex; }
.due { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--muted); background: #f1f2f5; padding: 3px 8px; border-radius: 7px; }
.due--over { color: #fff; background: var(--danger); }
.due--today { color: #fff; background: var(--st-current); }

/* ---------- Projekty ---------- */

.projects { display: flex; flex-direction: column; gap: 11px; }
.project-row { display: flex; align-items: center; gap: 17px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 19px; box-shadow: var(--sh); transition: box-shadow .16s, transform .08s; }
.project-row:hover { box-shadow: var(--sh-md); transform: translateY(-1px); }
.project-row.is-archived { opacity: .6; }
.project-swatch { width: 11px; height: 40px; border-radius: 6px; flex: none; }
.project-info { flex: 1; min-width: 0; }
.project-name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.project-desc { font-size: 13px; color: var(--muted); margin-top: 3px; }
.tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #f0f1f4; padding: 2px 8px; border-radius: 6px; }
.project-stats { width: 170px; flex: none; text-align: right; }
.project-bar { height: 7px; background: #ebedf1; border-radius: 5px; overflow: hidden; }
.project-bar span { display: block; height: 100%; border-radius: 5px; transition: width .3s; }
.project-count { font-size: 12px; color: var(--muted); display: block; margin-top: 6px; }

/* ---------- Stany puste ---------- */

.empty-state { text-align: center; padding: 64px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r); }
.empty-title { font-size: 16px; font-weight: 600; color: var(--ink); margin: 0 0 5px; }
.empty-sub { margin: 0; font-size: 14px; }

/* ---------- Ustawienia ---------- */

.settings { max-width: 520px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--sh); }
.panel-title { font-size: 18px; font-weight: 600; margin: 0 0 5px; }
.panel-sub { font-size: 13.5px; color: var(--muted); margin: 0 0 22px; }
.settings-form { display: flex; flex-direction: column; gap: 17px; }
.settings-form .btn { align-self: flex-start; }

/* ---------- Pola / inputy ---------- */

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-label { font-size: 12.5px; font-weight: 600; color: #4b5160; letter-spacing: .01em; }
.input, .field input, .field textarea { width: 100%; padding: 10px 12px; font: inherit; font-size: 14.5px; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); box-shadow: var(--sh-sm); transition: border-color .15s, box-shadow .15s; }
.input:hover, .field input:hover, .field textarea:hover { border-color: var(--line-strong); }
.input:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.input--lg { font-size: 16px; padding: 12px 14px; font-weight: 500; }
.input--sm { padding: 8px 11px; font-size: 13.5px; }
.field textarea, textarea.input { resize: vertical; line-height: 1.5; }
.field-row { display: flex; gap: 16px; }
.field-row .field { flex: 1; }
.field--due { max-width: 190px; }

.color-pick { display: inline-flex; align-items: center; gap: 11px; }
.color-input { appearance: none; -webkit-appearance: none; width: 46px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-xs); cursor: pointer; background: none; }
.color-input::-webkit-color-swatch-wrapper { padding: 3px; }
.color-input::-webkit-color-swatch { border: none; border-radius: 5px; }
.color-val { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; text-transform: uppercase; }

.checkbox { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #4b5160; cursor: pointer; }
.checkbox input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 19px; height: 19px; flex: none; border: 2px solid var(--line-strong); border-radius: 6px; background: #fff; cursor: pointer; transition: .15s; }
.checkbox input[type="checkbox"]:checked { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; border-color: var(--accent); }
.checkbox input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-ring); }

.toggle { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; font-size: 14px; color: #4b5160; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #d4d8e0; transition: background .18s; flex: none; }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s; }
.toggle input:checked + .toggle-track { background: var(--accent); }
.toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(18px); }
.toggle input:focus-visible + .toggle-track { box-shadow: 0 0 0 4px var(--accent-ring); }

/* Segmentowy przełącznik */
.seg { display: flex; gap: 4px; background: #f0f1f4; padding: 4px; border-radius: var(--r-s); }
.seg-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 8px; border: none; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; border-radius: 7px; cursor: pointer; transition: background .14s, color .14s, box-shadow .14s; white-space: nowrap; }
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-active { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }
.seg-dot, .seg-pip { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.seg-pip--high { background: var(--pr-high); } .seg-pip--medium { background: var(--pr-medium); } .seg-pip--low { background: var(--pr-low); }
.seg-btn--high.is-active { color: #a8362c; } .seg-btn--medium.is-active { color: #9a6712; } .seg-btn--low.is-active { color: #5e6470; }

/* Lista wyboru projektu */
.picklist { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.pick { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 11px; border: 1px solid transparent; border-radius: 9px; background: transparent; cursor: pointer; text-align: left; font: inherit; font-size: 14px; color: var(--ink); transition: background .13s, border-color .13s; }
.pick:hover { background: var(--surface); }
.pick.is-active { background: var(--accent-sf); border-color: color-mix(in srgb, var(--accent) 35%, #fff); }
.pick-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.pick-dot--none { background: #fff; border: 1.5px dashed var(--line-strong); box-shadow: none; }
.pick-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-check { color: var(--accent); font-weight: 700; opacity: 0; transition: opacity .13s; }
.pick.is-active .pick-check { opacity: 1; }

/* Podzadania */
.subs-count { font-size: 12px; font-weight: 700; color: var(--muted); background: #eceef2; padding: 2px 9px; border-radius: 20px; font-variant-numeric: tabular-nums; }
.sub-list { display: flex; flex-direction: column; gap: 4px; }
.sub { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 9px; background: var(--surface); transition: background .12s; }
.sub:hover { background: #eef0f4; }
.sub-check { width: 20px; height: 20px; flex: none; border: 2px solid var(--line-strong); border-radius: 50%; background: #fff; cursor: pointer; padding: 0; transition: .15s; }
.sub-check:hover { border-color: var(--success); }
.sub.is-done .sub-check { background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' stroke='white' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; border-color: var(--success); }
.sub-title { flex: 1; font-size: 13.5px; line-height: 1.4; word-break: break-word; }
.sub.is-done .sub-title { text-decoration: line-through; color: var(--faint); }
.sub-del { opacity: 0; border: none; background: none; color: var(--faint); cursor: pointer; font-size: 13px; padding: 4px 6px; border-radius: 6px; transition: opacity .12s, background .12s, color .12s; flex: none; }
.sub:hover .sub-del { opacity: 1; }
.sub-del:hover { background: #fdeceb; color: var(--danger); }
.sub-empty { color: var(--faint); font-size: 13px; margin: 4px 2px 0; }
.sub-add { display: flex; gap: 8px; margin-top: 14px; }
.sub-add .input { flex: 1; }

/* ---------- Przyciski ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 10px 17px; border-radius: var(--r-s); border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.btn svg { display: block; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(173,110,18,.4); }
.btn--primary:hover { background: var(--accent-d); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: #4b5160; box-shadow: var(--sh-sm); }
.btn--ghost:hover { border-color: var(--line-strong); background: #fafbfc; }
.btn--soft { background: var(--accent-sf); color: var(--accent-d); }
.btn--soft:hover { background: #f7ebd6; }
.btn--danger-ghost { background: transparent; color: var(--danger); }
.btn--danger-ghost:hover { background: #fdeceb; }
.btn--block { width: 100%; }
.btn--sm { padding: 8px 13px; font-size: 13px; }

/* ---------- Modal ---------- */

.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(16,20,38,.5); backdrop-filter: blur(3px); animation: fade .16s ease-out; }
.modal-box { position: relative; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; background: var(--surface); border-radius: 16px; box-shadow: var(--sh-lg); animation: pop .18s cubic-bezier(.2,.9,.3,1); }
@keyframes pop { from { transform: translateY(10px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 19px 24px; border-bottom: 1px solid var(--line-soft); }
.modal-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.modal-x { display: inline-flex; background: none; border: none; color: var(--faint); cursor: pointer; padding: 6px; border-radius: 8px; transition: background .13s, color .13s; }
.modal-x:hover { background: #f0f1f4; color: var(--ink); }
.modal-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.field-row--mid { align-items: flex-end; }
.field-row--mid #archiveWrap { padding-bottom: 6px; }
.modal-foot { display: flex; align-items: center; gap: 11px; padding: 16px 24px; border-top: 1px solid var(--line-soft); }
.modal-foot .spacer { flex: 1; }

/* Modal zadania — trzy kolumny na pełną wysokość (1:2:1) */
.modal-box--task { max-width: 1080px; height: min(88vh, 820px); display: flex; flex-direction: column; overflow: hidden; }
.task-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 2fr 1fr; }
.task-col { display: flex; flex-direction: column; min-height: 0; padding: 22px; }
.task-col + .task-col { border-left: 1px solid var(--line-soft); }
.task-col--proj, .task-col--subs { background: var(--surface-2); }
.task-col--main { background: var(--surface); overflow-y: auto; gap: 17px; }
.task-col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex: none; }
.picklist--full { flex: 1; min-height: 0; max-height: none; }
.sub-scroll { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.sub-scroll .sub-list { max-height: none; }

/* ---------- Flash ---------- */

.flash { padding: 12px 16px; border-radius: var(--r-s); font-size: 14px; font-weight: 500; margin-bottom: 18px; box-shadow: var(--sh-sm); }
.flash--ok { background: #e7f4ec; color: #246b44; }
.flash--error { background: #fdeceb; color: #9e342c; }

/* ---------- Logowanie ---------- */

.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg-app-grad); padding: 20px; }
.auth-wrap { width: 100%; max-width: 392px; }
.auth-card { background: var(--surface); border-radius: 18px; padding: 38px 34px; box-shadow: var(--sh-lg); }
.auth-brand { display: flex; align-items: center; gap: 9px; font-family: var(--disp); font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 24px; }
.auth-title { font-family: var(--disp); font-size: 25px; font-weight: 600; margin: 0 0 5px; }
.auth-sub { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.auth-form { display: flex; flex-direction: column; gap: 17px; }
.auth-form .checkbox { margin: -3px 0 3px; }

/* ---------- Responsywność ---------- */

@media (max-width: 980px) {
    .shell { flex-direction: column; }
    .sidebar { width: 100%; flex: none; height: auto; position: static; flex-direction: row; align-items: center; padding: 12px 16px; gap: 6px; }
    .brand { padding: 0 14px 0 4px; font-size: 18px; }
    .nav { flex-direction: row; flex: 1; }
    .nav-logout { margin-top: 0; }
    .nav-item span:not(.nav-ico) { display: none; }
    .nav-ico { font-size: 18px; }
    .main { padding: 22px 18px 50px; }
    .board { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .modal-box--task { height: auto; max-height: 92vh; overflow: auto; }
    .task-cols { grid-template-columns: 1fr; }
    .task-col { overflow: visible; }
    .task-col + .task-col { border-left: none; border-top: 1px solid var(--line-soft); }
    .picklist--full, .sub-scroll { max-height: 240px; }
}
@media (max-width: 560px) {
    .board { grid-template-columns: 1fr; }
    .field-row { flex-direction: column; gap: 16px; }
    .project-stats { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
