#module-life-stories .module-heading { justify-content: space-between; }
.life-filters, .life-metadata {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 12px;
}
.life-filters { margin-bottom: 20px; }
.life-filters label, .life-metadata label { margin: 0; }
#module-life-stories label > :is(input,select,textarea) { margin-top: 5px; }
#module-life-stories .life-stages { margin: 16px 0 0; padding: 0; border: 0; }
.life-stages legend { font-weight: 600; font-size: .89rem; }
#life-stages { display: flex; flex-wrap: wrap; gap: 4px 16px; }
#life-stages label { display: inline-flex; gap: 7px; align-items: center; min-height: 40px; margin: 0; }
#life-stages input { width: 18px; min-height: 18px; height: 18px; margin: 0; accent-color: var(--action-ink); }
.life-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 10px 4px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  text-align: start;
}
.life-row:hover { background: var(--group); }
.life-row .life-name { display: grid; gap: 4px; flex: 1; min-width: 0; }
.life-row .life-name strong { overflow-wrap: anywhere; }
.life-row .note { margin: 0; font-weight: 400; }
.life-row .status-group { flex-wrap: wrap; justify-content: flex-end; }
#module-life-stories .life-act { scroll-margin-top: 85px; }
#life-reference:empty { display: none; }
#life-delivery-preview, #fixed-dailies { margin: 12px 0; padding: 0 18px; }
#life-delivery-preview[open], #fixed-dailies[open] { padding-bottom: 16px; }
#life-delivery-preview summary, #fixed-dailies > summary { padding: 12px 0; min-height: 44px; cursor: pointer; }
#life-delivery-preview > summary, #fixed-dailies > summary { font-weight: 650; }
#life-delivery-preview h4 { margin: 16px 0 8px; }
#life-delivery-preview .toolbar { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
#life-delivery-preview details + details { border-top: 1px solid var(--line); }
@media (max-width: 680px) {
  #module-life-stories .module-heading { flex-wrap: wrap; }
  .life-filters, .life-metadata { grid-template-columns: 1fr 1fr; }
  #life-acts .choice-fields { grid-template-columns: 1fr; gap: 0; }
  .life-row { gap: 6px; }
  .life-row .status-group { flex-direction: column; }
}
