/* Sistema visual de Tareas. Las reglas de uso están en DESIGN.md. */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;

  /* color */
  --bg: #f6f6f9;
  --surface: #ffffff;
  --surface-2: #f0f0f5;
  --active: #e3e3ec;
  --text: #1b1b24;
  --muted: #5a5a6a;
  --hairline: #eeeef3;      /* líneas de hora */
  --border: #e3e3ec;        /* separadores y tarjetas: decorativo */
  --border-input: #8e8ea0;  /* límite de campos y botones: 3:1 */
  --track: #d9d9e3;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-active: #3730a3;
  --accent-soft: #eeedfc;
  --on-accent: #ffffff;
  --danger: #c62828;
  --danger-soft: #fbeaea;
  --on-danger: #ffffff;
  --scrim: rgba(0, 0, 0, 0.45);
  --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-2: 0 8px 28px rgba(0, 0, 0, 0.24);
  --dot-mix: 0%;

  /* tipo */
  --fs-xs: 0.75rem;     /* 12 */
  --fs-sm: 0.8125rem;   /* 13 */
  --fs-md: 0.9375rem;   /* 15 */
  --fs-lg: 1.0625rem;   /* 17: tareas en Hoy */
  --fs-xl: 1.375rem;    /* 22: "Ahora" */
  --fs-2xl: 1.5625rem;  /* 25: títulos de pantalla */

  /* espacio */
  --sp-1: 2px;
  --sp-2: 4px;
  --sp-3: 8px;
  --sp-4: 12px;
  --sp-5: 16px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 48px;

  /* forma y movimiento */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-full: 999px;
  --t-fast: 120ms;
  --t-med: 180ms;
  --t-slow: 240ms;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  /* capas */
  --z-sticky: 4;
  --z-tabbar: 20;
  --z-fab: 21;
  --z-banner: 60;
  --z-toast: 70;
  --z-drag: 100;

  --sidebar-w: 240px;
  --control-h: 36px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #101015;
    --surface: #1a1a22;
    --surface-2: #23232d;
    --active: #2d2d39;
    --text: #ececf3;
    --muted: #a6a6b8;
    --hairline: #24242e;
    --border: #2b2b37;
    --border-input: #71718a;
    --track: #3a3a48;
    --accent: #8d87f7;
    --accent-hover: #a09bf9;
    --accent-active: #b3affa;
    --accent-soft: #24233f;
    --on-accent: #0e0e14;
    --danger: #ef6b6b;
    --danger-soft: #3a2024;
    --on-danger: #0e0e14;
    --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 8px 28px rgba(0, 0, 0, 0.6);
    --dot-mix: 25%;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101015;
  --surface: #1a1a22;
  --surface-2: #23232d;
  --active: #2d2d39;
  --text: #ececf3;
  --muted: #a6a6b8;
  --hairline: #24242e;
  --border: #2b2b37;
  --border-input: #71718a;
  --track: #3a3a48;
  --accent: #8d87f7;
  --accent-hover: #a09bf9;
  --accent-active: #b3affa;
  --accent-soft: #24233f;
  --on-accent: #0e0e14;
  --danger: #ef6b6b;
  --danger-soft: #3a2024;
  --on-danger: #0e0e14;
  --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 8px 28px rgba(0, 0, 0, 0.6);
  --dot-mix: 25%;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-tap-highlight-color: transparent; accent-color: var(--accent); scrollbar-color: var(--track) transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--fs-md)/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
::selection { background: var(--accent); color: var(--on-accent); }

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.02em; }
h1[tabindex]:focus, h1[tabindex]:focus-visible { outline: none; }

svg.icon { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Títulos de sección: mismo aspecto en toda la app */
.sec {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  font-size: var(--fs-sm); font-weight: 600; color: var(--muted); margin: 0;
}
.sec .count { font-weight: 400; font-variant-numeric: tabular-nums; }
.sec.overdue { color: var(--danger); }

/* ---------- campos ---------- */
input, select, textarea, button { font: inherit; color: inherit; }
input[type="text"], input[type="password"], input[type="date"], input[type="time"], input[type="url"], select, textarea {
  width: 100%;
  min-height: var(--control-h);
  background: var(--surface);
  border: 1px solid var(--border-input);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  caret-color: var(--accent);
}
textarea { resize: vertical; }
::placeholder { color: var(--muted); opacity: 1; }
label { display: block; font-size: var(--fs-sm); color: var(--muted); margin: 0 0 var(--sp-2); }

:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; }

label.check-inline { display: inline-flex; align-items: center; gap: var(--sp-3); margin: 0; color: var(--muted); font-size: var(--fs-sm); cursor: pointer; }
label.check-inline input { margin: 0; }

/* ---------- botones ----------
   Secundario es el botón por defecto. Vale igual para <button> y <a class="btn">. */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--control-h); padding: 0 var(--sp-4);
  border: 1px solid var(--border-input); border-radius: var(--r-md);
  background: var(--surface); color: var(--text); font-weight: 500;
  cursor: pointer; touch-action: manipulation; white-space: nowrap;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}
