/* Food tab: daily targets, meal plan, supplement stack. Shares the Train guild look. */
.guild-theme .food-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.guild-theme .food-intro h2 { color: var(--guild-parchment-light); font-size: 1.8rem; margin: .35rem 0; }
.guild-theme .food-intro p { color: #dcc7b4; margin: 0; line-height: 1.6; }
.guild-theme .food-log-button { flex-shrink: 0; min-height: 44px; padding: .6rem 1.1rem; background: #ffda7c; color: #37220f; border: 1px solid #ffda7c; border-radius: 8px; font-weight: 700; cursor: pointer; box-shadow: none; }
.guild-theme .food-log-button:hover { background: #ffe7a6; }

.guild-theme .food-card { margin: 0 0 1.1rem; padding: 1.4rem; background: #241b17; border: 1px solid #76553c; border-radius: 12px; box-shadow: 0 12px 30px #110b0866; }
.guild-theme .food-card h2 { color: #fff0d9; font-family: Anuphan, sans-serif; font-size: 1.45rem; margin: 0; }
.guild-theme .food-card .section-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1rem; }
.guild-theme .food-card .section-heading small { color: #c9ad92; }

.guild-theme .food-today { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.guild-theme .food-meter { padding: .9rem 1rem; background: #30231c; border: 1px solid #674c39; border-radius: 10px; }
.guild-theme .food-meter-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .55rem; }
.guild-theme .food-meter-label { color: #e6cab1; font-weight: 700; font-size: .9rem; }
.guild-theme .food-meter-head strong { color: #ffda7c; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.guild-theme .food-meter-head strong small { color: #c9ad92; font-size: .8rem; font-weight: 600; }
.guild-theme .food-meter-bar { position: relative; display: block; height: 10px; border-radius: 999px; background: #4a372b; overflow: hidden; }
.guild-theme .food-meter-fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #ffb45c, #ffda7c); transition: width 300ms ease-out; }
.guild-theme .food-meter--protein .food-meter-fill { background: linear-gradient(90deg, #4fbf8f, #7fd6b0); }
.guild-theme .food-meter-left { display: block; margin-top: .45rem; color: #c9ad92; font-size: .8rem; }
.guild-theme .food-today-meals { grid-column: 1 / -1; margin: 0; color: #c9ad92; font-size: .85rem; }

.guild-theme .food-meal-count { display: inline-flex; gap: .3rem; padding: .25rem; background: #30231c; border: 1px solid #674c39; border-radius: 999px; }
.guild-theme .food-meal-count button { min-height: 36px; padding: .3rem .85rem; border: 0; border-radius: 999px; background: transparent; color: #e6cab1; font-weight: 700; font-size: .85rem; cursor: pointer; box-shadow: none; }
.guild-theme .food-meal-count button.active { background: #ffda7c; color: #37220f; }
.guild-theme .food-meals { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; }
.guild-theme .food-meal { padding: .9rem 1rem .6rem; background: #30231c; border: 1px solid #785841; border-radius: 10px; }
.guild-theme .food-meal-head { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; color: #fff0d9; }
.guild-theme .food-meal-head strong { font-family: Anuphan, sans-serif; font-size: 1.05rem; }
.guild-theme .food-meal-number { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #4a372b; color: #ffda7c; font-size: .75rem; font-weight: 800; }
.guild-theme .food-meal-time { margin-left: auto; color: #c9ad92; font-size: .78rem; }
.guild-theme .food-meal-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .6rem 0; }
.guild-theme .food-chip { padding: .15rem .55rem; border-radius: 999px; background: #3f2e24; color: #ecd6bd; font-size: .78rem; font-weight: 600; }
.guild-theme .food-chip--protein { background: #203b31; color: #c2e4d4; }
.guild-theme .food-meal-label { display: block; color: #c9ad92; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.guild-theme .food-meal-example :is(p, li) { margin: .2rem 0; color: #f3e1cb; font-size: .88rem; line-height: 1.55; }
.guild-theme .food-meal-example ul { margin: 0; padding-left: 1.1rem; }

.guild-theme .food-supp-summary { margin: 0 0 .6rem; color: #dcc7b4; }
.guild-theme .food-supp-summary strong { color: #ffda7c; font-size: 1.1rem; }
.guild-theme .food-supp-list { display: grid; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.guild-theme .food-supp { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; background: #30231c; border: 1px solid #674c39; border-radius: 10px; }
.guild-theme .food-supp.is-taken { border-color: #4fbf8f; background: #22332a; }
.guild-theme .food-supp-toggle { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #a27b51; background: transparent; color: #10291f; font-size: 1.2rem; font-weight: 900; cursor: pointer; box-shadow: none; }
.guild-theme .food-supp.is-taken .food-supp-toggle { background: #7fd6b0; border-color: #7fd6b0; }
.guild-theme .food-supp-copy { display: grid; gap: .1rem; min-width: 0; flex: 1; }
.guild-theme .food-supp-copy strong { color: #fff0d9; }
.guild-theme .food-supp-copy small { color: #c9ad92; font-size: .82rem; }
.guild-theme .food-supp-note { color: #b9a08a !important; }
.guild-theme .food-supp-actions { display: flex; gap: .35rem; flex-shrink: 0; }
.guild-theme .food-supp-remove { min-height: 32px; padding: .2rem .6rem; border-radius: 6px; border: 1px solid #a96e60; background: transparent; color: #ffc6b9; font-size: .78rem; cursor: pointer; box-shadow: none; }
.guild-theme .food-supp-adders { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.guild-theme .food-supp-adders-label { width: 100%; color: #c9ad92; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.guild-theme .food-supp-chip { min-height: 36px; padding: .3rem .8rem; border-radius: 999px; border: 1px dashed #a27b51; background: transparent; color: #f3e1cb; font-size: .85rem; font-weight: 600; cursor: pointer; box-shadow: none; }
.guild-theme .food-supp-chip:hover { border-style: solid; background: #3f2e24; }
.guild-theme .food-supp-chip--care { border-color: #8cc8ff; color: #d4e5ff; }
.guild-theme .food-supp-editor-title { display: block; margin-top: 1rem; color: #ffda7c; }
.guild-theme .food-supp-editor select { width: 100%; padding: .5rem .6rem; border-radius: 6px; border: 1px solid #80614a; background: #1a130f; color: #fff4e3; font: inherit; color-scheme: dark; }
.guild-theme .food-supp-guide { margin-top: 1.1rem; }

/* Start here box outside the Train card needs its own text colours. */
.guild-theme #food-panel .training-start-grid :is(p, li) { margin: 0 0 .35rem; color: #e6d2bd; font-size: .88rem; line-height: 1.6; }
.guild-theme #food-panel .training-start-grid ul { margin: 0; padding-left: 1.2rem; }
.guild-theme #food-panel .training-start-here { margin-bottom: 1.1rem; }

@media (max-width: 760px) {
  .guild-theme .food-intro { flex-direction: column; }
  .guild-theme .food-log-button { width: 100%; }
  .guild-theme .food-card { padding: 1.1rem; }
  .guild-theme .food-today { grid-template-columns: minmax(0, 1fr); }
  .guild-theme .food-supp { flex-wrap: wrap; }
  .guild-theme .food-supp-actions { width: 100%; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .guild-theme .food-meter-fill { transition: none; }
}

/* Food v2: quests, rank, streaks and photos. */
.guild-theme .food-quest-card { background: linear-gradient(180deg, rgba(255,218,124,.08), transparent 40%), #241b17; border-color: #a27b51; }
.guild-theme .food-rank { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin-bottom: 1rem; padding: .8rem 1rem; background: #30231c; border: 1px solid #8b6a3f; border-radius: 12px; }
.guild-theme .food-rank-badge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: radial-gradient(circle at 30% 30%, #ffe7a6, #c98a3d); font-size: 1.8rem; box-shadow: inset 0 -3px 0 #8b5a2b, 0 6px 16px #0006; }
.guild-theme .food-rank-copy { display: grid; gap: .1rem; min-width: 0; flex: 1 1 180px; }
.guild-theme .food-rank-copy small { color: #c9ad92; font-size: .72rem; font-weight: 700; letter-spacing: .06em; }
.guild-theme .food-rank-copy strong { color: #ffda7c; font-family: Anuphan, sans-serif; font-size: 1.25rem; }
.guild-theme .food-rank-copy .food-rank-next { letter-spacing: 0; font-weight: 500; font-size: .8rem; }
.guild-theme .food-streaks { display: flex; flex-wrap: wrap; gap: .4rem; }
.guild-theme .food-streak { padding: .3rem .7rem; border-radius: 999px; background: #3f2e24; color: #b9a08a; font-size: .82rem; font-weight: 700; filter: grayscale(.7); }
.guild-theme .food-streak.is-lit { background: #5a2f15; color: #ffcf8f; border: 1px solid #ff9a4d; filter: none; box-shadow: 0 0 14px #ff9a4d44; }
.guild-theme .food-quest-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .7rem; }
.guild-theme .food-quest { padding: .8rem .9rem; background: #30231c; border: 1px solid #674c39; border-radius: 10px; transition: border-color 200ms, background-color 200ms; }
.guild-theme .food-quest.is-done { background: #22332a; border-color: #4fbf8f; }
.guild-theme .food-quest-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .55rem; color: #fff0d9; }
.guild-theme .food-quest-icon { font-size: 1.2rem; }
.guild-theme .food-quest-bar { position: relative; display: block; height: 8px; border-radius: 999px; background: #4a372b; overflow: hidden; }
.guild-theme .food-quest-fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #ffb45c, #ffda7c); transition: width 300ms ease-out; }
.guild-theme .food-quest.is-done .food-quest-fill { background: linear-gradient(90deg, #4fbf8f, #7fd6b0); }
.guild-theme .food-quest-meta { display: block; margin-top: .45rem; color: #c9ad92; font-size: .78rem; }

.guild-theme .food-meal { overflow: hidden; }
.guild-theme .food-meal-photo { margin: -.9rem -1rem .75rem; }
.guild-theme .food-meal-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.guild-theme .food-photo-actions { display: flex; flex-wrap: wrap; gap: .35rem; padding: .5rem 1rem 0; }
.guild-theme .food-meal-photo:not(.has-photo) .food-photo-actions { padding: .9rem 1rem .1rem; }
.guild-theme .food-photo-button { flex: 1; min-height: 40px; padding: .35rem .7rem; border-radius: 8px; border: 1px dashed #8a6a4c; background: #281e18; color: #e9c98f; font-size: .8rem; font-weight: 600; cursor: pointer; box-shadow: none; }
.guild-theme .food-meal-photo:not(.has-photo) .food-photo-button { min-height: 72px; }
.guild-theme .food-photo-button:hover { border-style: solid; background: #3f2e24; }
.guild-theme .food-photo-remove { min-height: 40px; padding: .35rem .7rem; border-radius: 8px; border: 1px solid #a96e60; background: transparent; color: #ffc6b9; font-size: .8rem; cursor: pointer; box-shadow: none; }
.guild-theme .food-supp-thumb { flex-shrink: 0; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 10px; border: 1px dashed #8a6a4c; background: #281e18; font-size: 1.1rem; cursor: pointer; overflow: hidden; box-shadow: none; }
.guild-theme .food-supp-thumb.has-photo { border-style: solid; }
.guild-theme .food-supp-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
  .guild-theme .food-quest, .guild-theme .food-quest-fill { transition: none; }
}

/* Food v3: merged Today card and protein top-ups. */
.guild-theme #food-rank .food-rank { margin-bottom: .9rem; }
.guild-theme .food-quest-card .food-today { margin-bottom: .8rem; }
.guild-theme .food-meter.is-done { border-color: #4fbf8f; background: #22332a; }
.guild-theme .food-topup-gap { margin: 0 0 .9rem; color: #f3e1cb; font-size: 1rem; }
.guild-theme .food-topup-gap strong { color: #ffda7c; font-size: 1.2rem; }
.guild-theme .food-topup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .65rem; }
.guild-theme .food-topup-item { display: flex; flex-direction: column; gap: .3rem; padding: .75rem .85rem; background: #30231c; border: 1px solid #674c39; border-radius: 10px; }
.guild-theme .food-topup-item.closes-gap { border-color: #4fbf8f; box-shadow: 0 0 0 1px #4fbf8f55; }
.guild-theme .food-topup-item.is-locked { opacity: .6; }
.guild-theme .food-topup-head { display: flex; align-items: center; gap: .45rem; color: #fff0d9; }
.guild-theme .food-topup-head strong { font-size: .92rem; line-height: 1.3; }
.guild-theme .food-topup-icon { font-size: 1.25rem; }
.guild-theme .food-topup-serving { color: #c9ad92; font-size: .78rem; }
.guild-theme .food-topup-item .food-meal-chips { margin: .2rem 0; }
.guild-theme .food-chip--closes { background: #2f6b51; color: #dcfbe9; }
.guild-theme .food-topup-foot { display: flex; align-items: center; gap: .5rem; margin-top: auto; }
.guild-theme .food-topup-source { color: #e9c98f; font-size: .76rem; text-decoration: underline; }
.guild-theme .food-topup-label { color: #b9a08a; font-size: .74rem; }
.guild-theme .food-topup-log { margin-left: auto; min-height: 36px; padding: .25rem .8rem; border-radius: 8px; border: 1px solid #ffda7c; background: #ffda7c; color: #37220f; font-size: .82rem; font-weight: 800; cursor: pointer; box-shadow: none; }
.guild-theme .food-topup-log:disabled { background: transparent; color: #8a7360; border-color: #6e5241; cursor: not-allowed; }
.guild-theme .food-whey-label { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 .9rem; }
.guild-theme .food-whey-label .training-inline-actions { grid-column: 1 / -1; }
.guild-theme .food-whey-change { margin-top: .8rem; min-height: 36px; padding: .25rem .7rem; border-radius: 8px; border: 1px dashed #8a6a4c; background: transparent; color: #c9ad92; font-size: .78rem; cursor: pointer; box-shadow: none; }
@media (max-width: 760px) { .guild-theme .food-whey-label { grid-template-columns: minmax(0, 1fr); } }
.guild-theme .food-topup-foot { flex-wrap: wrap; row-gap: .3rem; }
.guild-theme .food-topup-log { white-space: nowrap; }

/* Food v4 (Web DoD): undo bar, priority tiers, clickable cards, detail view, stronger contrast. */
.health-undo-bar { position: fixed; left: 50%; bottom: 1.25rem; z-index: 1200; display: flex; align-items: center; gap: .9rem; max-width: calc(100vw - 2rem); padding: .6rem .6rem .6rem 1rem; border-radius: 12px; background: #fff0d9; color: #2a1a0e; font-weight: 600; font-size: .9rem; box-shadow: 0 12px 30px #000a; transform: translate(-50%, 140%); opacity: 0; transition: transform 220ms ease-out, opacity 220ms ease-out; pointer-events: none; }
.health-undo-bar.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.health-undo-button { min-height: 40px; padding: .35rem .9rem; border-radius: 8px; border: 0; background: #2a1a0e; color: #ffda7c; font-weight: 800; cursor: pointer; }
@media (max-width: 1000px) { .health-undo-bar { bottom: calc(92px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .health-undo-bar { transition: none; } }

/* Contrast: inner cards sit clearly above the section background. */
.guild-theme .food-card { background: #211812; }
.guild-theme :is(.food-meter, .food-meal, .food-quest, .food-supp, .food-topup-item, .food-rank) { background: #3a2a20; border-color: #86643f; }
.guild-theme .food-topup-item { padding: 0; overflow: hidden; border-width: 1px; border-left-width: 5px; }
.guild-theme .food-topup-item--lean { border-left-color: #4fbf8f; }
.guild-theme .food-topup-item--balanced { border-left-color: #f2b84b; }
.guild-theme .food-topup-item--energy { border-left-color: #a99686; }
.guild-theme .food-topup-open { display: flex; flex-direction: column; align-items: stretch; gap: .3rem; width: 100%; padding: .75rem .85rem .4rem; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; box-shadow: none; }
.guild-theme .food-topup-open:hover, .guild-theme .food-topup-open:focus-visible { background: #47342a; }
.guild-theme .food-topup-photo { width: calc(100% + 1.7rem); margin: -.75rem -.85rem .3rem; aspect-ratio: 16 / 9; object-fit: cover; }
.guild-theme .food-topup-more { color: #ffda7c; font-size: .76rem; font-weight: 700; }
.guild-theme .food-topup-foot { padding: .35rem .85rem .7rem; }
.guild-theme .food-chip--tier { background: #2b221c; color: #f3e1cb; border: 1px solid #6e5241; }
.guild-theme .food-topup-legend { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.3rem 0 .9rem; }
.guild-theme .food-tier { padding: .15rem .55rem; border-radius: 999px; background: #3a2a20; color: #e6cab1; font-size: .75rem; font-weight: 600; border: 1px solid #6e5241; }
.guild-theme .food-topup-add { min-height: 120px; border-radius: 10px; border: 2px dashed #a27b51; background: transparent; color: #ffda7c; font-weight: 800; font-size: .95rem; cursor: pointer; box-shadow: none; }
.guild-theme .food-topup-add:hover { background: #3a2a20; }
.guild-theme .food-custom-editor { margin-top: 1rem; }
.guild-theme .food-supp-copy { border: 0; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; padding: .2rem .3rem; border-radius: 6px; box-shadow: none; }
.guild-theme .food-supp-copy:hover, .guild-theme .food-supp-copy:focus-visible { background: #47342a; }

/* Detail view (shared modal) */
.food-detail-photo { margin: 0 0 1rem; display: grid; gap: .5rem; justify-items: center; }
.food-detail-photo img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 10px; }
.food-detail-emoji { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 20px; background: #3a2a20; font-size: 3rem; }
.food-detail-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 0 0 1rem; }
.food-detail-stats div { padding: .55rem .7rem; border-radius: 8px; background: #3a2a20; border: 1px solid #6e5241; }
.food-detail-stats dt { color: #c9ad92; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.food-detail-stats dd { margin: .15rem 0 0; color: #fff0d9; font-weight: 700; }
.food-detail-recipe :is(p, li) { color: #f3e1cb; line-height: 1.6; margin: .2rem 0; }
.food-detail-recipe ul { padding-left: 1.2rem; margin: 0; }
.food-detail-note { color: #c9ad92; font-size: .85rem; }
.food-detail-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.food-detail-actions .food-topup-log { margin-left: 0; min-height: 44px; padding: .4rem 1rem; }
.health-undo-bar { width: min(460px, calc(100vw - 2rem)); justify-content: space-between; }
.health-undo-bar > span { flex: 1; min-width: 0; line-height: 1.4; }
.health-undo-button { flex-shrink: 0; white-space: nowrap; }

/* ===== Buttons v2 (Train + Food): gold = main action, cream outline = secondary, red = delete ===== */
:is(#workout-panel, #food-panel) {
  --btn-gold: #ffd36b;
  --btn-gold-hover: #ffe39a;
  --btn-gold-ink: #2a1708;
  --btn-cream: #fff3dc;
  --btn-cream-line: #f2d39b;
  --btn-danger: #ff9c8a;
}
.guild-theme :is(#workout-panel, #food-panel) :is(.training-view-guide, .training-inline-save, .food-topup-log, .complete-button, .primary-action, .food-log-button) {
  background: var(--btn-gold) !important; color: var(--btn-gold-ink) !important; border: 1px solid var(--btn-gold) !important;
  font-weight: 800; box-shadow: 0 2px 0 #b07a1f, 0 6px 14px #0006 !important;
}
.guild-theme :is(#workout-panel, #food-panel) :is(.training-view-guide, .training-inline-save, .food-topup-log, .complete-button, .primary-action, .food-log-button):hover:not(:disabled) {
  background: var(--btn-gold-hover) !important; transform: translateY(-1px);
}
.guild-theme :is(#workout-panel, #food-panel) .training-view-guide { text-align: center; }
.guild-theme :is(#workout-panel, #food-panel) :is(.training-edit-exercise, .row-actions button:not(.complete-button):not(.danger-row-action), .training-inline-cancel, .food-supp-chip, .food-photo-button, .training-photo-button, .food-whey-change, .food-meal-count button:not(.active), .food-topup-add, .secondary-action, .text-action) {
  background: rgba(255, 243, 220, .08) !important; color: var(--btn-cream) !important; border: 1px solid var(--btn-cream-line) !important; border-style: solid !important;
  font-weight: 700; box-shadow: none !important;
}
.guild-theme :is(#workout-panel, #food-panel) :is(.training-edit-exercise, .row-actions button:not(.complete-button):not(.danger-row-action), .training-inline-cancel, .food-supp-chip, .food-photo-button, .training-photo-button, .food-whey-change, .food-meal-count button:not(.active), .food-topup-add, .secondary-action, .text-action):hover {
  background: rgba(255, 243, 220, .2) !important; color: #fff !important;
}
.guild-theme :is(#workout-panel, #food-panel) .training-edit-content {
  background: rgba(255, 211, 107, .14) !important; color: var(--btn-gold) !important; border: 1px solid rgba(255, 211, 107, .7) !important; border-style: solid !important;
  border-radius: 999px; padding: .25rem .75rem; font-weight: 700;
}
.guild-theme :is(#workout-panel, #food-panel) .training-edit-content:hover { background: rgba(255, 211, 107, .28) !important; color: #fff3dc !important; }
.guild-theme :is(#workout-panel, #food-panel) :is(.danger-row-action, .food-supp-remove, .food-photo-remove, .training-inline-reset) {
  background: rgba(255, 120, 100, .1) !important; color: var(--btn-danger) !important; border: 1px solid var(--btn-danger) !important; font-weight: 700;
}
.guild-theme :is(#workout-panel, #food-panel) :is(.food-topup-log, .training-view-guide):disabled { background: transparent !important; color: #9b836c !important; border-color: #6e5241 !important; box-shadow: none !important; }

/* Warm-up / cool-down cards start collapsed: the summary row is the button. */
.guild-theme .training-routine { padding-bottom: .75rem; }
.guild-theme .training-routine-summary { min-height: 44px; gap: .55rem; }
.guild-theme .training-routine-time { margin-left: auto; }
.guild-theme .training-routine-count { color: #e6cab1; font-size: .78rem; }
.guild-theme .training-routine-chevron { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 211, 107, .16); color: #ffd36b; font-size: .9rem; transition: transform 180ms ease-out; }
.guild-theme .training-routine[open] .training-routine-chevron { transform: rotate(180deg); }
.guild-theme .training-routine:not([open]) .training-routine-summary:hover .training-routine-chevron { background: rgba(255, 211, 107, .32); }
@media (prefers-reduced-motion: reduce) { .guild-theme .training-routine-chevron { transition: none; } }
.guild-theme .training-routines { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.guild-theme .training-routine-chevron { width: 32px; height: 32px; font-size: 1.15rem; font-weight: 900; }
