/* ==========================================================================
   ONE REP MAX CALCULATOR Z - STRENGTH DECISION ENGINE STYLESHEET
   Scoped exclusively under .ormz-one-rep-max-calculator
   WordPress Kadence Theme Compatible | Strict Anti-Overflow & Auto Fit
   ========================================================================== */

/* Design Tokens & Scoped Variables */
.ormz-one-rep-max-calculator {
  --ormz-primary: #0EA5E9;
  --ormz-primary-hover: #0284C7;
  --ormz-primary-light: #E0F2FE;
  --ormz-primary-ring: rgba(14, 165, 233, 0.25);
  
  --ormz-dark: #0F172A;
  --ormz-slate: #334155;
  --ormz-muted: #64748B;
  --ormz-light-bg: #F8FAFC;
  --ormz-card-bg: #FFFFFF;
  --ormz-border: #E2E8F0;
  --ormz-border-focus: #94A3B8;
  
  --ormz-success: #16A34A;
  --ormz-success-bg: #DCFCE7;
  --ormz-warning: #F59E0B;
  --ormz-warning-bg: #FEF3C7;
  --ormz-danger: #DC2626;
  --ormz-danger-bg: #FEE2E2;

  --ormz-plate-red: #EF4444;
  --ormz-plate-blue: #3B82F6;
  --ormz-plate-yellow: #EAB308;
  --ormz-plate-green: #22C55E;
  --ormz-plate-white: #F8FAFC;
  --ormz-plate-black: #334155;
  
  --ormz-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ormz-radius-sm: 6px;
  --ormz-radius-md: 10px;
  --ormz-radius-lg: 16px;
  --ormz-radius-full: 9999px;
  
  --ormz-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --ormz-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --ormz-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --ormz-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scoped Reset & Strict Box Sizing */
.ormz-one-rep-max-calculator,
.ormz-one-rep-max-calculator * {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
  font-family: var(--ormz-font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Main Container: Auto Fit Width & Anti-Overflow Protection */
.ormz-one-rep-max-calculator {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 16px 8px;
  color: var(--ormz-slate);
  background-color: transparent;
  line-height: 1.5;
  font-size: 15px;
  overflow-x: hidden; /* Prevents whole-page right cutoff */
}

/* Layout Grid: Desktop 2-Col (350px + minmax(0, 1fr)) vs Mobile 1-Col */
.ormz-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  height: auto;
}

.ormz-grid-layout > * {
  min-width: 0; /* CRITICAL: Allows grid items to shrink without pushing layout wide */
  max-width: 100%;
}

@media (min-width: 960px) {
  .ormz-one-rep-max-calculator {
    padding: 24px 12px;
  }
  .ormz-grid-layout {
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }
}

/* Cards System: Strictly Fit Width */
.ormz-card {
  background: var(--ormz-card-bg);
  border: 1px solid var(--ormz-border);
  border-radius: var(--ormz-radius-lg);
  padding: 18px 14px;
  box-shadow: var(--ormz-shadow-md);
  transition: var(--ormz-transition);
  margin-bottom: 20px;
  height: auto;
  width: 100%;
  min-width: 0;
}

@media (min-width: 600px) {
  .ormz-card {
    padding: 22px;
    margin-bottom: 22px;
  }
}

.ormz-card:last-child {
  margin-bottom: 0;
}

.ormz-card-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ormz-border);
}

.ormz-card-title {
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 700;
  color: var(--ormz-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.ormz-card-subtitle {
  font-size: 0.825rem;
  color: var(--ormz-muted);
  margin-top: 4px;
}

/* Form Controls & Inputs */
.ormz-form-group {
  margin-bottom: 16px;
  width: 100%;
}

.ormz-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ormz-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ormz-dark);
}

.ormz-hint-text {
  font-size: 0.75rem;
  color: var(--ormz-muted);
}

.ormz-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.ormz-input {
  width: 100%;
  height: 46px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ormz-dark);
  background-color: var(--ormz-light-bg);
  border: 1.5px solid var(--ormz-border);
  border-radius: var(--ormz-radius-md);
  transition: var(--ormz-transition);
  appearance: textfield;
}

.ormz-input::-webkit-outer-spin-button,
.ormz-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ormz-input:hover {
  border-color: var(--ormz-border-focus);
}

.ormz-input:focus {
  outline: none;
  border-color: var(--ormz-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px var(--ormz-primary-ring);
}

.ormz-input.ormz-input-error {
  border-color: var(--ormz-danger);
  background-color: #FFF5F5;
}

.ormz-input-suffix {
  position: absolute;
  right: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ormz-muted);
  pointer-events: none;
}