button:hover, .btn:hover { background: var(--surface-2); }
button:active:not(:disabled), .btn:active { background: var(--active); transform: scale(0.97); }
button:disabled { background: var(--surface-2); border-color: transparent; color: var(--muted); cursor: not-allowed; }

button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
button.primary:hover, .btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button.primary:active:not(:disabled), .btn.primary:active { background: var(--accent-active); border-color: var(--accent-active); }
button.primary:disabled { background: var(--surface-2); border-color: transparent; color: var(--muted); }

button.ghost, .btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
button.ghost:hover, .btn.ghost:hover { background: var(--surface-2); color: var(--text); }
button.ghost:active:not(:disabled), .btn.ghost:active { background: var(--active); }

button.danger { background: transparent; border-color: transparent; color: var(--danger); }
button.danger:hover { background: var(--danger-soft); }
button.danger:active:not(:disabled) { background: var(--danger-soft); }

button.sm, .btn.sm { min-height: 28px; padding: 0 var(--sp-3); font-size: var(--fs-sm); }

button.icon-btn { flex: none; width: 32px; min-height: 32px; padding: 0; background: transparent; border-color: transparent; color: var(--muted); }
button.icon-btn:hover { background: var(--surface-2); color: var(--text); }
button.icon-btn:active:not(:disabled) { background: var(--active); }

/* Etiqueta de fila: añadir al día */
button.pill {
  flex: none; min-height: 26px; padding: 0 var(--sp-3); border-radius: var(--r-full);
  border-color: var(--border-input); background: var(--surface); color: var(--text); font-size: var(--fs-sm); font-weight: 600;
}
button.pill:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
button.pill.on { background: transparent; border-color: transparent; color: var(--muted); font-weight: 500; }
button.pill.on:hover { background: var(--surface-2); color: var(--text); }

/* Selector: lo elegido es gris y en negrita, nunca el color de acción */
.seg { display: inline-flex; flex: none; border: 1px solid var(--border-input); border-radius: var(--r-md); background: var(--surface); }
.seg button { min-height: 34px; border: 0; border-radius: 0; background: transparent; color: var(--muted); }
.seg button:first-child { border-radius: 7px 0 0 7px; }
.seg button:last-child { border-radius: 0 7px 7px 0; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--active); color: var(--text); font-weight: 600; }
.seg button:focus-visible { outline-offset: -2px; position: relative; z-index: 1; }

/* Filtro: botón con forma de píldora. Sin <button> es solo una etiqueta. */
.chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; margin: 0 0 var(--sp-5); }
.chip { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); }
button.chip { min-height: 30px; padding: 0 var(--sp-4); border-radius: var(--r-full); font-weight: 400; color: var(--muted); }
button.chip:hover { color: var(--text); }
button.chip[aria-pressed="true"] { background: var(--active); border-color: var(--border-input); color: var(--text); font-weight: 600; }
.toggles { display: flex; gap: var(--sp-2) var(--sp-5); flex-wrap: wrap; margin-left: auto; }

/* ---------- utilidades ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); }
.error { color: var(--danger); font-size: var(--fs-sm); margin: var(--sp-3) 0 0; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.spacer { flex: 1; }
.note { color: var(--muted); font-size: var(--fs-sm); margin: var(--sp-3) 0 var(--sp-4); }
.empty { text-align: center; color: var(--muted); margin: var(--sp-8) 0; }
.foot { text-align: center; margin-top: var(--sp-5); }
.dot { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--c, var(--accent)), white var(--dot-mix)); }
.progress { height: 8px; border-radius: var(--r-full); background: var(--track); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--c, var(--accent)); border-radius: var(--r-full); }

/* ---------- login ---------- */
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: var(--sp-5); }
.login { width: min(380px, 100%); }
.login h1 { margin-bottom: var(--sp-5); }
.login button { width: 100%; margin-top: var(--sp-5); }

