/* One summary page for every finished activity (web, 21 Oct 2026).
 * Styles that are specific to the new summary sheet; existing .dbar, .dsections,
 * .card and measurement-tiles.css still own the rest of the page. */

/* Cards in the detail column are flex items; make each one fill the column width
 * so the energy card and the tile grid sit on the same full-width ground. */
.dsections {
  container-type: inline-size;
}
.dsections > .card {
  width: 100%;
}

/* Done button in the toolbar when the page is fresh from a Finish. */
.dbar .done-btn {
  font-size: var(--font-body);
  font-weight: var(--weight-semibold);
  color: var(--accent);
  padding: 0 6px;
  min-height: 34px;
}

/* The name card keeps its date/source line and gains an editable name. */
.dheadcard .name-input {
  flex: 1;
  min-width: 0;
  font-size: var(--font-title3);
  font-weight: var(--weight-bold);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
  outline: none;
}
.dheadcard .name-input:hover,
.dheadcard .name-input:focus {
  border-bottom-color: var(--accent);
}
.dheadcard .name-input::placeholder {
  color: var(--ink-tertiary);
  font-weight: var(--weight-regular);
}
.dheadcard {
  flex-wrap: wrap;
}
.dheadcard .name-input {
  flex-basis: 100%;
  width: 100%;
  margin-top: 4px;
}

/* Three-dots menu rows: icons on every row, red delete last. */
.summary-menu .menu-action-icon,
.summary-menu .menu-action-icon svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--accent);
}
.summary-menu button.danger .menu-action-icon {
  color: currentColor;
}

/* Media editor host inside the media card. */
.media-editor-host {
  --am-gap: 8px;
}
.media-editor-host .am-grid {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: var(--am-gap);
}
.media-editor-host .am-cell,
.media-editor-host .am-add {
  aspect-ratio: 1;
  border-radius: 12px;
}
.media-editor-host .am-add {
  border: 1.5px dashed var(--ink-tertiary);
  background: transparent;
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: var(--weight-semibold);
}
.media-editor-host .am-add b {
  font-size: 24px;
  font-weight: var(--weight-semibold);
}
.media-editor-host .am-foot {
  font-size: var(--font-caption2);
  color: var(--ink-tertiary);
  margin-top: 8px;
  line-height: 1.35;
}
.media-editor-host .am-busy {
  margin-top: 8px;
}
.media-editor-host .am-problem {
  font-size: var(--font-caption);
  color: var(--destructive);
  margin-top: 6px;
}

/* "Changes save as you go" quiet line. */
.autosave-note {
  text-align: center;
  font-size: var(--font-caption);
  color: var(--ink-tertiary);
  padding: 4px 0 8px;
}

/* Always-open effort and note cards on the summary page. */
.summary-effort-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.summary-effort-head b {
  font-size: var(--font-subheadline);
  font-weight: var(--weight-bold);
}
.summary-effort-head small {
  font-size: var(--font-caption);
}
.summary-note-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.summary-note-card .sp-cap,
.sp-cap {
  font-size: var(--font-caption2);
  font-weight: var(--weight-semibold);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-secondary);
}
.sp-note {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: var(--font-subheadline);
  color: var(--ink);
  resize: none;
  outline: none;
  padding: 0;
  min-height: 22px;
  overflow: hidden;
  overflow-wrap: anywhere;
  field-sizing: content;
}
.sp-note::placeholder {
  color: var(--ink-tertiary);
}

/* Summary edit and map visibility dialogs reuse .figures-dialog chrome. */
.summary-edit-dialog label,
.map-visibility-dialog label {
  display: block;
  font-size: 13px;
  color: var(--ink-secondary);
  margin: 14px 0 6px;
}
.summary-edit-dialog input,
.summary-edit-dialog textarea,
.summary-edit-dialog select,
.map-visibility-dialog input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid var(--separator);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.summary-edit-dialog .row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.summary-edit-dialog .row-two label {
  margin-top: 0;
}
.summary-edit-dialog .edit-hint {
  font-size: var(--font-caption2);
  color: var(--ink-tertiary);
  margin: -4px 0 6px;
  line-height: 1.35;
}

/* Map visibility toggles. */
.map-visibility-dialog .map-vis-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.map-visibility-dialog .map-vis-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: none;
}
.map-visibility-dialog .map-vis-row span {
  font-size: var(--font-subheadline);
}

/* Sauna / yoga summary page: the header says the modality and state. */
.dheadcard .modality-title {
  font-size: var(--font-subheadline);
  font-weight: var(--weight-semibold);
}
.dheadcard .modality-sub {
  font-size: var(--font-caption2);
  color: var(--ink-secondary);
}

/* A compact pair of primary tiles used for sauna Duration / Temperature and
 * yoga Duration, before the shared metric tiles. */
.summary-pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
/* Its cards are the grid's children, not .dsections', so they take that card's box here: without the
 * padding the rounded corner clipped the label ("TIME" read "ιME", 22 Oct). */
.summary-pair-grid .card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border-radius: var(--radius-card);
}
/* Sauna thermal-load tile: two tap-through faces, with dots showing which is showing. */
.summary-pair-grid .card.sauna-thermal {
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sauna-thermal-faces {
  display: grid;
  min-width: 0;
}
.sauna-thermal-face {
  display: flex;
  flex-direction: column;
  gap: 4px;
  grid-area: 1 / 1;
  min-width: 0;
}
.sauna-thermal-sub {
  font-size: var(--font-caption2);
  color: var(--ink-secondary);
  white-space: nowrap;
}
@media (max-width: 420px) {
  .sauna-thermal-sub { font-size: 10px; }
}
