/* ==========================================================================
   Panel HANIL — mesa de trabajo, reuniones de los jueves, objetivos y bitácora.
   Solo variables de color (el acento dorado llega por [data-ws="hanil"]); funciona en claro y oscuro.
   ========================================================================== */

:root {
  /* Hoja impresa de la minuta: siempre tinta oscura sobre papel blanco */
  --hn-print-ink: #14202c;
  --hn-print-soft: #4a5a6b;
  --hn-print-line: #d5dde6;
  --hn-print-paper: #ffffff;
  --hn-print-accent: #8e6a33;
}

/* ---------- Piezas pequeñas ---------- */
.hn-gold {
  color: var(--accent-ink);
}
.avatar.hn-xs {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 8.5px;
  letter-spacing: 0;
}
.avatar-stack .avatar.hn-xs {
  margin-left: -6px;
}
.avatar-stack .avatar.hn-xs:first-child {
  margin-left: 0;
}
.hn-av-empty {
  background: var(--surface-3);
  color: var(--ink-3);
  border: 1px dashed var(--line-2);
}
.hn-area {
  --c: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px 0 6px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: color-mix(in srgb, var(--c) 82%, var(--ink));
  background: color-mix(in srgb, var(--c) 12%, transparent);
  white-space: nowrap;
}
.hn-obj-chip {
  --c: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line));
  background: color-mix(in srgb, var(--c) 7%, var(--surface));
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none !important;
  transition: border-color var(--t), color var(--t);
}
a.hn-obj-chip:hover {
  border-color: var(--c);
  color: var(--ink);
}
.hn-obj-chip i,
.hn-chip-obj i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
  flex-shrink: 0;
}
.hn-due {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
}
.hn-due.is-soon {
  color: var(--warning);
  font-weight: 600;
}
.hn-due.is-late {
  color: var(--danger);
  font-weight: 600;
}
.hn-days {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface-3);
  white-space: nowrap;
}
.hn-days.is-soon {
  color: var(--warning);
  background: var(--warning-soft);
}
.hn-days.is-late {
  color: var(--danger);
  background: var(--danger-soft);
}
.hn-days.is-ok {
  color: var(--success);
  background: var(--success-soft);
}
.hn-dot {
  --c: var(--accent);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent);
  flex-shrink: 0;
}
.hn-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-4);
}
.hn-live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.hn-live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: hn-ping 1.8s var(--ease-out) infinite;
}
@keyframes hn-ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  80%,
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}
.hn-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}
.hn-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px dashed var(--line-2);
}
.hn-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.hn-who {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-2);
}
.hn-meet-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
}

/* ---------- Navegación interna ---------- */
.hn-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.hn-back,
.hn-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px 0 8px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background var(--t), color var(--t);
}
.hn-nav-btn {
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
}
.hn-back:hover,
.hn-nav-btn:hover {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.hn-back svg {
  transition: transform 0.3s var(--ease-out);
}
.hn-back:hover svg {
  transform: translateX(-3px);
}

/* ---------- Filtros ---------- */
.hn-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 18px;
}
.hn-filters .search {
  flex: 1 1 220px;
  max-width: 320px;
}
.hn-chip-av {
  padding-left: 5px;
}
.hn-chip-av .avatar {
  box-shadow: none;
}
.hn-chip-obj,
.hn-chip-area,
.hn-chip-type {
  --c: var(--accent);
}
.hn-chip-area svg,
.hn-chip-type svg {
  color: var(--c);
}
.chip.hn-chip-area.is-active,
.chip.hn-chip-type.is-active,
.chip.hn-chip-obj.is-active {
  background: color-mix(in srgb, var(--c) 13%, var(--surface));
  border-color: color-mix(in srgb, var(--c) 45%, transparent);
  color: var(--ink);
}
.hn-obj-select {
  --c: var(--ink-4);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  max-width: 100%;
  padding: 0 4px 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-3);
  transition: border-color var(--t);
}
.hn-obj-select:hover,
.hn-obj-select:focus-within {
  border-color: var(--accent-line);
}
.hn-obj-select svg {
  color: var(--c);
  flex-shrink: 0;
}
.hn-obj-select select {
  min-width: 0;
  max-width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  outline: 0;
  cursor: pointer;
  text-overflow: ellipsis;
}
.hn-obj-select.is-wide {
  display: flex;
  height: 42px;
  padding-left: 12px;
  --c: var(--accent);
}
.hn-obj-select.is-wide select {
  flex: 1;
  font-size: 13.5px;
}