.ormz-select {
  width: 100%;
  height: 46px;
  padding: 10px 36px 10px 14px;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--ormz-dark);
  background-color: var(--ormz-light-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%3334155'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  border: 1.5px solid var(--ormz-border);
  border-radius: var(--ormz-radius-md);
  transition: var(--ormz-transition);
  cursor: pointer;
  appearance: none;
}

.ormz-select:focus {
  outline: none;
  border-color: var(--ormz-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px var(--ormz-primary-ring);
}

/* Unit Toggle Switch */
.ormz-unit-toggle-group {
  display: flex;
  background-color: var(--ormz-light-bg);
  border: 1px solid var(--ormz-border);
  border-radius: var(--ormz-radius-md);
  padding: 4px;
  gap: 4px;
  width: 100%;
}

.ormz-unit-btn {
  flex: 1;
  height: 38px;
  border: none;
  background: transparent;
  border-radius: var(--ormz-radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ormz-muted);
  cursor: pointer;
  transition: var(--ormz-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ormz-unit-btn:hover {
  color: var(--ormz-dark);
}

.ormz-unit-btn.ormz-active {
  background-color: var(--ormz-card-bg);
  color: var(--ormz-primary);
  box-shadow: var(--ormz-shadow-sm);
}

.ormz-unit-btn:focus-visible {
  outline: 2px solid var(--ormz-primary);
}

/* Buttons */
.ormz-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
}

.ormz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  font-size: 0.925rem;
  font-weight: 700;
  border-radius: var(--ormz-radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--ormz-transition);
  text-decoration: none;
  line-height: 1;
  touch-action: manipulation;
}

.ormz-btn-primary {
  flex: 1;
  min-width: 130px;
  background-color: var(--ormz-primary);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(14, 165, 233, 0.25);
}

.ormz-btn-primary:hover {
  background-color: var(--ormz-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(14, 165, 233, 0.35);
}

.ormz-btn-primary:active {
  transform: translateY(0);
}

.ormz-btn-secondary {
  background-color: var(--ormz-light-bg);
  color: var(--ormz-slate);
  border-color: var(--ormz-border);
}

.ormz-btn-secondary:hover {
  background-color: #E2E8F0;
  color: var(--ormz-dark);
}

.ormz-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--ormz-primary-ring);
}

/* Validation Feedback & Warnings */
.ormz-error-msg {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--ormz-danger);
  margin-top: 6px;
  font-weight: 500;
}

.ormz-error-msg.ormz-show {
  display: flex;
}

.ormz-warning-banner {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background-color: var(--ormz-warning-bg);
  border: 1px solid #FCD34D;
  border-radius: var(--ormz-radius-md);
  margin-top: 16px;
  font-size: 0.825rem;
  color: #92400E;
}

.ormz-warning-banner.ormz-show {
  display: flex;
}

.ormz-warning-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: #D97706;
  margin-top: 1px;
}

/* MAIN RESULT CARD */
.ormz-main-result-card {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #ffffff;
  border-radius: var(--ormz-radius-lg);
  padding: clamp(18px, 2.5vw, 24px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.25);
  margin-bottom: 20px;
  width: 100%;
  min-width: 0;
}

.ormz-main-result-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0) 70%);
  pointer-events: none;
}

.ormz-result-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.ormz-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--ormz-radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.ormz-badge-primary {
  background-color: rgba(14, 165, 233, 0.2);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.ormz-badge-success {
  background-color: rgba(22, 163, 74, 0.2);
  color: #4ADE80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.ormz-badge-warning {
  background-color: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.ormz-badge-danger {
  background-color: rgba(220, 38, 38, 0.2);
  color: #F87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.ormz-1rm-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.ormz-1rm-number {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.ormz-1rm-unit {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: #94A3B8;
}

.ormz-1rm-label {
  font-size: 0.825rem;
  color: #94A3B8;
  font-weight: 500;
  margin-bottom: 12px;
}

.ormz-range-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 12px;
  border-radius: var(--ormz-radius-full);
  font-size: clamp(0.75rem, 1.5vw, 0.825rem);
  color: #E2E8F0;
  margin-bottom: 16px;
  max-width: 100%;
  flex-wrap: wrap;
}

.ormz-range-pill strong {
  color: #38BDF8;
  font-weight: 700;
}

/* Metrics Grid inside Main Card */
.ormz-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.ormz-metric-box {
  display: flex;
  flex-direction: column;
}

.ormz-metric-label {
  font-size: 0.675rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94A3B8;
  font-weight: 600;
  margin-bottom: 2px;
}

.ormz-metric-value {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  color: #F8FAFC;
}

.ormz-metric-subtext {
  font-size: 0.7rem;
  color: #64748B;
  margin-top: 2px;
}

/* RELIABILITY BOX */
.ormz-reliability-box {
  background-color: var(--ormz-light-bg);
  border: 1px solid var(--ormz-border);
  border-radius: var(--ormz-radius-md);
  padding: 14px;
  margin-bottom: 20px;
  width: 100%;
  min-width: 0;
}

.ormz-reliability-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ormz-reliability-title {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--ormz-dark);
}

