body {
  margin: 0;
}
.haus .recipe-image, .haus .recipe-card-shell {
  position: relative;
  min-width: 0;
}
.haus .recipe-card-shell:has(> .recipe-card[hidden]) {
  display: none;
}
.haus .recipe-card-shell > .recipe-card {
  height: 100%;
}
.haus .recipe-image-control {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  margin: 0;
  z-index: 1;
}
.haus .recipe-image-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: var(--space-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-text);
  opacity: 0.85;
}
.haus .recipe-image-button:hover, .haus .recipe-image-button:focus-visible {
  opacity: 1;
  background: var(--accent-soft);
}
.haus .recipe-image-status {
  position: absolute;
  right: 0;
  top: calc(44px + var(--space-2));
  width: max-content;
  max-width: min(240px, 60vw);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.haus .recipe-image-modal {
  padding: var(--space-5);
}
.haus .recipe-image-modal h2 {
  margin: 0 0 var(--space-4);
  font: 500 29px/1.2 var(--font-display);
}
.haus .recipe-image-modal .field {
  display: grid;
  gap: var(--space-2);
  margin: 0;
}
.haus .recipe-image-modal textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}
.haus .recipe-image-modal .actions {
  gap: var(--space-2);
}
@media (max-width: 720px) {
  .haus .recipe-image-modal {
    padding: var(--space-4);
  }
}
@font-face {
  font-family: Kalam;
  src: url('/assets/fonts/Kalam-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
.haus .home-intro {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(240px, 1fr) auto;
  align-items: start;
  gap: var(--space-5);
}
.haus .home-intro > div:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.haus .home-message {
  width: fit-content;
  max-width: 100%;
}
.haus .home-greeting h1 {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-2);
  max-width: none;
}
.haus .home-greeting h1 em {
  min-width: 0;
  max-width: 100%;
  margin-inline-start: auto;
  text-align: end;
}
.haus .home-intro .date-stamp {
  margin-top: var(--space-2);
}
.haus .home-intro .date-stamp .small {
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
}
.haus .home-quip-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  /* Keep the quip from widening the greeting. */
  width: 0;
  min-width: 100%;
}
.haus .home-quip-row > p {
  flex: 1;
  min-width: 0;
}
.haus .sticky-board {
  min-width: 0;
}
@container workspace (max-width: 1050px) {
  .haus .home-intro {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .haus .home-intro .sticky-board {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
@media (max-width: 720px) {
  .haus .home-intro {
    grid-template-columns: minmax(0, 1fr);
  }
}
.haus .quick-link {
  min-width: 0;
  text-decoration: none;
}
.haus .quick-link > span {
  align-self: flex-start;
}
@container workspace (min-width: 1051px) {
  .haus .quick-links {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.haus .keep-board {
  margin-top: 32px;
  width: 100%;
  max-width: 520px;
}
.haus .keep-board .keep-sync {
  width: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}
.haus .home-bottom-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.haus .home-bottom-row .keep-board {
  grid-column: 2;
  margin-top: 0;
  min-width: 0;
}
.haus .home-bottom-row .energy-panel {
  grid-column: 3;
}
.haus .calendar-panel {
  min-width: 0;
  overflow-wrap: anywhere;
}
.haus .calendar-panel .agenda-item {
  grid-template-columns: minmax(80px, max-content) minmax(0, 1fr);
}
.haus .calendar-panel .agenda-item[data-day-end='false'] {
  border-bottom: 0;
}
.haus .calendar-panel > p:last-child {
  margin-top: 16px;
}
.haus .calendar-inventory {
  margin-top: 24px;
}
@container workspace (max-width: 720px) {
  .haus .home-bottom-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .haus .home-bottom-row > .panel {
    grid-column: auto;
  }
}
.haus .keep-board .data-table {
  table-layout: fixed;
}
.haus .keep-board th:first-child {
  width: 44%;
}
.haus .keep-board .data-table a {
  color: inherit;
  text-decoration: none;
}
.haus .keep-board td {
  overflow-wrap: anywhere;
}
.haus[data-enhanced] [data-keep-row] {
  cursor: pointer;
}
.haus[data-enhanced] [data-keep-row]:hover {
  background: var(--surface-soft);
}
.haus .keep-note {
  overflow-wrap: anywhere;
}
.haus .keep-note .modal-head h2 {
  flex: 1;
  min-width: 0;
}
.haus .keep-modal-close, .haus[data-enhanced] .keep-native-close {
  display: none;
}
.haus[data-enhanced] .keep-modal-close {
  display: inline-flex;
}
.haus:not([data-enhanced]) .keep-note[open] {
  position: static;
  width: 100%;
  margin-top: 24px;
}
.haus .keep-body, .haus .keep-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.haus .keep-checklist {
  list-style: none;
  padding: 0;
}
.haus .keep-indented {
  margin-left: 20px;
}
.haus .keep-field {
  display: grid;
  flex: 1;
  min-width: 0;
}
.haus .keep-delete {
  display: none;
}
.haus[data-enhanced] .keep-delete {
  display: inline-flex;
  opacity: 0;
}
.haus[data-enhanced] .check-row:hover .keep-delete, .haus[data-enhanced] .check-row:focus-within .keep-delete {
  opacity: 1;
}
@media (hover: none) {
  .haus[data-enhanced] .keep-delete {
    opacity: 1;
  }
}
.haus .keep-field > * {
  grid-area: 1 / 1;
}
.haus .keep-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 28px;
  margin: 0;
  padding: 2px 4px;
  color: inherit;
  font: inherit;
  line-height: inherit;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  resize: none;
  opacity: 0;
}
.haus .keep-text {
  padding: 3px 5px;
  pointer-events: none;
}
.haus .keep-input:focus {
  opacity: 1;
  background: var(--surface);
  border-color: var(--control-line);
}
.haus .keep-field:focus-within .keep-text {
  visibility: hidden;
}
.haus .check-row:has(input:checked) .keep-input:not(:focus) {
  text-decoration: line-through;
  color: var(--muted);
}
.haus .check-row:has(input:checked) .keep-field {
  text-decoration: none;
}
.haus .keep-add {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
}
.haus .keep-add label {
  display: grid;
  grid-template-columns: 19px 1fr;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 24px;
  color: var(--accent-text);
  cursor: pointer;
}
.haus .keep-new {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 6px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--control-line);
  border-radius: var(--radius-sm);
  font: inherit;
  resize: vertical;
}
.haus .keep-add:focus-within label, .haus .keep-add:has(.keep-new:not(:placeholder-shown)) label {
  visibility: hidden;
}
.haus .keep-add:focus-within .keep-new, .haus .keep-new:not(:placeholder-shown) {
  position: static;
  opacity: 1;
  pointer-events: auto;
}
.haus[data-enhanced] .keep-form:not([data-blocked]) .keep-manual-save {
  display: none;
}
.haus .keep-save-status:empty {
  display: none;
}
.haus .keep-inventory .panel {
  margin-block: 16px;
  overflow-wrap: anywhere;
}
.haus .keep-conflict {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.haus [data-colour='green'] {
  --note-colour: #d6edbe;
}
.haus [data-colour='red'] {
  --note-colour: #ffc7c2;
}
.haus [data-colour='teal'] {
  --note-colour: #c5ece7;
}
.haus [data-colour='dark_blue'] {
  --note-colour: #c5d5f5;
}
.haus [data-colour='brown'] {
  --note-colour: #e4d3bd;
}
.haus [data-colour='gray'] {
  --note-colour: #e3e1e5;
}
.haus .sticky-list {
  display: flex;
  align-items: flex-start;
  list-style: none;
  padding: var(--space-3);
  margin: 0 0 var(--space-3);
}
.haus .sticky-list:empty {
  display: none;
}
.haus .sticky-slot {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 200px;
}
.haus .sticky-slot:last-child {
  flex: 0 0 208px;
  max-width: none;
}
.haus .sticky-slot:nth-child(3n+2) {
  top: var(--space-1);
}
.haus .sticky-slot:nth-child(3n) {
  top: var(--space-2);
}
.haus .sticky-slot:focus-within {
  z-index: 1;
}
.haus .sticky-slot:hover {
  z-index: 2;
}
.haus .sticky-slot:focus-visible {
  outline: none;
}
.haus .sticky-slot:focus-visible > .sticky-note {
  outline: 3px solid var(--focus);
  outline-offset: var(--space-1);
}
.haus .sticky-note {
  width: 208px;
  padding: var(--space-4);
  color: #322e32;
  background: var(--note-colour);
  box-shadow: 0 3px 8px #32222020;
  transform: rotate(-2deg);
  overflow-wrap: anywhere;
}
.haus .sticky-slot:nth-child(even) > .sticky-note {
  transform: rotate(2deg);
}
.haus .sticky-note-long {
  transform: rotate(-0.5deg);
}
.haus .sticky-slot:nth-child(even) > .sticky-note-long {
  transform: rotate(0.5deg);
}
.haus [data-colour='yellow'] {
  --note-colour: #fff0a8;
}
.haus [data-colour='pink'] {
  --note-colour: #ffd3df;
}
.haus [data-colour='blue'] {
  --note-colour: #cdeafa;
}
.haus [data-colour='purple'] {
  --note-colour: #e1d0fa;
}
.haus [data-colour='orange'] {
  --note-colour: #ffd19e;
}
.haus .sticky-body {
  font: 400 20px/1.35 Kalam, cursive;
  white-space: pre-wrap;
}
.haus .sticky-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: 11px;
}
.haus .note-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #63465c;
}
.haus .note-dot.is-seen {
  width: 18px;
  height: 18px;
  background: transparent;
  color: #322e32;
  text-align: center;
  font-size: 14px;
}
.haus .note-seen {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -10px -10px -10px 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.haus .note-seen:hover {
  background: #322e3212;
}
.haus .note-seen:focus-visible {
  outline: 2px solid #63465c;
  outline-offset: 2px;
}
.haus .note-composer > summary {
  list-style: none;
  cursor: pointer;
}
.haus .note-composer > .icon-button {
  height: 44px;
  padding: var(--space-1);
  margin-inline-end: calc(-1 * var(--space-2));
}
.haus .note-composer .icon {
  width: 28px;
  height: 28px;
  transform: rotate(-7deg);
}
.haus .note-composer > summary::-webkit-details-marker {
  display: none;
}
.haus .note-form {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  z-index: 3;
  display: grid;
  gap: var(--space-2);
  min-width: 240px;
  margin-top: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--control-line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.haus .note-form .input {
  width: 100%;
  min-height: 44px;
}
.haus .note-form textarea {
  resize: vertical;
}
.haus .note-colours {
  display: flex;
  gap: 8px;
  min-width: 0;
  border: 0;
  padding: 4px 0;
  margin: 0;
}
.haus .note-colours legend {
  margin-bottom: 8px;
}
.haus input.note-colour {
  appearance: none;
  width: 32px;
  height: 32px;
  border: 1px solid #322e3233;
  border-radius: 50%;
  background: var(--note-colour);
  cursor: pointer;
}
.haus .note-colour:checked {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.haus .note-colour:focus-visible {
  outline: 3px dashed var(--text);
  outline-offset: 2px;
}
@media (forced-colors: active) {
  .haus input.note-colour {
    appearance: auto;
  }
}
.haus .note-notifications {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 6;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 40px));
  max-height: 45dvh;
  overflow-y: auto;
}
.haus .note-receipt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 13px;
  min-width: 0;
}
.haus .note-receipt > div {
  flex: 1;
  min-width: 0;
}
.haus .note-receipt p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .haus[data-enhanced] .sticky-note {
    animation: note-pop 220ms ease-out;
  }
  @keyframes note-pop {
    from {
      opacity: 0;
      translate: 0 10px;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }
}
.haus {
  min-height: 100dvh;
}
.haus a.nav-button {
  text-decoration: none;
}
.haus main:focus {
  outline: none;
}
.haus .account-form {
  display: grid;
  gap: 18px;
  max-width: 440px;
}
.haus .policy-content {
  display: grid;
  gap: var(--space-4);
  max-width: 760px;
}
.haus .policy-links {
  margin-top: var(--space-4);
}
.haus .account-form .field {
  display: grid;
  gap: 6px;
}
.haus .account-form .input {
  width: 100%;
  min-height: 44px;
}
.haus .settings-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  padding-bottom: 36px;
}
.haus .device-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: var(--space-5);
}
.haus .device-table tbody tr:hover,
.haus .device-table tbody tr:focus-within {
  background: var(--surface-soft);
}
.haus .device-table td[colspan] {
  text-align: left;
}
.haus .device-table th:first-child,
.haus .device-table td:first-child {
  padding-left: var(--space-4);
}
.haus .device-table th:last-child,
.haus .device-table td:last-child {
  padding-right: var(--space-4);
}
.haus .device-table .actions {
  justify-content: flex-end;
}
.haus .device-table .button {
  position: relative;
  min-width: 6rem;
}
.haus .device-table .button[aria-busy='true'] {
  color: transparent;
}
.haus .device-table .button[aria-busy='true']::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1em;
  height: 1em;
  border: 2px solid var(--text);
  border-right-color: transparent;
  border-radius: 50%;
  animation: device-action-spin 0.7s linear infinite;
}
@keyframes device-action-spin {
  to { transform: rotate(360deg); }
}
.haus .device-status {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  vertical-align: middle;
  background: var(--leaf);
}
.haus .device-status.blocked {
  background: var(--danger);
}
.haus .device-list {
  min-width: 0;
  overflow-wrap: anywhere;
}
.haus .device-entry {
  display: grid;
  gap: var(--space-3);
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
}
.haus .device-entry + .device-entry {
  margin-top: var(--space-5);
}
.haus .device-entry summary {
  cursor: pointer;
}
.haus .device-entry details[open] > .account-form {
  margin-top: var(--space-3);
}
@media (max-width: 720px) {
  .haus .device-lists {
    grid-template-columns: 1fr;
  }
  .haus .device-table th:nth-child(2),
  .haus .device-table td:nth-child(2),
  .haus .device-table th:nth-child(3),
  .haus .device-table td:nth-child(3) {
    display: none;
  }
}
.haus .planner-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 28px;
}
.haus .planner-controls fieldset {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}
.haus .planner-controls legend {
  font-weight: 600;
  padding: 0;
}
.haus .planner-controls .account-form:last-child {
  flex: 1;
  max-width: none;
  min-width: 0;
}
.haus #planner-preview > .intro {
  padding-block: 0 24px;
}
.haus .planner-rationale {
  margin-bottom: 24px;
}
.haus .planner-rationale > * + *,
.haus .planner-shopping > * + * {
  margin-top: 16px;
}
.haus .planner-nights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 12px;
}
.haus .planner-nights label {
  display: flex;
  gap: 8px;
  align-items: center;
}
.haus .meal-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--space-3);
}
.haus .meal-day {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}
.haus .meal-day h3 {
  font-size: 1rem;
  margin: 0;
}
.haus .meal-day select {
  margin-top: auto;
  width: 100%;
  touch-action: auto;
}
.haus .planned-recipe {
  display: grid;
  gap: var(--space-3);
  overflow-wrap: anywhere;
  text-decoration: none;
}
.haus .planned-recipe img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.haus .planner-actions {
  margin: var(--space-5) 0;
}
.haus .planner-move-help {
  margin-bottom: var(--space-4);
}
.haus .meal-week[data-draggable] .meal-day {
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.haus .meal-week[data-draggable] .meal-day:hover,
.haus .meal-week[data-draggable] .meal-day:focus-within {
  background: var(--surface-soft);
}
.haus .meal-week.is-dragging,
.haus .meal-week.is-dragging * {
  cursor: grabbing;
}
.haus .meal-day.is-moving {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.haus .meal-day.is-dragging {
  position: relative;
  z-index: 1;
  pointer-events: none;
  box-shadow: var(--photo-shadow);
}
.haus .planner-shopping {
  margin-top: 24px;
}
.haus .planner-table {
  overflow-x: auto;
  margin-top: 20px;
}
.haus .planner-table table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  text-align: left;
}
.haus .planner-table td, .haus .planner-table th {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.haus .planner-table span.small {
  display: block;
}
.haus .planner-table td:last-child {
  min-width: 240px;
}
.haus .planner-table td:nth-child(2),
.haus [aria-labelledby='shopping-heading'] td:nth-child(3) {
  white-space: nowrap;
}
.haus .planner-scroll-help {
  display: none;
}
@media (max-width: 1600px) {
  .haus .meal-week {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .haus .planner-scroll-help {
    display: block;
  }
  .haus .meal-week {
    grid-template-columns: 1fr;
  }
  .haus .planner-controls {
    display: grid;
  }
}
.haus .settings-page > :not(.intro) + *,
.haus main:has(.device-table) > :not(.intro) + * {
  margin-top: var(--space-5);
}
.haus .settings-page .panel > * + *,
.haus .settings-page .keep-inventory > * + * {
  margin-top: var(--space-4);
}
.haus .settings-grid > .panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
}
.haus .settings-grid > .panel > * + * {
  margin-top: 0;
}
.haus .settings-grid > .panel > .button {
  align-self: flex-start;
}
.haus .settings-grid .account-form,
.haus .settings-grid .appearance-form {
  gap: var(--space-4);
}
.haus .settings-grid .panel .field {
  gap: var(--space-2);
}
.haus .settings-grid .appearance-status:empty {
  display: none;
}
@media (max-width: 720px) {
  .haus .settings-grid > .panel {
    padding: var(--space-4);
  }
}
.haus .photo-frame-settings {
  padding: var(--space-5);
}
.haus .photo-frame-settings .account-form {
  gap: var(--space-4);
}
.haus .photo-frame-settings .field {
  gap: var(--space-2);
}
.haus .photo-frame-actions {
  gap: var(--space-4);
}
@media (max-width: 720px) {
  .haus .photo-frame-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .haus .photo-frame-actions .button {
    width: 100%;
  }
}
.haus #home-heading,
.haus #home-quip {
  overflow-wrap: anywhere;
}
.haus .header-settings {
  grid-column: 1 / -1;
}
.haus .header-form {
  max-width: none;
  margin-top: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.haus .header-form textarea {
  resize: vertical;
}
.haus .header-form button {
  grid-column: 1 / -1;
  justify-self: start;
}
.haus .user-menu {
  position: relative;
}
.haus .sidebar {
  padding-bottom: 0;
}
.haus .changelog-link {
  display: grid;
  place-items: center;
  min-height: var(--space-5);
  padding: 0 var(--space-3);
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}
.haus .changelog-link:hover, .haus .changelog-link[aria-current='page'] {
  color: var(--accent-text);
  text-decoration: underline;
}
.haus .changelog-link:focus-visible, .haus .user-tile:focus-visible {
  outline-offset: calc(-1 * var(--space-1));
}
.haus .changelog {
  display: grid;
  gap: var(--space-5);
  max-width: 760px;
  padding-bottom: var(--space-6);
}
.haus .changelog article {
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.haus .changelog h2 {
  margin-block: var(--space-2);
  font: 500 25px/1.25 var(--font-display);
}
.haus .user-options {
  position: absolute;
  bottom: calc(100% + 8px);
  inset-inline: 0;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 1;
}
.haus .user-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--space-3);
  color: var(--text);
  border-radius: var(--radius-sm);
  list-style: none;
  cursor: pointer;
}
.haus .user-tile::-webkit-details-marker {
  display: none;
}
.haus .user-tile:hover, .haus .user-menu[open] .user-tile {
  background: var(--surface-soft);
}
.haus .user-tile > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.haus .user-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  flex-shrink: 0;
}
.haus .account-message {
  margin-bottom: 20px;
}
.haus .account-list {
  display: grid;
  gap: 24px;
  margin-block: 24px 36px;
}
.haus .account-list h2 {
  overflow-wrap: anywhere;
}
.haus .account-list .account-form, .haus .account-status {
  margin-top: 20px;
}
.haus .appearance-form {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}
.haus .appearance-form .field {
  display: grid;
  gap: 5px;
}
.haus .appearance-form label {
  font-size: 12px;
  color: var(--muted);
}
.haus .appearance-form .input {
  width: 100%;
  min-height: 44px;
}
.haus .appearance-status {
  min-height: 20px;
  font-size: 11px;
}
.haus[data-enhanced] .appearance-apply {
  display: none;
}
.haus .home-top-row .tonight-photo {
  width: 100%;
  height: 252px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.haus .home-top-row .recipe-image:has(> .tonight-photo) {
  align-self: center;
}
.haus .home-top-row .photo-frame {
  grid-row: auto;
  scale: 1.1;
  z-index: 1;
}
@media (min-width: 721px) {
  .haus .home-top-row .photo-frame {
    scale: 1.12;
    transform-origin: right center;
  }
}
.haus .energy-panel {
  background: var(--leaf-soft);
  border-color: transparent;
  color: var(--leaf);
}
.haus .energy-panel .eyebrow {
  color: var(--leaf);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: 22px;
}
.haus .energy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.haus .energy-grid h3 {
  font-size: 13px;
  margin-bottom: 12px;
}
.haus .energy-total {
  margin: 0 0 10px;
}
.haus .energy-chart svg {
  display: block;
  width: 100%;
  fill: var(--leaf);
}
.haus .energy-chart-labels {
  fill: var(--leaf);
  font-size: 11px;
}
.haus .energy-battery {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: calc(100% - 8px);
  min-height: 96px;
  padding: 16px 20px;
  border: 2px solid currentColor;
  border-radius: 14px;
}
.haus .energy-battery::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 8px;
  background: linear-gradient(to right, currentColor var(--battery-level), transparent var(--battery-level));
  opacity: 0.16;
}
.haus .energy-battery::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  width: 6px;
  height: 26px;
  transform: translateY(-50%);
  border-radius: 0 4px 4px 0;
  background: currentColor;
}
.haus .energy-battery > * {
  position: relative;
}
.haus .energy-battery strong {
  font: 400 36px/1.1 var(--font-display);
  letter-spacing: -1px;
}
.haus .photo-frame [hidden] {
  display: none;
}
.haus .spotlight-link {
  display: block;
}
.haus .home-top-row .photo-frame-portrait {
  width: fit-content;
  max-width: 90%;
  justify-self: center;
  margin-bottom: var(--space-6);
}
.haus .photo-frame-portrait img {
  width: auto;
  max-width: 100%;
  height: 360px;
  aspect-ratio: auto;
  object-fit: contain;
  background: var(--photo-mat);
  margin-inline: auto;
}
.haus .photo-frame-portrait .icon {
  flex-shrink: 0;
}
.haus .photo-placeholder {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  height: 219px;
  padding: 16px;
  text-align: center;
  background: var(--surface-soft);
  color: var(--muted);
}
.haus .photo-placeholder .icon {
  width: 40px;
  height: 40px;
  color: var(--muted);
}
.haus .photo-placeholder small {
  font-size: 12px;
}
.haus .sidebar-drawer {
  background: var(--surface);
  color: var(--text);
}
.haus .sidebar-drawer::backdrop {
  background: #1b161977;
}
.haus .meals-collection,
.haus .meals-detail {
  padding-bottom: 36px;
}
.haus a.recipe-card {
  color: var(--text);
  text-decoration: none;
}
.haus a.recipe-card:hover {
  border-color: var(--accent-text);
}
.haus .recipe-display-controls {
  display: grid;
  gap: 6px;
  justify-items: end;
  flex-shrink: 0;
}
.haus .recipe-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.haus:not([data-enhanced]) .recipe-mode-toggle {
  display: none;
}
.haus .recipe-stage {
  overflow: clip;
  margin-inline: -18px;
  padding: 28px 18px 0;
}
.haus .recipe-filters {
  padding: 12px 16px;
  box-shadow: none;
}
.haus .recipe-review {
  margin-top: var(--space-5);
}
.haus .recipe-import-form {
  display: grid;
  gap: var(--space-4);
}
.haus .recipe-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}
.haus .recipe-search {
  flex: 1 1 220px;
  min-width: 0;
}
.haus .recipe-search .input {
  width: 100%;
}
.haus .recipe-search-row .button.quiet {
  min-height: 32px;
  padding: 4px 8px;
}
.haus .recipe-filter-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 20px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.haus .recipe-filter-group {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}
.haus .recipe-filter-group legend {
  padding: 0;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 650;
  color: var(--muted);
}
.haus .recipe-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
}
.haus .recipe-filter-group:has(input[name='meal']) .recipe-filter-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  column-gap: 8px;
}
.haus .recipe-filter-options .choice-row {
  gap: 6px;
  min-height: 28px;
  font-size: 12px;
}
.haus .recipe-filter-options input {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}
@media (max-width: 720px) {
  .haus .intro:has(.recipe-display-controls) > div:first-child {
    flex: 1;
    min-width: 0;
  }
  .haus .recipe-filter-groups {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
.haus[data-enhanced] .recipe-filter-apply {
  display: none;
}
.haus .recipe-empty {
  padding: 16px 0 28px;
}
.haus .recipe-stage .meals-collection {
  padding-bottom: 64px;
}
@media (prefers-reduced-motion: no-preference) {
  .haus .meals-collection .recipe-card-shell {
    --recipe-tilt-scale: 1;
    transform: rotate(calc(var(--recipe-tilt, 0deg) * var(--recipe-tilt-scale)));
    transition: transform 180ms ease;
  }
  .haus .meals-collection .recipe-card-shell.is-mixing {
    animation: recipe-card-mix 1.35s cubic-bezier(0.7, -0.5, 0.3, 1.5);
  }
  .haus .meals-collection .recipe-card-shell.is-straightening {
    animation: recipe-card-straighten 0.7s linear;
  }
  @keyframes recipe-card-mix {
    0% {
      transform: translate(var(--mix-start-x), var(--mix-start-y)) rotate(0);
    }
    18% {
      transform: translate(var(--mix-x), var(--mix-y)) rotate(var(--mix-turn));
    }
    38% {
      transform: translate(var(--mix-x-2), var(--mix-y-2)) rotate(var(--mix-turn-2));
    }
    58% {
      transform: translate(var(--mix-x-3), var(--mix-y-3)) rotate(var(--mix-turn-3));
    }
    76% {
      transform: translate(var(--mix-x-4), var(--mix-y-4)) rotate(var(--mix-turn-4));
    }
    100% {
      transform: rotate(calc(var(--recipe-tilt) * var(--recipe-tilt-scale)));
    }
  }
  @keyframes recipe-card-straighten {
    from {
      transform: translate(var(--mix-start-x), var(--mix-start-y))
        rotate(calc(var(--recipe-start-tilt) * var(--recipe-tilt-scale)));
    }
    to {
      transform: none;
    }
  }
}
.haus .recipe-card-body {
  min-width: 0;
}
.haus .recipe-invitation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  padding-top: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-text);
}
.haus .recipe-introduction {
  max-width: 740px;
  margin-top: 16px;
  font-size: 14px;
}
.haus .recipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.haus .meals-detail h2 {
  font: 500 25px/1.2 var(--font-display);
}
.haus .recipe-ingredients {
  padding-left: 18px;
  margin: 18px 0 0;
  font-size: 14px;
}
.haus .recipe-ingredients li {
  padding-left: 3px;
  margin-top: 12px;
}
.haus .recipe-source {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  font-size: 13px;
}
@media (max-width: 980px) {
  .haus:not([data-enhanced]) .sidebar-host {
    display: block;
  }
  .haus:not([data-enhanced]) .sidebar {
    position: static;
    height: auto;
  }
  .haus:not([data-enhanced]) .sidebar .brand {
    display: none;
  }
}
@media (max-width: 720px) {
  .haus .recipe-display-controls {
    justify-items: start;
  }
  .haus .intro:has(.recipe-display-controls) {
    flex-wrap: wrap;
  }
  .haus .meals-collection .recipe-card-shell {
    --recipe-tilt-scale: 0.2;
  }
}
@media (max-width: 980px) {
  .haus .home-top-row .tonight-copy {
    max-width: 100%;
  }
  .haus .home-top-row .tonight-photo {
    height: 190px;
  }
  .haus .home-top-row .recipe-image:has(> .tonight-photo) {
    margin-top: 20px;
  }
}
@media (max-width: 720px) {
  .haus .photo-placeholder {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

.haus .smash-root {
  display: grid;
  gap: 24px;
  max-width: 1000px;
  min-width: 0;
}
.haus .smash-root [hidden] {
  display: none;
}
.haus .smash-root .stack {
  display: grid;
  gap: 20px;
}
.haus .smash-root textarea {
  resize: vertical;
  line-height: 1.6;
}
.haus .smash-root .smash-actions,
.haus .smash-progress .row,
.haus .smash-progress .actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.haus .smash-root .button {
  min-height: 44px;
  justify-self: start;
}
.haus .smash-suggestion > * + * {
  margin-top: 20px;
}
.haus .smash-recipe-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr);
  gap: 32px;
}
.haus .smash-ingredients {
  list-style: none;
  padding: 0;
}
.haus .smash-ingredients label,
.haus .smash-confirmation {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-block: 8px;
  cursor: pointer;
}
.haus .smash-root p,
.haus .smash-root strong,
.haus .smash-root h2 {
  overflow-wrap: anywhere;
}
.haus .smash-terminal {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 13px;
  max-height: 200px;
  overflow-y: auto;
}
.haus .smash-elapsed {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.haus .smash-history-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.haus .smash-history-card {
  display: grid;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
}
.haus .smash-history-card:hover {
  border-color: var(--accent-text);
}
.haus .smash-recipe-art {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--surface-soft);
  font-size: 64px;
}
@media (max-width: 680px) {
  .haus .smash-recipe-grid,
  .haus .smash-history-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .haus .smash-root .panel {
    padding: 20px;
  }
}

