/* R34: layout of the existing helper and interface-preference dialog.
 * Semantic colors live in semantic-ui.css. No data, permissions or visibility changes.
 */
.caule-help-entry { max-width: 184px; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 20px 16px 20px 16px; background: #f4eef7; border: 1px solid #d9c9e0; color: #402c49; box-shadow: none; }
.caule-help-entry:hover { background: #ede2f3; }
.caule-header-avatar { position: static; flex: 0 0 48px; width: 48px; height: 48px; overflow: visible; border-radius: 0; background: transparent; }
.caule-header-avatar img { position: static; inset: auto; display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
.caule-help-entry small { font-size: 12px; color: #66536e; }
.caule-help-entry strong { font-family: "Plantae Nunito", sans-serif; font-size: 17px; color: #5f177b; }
.today-plantulo { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 16px; padding: 20px; border: 1px solid #d9e2d4; border-radius: 24px 18px 24px 18px; background: linear-gradient(115deg, #edf4e9, #f6f8ef); }
.today-plantulo > .today-plantulo-icon:has([data-caule-today-image]) { width: 76px; height: 100px; min-width: 0; overflow: hidden; }
.today-plantulo > div { min-width: 0; overflow-wrap: anywhere; }
.today-plantulo strong { display: block; margin: 5px 0 8px; font-family: "Plantae Nunito", sans-serif; font-size: 20px; line-height: 1.3; }
.today-plantulo [data-today-state] { color: #426146; font-size: 12px; font-weight: 600; }
.today-plantulo [data-today-reason] { display: block; font-size: 15px; line-height: 1.5; }
dialog#caule-help-dialog { box-sizing: border-box; width: min(520px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100dvh - 32px); padding: 22px; border: 1px solid #d8ccdf; border-radius: 24px 19px 24px 19px; background: #faf7f1; box-shadow: 0 20px 70px #25392d25; }
.caule-help-heading { color: #5f177b; }
.caule-help-intro { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 18px; align-items: start; margin-top: 18px; }
.caule-help-portrait { display: block; width: 84px; height: 112px; margin: 0; object-fit: contain; }
.caule-help-intro > div { min-width: 0; overflow-wrap: anywhere; }
.caule-help-intro h2 { font-size: 23px; line-height: 1.25; color: #164b2a; }
.caule-help-intro p { color: #46554a; font-size: 16px; line-height: 1.5; }
.caule-help-close { min-width: 64px; min-height: 44px; border: 1px solid #ccc5cc; border-radius: 14px; background: #fffdf9; color: #4e4752; }
.caule-help-action { color: #5f177b; background: #fffdf9; border: 1px solid #cbbbd2; border-radius: 15px; min-height: 48px; }
.caule-help-action:hover { background: #f2eaf6; }
.caule-help-footnote { color: #627068; border-top: 1px solid #e3dce6; padding-top: 12px; }
dialog#guidance-dialog { box-sizing: border-box; width: min(480px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 24px; border: 1px solid #d6cadc; border-top: 4px solid #7b219b; border-radius: 24px 20px 24px 20px; background: linear-gradient(140deg, #f4edf7 0, #faf7f0 45%, #f5f6ee 100%); color: #25392d; box-shadow: 0 22px 80px #25392d30; }
.guidance-dialog .dialog-heading { align-items: flex-start; gap: 12px; }
.guidance-dialog .dialog-heading > div { min-width: 0; }
.guidance-dialog .eyebrow { color: #6d377e; font-size: 11px; font-weight: 600; letter-spacing: .1em; margin: 0 0 9px; }
.guidance-dialog h2 { margin: 0; color: #164b2a; font-size: clamp(25px, 6.5vw, 31px); line-height: 1.17; letter-spacing: -.025em; overflow-wrap: anywhere; }
.guidance-dialog [data-guidance-close] { flex: 0 0 40px; width: 40px; height: 44px; min-height: 44px; padding: 10px; border: 1px solid #ded6e1; border-radius: 13px; background: #fffdf9; color: #594d60; }
.guidance-dialog [data-guidance-close] svg { width: 20px; height: 20px; }
.guidance-intro { margin: 14px 0 20px; color: #59645d; font-size: 16px; line-height: 1.5; }
.guidance-options { min-inline-size: 0; margin: 0 0 18px; padding: 0; border: 0; gap: 10px; }
.guidance-legend { margin-bottom: 9px; padding: 0; font-size: 12px; font-weight: 600; color: #536357; }
.guidance-options label { position: relative; }
.guidance-options input { top: 20px; right: 14px; width: 22px; height: 22px; margin: 0; }
.guidance-options .guidance-option-body { position: relative; min-height: 90px; padding: 16px 44px 16px 62px; border: 1px solid #d5dbd0; border-radius: 18px 15px 18px 15px; background: #fffdf9; box-shadow: none; transition: border-color .15s, background-color .15s; }
.guidance-option-body > .icon { position: absolute; left: 14px; top: 20px; width: 35px; height: 35px; }
.guidance-option-body strong { font-family: "Plantae Nunito", sans-serif; font-size: 17px; line-height: 1.3; color: #25392d; }
.guidance-option-body small { font-size: 14px; color: #59645d; line-height: 1.4; }
.guidance-option-body::after { content: ''; position: absolute; right: 14px; top: 20px; display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid #87788e; border-radius: 50%; font-family: sans-serif; font-size: 14px; font-weight: 700; }
.guidance-options input:checked + .guidance-option-body { border-color: #7b219b; box-shadow: inset 0 0 0 1px #7b219b; background: #f2eaf6; }
.guidance-options input:checked + .guidance-option-body::after { content: '✓'; background: #7b219b; color: #fff; border-color: #7b219b; }
.guidance-options input:focus-visible + .guidance-option-body { outline: 3px solid #5f177b; outline-offset: 3px; }
.guidance-tips { padding: 14px; border: 1px solid #d9e2d2; border-radius: 16px; background: #edf3e7; }
.guidance-tips .switch-row { margin: 0; gap: 10px; align-items: center; font-size: 16px; }
.guidance-tips input { accent-color: #7b219b; width: 21px; height: 21px; flex: 0 0 21px; }
.guidance-tips p { margin: 6px 0 0 31px; color: #52624f; font-size: 13px; line-height: 1.4; }
.guidance-plan-note { margin: 12px 0 18px; color: #65646a; font-size: 12px; line-height: 1.4; }
.guidance-footer { display: grid; gap: 8px; }
.guidance-footer button { min-height: 48px; margin: 0; }
@media (max-width: 380px) {
  .caule-header-avatar { width: 44px; height: 44px; flex-basis: 44px; }
  .caule-help-entry { gap: 5px; padding-right: 10px; }
  .today-plantulo { grid-template-columns: 56px minmax(0,1fr); gap: 12px; padding: 16px; }
  .today-plantulo > .today-plantulo-icon:has([data-caule-today-image]) { width: 56px; height: 80px; }
  .today-plantulo strong { font-size: 18px; }
  dialog#guidance-dialog { padding: 18px; }
  .guidance-options .guidance-option-body { padding-left: 51px; padding-right: 39px; }
  .guidance-option-body > .icon { left: 11px; width: 28px; height: 30px; }
  .guidance-option-body strong { font-size: 16px; }
  dialog#caule-help-dialog { padding: 18px; }
  .caule-help-intro { grid-template-columns: 58px minmax(0,1fr); gap: 12px; }
  .caule-help-portrait { width: 58px; height: 80px; }
  .caule-help-intro h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .guidance-options .guidance-option-body { transition: none; } }
