.hs-page {
  display: grid;
  gap: 1.1rem;
  color: var(--ink);
  min-width: 0;
}
.hs-page button { cursor: pointer; font: inherit; }
.hs-page :is(button,input,select):focus-visible, .hs-choice input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.hs-panel {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.3rem 1.5rem;
}
.hs-page h3 { font-size: 1rem; margin: 0; color: var(--ink); letter-spacing: .01em; }
.hs-panel-heading, .hs-bar, .hs-record-progress, .hs-tools { display: flex; align-items: center; gap: 1rem; }
.hs-panel-heading, .hs-bar { justify-content: space-between; }
.hs-tools { gap: .4rem; }
.hs-page button.hs-primary, .hs-page button.hs-secondary {
  min-height: 42px;
  padding: .5rem 1rem;
  border-radius: 10px;
  font-weight: 650;
  font-size: .88rem;
  white-space: nowrap;
}
.hs-page .hs-primary { background: #293e60; color: #fff; border: 1px solid #293e60; }
.hs-page .hs-primary:hover { background: #364f78; }
.hs-page .hs-secondary { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.hs-page .hs-secondary:hover, .hs-page .hs-plain:hover, .hs-text:hover { background: var(--soft); }
.hs-week { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: .4rem; padding-top: .8rem; }
.hs-page .hs-day { background: var(--soft); border: 1px solid transparent; color: var(--ink); border-radius: 12px; min-width: 0; min-height: 76px; display: grid; gap: 2px; justify-items: center; align-content: center; }
.hs-day span { font-size: .8rem; color: var(--muted); }
.hs-day b { font-size: 1.22rem; font-variant-numeric: tabular-nums; font-weight: 650; }
.hs-day i { background: transparent; width: 4px; height: 4px; border-radius: 50%; }
.hs-day i.marked { background: var(--accent); }
.hs-page .hs-day.active { background: #293e60; color: #fff; }
.hs-day.active span { color: #e0e9fa; }
.hs-day.active i.marked { background: #f3c4ae; }
.hs-day:hover:not(.active) { border-color: var(--accent); }
.hs-nav { display: flex; gap: .3rem; }
.hs-page .hs-plain { display: grid; place-content: center; width: 42px; height: 42px; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.4rem; }
.hs-record-progress { flex-wrap: wrap; }
.hs-data { color: var(--muted); font-size: .88rem; margin-top: .15rem; }
.hs-data b { font-size: 1.65rem; font-variant-numeric: tabular-nums; font-weight: 620; color: var(--ink); }
.hs-meter { min-width: 30px; flex: 1; height: 7px; background: var(--soft); border-radius: 8px; overflow: hidden; }
.hs-meter i { display: block; background: var(--accent); height: 100%; border-radius: inherit; }
.hs-group-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; align-items: start; }
.hs-group { padding-bottom: .6rem; }
.hs-group h3 { margin-bottom: .4rem; }
.hs-row + .hs-row { border-top: 1px solid var(--line); }
.hs-page .hs-entry { display: flex; gap: .65rem; width: 100%; align-items: center; min-height: 58px; padding: .5rem 0; border: 0; background: transparent; text-align: left; color: var(--ink); }
.hs-entry strong { font-size: .9rem; font-weight: 550; overflow-wrap:anywhere; }
.hs-entry:hover strong { color: var(--accent); }
.hs-icon, .hs-block-icon { flex: 0 0 auto; height: 2.15rem; width: 2.15rem; border-radius: 9px; display: grid; place-content: center; background: var(--tint); color: var(--accent); }
.hs-result { margin-left: auto; text-align: right; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.hs-check { flex:0 0 auto; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--muted); }
.hs-done .hs-check { background: var(--accent); border-color: var(--accent); color: var(--card); display: grid; place-content: center; }
.hs-row-tools { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:.3rem; padding-bottom:.35rem; }
.hs-page .hs-text { min-height: 40px; padding: .25rem .55rem; color: var(--accent); background: transparent; border: 0; border-radius: 7px; font-size:.85rem; }
.hs-page .hs-text:hover { background: var(--soft); }
.hs-note { padding: .85rem 1rem; background: var(--tint); color: var(--ink); align-items: center; line-height: 1.65; display: flex; gap: .7rem; border-radius: 12px; font-size: .88rem; }
.hs-note svg { flex: 0 0 auto; color: var(--accent); }
.hs-hint, .hs-empty { margin: .5rem 0 1rem; line-height: 1.7; font-size: .88rem; color: var(--muted); }
.hs-meta { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.hs-chart { display: flex; justify-content: space-around; gap: .4rem; margin-top: .8rem; }
.hs-chart > div { display: grid; justify-items:center; gap: .3rem; width: 12%; }
.hs-chart small, .hs-chart span { font-size: .78rem; color: var(--muted); }
.hs-track { border-radius: 4px; background: var(--soft); width: min(70%, 40px); height: 64px; display: flex; align-items: flex-end; overflow: hidden; }
.hs-track i { width: 100%; display: block; background: var(--accent); }
.hs-segment { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.hs-segment button { background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 9px; min-height: 38px; padding: .35rem .8rem; font-size: .86rem; white-space: nowrap; }
.hs-segment .selected { background: var(--card); border-color: var(--line); color: var(--ink); font-weight: 650; }
.hs-block { display: grid; grid-template-columns: 3.3rem auto minmax(0,1fr) auto; align-items:center; gap:.9rem; border-top: 1px solid var(--line); padding: .8rem 0; }
.hs-time { font-size: .96rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.hs-block-body { min-width: 0; display: grid; gap: .2rem; }
.hs-block-body strong { overflow-wrap: anywhere; font-size: .95rem; }
.hs-actions { display: flex; align-items: center; }
.hs-cat-exercise { background: #e8f2ec; color: #426b59; }
.hs-cat-focus { background: #f2e8e1; color: #8c5740; }
.hs-cat-rest { background: #edeaf6; color: #675687; }
[data-theme=dark] .hs-cat-exercise { background: #293b39; color: #a0c9b3; }
[data-theme=dark] .hs-cat-focus { background: #42372f; color: #e3b89e; }
[data-theme=dark] .hs-cat-rest { background: #37354b; color: #bfafd9; }
.hs-form-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; }
.hs-choice { border:0; padding:0; margin:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }
.hs-choice legend { margin-bottom:.6rem; }
.hs-choice label { display:flex!important; align-items:center; gap:.5rem; border:1px solid var(--line); padding:.7rem; border-radius:9px; cursor:pointer; }
.hs-choice input[type=radio] { width:1rem; height:1rem; margin:0; accent-color:var(--accent); }
@media (max-width: 850px) {
  .hs-group-grid { grid-template-columns:1fr; }
}
@media (max-width: 560px) {
  .hs-page { gap:.75rem; }
  .hs-panel { padding:1rem; border-radius:14px; }
  .hs-group-grid { gap:.75rem; }
  .hs-calendar { padding:.8rem; }
  .hs-week { gap:.2rem; }
  .hs-page .hs-day { min-height:62px; border-radius:8px; }
  .hs-record-progress { gap:.6rem; }
  .hs-record-progress .hs-tools { width:100%; }
  .hs-entry { gap:.45rem; }
  .hs-icon { height:1.85rem; width:1.85rem; }
  .hs-bar { align-items:flex-start; flex-wrap:wrap; gap:.6rem; }
  .hs-block { grid-template-columns: 3rem minmax(0,1fr) auto; gap:.4rem; }
  .hs-block-icon { display:none; }
  .hs-actions { flex-direction:column; gap:.05rem; }
  .hs-actions .hs-text { min-height:36px; }
}