/* ---------- estructura ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.shell.collapsed { --sidebar-w: 60px; }

.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: var(--sp-1);
  background: var(--surface); border-right: 1px solid var(--border); padding: var(--sp-4);
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--sp-3); top: var(--sp-3); z-index: var(--z-toast); background: var(--surface); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.brand { display: flex; align-items: center; justify-content: space-between; padding: 0 0 var(--sp-3) var(--sp-3); font-weight: 700; font-size: var(--fs-lg); letter-spacing: -0.01em; }
.side-actions { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.side-actions .new-task { flex: 1; }
.sidebar nav { display: flex; flex-direction: column; gap: var(--sp-1); }
.nav-title { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); padding: var(--sp-5) 0 var(--sp-2) var(--sp-3); }
.nav-item { display: flex; align-items: center; gap: var(--sp-3); min-height: 36px; padding: 0 var(--sp-3); border-radius: var(--r-md); }
.nav-item:hover { background: var(--surface-2); }
.nav-item[aria-current="page"] { background: var(--active); font-weight: 600; }
.nav-item .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item .badge { font-size: var(--fs-xs); color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.nav-item .dot { margin: 0 4px; }
.sub-item { display: block; padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-7); border-radius: var(--r-md); color: var(--muted); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-item:hover { background: var(--surface-2); }
.sub-item[aria-current="page"] { color: var(--text); font-weight: 600; }
.side-foot { margin-top: auto; padding-top: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-1); }
.side-foot .nav-item { width: 100%; justify-content: flex-start; border: 0; background: transparent; color: var(--muted); font-weight: 400; font-size: var(--fs-sm); min-height: 30px; }
.side-foot .nav-item .label { text-align: left; }
.side-foot .nav-item:hover { background: var(--surface-2); color: var(--text); }
.side-foot .nav-item[aria-current="page"] { color: var(--text); background: var(--active); }

/* Menú plegado: solo iconos */
.collapsed .sidebar { padding: var(--sp-4) var(--sp-3); align-items: stretch; }
.collapsed .brand { justify-content: center; padding-left: 0; }
.collapsed .brand-name, .collapsed .nav-item .label, .collapsed .nav-item .badge, .collapsed .nav-title span, .collapsed .sub-item, .collapsed .new-task .label, .collapsed #next-up { display: none; }
.collapsed .side-actions { flex-direction: column; align-items: center; }
.collapsed .new-task { flex: none; width: 36px; padding: 0; }
.collapsed .nav-item { justify-content: center; padding: 0; }
.collapsed .nav-title { justify-content: center; padding-left: 0; }

.main { padding: var(--sp-6) var(--sp-7) var(--sp-8); min-width: 0; }
.main:has(.cal-scroll) { padding-bottom: var(--sp-5); }
.page { max-width: 940px; }
.page.wide { max-width: 1240px; }

.page-head { display: flex; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-2); flex-wrap: wrap; }
.page-head .dot { width: 14px; height: 14px; }
.page-head.between { justify-content: space-between; margin-bottom: var(--sp-5); }
.page-sub { color: var(--muted); margin: 0 0 var(--sp-5); }
.page-sub::first-letter { text-transform: uppercase; }
.crumb { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--sp-2); display: inline-block; }
.crumb:hover { color: var(--text); }
.toolbar { display: flex; gap: var(--sp-3); align-items: center; margin: 0 0 var(--sp-5); flex-wrap: wrap; }

.tabs { display: flex; gap: var(--sp-1); margin: var(--sp-4) 0 var(--sp-5); border-bottom: 1px solid var(--border); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs a { padding: var(--sp-3) var(--sp-4); color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); font-weight: 600; border-bottom-color: var(--text); }

/* ---------- resumen por empresa ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-5); }
.stat { display: block; padding: var(--sp-4) var(--sp-5); }
.stat:hover { background: var(--surface-2); }
.stat .name { display: flex; align-items: center; gap: var(--sp-3); font-weight: 600; margin-bottom: var(--sp-2); }
.stat .nums { display: flex; gap: var(--sp-5); }
.stat .num { font-size: var(--fs-lg); font-weight: 700; display: flex; align-items: baseline; gap: var(--sp-2); font-variant-numeric: tabular-nums; }
.stat .num small { font-size: var(--fs-xs); font-weight: 400; color: var(--muted); }
.stat .num.late { color: var(--danger); }

/* ---------- alta rápida ---------- */
.quick { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); padding: var(--sp-4); }
.quick .quick-title { flex: 1 1 280px; width: auto; min-width: 0; }
.quick select, .quick input[type="date"] { flex: 0 1 140px; width: auto; min-width: 0; }
.quick-preview { display: flex; flex-wrap: wrap; gap: var(--sp-3); flex-basis: 100%; }
.quick-preview:empty { display: none; }
.quick-preview .chip { padding: var(--sp-1) var(--sp-3); background: var(--surface-2); border-radius: var(--r-sm); color: var(--text); }
.day-add { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); }
.day-add input { flex: 1; min-width: 0; }
.row { display: flex; gap: var(--sp-3); align-items: flex-end; }
.row > * { flex: 1 1 0; min-width: 0; }
.row > button { flex: none; }

