/* FITPLAN V811 - Builder card layout hardening.
   V808 introduced table column widths to protect the desktop table, but the V771 UX
   renders those same <td> elements as CSS-grid cards. In card mode the percentage
   widths were applied inside the grid areas, collapsing Gruppo/Serie/Reps/TUT/etc.
   V811 scopes the final layout back to the card model and keeps every control fluid. */

/* Card mode is the active coach UX: never let legacy table widths shrink grid cells. */
.coach-ux-v769 #builder .draft-excel-table-v702,
.coach-ux-v769 #builder .draft-excel-table-v702 > tbody{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  table-layout:auto!important;
}
.coach-ux-v769 #builder .draft-excel-table-v702 > tbody > tr.main-row > td{
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}

/* Inputs/selects/textarea always consume their grid area, never a percentage of it. */
.coach-ux-v769 #builder .draft-excel-table-v702 > tbody > tr.main-row > td > input,
.coach-ux-v769 #builder .draft-excel-table-v702 > tbody > tr.main-row > td > select,
.coach-ux-v769 #builder .draft-excel-table-v702 > tbody > tr.main-row > td > textarea,
.coach-ux-v769 #builder .draft-excel-table-v702 > tbody > tr.main-row > td > .input,
.coach-ux-v769 #builder .draft-excel-table-v702 .draft-table-select,
.coach-ux-v769 #builder .draft-excel-table-v702 .draft-table-input,
.coach-ux-v769 #builder .draft-excel-table-v702 .draft-table-notes,
.coach-ux-v769 #builder .draft-excel-table-v702 .draft-ex-history-trigger-v743{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}

/* Avoid the TUT helper wrapping one character per line. */
.coach-ux-v769 #builder .draft-excel-table-v702 tr.main-row > td:nth-child(6),
.coach-ux-v769 #builder .draft-excel-table-v702 tr.main-row > td:nth-child(6)::before{
  word-break:normal!important;
  overflow-wrap:normal!important;
}
.coach-ux-v769 #builder .draft-excel-table-v702 .draft-col-tut-v765 small,
.coach-ux-v769 #builder .draft-excel-table-v702 .draft-col-tut-v765 label,
.coach-ux-v769 #builder .draft-excel-table-v702 .draft-col-tut-v765 span{
  word-break:normal!important;
  overflow-wrap:normal!important;
}

/* The empty-history/help content belongs to the exercise cell and must not spill. */
.coach-ux-v769 #builder .draft-excel-table-v702 .draft-col-exercise,
.coach-ux-v769 #builder .draft-excel-table-v702 .draft-col-exercise > *{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
.coach-ux-v769 #builder .draft-ex-history-empty-v743,
.coach-ux-v769 #builder .draft-ex-history-trigger-v743 + small,
.coach-ux-v769 #builder .draft-ex-history-trigger-v743 ~ small{
  max-width:100%!important;
  overflow-wrap:anywhere!important;
}

/* Progression + actions remain two independent blocks; they wrap instead of colliding. */
.coach-ux-v769 #builder .draft-row-mini-v702{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  align-items:flex-end!important;
}
.coach-ux-v769 #builder .draft-mini-group.progression-mini{
  flex:1 1 420px!important;
  min-width:240px!important;
  max-width:100%!important;
}
.coach-ux-v769 #builder .draft-actions-strip-v808{
  flex:1 1 390px!important;
  min-width:min(100%,390px)!important;
  max-width:100%!important;
  margin-left:0!important;
}

/* Builder mode explanation: visible, compact and theme-aware. */
.ux-v811-builder-mode-help{
  display:block;
  margin-top:5px;
  max-width:620px;
  color:var(--theme-muted,var(--muted,#aab3af));
  font-size:11px;
  line-height:1.35;
}

@media(max-width:1180px){
  .coach-ux-v769 #builder .draft-excel-table-v702 > tbody > tr.main-row > td{
    width:auto!important;
  }
  .coach-ux-v769 #builder .draft-mini-group.progression-mini,
  .coach-ux-v769 #builder .draft-actions-strip-v808{
    flex-basis:100%!important;
    min-width:0!important;
    width:100%!important;
  }
}

@media(max-width:680px){
  .coach-ux-v769 #builder .draft-excel-table-v702 tr.main-row{
    gap:11px!important;
  }
  .coach-ux-v769 #builder .draft-excel-table-v702 .draft-table-actions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .coach-ux-v769 #builder .draft-excel-table-v702 .draft-table-actions .btn:last-child{
    grid-column:1/-1!important;
  }
}