/* ==========================================================================
   Dashboard
   ========================================================================== */
.hn-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 28px 30px;
  border-radius: var(--r-xl);
  border: 1px solid var(--accent-line);
  background:
    radial-gradient(520px 260px at 0% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, var(--surface)) 0%, var(--surface) 62%);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
}
.hn-hero-glow {
  position: absolute;
  right: 6%;
  top: 10%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 66%);
  pointer-events: none;
  z-index: -1;
}
.hn-hero-cal,
.hn-meet-date,
.hn-next-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 92px;
  padding: 10px 0 12px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  line-height: 1;
  flex-shrink: 0;
}
.hn-hero-cal small,
.hn-meet-date small,
.hn-next-date small {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 600;
}
.hn-hero-cal b {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 6px 0 4px;
}
.hn-hero-cal span,
.hn-meet-date span,
.hn-next-date span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hn-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 600;
}
.hn-hero-title {
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
  margin-top: 8px;
}
.hn-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 13.5px;
}
.hn-hero-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hn-hero-meta svg {
  color: var(--accent-ink);
}
.hn-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.hn-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none !important;
}
.hn-hero-chip b {
  color: var(--ink);
}
.hn-hero-chip.is-link:hover {
  border-color: var(--accent-line);
  color: var(--accent-ink);
}
.hn-hero-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-left: 28px;
  border-left: 1px dashed var(--accent-line);
}
.hn-ring-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}
.hn-ring-big b {
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: -0.03em;
}
.hn-ring-big small {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
}
.hn-hero-legend {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 4px 14px;
  font-size: 12px;
  color: var(--ink-2);
}
.hn-hero-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hn-hero-legend i {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--c);
}
.hn-hero-legend b {
  margin-left: auto;
  padding-left: 4px;
}

/* Cuenta regresiva */
.hn-cd {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 18px;
}
.hn-cd-u {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 62px;
  padding: 9px 8px 7px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.hn-cd-u b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.hn-cd-u small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}
.hn-cd-live {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-ink);
  font-size: 13.5px;
}
.hn-cd[data-state="during"] .hn-cd-u,
.hn-cd[data-state="after"] .hn-cd-u {
  display: none;
}
.hn-cd[data-state="during"] .hn-cd-live,
.hn-cd[data-state="after"] .hn-cd-live {
  display: inline-flex;
}
.hn-cd[data-state="after"] .hn-cd-live {
  background: var(--warning-soft);
  border-color: color-mix(in srgb, var(--warning) 35%, transparent);
  color: var(--warning);
}
.hn-cd[data-state="after"] .hn-live-dot,
.hn-cd[data-state="after"] .hn-live-dot::after {
  background: var(--warning);
}
.hn-cd.is-compact {
  margin-top: 0;
  gap: 6px;
}
.hn-cd.is-compact .hn-cd-u {
  min-width: 48px;
  padding: 6px 6px 5px;
  border-radius: 11px;
}
.hn-cd.is-compact .hn-cd-u b {
  font-size: 19px;
}
.hn-cd.is-compact .hn-cd-u small {
  font-size: 8.5px;
}