/* ---------- notas ---------- */
.note-new { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-5); padding: var(--sp-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.note-new textarea, .note-edit textarea { width: 100%; field-sizing: content; }
.note-new textarea { min-height: 64px; max-height: 40vh; }
.note-new-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-3); }
.note-new-foot select { flex: 0 1 280px; width: auto; min-width: 0; }
.notes-grid { columns: 280px; column-gap: var(--sp-4); }
.nota {
  position: relative; break-inside: avoid; margin-bottom: var(--sp-3); padding: var(--sp-4);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); cursor: pointer;
}
.nota:hover { border-color: var(--border-input); }
.note-edit { border-color: var(--accent); cursor: auto; }
.note-edit:hover { border-color: var(--accent); }
.note-edit textarea { min-height: 120px; max-height: 60vh; }
.note-pin { float: right; margin-left: var(--sp-3); color: var(--muted); }
.note-title { font-weight: 600; overflow-wrap: anywhere; }
.note-text { white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 10; overflow: hidden; }
.note-title + .note-text { margin-top: var(--sp-2); }
.note-actions { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); }
.note-actions select { flex: 1; width: auto; min-width: 0; }
.nota .meta { margin-top: var(--sp-3); }
.nota a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.project-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); margin-top: var(--sp-5); }
.project-main { min-width: 0; }
.project-notes .sec { margin: 0 0 var(--sp-3) var(--sp-2); }
@media (min-width: 1180px) {
  .project-grid:not(.stack) { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}

/* ---------- tareas ---------- */
.group { margin-bottom: var(--sp-5); }
.group > .sec { margin: 0 0 var(--sp-3) var(--sp-2); }
.flat { min-height: 8px; }

.task {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-3);
}
.task.selected { background: var(--surface-2); border-color: var(--border-input); }
.task.completing { opacity: 0.55; transition: opacity var(--t-slow) ease; }

.task .check {
  appearance: none; flex: none; display: grid; place-content: center;
  width: 22px; height: 22px; margin: 0; cursor: pointer; touch-action: manipulation;
  border: 2px solid var(--muted); border-radius: 50%; background: transparent;
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}
.task .check:hover { border-color: var(--accent); background: var(--accent-soft); }
.task .check::after {
  content: ""; width: 10px; height: 6px;
  border-left: 2.5px solid var(--on-accent); border-bottom: 2.5px solid var(--on-accent);
  transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform var(--t-fast) ease-out;
}
.task .check:checked { background: var(--accent); border-color: var(--accent); }
.task .check:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.task .check:active { transform: scale(0.9); }

.task .body { flex: 1; min-width: 0; cursor: pointer; border-radius: var(--r-sm); }
.task .title { overflow-wrap: anywhere; transition: color var(--t-med) ease; }
.task.done .title, .task.completing .title { text-decoration: line-through; color: var(--muted); }
.archive .task.done .title { text-decoration: none; color: var(--text); }
.meta { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); font-size: var(--fs-sm); color: var(--muted); margin-top: var(--sp-1); align-items: center; }
.meta .late { color: var(--danger); font-weight: 600; }
.notes { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--sp-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.tag { display: inline-flex; align-items: center; gap: var(--sp-2); }
.tag .dot { width: 8px; height: 8px; }
.tag.doing { color: var(--accent); font-weight: 600; }
.prio.p3 { color: var(--text); font-weight: 700; }
.task-actions { display: flex; flex: none; align-self: flex-start; align-items: center; gap: var(--sp-1); }

.task-num {
  flex: none; align-self: flex-start; min-width: 1.2em; text-align: right;
  color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums;
}

/* Asa de arrastre */
.grip {
  flex: none; display: grid; place-items: center; align-self: flex-start; width: 18px; height: 22px; margin-left: calc(var(--sp-2) * -1);
  color: var(--muted); cursor: grab; user-select: none; touch-action: none; border-radius: var(--r-sm);
}
.grip svg.icon { stroke-width: 2.6; }
.task.dragging-src { opacity: 0.35; }
.task.dragging-src .task-num { visibility: hidden; }
.drag-ghost { position: fixed; left: 0; top: 0; z-index: var(--z-drag); margin: 0; pointer-events: none; opacity: 0.95; box-shadow: var(--shadow-2); background: var(--surface); }
.drop-line { height: 3px; border-radius: var(--r-full); background: var(--accent); margin: -2px 0 5px; pointer-events: none; }
body.is-dragging, body.is-dragging * { user-select: none; cursor: grabbing !important; }
[data-zone].drop-over { outline: 2px dashed var(--accent); outline-offset: 3px; border-radius: var(--r-lg); }

details.done-box, details.more-box { margin-top: var(--sp-5); }
details > summary { cursor: pointer; color: var(--muted); font-size: var(--fs-sm); padding: var(--sp-2); border-radius: var(--r-sm); }
details.more-box > summary { color: var(--text); font-weight: 600; }
details.done-box .task, details.more-box .task { margin-top: var(--sp-3); margin-bottom: 0; }
.done-actions { margin-top: var(--sp-3); }

/* ---------- Hoy ---------- */
.hoy h1 { font-size: var(--fs-xl); font-weight: 600; }
.hoy-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.hoy-col > .sec { min-height: var(--control-h); margin-bottom: var(--sp-3); }
.hoy-col .task { padding: var(--sp-4); }
.hoy-col .task .title { font-size: var(--fs-lg); font-weight: 500; }
.hoy-col .task-num { font-size: var(--fs-lg); line-height: 1.45; }
.hoy-col .task .check { width: 24px; height: 24px; }
.hoy-col .task { position: relative; padding-left: var(--sp-6); }
.hoy-col .grip { position: absolute; left: var(--sp-2); margin: 0; height: 24px; opacity: 0; transition: opacity var(--t-fast) ease; }
.hoy-col .task:hover .grip, .hoy-col .grip:focus-visible, .hoy-col .task.selected .grip { opacity: 1; }
.task.now { background: var(--accent-soft); border-color: var(--accent); }
.hoy-col .task.now .title { font-size: var(--fs-xl); font-weight: 600; line-height: 1.25; }
.hoy-col .task.now .task-num { font-size: var(--fs-xl); line-height: 1.25; color: var(--accent); }
.hoy-col .task.now .check, .hoy-col .task.now .task-num { margin-top: 18px; }
.task.now .body::before { content: "Ahora"; display: block; color: var(--accent); font-size: var(--fs-xs); font-weight: 700; margin-bottom: var(--sp-1); }
.day-progress { display: flex; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-4); color: var(--muted); font-size: var(--fs-sm); }
.day-progress .progress { flex: 1; }
.empty-day { text-align: center; color: var(--muted); padding: var(--sp-7) 0 var(--sp-6); }
.empty-day p { margin: 0 0 var(--sp-4); }
.empty-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }
.side-card { margin-top: var(--sp-4); display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); color: var(--muted); font-size: var(--fs-sm); }
.side-card b { color: var(--text); font-weight: 600; }
.side-card a { color: var(--accent); white-space: nowrap; }