/* FITPLAN V814 - Beta RC builder containment.
   Final override loaded after V808: card mode never uses a horizontal scroll container,
   so history popovers and action controls cannot be clipped by the old table wrapper. */
.coach-ux-v769 #builder .draft-excel-wrap-v702{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:visible!important;
  padding-bottom:0!important;
}
.coach-ux-v769 #builder .draft-excel-table-v702{
  display:block!important;
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
  table-layout:auto!important;
  overflow:visible!important;
}
.coach-ux-v769 #builder .draft-excel-table-v702 > tbody{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  overflow:visible!important;
}
.coach-ux-v769 #builder .draft-excel-table-v702 tr.main-row{
  position:relative!important;
  overflow:visible!important;
}

/* The exercise/history cell owns the popover. Keep it above following rows/cards. */
.coach-ux-v769 #builder .draft-col-exercise,
.coach-ux-v769 #builder .draft-ex-history-trigger-v743{
  position:relative!important;
  z-index:12!important;
  overflow:visible!important;
}
.coach-ux-v769 #builder .draft-ex-history-popover-v743{
  left:0!important;
  right:auto!important;
  width:min(620px,calc(100vw - 56px))!important;
  max-width:min(620px,calc(100vw - 56px))!important;
  max-height:390px!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  box-sizing:border-box!important;
  z-index:900!important;
  background:var(--theme-card,var(--card,#181c1f))!important;
  color:var(--theme-text,var(--text,#f8fbf7))!important;
  opacity:1!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.coach-ux-v769 #builder .draft-ex-history-popover-v743 table{
  width:100%!important;
  min-width:520px!important;
  max-width:none!important;
  table-layout:fixed!important;
}
.coach-ux-v769 #builder .draft-ex-history-popover-v743 th,
.coach-ux-v769 #builder .draft-ex-history-popover-v743 td{
  vertical-align:top!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
}

/* Sub-row uses a real responsive grid instead of competing flex widths. */
.coach-ux-v769 #builder .draft-row-mini-v702{
  display:grid!important;
  grid-template-columns:minmax(280px,1fr) minmax(430px,auto)!important;
  gap:14px!important;
  align-items:end!important;
  width:100%!important;
}
.coach-ux-v769 #builder .draft-mini-group.progression-mini{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}
.coach-ux-v769 #builder .draft-actions-strip-v808{
  display:grid!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
}
.coach-ux-v769 #builder .draft-actions-strip-v808 .draft-table-actions{
  grid-template-columns:repeat(5,minmax(72px,1fr))!important;
}
.coach-ux-v769 #builder .draft-actions-strip-v808 .draft-table-actions .btn{
  min-width:0!important;
  white-space:nowrap!important;
  text-overflow:clip!important;
}

/* Keep field labels readable even in narrower desktop layouts. */
.coach-ux-v769 #builder .draft-excel-table-v702 tr.main-row>td::before{
  white-space:nowrap!important;
  overflow:visible!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
.coach-ux-v769 #builder .draft-col-tut-v765,
.coach-ux-v769 #builder .draft-col-tut-v765 *{
  min-width:0!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}

@media(max-width:1180px){
  .coach-ux-v769 #builder .draft-row-mini-v702{
    grid-template-columns:1fr!important;
  }
  .coach-ux-v769 #builder .draft-actions-strip-v808 .draft-table-actions{
    grid-template-columns:repeat(5,minmax(66px,1fr))!important;
  }
}
@media(max-width:760px){
  .coach-ux-v769 #builder .draft-ex-history-popover-v743{
    position:static!important;
    width:100%!important;
    max-width:100%!important;
    max-height:none!important;
    margin-top:8px!important;
  }
  .coach-ux-v769 #builder .draft-ex-history-popover-v743 table{
    min-width:560px!important;
  }
  .coach-ux-v769 #builder .draft-ex-history-popover-v743{
    overflow-x:auto!important;
  }
  .coach-ux-v769 #builder .draft-actions-strip-v808 .draft-table-actions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .coach-ux-v769 #builder .draft-actions-strip-v808 .draft-table-actions .btn:last-child{
    grid-column:1/-1!important;
  }
}