/* Objetivos (mini) */
.hn-obj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.hn-obj-mini {
  --c: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: inherit;
  text-decoration: none !important;
  transition: border-color var(--t), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background var(--t);
}
.hn-obj-mini:hover {
  border-color: color-mix(in srgb, var(--c) 45%, var(--line));
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.hn-obj-mini.is-quiet {
  opacity: 0.78;
}
.hn-obj-mini h4 {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 6px;
  font-family: var(--font-body);
}
.hn-obj-mini .ring-val {
  font-size: 14px;
}
.hn-obj-mini-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
}
.hn-areas {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hn-area-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hn-area-row .progress {
  margin-top: 6px;
}
.hn-statbars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hn-statbar {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none !important;
}
.hn-statbar:hover b {
  color: var(--accent-ink);
}
.hn-mini-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--ink-3);
}
.hn-mini-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hn-streak {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hn-streak-ico {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  background: var(--accent-soft);
}
.hn-streak b {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.hn-streak span {
  font-size: 12.5px;
  color: var(--ink-3);
}
.hn-mdots {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  margin: 18px 0 16px;
}
.hn-mdot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none !important;
}
.hn-mdot > span {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-2);
  color: var(--ink-3);
  background: var(--surface);
  transition: transform 0.3s var(--ease-out);
}
.hn-mdot:hover > span {
  transform: translateY(-2px) scale(1.06);
}
.hn-mdot small {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-3);
  white-space: nowrap;
}
.hn-mdot.is-realizada > span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}
.hn-mdot.is-cancelada > span {
  background: var(--danger-soft);
  border-color: color-mix(in srgb, var(--danger) 40%, transparent);
  color: var(--danger);
}
.hn-mdot.is-programada > span {
  border-style: dashed;
  border-color: var(--accent);
  color: var(--accent-ink);
}
.hn-attendance {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hn-att-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hn-att-bar {
  width: 42%;
}
.li-date.hn-late {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
}
.li-date.hn-late small {
  background: var(--danger-soft);
  color: var(--danger);
}

/* Bitácora en línea de tiempo */
.timeline.hn-feed {
  padding-left: 40px;
}
.timeline.hn-feed::before {
  left: 13px;
  top: 10px;
  bottom: 10px;
}
.hn-feed .tl-item {
  padding-bottom: 16px;
}
.hn-feed .tl-dot {
  left: -40px;
  top: 0;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 10px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, var(--surface));
  box-shadow: 0 0 0 4px var(--surface);
}
.hn-feed .tl-dot::after {
  display: none;
}
.hn-upd-card {
  min-width: 0;
}
.hn-upd .tl-title {
  font-size: 13.5px;
}
.hn-upd .tl-body {
  margin-top: 3px;
}
.hn-upd-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 7px;
}
.hn-upd-meta .badge {
  height: 20px;
  font-size: 10.5px;
  padding: 0 8px;
}
.hn-upd.is-clickable .hn-upd-card {
  cursor: pointer;
  margin: -6px -8px;
  padding: 6px 8px;
  border-radius: 12px;
  transition: background var(--t);
}
.hn-upd.is-clickable .hn-upd-card:hover {
  background: var(--surface-2);
}

/* Ritmo semanal */
.hn-weeks {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  height: 190px;
  align-items: end;
}
.hn-week {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
}
.hn-week-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 100%;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
}
.hn-week-bars span {
  --c: var(--accent);
  width: min(14px, 40%);
  border-radius: 5px 5px 2px 2px;
  background: var(--c);
  transition: filter var(--t);
}
.hn-week:hover .hn-week-bars span {
  filter: brightness(1.12);
}
.hn-week small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ==========================================================================
   Mesa de trabajo
   ========================================================================== */
.hn-board-stats,
.hn-mini-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.hn-stat,
.hn-mini-kpis > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.hn-stat b,
.hn-mini-kpis b {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hn-stat small,
.hn-mini-kpis small {
  font-size: 12px;
  color: var(--ink-3);
}
.hn-stat.is-danger {
  border-color: color-mix(in srgb, var(--danger) 35%, var(--line));
  background: color-mix(in srgb, var(--danger) 5%, var(--surface));
}
.hn-stat.is-danger b {
  color: var(--danger);
}
.hn-mini-kpis > div {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
}
.hn-mini-kpis .li-ico {
  grid-row: span 2;
}
.hn-kb {
  min-width: 0;
}
.hn-kb.is-done .kb-title {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: var(--ink-4);
}
.hn-kb .kb-title {
  padding-left: 4px;
}
.hn-kb .kb-desc,
.hn-kb .kb-meta {
  padding-left: 4px;
}
.hn-kb .kb-meta {
  margin-top: 8px;
}
.hn-obj-chip.is-static {
  max-width: 100%;
}
.hn-kb-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-left: 4px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.hn-prio-tag {
  --c: var(--warning);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  color: var(--c);
}
.hn-kb-from {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

/* ==========================================================================
   Reuniones
   ========================================================================== */
.hn-next {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  margin-bottom: 16px;
  border-color: var(--accent-line);
  background: linear-gradient(110deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 55%);
}
.hn-next h3 {
  font-size: 18px;
  margin-top: 3px;
}
.hn-next-date {
  width: 72px;
  border-radius: 16px;
}
.hn-next-date b,
.hn-meet-date b {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 5px 0 3px;
}
.hn-month {
  margin-bottom: 22px;
}
.hn-month-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 12px;
}
.hn-month-head h4 {
  font-size: 15px;
}
.hn-month-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.hn-meet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hn-meet {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px 14px 14px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  color: inherit;
  text-decoration: none !important;
  transition: border-color var(--t), box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.hn-meet:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
  transform: translateX(3px);
}
.hn-meet.is-next {
  border-color: var(--accent-line);
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}
.hn-meet[data-status="cancelada"] {
  opacity: 0.72;
}
.hn-meet-date {
  width: 64px;
  padding: 8px 0 9px;
  border-radius: 15px;
  box-shadow: none;
  background: var(--surface-2);
}
.hn-meet-date b {
  font-size: 24px;
}
.hn-meet-date.is-lg {
  width: 84px;
  padding: 10px 0 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.hn-meet-date.is-lg b {
  font-size: 36px;
}
.hn-meet-main {
  flex: 1;
  min-width: 0;
}
.hn-meet-main h4 {
  font-size: 15px;
}
.hn-meet-main p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-2);
}
.hn-meet-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-3);
}
.hn-meet-stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hn-meet-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.hn-meet-go {
  color: var(--ink-4);
  transition: transform 0.3s var(--ease-out), color var(--t);
}
.hn-meet:hover .hn-meet-go {
  color: var(--accent-ink);
  transform: translateX(3px);
}

