:root {
  --bg: #f8f5ee;
  --card: #ffffff;
  --line: #ebe5d8;
  --line-strong: #ddd5c4;
  --text: #2f2b26;
  --muted: #8c8578;
  --faint: #b7b0a3;
  --accent: #f5a32a;
  --accent-dark: #e08e12;
  --accent-soft: #fdebd0;
  --danger: #d0564f;
  --ok: #4f9a61;
  --c-yellow: #fdf3d9;
  --c-sand: #efebe3;
  --c-green: #e6f0e4;
  --c-blue: #e4e9f0;
  --c-pink: #f3e3e4;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(60, 50, 30, .04);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.boot { padding: 40px; color: var(--muted); text-align: center; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 24px 32px 80px; }
.wrap.narrow { max-width: 780px; }
@media (max-width: 640px) { .wrap { padding: 16px 16px 64px; } }

/* ---------- header */
.header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.logo { font-weight: 900; font-size: 24px; letter-spacing: -.5px; white-space: nowrap; }
.logo span { color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 4px; }
.header-user { color: var(--muted); font-weight: 700; margin-right: 8px; }
@media (max-width: 640px) { .header-user { display: none; } }

.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent;
  display: inline-grid; place-items: center; color: var(--text);
}
.icon-btn:hover { background: rgba(0, 0, 0, .05); }
.icon-btn.danger:hover { color: var(--danger); }
.icon-btn.sm { width: 34px; height: 34px; color: var(--muted); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.sm svg { width: 19px; height: 19px; }

.topbar { display: flex; align-items: center; justify-content: space-between; margin: 0 -8px 12px; }
.topbar .actions { display: flex; gap: 4px; }
.back { display: inline-flex; align-items: center; gap: 4px; padding: 8px; border-radius: 12px; color: var(--muted); font-weight: 700; }
.back:hover { background: rgba(0, 0, 0, .05); color: var(--text); }
.back svg { width: 22px; height: 22px; }

/* ---------- inputs */
.field, .title-input, textarea.field {
  width: 100%; border: 2px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 13px 22px; outline: none; transition: border-color .15s;
}
textarea.field { border-radius: 16px; resize: vertical; min-height: 80px; padding: 12px 16px; }
.field:focus, textarea.field:focus { border-color: var(--accent); }
.field::placeholder, textarea::placeholder { color: var(--faint); }
.field.sm { padding: 9px 14px; font-size: 15px; }
select.field { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238c8578' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }

.add-row { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; max-width: 870px; }
.add-row .field { font-size: 18px; }
.fab {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; border: 0;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(245, 163, 42, .3);
}
.fab:hover { background: var(--accent-dark); }
.fab svg { width: 26px; height: 26px; }

.search { position: relative; max-width: 870px; margin-bottom: 28px; }
.search svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.search .field { padding-left: 52px; font-size: 18px; }

.btn {
  border: 0; border-radius: 999px; padding: 11px 22px; font-weight: 800;
  background: var(--accent); color: #fff;
}
.btn:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; border: 2px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--line-strong); }
.btn.danger { background: transparent; color: var(--danger); border: 2px solid #f0d4d1; }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------- section labels */
.label { font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 28px 0 12px; }
.label:first-child { margin-top: 0; }

/* ---------- cards & grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.card {
  display: block; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow); transition: border-color .15s, transform .15s;
}
a.card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.card h3 { margin: 0 0 10px; font-size: 20px; font-weight: 800; line-height: 1.25; }
.c-yellow { background: var(--c-yellow); }
.c-sand { background: var(--c-sand); }
.c-green { background: var(--c-green); }
.c-blue { background: var(--c-blue); }
.c-pink { background: var(--c-pink); }

.project-card { display: flex; flex-direction: column; gap: 12px; min-height: 180px; }
.project-card h3 { margin: 0; }
.project-card p { margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-card .foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.stats-line { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 14px; font-weight: 700; }
.stats-line b { color: var(--text); }

.progress { height: 8px; border-radius: 99px; background: rgba(0, 0, 0, .06); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

.list-card { min-height: 200px; display: flex; flex-direction: column; }
.list-card .item { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 17px; min-width: 0; }
.list-card .item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-card .item.done span { text-decoration: line-through; color: var(--muted); }
.list-card .more { color: var(--muted); font-weight: 700; font-size: 15px; margin-top: 4px; }
.list-card .foot { margin-top: auto; padding-top: 12px; }
.list-card .empty { color: var(--faint); font-size: 15px; }

.dot {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--text);
  display: grid; place-items: center; background: transparent; padding: 0;
}
.dot.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.dot svg { width: 15px; height: 15px; }
.list-card .dot { width: 24px; height: 24px; }

.empty-state { text-align: center; color: var(--muted); padding: 48px 16px; border: 2px dashed var(--line); border-radius: var(--radius); }

/* ---------- headings / editable titles */
h1, .title-input {
  font-size: 40px; font-weight: 900; letter-spacing: -.8px; line-height: 1.15; margin: 4px 0 12px;
}
.title-input { border: 0; background: transparent; padding: 0; border-radius: 8px; border-bottom: 2px solid transparent; }
.title-input:hover { border-bottom-color: var(--line); }
.title-input:focus { border-bottom-color: var(--accent); }
@media (max-width: 640px) { h1, .title-input { font-size: 30px; } }
.desc-input {
  width: 100%; border: 0; background: transparent; resize: none; color: var(--muted); font-size: 18px;
  outline: none; padding: 4px 0; border-bottom: 2px solid transparent; overflow: hidden;
}
.desc-input:hover { border-bottom-color: var(--line); }
.desc-input:focus { border-bottom-color: var(--accent); color: var(--text); }
.desc { color: var(--muted); font-size: 18px; margin: 0 0 8px; white-space: pre-wrap; }
.crumb { color: var(--muted); font-weight: 700; }

/* ---------- summary tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0 8px; }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.tile .k { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tile .v { font-size: 30px; font-weight: 900; line-height: 1.2; margin-top: 4px; }
.tile .s { font-size: 14px; color: var(--muted); font-weight: 700; }
.tile .s.over { color: var(--danger); }
.tile .progress { margin-top: 12px; }
.tiles.compact { margin-top: 8px; }
.tiles.compact .tile { padding: 12px 14px; }
.tiles.compact .v { font-size: 22px; }

/* ---------- chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--line); background: var(--card);
  border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 15px;
}
button.chip:hover { border-color: var(--line-strong); }
.chip.on, button.chip.on:hover { border-color: var(--accent); }
.chip .x { border: 0; background: none; padding: 0 0 0 2px; color: var(--muted); display: grid; place-items: center; }
.chip .x:hover { color: var(--danger); }
.chip .x svg, .chip > svg { width: 16px; height: 16px; }
.chip.admin { background: var(--accent-soft); }
.chip select { border: 0; background: transparent; outline: none; font-weight: 800; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  border: 2px solid var(--accent); background: var(--accent-soft); font-weight: 800; font-size: 15px; white-space: nowrap;
  max-width: 180px; overflow: hidden; text-overflow: ellipsis;
}
.pill svg { width: 17px; height: 17px; flex: 0 0 auto; }
.pill.empty { width: 40px; height: 40px; padding: 0; justify-content: center; border-color: var(--line); background: transparent; color: var(--muted); }
.done .pill { opacity: .55; }

/* ---------- tasks */
.color-dots { display: flex; gap: 12px; margin: 4px 0 18px; }
.color-dots button { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--line); background: #fff; padding: 0; }
.color-dots button.on { border: 3px solid var(--accent); }

.tasks { display: flex; flex-direction: column; gap: 14px; }
.task {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 4px 16px;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 16px 16px 22px;
}
.task.open { border-color: var(--line-strong); }
.task .dot { width: 32px; height: 32px; border-width: 3px; }
.task .dot svg { width: 18px; height: 18px; }
.task.done .dot { background: #f9c97f; border-color: #f9c97f; }
.task-main { min-width: 0; cursor: pointer; }
.task-title { font-size: 19px; line-height: 1.35; overflow-wrap: anywhere; }
.task.done .task-title { text-decoration: line-through; color: var(--muted); }
.task-desc { color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; font-size: 14px; color: var(--muted); font-weight: 800; }
.task-meta span { display: inline-flex; align-items: center; gap: 5px; }
.task-meta svg { width: 15px; height: 15px; }
.task-meta .over { color: var(--danger); }
.task.done .task-meta { opacity: .7; }
@media (max-width: 640px) {
  .task { grid-template-columns: auto 1fr auto; padding: 14px; gap: 6px 12px; }
  .task .pill-wrap { grid-column: 2; justify-self: start; }
  .task > .icon-btn { grid-row: 1; grid-column: 3; }
}

.detail { grid-column: 1 / -1; border-top: 2px solid var(--line); margin-top: 12px; padding-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.detail .k { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.detail .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.detail .row .field { flex: 1 1 140px; width: auto; }
.detail .row .field.hours { flex: 0 0 110px; }
.detail .row .field.date { flex: 0 0 170px; }
.entries { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.entry { display: grid; grid-template-columns: 96px 1fr auto auto; align-items: center; gap: 10px; font-size: 15px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.entry .when { color: var(--muted); font-weight: 700; }
.entry .who { color: var(--muted); }
.entry .h { font-weight: 900; }
.hint { color: var(--muted); font-size: 14px; }

/* ---------- users */
.user-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; }
.user-row .name { font-weight: 800; font-size: 18px; }
.user-row > div:first-child { min-width: 0; }
.user-row .sub { color: var(--muted); font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .user-row { grid-template-columns: 1fr auto; }
  .user-row .chips { grid-column: 1 / -1; justify-content: flex-end; margin: -6px -8px -8px 0; }
}
.role { font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--c-sand); color: var(--muted); }
.role.admin { background: var(--accent-soft); color: var(--accent-dark); }
.role.expired { background: #f6e0de; color: var(--danger); }
.btn.sm { padding: 7px 14px; font-size: 14px; }
.chip > svg { display: none; }
.chip.on > svg { display: block; color: var(--accent-dark); }
.chip > .x svg, .chip:not(button) > svg { display: block; }
.k-label { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.k-label:first-of-type { margin-top: 12px; }
.invite-result { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--c-green); font-weight: 700; font-size: 15px; display: flex; flex-direction: column; gap: 10px; }
.invite-result.warn { background: var(--c-yellow); }
.invite-result .row { display: flex; gap: 8px; }
.invite-result .field { flex: 1; min-width: 0; font-weight: 600; }
.more-box { margin-top: 32px; }
.more-box summary { cursor: pointer; color: var(--muted); font-weight: 800; margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth .card { width: 100%; max-width: 420px; padding: 32px; }
.auth .logo { text-align: center; margin-bottom: 6px; font-size: 30px; }
.auth p { text-align: center; color: var(--muted); margin: 0 0 22px; }
.auth form { display: flex; flex-direction: column; gap: 12px; }
.auth .btn { margin-top: 6px; padding: 14px; font-size: 17px; }
.err { color: var(--danger); font-weight: 700; text-align: center; min-height: 1.4em; font-size: 15px; }

/* ---------- toast */
#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: #fff; padding: 12px 20px; border-radius: 14px; font-weight: 700;
  transition: .2s; max-width: calc(100% - 32px); z-index: 10;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.error { background: var(--danger); }

/* ---------- board (tip Jira) */
.wrap.wide { max-width: 1640px; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 12px; flex-wrap: wrap; }
.board-head .label { margin: 0; }
.search.sm { margin: 0; flex: 0 1 320px; }
.search.sm .field { font-size: 15px; padding: 9px 16px 9px 42px; }
.search.sm svg { left: 15px; width: 17px; height: 17px; }

.board {
  display: flex; gap: 14px; align-items: flex-start; overflow-x: auto; padding: 2px 2px 18px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.column {
  flex: 0 0 290px; background: #f1ece2; border-radius: var(--radius); padding: 10px; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 8px;
}
@media (max-width: 640px) { .column { flex-basis: 82vw; } }
.col-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 2px; min-height: 36px; }
.col-title {
  flex: 1; min-width: 0; font-weight: 800; font-size: 16px; border: 0; background: transparent; padding: 3px 4px;
  border-radius: 8px; outline: none; text-overflow: ellipsis;
}
input.col-title:hover { background: rgba(0, 0, 0, .04); }
input.col-title:focus { background: #fff; box-shadow: 0 0 0 2px var(--accent); }
.col-count { color: var(--muted); font-weight: 800; font-size: 14px; }
.kdot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; background: var(--faint); }
.k-todo .kdot { background: #9a9385; }
.k-progress .kdot { background: #4a86d9; }
.k-done .kdot { background: var(--ok); }
.k-blocked .kdot { background: var(--danger); }
.k-invalid .kdot { background: #c9c2b4; }
.k-custom .kdot { background: var(--accent); }

.col-body { display: flex; flex-direction: column; gap: 8px; min-height: 12px; }
.tcard {
  background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 12px 12px 10px 14px;
  cursor: pointer; transition: border-color .12s, box-shadow .12s; outline: none;
}
.tcard:hover, .tcard:focus-visible { border-color: var(--line-strong); box-shadow: 0 2px 8px rgba(60, 50, 30, .06); }
.tcard.dragging { opacity: .35; }
.tcard-title { font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.tcard.is-invalid .tcard-title { text-decoration: line-through; color: var(--muted); }
.tcard.is-done .tcard-title { color: var(--muted); }
.tcard-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tkey { font-weight: 800; font-size: 13px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 800; color: var(--muted); }
.badge svg { width: 14px; height: 14px; }
.badge.over { color: var(--danger); }
.spacer { flex: 1; }
.dot.sm { width: 20px; height: 20px; border-width: 2px; }
.dot.sm svg { width: 12px; height: 12px; }
.drop-marker { height: 4px; border-radius: 4px; background: var(--accent); margin: -2px 4px; }

.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; flex: 0 0 auto;
  background: var(--accent-soft); color: var(--accent-dark); font-weight: 900; font-size: 12px; letter-spacing: .02em;
}
.avatar.empty { background: #ece7dd; color: var(--muted); }
.avatar.empty svg { width: 16px; height: 16px; }
.avatar.sm { width: 32px; height: 32px; }

.add-task {
  border: 2px dashed var(--line-strong); background: transparent; border-radius: 12px; height: 38px; color: var(--muted);
  display: grid; place-items: center;
}
.add-task:hover { background: rgba(255, 255, 255, .6); color: var(--text); }
.add-task svg { width: 18px; height: 18px; }
.add-box { background: var(--card); border: 2px solid var(--accent); border-radius: 14px; padding: 8px 10px; }
.add-input { width: 100%; border: 0; outline: none; resize: none; font-size: 16px; background: transparent; }
.add-actions { display: flex; align-items: center; justify-content: space-between; }
.col-add {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; border: 2px solid var(--line); background: var(--card);
  display: grid; place-items: center; color: var(--muted);
}
.col-add:hover { border-color: var(--line-strong); color: var(--text); }
.col-add svg { width: 20px; height: 20px; }

/* ---------- fereastra task */
body.modal-open { overflow: hidden; }
.modal {
  position: fixed; inset: 0; background: rgba(40, 34, 25, .38); z-index: 20; display: flex; justify-content: center;
  align-items: flex-start; padding: 5vh 16px; overflow: hidden;
}
.modal-panel {
  background: var(--bg); width: 100%; max-width: 760px; max-height: 90vh; overflow-y: auto; border-radius: 22px;
  padding: 18px 28px 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
}
@media (max-width: 640px) {
  .modal { padding: 0; }
  .modal-panel { max-height: 100vh; height: 100%; border-radius: 0; padding: 12px 16px 24px; }
}
.modal-top { display: flex; align-items: center; gap: 10px; margin: 0 -8px 6px 0; }
.modal-top .hint { font-size: 13px; }
.modal-title {
  width: 100%; border: 0; background: transparent; resize: none; outline: none; font-size: 28px; font-weight: 900;
  letter-spacing: -.4px; line-height: 1.2; padding: 4px 0; border-bottom: 2px solid transparent; overflow: hidden;
}
.modal-title:hover { border-bottom-color: var(--line); }
.modal-title:focus { border-bottom-color: var(--accent); }
.status-chips { margin: 10px 0 4px; }
.status-chips .chip { font-size: 14px; padding: 5px 12px; }
.status-chips .chip > .kdot { display: block; }
.modal .detail { border-top: 0; margin-top: 8px; padding-top: 8px; }

.comments { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.comment, .comment-form { display: flex; gap: 12px; align-items: flex-start; }
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.comment-head .icon-btn { margin-left: auto; width: 28px; height: 28px; }
.comment-body { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--card); border: 2px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 8px 12px; }
.comment-form .row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.comment-form textarea.field { min-height: 60px; }

/* ---------- layout compact (încape pe un MacBook Pro 14", 1512×982) */
.wrap.wide { padding-top: 18px; }
.wrap.wide .topbar { margin-bottom: 4px; }
.wrap.wide .title-input, .wrap.wide h1 { font-size: 32px; margin: 0 0 4px; }
.wrap.wide .desc-input, .wrap.wide .desc { font-size: 16px; }
.wrap.wide .label { margin: 18px 0 8px; font-size: 13px; }
.wrap.wide .tiles { gap: 12px; margin: 14px 0 4px; }
.wrap.wide .tile { padding: 10px 16px; border-radius: 14px; }
.wrap.wide .tile .k { font-size: 12px; }
.wrap.wide .tile .v { font-size: 24px; }
.wrap.wide .tile .s { font-size: 13px; }
.wrap.wide .tile .progress { margin-top: 8px; height: 6px; }
.wrap.wide .chip { padding: 4px 12px; font-size: 14px; }
.wrap.wide .board-head { margin: 18px 0 10px; }

.board { gap: 12px; }
.column { flex: 1 1 0; min-width: 220px; max-width: 340px; padding: 8px; border-radius: 16px; gap: 6px; }
.col-head { min-height: 32px; padding: 2px 4px; }
.col-title { font-size: 15px; }
.tcard { padding: 9px 10px 8px 12px; border-radius: 12px; }
.tcard-title { font-size: 15px; }
.tcard-foot { margin-top: 6px; gap: 6px; }
.avatar { width: 26px; height: 26px; font-size: 11px; }
.add-task { height: 32px; border-radius: 10px; }
.col-add { width: 38px; height: 38px; border-radius: 12px; }
@media (max-width: 640px) { .column { flex: 0 0 82vw; max-width: none; } }

/* ---------- pagina de proiecte, compactă */
.home .header { margin-bottom: 18px; }
.home .logo { font-size: 22px; }
.home .add-row { gap: 10px; margin-bottom: 12px; max-width: 640px; }
.home .add-row .field { font-size: 16px; padding: 10px 18px; }
.home .fab { width: 44px; height: 44px; }
.home .fab svg { width: 22px; height: 22px; }
.home .search { max-width: 640px; margin-bottom: 8px; }
.home .search .field { font-size: 16px; padding: 10px 18px 10px 46px; }
.home .search svg { left: 17px; width: 18px; height: 18px; }
.home .label { margin: 16px 0 10px; }
.home .grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.home .project-card { min-height: 0; padding: 14px 16px; gap: 8px; border-radius: 14px; }
.home .project-card h3 { font-size: 17px; }
.home .project-card p { font-size: 14px; }
.home .project-card .foot { gap: 6px; }
.home .stats-line { font-size: 13px; }
.home .progress { height: 6px; }
.home .empty-state { padding: 28px 16px; }