/* V814 hidden QA diagnostics: shown only with ?qa=1. */
.fitplan-qa-v814{
  position:fixed;right:12px;bottom:12px;z-index:100000;
  width:min(390px,calc(100vw - 24px));max-height:min(70vh,560px);overflow:auto;
  padding:14px;border-radius:16px;border:1px solid rgba(182,255,46,.35);
  background:#0b1511;color:#eef7f1;box-shadow:0 18px 50px rgba(0,0,0,.45);
  font:12px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.fitplan-qa-v814 h3{margin:0 0 8px;font-size:14px}.fitplan-qa-v814 ul{margin:0;padding-left:18px}.fitplan-qa-v814 li{margin:5px 0}
.fitplan-qa-v814 .ok{color:#b6ff2e}.fitplan-qa-v814 .warn{color:#facc15}.fitplan-qa-v814 .bad{color:#fb7185}
.fitplan-qa-v814 button{margin-top:10px;padding:7px 10px;border-radius:9px;border:1px solid #3d5148;background:#13231d;color:#eef7f1;font-weight:800;cursor:pointer}

/* FITPLAN V815 - tenant refresh lock and zero-flash assistant.
   The assistant lives outside .web-shell, so V814 could briefly show the neutral/previous
   palette while Auth was resolving. Hide every tenant-aware floating layer until the
   authenticated organization and its theme are fully verified. */
html.fitplan-v800-auth-pending #assistantV766,
html.fitplan-v803-ui-pending #assistantV766,
html.fitplan-v807-tenant-switch #assistantV766,
html.fitplan-v800-auth-pending #uxV769Statusbar,
html.fitplan-v803-ui-pending #uxV769Statusbar,
html.fitplan-v807-tenant-switch #uxV769Statusbar,
html.fitplan-v800-auth-pending #uxV769Offline,
html.fitplan-v803-ui-pending #uxV769Offline,
html.fitplan-v807-tenant-switch #uxV769Offline,
html.fitplan-v800-auth-pending #uxV769CommandOverlay,
html.fitplan-v803-ui-pending #uxV769CommandOverlay,
html.fitplan-v807-tenant-switch #uxV769CommandOverlay{
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}

/* The AI assistant now consumes the tenant theme directly instead of painting the
   FitPlan default first and being corrected a frame later. */
#assistantV766 .assistant-v766-launch{
  border-color:var(--theme-primary-36)!important;
  background:linear-gradient(135deg,var(--theme-primary),var(--theme-secondary))!important;
  color:var(--theme-on-primary)!important;
}
#assistantV766 .assistant-v766-launch .dot{
  background:currentColor!important;
  box-shadow:0 0 0 4px var(--theme-text-12)!important;
}
#assistantV766 .assistant-v766-panel{
  border-color:var(--theme-primary-28)!important;
  background:var(--theme-surface-96)!important;
  color:var(--theme-text)!important;
}
#assistantV766 .assistant-v766-head,
#assistantV766 .assistant-v766-form{
  border-color:var(--theme-text-12)!important;
}
#assistantV766 .assistant-v766-close{
  background:var(--theme-text-09)!important;
  color:var(--theme-text)!important;
}
#assistantV766 .assistant-v766-chip{
  border-color:var(--theme-primary-28)!important;
  background:var(--theme-primary-10)!important;
  color:var(--theme-text)!important;
}
#assistantV766 .assistant-v766-bubble.user{
  background:var(--theme-primary-12)!important;
  border-color:var(--theme-primary-28)!important;
  color:var(--theme-text)!important;
}
#assistantV766 .assistant-v766-bubble.ai{
  background:var(--theme-secondary-10)!important;
  border-color:var(--theme-secondary-22)!important;
  color:var(--theme-text)!important;
}
#assistantV766 .assistant-v766-bubble.system{
  background:var(--theme-text-06)!important;
  border-color:var(--theme-text-18)!important;
  color:var(--theme-muted)!important;
}