/* ==========================================================================
   Minuta
   ========================================================================== */
.hn-mhead {
  padding: 22px 24px 18px;
  border-color: var(--accent-line);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface) 45%);
}
.hn-mhead[data-status="realizada"] {
  border-color: color-mix(in srgb, var(--success) 35%, var(--line));
  background: linear-gradient(160deg, color-mix(in srgb, var(--success) 6%, var(--surface)), var(--surface) 45%);
}
.hn-mhead[data-status="cancelada"] {
  border-color: color-mix(in srgb, var(--danger) 30%, var(--line));
}
.hn-mhead-top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.hn-mhead-title {
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.025em;
  margin-top: 6px;
}
.hn-mhead-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.hn-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-3);
  transition: border-color var(--t), box-shadow var(--t);
  min-width: 0;
}
.hn-inline:focus-within {
  border-color: var(--accent);
  box-shadow: var(--ring);
}
.hn-inline input {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  color: var(--ink);
  min-width: 0;
}
.hn-inline input[type="time"] {
  width: 96px;
}
.hn-inline.grow {
  flex: 1 1 220px;
}
.hn-inline.grow input {
  width: 100%;
}
.seg.hn-seg-sm {
  padding: 3px;
  border-radius: 10px;
}
.seg.hn-seg-sm button {
  height: 28px;
  padding: 0 11px;
  font-size: 12px;
  border-radius: 8px;
}
.seg.hn-seg-sm .seg-thumb {
  top: 3px;
  bottom: 3px;
  border-radius: 8px;
}
.hn-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  background: var(--surface-3);
  white-space: nowrap;
  flex-shrink: 0;
}
.hn-save[data-state="saving"] {
  color: var(--accent-ink);
  background: var(--accent-soft);
}
.hn-save[data-state="saved"] {
  color: var(--success);
  background: var(--success-soft);
}
.hn-save[data-state="error"] {
  color: var(--danger);
  background: var(--danger-soft);
}
.hn-save .spin {
  animation: spin 0.9s linear infinite;
}
.hn-attend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.hn-att-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hn-att {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px 0 6px;
  border-radius: 999px;
  border: 1px dashed var(--line-2);
  background: transparent;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
  transition: background var(--t), border-color var(--t), color var(--t), opacity var(--t);
}
.hn-att .avatar {
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter var(--t), opacity var(--t);
}
.hn-att i {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface-3);
  color: transparent;
  transition: background var(--t), color var(--t);
}
.hn-att.is-on {
  border-style: solid;
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--ink);
}
.hn-att.is-on .avatar {
  filter: none;
  opacity: 1;
}
.hn-att.is-on i {
  background: var(--accent);
  color: var(--accent-contrast);
}
.hn-mhead-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.hn-closed {
  margin-top: 14px;
  align-items: center;
}
.hn-closed svg {
  color: var(--success);
}
.hn-sec .card-head h3 {
  font-size: 16px;
}
.hn-agenda-meter {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hn-agenda-meter .progress > span {
  transition: none;
}

/* Temas */
.hn-topics {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hn-topic {
  --st: var(--warning);
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--t), box-shadow 0.3s var(--ease-out);
}
.hn-topic::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--st);
  transition: background 0.35s;
}
.hn-topic[data-status="tratado"] {
  --st: var(--success);
}
.hn-topic[data-status="pospuesto"] {
  --st: var(--ink-4);
}
.hn-topic:focus-within {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.hn-topic-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 8px 8px;
}
.hn-handle {
  display: grid;
  place-items: center;
  width: 26px;
  height: 30px;
  border-radius: 8px;
  color: var(--ink-4);
  cursor: grab;
  touch-action: none;
  flex-shrink: 0;
}
.hn-handle:hover {
  background: var(--surface-3);
  color: var(--ink-2);
}
.hn-handle:active {
  cursor: grabbing;
}
.hn-topic-n {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--st) 14%, transparent);
  color: color-mix(in srgb, var(--st) 85%, var(--ink));
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.35s, color 0.35s;
}
.hn-topic-title {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  outline: 0;
  text-overflow: ellipsis;
  transition: border-color var(--t), background var(--t);
}
.hn-topic-title:hover {
  background: var(--surface-2);
}
.hn-topic-title:focus {
  border-color: var(--accent-line);
  background: var(--surface);
}
.hn-topic[data-status="pospuesto"] .hn-topic-title {
  color: var(--ink-3);
}
.hn-topic-seg {
  flex-shrink: 0;
}
.hn-topic[data-status="tratado"] .hn-topic-seg .seg-thumb {
  background: var(--success-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--success) 35%, transparent);
}
.hn-topic[data-status="tratado"] .hn-topic-seg button.is-active {
  color: var(--success);
}
.hn-topic[data-status="pendiente"] .hn-topic-seg button.is-active {
  color: var(--warning);
}
.hn-topic-body {
  padding: 0 16px 14px 46px;
}
.hn-carried {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 500;
}
.hn-tf {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hn-tf + .hn-tf {
  margin-top: 10px;
}
.hn-tf > label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.hn-tf .textarea {
  min-height: 0;
  resize: none;
  overflow: hidden;
  line-height: 1.5;
  padding: 9px 12px;
  font-size: 13.5px;
}
.hn-tf-decision .textarea {
  border-style: dashed;
}
.hn-tf-decision.has-value .textarea {
  border-style: solid;
  border-color: var(--accent-line);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.hn-tf-decision.has-value > label {
  color: var(--accent-ink);
}
.hn-topic-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.hn-sort-ghost {
  position: fixed;
  z-index: 300;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-line) !important;
}
.hn-topic-ghost .hn-topic-head {
  padding: 12px 14px 12px 10px;
  color: var(--ink-3);
}
.hn-topic-ghost b {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
}
.hn-sort-ph {
  border-radius: 16px;
  border: 2px dashed var(--accent-line);
  background: var(--accent-soft);
}
.hn-add-topic {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 6px 6px 12px;
  border-radius: 14px;
  border: 1px dashed var(--line-2);
  background: var(--surface-2);
  transition: border-color var(--t), background var(--t);
}
.hn-add-topic:focus-within {
  border-style: solid;
  border-color: var(--accent-line);
  background: var(--surface);
}
.hn-add-ico {
  color: var(--accent-ink);
  display: grid;
}
.hn-add-topic .input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding-left: 4px;
}
.hn-add-topic .select {
  width: 200px;
  height: 34px;
  font-size: 12.5px;
}