.ormz-reliability-reason {
  font-size: 0.8rem;
  color: var(--ormz-slate);
  line-height: 1.4;
}

/* DECISION ENGINE ACTION CENTER CARDS */
.ormz-action-center {
  margin-bottom: 22px;
  width: 100%;
  min-width: 0;
}

.ormz-action-center-title {
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ormz-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Responsive Action Cards Grid with Strict Container Fitting */
.ormz-action-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  width: 100%;
  min-width: 0;
}

@media (min-width: 640px) {
  .ormz-action-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.ormz-action-card {
  background: var(--ormz-card-bg);
  border: 1.5px solid var(--ormz-border);
  border-radius: var(--ormz-radius-lg);
  padding: 14px 12px;
  cursor: pointer;
  transition: var(--ormz-transition);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  position: relative;
  touch-action: manipulation;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ormz-action-card:hover {
  border-color: var(--ormz-primary);
  transform: translateY(-2px);
  box-shadow: var(--ormz-shadow-md);
}

.ormz-action-card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--ormz-radius-md);
  background: var(--ormz-primary-light);
  color: var(--ormz-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.ormz-action-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ormz-dark);
  word-break: break-word;
}

.ormz-action-card-desc {
  font-size: 0.75rem;
  color: var(--ormz-muted);
  line-height: 1.35;
  word-break: break-word;
}

.ormz-action-card-arrow {
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ormz-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* TAB NAVIGATION & MOBILE SWIPE */
.ormz-tabs-header {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--ormz-border);
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  width: 100%;
}

.ormz-tabs-header::-webkit-scrollbar {
  display: none;
}

.ormz-tab-btn {
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ormz-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--ormz-transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  touch-action: manipulation;
}

.ormz-tab-btn:hover {
  color: var(--ormz-dark);
}

.ormz-tab-btn.ormz-active {
  color: var(--ormz-primary);
  border-bottom-color: var(--ormz-primary);
}

.ormz-tab-btn:focus-visible {
  outline: 2px solid var(--ormz-primary);
}

.ormz-tab-pane {
  display: none;
  width: 100%;
  min-width: 0;
}

.ormz-tab-pane.ormz-active {
  display: block;
  animation: ormzFadeIn 0.25s ease-in-out;
}

@keyframes ormzFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE TABLES */
.ormz-table-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--ormz-radius-md);
  border: 1px solid var(--ormz-border);
  margin-bottom: 16px;
}

.ormz-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.825rem;
  min-width: 380px;
}

.ormz-table th {
  background-color: var(--ormz-light-bg);
  color: var(--ormz-dark);
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ormz-border);
  white-space: nowrap;
}

.ormz-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ormz-border);
  color: var(--ormz-slate);
}

.ormz-table tr:last-child td {
  border-bottom: none;
}

.ormz-table tr:hover td {
  background-color: #F1F5F9;
}

.ormz-table-row-recommended {
  background-color: #F0F9FF !important;
  font-weight: 600;
}

.ormz-table-row-recommended td {
  color: var(--ormz-dark);
}

/* VISUAL BARBELL PLATE CALCULATOR ENGINE */
.ormz-barbell-visualizer {
  background-color: var(--ormz-dark);
  border-radius: var(--ormz-radius-lg);
  padding: 18px 12px;
  margin-bottom: 16px;
  color: #ffffff;
  text-align: center;
  width: 100%;
  min-width: 0;
}

.ormz-barbell-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
  width: 100%;
}

.ormz-barbell-sleeve {
  height: 14px;
  background: linear-gradient(180deg, #94A3B8 0%, #475569 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 4px;
  gap: 3px;
  min-width: 200px;
  position: relative;
}

.ormz-barbell-collar {
  width: 12px;
  height: 44px;
  background: #CBD5E1;
  border: 2px solid #334155;
  border-radius: 4px;
  flex-shrink: 0;
}

.ormz-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: #ffffff;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.3);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  flex-shrink: 0;
}