.haus .ingredient-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 24px;
  margin-bottom: 36px;
}
.haus .ingredient-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.haus .ingredient-filters {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: 20px;
}
.haus .ingredient-filters h2 {
  font: 500 24px/1.2 var(--font-display);
  margin-bottom: 20px;
}
.haus .ingredient-filter-group {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}
.haus .ingredient-filter-group legend {
  font-size: 13px;
  font-weight: 600;
}
.haus .ingredient-filter-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}
.haus .ingredient-filter-options .choice-row {
  min-height: 44px;
  gap: 8px;
  overflow-wrap: anywhere;
}
.haus .ingredient-pagination {
  justify-content: space-between;
  margin-top: 20px;
}
.haus .ingredient-pagination p {
  margin: 0;
}
@media (max-width: 1100px) {
  .haus .ingredient-layout {
    grid-template-columns: 1fr;
  }
  .haus .ingredient-filters,
  .haus .ingredient-main {
    grid-column: auto;
    grid-row: auto;
  }
}
.haus .ingredient-catalogue {
  margin-bottom: 0;
}
.haus .ingredient-table th,
.haus .ingredient-table td {
  overflow-wrap: anywhere;
}
.haus .ingredient-table .ingredient-name {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}
.haus .ingredient-staple {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.haus .ingredient-staple-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}
.haus[data-enhanced] .ingredient-staple-save,
.haus[data-enhanced] .ingredient-filter-apply {
  display: none;
}
.haus .ingredient-review-tag {
  background: var(--ochre-soft);
  color: var(--ochre);
}
.haus .ingredient-detail-head {
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}
.haus .ingredient-detail-head .eyebrow {
  margin-top: 24px;
}
.haus .ingredient-detail-head h1 {
  margin: 12px 0;
}
.haus .ingredient-message {
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}
.haus .ingredient-form,
.haus .ingredient-history,
.haus .ingredient-confirmation {
  max-width: 800px;
}
.haus .ingredient-form h2,
.haus .ingredient-history h2 {
  font: 500 25px/1.2 var(--font-display);
  margin-bottom: 20px;
}
.haus .ingredient-form .field-hint {
  margin-top: 8px;
}
.haus .ingredient-delete {
  color: var(--danger);
}
.haus .ingredient-confirm-delete {
  background: var(--danger);
  color: var(--surface);
}
.haus .ingredient-confirmation .actions {
  margin-top: 24px;
}
.haus .ingredient-history {
  margin: 24px 0 36px;
}
.haus .archive-source {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.haus .archive-import-form.stack,
.haus .archive-progress {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  overflow-wrap: anywhere;
}
.haus .archive-import-form textarea {
  width: 100%;
  resize: vertical;
}
.haus .archive-import-form .actions,
.haus .archive-progress .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.haus .recipe-type-editor {
  margin: var(--space-4) 0;
}
.haus .recipe-type-editor fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.haus .recipe-type-editor legend {
  margin-bottom: var(--space-2);
}
.haus .recipe-detail-head .recipe-type-editor .actions {
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: 0;
}
.haus .recipe-type-editor label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.haus .recipe-toolbar,
.haus #recipe-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}
.haus .recipe-toolbar {
  justify-content: space-between;
  margin-bottom: var(--space-5);
}
.haus .recipe-toolbar-actions {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: var(--space-2);
  margin-left: auto;
}
.haus .recipe-toolbar-actions > form {
  grid-area: 1 / 2;
  margin: 0;
}
.haus .recipe-toolbar-actions > form > button {
  width: 100%;
}
.haus .recipe-toolbar-actions > [data-cancel-recipe] {
  grid-area: 1 / 1;
}
.haus .recipe-toolbar-actions > .recipe-view-only {
  align-self: center;
}
.haus #recipe-editor,
.haus [data-cancel-recipe] {
  visibility: hidden;
}
.haus [data-editing='true'] #recipe-editor,
.haus [data-editing='true'] [data-cancel-recipe] {
  visibility: visible;
}
.haus[data-enhanced] [data-dirty='false'] [data-save-recipe] {
  visibility: hidden;
}
.haus .recipe-toolbar .recipe-back {
  margin: 0;
}
.haus .recipe-detail-head > .small {
  margin-bottom: var(--space-2);
}
.haus .recipe-detail-head > .smash-notice {
  margin-bottom: var(--space-4);
}
.haus .recipe-tags > .recipe-edit-field {
  flex: 1;
}
.haus .recipe-tag-values {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.haus .recipe-edit-only,
.haus [data-editing='false'] .recipe-edit-only,
.haus .recipe-edit-input {
  display: none;
}
.haus [data-editing='true'] .recipe-view-only,
.haus [data-editing='true'] .recipe-edit-display {
  display: none;
}
.haus [data-editing='true'] .recipe-edit-only,
.haus [data-editing='true'] .recipe-edit-input {
  display: block;
}
.haus [data-editing='true'] #recipe-editor,
.haus [data-editing='true'] .recipe-remove {
  display: inline-flex;
}
.haus[data-enhanced] [data-editing='true'] .recipe-edit-display {
  display: inline;
  cursor: text;
  border-bottom: 1px dashed var(--muted);
}
.haus[data-enhanced] [data-editing='true'] .recipe-edit-input,
.haus[data-enhanced] [data-editing='true'] [data-active='true'] .recipe-edit-display {
  display: none;
}
.haus[data-enhanced] [data-editing='true'] [data-active='true'] .recipe-edit-input {
  display: block;
}
.haus .recipe-edit-field,
.haus .recipe-edit-input {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
.haus [data-active='true'].recipe-edit-field {
  display: block;
}
.haus .recipe-edit-input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  text-align: left;
}
.haus textarea.recipe-edit-input {
  min-height: 90px;
  resize: vertical;
}
.haus [data-editing='true'] .recipe-details > div {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.haus [data-editing='true'] .recipe-details dd {
  flex: 1 1 120px;
  min-width: 0;
}
.haus [data-editing='true'] .recipe-time-inputs,
.haus[data-enhanced] [data-editing='true'] [data-active='true'] .recipe-time-inputs {
  display: grid;
  gap: var(--space-3);
}
.haus .recipe-time-inputs label {
  display: grid;
  gap: var(--space-2);
}
.haus [data-editing='true'] [data-recipe-row] {
  position: relative;
  padding-right: 44px;
}
.haus .recipe-remove {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  padding: var(--space-3);
}
.haus .recipe-edit-display:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.haus [data-editing='true'] .recipe-ingredients,
.haus [data-editing='true'] .method-list {
  display: grid;
  gap: var(--space-3);
  margin-block: var(--space-4);
}
.haus [data-editing='true'] .recipe-ingredients li,
.haus [data-editing='true'] .method-list li {
  margin: 0;
  min-height: 44px;
}
.haus [data-editing='true'] .method-list {
  gap: var(--space-5);
}
.haus [data-editing='true'] .method-list strong {
  margin-bottom: var(--space-2);
}
.haus [data-editing='true'] .method-list p {
  margin: 0;
}
.haus [data-editing='true'] .recipe-method > .smash-notice {
  margin-top: var(--space-4);
}
.haus .archive-table {
  table-layout: fixed;
}
.haus .archive-table th:first-child {
  width: 30%;
}
.haus .archive-table th:nth-child(2) {
  width: 24%;
}
.haus .archive-table th:nth-child(5) {
  width: 100px;
}
.haus .archive-table th:last-child {
  width: 110px;
}
.haus .archive-table .button {
  white-space: nowrap;
}
@media (max-width: 980px) {
  .haus .ingredient-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .haus .ingredient-table tbody {
    display: grid;
    gap: 24px;
  }
  .haus .ingredient-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }
  .haus .ingredient-table tr:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .haus .ingredient-table td {
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
    padding: 0;
    border: 0;
  }
  .haus .ingredient-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
  }
  .haus .ingredient-table td:first-child {
    grid-column: 1 / -1;
  }
  .haus .ingredient-table td:first-child::before {
    display: none;
  }
  .haus .ingredient-table td:last-child {
    text-align: left;
  }
  .haus .ingredient-table .ingredient-name {
    font-size: 17px;
  }
}
.haus .improve-page {
  display: grid;
  gap: var(--space-5);
  padding-bottom: var(--space-6);
}
.haus .improve-page .intro {
  padding-bottom: 0;
}
.haus .improve-page p,
.haus .improve-page h2,
.haus .improve-page pre {
  margin: 0;
}
.haus .improve-page .panel {
  padding: var(--space-5);
}
.haus .improve-page .account-form,
.haus .improve-conversation,
.haus .improve-transcript,
.haus .improve-history {
  display: grid;
  gap: var(--space-4);
  min-width: 0;
}
.haus .improve-page .account-form {
  max-width: none;
}
.haus .improve-composer > .button {
  justify-self: start;
}
.haus .improve-page .field,
.haus .improve-message {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}
.haus .improve-message {
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  overflow-wrap: anywhere;
}
.haus .improve-message[data-speaker='codex'] {
  background: transparent;
}
.haus .improve-message > div,
.haus .improve-page pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.haus .improve-page pre {
  font-size: 13px;
  line-height: 1.6;
}
.haus .improve-activity {
  min-width: 0;
}
.haus .improve-activity[open] > pre {
  margin-top: var(--space-3);
}
.haus .improve-activity summary {
  cursor: pointer;
  color: var(--muted);
}
.haus .improve-conversation .improve-request {
  padding: var(--space-4);
  box-shadow: none;
}
.haus .improve-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.haus .improve-history ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-4);
}
.haus .improve-history li {
  display: grid;
  gap: var(--space-2);
  overflow-wrap: anywhere;
}
.haus .improve-page textarea.input {
  min-height: 120px;
}
.haus .improve-page [hidden] {
  display: none;
}
@media (max-width: 720px) {
  .haus .improve-page .panel {
    padding: var(--space-4);
  }
  .haus .improve-page .intro {
    align-items: stretch;
    flex-direction: column;
  }
  .haus .improve-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .haus .improve-actions .button,
  .haus .improve-composer .button {
    width: 100%;
  }
}