/* Tareas de la reunión */
.hn-quick-task,
.hn-add-kr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 150px 112px auto;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.hn-quick-task .input,
.hn-quick-task .select,
.hn-add-kr .input {
  height: 36px;
  font-size: 13px;
}
.hn-add-kr {
  grid-template-columns: minmax(0, 1fr) 90px 90px 100px auto;
  margin-top: 14px;
}
/* La descripción de la tarea ocupa toda la fila; responsable, fecha y prioridad debajo */
.hn-quick-task {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 120px auto;
}
.hn-quick-task .input[name="title"] {
  grid-column: 1 / -1;
}
.hn-task-list {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}
.hn-task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 6px;
  border-bottom: 1px dashed var(--line);
  color: inherit;
  text-decoration: none !important;
}
.hn-task:last-child {
  border-bottom: 0;
}
a.hn-task:hover .hn-task-title {
  color: var(--accent-ink);
}
.hn-task-title {
  display: block;
  max-width: 100%;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--t);
}
button.hn-task-title:hover {
  color: var(--accent-ink);
}
.hn-task-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-3);
  min-width: 0;
}
.hn-task-sub .badge {
  height: 20px;
  font-size: 10.5px;
}
.hn-task.is-done .hn-task-title {
  color: var(--ink-3);
  text-decoration: line-through;
}
.hn-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid var(--line-2);
  color: transparent;
  background: var(--surface);
  flex-shrink: 0;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.hn-check:hover {
  border-color: var(--success);
}
.hn-check.is-on {
  background: var(--success);
  border-color: var(--success);
  color: var(--accent-contrast);
}