.ormz-plate-25 { height: 84px; width: 16px; background-color: var(--ormz-plate-red); }
.ormz-plate-20 { height: 76px; width: 14px; background-color: var(--ormz-plate-blue); }
.ormz-plate-15 { height: 68px; width: 12px; background-color: var(--ormz-plate-yellow); color: #000; }
.ormz-plate-10 { height: 60px; width: 10px; background-color: var(--ormz-plate-green); }
.ormz-plate-5  { height: 48px; width: 8px; background-color: var(--ormz-plate-white); color: #000; }
.ormz-plate-2-5 { height: 38px; width: 7px; background-color: var(--ormz-plate-black); }
.ormz-plate-1-25 { height: 30px; width: 6px; background-color: #94A3B8; }

.ormz-plate-45 { height: 84px; width: 16px; background-color: var(--ormz-plate-blue); }
.ormz-plate-35 { height: 74px; width: 14px; background-color: var(--ormz-plate-yellow); color: #000; }
.ormz-plate-25lb { height: 64px; width: 12px; background-color: var(--ormz-plate-green); }
.ormz-plate-10lb { height: 54px; width: 10px; background-color: var(--ormz-plate-black); }
.ormz-plate-5lb  { height: 42px; width: 8px; background-color: var(--ormz-plate-white); color: #000; }
.ormz-plate-2-5lb { height: 32px; width: 7px; background-color: #94A3B8; }

.ormz-plate-breakdown-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}

.ormz-plate-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--ormz-light-bg);
  border: 1px solid var(--ormz-border);
  padding: 4px 10px;
  border-radius: var(--ormz-radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ormz-dark);
}

.ormz-attempts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 14px;
  width: 100%;
}

.ormz-attempt-card {
  background-color: var(--ormz-light-bg);
  border: 1.5px solid var(--ormz-border);
  border-radius: var(--ormz-radius-md);
  padding: 14px 10px;
  text-align: center;
}

.ormz-attempt-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ormz-muted);
  margin-bottom: 4px;
}

.ormz-attempt-weight {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ormz-dark);
}

.ormz-attempt-desc {
  font-size: 0.725rem;
  color: var(--ormz-slate);
  margin-top: 4px;
}

.ormz-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--ormz-border);
  width: 100%;
}

.ormz-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background-color: var(--ormz-card-bg);
  border: 1.5px solid var(--ormz-border);
  border-radius: var(--ormz-radius-md);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--ormz-slate);
  cursor: pointer;
  transition: var(--ormz-transition);
  touch-action: manipulation;
}

.ormz-action-btn:hover {
  background-color: var(--ormz-light-bg);
  color: var(--ormz-dark);
  border-color: var(--ormz-border-focus);
}

.ormz-action-btn:focus-visible {
  outline: 2px solid var(--ormz-primary);
}

.ormz-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--ormz-dark);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--ormz-radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--ormz-shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.ormz-toast.ormz-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ormz-disclaimer {
  font-size: 0.725rem;
  color: var(--ormz-muted);
  margin-top: 14px;
  line-height: 1.4;
  text-align: center;
}

.ormz-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-0: 0;
}

.ormz-accordion-details {
  border: 1px solid var(--ormz-border);
  border-radius: var(--ormz-radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--ormz-card-bg);
  width: 100%;
}

.ormz-accordion-summary {
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ormz-dark);
  cursor: pointer;
  background: var(--ormz-light-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.ormz-accordion-summary::-webkit-details-marker {
  display: none;
}

.ormz-accordion-content {
  padding: 14px;
  border-top: 1px solid var(--ormz-border);
}

@media (prefers-reduced-motion: reduce) {
  .ormz-one-rep-max-calculator *,
  .ormz-tab-pane,
  .ormz-toast {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  body * {
    visibility: hidden;
  }
  
  .ormz-one-rep-max-calculator,
  .ormz-one-rep-max-calculator * {
    visibility: visible;
  }
  
  .ormz-one-rep-max-calculator {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  
  .ormz-btn-group,
  .ormz-actions-row,
  .ormz-tabs-header,
  .ormz-action-center {
    display: none !important;
  }
  
  .ormz-tab-pane {
    display: block !important;
    margin-bottom: 20px;
  }
  
  .ormz-card,
  .ormz-main-result-card {
    box-shadow: none !important;
    border: 1px solid #000000 !important;
    break-inside: avoid;
  }
}
