/* ==========================================================================
   HomeHub kiosk - dashboard shell
   Warm paper, ink type, family-colour rules. No web fonts: the kitchen iPad
   must render instantly and work offline.
   ========================================================================== */

:root {
  --ink: #14181c;
  --ink-soft: #39424a;
  --paper: #f2efe7;
  --card: #fffdf8;
  --line: #ded6c8;
  --line-strong: #c9bfae;
  --muted: #7b7568;
  --clay: #c2603d;
  --fern: #4e7f5b;
  --denim: #3e6b8a;
  --plum: #8c5b8f;
  --ochre: #a8843c;
  --radius: 14px;
  --shadow-card: 0 1px 0 rgba(20, 24, 28, 0.04), 0 8px 18px -14px rgba(20, 24, 28, 0.5);
}

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body.hh-body {
  margin: 0;
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--hh-fs-16, 16px);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  overflow: hidden;
}

body.hh-idle-active {
  overflow: hidden;
}

.hh-app {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  height: 100%;
  padding-top: env(safe-area-inset-top);
}

/* --------------------------------------------------------------- top bar */

.hh-top {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--ink);
  color: #f6f3ec;
}

.hh-brand {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}

.hh-brand__mark {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  display: inline-block;
  background:
    linear-gradient(to right, var(--clay) 0 50%, var(--denim) 50% 100%) 0 0 / 100% 50% no-repeat,
    linear-gradient(to right, var(--plum) 0 50%, var(--fern) 50% 100%) 0 100% / 100% 50% no-repeat;
  border-radius: 3px;
}

.hh-brand__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--hh-fs-19, 19px);
  letter-spacing: 0.01em;
}

.hh-brand__house {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(246, 243, 236, 0.24);
  font-size: var(--hh-fs-12, 12px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 243, 236, 0.66);
}

.hh-top__meta {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}

.hh-chip {
  font-size: var(--hh-fs-12, 12px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid rgba(246, 243, 236, 0.18);
  border-radius: 999px;
  color: rgba(246, 243, 236, 0.82);
  white-space: nowrap;
}

.hh-chip + .hh-chip {
  margin-left: 8px;
}

.hh-chip--sync.is-offline {
  color: #f0c48a;
  border-color: rgba(240, 196, 138, 0.45);
}

.hh-chip--sync.is-online {
  color: #a8d0b0;
  border-color: rgba(168, 208, 176, 0.35);
}

.hh-user {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  margin-left: 12px;
  padding: 6px 12px 6px 9px;
  border: 1px solid rgba(246, 243, 236, 0.18);
  border-radius: 999px;
  background: transparent;
  color: #f6f3ec;
  font-size: var(--hh-fs-12, 12px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-appearance: none;
  min-height: 34px;
}

.hh-user:active {
  background: rgba(246, 243, 236, 0.1);
}

.hh-user__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ochre);
  margin-right: 8px;
}

/* ------------------------------------------------------------------ main */

.hh-main {
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 18px 20px 108px;
  outline: none;
}

.hh-main:focus {
  outline: none;
}

.hh-view {
  max-width: 1240px;
  margin: 0 auto;
}

.hh-view__head {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-end;
  align-items: flex-end;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  margin-bottom: 14px;
}