/* Avances en la minuta */
.hn-upd-body {
  margin-top: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--accent-line);
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
  overflow: hidden;
}

/* Lateral de la minuta */
.hn-side {
  position: sticky;
  top: calc(var(--topbar-h) + 18px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hn-msum {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hn-msum-title {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  margin: 3px 0 2px;
}
.hn-msum-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.hn-msum-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.hn-msum-grid b {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.1;
  display: inline-block;
}
.hn-msum-grid small {
  font-size: 10.5px;
  color: var(--ink-3);
}
.hn-side .hn-tf .textarea {
  min-height: 84px;
}
.hn-wa-card .card-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.hn-wa-preview {
  margin: 0;
  max-height: 52vh;
  overflow: auto;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
}

/* ==========================================================================
   Registro de avance (modal y minuta)
   ========================================================================== */
.hn-pm-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
  font-size: 14px;
}
.hn-prog-compare {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hn-prog-num {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.hn-prog-num b {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink-3);
  display: inline-block;
}
.hn-prog-num.is-after b {
  color: var(--accent-ink);
  font-size: 30px;
}
.hn-prog-arrow {
  color: var(--ink-4);
}
.hn-prog-track {
  position: relative;
  height: 10px;
  margin: 12px 0 16px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.hn-prog-track span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: inherit;
}
.hn-prog-was {
  background: repeating-linear-gradient(-45deg, var(--line-2) 0 4px, transparent 4px 8px);
  z-index: 1;
}
.hn-prog-now {
  background: var(--accent);
  opacity: 0.92;
}
.hn-kr-edit {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hn-kr-edit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.hn-kr-input {
  width: 150px;
  flex-shrink: 0;
}
.hn-kr-input .input {
  height: 34px;
}
.hn-range-wrap {
  padding: 2px 0;
}
.hn-range {
  --v: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent) var(--v), var(--surface-3) var(--v));
  outline: 0;
  cursor: pointer;
}
.hn-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease-out);
}
.hn-range::-webkit-slider-thumb:hover,
.hn-range:active::-webkit-slider-thumb {
  transform: scale(1.15);
}
.hn-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
  box-shadow: var(--shadow);
}
.hn-range:focus-visible::-webkit-slider-thumb {
  box-shadow: var(--ring);
}
.hn-range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
}
[data-types] .chip svg {
  color: var(--c);
}
[data-types] .chip.is-active {
  background: color-mix(in srgb, var(--c) 13%, var(--surface));
  border-color: color-mix(in srgb, var(--c) 45%, transparent);
  color: var(--ink);
}

/* ==========================================================================
   Objetivos
   ========================================================================== */
