/* Layout: app de reunión — cabecera fija, por persona tres columnas (Revisión · Proyectos · Plan) sobre fondo arena.
   Marca ClinicGrowth: negro + arenas cálidas, tipografía geométrica, toques en serif cursiva, insignias redondas marrones. */
:root {
  --bg: #f8f6f4;
  --surface: #ffffff;
  --sand: #efeae5;
  --sand-2: #e6ded6;
  --line: #e6dfd8;
  --line-strong: #d6cbc0;
  --ink: #111111;
  --muted: #6e6259;
  --faint: #a2958a;
  --brand: #9a7865;
  --brand-ink: #7d5f4e;
  --brand-soft: #c5b3a4;
  --viz: #a55e33;
  --meet-warn: #f0b65a;
  --ok: #2f7d4f;   --ok-bg: #e5f2ea;
  --warn: #9a6408; --warn-bg: #fbefd9;
  --bad: #b23a3a;  --bad-bg: #f8e3e1;
  --info: #3d5f86; --info-bg: #e3ebf4;
  --off: #6e6259;  --off-bg: #ece7e2;
  --font-ui: "Figtree", "Euclid Circular A", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Instrument Serif", Georgia, "Times New Roman", serif;
  --radius: 16px;
  --radius-sm: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121110; --surface: #1c1a18; --sand: #23201d; --sand-2: #2c2825; --line: #2f2b27; --line-strong: #3f3a35;
    --ink: #f4f1ee; --muted: #b3a79d; --faint: #7c7168; --brand: #c5a58f; --brand-ink: #d9bfac; --brand-soft: #7a6556;
    --viz: #c2733f; --meet-warn: #8a5a06;
    --ok: #7fcf9c; --ok-bg: #1d3125; --warn: #e8b45c; --warn-bg: #352812; --bad: #ee8f87; --bad-bg: #3a1f1d;
    --info: #9dbbe0; --info-bg: #1c2836; --off: #b3a79d; --off-bg: #2a2623;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121110; --surface: #1c1a18; --sand: #23201d; --sand-2: #2c2825; --line: #2f2b27; --line-strong: #3f3a35;
  --ink: #f4f1ee; --muted: #b3a79d; --faint: #7c7168; --brand: #c5a58f; --brand-ink: #d9bfac; --brand-soft: #7a6556;
  --viz: #c2733f; --meet-warn: #8a5a06;
  --ok: #7fcf9c; --ok-bg: #1d3125; --warn: #e8b45c; --warn-bg: #352812; --bad: #ee8f87; --bad-bg: #3a1f1d;
  --info: #9dbbe0; --info-bg: #1c2836; --off: #b3a79d; --off-bg: #2a2623;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.45 var(--font-ui); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.tnum { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1440px; margin: 0 auto; padding-inline: 20px; }

/* Cabecera */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: baseline; gap: 0; text-decoration: none; color: var(--ink); font-size: 17px; letter-spacing: -0.02em; background: none; border: 0; padding: 0; }
.brand b { font-weight: 700; }
.brand span { font-weight: 400; color: var(--brand); }
.nav { display: flex; gap: 4px; }
.nav button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; }
.nav button:hover { color: var(--ink); background: var(--sand); }
.nav button[aria-current="page"] { background: var(--ink); color: var(--bg); }
.top-add { margin-left: 0; }
.proto { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.proto::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3fbf6a; box-shadow: 0 0 0 3px color-mix(in srgb, #3fbf6a 25%, transparent); }

main { padding-block: 28px 80px; }

/* Botones y campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; font-weight: 500; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: color-mix(in srgb, var(--ink) 82%, var(--bg)); }
.btn-dark:disabled { opacity: .4; cursor: not-allowed; }
.btn-line:disabled, .btn-ghost:disabled { opacity: .45; cursor: default; }
.btn-line { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-line:hover { border-color: var(--brand-soft); background: var(--sand); }
.btn-ghost { background: none; color: var(--muted); height: 30px; padding: 0 10px; }
.btn-ghost:hover { color: var(--ink); background: var(--sand); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn-danger { background: var(--bad); color: var(--surface); }
.icon-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 0; background: none; color: var(--faint); }
.icon-btn:hover { background: var(--sand); color: var(--ink); }
.icon-btn svg { width: 15px; height: 15px; }
.field { width: 100%; min-width: 0; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); padding: 0 12px; font-size: 14px; }
.field::placeholder { color: var(--faint); }
.field:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
textarea.field { height: auto; padding-block: 8px; resize: vertical; }
.label { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 5px; }

/* Cabecera de página */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.eyebrow { margin: 0 0 4px; font-size: 13.5px; color: var(--muted); }
h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
h1 em { font-family: var(--font-accent); font-weight: 400; font-style: italic; letter-spacing: -0.01em; color: var(--brand); }
.page-sub { margin: 8px 0 0; color: var(--muted); max-width: 62ch; }
.weeknav { display: flex; gap: 6px; }
.weeknav .btn-line { min-width: 34px; padding: 0 10px; }

/* Indicadores */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.tile p { margin: 0; }
.tile-l { font-size: 13px; color: var(--muted); }
.tile-v { margin-top: 6px !important; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.tile-v.hero { font-size: 52px; }
.tile-d { margin-top: 4px !important; font-size: 12.5px; color: var(--faint); }
.tile.warn .tile-v { color: var(--warn); }
.tile.bad .tile-v { color: var(--bad); }

/* Pestañas de persona */
.ptabs { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 61px); z-index: 20; margin: 22px -20px 0; padding: 10px 20px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ptab { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 500; white-space: nowrap; }
.ptab:hover { color: var(--ink); border-color: var(--line-strong); }
.ptab[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: var(--surface); font-size: 11px; font-weight: 600; }

/* Persona */
.people { display: grid; gap: 18px; margin-top: 8px; }
.person { background: var(--sand); border-radius: 22px; overflow: hidden; }
.person-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding: 16px 22px; }
.person-h h2 { margin: 0; font-size: 21px; letter-spacing: -0.02em; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--surface); font-size: 13px; font-weight: 600; }
.pstats { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; color: var(--faint); }
.pstats b { color: var(--ink); font-weight: 600; }
.pstats .warn b { color: var(--warn); }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.col { background: var(--sand); padding: 18px 20px 22px; min-width: 0; display: grid; align-content: start; gap: 18px; }
.col-h { display: flex; align-items: center; gap: 10px; }
.step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--surface); font-size: 12.5px; font-weight: 600; flex: none; }
.col-h h3 { margin: 0; font-size: 15px; font-weight: 600; }
.col-h span:last-child { color: var(--faint); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; margin-bottom: 8px; }
.sub-h h4 { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.stack { display: grid; gap: 10px; }
.empty { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 14px 16px; color: var(--faint); font-size: 14px; margin: 0; }

/* Hitos */
.ms { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px; }
.ms.is-done { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.ms.is-miss { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.ms.is-unmarked { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 12%, transparent); }
.ms-top { display: flex; align-items: flex-start; gap: 6px; }
.ms-top > div:first-child { min-width: 0; flex: 1; }
.ms-proj { margin: 0; font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-proj b { color: var(--muted); font-weight: 600; }
.ms-title { margin: 3px 0 0; font-size: 15px; font-weight: 500; line-height: 1.35; }
.ms.is-miss .ms-title { color: var(--muted); }
.ms-tools { display: flex; margin: -4px -6px 0 0; }
.ms-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.block-t { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 0; font-size: 12.5px; font-weight: 600; }
.block-t svg { width: 14px; height: 14px; }
.block-t.on { background: var(--ok-bg); color: var(--ok); }
.block-t.off { background: var(--warn-bg); color: var(--warn); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--surface); }
.seg button { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 13px; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 500; }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button svg { width: 13px; height: 13px; }
.seg .done:hover { background: var(--ok-bg); color: var(--ok); }
.seg .miss:hover { background: var(--bad-bg); color: var(--bad); }
.seg .done[aria-pressed="true"] { background: var(--ok); color: var(--surface); }
.seg .miss[aria-pressed="true"] { background: var(--bad); color: var(--surface); }
.unmarked-t { font-size: 12.5px; font-weight: 600; color: var(--warn); }
.cause { margin: 0; font-size: 13px; color: var(--bad); line-height: 1.4; }
.cause span { color: var(--muted); }
.picker { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 10px; }
.picker p { margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.picker-grid button { text-align: left; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 10px; padding: 8px 10px; font-size: 13px; font-weight: 500; line-height: 1.25; }
.picker-grid button:hover { border-color: var(--bad); background: var(--bad-bg); }
.picker-grid button[aria-pressed="true"] { background: var(--bad); border-color: var(--bad); color: var(--surface); }
.picker-foot { display: flex; justify-content: flex-end; gap: 4px; }
.confirm { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; background: var(--bad-bg); color: var(--bad); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.confirm span { color: var(--ink); }
.confirm div { display: flex; gap: 4px; }
.ms-new { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.ms-new .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }

/* Proyectos */
.proj { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; display: grid; gap: 6px; }
.proj-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kind { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.proj h5 { margin: 2px 0 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; text-wrap: balance; }
.proj h5 .icon-btn { margin: -3px -6px 0 0; flex: none; }
.done-when { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.done-when i { font-style: normal; color: var(--faint); }
.prog { margin-top: 6px; display: grid; gap: 6px; }
.prog-bar { height: 5px; border-radius: 999px; background: var(--sand-2); overflow: hidden; }
.prog-bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.prog-bar.over span { background: var(--bad); }
.prog p { margin: 0; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 6px; }
.prog .late { color: var(--bad); font-weight: 600; }
.slot { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.slot p { margin: 0; }
.slot .kind { display: block; }
.slot p + p { font-size: 14px; color: var(--muted); }
.status { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 26px 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status::after { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); opacity: .7; }
.status select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.t-ok { background: var(--ok-bg); color: var(--ok); }
.t-warn { background: var(--warn-bg); color: var(--warn); }
.t-bad { background: var(--bad-bg); color: var(--bad); }
.t-info { background: var(--info-bg); color: var(--info); }
.t-off { background: var(--off-bg); color: var(--off); }

/* Tareas */
.tasks { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 14px; margin: 0; list-style: none; }
.task { display: flex; align-items: flex-start; gap: 8px; padding: 11px 0; }
.task + .task { border-top: 1px solid var(--line); }
.task > div:first-child { flex: 1; min-width: 0; }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.chip { font-size: 11.5px; font-weight: 600; color: var(--brand-ink); background: color-mix(in srgb, var(--brand) 14%, transparent); padding: 2px 8px; border-radius: 999px; }
.client { font-size: 12.5px; color: var(--muted); }
.task-d { margin: 3px 0 0; font-size: 14px; line-height: 1.35; }
.task.is-done .task-d { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.task-tools { display: flex; align-items: center; gap: 2px; flex: none; }
.tstatus { height: 26px; border: 0; border-radius: 999px; padding: 0 10px; font-size: 12.5px; font-weight: 600; appearance: none; text-align: center; cursor: pointer; }
.task-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 8px; }
.task-form .full { grid-column: 1 / -1; }
.task-form .row { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Diálogo */
dialog { border: 0; border-radius: 22px; padding: 0; width: min(520px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / .25); }
dialog::backdrop { background: rgb(17 17 17 / .45); backdrop-filter: blur(3px); }
.dlg { padding: 24px; display: grid; gap: 16px; }
.dlg h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; font-weight: 600; }
.dlg h2 em { font-family: var(--font-accent); font-weight: 400; color: var(--brand); }
.dlg .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dlg .hint { margin: -8px 0 0; font-size: 12.5px; color: var(--muted); }
.dlg .hint.bad { color: var(--bad); }
.dlg-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.dlg-foot div { display: flex; gap: 8px; margin-left: auto; }

/* Proyectos (página) */
.pp-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
th { text-align: left; font-size: 12px; font-weight: 500; color: var(--faint); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 14px; vertical-align: top; border-top: 1px solid var(--line); }
tr:first-child td { border-top: 0; }
td small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Métricas */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 20px; }
.filters .grp { display: flex; flex-wrap: wrap; gap: 6px; }
.filters .sep { width: 1px; height: 22px; background: var(--line-strong); }
.chart-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; margin-top: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card h2 { margin: 0; font-size: 15px; font-weight: 600; }
.card .card-sub { margin: 2px 0 18px; font-size: 12.5px; color: var(--muted); }
.bars { display: flex; height: 180px; margin-left: 40px; position: relative; }
.grid-l { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.grid-l.base { background: var(--line-strong); }
.grid-l span { position: absolute; right: calc(100% + 8px); transform: translateY(-50%); font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.bar-slot { position: relative; flex: 1; display: flex; align-items: flex-end; justify-content: center; outline: none; }
.bar-slot .bar { width: min(24px, 60%); background: var(--viz); border-radius: 4px 4px 0 0; transition: opacity .15s; }
.bar-slot:hover .bar, .bar-slot:focus-visible .bar { opacity: .75; }
.bar-slot .none { font-size: 11px; color: var(--faint); margin-bottom: 4px; }
.bar-slot .lbl { position: absolute; left: 50%; transform: translate(-50%, -100%); padding-bottom: 4px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tip { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 5; width: max-content; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; box-shadow: 0 10px 30px rgb(0 0 0 / .12); font-size: 12px; color: var(--muted); }
.tip b { display: block; color: var(--ink); font-size: 16px; }
.bar-slot:first-child .tip, .bar-slot:nth-child(2) .tip { left: 0; transform: none; }
.bar-slot:last-child .tip, .bar-slot:nth-last-child(2) .tip { left: auto; right: 0; transform: none; }
.bar-slot:hover .tip, .bar-slot:focus-visible .tip { display: block; }
.xlabels { display: flex; margin-left: 40px; padding-top: 6px; }
.xlabels span { flex: 1; text-align: center; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
details { margin-top: 14px; }
summary { cursor: pointer; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.hbars { display: grid; gap: 14px; }
.hbar p { margin: 0 0 5px; font-size: 14px; display: flex; justify-content: space-between; gap: 10px; }
.hbar p b { font-variant-numeric: tabular-nums; }
.hbar-track { height: 14px; }
.hbar-track span { display: block; height: 100%; background: var(--viz); border-radius: 0 4px 4px 0; }

/* Selector de semana */
.when { position: relative; }
.when-btn { display: inline-flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; border-radius: 12px; text-align: left; font: inherit; color: inherit; letter-spacing: inherit; }
.when-btn:hover h1 em { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.when-btn .cal { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); flex: none; }
.when-btn:hover .cal { border-color: var(--brand); color: var(--brand); }
.rel { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--off-bg); color: var(--off); margin-right: 8px; vertical-align: 1px; }
.rel.now { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand-ink); }
.rel-back { border: 0; background: none; padding: 0; color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; font-size: 13.5px; }
.wp { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: 320px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px rgb(0 0 0 / .14); padding: 14px; display: grid; gap: 8px; }
.wp.right { left: auto; right: 0; }
.wp-h { display: flex; align-items: center; justify-content: space-between; }
.wp-h b { font-size: 14.5px; font-weight: 600; }
.wp-head, .wp-row { display: grid; grid-template-columns: 34px repeat(7, 1fr); align-items: center; }
.wp-head span { font-size: 11px; font-weight: 600; color: var(--faint); text-align: center; }
.wp-rows { display: grid; gap: 2px; }
.wp-row { position: relative; border: 0; background: none; border-radius: 10px; height: 34px; padding: 0; font-size: 13px; }
.wp-row:hover { background: var(--sand); }
.wp-row .wk { font-size: 11px; color: var(--faint); font-weight: 600; }
.wp-row .d { text-align: center; }
.wp-row .d.out { color: var(--faint); }
.wp-row .d.today { font-weight: 700; text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.wp-row.cur { box-shadow: inset 0 0 0 1.5px var(--brand); }
.wp-row.sel { background: var(--ink); color: var(--bg); }
.wp-row.sel .wk, .wp-row.sel .d.out { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.wp-row .dot { position: absolute; left: 3px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--brand); }
.wp-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.wp-legend { display: flex; gap: 12px; font-size: 11.5px; color: var(--faint); }
.wp-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--brand); margin-right: 4px; vertical-align: -1px; }
.wp-legend i.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); box-shadow: none; vertical-align: 1px; }

/* Barra de pestañas + orden */
.ptabs { justify-content: space-between; align-items: center; flex-wrap: nowrap; }
.ptabs > div { display: flex; gap: 6px; }
.layout-t { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.layout-t .seg button { height: 30px; font-size: 12.5px; }
.layout-t .seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* Vista por proyecto */
.rows-h, .prow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.rows-h { border-top: 1px solid var(--line); }
.rows-h > div { background: var(--sand); padding: 14px 20px 4px; }
.prow > .cell { background: var(--sand); padding: 12px 20px; min-width: 0; display: grid; align-content: start; gap: 10px; }
.prow:last-of-type > .cell { padding-bottom: 20px; }
.cell-empty { margin: 0; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 14px 16px; color: var(--faint); font-size: 14px; }
.cell-label { display: none; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.closed-proj { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; display: grid; gap: 6px; }
.closed-proj p { margin: 0; font-size: 14px; font-weight: 600; }
.trow { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.trow > div { background: var(--sand); padding: 16px 20px 22px; min-width: 0; display: grid; align-content: start; }
.carry { justify-self: start; border: 0; background: none; padding: 0; font-size: 13px; font-weight: 600; color: var(--brand-ink); display: inline-flex; align-items: center; gap: 5px; }
.carry svg { width: 14px; height: 14px; }
.carry:hover { text-decoration: underline; text-underline-offset: 3px; }
.new-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); background: color-mix(in srgb, var(--brand) 16%, transparent); padding: 2px 6px; border-radius: 999px; }

/* Rango de métricas y chips de fechas */
.range-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 500; font-size: 14px; }
.range-btn small { color: var(--faint); font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips button { height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 12.5px; font-weight: 500; color: var(--muted); }
.chips button:hover { border-color: var(--brand); color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Bloqueado por… */
.who { display: grid; gap: 6px; }
.who-row { display: flex; flex-wrap: wrap; gap: 6px; }
.who-row button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; font-weight: 500; }
.who-row button:hover { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }
.who-row button[aria-pressed="true"] { background: var(--bad); border-color: var(--bad); color: var(--surface); }
.pstats .wait, .pstats .wait b { color: var(--bad); }
.who-blocks { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.who-blocks h3 { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.who-blocks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.who-blocks li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }

/* Acuerdos */
.agr { display: grid; gap: 8px; }
.agr-list { list-style: none; margin: 0; padding: 2px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.agr-list li { display: flex; align-items: center; gap: 8px; padding: 9px 0; }
.agr-list li + li { border-top: 1px solid var(--line); }
.agr-list .check { flex: 1; min-width: 0; color: var(--ink); font-size: 14px; align-items: flex-start; }
.agr-list .check input { margin-top: 2px; flex: none; }
.agr-list li.is-done .check span { color: var(--faint); text-decoration: line-through; }
.agr-new { display: flex; gap: 6px; }
.arow { background: var(--sand); border-top: 1px solid var(--line); padding: 16px 20px 22px; }

/* Modo reunión */
.meet { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 70px); z-index: 20; margin-top: 22px; background: var(--ink); color: var(--bg); border-radius: 18px; padding: 12px 14px 12px 18px; display: grid; gap: 8px; box-shadow: 0 12px 30px rgb(0 0 0 / .15); }
.meet-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--viz); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.clock { font-size: 13px; opacity: .75; white-space: nowrap; }
.steps { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.steps button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); background: none; color: var(--bg); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.steps button svg { width: 12px; height: 12px; }
.steps button[aria-current="step"] { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.meet-actions { display: flex; gap: 6px; margin-left: auto; }
.btn-onink { background: var(--bg); color: var(--ink); }
.btn-onink-line { background: none; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
.meet-note { margin: 0; font-size: 13px; color: var(--meet-warn); }
.head-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.summary-box { min-height: 340px; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; overflow: auto; }
dialog.wide { width: min(680px, calc(100vw - 32px)); }

/* Desplegables */
.dd { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 0 30px 0 12px; font-size: 14px; flex: none; max-width: 100%; }
.dd:hover { border-color: var(--brand-soft); }
.dd:focus-within { outline: 2px solid var(--brand); outline-offset: 1px; }
.dd::after, .dd-field::after { content: ""; position: absolute; right: 14px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.dd-l { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.dd select { appearance: none; border: 0; background: none; font: inherit; font-weight: 500; color: var(--ink); padding: 0; cursor: pointer; outline: none; min-width: 0; max-width: 240px; text-overflow: ellipsis; }
.dd.sm { height: 30px; font-size: 13px; padding-left: 10px; }
.dd-field { position: relative; }
.dd-field select { appearance: none; padding-right: 34px; cursor: pointer; }
.wp-sel { display: flex; gap: 4px; }
.wp-sel .dd { height: 30px; font-size: 13.5px; padding-left: 10px; padding-right: 26px; }
.wp-sel .dd::after { right: 11px; }

/* Equipo de un vistazo */
.who-cell { display: flex; align-items: center; gap: 10px; }
.who-cell .avatar { width: 28px; height: 28px; font-size: 12px; flex: none; }
.who-cell button { border: 0; background: none; padding: 0; font-weight: 600; color: var(--ink); text-align: left; }
.who-cell small { display: block; color: var(--faint); font-size: 12px; font-weight: 400; }
.cell-warn { color: var(--warn); font-weight: 600; }
.cell-bad { color: var(--bad); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--faint); padding: 10px 14px; border-top: 1px solid var(--line); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.list-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 22px; }
.list-h h2 { margin: 0; font-size: 15px; font-weight: 600; }

/* Persona plegable */
.fold-btn { border: 0; background: none; display: inline-flex; align-items: center; gap: 10px; padding: 0; font: inherit; color: inherit; text-align: left; }
.fold-btn .chev { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line-strong); background: var(--surface); transition: transform .15s; flex: none; }
.person.is-folded .fold-btn .chev { transform: rotate(-90deg); }
.person.is-folded .person-h { padding-block: 12px; }
.area-tag { font-size: 12px; font-weight: 500; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 1px 8px; border-radius: 999px; letter-spacing: 0; }
.tag-new { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--brand-ink); background: color-mix(in srgb, var(--brand) 16%, transparent); padding: 2px 8px; border-radius: 999px; }

/* Configuración */
.cfg { display: grid; gap: 18px; margin-top: 22px; }
.cfg-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 18px; min-width: 0; }
.cfg-card > header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.cfg-card h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.cfg-card > header p { margin: 4px 0 0; color: var(--muted); font-size: 14px; max-width: 66ch; }
.cfg-row { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 10px 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.cfg-row h3 { margin: 0; font-size: 15px; font-weight: 600; }
.cfg-row .hint { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opt { display: grid; gap: 8px; align-content: start; border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 12px; background: var(--surface); text-align: left; }
.opt:hover { border-color: var(--brand-soft); }
.opt[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.opt b { font-size: 14px; font-weight: 600; }
.opt > span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.mini { display: grid; gap: 3px; background: var(--sand); border-radius: 8px; padding: 6px; }
.mini-r { display: grid; gap: 3px; }
.mini i { display: block; height: 9px; border-radius: 3px; background: var(--line-strong); }
.mini i.p { background: var(--brand-soft); }
.mini i.r { background: color-mix(in srgb, var(--ok) 45%, var(--line-strong)); }
.mini i.n { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.radios { display: grid; gap: 10px; align-content: start; }
.radio { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.radio input { margin-top: 2px; accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.radio small { display: block; color: var(--muted); font-size: 12.5px; }
.members .avatar { width: 28px; height: 28px; font-size: 12px; }
.members td { vertical-align: middle; }
.members tr.is-gone td { color: var(--faint); }
.members .dd { height: 30px; font-size: 13px; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }
.areas { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.area-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 4px 0 12px; border-radius: 999px; background: var(--sand); font-size: 13.5px; }
.area-chip small { color: var(--muted); }
.area-chip .icon-btn { width: 24px; height: 24px; }
.area-add { display: flex; gap: 6px; }
.area-add .field { height: 32px; width: 180px; }
.clock.over { color: var(--meet-warn); opacity: 1; font-weight: 600; }
.reassign { display: grid; gap: 8px; }
.reassign-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px); gap: 10px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.reassign-row p { margin: 0; font-size: 14px; }
.reassign-row small { display: block; color: var(--muted); font-size: 12.5px; }
.nav { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
@media (max-width: 900px) { .cfg-row { grid-template-columns: 1fr; } .opts { grid-template-columns: 1fr; } .reassign-row { grid-template-columns: 1fr; } }

.list-h p { flex: 1 1 100%; }

/* Huecos y pendientes */
.slot { flex-wrap: wrap; }
.slot-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pend-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pend { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px 10px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 12px 14px; }
.pend-n { width: 24px; height: 24px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.pend-name { margin: 2px 0 0; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.pend-done { margin: 3px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.pend-done i { font-style: normal; color: var(--faint); }
.pend-meta { margin: 4px 0 0; font-size: 12.5px; color: var(--faint); }
.pend-tools { grid-column: 2; display: flex; align-items: center; gap: 2px; margin-left: -6px; }
.pend-tools .btn { margin-left: auto; }
.icon-btn:disabled { opacity: .3; cursor: default; background: none; }
.free-tag { font-size: 11px; font-weight: 600; color: var(--ok); background: var(--ok-bg); padding: 2px 8px; border-radius: 999px; }

/* Mi ficha */
.ficha-id { display: flex; align-items: center; gap: 16px; }
.avatar.xl { width: 64px; height: 64px; font-size: 26px; flex: none; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 22px; }
.who-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: left; }
.who-card:hover { border-color: var(--brand-soft); background: var(--sand); }
.who-card b { font-weight: 600; }
.who-card small { display: block; color: var(--muted); font-size: 12.5px; }
.nav-me { display: inline-flex; align-items: center; gap: 7px; }
.nav-me .avatar { width: 20px; height: 20px; font-size: 11px; }
.wk-pick { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 30px 0 12px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; flex: none; }
.wk-pick:hover { border-color: var(--brand-soft); }
.wk-pick:focus-within { outline: 2px solid var(--brand); outline-offset: 1px; }
.wk-pick svg { color: var(--muted); }
.wk-pick::after { content: ""; position: absolute; right: 14px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.wk-pick select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; font: inherit; }
.h-meta { font-weight: 400; color: var(--muted); }
.nav button { white-space: nowrap; flex: none; }
.weeknav { flex-wrap: wrap; }
@media (max-width: 760px) { .head-actions, .weeknav { width: 100%; justify-content: flex-start; } }
/* Tareas */
.task-d.link-b { display: block; font-size: 14px; font-weight: 500; line-height: 1.35; }
.task-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 12px; margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.task-foot svg { width: 13px; height: 13px; }
.due { font-weight: 600; color: var(--ink); }
.due.late { color: var(--bad); }
.due.none { color: var(--faint); font-weight: 500; }
.prio { display: inline-flex; align-items: center; gap: 5px; }
.prio::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.prio.alta { color: var(--bad); font-weight: 600; }
.prio.baja { color: var(--faint); }
.rec, .cmt { display: inline-flex; align-items: center; gap: 4px; }
.t-who { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink); min-width: 0; }
.t-who .avatar { width: 20px; height: 20px; font-size: 10.5px; flex: none; }
.bad-t { color: var(--bad); font-weight: 600; }
.subseg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.subseg button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13.5px; font-weight: 500; }
.subseg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.subseg .n { font-size: 12px; opacity: .7; }
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--brand) 11%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); font-size: 14px; }
.notice.warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); }
.notice.warn b { color: var(--warn); }
.quick-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.quick-add > .field { flex: 1 1 260px; }
.quick-add .dd-field { flex: 0 1 220px; }
.tgroups { display: grid; gap: 20px; margin-top: 16px; }
.sub-h.late h4 { color: var(--bad); }
.tgroup-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 8px; }
.tgroup-h .avatar { width: 26px; height: 26px; font-size: 11.5px; }
.tgroup-h h3 { margin: 0; font-size: 15px; font-weight: 600; }
.tgroup-h small { color: var(--muted); font-size: 12.5px; }
.search { position: relative; flex: 1 1 220px; max-width: 320px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search .field { height: 34px; border-radius: 999px; padding-left: 34px; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 10px; align-items: start; }
.bcol { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; align-content: start; gap: 8px; min-height: 140px; padding: 10px; border-radius: 18px; background: var(--sand); border: 1.5px dashed transparent; transition: border-color .15s, background .15s; }
.bcol.over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--sand)); }
.bcol-h { display: flex; align-items: center; gap: 8px; padding: 4px 6px 2px; font-size: 13.5px; font-weight: 600; }
.bcol-h .n { color: var(--faint); font-weight: 500; }
.bcol-h small { margin-left: auto; color: var(--faint); font-weight: 400; font-size: 12px; }
.bdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.bdot.pendiente { background: var(--off); } .bdot.en_curso { background: var(--info); } .bdot.bloqueado { background: var(--bad); } .bdot.hecho { background: var(--ok); }
.empty-col { margin: 0; padding: 10px 6px; font-size: 12.5px; color: var(--faint); }
.tcard { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 6px; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: grab; }
.tcard:hover { border-color: var(--line-strong); box-shadow: 0 8px 18px -12px color-mix(in srgb, var(--ink) 40%, transparent); }
.tcard:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.tcard.dragging { opacity: .4; }
.tcard.is-late { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.tc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tc-client { min-width: 0; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-top .prio { font-size: 12px; }
.tc-d { margin: 0; font-size: 13.5px; font-weight: 500; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tc-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; }
.tc-foot .t-who { font-weight: 500; min-width: 0; }
.tc-foot .t-who > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-foot .due { flex: none; white-space: nowrap; }
.tc-foot .t-who:not(:only-child) { overflow: hidden; }
.cmt-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.cmt-list li { padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.cmt-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.cmt-h .avatar { width: 20px; height: 20px; font-size: 10.5px; }
.cmt-h span { margin-left: auto; color: var(--faint); }
.cmt-list p { margin: 6px 0 0; font-size: 14px; line-height: 1.4; }
.task-form .dd-field.full { grid-column: 1 / -1; }
.dd.date { padding-right: 10px; }
.dd.date::after { display: none; }
.dd input[type="date"] { border: 0; background: none; font: inherit; font-weight: 500; color: var(--ink); padding: 0; min-width: 0; outline: none; }
.done-sum { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.done-sum b { color: var(--ink); font-weight: 600; }
@media (max-width: 980px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .board { grid-template-columns: minmax(0, 1fr); } .filters .sep { display: none; } .quick-add .dd-field, .quick-add .btn { flex: 1 1 auto; } }

/* Tiempo y carga de la semana */
.dur { display: inline-flex; align-items: center; gap: 4px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.trio.full { grid-column: 1 / -1; }
.ms-plan { display: flex; flex-wrap: wrap; gap: 6px; }
.psel { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 22px 0 9px; border-radius: 999px; background: var(--sand); color: var(--muted); font-size: 12.5px; }
.psel::after { content: ""; position: absolute; right: 9px; top: 50%; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); opacity: .6; pointer-events: none; }
.psel select { appearance: none; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); padding: 0; cursor: pointer; outline: none; }
.psel:focus-within { outline: 2px solid var(--brand); outline-offset: 1px; }
.psel svg { flex: none; }
.ms-new .psel, .sub-new .psel { background: var(--surface); }
.load-s { display: inline-flex; align-items: center; gap: 6px; }
.load-s i { display: inline-block; width: 46px; height: 5px; border-radius: 999px; background: var(--sand-2); overflow: hidden; }
.load-s i span { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.load-s.full b { color: var(--warn); } .load-s.full i span { background: var(--warn); }
.load-s.over b { color: var(--bad); } .load-s.over i span { background: var(--bad); }
.prow-wide { background: var(--sand); border-top: 1px solid var(--line); padding: 16px 20px 22px; }
.pw { display: grid; gap: 10px; }
.pw-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pw-h h4 { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pw-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.pw-sum > b { font-size: 18px; font-weight: 600; color: var(--ink); }
.pw-sum > b.full { color: var(--warn); } .pw-sum > b.over { color: var(--bad); }
.pw-bar { height: 6px; border-radius: 999px; background: var(--sand-2); overflow: hidden; }
.pw-bar span { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.pw-bar.full span { background: var(--warn); } .pw-bar.over span { background: var(--bad); }
.pw-note { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.pw-key { display: inline-flex; align-items: center; gap: 6px; }
.pw-key::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.pw-key.k-ms::before { background: color-mix(in srgb, var(--brand) 30%, var(--surface)); box-shadow: inset 3px 0 0 var(--brand); }
.pw-key.k-task::before { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.warn-t { color: var(--warn); font-weight: 600; }
.pw-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pw-day { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 8px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 60%, transparent); border: 1px solid var(--line); }
.pw-day.today { border-color: var(--brand-soft); }
.pw-dh { display: flex; justify-content: space-between; gap: 4px; font-size: 12.5px; color: var(--muted); }
.pw-dh b { color: var(--ink); font-weight: 600; text-transform: capitalize; }
.pw-day.over .pw-dh span { color: var(--bad); font-weight: 600; }
.pw-dbar { height: 4px; border-radius: 999px; background: var(--sand-2); overflow: hidden; }
.pw-dbar span { display: block; height: 100%; background: var(--brand); }
.pw-day.over .pw-dbar span { background: var(--bad); }
.pw-day ul, .pw-loose ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.pw-it { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; padding: 6px 8px; border-radius: 9px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; line-height: 1.3; }
.pw-it.k-ms { background: color-mix(in srgb, var(--brand) 14%, var(--surface)); box-shadow: inset 3px 0 0 var(--brand); }
.pw-it.k-task { cursor: pointer; }
.pw-it.k-task:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.pw-it.done .pw-n { text-decoration: line-through; color: var(--faint); }
.pw-it.late .pw-d { color: var(--bad); }
.pw-t { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pw-n { font-weight: 500; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pw-d { color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-empty { font-size: 12px; color: var(--faint); padding: 2px 2px 4px; }
.pw-loose { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; font-size: 12.5px; color: var(--muted); }
.pw-loose > span { padding-top: 6px; font-weight: 600; }
.pw-loose ul { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (max-width: 860px) { .pw-days { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; } }
@media (max-width: 560px) { .pw-loose { grid-template-columns: 1fr; } .trio { grid-template-columns: 1fr 1fr; } .trio .dd-field:first-child { grid-column: 1 / -1; } }

/* Bloques de un hito, planificación de tareas y relaciones */
.ms-time { display: grid; gap: 6px; }
.ms-time-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ms-rest { font-size: 12.5px; color: var(--muted); }
.ms-sum { margin: 0; display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.add-blk { justify-self: start; display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 2px 4px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--brand-ink); }
.add-blk svg { width: 13px; height: 13px; }
.add-blk:hover { text-decoration: underline; text-underline-offset: 3px; }
.hint-s { font-size: 12.5px; color: var(--faint); align-self: center; }
.ms-link, .p-tasks, .t-link { display: inline-flex; align-items: center; gap: 4px; }
.ms-link { margin-left: 6px; color: var(--brand-ink); font-weight: 600; }
.t-link { font-size: 12.5px; color: var(--brand-ink); min-width: 0; }
.lim { color: var(--muted); }
.lim.late { color: var(--bad); font-weight: 600; }
.plan-box { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.plan-ro { margin: -4px 0 0; font-size: 13px; color: var(--muted); }
[hidden] { display: none !important; }
.rel-box { padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 12px; min-width: 0; }
.rel-h { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.kind-groups { display: grid; gap: 14px; }
.kg-h { margin: 0 0 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }

/* Diálogo de tarea, subtareas e hitos en Mi ficha */
.for-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--sand-2); justify-self: start; }
.for-seg label { display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.for-seg input { position: absolute; opacity: 0; pointer-events: none; }
.for-seg label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 14%, transparent); }
.for-seg label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 1px; }
.grid-g { display: grid; gap: 10px; }
.task-info { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--bg); font-size: 13.5px; color: var(--muted); }
.task-info b { color: var(--ink); font-weight: 600; }
.subs, .subs-others { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.subs li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 8px; align-items: center; }
.subs .sub-plan { grid-column: 2; }
.sub-check input { width: 16px; height: 16px; accent-color: var(--ok); margin: 0; }
.sub-t { font-size: 13.5px; font-weight: 500; }
.subs li.is-done .sub-t { text-decoration: line-through; color: var(--faint); }
.sub-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.sub-plan .icon-btn { width: 24px; height: 24px; }
.subs-others li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; }
.subs-others .link-b { font-weight: 500; }
.tstatus-s { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.sub-new { display: grid; gap: 8px; padding: 10px; border-radius: 12px; background: var(--bg); }
.sub-new .field { height: 32px; }
.sub-new-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.sub-new-f > span { display: flex; gap: 4px; margin-left: auto; }
.sub-acts { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.hitos-w { margin-top: 18px; }
.hitos-l { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.hito-c { position: relative; cursor: pointer; transition: box-shadow .15s, transform .15s; padding: 12px 34px 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--brand) 9%, var(--surface)); box-shadow: inset 3px 0 0 var(--brand); display: grid; gap: 4px; }
.hito-c p { margin: 0; }
.hito-c:hover { box-shadow: inset 3px 0 0 var(--brand), 0 8px 18px -12px color-mix(in srgb, var(--ink) 45%, transparent); }
.hito-c:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.hito-go { position: absolute; top: 12px; right: 12px; color: var(--faint); }
.hito-c:hover .hito-go { color: var(--brand-ink); }
.ms-dlg { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 420px) { .ms-dlg { padding: 18px 14px; } .ms-dlg .ms { padding-inline: 12px; } }
.ms-dlg-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ms-dlg-h h2 { margin: 4px 0 0; }
.ms-dlg .ms { box-shadow: none; }
.pw-it[data-act="ms-open"] { cursor: pointer; }
.hito-t { font-size: 14.5px; font-weight: 600; }
.hito-c.is-done .hito-t { text-decoration: line-through; color: var(--faint); }
.hito-m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.ok-t { color: var(--ok); font-weight: 600; }
.chip-name { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.chip-name:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Configuración (icono) y menú en el lateral */
.top-gear { margin-left: auto; display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border: 0; border-radius: 999px; background: none; color: var(--faint); }
.top-gear:hover { background: var(--sand); color: var(--ink); }
.top-gear[aria-current="page"] { background: var(--ink); color: var(--bg); }
.top-gear svg { width: 18px; height: 18px; }
@media (min-width: 900px) {
  body.nav-side .top { position: fixed; top: 0; bottom: 0; left: 0; width: 220px; border-bottom: 0; border-right: 1px solid var(--line); backdrop-filter: none; background: var(--bg); }
  body.nav-side .top-in { flex-direction: column; align-items: stretch; flex-wrap: nowrap; height: 100%; max-width: none; padding: 22px 14px 18px; gap: 14px; }
  body.nav-side .brand { padding: 2px 10px 6px; }
  body.nav-side .top-add { order: 1; margin: 0; height: 38px; }
  body.nav-side .nav { order: 2; flex-direction: column; gap: 2px; overflow: visible; }
  body.nav-side .nav button { display: flex; align-items: center; text-align: left; padding: 9px 12px; border-radius: 12px; }
  body.nav-side .nav-me { width: 100%; }
  body.nav-side .nav-me .badge { margin-left: auto; }
  body.nav-side .top-gear { order: 3; margin: auto 0 0; display: flex; align-items: center; width: auto; height: 38px; gap: 10px; padding: 0 12px; border-radius: 12px; font-size: 14px; color: var(--muted); }
  body.nav-side .top-gear::after { content: "Configuración"; font-weight: 500; }
  body.nav-side .proto { order: 4; align-self: flex-start; }
  body.nav-side main { margin-left: 220px; margin-right: 0; max-width: none; padding-inline: 32px; }
  body.nav-side .ptabs { top: 0; margin-inline: -32px; padding-inline: 32px; }
  body.nav-side .meet { top: 12px; }
}
/* Con el menú en el lateral queda menos ancho: tablero a dos columnas y semana con desplazamiento lateral */
@media (min-width: 900px) and (max-width: 1240px) {
  body.nav-side .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.nav-side .pw-days { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
}

.sub-hint { font-size: 12.5px; color: var(--faint); }
.dlg-x { position: sticky; top: 12px; float: right; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; margin: 12px 12px -44px 0; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--faint); }
.dlg-x:hover { background: var(--sand); color: var(--ink); }
.dlg-x svg { width: 16px; height: 16px; }
.dlg > h2:first-child, .ms-dlg-h { padding-right: 36px; }

/* Focus · vista Proyectos */
.vseg { display: inline-flex; gap: 2px; padding: 3px; margin-top: 22px; border-radius: 999px; background: var(--sand-2); }
.vseg button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; padding: 0 18px; white-space: nowrap; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.vseg button:hover { color: var(--ink); }
.vseg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 14%, transparent); }
.vseg + .tiles { margin-top: 14px; }
@media (max-width: 520px) { .vseg { display: flex; } .vseg button { flex: 1 1 auto; padding: 0 10px; } }
.plist { margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pl-h, .pl-r { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.1fr) 136px; gap: 16px; align-items: center; padding: 12px 18px; }
.pl-h { padding-top: 10px; padding-bottom: 10px; font-size: 12px; color: var(--faint); }
.pl-h span:last-child { text-align: right; }
.pl-g { margin: 0; padding: 9px 18px 7px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pl-g.att { color: var(--bad); }
.pl-r { border-top: 1px solid var(--line); }
.pl-g + .pl-r, .pl-h + .pl-r { border-top: 0; }
.pl-r > div { min-width: 0; }
.pl-r small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.pl-r small.late { color: var(--bad); font-weight: 600; }
.pl-name b, .link-b { font-weight: 600; }
.pl-name small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-name small i { font-style: normal; color: var(--faint); }
.link-b { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--ink); text-align: left; }
.link-b:hover { text-decoration: underline; text-underline-offset: 3px; }
.pl-who button { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; border: 0; background: none; padding: 0; font: inherit; font-size: 14px; color: var(--ink); }
.pl-who button:hover span { text-decoration: underline; text-underline-offset: 3px; }
.pl-who .avatar { width: 26px; height: 26px; font-size: 11.5px; flex: none; }
.pl-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-prog { display: grid; gap: 6px; font-size: 13.5px; }
.pl-date, .pl-hist { font-size: 13.5px; }
.sqs { display: flex; gap: 4px; }
.sq { width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center; color: var(--surface); }
.sq svg { width: 11px; height: 11px; }
.sq.ok { background: var(--ok); }
.sq.bad { background: var(--bad); }
.sq.open { box-shadow: inset 0 0 0 1.5px var(--warn); }
.sq.none { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.sq.na { background: var(--sand-2); }
.pl-st { justify-self: end; }
.res-b { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pl-r.is-free .pl-name b { color: var(--muted); }
.pl-act { grid-column: 3 / -1; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.pl-confirm { padding: 0 18px 12px; }
.pl-more { display: block; width: 100%; border: 0; border-top: 1px solid var(--line); background: none; padding: 11px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--brand-ink); }
.pl-more:hover { background: var(--sand); }
.m-l { display: none; }
@media (max-width: 760px) {
  .pl-h { display: none; }
  .pl-r { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "who st" "prog date" "hist hist"; gap: 10px 14px; padding: 14px 16px; }
  .pl-name { grid-area: name; } .pl-who { grid-area: who; } .pl-st { grid-area: st; } .pl-prog { grid-area: prog; } .pl-date { grid-area: date; text-align: right; } .pl-hist { grid-area: hist; display: flex; align-items: center; gap: 10px; }
  .pl-hist small { margin: 0; }
  .pl-r.is-free { grid-template-areas: "name name" "who act"; }
  .pl-act { grid-area: act; grid-column: auto; }
  .m-l { display: inline; color: var(--faint); }
  .pl-g { padding-left: 16px; }
}


/* Métricas */
.bars { height: 200px; }
.chart-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hbar p b small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.rank-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.rank-cols h3 { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rank li p { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 5px; font-size: 14px; }
.card.flexcol { display: flex; flex-direction: column; }
.insight { margin: auto 0 0; padding-top: 16px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.insight b { color: var(--ink); font-weight: 600; }
.insight-wrap { padding-top: 14px; border-top: 1px solid var(--line); }
.card.flexcol > .hbars, .card.flexcol > .rank-cols { margin-bottom: 18px; }
.meter-cell { display: inline-flex; align-items: center; gap: 10px; }
.meter { width: 80px; height: 6px; border-radius: 999px; background: var(--sand-2); overflow: hidden; flex: none; }
.meter span { display: block; height: 100%; background: var(--viz); border-radius: 999px; }
@media (max-width: 760px) {
  .pend-cols, .chart-grid.two, .rank-cols { grid-template-columns: 1fr; }
  .pend { grid-template-columns: 26px minmax(0, 1fr); }
  .pend-tools { grid-column: 2; }
  .bars { height: 170px; }
}

/* Aviso */
#toast, .toast-box { position: fixed; z-index: 60; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); max-width: min(420px, calc(100vw - 40px)); display: grid; gap: 8px; }
.toast { background: var(--ink); color: var(--bg); border-radius: 14px; padding: 12px 16px; font-size: 14px; box-shadow: 0 10px 30px rgb(0 0 0 / .2); }

@media (max-width: 1100px) {
  .cols { grid-template-columns: 1fr; }
  .rows-h { display: none; }
  .prow { grid-template-columns: 1fr; border-top: 1px solid var(--line); }
  .prow > .cell { padding-block: 12px; }
  .cell-label { display: block; }
  .trow { grid-template-columns: 1fr; }
  .ptabs { flex-wrap: wrap; }
  .chart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ptabs { position: static; }
  .meet { position: static; }
  .steps { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .meet-actions { margin-left: 0; }
  .ptabs > div { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile-v.hero { font-size: 40px; }
  .pp-slots { grid-template-columns: 1fr; }
  .top-add, .top-gear { order: 1; }
  .nav { order: 2; flex: 1 1 100%; }
  .proto { order: 3; }
  .picker-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .wrap { padding-inline: 16px; }
  .ptabs { margin-inline: -16px; padding-inline: 16px; }
  .col { padding-inline: 16px; }
  .person-h { padding-inline: 16px; }
  .dlg .two { grid-template-columns: 1fr; }
}

/* App real: estado del guardado, carga y pantallas de acceso */
.proto[data-state="saving"]::before { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 25%, transparent); }
.proto[data-state="error"] { color: var(--bad); }
.proto[data-state="error"]::before { background: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 25%, transparent); }
.loading { margin: 60px 0; color: var(--muted); text-align: center; }
.muted-t { color: var(--faint); }
a.btn { text-decoration: none; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: grid; gap: 16px; }
.auth-card h1 { margin: 0; font-size: 26px; letter-spacing: -0.02em; font-weight: 600; }
.auth-card h1 em { font-family: var(--font-accent); font-weight: 400; color: var(--brand); }
.auth-card p { margin: 0; color: var(--muted); font-size: 14px; }
.auth-card .brand { justify-self: start; }
.auth-err { padding: 10px 12px; border-radius: 12px; background: var(--bad-bg); color: var(--bad) !important; font-size: 13.5px; }
.auth-card .btn { height: 40px; }


/* Proyecto a la vez que otro del mismo tipo, con su motivo */
.extra-t { margin: 0; font-size: 12px; font-weight: 600; color: var(--warn); background: var(--warn-bg); padding: 4px 8px; border-radius: var(--radius-sm); justify-self: start; }
.pl-name .extra-s { color: var(--warn); font-weight: 600; }
.extra-box { display: grid; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--warn-bg); }
.extra-box p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.extra-box .field { background: var(--surface); }
/* Varios hitos por proyecto y hitos sin proyecto */
.ms-new-b { display: flex; gap: 6px; margin-left: auto; }
/* Desarrollo personal: se ve en la semana, pero no cuenta en las horas */
.pw-it.is-dev { background: var(--surface); box-shadow: inset 3px 0 0 var(--line-strong); color: var(--muted); background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--line-strong) 45%, transparent) 0 1px, transparent 1px 6px); }
.pw-key.k-dev::before { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); background-image: repeating-linear-gradient(135deg, var(--line-strong) 0 1px, transparent 1px 3px); }

/* Configuración › Equipo: varias áreas por persona (la principal, resaltada) */
.m-areas { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.m-area { padding: 2px 9px; border-radius: 999px; background: var(--sand); font-size: 12.5px; white-space: nowrap; }
.m-area.main { background: color-mix(in srgb, var(--brand) 14%, var(--surface)); font-weight: 600; }
.area-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; }
.area-checks .check { color: var(--ink); }
.del-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); }
.ad-who { margin: 0; align-self: center; font-weight: 600; }
.ad-who small { font-weight: 400; color: var(--muted); }