/* Organize: shared administrator Planner. */
.haus .kanban-workspace,
.haus .kanban-editor {
  display: grid;
  gap: var(--space-5);
  min-width: 0;
  padding-bottom: var(--space-5);
}
.haus .kanban-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-4);
}
.haus .kanban-toolbar > p {
  flex: 1 1 260px;
}
.haus .kanban-add-column {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--space-3);
}
.haus .kanban-add-column .field {
  flex: 1 1 180px;
}
.haus .kanban-board {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding: var(--space-1) var(--space-1) var(--space-4);
  align-items: start;
}
.haus .kanban-column {
  flex: 0 0 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.haus .kanban-column-head,
.haus .kanban-card-head,
.haus .kanban-card-foot,
.haus .kanban-dialog-head {
  display: flex;
  align-items: start;
  gap: var(--space-2);
}
.haus .kanban-column-head h2 {
  flex: 1;
  min-width: 0;
  font: 500 22px/1.25 var(--font-display);
  padding-block: var(--space-2);
  overflow-wrap: anywhere;
}
.haus .kanban-count {
  margin-inline-start: var(--space-2);
}
.haus .kanban-handle {
  flex-shrink: 0;
  width: 44px;
  padding: var(--space-2);
  cursor: grab;
  touch-action: none;
}
.haus .kanban-handle > span {
  font-size: 22px;
}
.haus .kanban-cards {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  min-height: 88px;
  flex: 1;
}
.haus .kanban-card {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.haus .kanban-card-head > a {
  flex: 1;
  min-width: 0;
  padding-block: var(--space-2);
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  overflow-wrap: anywhere;
}
.haus .kanban-card-head > a:hover {
  text-decoration: underline;
}
.haus .kanban-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.haus .kanban-card-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
}
.haus .kanban-card-foot {
  align-items: center;
}
.haus .kanban-card-foot > p {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.haus .kanban-empty {
  padding: var(--space-3);
}
.haus .kanban-form {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}
.haus .kanban-form .field {
  gap: var(--space-2);
}
.haus .kanban-add-card {
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
}
.haus .kanban-options > summary {
  min-width: 44px;
  padding: var(--space-2);
}
.haus .kanban-options {
  min-width: 0;
}
.haus .kanban-column-head:has(> .kanban-options[open]),
.haus .kanban-card-foot:has(> .kanban-options[open]) {
  flex-wrap: wrap;
}
.haus .kanban-options[open] {
  flex: 1 1 100%;
}
.haus .kanban-option-content {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-3);
}
.haus .kanban-option-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.haus .kanban-option-actions form {
  flex: 1 1 100%;
}
.haus .kanban-option-actions .button {
  width: 100%;
}
.haus .kanban-dialog {
  width: min(640px, calc(100% - 36px));
  max-width: none;
  max-height: calc(100dvh - 36px);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
.haus .kanban-dialog::backdrop {
  background: #0008;
}
.haus .kanban-dialog-head {
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
}
.haus .kanban-dialog [data-kanban-error] {
  margin-bottom: var(--space-5);
}
.haus .kanban-dialog .kanban-editor {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.haus .kanban-dialog [data-kanban-back] {
  display: none;
}
.haus .kanban-assignees {
  border: 0;
  padding: 0;
  min-width: 0;
}
.haus .kanban-assignees > div {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}
.haus .kanban-assignees legend {
  margin-bottom: var(--space-2);
}
.haus .kanban-comments {
  display: grid;
  gap: var(--space-3);
  border-top: 1px solid var(--line);
  padding-top: var(--space-5);
}
.haus .kanban-comments h2 {
  font: 500 23px/1.25 var(--font-display);
}
.haus .kanban-comment {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
}
.haus .kanban-comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  font-size: 12px;
}
.haus .kanban-comment-meta time {
  color: var(--muted);
}
.haus .kanban-delete form {
  padding-top: var(--space-3);
}
.haus .kanban-drag-source {
  opacity: 0.35;
}
.haus .kanban-ghost {
  position: fixed;
  pointer-events: none;
  z-index: 100;
  opacity: 0.9;
  max-height: 70dvh;
  overflow: hidden;
}
.haus .kanban-drop-target {
  outline: 2px dashed var(--action);
  outline-offset: 2px;
}
@media (max-width: 720px) {
  .haus .kanban-column {
    flex-basis: min(300px, calc(100vw - 52px));
  }
  .haus .kanban-dialog {
    padding: var(--space-4);
  }
  .haus .kanban-add-column {
    width: 100%;
  }
}

.routine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
  align-items: start;
}
.routine-person { min-width: 0; }
.routine-person h2 { margin-bottom: 16px; }
.routine-person .routine-category { margin: 16px 0 4px; font-size: .875rem; font-weight: 600; }
.routine-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.routine-check-label, .routine-choice {
  display: flex;
  align-items: start;
  gap: 12px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.routine-check-label { flex: 1; min-width: 0; min-height: 44px; padding: 6px 0; align-items: center; justify-content: space-between; }
.routine-task-editor summary > span { display: grid; gap: 4px; }
.routine-check input[type="checkbox"], .routine-choice input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent-text);
}
.routine-check-label input[type="checkbox"] { margin: 0; }
.routine-check-label:has(input:checked) .routine-task-title { text-decoration: line-through; opacity: .7; }
.routine-settings { margin-bottom: 24px; }
.routine-settings-person, .routine-task-editor { padding: 16px 0; border-top: 1px solid var(--line); }
.routine-settings summary { cursor: pointer; overflow-wrap: anywhere; }
.routine-settings summary::marker { color: var(--accent-text); }
.routine-settings details[open] > summary { margin-bottom: 20px; }
.routine-settings .account-form { max-width: none; }
.routine-task-editor .account-form + .account-form { margin-top: 24px; }
.routine-task-editor summary .small { display: block; margin: 4px 0 0 18px; }
.routine-assignments { display: grid; gap: 12px; min-width: 0; border: 0; padding: 0; margin: 0; }
.routine-assignments legend { font-weight: 600; padding: 12px 0; }
.routine-settings .input { min-width: 0; }
#routine-status:not([hidden]) { margin-bottom: 24px; }
html.routine-enhanced .routine-save { display: none; }