.hn-osum {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  margin-bottom: 18px;
}
.hn-osum-title {
  font-size: 18px;
  font-weight: 500;
  margin: 4px 0 12px;
}
.hn-osum-title b {
  font-weight: 700;
}
.hn-dist {
  display: flex;
  gap: 3px;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
}
.hn-dist span {
  background: var(--c);
  min-width: 6px;
}
.hn-obj-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}
.hn-obj-card {
  --c: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  color: inherit;
  text-decoration: none !important;
  overflow: hidden;
  transition: border-color var(--t), box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.hn-obj-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--c);
  opacity: 0.85;
}
.hn-obj-card:hover {
  border-color: color-mix(in srgb, var(--c) 40%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.hn-obj-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hn-obj-card-body {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hn-obj-card h4 {
  font-size: 15.5px;
  line-height: 1.3;
}
.hn-obj-owner {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.hn-obj-card-krs,
.hn-obj-card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-3);
}
.hn-obj-card-krs span,
.hn-obj-card-foot span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hn-obj-card-foot {
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.hn-kr-dots {
  gap: 3px !important;
}
.hn-kr-dots i {
  width: 14px;
  height: 5px;
  border-radius: 3px;
  background: var(--surface-3);
}
.hn-kr-dots i.is-on {
  background: var(--c);
}

/* Detalle */
.hn-ohead {
  --c: var(--accent);
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 24px 26px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 8%, var(--surface)), var(--surface) 50%);
  border-color: color-mix(in srgb, var(--c) 30%, var(--line));
}
.hn-ohead-ring .ring-val {
  font-size: 30px;
  letter-spacing: -0.03em;
}
.hn-ohead-title {
  font-size: clamp(21px, 2.3vw, 28px);
  letter-spacing: -0.025em;
  margin-top: 8px;
}
.hn-ohead-desc {
  margin-top: 6px;
  max-width: 72ch;
}
.hn-ohead-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-2);
}
.hn-ohead-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hn-ohead-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex-shrink: 0;
}
.hn-ohead-actions .icon-btn {
  align-self: flex-end;
}
.hn-status-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border-radius: 999px;
  color: var(--ink-3);
}
.hn-status-btn:hover .badge {
  filter: brightness(0.95);
}
.hn-krs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hn-kr {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  transition: border-color var(--t);
}
.hn-kr:hover {
  border-color: var(--line-2);
}
.hn-kr .hn-check {
  margin-top: 1px;
}
.hn-kr-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.hn-kr-title {
  font-size: 13.5px;
}
.hn-kr.is-done .hn-kr-title {
  color: var(--success);
}
.hn-kr-pct {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}
.hn-kr-vals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-3);
}
.hn-kr-vals b {
  color: var(--ink);
}
.hn-kr-cur {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hn-kr-cur .input {
  width: 110px;
  height: 30px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
}
.hn-pchart-wrap {
  position: relative;
  min-height: 190px;
}
.hn-pchart {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.hn-pchart .grid-line {
  stroke: var(--line);
  stroke-dasharray: 3 4;
}
.hn-pchart .axis-label {
  fill: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
}
.hn-pchart-dot {
  cursor: help;
}
.hn-ostats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.hn-ostats > div {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.hn-ostats b {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
}
.hn-ostats small {
  font-size: 11px;
  color: var(--ink-3);
}
.hn-topic-refs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hn-topic-ref {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none !important;
  transition: border-color var(--t), background var(--t);
}
.hn-topic-ref:hover {
  border-color: var(--accent-line);
  background: var(--surface-2);
}
.hn-topic-ref-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 44px;
  padding: 5px 0;
  border-radius: 10px;
  background: var(--accent-soft);
  line-height: 1.05;
  flex-shrink: 0;
}
.hn-topic-ref-date small,
.hn-topic-ref-date span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-ink);
}
.hn-topic-ref-date b {
  font-family: var(--font-display);
  font-size: 17px;
}

/* ==========================================================================
   Bitácora
   ========================================================================== */