/* Any tenant-bound modal that was open when Auth changes is shielded too. */
html.fitplan-v800-auth-pending .modal.open,
html.fitplan-v803-ui-pending .modal.open,
html.fitplan-v807-tenant-switch .modal.open{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

/* FITPLAN V816 - Builder tenant-palette lock.
   Some legacy V771/V773 rules have higher specificity than V807 and were still
   forcing original FitPlan surfaces (#101916 / white overlays) inside the generated
   workout cards. These final rules are intentionally more specific and loaded last. */

.coach-ux-v769 #builder,
.coach-ux-v769 #builder .builder-main-panel,
.coach-ux-v769 #builder .panel,
.coach-ux-v769 #builder .draft-panel,
.coach-ux-v769 #builder .ux-v769-builder-toolbar,
.coach-ux-v769 #builder .ux-v769-builder-side-card{
  color:var(--theme-text)!important;
}
.coach-ux-v769 #builder .builder-main-panel,
.coach-ux-v769 #builder .panel,
.coach-ux-v769 #builder .draft-panel,
.coach-ux-v769 #builder .ux-v769-builder-side-card{
  background:var(--theme-surface)!important;
  border-color:var(--theme-text-12)!important;
}

/* Builder toolbar / mode switch */
.coach-ux-v769 #builder .ux-v769-builder-toolbar{
  background:var(--theme-card)!important;
  border-color:var(--theme-text-12)!important;
}
.coach-ux-v769 #builder .ux-v769-builder-mode{
  background:var(--theme-surface)!important;
  border-color:var(--theme-text-12)!important;
}
.coach-ux-v769 #builder .ux-v769-builder-mode button{
  color:var(--theme-muted)!important;
}
.coach-ux-v769 #builder .ux-v769-builder-mode button.active{
  background:var(--theme-primary-12)!important;
  color:var(--theme-text)!important;
}

/* Every generated day / exercise surface must inherit the authenticated org theme. */
.coach-ux-v769 #builder .builder-timer-sticky,
.coach-ux-v769 #builder .builder-excel-primary,
.coach-ux-v769 #builder .excel-builder-hint.builder-excel-primary,
.coach-ux-v769 #builder .builder-sticky-daybar,
.coach-ux-v769 #builder .builder-sticky-daybar-v701,
.coach-ux-v769 #builder .builder-sticky-daybar-v702,
.coach-ux-v769 #builder .draft-day-head-v702{
  background:var(--theme-card)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-text-12)!important;
  opacity:1!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.coach-ux-v769 #builder .builder-timer-sticky,
.coach-ux-v769 #builder .builder-excel-primary,
.coach-ux-v769 #builder .builder-sticky-daybar-v702{
  border-color:var(--theme-primary-28)!important;
}

.coach-ux-v769 #builder .draft-day-section-v702{
  background:var(--theme-surface)!important;
  color:var(--theme-text)!important;
  border-top-color:var(--theme-text-12)!important;
}
.coach-ux-v769 #builder .draft-day-section-v702.active{
  border-top-color:var(--theme-primary-28)!important;
}

/* Critical V816 override: removes V773 fixed #101916. */
.coach-ux-v769 #builder .draft-excel-table-v702 tr.main-row{
  background:var(--theme-card)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-text-12)!important;
  box-shadow:none!important;
}
.coach-ux-v769 #builder .draft-excel-table-v702 tr.draft-subrow-v702>td[colspan]{
  background:var(--theme-card)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-text-12)!important;
}
.coach-ux-v769 #builder .draft-row-mini-v702,
.coach-ux-v769 #builder .draft-actions-strip-v808,
.coach-ux-v769 #builder .draft-table-actions{
  color:var(--theme-text)!important;
}
.coach-ux-v769 #builder .draft-actions-strip-v808 .draft-table-actions,
.coach-ux-v769 #builder .draft-table-actions{
  background:var(--theme-surface)!important;
  border-color:var(--theme-text-09)!important;
}

/* Labels and generated text */
.coach-ux-v769 #builder .draft-excel-table-v702 tr.main-row>td:before,
.coach-ux-v769 #builder .draft-mini-group .mini-label,
.coach-ux-v769 #builder .draft-progression-note,
.coach-ux-v769 #builder .draft-day-title-v702 small,
.coach-ux-v769 #builder .builder-bottom-add-v702 span,
.coach-ux-v769 #builder .ux-v769-builder-day span,
.coach-ux-v769 #builder .muted{
  color:var(--theme-muted)!important;
}
.coach-ux-v769 #builder .draft-row-index,
.coach-ux-v769 #builder h1,
.coach-ux-v769 #builder h2,
.coach-ux-v769 #builder h3,
.coach-ux-v769 #builder h4,
.coach-ux-v769 #builder strong,
.coach-ux-v769 #builder label{
  color:var(--theme-text)!important;
}