/* Próxima reunión */
.next-up { display: block; margin-bottom: var(--sp-3); padding: var(--sp-3); border-radius: var(--r-md); background: var(--surface-2); cursor: pointer; }
.next-up:hover { background: var(--active); }
.next-up small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.next-up b { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-sm); font-weight: 600; overflow-wrap: anywhere; }
.next-up a { color: var(--accent); font-size: var(--fs-sm); font-weight: 600; }
.next-up.soon small { color: var(--danger); font-weight: 600; }
.hoy-next .next-up { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.hoy-next .next-up small { flex: none; font-size: var(--fs-sm); }
.hoy-next .next-up b { flex: 1; min-width: 0; font-size: var(--fs-md); }

/* ---------- Panel del día ---------- */
.plan-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.plan-col > .sec { min-height: var(--control-h); margin-bottom: var(--sp-3); }
.plan-col.mine { position: sticky; top: var(--sp-5); max-height: calc(100vh - var(--sp-7)); overflow-y: auto; padding: 0 var(--sp-1) var(--sp-1); }
.plan-list { background: var(--surface-2); border-radius: var(--r-lg); padding: var(--sp-3) var(--sp-3) var(--sp-1); min-height: 150px; }
.plan-empty { color: var(--muted); text-align: center; margin: var(--sp-7) var(--sp-4); }
.backlog-list { min-height: 100px; padding: var(--sp-1); }
.backlog-list .meta { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
.search { margin-bottom: var(--sp-4); }
.banner { display: flex; gap: var(--sp-3); align-items: center; background: var(--surface-2); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-4); font-size: var(--fs-sm); color: var(--text); }
.plan-col .agenda { margin-top: var(--sp-4); margin-bottom: 0; }

/* ---------- agenda ---------- */
.agenda { margin-bottom: var(--sp-5); padding: var(--sp-4); }
.agenda > .sec { margin-bottom: var(--sp-2); }
.agenda p { margin: 0; }
.agenda-row { display: flex; align-items: center; gap: var(--sp-3); min-height: 32px; padding: var(--sp-1) var(--sp-2); border-radius: var(--r-sm); cursor: pointer; }
.agenda-row:hover { background: var(--surface-2); }
.agenda-row .time { flex: none; width: 92px; color: var(--muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.agenda-row.past .agenda-title { color: var(--muted); }
.agenda-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.agenda-row a { color: var(--accent); font-size: var(--fs-sm); font-weight: 600; }

/* ---------- proyectos ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-4); }
.proj-card { display: block; }
.proj-card:hover { background: var(--surface-2); }
.proj-card .name { font-weight: 600; margin-bottom: var(--sp-2); }
.proj-card .desc { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--sp-3); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.proj-card .stats-line { display: flex; justify-content: space-between; font-size: var(--fs-sm); color: var(--muted); margin-top: var(--sp-3); font-variant-numeric: tabular-nums; }

.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); align-items: start; }
.col { background: var(--surface-2); border-radius: var(--r-lg); padding: var(--sp-3); min-height: 120px; border: 2px dashed transparent; }
.col.over { border-color: var(--accent); }
.col > .sec { margin: var(--sp-1) var(--sp-2) var(--sp-3); }
.kcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-3); cursor: grab; }
.kcard.done .title { text-decoration: line-through; color: var(--muted); }
.kcard:active { cursor: grabbing; }

/* ---------- barra de fechas ---------- */
.weeknav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.weeknav .label { font-weight: 600; }
.weeknav .cal-label::first-letter { text-transform: uppercase; }
.nav-group { display: inline-flex; gap: var(--sp-1); flex: none; }
.nav-group button.icon-btn { width: var(--control-h); min-height: var(--control-h); border-color: var(--border-input); color: var(--text); }

/* ---------- timeline ---------- */
.tl-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.tl { min-width: calc(190px + var(--n) * 38px); }
.tl-row { display: grid; grid-template-columns: 190px repeat(var(--n), minmax(0, 1fr)); grid-template-rows: minmax(52px, auto); border-top: 1px solid var(--border); position: relative; }
.tl-head { border-top: 0; grid-template-rows: auto; }
.tl-label { grid-column: 1; grid-row: 1; padding: var(--sp-3) var(--sp-4); min-width: 0; display: flex; flex-direction: column; justify-content: center; }
a.tl-label:hover .tl-name { text-decoration: underline; }
.tl-name { display: flex; align-items: center; gap: var(--sp-3); font-weight: 600; overflow-wrap: anywhere; }
.tl-label small { color: var(--muted); font-size: var(--fs-xs); }
.tl-label small.late { color: var(--danger); font-weight: 600; }
.tl-cell { grid-row: 1; border-left: 1px solid var(--border); min-width: 0; }
.tl-head .tl-cell { text-align: center; padding: var(--sp-2) 0; display: flex; flex-direction: column; }
.tl-head .tl-cell small { color: var(--muted); font-size: var(--fs-xs); }
.tl-cell.weekend { background: var(--surface-2); }
.tl-cell.today { background: var(--accent-soft); }
.tl-head .tl-cell.today b, .tl-head .tl-cell.today small { color: var(--accent); }
.tl-bar {
  grid-row: 1; align-self: center; z-index: 1; position: relative; overflow: hidden; display: flex; align-items: center; min-width: 0;
  height: 30px; margin: 0 var(--sp-1); border-radius: var(--r-md); border: 1px solid var(--c);
  background: color-mix(in srgb, var(--c) 20%, var(--surface));
}
.tl-bar:hover { background: color-mix(in srgb, var(--c) 30%, var(--surface)); }
.tl-bar > i { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--c) 40%, var(--surface)); }
.tl-bar > span { position: relative; padding: 0 var(--sp-3); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-bar.cut-start { margin-left: 0; border-left: 0; border-radius: 0 var(--r-md) var(--r-md) 0; }
.tl-bar.cut-end { margin-right: 0; border-right: 0; border-radius: var(--r-md) 0 0 var(--r-md); }
.tl-bar.late { border: 2px solid var(--danger); }
.tl-off { grid-row: 1; align-self: center; z-index: 1; text-align: center; color: var(--muted); font-size: var(--fs-sm); }
.tl-undated { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin-top: var(--sp-4); }

/* ---------- calendario ---------- */
.cal-scroll {
  /* El día entero a la vista: la altura de cada hora se adapta a la ventana */
  --cal-offset: 325px;
  --hour: max(34px, calc((100vh - var(--cal-offset)) / var(--hours)));
  overflow-x: auto; overflow-y: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
}
.hoy-cal { --cal-offset: 330px; }
.cal-top { background: var(--surface); border-bottom: 1px solid var(--border); }
.cal-body { padding-bottom: var(--sp-4); }
.cal-grid { display: grid; grid-template-columns: 52px repeat(var(--n), minmax(0, 1fr)); min-width: calc(52px + var(--n) * 96px); }
button.cal-day { min-height: 0; border: 0; border-radius: 0; background: transparent; padding: var(--sp-2) 0; flex-direction: column; gap: 0; }
button.cal-day:hover { background: var(--surface-2); }
.cal-day small { color: var(--muted); font-size: var(--fs-xs); font-weight: 400; }
.cal-day b { font-size: var(--fs-lg); }
.cal-day.today b, .cal-day.today small { color: var(--accent); }
.cal-allday { border-top: 1px solid var(--border); }
.hoy-cal .cal-allday { border-top: 0; }
.cal-gutter { color: var(--muted); font-size: var(--fs-xs); padding: var(--sp-2); text-align: right; line-height: 1.2; }
.cal-allday-cell { border-left: 1px solid var(--border); padding: var(--sp-1) var(--sp-2); min-height: 28px; max-height: 92px; overflow-y: auto; min-width: 0; }
button.cal-chip {
  display: block; width: 100%; min-height: 22px; text-align: left; border: 0; border-radius: var(--r-sm); padding: 0 var(--sp-3); margin-block: var(--sp-1);
  font-size: var(--fs-xs); font-weight: 500; overflow: hidden; text-overflow: ellipsis;
  background: color-mix(in srgb, var(--c, var(--accent)) 24%, var(--surface));
}
button.cal-chip:hover { background: color-mix(in srgb, var(--c, var(--accent)) 34%, var(--surface)); }
button.cal-chip.is-task { background: var(--surface-2); font-weight: 400; }
button.cal-chip.is-task:hover { background: var(--active); }
button.cal-chip.is-task.alta { font-weight: 700; }
button.cal-chip.is-task.done { text-decoration: line-through; color: var(--muted); }
.cal-hours { position: relative; }
.cal-hours small { display: block; height: var(--hour); padding: 0 var(--sp-3); text-align: right; color: var(--muted); font-size: var(--fs-xs); transform: translateY(-0.5em); font-variant-numeric: tabular-nums; }
.cal-hours small:first-child { transform: none; }
.cal-hours .cal-hour-end { position: absolute; right: 0; bottom: 0; height: auto; transform: translateY(50%); }
.cal-col {
  /* Las líneas son la rejilla de horas, no decoración */
  position: relative; height: calc(var(--hours) * var(--hour)); border-left: 1px solid var(--border); cursor: cell; min-width: 0;
  background-image: repeating-linear-gradient(to bottom, var(--hairline) 0 1px, transparent 1px var(--hour));
}
.cal-ev {
  container-type: inline-size; position: absolute; display: flex; align-items: flex-start; min-height: 20px; overflow: hidden;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--c) 22%, var(--surface));
}
.cal-ev:hover { background: color-mix(in srgb, var(--c) 32%, var(--surface)); }
.cal-ev.past { background: var(--surface-2); }
.cal-ev.past b { font-weight: 500; color: var(--muted); }
button.cal-ev-main {
  flex: 1; min-width: 0; min-height: 0; height: 100%; display: flex; align-items: flex-start; justify-content: flex-start; gap: var(--sp-3);
  padding: var(--sp-1) var(--sp-2) var(--sp-1) var(--sp-3); border: 0; border-radius: 0; background: transparent; text-align: left; white-space: normal; font-size: var(--fs-xs); line-height: 1.3;
}
button.cal-ev-main:hover, button.cal-ev-main:active:not(:disabled) { background: transparent; transform: none; }
button.cal-ev-main:focus-visible { outline-offset: -2px; }
.cal-ev b { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: break-word; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--lines, 1); }
.cal-ev small { flex: none; color: var(--text); font-size: var(--fs-xs); font-weight: 400; font-variant-numeric: tabular-nums; }
.cal-join { flex: none; padding: var(--sp-1) var(--sp-3) 0 0; color: var(--text); font-size: var(--fs-xs); font-weight: 700; text-decoration: underline; line-height: 1.3; }
@container (max-width: 100px) { .cal-ev small, .cal-join { display: none; } }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--danger); pointer-events: none; z-index: 2; }

