/* SyntaxFlow Familia — the shared household page (hogar-ui.js).
   On top of px-familia.css; colours only from the tokens (light and dark).
   Phone first: one column, controls at least 42 px high, nothing wider than
   the screen. States carry words, never colour alone. */
.hg-app{ gap:16px; }
.hg-msg:empty{ display:none; }
.hg-msg{ margin:0; padding:10px 12px; border-left:4px solid var(--px); background:var(--surface-2); border-radius:0 8px 8px 0; color:var(--ink); }
.hg-msg.ok{ border-left-color:var(--pass); }
.hg-msg.fail{ border-left-color:var(--fail); }
.hg-msg .btn{ margin:8px 0 0; }
.hg-box,.hg-editor{ display:grid; gap:12px; padding:16px; border:1px solid var(--rule); border-top:4px solid var(--px); border-radius:12px; background:var(--surface); min-width:0; }
.hg-box h2,.hg-editor h3{ margin:0; }
.hg-box p{ margin:0; max-width:64ch; }
.hg-field{ display:grid; gap:4px; min-width:0; }
.hg-field label{ font-weight:600; font-size:.94rem; }
.hg-field input,.hg-field select{ min-height:42px; max-width:100%; }
.hg-field .hint{ margin:0; }
.hg-row{ display:flex; flex-wrap:wrap; align-items:end; gap:10px 16px; }
.hg-row > .hg-field{ flex:1 1 140px; }
.hg-acts{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0; }
.hg-acts select{ min-height:42px; max-width:100%; }
.hg-head{ display:grid; gap:4px; }
.hg-head h2{ margin:0; font-size:1.4rem; }
.hg-head .hint{ margin:0; }
.hg-head select{ justify-self:start; min-height:42px; max-width:100%; }
.hg-news{ padding:12px 14px; border:1px solid var(--rule); border-left:4px solid var(--px); border-radius:8px; background:var(--surface); }
.hg-news p{ margin:0 0 6px; }
.hg-news ul{ margin:0; padding-left:18px; }
.hg-tabs{ display:flex; flex-wrap:wrap; gap:6px; border-bottom:1px solid var(--rule); }
.hg-tab{ font:inherit; min-height:42px; padding:8px 14px; border:1px solid var(--rule); border-bottom:0; border-radius:8px 8px 0 0; background:var(--surface-2); color:var(--ink-2); cursor:pointer; }
.hg-tab[aria-selected="true"]{ background:var(--surface); color:var(--ink); font-weight:650; box-shadow:inset 0 3px 0 var(--px); }
.hg-tab:focus-visible{ outline:3px solid var(--px); outline-offset:2px; }
.hg-panel{ display:grid; gap:12px; min-width:0; }
.hg-day{ margin:8px 0 0; font-size:1.02rem; }
.hg-list{ margin:0; padding-left:18px; display:grid; gap:4px; }
.hg-items{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.hg-item{ display:grid; gap:6px; padding:12px 14px; border:1px solid var(--rule); border-radius:10px; background:var(--surface); min-width:0; overflow-wrap:anywhere; }
.hg-item.is-done .hg-item-h strong{ text-decoration:line-through; color:var(--ink-2); }
.hg-item p{ margin:0; }
.hg-item-h{ display:flex; flex-wrap:wrap; gap:8px; align-items:baseline; }
.hg-kind{ font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-3); }
.hg-when{ color:var(--ink-2); }
.hg-who{ font-size:.92rem; }
.hg-chips{ display:flex; flex-wrap:wrap; gap:6px; }
.hg-chip{ display:inline-flex; align-items:center; gap:6px; padding:2px 10px; border-radius:999px; border:1px solid var(--rule); font-size:.86rem; }
.hg-chip::before{ content:""; width:10px; height:10px; border-radius:50%; background:var(--c, var(--px)); flex:0 0 10px; }
.hg-check{ display:flex; gap:8px; align-items:flex-start; min-height:32px; }
.hg-check input{ width:20px; height:20px; flex:0 0 20px; margin:2px 0 0; }
.hg-profs{ border:1px solid var(--rule); border-radius:8px; padding:8px 12px; display:grid; gap:4px; }
.hg-people{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.hg-people li{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; padding:8px 0; border-bottom:1px solid var(--rule); }
.hg-history{ margin:0; padding-left:20px; display:grid; gap:6px; }
.hg-history time{ color:var(--ink-3); font-variant-numeric:tabular-nums; }
.hg-copybox{ width:100%; min-height:10em; }
#hg-link-url{ width:100%; font-family:var(--mono); font-size:.85rem; }
.btn.danger{ border-color:var(--fail); color:var(--fail); }
@media print{
  .hg-tabs,.hg-acts,.noprint,.hg-news,.hg-msg{ display:none !important; }
}
