/* ===== Podstawy ===== */
:root {
  --bg: #f3f1ea;
  --sheet: #ffffff;
  --ink: #1d2320;
  --ink-2: #4b544f;
  --muted: #7d857f;
  --line: #e4e1d7;
  --line-2: #efede6;
  --accent: #1f6f54;
  --accent-ink: #ffffff;
  --accent-soft: #e3f0ea;
  --warn: #b4372b;
  --warn-soft: #fbe9e6;
  --gold: #d6a228;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(29, 35, 32, .06), 0 4px 18px rgba(29, 35, 32, .05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); padding-bottom: 64px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0 0 .8em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.hide-sm { }
kbd { font: 11px var(--font); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; color: var(--muted); background: #fff; }

/* ===== Górny pasek ===== */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: rgba(243, 241, 234, .92); backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); font-size: 16px; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 15px; }
.topsearch { flex: 1; display: flex; justify-content: center; position: relative; }
.topsearch input { width: 100%; max-width: 380px; padding: 7px 34px 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 14px; }
.topsearch kbd { position: absolute; right: calc(50% - 182px); top: 8px; }
.topright { display: flex; align-items: center; gap: 12px; }
.hey { font-weight: 700; color: var(--ink); padding: 6px 12px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.hey.has-unread { background: #fff4dc; border-color: #f0d9a0; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--warn); color: #fff; font-size: 12px; text-align: center; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu .menu { position: absolute; right: 0; top: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 220px; padding: 6px; z-index: 30; }
.usermenu .menu a, .usermenu .menu .linklike { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; color: var(--ink); }
.usermenu .menu a:hover, .usermenu .menu .linklike:hover { background: var(--line-2); text-decoration: none; }
.menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.menu-head span { display: block; font-size: 12px; color: var(--muted); }

/* ===== Dolny pasek ===== */
.bottombar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; padding: 8px; background: rgba(255, 255, 255, .95); border-top: 1px solid var(--line); z-index: 20; }
.bottombar a { padding: 6px 14px; border-radius: 18px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.bottombar a:hover { background: var(--line-2); text-decoration: none; }
.bottombar a.on { background: var(--ink); color: #fff; }

/* ===== Strona i arkusz ===== */
.page { padding: 8px 20px 40px; }
.sheet { max-width: 900px; margin: 0 auto; background: var(--sheet); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 44px 40px; }
.sheet-wide { max-width: 1100px; }
.sheet-narrow { max-width: 640px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -8px -20px 20px; padding: 0 20px 12px; border-bottom: 1px solid var(--line-2); font-size: 14px; flex-wrap: wrap; }
.crumbs nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.crumb-project { font-weight: 700; color: var(--ink); }
.crumbs .sep { color: var(--muted); }
.crumb-actions { display: flex; gap: 6px; align-items: center; }
.archived-note { background: #fff4dc; border: 1px solid #f0d9a0; padding: 8px 12px; border-radius: 8px; margin: 0 0 16px; font-size: 14px; }

/* ===== Przyciski i formularze ===== */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--line-2); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #185a44; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
form.inline { display: inline; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row .grow, .grow { flex: 1; min-width: 160px; }
.center-v { align-items: center; }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 14px; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input[type=time], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 400; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
input[type=color] { width: 60px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
textarea { resize: vertical; }
.title-input { font-size: 24px !important; font-weight: 800; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; padding: 6px 0 !important; outline: none !important; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.form-actions { display: flex; gap: 8px; align-items: center; }
.flash { max-width: 900px; margin: 0 auto 14px; padding: 10px 14px; border-radius: 8px; background: var(--accent-soft); border: 1px solid #c4e0d3; font-size: 14px; }
.flash-error { background: var(--warn-soft); border-color: #f1c2bb; color: #7a231a; }
.sheet .flash { margin: 0 0 14px; }

/* ===== Awatary, pigułki, tagi ===== */
.avatar { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; flex: none; letter-spacing: -.02em; border: 2px solid #fff; }
.avatar-xs { width: 22px; height: 22px; font-size: 9px; border-width: 1px; }
.avatar-sm { width: 30px; height: 30px; font-size: 11px; }
.avatar-md { width: 38px; height: 38px; font-size: 13px; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.avatars { display: inline-flex; align-items: center; flex-wrap: wrap; }
.avatars .avatar { margin-right: -5px; }
.avatars .more, .avatars .small { margin-left: 10px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 2px; border-radius: 12px; background: var(--line-2); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.pill.muted { padding-left: 8px; }
.pill.due { padding-left: 8px; }
.pill.overdue { background: var(--warn-soft); color: var(--warn); font-weight: 700; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.chip { display: inline-block; padding: 5px 12px; border-radius: 16px; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); background: #fff; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip:hover { text-decoration: none; }
.count { display: inline-block; padding: 0 7px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 12px; }
.bubble { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; flex: none; }

/* ===== Start ===== */
.home { display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; gap: 28px; max-width: 1360px; margin: 0 auto; }
.home-left { padding-top: 18px; text-align: right; }
.greeting { font-size: 20px; }
.home-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.overdue-box { display: block; margin-top: 14px; padding: 10px; border-radius: 8px; background: var(--warn-soft); color: var(--warn); font-weight: 700; font-size: 14px; text-align: center; }
.home-projects { align-self: start; background: #ebe8de; border-radius: 14px; padding: 18px; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.project-card { position: relative; display: flex; flex-direction: column; min-height: 130px; padding: 16px; border-radius: var(--radius); background: #fff; color: var(--ink); box-shadow: var(--shadow); transition: transform .08s ease; }
.project-card:hover { text-decoration: none; transform: translateY(-2px); }
.project-card h3 { font-size: 16px; font-weight: 800; padding-right: 16px; margin-bottom: 4px; }
.project-card p { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.project-card .avatars { margin-top: auto; }
.project-card .star { position: absolute; top: 10px; right: 12px; color: var(--gold); }
.project-new { align-items: center; justify-content: center; background: transparent; border: 2px dashed #cfcbbd; box-shadow: none; color: var(--muted); font-weight: 700; }
.project-new span { font-size: 30px; line-height: 1; }
.home-right h3 { display: flex; justify-content: space-between; align-items: baseline; padding-top: 18px; }

/* ===== Aktywność ===== */
.activity { list-style: none; padding: 0; margin: 0 0 12px; }
.activity-day { margin: 14px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.activity-item { display: flex; gap: 10px; padding: 6px 0; font-size: 14px; }
.activity-line strong { margin-right: 4px; }
.activity-line a { color: var(--ink); }
.activity-excerpt { color: var(--ink-2); font-size: 13px; margin-top: 2px; padding-left: 8px; border-left: 2px solid var(--line); }
.activity-meta { font-size: 12px; color: var(--muted); }
.activity-meta a { color: var(--muted); }
.divider-title { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); margin: 34px 0 10px; }
.divider-title::before, .divider-title::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ===== Projekt ===== */
.project-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.project-top .avatars:hover { text-decoration: none; }
.project-head { text-align: center; margin: 10px 0 26px; }
.project-head h1 { font-size: 34px; }
.project-desc { color: var(--ink-2); max-width: 620px; margin: 0 auto; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.tool-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 300px; }
.tool-card h2 { text-align: center; font-size: 16px; padding: 12px 10px 8px; margin: 0; }
.tool-card h2 a { color: var(--ink); }
.tool-body { flex: 1; display: block; padding: 4px 14px 10px; color: var(--ink); max-height: 300px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.tool-body:hover { text-decoration: none; background: #fcfbf8; }
.tool-add { display: block; padding: 8px; text-align: center; font-size: 13px; font-weight: 700; border-top: 1px solid var(--line-2); }
.empty { color: var(--muted); font-size: 13px; text-align: center; padding: 30px 6px; }
.mini-message, .mini-file, .mini-event { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.mini-message > div > strong, .mini-file > div > strong, .mini-event > div > strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-message > div > span, .mini-file > div > span, .mini-event > div > span { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-message > div, .mini-file > div, .mini-event > div { min-width: 0; }
.mini-list { margin-bottom: 10px; }
.mini-list-head { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.mini-list-head strong { flex: 1; }
.mini-todo { font-size: 13px; color: var(--ink-2); padding: 2px 0 2px 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 9px; font-weight: 800; flex: none; overflow: hidden; }
.date-box { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 38px; height: 40px; border-radius: 6px; border: 1px solid var(--line); font-size: 10px; text-transform: uppercase; color: var(--warn); flex: none; line-height: 1.1; background: #fff; }
.date-box b { font-size: 16px; color: var(--ink); }
.date-box.big { width: 60px; height: 64px; font-size: 13px; }
.date-box.big b { font-size: 26px; }
.ring { --p: 0; width: 16px; height: 16px; border-radius: 50%; flex: none; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); }

/* ===== Wiadomości ===== */
.toolbar { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; flex-wrap: wrap; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.message-list { list-style: none; padding: 0; margin: 0; }
.message-list li a { display: flex; gap: 12px; align-items: flex-start; padding: 14px 8px; border-bottom: 1px solid var(--line-2); color: var(--ink); border-radius: 6px; }
.message-list li a:hover { background: #faf9f5; text-decoration: none; }
.ml-body { flex: 1; min-width: 0; }
.ml-title { font-weight: 800; font-size: 16px; }
.ml-meta { font-size: 13px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.empty-state { text-align: center; color: var(--muted); padding: 34px 10px; list-style: none; }
.message-head { text-align: center; margin: 10px 0 24px; }
.message-head h1 { margin: 8px 0 10px; }
.byline { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; }
.prose { font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.prose p:last-child { margin-bottom: 0; }
.editor textarea[name=body] { font-size: 16px; line-height: 1.6; min-height: 220px; }

/* ===== Komentarze ===== */
.comments { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 20px; }
.comment { display: flex; gap: 12px; padding: 12px 0; }
.comment-body { flex: 1; min-width: 0; }
.comment-body header { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.comment .prose { font-size: 15px; }
.comment-new textarea { min-height: 52px; }
.comment-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.subscribers { margin-top: 20px; padding: 14px; border-radius: var(--radius); background: #faf9f5; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.subscribers p { margin: 0; }

/* ===== Zadania ===== */
.todolist { margin: 0 0 30px; }
.todolist header { display: flex; align-items: center; gap: 10px; }
.todolist header h2 { margin: 0; font-size: 20px; }
.todolist header h2 a { color: var(--ink); }
.list-desc { color: var(--ink-2); font-size: 14px; margin: 4px 0 0 26px; }
.todos { list-style: none; padding: 0; margin: 8px 0; }
.todo { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.todo-check { margin: 0; padding-top: 2px; }
.todo-check input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.todo-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.todo-title { color: var(--ink); }
.todo-meta { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.todo.done .todo-title { color: var(--muted); text-decoration: line-through; }
.todo-group { margin: 18px 0 6px; font-size: 13px; font-weight: 800; color: var(--ink-2); border-bottom: 1px solid var(--line-2); padding-bottom: 4px; }
.todos-done { opacity: .85; }
.add-todo { margin: 4px 0 0 28px; }
.add-todo summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; list-style: none; }
.add-todo summary::-webkit-details-marker { display: none; }
.add-todo-form { margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fcfbf8; }
.new-list summary { list-style: none; }
.new-list summary::-webkit-details-marker { display: none; }
.new-list[open] form { margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); min-width: 320px; }
.todo-detail h1 { margin-top: 6px; }
.todo-detail.done h1 { text-decoration: line-through; color: var(--muted); }
.todo-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.fields { display: grid; grid-template-columns: 130px 1fr; gap: 14px 16px; margin: 0; }
.fields dt { font-weight: 700; text-align: right; color: var(--ink-2); font-size: 14px; padding-top: 2px; }
.fields dd { margin: 0; }
.people-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.person-chip { flex-direction: row; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border: 1px solid var(--line); border-radius: 18px; background: #fff; font-weight: 500; cursor: pointer; font-size: 13px; }
.person-chip input { margin: 0 0 0 4px; accent-color: var(--accent); }
.person-chip:has(input:checked) { background: var(--accent-soft); border-color: #b9dccb; }

/* ===== Pliki ===== */
.dropzone { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 18px; border: 2px dashed var(--line); border-radius: var(--radius); margin-bottom: 22px; background: #fcfbf8; }
.dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dz-label { grid-column: 1 / -1; display: block; text-align: center; font-weight: 400; cursor: pointer; padding: 10px; }
.dz-chosen { grid-column: 1 / -1; text-align: center; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.file-card { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-size: 14px; min-width: 0; }
.file-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-card:hover { text-decoration: none; box-shadow: var(--shadow); }
.file-thumb { display: block; height: 110px; border-radius: 6px; background: var(--line-2) center/cover no-repeat; margin-bottom: 4px; }
.file-ico-big { display: grid; place-items: center; font-weight: 800; color: var(--accent); background: var(--accent-soft); font-size: 18px; }
.file-detail { text-align: center; }
.file-detail .byline { margin-bottom: 18px; }
.preview { max-height: 70vh; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 16px; }

/* ===== Kalendarz ===== */
.cal-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cal-nav h2 { margin: 0; min-width: 180px; text-align: center; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-wd { padding: 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #faf9f5; }
.cal-day { min-height: 96px; padding: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-day.empty { background: #fbfaf7; }
.cal-day.today { background: #fff9e8; }
.cal-num { font-size: 12px; font-weight: 700; color: var(--ink-2); align-self: flex-end; padding: 0 4px; border-radius: 4px; }
.cal-day.today .cal-num { background: var(--warn); color: #fff; }
.cal-ev, .cal-todo { display: block; font-size: 12px; padding: 1px 5px; border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.cal-todo { color: var(--ink-2); }
.cal-todo.done { text-decoration: line-through; color: var(--muted); }
.upcoming { list-style: none; padding: 0; margin: 0; }
.upcoming a { display: flex; gap: 12px; align-items: center; padding: 8px 0; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.event-when { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.event-when h1 { margin: 0 0 4px; }
.event-when .byline { justify-content: flex-start; margin-top: 4px; color: var(--muted); }
.sched-day { margin-bottom: 18px; }
.sched-day h3 { font-size: 14px; text-transform: capitalize; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.sched-day ul { list-style: none; padding: 0; margin: 0; }
.sched-day li { padding: 4px 0; }
.overdue-text { color: var(--warn); font-weight: 700; }

/* ===== Moje / Hej / listy ===== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; color: var(--ink-2); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.notifs { list-style: none; padding: 0; margin: 0 0 20px; }
.notif a { display: flex; gap: 12px; padding: 12px 10px; border-radius: 8px; color: var(--ink); font-size: 14px; border-bottom: 1px solid var(--line-2); }
.notif a:hover { background: #faf9f5; text-decoration: none; }
.notif.unread a { background: #fff9e8; }
.section-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 6px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.is-archived { opacity: .6; }
.people-list { list-style: none; padding: 0; }
.people-list li { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.search-results { list-style: none; padding: 0; }
.search-results li { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.search-results a { color: var(--ink); display: flex; gap: 8px; align-items: center; }
.pager { display: flex; justify-content: space-between; margin-top: 14px; }
.error-code { font-size: 54px; font-weight: 800; color: var(--line); margin: 0; }

/* ===== Logowanie ===== */
body.guest { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.guest-box { width: 100%; max-width: 380px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 30px; }
.guest-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; margin-bottom: 18px; }
.guest-box h1 { font-size: 22px; }

/* ===== Responsywność ===== */
@media (max-width: 1100px) {
  .home { grid-template-columns: 1fr; }
  .home-left { text-align: left; padding-top: 0; }
  .home-actions { flex-direction: row; flex-wrap: wrap; }
  .home-actions .btn-block { width: auto; }
}
@media (max-width: 700px) {
  body { font-size: 15px; }
  .page { padding: 6px 8px 30px; }
  .sheet { padding: 18px 16px 28px; }
  .crumbs { margin: -4px -6px 16px; padding: 0 6px 10px; }
  .topbar { padding: 8px 10px; gap: 8px; }
  .topsearch kbd { display: none; }
  .brand { font-size: 0; gap: 0; }
  .brand-mark { font-size: 15px; }
  h1 { font-size: 24px; }
  .project-head h1 { font-size: 26px; }
  .fields { grid-template-columns: 1fr; gap: 4px; }
  .fields dt { text-align: left; margin-top: 10px; }
  .cal-day { min-height: 60px; }
  .cal-ev, .cal-todo { font-size: 10px; }
  .hide-sm { display: none; }
  .tool-card { min-height: 0; }
  .tool-body { max-height: 220px; }
  .bottombar a { padding: 6px 8px; font-size: 13px; }
  .table th:nth-child(4), .table td:nth-child(4), .table th:nth-child(3), .table td:nth-child(3) { display: none; }
}
.todolist > p.small { margin-left: 28px; }

/* ===== Import ===== */
.imp-step { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 14px 0; }
.imp-step.current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.imp-step.done { opacity: .75; }
.imp-step h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.imp-step .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; }
.imp-step.done .num { background: var(--accent); }
.imp-step ol { padding-left: 20px; }
.imp-step li { margin-bottom: 4px; }
code { background: var(--line-2); padding: 1px 6px; border-radius: 4px; font-size: 13px; word-break: break-all; }
.progress { height: 12px; border-radius: 6px; background: var(--line-2); overflow: hidden; }
.progress .bar { height: 100%; background: var(--accent); transition: width .4s ease; }
.imp-counts { display: flex; flex-wrap: wrap; gap: 6px; }
.imp-log { background: #1d2320; color: #d7e3dc; border-radius: 8px; padding: 10px 12px; font-size: 12px; max-height: 220px; overflow: auto; white-space: pre-wrap; }