/* ---------- integraciones ---------- */
.integ { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--sp-4); }
.integ .head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.integ .head h2 { font-size: var(--fs-lg); }
.integ .logo { width: 32px; height: 32px; border-radius: var(--r-md); display: grid; place-items: center; font-weight: 700; color: #ffffff; }
.integ ul { margin: var(--sp-3) 0 var(--sp-4); padding-left: var(--sp-5); color: var(--muted); font-size: var(--fs-sm); }
.status-pill { margin-left: auto; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- diálogos ---------- */
dialog {
  width: min(540px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); color: var(--text); padding: var(--sp-5) var(--sp-5) 0;
}
dialog[open] { transition: opacity 140ms ease, transform 140ms var(--ease-out); @starting-style { opacity: 0; transform: scale(0.98); } }
dialog::backdrop { background: var(--scrim); }
dialog h2 { font-size: var(--fs-lg); font-weight: 600; margin-bottom: var(--sp-4); }
dialog h2[tabindex]:focus, dialog h2[tabindex]:focus-visible { outline: none; }
dialog .field { margin-bottom: var(--sp-4); }
dialog .row { margin-bottom: var(--sp-4); }
dialog .row .field { margin-bottom: 0; }
dialog p { margin: var(--sp-2) 0 0; }
.dialog-actions {
  position: sticky; bottom: 0; z-index: var(--z-sticky); display: flex; gap: var(--sp-3); align-items: center;
  margin-top: var(--sp-4); padding: var(--sp-4) 0 var(--sp-5); background: var(--surface);
}
details.more-fields { margin-bottom: var(--sp-4); }
details.more-fields > summary { margin-bottom: var(--sp-2); }
details.more-fields[open] > summary { margin-bottom: var(--sp-4); }
.confirm-dialog { width: min(420px, calc(100vw - 24px)); }
.date-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.date-chips button.chip { min-height: 26px; padding: 0 var(--sp-3); }
.swatches { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.swatches label { margin: 0; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; pointer-events: none; }
.swatches span { display: block; width: 28px; height: 28px; border-radius: 50%; background: var(--c); border: 3px solid transparent; }
.swatches input:checked + span { border-color: var(--text); }
.swatches input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.people { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.people:empty { display: none; }
.chip.person { color: var(--text); background: var(--surface-2); border-radius: var(--r-full); padding-left: var(--sp-3); }
.chip.person button { min-height: 24px; width: 24px; padding: 0; border: 0; background: transparent; color: var(--muted); }
.task-extras { border-top: 1px solid var(--border); padding-top: var(--sp-4); }
.task-extras .sec { margin-bottom: var(--sp-3); }
.task-extras .row { flex-wrap: wrap; }
.task-extras .row > button { flex: 1 1 auto; }
.linked { list-style: none; margin: 0 0 var(--sp-3); padding: 0; }
.linked li { display: flex; align-items: center; gap: var(--sp-3); }
.linked a { color: var(--accent); font-size: var(--fs-sm); white-space: nowrap; }
button.link { flex: 1; min-width: 0; min-height: 28px; border: 0; background: transparent; padding: 0; justify-content: flex-start; color: var(--text); font-weight: 400; text-decoration: underline; white-space: normal; text-align: left; }
button.link:hover, button.link:active:not(:disabled) { background: transparent; transform: none; }
.hint { margin: var(--sp-3) 0 0; }
.keys { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.keys td { padding: var(--sp-2) var(--sp-3) var(--sp-2) 0; vertical-align: top; }
.keys td:first-child { white-space: nowrap; }
kbd { font: inherit; font-size: var(--fs-xs); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: var(--sp-1) var(--sp-2); }

/* Buscar */
.search-results { list-style: none; margin: var(--sp-3) 0 0; padding: 0; }
.search-results button { width: 100%; justify-content: flex-start; gap: var(--sp-3); border: 0; background: transparent; font-weight: 400; white-space: normal; text-align: left; min-height: 36px; }
.search-results button:hover, .search-results button:focus-visible { background: var(--surface-2); }
.search-results small { margin-left: auto; color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; }

/* Menú "Más" en móvil */
.more-menu { display: flex; flex-direction: column; gap: var(--sp-1); }
.more-menu .nav-item { width: 100%; min-height: 44px; justify-content: flex-start; border: 0; background: transparent; font-weight: 400; }
.more-menu .nav-item:hover { background: var(--surface-2); }

/* ---------- avisos ---------- */
.toast {
  position: fixed; bottom: var(--sp-5); left: 50%; transform: translateX(-50%); z-index: var(--z-toast);
  display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-3) var(--sp-5); border-radius: var(--r-md);
  max-width: calc(100vw - var(--sp-7)); box-shadow: var(--shadow-2);
  transition: opacity var(--t-med) ease, transform var(--t-med) var(--ease-out);
  @starting-style { opacity: 0; transform: translate(-50%, 8px); }
}
.toast.info { background: var(--text); color: var(--bg); }
.toast.error { background: var(--danger); color: var(--on-danger); }
.toast button { min-height: 28px; padding: 0 var(--sp-2); background: transparent; border: 0; color: inherit; font-weight: 700; text-decoration: underline; }
.toast button:hover { background: transparent; }
.offline { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: var(--z-banner); background: var(--danger); color: var(--on-danger); padding: var(--sp-2) var(--sp-4); border-radius: 0 0 var(--r-md) var(--r-md); font-size: var(--fs-sm); }

/* ---------- móvil: barra inferior ---------- */
.tabbar, .fab { display: none; }

@media (max-width: 1100px) {
  :root { --sidebar-w: 208px; }
  .main { padding: var(--sp-5) var(--sp-5) var(--sp-8); }
}
@media (max-width: 1000px) {
  .shell:not(.collapsed) .hoy-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hoy-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .shell, .shell.collapsed { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .main { padding: var(--sp-5) var(--sp-4) 136px; }
  .main:has(.cal-scroll) { padding-bottom: 136px; }
  .day-add { display: none; }
  .board, .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-col.mine { order: -1; position: static; max-height: none; overflow: visible; }
  .weeknav .label { flex: 1 1 100%; order: -1; }
  .weeknav .primary { margin-left: auto; }
  .toast { bottom: 84px; }

  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-tabbar);
    background: var(--surface); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-1);
    min-height: 56px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: var(--fs-xs); font-weight: 500;
  }
  .tabbar a[aria-current="page"] { color: var(--text); font-weight: 700; }
  .fab {
    display: flex; align-items: center; justify-content: center; position: fixed; right: var(--sp-5); bottom: 72px; z-index: var(--z-fab);
    width: 52px; height: 52px; min-height: 0; padding: 0; border-radius: 50%; box-shadow: var(--shadow-2);
  }
}

/* Con el dedo: objetivos cómodos y campos que no hacen zoom */
@media (pointer: coarse) {
  input[type="text"], input[type="password"], input[type="date"], input[type="time"], input[type="url"], select, textarea { font-size: 1rem; min-height: 44px; }
  button, .btn { min-height: 44px; }
  button.sm, .btn.sm { min-height: 36px; }
  button.icon-btn { width: 44px; min-height: 44px; }
  button.pill { min-height: 36px; padding: 0 var(--sp-4); }
  button.chip { min-height: 36px; }
  .date-chips button.chip { min-height: 36px; }
  .seg button { min-height: 44px; }
  .nav-item { min-height: 44px; }
  .task .check, .hoy-col .task .check { width: 32px; height: 32px; }
  .grip, .hoy-col .grip { width: 28px; height: 40px; opacity: 1; }
  button.cal-chip { min-height: 30px; }
  .agenda-row { min-height: 44px; }
}
@media (hover: none) { .hoy-col .grip { opacity: 1; } }

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