/* Opt-in, selected-screen enhancement. Standard keeps the existing layout. */
.layout-choice { min-width: 0; margin: 20px 0 8px; padding: 0; border: 0; }
.layout-choice[hidden] { display: none; }
.layout-choice label { display: block; margin-bottom: 8px; font-weight: 700; }
.layout-choice select { width: 100%; min-height: 44px; font-size: 16px; }
.layout-choice p { margin: 8px 0 0; font-size: 13px; color: rgb(var(--scene-muted)); }
.layout-choice p:empty { display: none; }
.day-companion[hidden] { display: none; }
.sun-club .planner-layout.duo-expanded {
  display: grid; grid-template-columns: minmax(310px,1.15fr) minmax(240px,1fr);
  gap: 24px 18px; align-items: start;
}
.sun-club .duo-expanded > .calendar-tool { grid-column: 1; grid-row: 1; container: duo-calendar / inline-size; }
body.backyard-club.poolside-edit.sun-club #appView .duo-expanded > .calendar-tool { position: static; }
.sun-club .duo-expanded > .day-companion { grid-column: 2; grid-row: 1; min-width: 0; container: duo-details / inline-size; }
.sun-club .duo-expanded > .planner-support { grid-column: 1 / -1; grid-row: 2; }
body.poolside-edit .duo-expanded #detailsPanel { background: transparent !important; }
.sun-club .duo-expanded .details-heading { flex-wrap: wrap; gap: 8px; }
.sun-club .duo-expanded .details-heading h2 { font-size: 24px; letter-spacing: 0; }
.sun-club .duo-expanded .details-heading .eyebrow { overflow-wrap: anywhere; }
.sun-club .duo-expanded .details-actions { margin-left: 0; }
.sun-club .duo-expanded .metrics-grid { grid-template-columns: minmax(0,1fr); }
.sun-club .duo-expanded .metric { border: 0; border-bottom: 1px solid var(--sun-rule); border-radius: 0; padding: 12px 0; background: transparent; }
.sun-club .duo-expanded .metric:last-child:nth-child(3) { display: block; }
.sun-club .duo-expanded .metric strong { font-size: 25px; letter-spacing: 0; }
.sun-club .duo-expanded .details-button-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
.sun-club .duo-expanded .details-button-row button { min-height: 44px; padding: 8px; font-size: 13px; flex-wrap: wrap; overflow-wrap: anywhere; }
.sun-club .duo-expanded .details-button-row .primary-button { font-size: 15px !important; }
.sun-club .duo-expanded .day-analysis summary { min-height: 44px; padding-block: 10px; }
.sun-club .duo-expanded .safety-details { grid-template-columns: minmax(0,1fr); }
.sun-club .duo-expanded .safety-readings { justify-content: flex-start; }
.sun-club .duo-expanded .reason-list { display: block; padding-left: 16px; list-style: disc; }
.sun-club .duo-expanded .reason-list li { box-shadow: none; }
body.backyard-club.poolside-edit.sun-club #appView .duo-expanded #calendarGrid .day-tile.is-selected { box-shadow: inset 0 0 0 2px #142227 !important; }
@container duo-calendar (max-width: 410px) {
  .sun-club .calendar-heading { grid-template-columns: minmax(0,1fr) 94px; }
  .sun-club .calendar-tool h2 { font-size: 21px; letter-spacing: 0; }
  .sun-club .calendar-eyebrow { font-size: 9px; }
  .sun-club :is(.calendar-grid,.weekday-row) { gap: 5px; }
  .sun-club .tile-status { font-size: 24px; letter-spacing: 0; }
  .sun-club :is(.day-number,.tile-temp) { font-size: 12px; }
  .sun-club .club-legend { flex-wrap: wrap; justify-content: start; font-size: 10px; }
  .sun-club .calendar-footer { flex-wrap: wrap; }
  .sun-club.kite-mode .tile-temp { font-size: 10px; }
  body.sun-club.kite-mode #calendarGrid .back-value { font-size: 9px; }
}
@container duo-details (min-width: 340px) {
  .sun-club .duo-expanded .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