.hn-log-stats {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.hn-log-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.hn-log-stat .li-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.hn-log-stat b {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hn-log-stat span:last-child {
  font-size: 12px;
  color: var(--ink-3);
}
.hn-log-stat.is-main {
  border-color: var(--accent-line);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface));
}
.hn-log-stat.is-main small {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.hn-log-stat.is-main b {
  font-size: 32px;
}
.hn-log-month {
  margin-bottom: 20px;
}
.hn-more {
  display: flex;
  justify-content: center;
  margin: 8px 0 20px;
}

/* ==========================================================================
   Miembros (tarjetas del CRUD)
   ========================================================================== */
.hn-member {
  height: 100%;
  padding: 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: border-color var(--t), box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.hn-member:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.hn-member.is-off {
  opacity: 0.6;
}
.hn-member-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hn-member-top h4 {
  font-size: 15.5px;
}
.hn-member-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 14px;
}
.hn-member-stats > div {
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.hn-member-stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
}
.hn-member-stats small {
  font-size: 10.5px;
  color: var(--ink-3);
}
.hn-member-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
}
.hn-member-contact a,
.hn-member-contact span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .hn-hero {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .hn-hero-cal {
    display: none;
  }
  .hn-log-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hn-log-stat.is-main {
    grid-column: span 3;
  }
}
@media (max-width: 1100px) {
  .hn-side {
    position: static;
  }
  .hn-quick-task {
    grid-template-columns: minmax(0, 1fr) 1fr 1fr;
  }
  .hn-quick-task .input[name="title"] {
    grid-column: 1 / -1;
  }
  .hn-ohead {
    flex-wrap: wrap;
  }
  .hn-ohead-actions {
    flex-direction: row;
    width: 100%;
  }
  .hn-ohead-actions .icon-btn {
    align-self: auto;
    margin-left: auto;
  }
}
@media (max-width: 860px) {
  .hn-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 20px;
  }
  .hn-hero-side {
    flex-direction: row;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px dashed var(--accent-line);
    justify-content: center;
    gap: 22px;
  }
  .hn-board-stats,
  .hn-mini-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hn-next {
    flex-wrap: wrap;
  }
  .hn-next .hn-cd {
    order: 3;
    width: 100%;
  }
  .hn-topic-head {
    flex-wrap: wrap;
  }
  .hn-topic-title {
    flex-basis: calc(100% - 100px);
  }
  .hn-topic-seg {
    order: 5;
    margin-left: 60px;
  }
  .hn-topic-body {
    padding-left: 16px;
  }
  .hn-add-topic {
    flex-wrap: wrap;
  }
  .hn-add-topic .select {
    width: auto;
    flex: 1;
  }
  .hn-add-kr {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .hn-add-kr .input[name="title"] {
    grid-column: 1 / -1;
  }
  .hn-osum {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .hn-osum-ring {
    align-self: center;
  }
  .hn-mhead-top {
    flex-wrap: wrap;
  }
  .hn-mhead-top .hn-meet-date.is-lg {
    display: none;
  }
}
@media (max-width: 560px) {
  .hn-cd-u {
    min-width: 0;
    flex: 1;
  }
  .hn-hero-side {
    flex-direction: column;
  }
  .hn-meet {
    gap: 12px;
    padding: 12px;
  }
  .hn-meet-side {
    display: none;
  }
  .hn-meet-date {
    width: 54px;
  }
  .hn-quick-task {
    grid-template-columns: 1fr 1fr;
  }
  .hn-quick-task .btn {
    grid-column: 1 / -1;
  }
  .hn-kr-edit-row {
    flex-wrap: wrap;
  }
  .hn-kr-input {
    width: auto;
    flex: 1;
  }
  .hn-log-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hn-log-stat.is-main {
    grid-column: span 2;
  }
  .hn-msum-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hn-obj-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .hn-ostats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   Impresión de la minuta (se genera una hoja limpia y se oculta el resto)
   ========================================================================== */
.hn-print-sheet {
  display: none;
}
@media print {
  html.hn-printing,
  html.hn-printing body {
    background: var(--hn-print-paper) !important;
    background-image: none !important;
    height: auto;
  }
  html.hn-printing body > :not(.hn-print-sheet) {
    display: none !important;
  }
  html.hn-printing .hn-print-sheet {
    display: block;
    color: var(--hn-print-ink);
    font-family: var(--font-body);
    font-size: 11.5pt;
    line-height: 1.5;
  }
  @page {
    margin: 16mm 14mm;
  }
  .hn-print-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--hn-print-accent);
    margin-bottom: 14px;
  }
  .hn-print-brand {
    font-family: var(--font-mono);
    font-size: 8.5pt;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hn-print-accent);
  }
  .hn-print-sheet h1 {
    font-family: var(--font-display);
    font-size: 20pt;
    margin: 4px 0 2px;
    color: var(--hn-print-ink);
  }
  .hn-print-sheet h2 {
    font-family: var(--font-display);
    font-size: 12.5pt;
    margin: 16px 0 6px;
    color: var(--hn-print-ink);
    break-after: avoid;
  }
  .hn-print-sheet p {
    margin: 4px 0;
    white-space: pre-wrap;
  }
  .hn-print-status {
    padding: 4px 10px;
    border: 1px solid var(--hn-print-line);
    border-radius: 999px;
    font-size: 9pt;
    color: var(--hn-print-soft);
  }
  .hn-print-topics {
    padding-left: 18px;
    margin: 0;
  }
  .hn-print-topics li {
    margin-bottom: 10px;
    break-inside: avoid;
  }
  .hn-print-row {
    display: flex;
    gap: 10px;
    align-items: baseline;
  }
  .hn-print-tag {
    font-size: 8.5pt;
    color: var(--hn-print-soft);
    border: 1px solid var(--hn-print-line);
    border-radius: 999px;
    padding: 0 7px;
  }
  .hn-print-muted {
    font-size: 9.5pt;
    color: var(--hn-print-soft);
  }
  .hn-print-dec {
    padding: 4px 10px;
    border-left: 3px solid var(--hn-print-accent);
  }
  .hn-print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10pt;
  }
  .hn-print-table th,
  .hn-print-table td {
    text-align: left;
    padding: 5px 6px;
    border-bottom: 1px solid var(--hn-print-line);
  }
  .hn-print-sheet footer {
    margin-top: 22px;
    padding-top: 8px;
    border-top: 1px solid var(--hn-print-line);
    font-size: 8.5pt;
    color: var(--hn-print-soft);
  }
}
