/* Care and supplement reading surfaces, within the existing parchment theme. */
.guild-theme .health-product-photo { position: relative; display: grid; place-items: center; width: 72px; height: 82px; flex: none; border-radius: 8px; background: #fffdfa; overflow: hidden; }
.guild-theme .health-product-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; box-sizing: border-box; }
.guild-theme .health-product-placeholder { font-size: 1.8rem; }
.guild-theme .health-product-photo.has-photo .health-product-placeholder { visibility: hidden; }
.guild-theme .health-product-source { display: block; color: #754017; font-size: .85rem; margin-top: .6rem; text-decoration: underline; }
.guild-theme .care-today-board { padding: 1.5rem; background: #ead3a5; box-shadow: none; }
.guild-theme .care-today-head h3 { font-size: 1.6rem; line-height: 1.3; }
.guild-theme .care-today-tools { display: flex; align-items: flex-start; justify-content: flex-end; flex-wrap: wrap; gap: .8rem; }
.guild-theme .care-add-menu > summary { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .45rem 1rem; border: 1px solid #956a35; border-radius: 6px; color: #352314; background: #f7d576; font-size: 1rem; font-weight: 700; cursor: pointer; list-style: none; }
.guild-theme .care-add-menu > summary::-webkit-details-marker { display: none; }
.guild-theme .care-add-choices { display: grid; gap: .5rem; margin-top: .5rem; }
.guild-theme .care-add-choices button { min-height: 44px; background: #fff6e4; color: #352314; border: 1px solid #956a35; box-shadow: none; }
.guild-theme .care-top-compose:empty { display: none; }
.guild-theme .care-routine-edit { min-height: 44px; flex: none; padding: .4rem .65rem; border: 1px solid #956a35; border-radius: 6px; background: #fff6e4; color: #523415; font-size: .9rem; box-shadow: none; }
.guild-theme .care-routine-guides { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #a37c48; }
.guild-theme .care-routine-guides h4 { margin: 0 0 .8rem; color: #352314; font-size: 1.12rem; }
.guild-theme .care-routine-guides .care-card-list { display: grid; gap: .7rem; }
.guild-theme #care-panel .care-guide-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .5rem 1rem; padding: .85rem; background: #fff6e4; border: 1px solid #b89766; }
.guild-theme .care-guide-row .care-card-heading { grid-column: 1; }
.guild-theme .care-guide-row .care-card-info { grid-column: 1; margin: 0; }
.guild-theme .care-guide-row .care-card-actions { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; }
.guild-theme .care-library { margin-top: 1rem; border-top: 1px solid #b89766; color: #f8e5c2; }
.guild-theme .care-library > summary { min-height: 44px; padding: .8rem 0; cursor: pointer; }
.guild-theme #care-panel [hidden] { display: none !important; }
.guild-theme :is(.care-add-menu > summary,.care-routine-edit,.care-library > summary):focus-visible { outline: 3px solid #844915; outline-offset: 3px; }
@media (max-width: 720px) {
  .guild-theme .care-today-tools { justify-content: flex-start; }
  .guild-theme #care-panel .care-routine-product { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .6rem; }
  .guild-theme .care-routine-product .care-routine-detail { grid-column: 1 / -1; }
  .guild-theme .care-routine-product .health-product-photo { width: 52px; height: 60px; }
  .guild-theme .care-routine-product .care-routine-edit { justify-self: start; }
  .guild-theme #care-panel .care-guide-row { grid-template-columns: minmax(0,1fr); }
  .guild-theme .care-guide-row .care-card-actions { grid-column: 1; grid-row: auto; }
}
.guild-theme .care-today-intro { max-width: 65ch; margin: .6rem 0 1.5rem; color: #5b4128; font-size: .95rem; line-height: 1.6; }
.guild-theme .care-today-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.guild-theme .care-today-group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding-bottom: .65rem; border-bottom: 1px solid #a37c48; }
.guild-theme .care-today-group-label { font-size: 1.12rem; letter-spacing: 0; color: #3a2312; }
.guild-theme .care-today-group-heading small { color: #5b4128; font-size: .82rem; white-space: nowrap; }
.guild-theme .care-today-group .care-today-chips { display: grid; gap: .6rem; margin-top: .8rem; }
.guild-theme .care-routine-product { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem .55rem .55rem; background: #fff6e4; border: 1px solid #b89766; border-radius: 10px; transition: background .18s ease-out, border-color .18s ease-out; }
.guild-theme .care-routine-product.is-done { background: #e1efd8; border-color: #587544; }
.guild-theme .care-routine-detail { display: flex; align-items: center; flex: 1; min-width: 0; gap: .85rem; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #352314; font: inherit; text-align: left; cursor: pointer; box-shadow: none; }
.guild-theme .care-routine-copy { display: grid; gap: .4rem; min-width: 0; }
.guild-theme .care-routine-copy strong { font-size: 1rem; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.guild-theme .care-routine-copy small { color: #655039; font-size: .8rem; line-height: 1.4; }
.guild-theme .care-today-chip { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; flex: none; padding: 0; border: 1px solid #956a35; border-radius: 8px; background: #f4e2bc; color: #523415; font-size: 1.4rem; box-shadow: none; }
.guild-theme .care-today-chip.is-done { background-color: #2f603d; border-color: #2f603d; color: #fff; }
.guild-theme .care-today-chip:hover { transform: none; background: #e9cea0; }
.guild-theme .care-today-chip.is-done:hover { background-color: #244d30; }
.guild-theme :is(.care-routine-detail, .care-today-chip, .food-supp-thumb, .food-supp-copy):focus-visible { outline: 3px solid #844915; outline-offset: 3px; }
.guild-theme .care-today-hint { display: block; margin-top: 1.3rem; font-size: .85rem; line-height: 1.6; }
.guild-theme .care-stat-chip { border: 1px solid #b98e50; border-radius: 8px; padding: .5rem .75rem; }
.guild-theme .care-stat-chip small { font-size: .76rem; }
.guild-theme .care-stat-chip strong { font-size: 1.1rem; }
.guild-theme #care-panel .care-card-heading { align-items: center; gap: .8rem; }
.guild-theme #care-panel .care-card-heading .health-product-photo { width: 56px; height: 64px; border: 1px solid #b89766; }
.guild-theme #care-panel .care-card-heading .health-product-photo:not(.has-photo) { width: 44px; height: 44px; background: #f9e9c7; }
.guild-theme #care-panel .care-card-heading .health-product-placeholder { font-size: 1.5rem; }
.guild-theme #care-panel .care-card-heading > div { min-width: 0; }
.guild-theme #care-panel .care-card-heading h3 { overflow-wrap: anywhere; }
.guild-theme #care-panel .care-card--compact { border-left-width: 1px; box-shadow: none; }
.guild-theme #care-panel .care-card--compact:hover { transform: none; box-shadow: none; border-color: #844915; }
.guild-theme #food-panel .food-supp-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; align-items: start; }
.guild-theme #food-panel#food-panel .food-supp { display: grid; grid-template-columns: 88px minmax(0, 1fr) 44px; gap: .9rem 1rem; padding: 1rem; border: 1px solid #b89766 !important; border-radius: 10px; background: #fff6e4 !important; }
.guild-theme #food-panel#food-panel .food-supp.is-taken { background: #e1efd8 !important; border-color: #587544 !important; }
.guild-theme #food-panel#food-panel .food-supp-thumb { grid-column: 1; grid-row: 1; width: 88px; height: 100px; border: 0; background: #fffdfa; border-radius: 8px; }
.guild-theme .food-supp-thumb .health-product-photo { width: 100%; height: 100%; }
.guild-theme #food-panel#food-panel .food-supp-copy { grid-column: 2; grid-row: 1; padding: 0; gap: .4rem; background: transparent; align-self: center; }
.guild-theme #food-panel#food-panel .food-supp-copy strong { font-size: 1.15rem; line-height: 1.4; }
.guild-theme #food-panel#food-panel .food-supp-copy small { font-size: .88rem; line-height: 1.55; }
.guild-theme #food-panel#food-panel .food-supp-copy .food-supp-status { font-size: .78rem; font-weight: 700; color: #5b4128; }
.guild-theme #food-panel#food-panel .food-supp.is-taken .food-supp-status { color: #234e30; }
.guild-theme #food-panel#food-panel .food-supp-toggle { grid-column: 3; grid-row: 1; border-radius: 8px; background: #f4e2bc; color: #523415; }
.guild-theme #food-panel#food-panel .food-supp.is-taken .food-supp-toggle { background-color: #2f603d; border-color: #2f603d; color: #fff; }
.guild-theme #food-panel#food-panel .food-supp-actions { grid-column: 2 / 4; justify-content: flex-start; flex-wrap: wrap; }
.guild-theme #food-panel#food-panel .food-supp-actions button { min-height: 44px; }
.guild-theme .food-detail-photo .health-product-photo { width: 100%; height: 240px; }
.guild-theme .food-detail-photo .health-product-photo img { object-fit: contain; }

/* Completion uses native checkboxes; the same action means the same thing in Care and Food. */
.guild-theme .care-today-chip,
.guild-theme #food-panel#food-panel .food-supp-toggle {
  appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  border: 2px solid #84613d; border-radius: 6px; background: #fffdfa;
  transition: background-color .18s ease-out, border-color .18s ease-out;
}
.guild-theme .care-today-chip:checked,
.guild-theme #food-panel#food-panel .food-supp-toggle:checked {
  border-color: #2f603d;
  background: #2f603d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l4 4L19 6' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px 26px no-repeat;
}
.guild-theme .care-today-chip:hover,
.guild-theme #food-panel#food-panel .food-supp-toggle:hover { border-color: #2f603d; background-color: #f1f7ed; }
.guild-theme .care-today-chip:checked:hover,
.guild-theme #food-panel#food-panel .food-supp-toggle:checked:hover { background-color: #244d30; }
.guild-theme #food-panel#food-panel .food-supp-toggle:focus-visible { outline: 3px solid #844915; outline-offset: 3px; }

/* Shared details: paper facts on the dark wooden dialog, with distinct action roles. */
.guild-theme .care-card-actions .care-use-toggle.is-done { background: #2f603d; border-color: #2f603d; }
.guild-theme .care-card-actions .care-use-toggle.is-done:hover { background: #244d30; }
.guild-theme #training-exercise-modal .food-detail-stats { gap: .65rem; }
.guild-theme #training-exercise-modal .food-detail-stats > div { background: #fff6e4; border: 1px solid #b89766; border-radius: 8px; padding: .8rem 1rem; }
.guild-theme #training-exercise-modal .food-detail-stats > div:first-child:nth-last-child(3) { grid-column: 1 / -1; }
.guild-theme #training-exercise-modal .food-detail-stats dt { color: #655039; font-size: .8rem; letter-spacing: .02em; }
.guild-theme #training-exercise-modal .food-detail-stats dd { color: #352314; font-size: 1rem; line-height: 1.5; margin-top: .3rem; overflow-wrap: anywhere; }
.guild-theme #training-exercise-modal .health-product-source { color: #ffe0a0; font-size: .9rem; }
.guild-theme #training-exercise-modal .food-detail-note { color: #f3e1cb; font-size: .95rem; line-height: 1.7; }
.guild-theme #training-exercise-modal .food-detail-photo .health-product-photo { height: 180px; }
.guild-theme #training-exercise-modal .health-product-detail-photo { display: flex; align-items: center; gap: 1rem; margin: 0 0 1rem; }
.guild-theme #training-exercise-modal .health-product-detail-photo .health-product-photo { width: 64px; height: 80px; }
.guild-theme #training-exercise-modal .health-product-detail-photo .health-product-source { margin: 0; }
.guild-theme #training-exercise-modal .care-step a { color: #754017; }
.guild-theme #training-exercise-modal .food-detail-actions { position: sticky; bottom: 0; z-index: 1; gap: .65rem; padding: .8rem 0 .4rem; background: #241b17; border-top: 1px solid #785841; }
.guild-theme #training-exercise-modal .food-detail-actions > button,
.guild-theme #training-guide-close { min-height: 44px; border-radius: 8px; padding: .6rem 1rem; font-size: .95rem; font-weight: 700; box-shadow: none; transition: background-color .18s ease-out; }
.guild-theme #training-exercise-modal .food-detail-actions .primary-action,
.guild-theme #training-exercise-modal .food-detail-actions .food-topup-log { background: #2f603d !important; border: 1px solid #2f603d !important; color: #fff !important; }
.guild-theme #training-exercise-modal .food-detail-actions :is(.secondary-action, .training-edit-content),
.guild-theme #training-guide-close { background: #fff6e4 !important; border: 1px solid #b89766 !important; color: #352314 !important; }
.guild-theme #training-exercise-modal .food-detail-actions .danger-row-action { background: #ffece4 !important; border: 1px solid #ad4b36 !important; color: #842b22 !important; }
.guild-theme #training-exercise-modal .food-detail-actions :is(.primary-action, .food-topup-log):hover { background: #244d30 !important; }
.guild-theme #training-exercise-modal .food-detail-actions :is(.secondary-action, .training-edit-content):hover,
.guild-theme #training-guide-close:hover { background: #efdcb8 !important; }
.guild-theme #training-exercise-modal .food-detail-actions .danger-row-action:hover { background: #f8d3c5 !important; }
.guild-theme #training-exercise-modal .food-detail-actions > button:focus-visible,
.guild-theme #training-guide-close:focus-visible { outline: 3px solid #ffe0a0; outline-offset: 3px; }
@media (max-width: 720px) {
  .guild-theme .care-today-board { padding: 1rem; }
  .guild-theme .care-today-groups { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .guild-theme .care-today-head { display: grid; gap: 1rem; }
  .guild-theme .care-stat-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .guild-theme .care-routine-detail { gap: .65rem; }
  .guild-theme .health-product-photo { width: 58px; height: 72px; }
  .guild-theme .care-routine-copy strong { font-size: .95rem; }
  .guild-theme #food-panel#food-panel .food-supp { grid-template-columns: 64px minmax(0, 1fr) 44px; gap: .75rem; padding: .8rem; }
  .guild-theme #food-panel#food-panel .food-supp-thumb { width: 64px; height: 84px; }
  .guild-theme #food-panel#food-panel .food-supp-actions { grid-column: 1 / 4; }
  .guild-theme #food-panel#food-panel .food-supp-copy strong { font-size: 1rem; }
  .guild-theme #training-exercise-modal .food-detail-photo .health-product-photo { height: 150px; }
  .guild-theme #training-exercise-modal .health-product-detail-photo .health-product-photo { height: 80px; }
  .guild-theme #training-exercise-modal .food-detail-actions .primary-action { flex: 1 1 100%; }
}

/* Character tracks remain distinct, with paper surfaces and readable colored ink. */
.guild-theme .character-sheet .attribute-grid { grid-template-columns: minmax(0, 1fr); }
.guild-theme .character-sheet .attribute-grid article { background: #fff6e4; border: 1px solid #b89766; border-left: 4px solid var(--stat-color); padding: .8rem; }
.guild-theme #attribute-str { --stat-color: #91382e; }
.guild-theme #attribute-int { --stat-color: #245d8a; }
.guild-theme #attribute-vit { --stat-color: #28653e; }
.guild-theme #attribute-dex { --stat-color: #805112; }
.guild-theme #attribute-luk { --stat-color: #6e3e8b; }
.guild-theme .character-sheet .attribute-grid article > div:first-child { grid-template-columns: auto 1fr auto; gap: .6rem; }
.guild-theme .character-sheet .attribute-grid article strong,
.guild-theme .character-sheet .attribute-grid article b { color: var(--stat-color); font-size: .95rem; letter-spacing: 0; }
.guild-theme .character-sheet .attribute-grid article strong { white-space: nowrap; }
.guild-theme .character-sheet .attribute-grid article span { color: #352314; font-size: .95rem; }
.guild-theme .character-sheet .attribute-grid article small { display: block; color: #604b35; font-size: .9rem; line-height: 1.5; }
.guild-theme .character-sheet .attribute-track { background: #dbc6a5; }
.guild-theme .character-sheet .attribute-track em { background: var(--stat-color); box-shadow: none; }
.guild-theme .character-radar-wrap { grid-template-columns: minmax(0, 1fr); background: #fff6e4; border: 1px solid #b89766; border-radius: 10px; }
.guild-theme .character-radar { max-width: 300px; }
.guild-theme .character-radar .radar-labels text { font-size: 11px; }
.guild-theme .character-radar-wrap > div p { color: #352314; font-size: .85rem; }
.guild-theme .character-radar-wrap > div small { color: #604b35; font-size: .9rem; }
.guild-theme .character-radar .radar-grid polygon,
.guild-theme .character-radar .radar-grid path { stroke: #927b5c; fill: transparent; }
.guild-theme .character-radar .radar-shape { fill: rgb(36 93 138 / 15%); stroke: #245d8a; filter: none; }
.guild-theme .character-radar .radar-str { fill: #91382e; color: #91382e; }
.guild-theme .character-radar .radar-int { fill: #245d8a; color: #245d8a; }
.guild-theme .character-radar .radar-vit { fill: #28653e; color: #28653e; }
.guild-theme .character-radar .radar-dex { fill: #805112; color: #805112; }
.guild-theme .character-radar .radar-luk { fill: #6e3e8b; color: #6e3e8b; }

/* Only the item being edited expands; Add areas stay collapsed and forms keep their owner. */
.guild-theme .is-context-editing { display: block !important; }
.guild-theme .health-context-editor { min-width: 0; width: 100%; padding: .8rem; border: 1px solid #b89766; border-radius: 8px; background: #fff6e4; color: #352314; box-sizing: border-box; }
.guild-theme .health-context-editor form { margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
.guild-theme .health-context-editor :is(label,legend,summary) { color: #352314; font-size: .95rem; }
.guild-theme .health-context-editor :is(small,p) { color: #604b35; }
.guild-theme .health-context-editor :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) { min-width: 0; max-width: 100%; background: #fffdfa !important; color: #352314 !important; border: 1px solid #84613d !important; font-size: 1rem; }
.guild-theme .health-context-editor :is(input,textarea)::placeholder { color: #715a41 !important; opacity: 1; }
.guild-theme .health-context-editor :is(button,input,select,textarea):focus-visible { outline: 3px solid #844915; outline-offset: 2px; }
.guild-theme .health-context-editor button { min-height: 44px; }
body.guild-theme :is(.health-panel,#training-exercise-modal) .health-context-editor.health-context-editor :is(button[type=submit],.training-inline-save) { background: #2f603d !important; border: 1px solid #2f603d !important; color: #fff !important; }
body.guild-theme :is(.health-panel,#training-exercise-modal) .health-context-editor.health-context-editor :is(.text-action,.cancel-edit,.training-inline-cancel) { background: #fff6e4 !important; border: 1px solid #84613d !important; color: #352314 !important; }
.guild-theme .health-context-editor [hidden] { display: none !important; }
.guild-theme .is-context-editing > [hidden] { display: none !important; }
@media (max-width: 720px) {
  .guild-theme .health-context-editor .field-row { grid-template-columns: minmax(0, 1fr); }
  .guild-theme .character-sheet .attribute-grid article > div:first-child { grid-template-columns: auto 1fr; }
  .guild-theme .character-sheet .attribute-grid article b { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .guild-theme #food-panel .food-supp-list { grid-template-columns: minmax(0, 1fr); }
}

/* To-do details lead with the saved item; one local Edit reveals its fields. */
.guild-theme #card-detail-modal { width: min(680px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 0; background: #fff6e4; color: #352314; border: 1px solid #b89766; border-radius: 12px; }
.guild-theme #card-detail-modal .modal-dialog-header { position: sticky; top: 0; z-index: 2; align-items: center; padding: 1rem; background: #352314; color: #fff6e4; gap: .7rem; }
.guild-theme #card-detail-modal .modal-detail-titles { flex: 1; min-width: 0; }
.guild-theme #card-detail-modal #detail-title { color: #fff6e4; font-size: 1.35rem; overflow-wrap: anywhere; }
.guild-theme #card-detail-modal #detail-subtitle { color: #e9ce9e; font-size: .9rem; line-height: 1.5; }
.guild-theme #card-detail-modal .modal-dialog-body { padding: 1rem; gap: 1rem; color: #352314; background: #fff6e4; }
.guild-theme #card-detail-modal [hidden] { display: none !important; }
.guild-theme #card-detail-modal :is(label,summary,h3) { color: #352314; font-size: 1rem; line-height: 1.5; }
.guild-theme #card-detail-modal :is(small,.detail-task-heading span,.detail-task-empty) { color: #604b35; font-size: .9rem; line-height: 1.5; }
.guild-theme #card-detail-modal label { display: grid; gap: .35rem; }
.guild-theme #card-detail-modal :is(input:not([type=checkbox]):not([type=hidden]):not([type=file]),select,textarea) { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid #84613d; border-radius: 6px; background: #fffdfa; color: #352314; font-size: 1rem; padding: .7rem; }
.guild-theme #card-detail-modal :is(input,textarea)::placeholder { color: #715a41; opacity: 1; }
.guild-theme #card-detail-modal textarea { min-height: 92px; resize: vertical; }
.guild-theme #card-detail-modal #detail-description { background: #fffdfa !important; color: #352314 !important; border-color: #84613d !important; }
.guild-theme #card-detail-modal button { min-height: 44px; border-radius: 6px; font-size: .95rem; }
.guild-theme #card-detail-modal :is(.secondary-action,.text-action,.detail-task-edit,.detail-task-remove,.modal-close-btn) { background: #fff6e4; color: #352314; border: 1px solid #84613d; }
.guild-theme #card-detail-modal :is(.primary-action,#detail-task-submit) { background: #2f603d; color: #fff; border: 1px solid #2f603d; }
.guild-theme #card-detail-modal :is(.danger-action,.detail-task-remove) { color: #99362b; border-color: #99362b; }
.guild-theme #card-detail-modal .danger-action { background: #fff6e4; }
.guild-theme #card-detail-modal .modal-close-btn { width: 44px; min-width: 44px; height: 44px; flex: 0 0 44px; font-size: 1.4rem; }
.guild-theme #card-detail-modal .detail-saved-photo { display: block; max-width: 100%; max-height: 220px; object-fit: contain; margin: 0 0 1rem; }
.guild-theme #card-detail-modal :is(button,input,select,textarea,summary):focus-visible { outline: 3px solid #844915; outline-offset: 2px; }
.guild-theme #detail-routine-editor { flex-direction: column; gap: 1rem; margin: 0; }
.guild-theme #card-detail-modal :is(.field-row,.detail-card-meta) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; margin: 0; }
.guild-theme #card-detail-modal .detail-read-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.guild-theme #card-detail-modal .detail-read-description h3 { margin: 0 0 .4rem; font-size: 1rem; }
.guild-theme #card-detail-modal .detail-read-description p { margin: 0; white-space: pre-wrap; line-height: 1.7; overflow-wrap: anywhere; }
.guild-theme #card-detail-modal :is(.detail-task-section,.detail-optional) { padding: .7rem 0; border: 0; border-top: 1px solid #b89766; border-radius: 0; background: transparent; }
.guild-theme #card-detail-modal summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.guild-theme #card-detail-modal summary::before { content: '▸'; }
.guild-theme #card-detail-modal details[open] > summary::before { content: '▾'; }
.guild-theme #card-detail-modal .detail-task-heading { margin: .3rem 0 .7rem; }
.guild-theme #card-detail-modal .detail-task-row { background: transparent; border: 0; border-bottom: 1px solid #c8ad80; padding: .7rem 0; }
.guild-theme #card-detail-modal .detail-task-copy { color: #352314; font-size: 1rem; }
.guild-theme #card-detail-modal .detail-task-copy small { color: #604b35; font-size: .9rem; }
.guild-theme #card-detail-modal .detail-task-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .7rem; }
.guild-theme #card-detail-modal .detail-task-notes { grid-column: 1 / -1; }
.guild-theme #card-detail-modal .detail-order-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .7rem; }
.guild-theme #card-detail-modal .detail-resource-link { background: #fffdfa; color: #754017; border: 1px solid #84613d; font-size: .95rem; min-height: 44px; padding: .45rem .75rem; overflow-wrap: anywhere; box-sizing: border-box; }
.guild-theme #card-detail-modal .modal-dialog-actions { position: sticky; bottom: 0; z-index: 1; grid-template-columns: 1fr auto; gap: .7rem; padding: .8rem 0; background: #fff6e4; border-top: 1px solid #b89766; }
.guild-theme #card-detail-modal .modal-dialog-actions .detail-dynamic-action { grid-column: 1 / -1; }
.guild-theme .routine-step .routine-edit { min-height: 44px; padding: .4rem .7rem; background: #fff6e4; color: #352314; border: 1px solid #84613d; border-radius: 6px; }
.guild-theme #routine-form { display: flex; flex-direction: column; gap: .8rem; }
.guild-theme #routine-form .field-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.guild-theme #routine-form .routine-add-optional { border: 0; border-top: 1px solid #b89766; padding: .5rem 0; }
.guild-theme #routine-form .routine-add-optional summary { min-height: 44px; cursor: pointer; display: flex; align-items: center; }
@media (max-width: 720px) {
  .guild-theme #routine-form .field-row { grid-template-columns: minmax(0,1fr); }
  .guild-theme #card-detail-modal :is(.field-row,.detail-card-meta) { grid-template-columns: minmax(0,1fr); }
  .guild-theme #card-detail-modal .modal-dialog-header { flex-wrap: wrap; }
  .guild-theme #card-detail-modal .modal-detail-titles { flex: 1 1 calc(100% - 70px); }
  .guild-theme #card-detail-modal .detail-task-row { grid-template-columns: 28px minmax(0,1fr) auto; gap: .5rem; }
  .guild-theme #card-detail-modal .detail-task-remove { grid-column: 3; }
  .guild-theme .routine-step { grid-template-columns: 40px minmax(0,1fr) auto; }
  .guild-theme .routine-step .routine-edit { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .guild-theme .care-routine-product, .guild-theme .care-today-chip,
  .guild-theme #food-panel#food-panel .food-supp-toggle,
  .guild-theme #training-exercise-modal .food-detail-actions > button,
  .guild-theme #training-guide-close { transition: none; }
}
