:root {
  --page-header-height:4rem;
}
#site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--page-header-height) + var(--safe-top));
  padding: calc(12px + var(--safe-top)) max(24px, var(--safe-right)) 6px max(24px, var(--safe-left));
  pointer-events: none;
  transition: transform .18s ease;
}
#site-header > * {
  pointer-events: auto;
}
#site-header > div {
  display: flex;
  align-items: center;
  min-width: 0;
}
body:is(.healing-mode, .calendar-mode) #site-header {
  background: #fff;
}
@media (max-width: 650px) {
  :root {
    --page-header-height:3.25rem;
  }
  #site-header {
    padding: calc(10px + var(--safe-top)) max(16px, var(--safe-right)) 4px max(16px, var(--safe-left));
  }
}
@media (prefers-reduced-motion: reduce) {
  #site-header {
    transition: none;
  }
}
.mine-actions,
.form-actions {
  flex-wrap: wrap;
  min-width: 0;
}
.mine-actions button,
.form-actions button {
  width: auto;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
#panel .window-record-tabs {
  min-width: 0;
  flex: 1;
}
.mood-filters button {
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
  height: auto;
}
.study-switch {
  flex-wrap: wrap;
}
.study-menu-options {
  max-width: min(80vw, 24rem);
}
.study-menu-options button {
  white-space: normal !important;
  overflow-wrap: anywhere;
}
.feelings-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  background: transparent;
  padding: 0;
  margin: 0 0 14px;
}
.feelings-summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.feelings-summary .feeling-pixel {
  width: 22px;
  height: 22px;
  flex: none;
}
.feelings-summary .is-zero {
  opacity: .4;
}
.study-healing .study-count {
  border-top: 0;
  margin-top: 24px;
  padding-top: 0;
}
.study-recommend {
  font: inherit;
  font-size: calc(14 * var(--text-unit));
  padding: 6px 10px;
  max-width: 100%;
  white-space: normal;
  background: #fff;
  border: 1px solid #afc5d4;
}
.study-count .study-tools {
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@container (max-width:13rem) {
  .customizer-row {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }
  .customizer-row .animal-preview {
    width: 94px;
  }
  .customizer-controls {
    width: 100%;
  }
}
