:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --side: #efede8;
  --line: #e2dfd8;
  --text: #1f1e1c;
  --muted: #77736b;
  --accent: #2f6fdd;
  --accent-soft: #e4edfc;
  --danger: #c8372d;
  --ok: #2c9a5b;
  --hover: rgba(0, 0, 0, 0.045);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  --c-blue: #3b7be0; --c-green: #2c9a5b; --c-orange: #e08a2c; --c-purple: #8a5bd6;
  --c-red: #d6504a; --c-teal: #1f9c9c; --c-pink: #d65b9c; --c-gray: #8a8780;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1b1a;
    --surface: #242423;
    --side: #1f1f1e;
    --line: #353432;
    --text: #ecebe8;
    --muted: #9a968e;
    --accent: #6c9cf0;
    --accent-soft: #263652;
    --danger: #ee6c62;
    --ok: #55c284;
    --hover: rgba(255, 255, 255, 0.06);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html, body, #app { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  width: 100%;
}
input[type="checkbox"] { width: auto; }
input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.btn {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 7px 14px;
  white-space: nowrap;
}
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { color: var(--danger); }
.link { color: var(--muted); font-size: 13px; }
.link:hover { color: var(--text); text-decoration: underline; }
.muted { color: var(--muted); }

/* ---------- Estructura ---------- */
.shell { display: grid; grid-template-columns: 250px 1fr; height: 100%; }
.side {
  background: var(--side);
  border-right: 1px solid var(--line);
  padding: 14px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* Logotipo: etiqueta azul con la Q-visto en un medallón más oscuro. */
.side .brand { display: block; padding: 2px 4px 14px; text-decoration: none; }
.brand-pill { display: inline-flex; align-items: center; gap: 9px; background: #2f6fdd; color: #fff; border-radius: 999px; padding: 4px 18px 4px 4px; font-weight: 650; font-size: 20px; letter-spacing: -0.02em; line-height: 1; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: #1e4fa8; display: block; flex: none; }
.brand-mark img { display: block; }
.card .logo { border-radius: 13px; }
.task .row-del { opacity: 0; padding: 0 4px; border-radius: 5px; font-size: 14px; }
.task:hover .row-del, .task .row-del:focus-visible { opacity: 0.7; }
.task .row-del:hover { opacity: 1; background: var(--hover); }
.icon-btn.danger:hover { color: var(--danger); }
.cfg { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.cfg h2 { margin: 0 0 4px; font-size: 16px; }
.cfg p { margin: 0 0 10px; }
.cfg-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cfg-actions .field { width: min(420px, 100%); }
.cal.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cal.five .day:nth-child(7n) { border-right: 1px solid var(--line); }
.cal.five .day:nth-child(5n) { border-right: 0; }
.scope strong { color: var(--text); font-weight: 600; }
.side h2 .h2-actions { display: flex; gap: 4px; align-items: center; }
.side h2 button.text { font-size: 11.5px; text-transform: none; letter-spacing: 0; padding: 2px 6px; color: var(--accent); }
.area { margin-bottom: 4px; border-radius: 8px; }
.area.drop { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.nav.sub[draggable="true"] { cursor: grab; }
.area-head { display: flex; align-items: center; gap: 6px; padding: 5px 4px 5px 9px; border-radius: 8px; }
.area-head:hover { background: var(--hover); }
.area-name { flex: 1; min-width: 0; text-align: left; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.area.off .area-name { color: var(--muted); font-weight: 500; }
.area-btn { color: var(--muted); padding: 0 6px; border-radius: 5px; font-size: 16px; line-height: 1.2; opacity: 0; }
.area-head:hover .area-btn, .area-btn:focus-visible { opacity: 1; }
.area-btn:hover { background: var(--hover); color: var(--text); }
.nav.sub { padding-left: 30px; font-size: 14px; }
.scope { color: var(--muted); font-size: 13px; margin: -12px 0 14px; display: flex; gap: 10px; align-items: baseline; }
.add-wrap { display: flex; align-items: center; gap: 8px; }
.add-wrap .add { flex: 1; }
.area-chip { background: var(--side); border-radius: 20px; padding: 1px 8px; }
.mini-select { width: auto; max-width: 150px; font-size: 13px; padding: 4px 8px; flex: none; }
.side h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 18px 8px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.side h2 button { font-size: 18px; line-height: 1; color: var(--muted); padding: 0 4px; border-radius: 5px; }
.side h2 button:hover { background: var(--hover); color: var(--text); }
.nav {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 8px;
  text-align: left;
  width: 100%;
  text-decoration: none;
  color: inherit;
}
.nav:hover { background: var(--hover); }
.nav.on { background: var(--accent-soft); font-weight: 600; }
.nav .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .count { color: var(--muted); font-size: 12px; font-weight: 400; }
.dot { width: 10px; height: 10px; border-radius: 3px; flex: none; background: var(--c-gray); }
.side .foot { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 2px; }

.main { overflow-y: auto; min-width: 0; }
.page { max-width: 1100px; margin: 0 auto; padding: 26px 28px 80px; }
/* El calendario aprovecha toda la pantalla, a lo ancho y a lo alto. */
.page.wide { max-width: none; padding-bottom: 28px; }
.head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.head h1 { font-size: 24px; margin: 0; flex: 1; min-width: 0; }
.head input.title {
  font-size: 24px; font-weight: 700; border-color: transparent; background: transparent;
  padding: 2px 6px; margin-left: -6px; flex: 1; min-width: 0;
}
.head input.title:hover { border-color: var(--line); }
.menu-btn { display: none; font-size: 22px; padding: 2px 8px; border-radius: 8px; }

/* ---------- Listas de tareas ---------- */
.group { margin-bottom: 22px; }
.group > header {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0; border-bottom: 1px solid var(--line); margin-bottom: 2px;
}
.group > header .gname {
  font-weight: 650; font-size: 14px; flex: 1; border-color: transparent; background: transparent;
  padding: 3px 6px; margin-left: -6px;
}
.group > header input.gname:hover { border-color: var(--line); }
.group > header .n { color: var(--muted); font-size: 12px; }
.group > header .x { color: var(--muted); font-size: 12px; opacity: 0; }
.group:hover > header .x { opacity: 1; }
.group.late > header .gname { color: var(--danger); }

.task {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 6px; border-radius: 8px; cursor: pointer;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}
.task:hover { background: var(--hover); }
.task.sel { background: var(--accent-soft); }
.task .ttl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task.done .ttl { color: var(--muted); text-decoration: line-through; }
.task .meta { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); flex: none; }
.task .due.late { color: var(--danger); font-weight: 600; }
.task .due.today { color: var(--ok); font-weight: 600; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; max-width: 150px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chip .dot { width: 8px; height: 8px; }
.check {
  width: 19px; height: 19px; border-radius: 50%; border: 1.6px solid var(--muted);
  flex: none; display: grid; place-items: center; color: transparent; font-size: 12px; line-height: 1;
}
.check:hover { border-color: var(--ok); color: var(--ok); }
.done > .check, .check.on { background: var(--ok); border-color: var(--ok); color: #fff; }

.add { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }
.add .plus { width: 19px; text-align: center; color: var(--muted); flex: none; }
.add input { border-color: transparent; background: transparent; padding: 5px 4px; }
.add input:focus { background: var(--surface); border-color: var(--line); }
.task[draggable="true"] { cursor: grab; }
.task.dragging { opacity: 0.4; }
.task.drop-before { box-shadow: inset 0 2px 0 var(--accent); }
.group.drop-end { box-shadow: inset 0 -2px 0 var(--accent); }
.task .who { background: var(--accent-soft); border-radius: 20px; padding: 1px 8px; color: var(--text); }
.empty { color: var(--muted); padding: 30px 0; text-align: center; }

/* ---------- Panel de detalle ---------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw);
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; z-index: 20;
}
.drawer-grip { position: absolute; left: -5px; top: 0; bottom: 0; width: 10px; cursor: col-resize; z-index: 1; touch-action: none; }
.drawer-grip::after { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: transparent; }
.drawer-grip:hover::after, .drawer-grip.on::after { background: var(--accent); }
.drawer header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer header .sp { flex: 1; }
.drawer .body { padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.drawer textarea.t { font-size: 19px; font-weight: 650; border-color: transparent; resize: none; padding: 4px 6px; }
.drawer textarea.t:hover { border-color: var(--line); }
.field { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 10px; }
.field > label { color: var(--muted); font-size: 13px; }
.field .row { display: flex; gap: 8px; }
.drawer textarea.notes { min-height: 110px; resize: vertical; }
.drawer h3 { font-size: 13px; color: var(--muted); margin: 6px 0 0; font-weight: 600; }
.comment { border-top: 1px solid var(--line); padding-top: 8px; }
.comment .chead { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.comment .chead .link { margin-left: auto; }
.comment .cbody { white-space: pre-wrap; overflow-wrap: anywhere; }
.crow { display: flex; gap: 8px; align-items: flex-end; }
.cbox { resize: vertical; }
.icon-btn { padding: 4px 9px; border-radius: 7px; color: var(--muted); }
.icon-btn:hover { background: var(--hover); color: var(--text); }

/* ---------- Calendario ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto; grid-auto-rows: minmax(112px, 1fr); min-height: calc(100vh - 175px); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.cal .wd { padding: 6px 8px; font-size: 12px; color: var(--muted); background: var(--side); border-bottom: 1px solid var(--line); text-transform: capitalize; }
.cal .day { min-height: 112px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal .day:nth-child(7n) { border-right: 0; }
.cal .day.out { background: color-mix(in srgb, var(--side) 60%, transparent); }
.cal .day.out .num { opacity: 0.5; }
.cal .dh { display: flex; justify-content: space-between; align-items: center; }
.cal .num { font-size: 12.5px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; }
.cal .day.today .num { background: var(--accent); color: #fff; font-weight: 700; }
.cal .dadd { color: var(--muted); opacity: 0; padding: 0 6px; border-radius: 5px; }
.cal .day:hover .dadd { opacity: 1; }
.cal .ev {
  --ev: var(--c-gray);
  font-size: 12px; text-align: left; padding: 3px 6px; border-radius: 5px; width: 100%;
  background: color-mix(in srgb, var(--ev) 24%, var(--surface)); border-left: 3px solid var(--ev);
  display: flex; align-items: flex-start; gap: 5px; min-width: 0; cursor: pointer;
}
.cal .ev-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.cal .ev-check { width: 13px; height: 13px; margin-top: 1px; border-radius: 50%; border: 1.4px solid color-mix(in srgb, var(--ev) 70%, var(--text)); flex: none; display: grid; place-items: center; color: transparent; font-size: 9px; line-height: 1; background: var(--surface); }
.cal .ev-check:hover { border-color: var(--ok); color: var(--ok); }
.cal .ev-check.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.cal.week .ev-check, .cal.two .ev-check { width: 16px; height: 16px; font-size: 11px; }
.cal .ev-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.cal .ev-meta { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.cal .ev-notes { font-size: 11px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; white-space: pre-line; }
.cal .ev:hover { filter: brightness(0.96); }
.cal .ev[draggable] { cursor: grab; }
.cal .day.over { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.cal .ev.done { opacity: 0.55; }
.cal .ev.done .ev-title { text-decoration: line-through; }
.cal .day input { font-size: 12px; padding: 3px 5px; }
.calnav { display: flex; gap: 6px; align-items: center; }
.cal-head { flex-wrap: wrap; row-gap: 10px; }
.cal-head h1 { font-size: 20px; white-space: nowrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { padding: 6px 12px; font-size: 13.5px; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button:hover { background: var(--hover); }
.seg button.on { background: var(--accent); color: #fff; }
.search-input { flex: 1; min-width: 220px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: inherit; font: inherit; font-size: 16px; }
.search-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; font-size: 13.5px; }
.cal-filter { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; font: inherit; max-width: 220px; }
.cal-filter.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.check-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); cursor: pointer; white-space: nowrap; }

.cal .mon { font-size: 11.5px; color: var(--muted); margin-right: auto; margin-left: 4px; }
.cal.week .ev-title, .cal.two .ev-title { white-space: normal; overflow-wrap: break-word; }
.cal.week .ev, .cal.two .ev { padding: 6px 8px; gap: 7px; font-size: 13px; }
.cal.week .ev-body, .cal.two .ev-body { gap: 3px; }

/* ---------- Varios ---------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 9px 14px; border-radius: 10px;
  display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); z-index: 40; font-size: 14px;
}
.toast button { color: inherit; font-weight: 700; text-decoration: underline; }
.login { height: 100%; display: grid; place-items: center; padding: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; width: min(380px, 100%); display: flex; flex-direction: column; gap: 12px; }
.card h1 { margin: 0; font-size: 22px; }
.card p { margin: 0; }
.card .error { color: var(--danger); font-weight: 600; }
.card .sent-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 24px; }
.btn:disabled { opacity: 0.6; cursor: default; }
dialog { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); padding: 22px; width: min(520px, 94vw); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0, 0, 0, 0.35); }
dialog h2 { margin: 0 0 6px; font-size: 18px; }
dialog h3 { margin: 16px 0 0; font-size: 14px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 4px; }
.swatch { width: 34px; height: 34px; border-radius: 9px; border: 2px solid transparent; }
.swatch:hover { transform: scale(1.08); }
.swatch.on { border-color: var(--text); box-shadow: inset 0 0 0 2px var(--surface); }
.color-btn { padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.color-btn:hover { background: var(--hover); }
.color-btn .dot { width: 14px; height: 14px; border-radius: 4px; }
dialog .rowline { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
dialog .rowline .sp { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dialog label.rowline { cursor: pointer; }
dialog .steps { margin: 10px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
dialog a { color: var(--accent); }
dialog .error { color: var(--danger); }
.import-status { margin-top: 12px; }
.import-status p { margin: 4px 0; }
[hidden] { display: none !important; }
code.tok { display: block; background: var(--side); border-radius: 8px; padding: 9px; word-break: break-all; font-size: 12.5px; user-select: all; margin: 6px 0; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.dlg-row { display: flex; gap: 8px; margin-top: 12px; }

@media (max-width: 760px) {
  .drawer { width: 100vw !important; }
  .drawer-grip { display: none; }
  .cal { min-height: 0; }
  .area-btn { opacity: 1; }
  .task .row-del { opacity: 0.6; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 30% 0 0; z-index: 30; box-shadow: var(--shadow); display: none; }
  .shell.menu .side { display: flex; }
  .menu-btn { display: block; }
  .page { padding: 16px 16px 80px; }
  .task .chip { display: none; }
  .cal .day { min-height: 76px; }
  .cal .ev { font-size: 10.5px; padding: 1px 3px; }
}

.found-project { padding: 8px 10px; font-size: 15px; }

/* Listas de la compra */
.list-mark { font-size: 13px; width: 14px; text-align: center; flex: none; }
.list-mark.big { font-size: 22px; width: auto; }
.list-add { display: flex; gap: 8px; margin: 4px 0 18px; flex-wrap: wrap; }
.list-add .list-input { flex: 1; min-width: 200px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); font: inherit; }
.group.bought .hint { font-size: 12.5px; padding: 0 2px 6px; }
.group.bought > header .link { font-size: 12px; margin-left: 8px; }
.photo-items { max-height: 50vh; overflow: auto; margin: 8px 0; }

.segs { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin-bottom: 6px; }
.seg { padding: 7px 14px; background: var(--surface); color: var(--muted); border: 0; font: inherit; cursor: pointer; }
.seg.on { background: var(--accent); color: #fff; }
.page > .hint { font-size: 12.5px; margin-bottom: 14px; }
.task.prep.off .ttl { color: var(--muted); }
.task.prep.off .check { color: var(--muted); border-style: dashed; }

.list-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.list-bar .segs { margin-bottom: 0; }
.qty { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.qty-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; touch-action: manipulation; }
.qty-btn:hover:not(:disabled) { background: var(--hover); }
.qty-btn:disabled { opacity: 0.35; cursor: default; }
.qty-n { min-width: 34px; font-size: 17px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.qty.zero .qty-n { color: var(--muted); font-weight: 400; }
.task .qty ~ .row-del { opacity: 0.5; }

.archived-note { background: var(--accent-soft); border-radius: 9px; padding: 9px 12px; margin: 0 0 14px; font-size: 13.5px; }
.archived-note a { color: var(--accent); }

.task.prep { padding-top: 5px; padding-bottom: 5px; }
.qty-badge { flex: none; min-width: 28px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.qty-badge.many { color: var(--text); font-weight: 700; background: var(--accent-soft); border-radius: 20px; padding: 2px 9px; }

/* Lista de la compra: botones grandes, para el dedo y para el ratón */
.qty { gap: 6px; }
.qty-btn { width: 56px; height: 56px; font-size: 32px; font-weight: 500; border-width: 2px; }
.qty-btn:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.qty-btn:not(:disabled):active { background: var(--accent); color: #fff; }
.qty-n { min-width: 44px; font-size: 22px; }
.task.prep, .task.shop { padding-top: 8px; padding-bottom: 8px; font-size: 17px; }
.task.shop .check { width: 32px; height: 32px; font-size: 18px; }
.task.shop { min-height: 56px; }
.qty-badge { font-size: 18px; }
.group.cart { margin-top: 28px; }
.group.cart .finish { display: block; width: 100%; padding: 16px; font-size: 18px; font-weight: 600; margin: 14px 0 8px; border-radius: 12px; }
.segs .seg { padding: 12px 22px; font-size: 16px; }
.list-add .list-input { padding: 14px 14px; font-size: 17px; }
.list-add .btn { padding: 12px 18px; font-size: 16px; }

/* Tablero: cada sección es una columna y las tareas, tarjetas que se arrastran entre ellas */
.sections > .add-section { margin-bottom: 22px; }
.board { display: flex; gap: 14px; align-items: flex-start; overflow-x: auto; padding-bottom: 18px; min-height: 60vh; }
.board > .group {
  flex: 0 0 300px; margin: 0; padding: 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; max-height: calc(100vh - 150px); overflow-y: auto;
}
.board > .group > header { position: sticky; top: -10px; background: var(--surface); padding: 6px 2px; z-index: 1; }
.board > .group.drop-end { box-shadow: 0 0 0 2px var(--accent); }
.board .task {
  flex-wrap: wrap; align-items: flex-start; gap: 6px 9px; padding: 10px; margin-bottom: 7px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--bg, var(--surface));
}
.board .task .ttl { flex: 1 1 calc(100% - 40px); white-space: normal; overflow: visible; line-height: 1.3; }
.board .task .meta { flex: 1 1 100%; padding-left: 28px; flex-wrap: wrap; }
.board .task .meta:empty { display: none; }
.board > .add-section { flex: 0 0 auto; white-space: nowrap; }
