.hb-screen { min-width:0; color:var(--ink); }
.hb-tabs { display:flex; flex-wrap:wrap; gap:4px; border-bottom:1px solid var(--line); margin-bottom:15px; }
.hb-tab { font:inherit; font-size:.87rem; font-weight:650; color:var(--pine); padding:9px 12px; border:0; border-bottom:2px solid transparent; background:transparent; }
.hb-tab[aria-pressed=true] { background:var(--mint); border-bottom-color:var(--pine); border-radius:7px 7px 0 0; }
.hb-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.16fr); gap:16px; align-items:start; }
.hb-card { min-width:0; padding:clamp(16px,2vw,25px); overflow-wrap:anywhere; }
.hb-card:focus { outline:none; }
.hb-card:focus-visible { outline:2px solid var(--pine); }
.hb-kicker { text-transform:uppercase; letter-spacing:.1em; font-size:.7rem; font-weight:650; color:var(--muted); }
.hb-card h2 { font-size:clamp(1.1rem,2.2vw,1.55rem); margin:.3rem 0 1rem; line-height:1.2; }
.hb-muted,.hb-context,.hb-time { color:var(--muted); font-size:.85rem; }
.hb-prose { white-space:pre-wrap; }
.hb-context { margin-top:10px; }
.hb-search { width:100%; padding:8px 11px; border:1px solid var(--line); border-radius:8px; background:white; color:var(--ink); font:inherit; margin-bottom:10px; }
.hb-note-list { max-height:60vh; overflow:auto; }
.hb-note { display:grid; gap:4px; width:100%; border:0; border-top:1px solid var(--line); background:transparent; color:var(--ink); text-align:start; padding:10px; }
.hb-note small { color:var(--muted); }
.hb-note[aria-pressed=true],.hb-bed-day[aria-pressed=true] { background:var(--mint); border-radius:7px; }
.hb-line { display:grid; grid-template-columns:5rem 1fr; gap:10px; }
.hb-line,.hb-bed-entry { padding:10px 0; border-top:1px solid var(--line); }
.hb-bed-entry summary { cursor:pointer; color:var(--pine); font-weight:600; }
.hb-bed-entry .hb-prose { margin-top:8px; }
.hb-big { margin-bottom:10px; color:var(--pine); font-size:1.2rem; font-weight:650; }
.hb-bed-day { width:100%; display:grid; grid-template-columns:minmax(5.5rem,auto) minmax(1rem,1fr) 4.2rem; gap:7px; align-items:center; border:0; border-top:1px solid var(--line); background:transparent; padding:8px; text-align:start; color:var(--ink); }
.hb-bed-day progress { width:100%; height:8px; accent-color:var(--pine); }
.hb-bed-day b { text-align:end; }
@media(max-width:760px) {
  .hb-columns { grid-template-columns:minmax(0,1fr); gap:10px; }
  .hb-tabs { gap:0; }
  .hb-tab { font-size:.78rem; padding:8px; min-height:40px; }
  .hb-note-list { max-height:42vh; }
}