/* Inputs/selects are organization surfaces, never the default FitPlan surface. */
.coach-ux-v769 #builder .input,
.coach-ux-v769 #builder input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
.coach-ux-v769 #builder select,
.coach-ux-v769 #builder textarea,
.coach-ux-v769 #builder .draft-table-input,
.coach-ux-v769 #builder .draft-table-select,
.coach-ux-v769 #builder .draft-table-notes,
.coach-ux-v769 #builder .mini-input,
.coach-ux-v769 #builder .draft-running-static{
  background:var(--theme-surface)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-text-18)!important;
  box-shadow:none!important;
}
.coach-ux-v769 #builder select option{
  background:var(--theme-surface)!important;
  color:var(--theme-text)!important;
}
.coach-ux-v769 #builder .input:focus,
.coach-ux-v769 #builder input:focus,
.coach-ux-v769 #builder select:focus,
.coach-ux-v769 #builder textarea:focus{
  border-color:var(--theme-primary)!important;
  box-shadow:0 0 0 3px var(--theme-primary-12)!important;
}

/* Buttons and status chips */
.coach-ux-v769 #builder .btn:not(.secondary):not(.danger){
  background:linear-gradient(135deg,var(--theme-primary),var(--theme-primary2))!important;
  color:var(--theme-on-primary)!important;
  border-color:transparent!important;
}
.coach-ux-v769 #builder .btn.secondary,
.coach-ux-v769 #builder .draft-table-actions .btn:not(.danger){
  background:var(--theme-card)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-text-18)!important;
}
.coach-ux-v769 #builder .btn.danger,
.coach-ux-v769 #builder .draft-table-actions .btn.danger{
  background:var(--theme-danger-10)!important;
  color:var(--theme-danger)!important;
  border-color:var(--theme-danger-30)!important;
}
.coach-ux-v769 #builder .badge,
.coach-ux-v769 #builder .draft-ex-history-pill-v743,
.coach-ux-v769 #builder .draft-running-badge{
  background:var(--theme-primary-12)!important;
  color:var(--theme-primary)!important;
  border-color:var(--theme-primary-28)!important;
}

/* Side-column builder UX also follows the tenant. */
.coach-ux-v769 #builder .ux-v769-builder-side-card,
.coach-ux-v769 #builder .ux-v769-builder-day,
.coach-ux-v769 #builder .ux-v769-quality-item,
.coach-ux-v769 #builder .ux-v769-version-row{
  background:transparent!important;
  border-color:var(--theme-text-09)!important;
}
.coach-ux-v769 #builder .ux-v769-builder-day.active{
  background:var(--theme-primary-08)!important;
  border-left-color:var(--theme-primary)!important;
  border-bottom-color:var(--theme-text-09)!important;
}

/* History / progression / diagnostics */
.coach-ux-v769 #builder .draft-ex-history-popover-v743,
.coach-ux-v769 #builder .history-max-card,
.coach-ux-v769 #builder .draft-history-reference-v736,
.coach-ux-v769 #builder .v736-test-panel,
.coach-ux-v769 #builder .v737-test-panel,
.coach-ux-v769 #builder #progressionPanel,
.coach-ux-v769 #builder #strengthParametersBox,
.coach-ux-v769 #builder #runningParametersBox,
.coach-ux-v769 #builder #suggestedLoadPanel,
.coach-ux-v769 #builder .draft-duration-estimate-box{
  background:var(--theme-card)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-primary-22)!important;
}
.coach-ux-v769 #builder .draft-ex-history-loadbar-v743,
.coach-ux-v769 #builder .history-load-bar,
.coach-ux-v769 #builder .draft-duration-bar{
  background:var(--theme-text-12)!important;
}
.coach-ux-v769 #builder .draft-ex-history-loadbar-v743 i,
.coach-ux-v769 #builder .history-load-bar span,
.coach-ux-v769 #builder .draft-duration-bar i{
  background:linear-gradient(90deg,var(--theme-primary),var(--theme-secondary),var(--theme-primary2))!important;
}

/* Explicit marker used by V816 JS theme verification. */
.coach-ux-v769 #builder[data-tenant-theme-ready="1"]{
  --builder-theme-ready:1;
}