.hh-eyebrow {
  margin: 0 0 3px;
  font-size: var(--hh-fs-11, 11px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hh-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: var(--hh-fs-27, 27px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hh-subtitle {
  margin: 4px 0 0;
  font-size: var(--hh-fs-14, 14px);
  color: var(--muted);
}

.hh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 14px;
}

.hh-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.hh-card--flush {
  padding: 0;
  overflow: hidden;
}

.hh-card__head {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: baseline;
  align-items: baseline;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hh-card__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: var(--hh-fs-19, 19px);
  letter-spacing: -0.005em;
}

.hh-card__link {
  border: 0;
  background: none;
  padding: 4px 0;
  font-size: var(--hh-fs-11, 11px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  min-height: 28px;
}

.hh-card__link:active {
  color: var(--ink);
}

.hh-empty {
  margin: 4px 0 2px;
  font-size: var(--hh-fs-14, 14px);
  color: var(--muted);
}

.hh-span-2 {
  grid-column: span 2;
}

/* ------------------------------------------------------------- day rail */

.hh-rail__now {
  font-family: Menlo, "SF Mono", Consolas, monospace;
  font-size: var(--hh-fs-12, 12px);
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ------------------------------------------------------------- list rows */

.hh-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hh-row {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.hh-row:first-child {
  border-top: 0;
  padding-top: 2px;
}

.hh-row__bar {
  width: 3px;
  -webkit-flex: 0 0 3px;
  flex: 0 0 3px;
  -webkit-align-self: stretch;
  align-self: stretch;
  border-radius: 2px;
  margin-right: 12px;
  min-height: 30px;
}

.hh-row__body {
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
}

.hh-row__title {
  display: block;
  font-size: var(--hh-fs-15, 15px);
  line-height: 1.3;
  color: var(--ink);
  word-wrap: break-word;
}

.hh-row__title.is-done {
  color: var(--muted);
  text-decoration: line-through;
}

.hh-row__meta {
  display: block;
  margin-top: 2px;
  font-size: var(--hh-fs-12, 12px);
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hh-row__aside {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  margin-left: 10px;
  font-family: Menlo, "SF Mono", Consolas, monospace;
  font-size: var(--hh-fs-12, 12px);
  color: var(--ink-soft);
}

.hh-check {
  width: 26px;
  height: 26px;
  margin-right: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  padding: 0;
  position: relative;
  -webkit-flex: 0 0 26px;
  flex: 0 0 26px;
}

.hh-check[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
}

.hh-check[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 4px;
  width: 5px;
  height: 11px;
  border-right: 2px solid #fffdf8;
  border-bottom: 2px solid #fffdf8;
  -webkit-transform: rotate(40deg);
  transform: rotate(40deg);
}

.hh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 7px;
  vertical-align: 1px;
}

/* --------------------------------------------------------------- buttons */

.hh-btn {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fffdf8;
  font-size: var(--hh-fs-14, 14px);
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-appearance: none;
  text-decoration: none;
}

.hh-btn:active {
  opacity: 0.86;
}

.hh-btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.hh-btn--danger {
  background: transparent;
  color: #9c3524;
  border-color: #dcb8ae;
}

.hh-btn--small {
  min-height: 36px;
  padding: 6px 12px;
  font-size: var(--hh-fs-12, 12px);
  border-radius: 8px;
}

.hh-btn[disabled] {
  opacity: 0.45;
  cursor: default;
}

.hh-actions {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 12px -6px 0;
}

.hh-actions > * {
  margin: 6px;
}

/* ----------------------------------------------------------------- forms */

.hh-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 12px;
  margin-top: 4px;
}

.hh-field {
  display: block;
  min-width: 0;
}

.hh-field--wide {
  grid-column: span 2;
}

.hh-label {
  display: block;
  margin-bottom: 5px;
  font-size: var(--hh-fs-11, 11px);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.hh-input,
.hh-select,
.hh-textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: var(--hh-fs-16, 16px);
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
}

.hh-textarea {
  min-height: 96px;
  resize: vertical;
}

.hh-input:focus,
.hh-select:focus,
.hh-textarea:focus {
  outline: 2px solid rgba(62, 107, 138, 0.55);
  outline-offset: 1px;
  border-color: var(--denim);
}

.hh-help {
  margin: 4px 0 0;
  font-size: var(--hh-fs-12, 12px);
  color: var(--muted);
}

.hh-inline {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}

.hh-inline > * + * {
  margin-left: 10px;
}

.hh-form--compact {
  margin-top: 12px;
}

/* ------------------------------------------------------------- combobox */

.hh-combo {
  position: relative;
  display: block;
}

.hh-combo__input {
  padding-right: 46px;
}

.hh-combo__toggle {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
}

.hh-combo__toggle:active {
  background: #f0ebdf;
}

.hh-combo__chev {
  display: block;
  width: 9px;
  height: 9px;
  margin: 0 auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  -webkit-transform: rotate(45deg) translate(-2px, -2px);
  transform: rotate(45deg) translate(-2px, -2px);
}

.hh-combo.is-open .hh-combo__chev {
  -webkit-transform: rotate(225deg) translate(-2px, -2px);
  transform: rotate(225deg) translate(-2px, -2px);
}

.hh-combo__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 60;
  margin-top: 6px;
  padding: 4px;
  background: #fffdf8;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  box-shadow: 0 18px 34px -20px rgba(20, 24, 28, 0.6);
  max-height: 248px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.hh-combo__panel[hidden] {
  display: none;
}

.hh-combo.is-up .hh-combo__panel {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 6px;
}

.hh-combo__list {
  display: block;
}

.hh-combo__option {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: var(--hh-fs-15, 15px);
  line-height: 1.3;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  -webkit-appearance: none;
}

.hh-combo__option + .hh-combo__option {
  margin-top: 1px;
}

.hh-combo__option.is-active,
.hh-combo__option:active {
  background: #f0ebdf;
}

.hh-combo__empty {
  display: block;
  padding: 10px;
  font-size: var(--hh-fs-12, 12px);
  color: var(--muted);
}

.hh-combo__empty[hidden] {
  display: none;
}

.hh-combo__type {
  display: block;
  width: 100%;
  min-height: 40px;
  margin-top: 2px;
  padding: 9px 10px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0 0 7px 7px;
  background: transparent;
  color: var(--denim);
  font-family: inherit;
  font-size: var(--hh-fs-13, 13px);
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
}

.hh-combo__type:active {
  background: #f0ebdf;
}

/* ---------------------------------------------------------- quick picks */

.hh-quick {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-top: 6px;
}

.hh-quick__btn {
  min-height: 32px;
  margin: 0 6px 6px 0;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: var(--hh-fs-12, 12px);
  line-height: 1.2;
  cursor: pointer;
  -webkit-appearance: none;
}

.hh-quick__btn:active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fffdf8;
}

/* -------------------------------------------------------------- calendar */

/* -------------------------------------------------------------- calendar */

.hh-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-gap: 6px;
}

.hh-cal__dow {
  padding: 4px 0;
  text-align: center;
  font-size: var(--hh-fs-10, 10px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hh-cal__day {
  position: relative;
  display: block;
  min-height: 74px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  overflow: hidden;
}

.hh-cal__day.is-outside {
  background: transparent;
  border-color: transparent;
  color: #b4ada0;
}

.hh-cal__day.is-today {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.hh-cal__day.is-selected {
  background: #f4efe2;
  border-color: var(--ink-soft);
}

.hh-cal__num {
  display: block;
  margin-bottom: 3px;
  font-family: Menlo, "SF Mono", Consolas, monospace;
  font-size: var(--hh-fs-12, 12px);
  line-height: 1;
}

.hh-cal__today-label {
  position: absolute;
  top: 7px;
  right: 8px;
  font-size: var(--hh-fs-8, 8px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.hh-cal__dots {
  display: none;
}

.hh-cal__dots .hh-dot {
  width: 6px;
  height: 6px;
  margin: 0 3px 3px 0;
}

.hh-cal__event {
  display: block;
  margin: 1px 0 0;
  font-size: var(--hh-fs-10, 10px);
  line-height: 1.3;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hh-cal__event .hh-dot {
  width: 5px;
  height: 5px;
  margin-right: 4px;
  vertical-align: 0;
}

.hh-cal__more {
  display: block;
  margin-top: 1px;
  font-size: var(--hh-fs-9, 9px);
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ------------------------------------------------------------- settings */

.hh-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-gap: 14px;
}

.hh-setting {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.hh-setting:first-child {
  border-top: 0;
  padding-top: 0;
}

.hh-setting__text {
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  padding-right: 16px;
  min-width: 0;
}

.hh-setting__name {
  display: block;
  font-size: var(--hh-fs-15, 15px);
}

.hh-setting__hint {
  display: block;
  margin-top: 3px;
  font-size: var(--hh-fs-12, 12px);
  color: var(--muted);
}

.hh-setting__control {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  min-width: 0;
}

.hh-setting__control .hh-input,
.hh-setting__control .hh-select {
  min-width: 190px;
  min-height: 40px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.hh-switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 32px;
  -webkit-flex: 0 0 56px;
  flex: 0 0 56px;
}

.hh-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.hh-switch__track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 999px;
  background: #ded7c9;
  border: 1px solid var(--line-strong);
  -webkit-transition: background 160ms linear;
  transition: background 160ms linear;
}

.hh-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fffdf8;
  box-shadow: 0 1px 3px rgba(20, 24, 28, 0.3);
  -webkit-transition: -webkit-transform 160ms ease;
  transition: transform 160ms ease;
}

.hh-switch input:checked + .hh-switch__track {
  background: var(--ink);
  border-color: var(--ink);
}

.hh-switch input:checked + .hh-switch__track::after {
  -webkit-transform: translateX(24px);
  transform: translateX(24px);
}

.hh-switch input:focus + .hh-switch__track {
  outline: 2px solid rgba(62, 107, 138, 0.6);
  outline-offset: 2px;
}

.hh-seg {
  display: -webkit-inline-flex;
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.hh-seg button {
  min-height: 38px;
  padding: 6px 12px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: var(--hh-fs-13, 13px);
  cursor: pointer;
  -webkit-appearance: none;
}

.hh-seg button:first-child {
  border-left: 0;
}

.hh-seg button[aria-pressed="true"] {
  background: var(--ink);
  color: #fffdf8;
}

.hh-setup {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: var(--hh-fs-13, 13px);
  color: var(--ink-soft);
  line-height: 1.55;
}

.hh-setup li {
  margin-bottom: 8px;
}

.hh-muted {
  color: var(--muted);
}

.hh-hint {
  font-size: var(--hh-fs-13, 13px);
  color: var(--muted);
}

.hh-note {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--ochre);
  background: #fbf5e8;
  border-radius: 0 10px 10px 0;
  font-size: var(--hh-fs-13, 13px);
  color: var(--ink-soft);
}

.hh-note strong {
  font-weight: 600;
}

.hh-banner {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #fbf5e8;
  border: 1px solid #e6d8b8;
  font-size: var(--hh-fs-13, 13px);
  color: var(--ink-soft);
}

.hh-banner__close {
  border: 0;
  background: none;
  font-size: var(--hh-fs-18, 18px);
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
  color: var(--muted);
}

/* -------------------------------------------------------------- weather */

.hh-weather {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-end;
  align-items: flex-end;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}

.hh-weather__temp {
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--hh-fs-46, 46px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hh-weather__now {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: flex-start;
  align-items: flex-start;
}

.hh-wicon {
  width: 26px;
  height: 26px;
  margin-bottom: 4px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hh-weather__temp .hh-wicon {
  width: 30px;
  height: 30px;
}

.hh-forecast {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.hh-forecast__day {
  -webkit-flex: 1 1 0;
  flex: 1 1 0;
  min-width: 58px;
  padding: 4px 2px;
  text-align: center;
  border-left: 1px solid var(--line);
}

.hh-forecast__day:first-child {
  border-left: 0;
}

.hh-forecast__label {
  display: block;
  margin-bottom: 2px;
  font-size: var(--hh-fs-10, 10px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hh-forecast__day .hh-wicon {
  width: 22px;
  height: 22px;
  margin: 0 auto 2px;
}

.hh-forecast__temps {
  display: block;
  font-size: var(--hh-fs-12, 12px);
  color: var(--muted);
}

.hh-forecast__temps strong {
  font-size: var(--hh-fs-13, 13px);
  font-weight: 600;
  color: var(--ink);
}

.hh-forecast__rain {
  display: block;
  margin-top: 1px;
  font-size: var(--hh-fs-10, 10px);
  color: var(--denim);
}

.hh-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 10px;
  margin: 0;
}

.hh-detail {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.hh-detail dt {
  font-size: var(--hh-fs-10, 10px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hh-detail dd {
  margin: 2px 0 0;
  font-size: var(--hh-fs-16, 16px);
  color: var(--ink);
}

.hh-weather__unit {
  font-size: var(--hh-fs-18, 18px);
  color: var(--muted);
  vertical-align: 14px;
}

.hh-weather__cond {
  margin: 4px 0 0;
  font-size: var(--hh-fs-14, 14px);
  color: var(--ink-soft);
}

.hh-weather__meta {
  margin: 0;
  font-size: var(--hh-fs-12, 12px);
  color: var(--muted);
  text-align: right;
  line-height: 1.5;
}

/* ----------------------------------------------------------------- notes */

.hh-note-card {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.hh-note-card:first-child {
  border-top: 0;
  padding-top: 2px;
}

.hh-note-card__title {
  margin: 0 0 3px;
  font-size: var(--hh-fs-15, 15px);
  font-weight: 600;
}

.hh-note-card__body {
  margin: 0;
  font-size: var(--hh-fs-13, 13px);
  color: var(--ink-soft);
  white-space: pre-wrap;
  word-wrap: break-word;
}

.hh-note-card__meta {
  margin-top: 4px;
  font-size: var(--hh-fs-11, 11px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------------- nav bar */

.hh-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-around;
  justify-content: space-around;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: #fbf8f1;
  border-top: 1px solid var(--line-strong);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hh-nav__item {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  min-width: 62px;
  min-height: 52px;
  padding: 4px 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: var(--hh-fs-10, 10px);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-appearance: none;
}

.hh-nav__item svg {
  width: 22px;
  height: 22px;
  margin-bottom: 3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hh-nav__item.is-active {
  color: var(--ink);
  background: #f0ebdf;
}

/* iOS keyboard: keep the rail persistent; only trim the main padding. */
.hh-body.is-typing .hh-main {
  padding-bottom: 18px;
}

/* ----------------------------------------------------------------- toast */

.hh-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 8500;
  max-width: 82%;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(20, 24, 28, 0.94);
  color: #fffdf8;
  font-size: var(--hh-fs-13, 13px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  -webkit-transform: translate(-50%, 8px);
  transform: translate(-50%, 8px);
  -webkit-transition: opacity 180ms linear, -webkit-transform 180ms ease;
  transition: opacity 180ms linear, transform 180ms ease;
}

.hh-toast.is-visible {
  opacity: 1;
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
}

.hh-noscript {
  padding: 24px;
  font-family: Georgia, serif;
}

/* -------------------------------------------------------------- keyboard */

.hh-app :focus-visible {
  outline: 2px solid var(--denim);
  outline-offset: 2px;
}

/* ------------------------------------------------------------ responsive */

@media (min-width: 900px) {
  .hh-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .hh-grid > .hh-card {
    grid-column: span 4;
  }

  .hh-grid > .hh-span-2 {
    grid-column: span 12;
  }

  .hh-grid > .hh-span-4 {
    grid-column: span 4;
  }

  .hh-grid > .hh-span-6 {
    grid-column: span 6;
  }

  .hh-grid > .hh-span-8 {
    grid-column: span 8;
  }

  .hh-settings {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-gap: 14px;
  }

  .hh-settings > .hh-span-2 {
    grid-column: span 2;
  }

  .hh-main {
    padding-bottom: 120px;
  }
}

@media (max-width: 640px) {
  .hh-brand__house {
    display: none;
  }

  .hh-chip--date {
    display: none;
  }

  .hh-title {
    font-size: var(--hh-fs-23, 23px);
  }

  .hh-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .hh-field--wide {
    grid-column: span 1;
  }

  .hh-cal__day {
    min-height: 52px;
    padding: 5px;
  }

  .hh-cal__event {
    display: none;
  }

  .hh-setting {
    -webkit-flex-direction: column;
    flex-direction: column;
  }

  .hh-setting__control {
    width: 100%;
    margin-top: 10px;
  }

  .hh-setting__control .hh-input,
  .hh-setting__control .hh-select {
    min-width: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    -webkit-transition: none !important;
    transition: none !important;
  }
}
