@import url('./family-access.css');
@import url('./kitchen-mode.css');

.hh-page {
  --hh-ink: #263d3f;
  --hh-muted: #60716c;
  --hh-line: #e1e5dc;
  color: var(--hh-ink);
  min-width: 0;
}
.hh-page h1, .hh-page h2, .hh-page h3, .hh-page p { margin: 0; }
.hh-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.7rem; }
.hh-heading p { color: var(--hh-muted); margin-top: .45rem; }
.hh-heading .btn { flex: none; }
.hh-page h2 { font-size: 1.23rem; line-height: 1.28; letter-spacing: -.025em; }
.hh-weekbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem; margin: 0 0 1.2rem; }
.hh-week, .hh-week-nav, .hh-section-title, .hh-board-heading, .hh-person-top, .hh-assignee, .hh-settings-heading, .hh-identity { display: flex; align-items: center; }
.hh-week { gap: .65rem; }
.hh-week h2 { font-size: 1.13rem; }
.hh-week-icon, .hh-settings-heading > span { background: #e6eee3; color: #456850; border-radius: .7rem; display: grid; place-items: center; }
.hh-week-icon { width: 2.25rem; height: 2.25rem; }
.hh-week-nav {
  background: white; border: 1px solid var(--hh-line); border-radius: .7rem;
  padding: .12rem; gap: .1rem;
}
.hh-week-nav .icon-btn, .hh-current-week { height: 2.35rem; border: 0; background: transparent; padding: 0 .5rem; color: var(--hh-ink); border-radius: .4rem; }
.hh-current-week { font: inherit; font-size: .88rem; font-weight: 650; cursor: pointer; }
.hh-week-nav button:hover, .hh-edit:hover { background: #f1f4ec; }
.hh-progress, .hh-board, .hh-settings-card {
  border: 1px solid var(--hh-line); border-radius: 1.1rem; background: #fff;
  box-shadow: 0 2px 5px #29382a04;
}
.hh-progress { margin-bottom: 1.2rem; padding: 1.35rem 1.45rem; }
.hh-section-title { justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.15rem; }
.hh-section-title > span, .hh-count { font-size: .83rem; color: var(--hh-muted); }
.hh-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,7.8rem),1fr)); gap: .65rem; }
.hh-person {
  display: grid; align-content: start; text-align: left; gap: .65rem; min-width: 0; padding: .75rem .85rem;
  color: var(--hh-ink); border: 1px solid #e1e5dc; border-radius: .75rem; background: #fbfcf9; font: inherit; cursor: pointer;
}
.hh-person:hover, .hh-person.is-selected { border-color: #7d9682; background: #f2f6ef; }
.hh-person.is-selected { outline: 1px solid #7d9682; }
.hh-person-top { gap: .55rem; min-width: 0; }
.hh-person-name { font-weight: 650; overflow-wrap: anywhere; min-width: 0; line-height: 1.2; }
.hh-avatar {
  width: 2.15rem; height: 2.15rem; flex: none; display: inline-grid; place-items: center; border-radius: 50%;
  background-color: #e3ebe3; background-color: color-mix(in srgb, var(--person-color) 28%, white);
  color: #2a3c37; font-size: .88rem; font-weight: 750;
}
.hh-avatar-small { width: 1.55rem; height: 1.55rem; font-size: .68rem; }
.hh-track { display: block; height: .36rem; width: 100%; background: #e8ece4; border-radius: 9px; overflow: hidden; }
.hh-track > span { display: block; height: 100%; background: color-mix(in srgb, var(--person-color) 65%, #356045); border-radius: inherit; }
.hh-count { font-size: .79rem; }
.hh-board { overflow: hidden; }
.hh-board-heading { justify-content: space-between; flex-wrap: wrap; gap: .7rem; padding: 1.35rem 1.45rem 1rem; }
.hh-segment { background: #f0f3ed; padding: .2rem; display: inline-flex; border-radius: .6rem; }
.hh-segment button { background: transparent; border: 1px solid transparent; border-radius: .45rem; padding: .35rem .7rem; font: inherit; font-size: .83rem; cursor: pointer; color: #52635c; }
.hh-segment button[aria-pressed=true] { background: white; color: var(--hh-ink); border-color: #dce1d8; box-shadow: 0 1px 2px #2230240a; }
.hh-day { padding: 0 1.45rem; }
.hh-day:last-child { padding-bottom: .75rem; }
.hh-day-name { display: flex; align-items: center; gap: .6rem; padding: .6rem 0; font-weight: 650; font-size: .9rem; color: #52645b; border-bottom: 1px solid var(--hh-line); }
.hh-day-name span { color: #774337; background: #f8e4dc; border-radius: .35rem; padding: .15rem .4rem; font-size: .72rem; }
.hh-list { margin: 0; padding: 0; list-style: none; }
.hh-chore {
  display: grid; grid-template-columns: 1.85rem minmax(0,1fr) minmax(5.5rem,9rem) 2.2rem;
  align-items: center; gap: .5rem; min-height: 3.45rem; padding: .24rem 0;
}
.hh-chore + .hh-chore { border-top: 1px solid #eef0eb; }
.hh-check { display: inline-grid; place-items: center; width: 1.85rem; min-height: 2.65rem; position: relative; cursor: pointer; }
.hh-check input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.hh-check span { display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border: 1.6px solid #a5afa7; border-radius: .38rem; background: white; }
.hh-check svg { opacity: 0; }
.hh-check input:checked + span { background: #507761; color: white; border-color: #507761; }
.hh-check input:checked + span svg { opacity: 1; }
.hh-check input:focus-visible + span { outline: 3px solid #ad4e37; outline-offset: 3px; }
.hh-task { font: inherit; color: var(--hh-ink); text-align: left; padding: .5rem 0; background: transparent; border: 0; cursor: pointer; overflow-wrap: anywhere; }
.hh-task:hover { text-decoration: underline; text-underline-offset: .15rem; }
.hh-chore.is-done .hh-task { color: #68756b; text-decoration: line-through; }
.hh-assignee { min-width: 0; gap: .45rem; font-size: .85rem; color: #50645a; overflow-wrap: anywhere; }
.hh-edit { justify-self: end; border: 0; background: transparent; color: #62766a; }
.hh-empty { display: grid; justify-items: center; gap: .8rem; padding: 2.4rem 1rem 2.75rem; text-align: center; color: #526d5c; }
.hh-empty h3 { font-size: 1.04rem; }
.hh-chore-form { display: grid; gap: 1rem; }
.hh-complete-field { display: flex; align-items: center; gap: .55rem; font-size: .92rem; cursor: pointer; }
.hh-complete-field input { accent-color: #507761; width: 1.15rem; height: 1.15rem; }
.hh-form-actions { display: flex; justify-content: flex-end; align-items: center; gap: .5rem; flex-wrap: wrap; }
.hh-delete { margin-right: auto; border: 0; background: transparent; padding: .65rem .15rem; font: inherit; font-size: .88rem; font-weight: 600; color: #ab402d; cursor: pointer; }
.hh-delete-confirm { padding: .9rem 1rem; border: 1px solid #e9beb2; background: #fff4ef; border-radius: .6rem; }
.hh-delete-confirm p { margin: 0 0 .6rem; }
.hh-delete-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.hh-settings-form { max-width: 52rem; display: grid; gap: 1.15rem; }
.hh-settings-card { padding: 1.4rem 1.6rem; min-width: 0; }
.hh-settings-heading { gap: .75rem; }
.hh-settings-heading > span { width: 2.35rem; height: 2.35rem; }
.hh-household-name { display: grid; gap: .4rem; margin-top: 1.05rem; max-width: 25rem; }
.hh-help { color: var(--hh-muted); margin: .7rem 0 1.15rem !important; font-size: .94rem; }
.hh-member-row, .hh-member-grid-head { display: grid; grid-template-columns: minmax(6.4rem, .65fr) minmax(5rem, 1.4fr) 3.4rem; align-items: center; gap: .85rem; }
.hh-member-grid-head { font-size: .84rem; font-weight: 600; color: var(--hh-muted); padding-bottom: .4rem; }
.hh-member-row { padding: .7rem 0; border-top: 1px solid var(--hh-line); }
.hh-member-row:last-child { padding-bottom: 0; }
.hh-identity { gap: .6rem; font-size: .87rem; color: #52635b; }
.hh-identity > span:last-child { text-transform: capitalize; overflow-wrap: anywhere; }
.hh-name-field { min-width: 0; }
.hh-name-field input, .hh-household-name input { box-sizing: border-box; width: 100%; min-width: 0; }
.hh-color input { width: 2.65rem; height: 2.65rem; padding: .22rem; background: white; border: 1px solid #ccd4ca; border-radius: .55rem; cursor: pointer; }
.hh-color input::-webkit-color-swatch-wrapper { padding: 0; }
.hh-color input::-webkit-color-swatch, .hh-color input::-moz-color-swatch { border: 0; border-radius: .32rem; }
.hh-settings-actions { display: flex; justify-content: flex-end; }
.price-source-settings details {padding:.75rem 0;border-top:1px solid #dce4dc;}
.price-source-settings summary {cursor:pointer;font-weight:650;line-height:1.5;}
.price-source-settings ul {list-style:none;padding:0;margin:.65rem 0 0;}
.price-source-settings li {display:grid;gap:.18rem;padding:.5rem 0;}
.price-source-settings li span,.price-source-settings details p {font-size:.91rem;color:#45564f;line-height:1.45;}
.price-source-settings a {font-size:.91rem;text-decoration:underline;}
.hh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 620px) {
  .hh-heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 1.3rem; }
  .hh-heading .btn { min-height: 2.6rem; }
  .hh-weekbar { gap: .7rem; }
  .hh-progress, .hh-settings-card { padding: 1.1rem; }
  .hh-people { grid-template-columns: repeat(auto-fit,minmax(min(100%,7rem),1fr)); }
  .hh-person { padding: .6rem; }
  .hh-board-heading { padding: 1.1rem; }
  .hh-day { padding: 0 1rem; }
  .hh-chore { grid-template-columns: 1.75rem 1fr auto; gap: 0 .45rem; padding: .5rem 0; }
  .hh-check { grid-row: span 2; }
  .hh-task { padding: .08rem 0 .17rem; }
  .hh-assignee { grid-column: 2; grid-row: 2; }
  .hh-edit { grid-column: 3; grid-row: 1 / span 2; }
  .hh-member-row, .hh-member-grid-head { grid-template-columns: minmax(4.15rem,.58fr) minmax(4rem,1fr) 2.65rem; gap: .45rem; }
  .hh-identity { gap: .3rem; flex-wrap: wrap; }
  .hh-identity .hh-avatar { height: 1.65rem; width: 1.65rem; font-size: .71rem; }
}
.family-score-tile { grid-column: 1 / -1; }
.family-score-tile > p { margin: -5px 21px 10px; color: #63746c; font-size: .85rem; }
.dash-scores { display: grid; grid-template-columns: repeat(auto-fit,minmax(115px,1fr)); gap: 8px 18px; padding: 0 18px 15px; }
.dash-score { min-width: 0; display: grid; gap: 7px; text-align: left; padding: 8px 4px; background: transparent; color: inherit; border: none; border-radius: .45rem; }
.dash-score:hover { background: #f2f5f0; }
.dash-score > span:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 5px; }
.dash-score strong { overflow-wrap: anywhere; font-size: .9rem; }
.dash-score b { font-size: .83rem; font-variant-numeric: tabular-nums; }
.dash-score-bar { display: block; height: 6px; background: #e9ede7; border-radius: 6px; overflow: hidden; }
.dash-score-bar i { display: block; height: 100%; border-radius: inherit; background: var(--score-color); }
.dash-overdue-date { display: block; font-size: .76rem; color: #95513d; }