/* FITPLAN V817 - Continuazione progressioni da scheda di riferimento */
.progression-carry-panel-v817{
  display:grid;
  gap:16px;
}
.progression-carry-head-v817{
  align-items:flex-start;
}
.progression-carry-grid-v817{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.progression-carry-rule-v817{
  display:grid;
  gap:4px;
  background:var(--theme-primary-08)!important;
  border-color:var(--theme-primary-22)!important;
  color:var(--theme-text)!important;
}
.progression-carry-rule-v817 span{
  color:var(--theme-muted)!important;
}
.progression-carry-preview-v817{
  display:grid;
  gap:12px;
}
.progression-carry-summary-v817{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.progression-carry-summary-v817>div{
  display:grid;
  gap:3px;
  min-width:0;
  padding:12px 14px;
  border:1px solid var(--theme-text-12);
  border-radius:16px;
  background:var(--theme-card);
}
.progression-carry-summary-v817 strong{
  color:var(--theme-text);
  font-size:16px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.progression-carry-summary-v817 span{
  color:var(--theme-muted);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.045em;
}
.progression-carry-list-v817{
  display:grid;
  gap:8px;
}
.progression-carry-row-v817{
  display:grid;
  grid-template-columns:minmax(220px,1.5fr) minmax(180px,1fr) minmax(190px,1fr);
  gap:12px;
  align-items:center;
  padding:12px 14px;
  border:1px solid var(--theme-text-12);
  border-radius:16px;
  background:var(--theme-card);
  color:var(--theme-text);
}
.progression-carry-row-main-v817,
.progression-carry-row-prog-v817,
.progression-carry-row-base-v817{
  display:grid;
  gap:3px;
  min-width:0;
}
.progression-carry-row-main-v817 strong,
.progression-carry-row-base-v817 strong{
  color:var(--theme-text);
}
.progression-carry-row-main-v817 span,
.progression-carry-row-prog-v817 small,
.progression-carry-row-base-v817 span{
  color:var(--theme-muted);
  font-size:11px;
}
.progression-carry-row-prog-v817>span{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--theme-primary-28);
  background:var(--theme-primary-12);
  color:var(--theme-primary);
  font-size:11px;
  font-weight:850;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.progression-carry-actions-v817{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
@media(max-width:980px){
  .progression-carry-grid-v817{grid-template-columns:repeat(2,minmax(0,1fr));}
  .progression-carry-row-v817{grid-template-columns:1fr 1fr;}
  .progression-carry-row-base-v817{grid-column:1/-1;}
}
@media(max-width:640px){
  .progression-carry-grid-v817,
  .progression-carry-summary-v817,
  .progression-carry-row-v817{grid-template-columns:1fr;}
  .progression-carry-row-base-v817{grid-column:auto;}
}
/* FITPLAN V817.4 - Zero Flash Tenant Isolation */
html.fitplan-v8174-tenant-shield,
html.fitplan-v8174-tenant-shield body{
  background:#070808!important;
}
html.fitplan-v8174-tenant-shield .web-shell,
html.fitplan-v8174-tenant-shield #assistantV766,
html.fitplan-v8174-tenant-shield #uxV769Statusbar,
html.fitplan-v8174-tenant-shield #uxV769Offline,
html.fitplan-v8174-tenant-shield #uxV769CommandOverlay,
html.fitplan-v8174-tenant-shield .modal.open,
html.fitplan-v8174-tenant-shield .exercise-media-lightbox-v767,
html.fitplan-v8174-tenant-shield .fitplan-qa-v814{
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
/* Login/reset remains usable while the tenant shell is shielded. */
html.fitplan-v8174-tenant-shield #fitplanCoachAuthV800:not([hidden]){
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}

/* VERTO V819.1.3 - Global search must never be a blank button.
   The responsive topbar hides the text at <=1320px. In older code, the search
   glyph was also hidden by style_v773.css, leaving a clickable empty outline.
   Keep the SVG visible regardless of coach theme, browser zoom and viewport. */
.coach-ux-v769 #uxV769SearchTrigger .ux-v819-search-icon {
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  flex:0 0 20px!important;
  width:20px!important;
  height:20px!important;
  stroke:currentColor!important;
}
.coach-ux-v769 #uxV769SearchTrigger {
  color:var(--theme-text,var(--ux-text,#f0f4f2))!important;
}
@media(max-width:1320px){
  .coach-ux-v769 #uxV769SearchTrigger {align-items:center!important;justify-content:center!important}
}
