/* ==========================================================================
   FlipPnL™ - Maker Mode Scoped Stylesheet
   Craft & Handmade Unit Economics, Recipe Costing, & Dynamic Line Items
   ========================================================================== */

/* Maker Mode Visibility Rules */
.calc-workbench:not(.maker-mode) #makerWorkbenchSection {
  display: none !important;
}

.calc-workbench.maker-mode .pro-logistics-card,
.calc-workbench.maker-mode #proLogisticsSection,
.calc-workbench.maker-mode .mode-toggle-card,
.calc-workbench.maker-mode #batch-lot-inputs,
.calc-workbench.maker-mode #batch-recovery-card {
  display: none !important;
}

.calc-workbench.maker-mode #single-cogs-group .cogs-badge-auto {
  display: inline-block !important;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Maker Workbench Section Container */
.maker-section {
  background: var(--bg-surface-elevated, #1e293b);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-md, 10px);
  padding: 16px;
  margin-top: 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

/* Header & Template Selector */
.maker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.maker-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.maker-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  letter-spacing: -0.01em;
}

.maker-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.maker-template-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.maker-template-select {
  background: var(--bg-input, #0f172a);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  color: var(--text-primary, #ffffff);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  outline: none;
  min-width: 190px;
}

.maker-template-select:focus {
  border-color: var(--accent-emerald, #10b981);
}

/* Batch Parameters Bar */
.maker-batch-params {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--bg-input, #0f172a);
  padding: 12px;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.06));
}

@media (max-width: 480px) {
  .maker-batch-params {
    grid-template-columns: 1fr;
  }
}

.maker-param-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.maker-param-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.maker-param-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.maker-param-input {
  width: 100%;
  background: var(--bg-surface, #1e293b);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  color: var(--text-primary, #ffffff);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--radius-sm, 6px);
  box-sizing: border-box;
  outline: none;
}

.maker-param-input:focus {
  border-color: var(--accent-emerald, #10b981);
}

/* Fragrance Load Helper Card (Candle Template) */
.fragrance-helper-card {
  background: rgba(14, 165, 233, 0.08);
  border: 1px dashed rgba(14, 165, 233, 0.35);
  border-radius: var(--radius-sm, 6px);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fragrance-helper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: #38bdf8;
}

.fragrance-helper-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

@media (max-width: 480px) {
  .fragrance-helper-grid {
    grid-template-columns: 1fr;
  }
}

.fragrance-helper-val {
  font-size: 0.85rem;
  font-weight: 800;
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
}

/* Recipe Cost Items Table & Rows */
.maker-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin-top: 4px;
}

.maker-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.maker-item-row {
  display: grid;
  grid-template-columns: minmax(110px, 2fr) minmax(55px, 0.75fr) minmax(62px, 0.85fr) minmax(65px, 0.9fr) minmax(60px, 0.85fr) 28px;
  gap: 6px;
  align-items: center;
  background: var(--bg-input, #0f172a);
  padding: 8px 10px;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.06));
  transition: border-color var(--transition-fast, 0.15s ease);
}

@media (max-width: 640px) {
  .maker-item-row {
    grid-template-columns: 1fr 1fr 1fr 1fr 28px;
    grid-template-rows: auto auto;
    row-gap: 6px;
  }
  .maker-item-row .item-name-input {
    grid-column: 1 / span 5;
  }
}

.maker-item-row:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.maker-item-input {
  background: var(--bg-surface, #1e293b);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  color: var(--text-primary, #ffffff);
  font-family: inherit;
  font-size: 0.8rem;
  padding: 5px 8px;
  border-radius: 4px;
  box-sizing: border-box;
  outline: none;
  width: 100%;
}

.maker-item-select {
  background: var(--bg-surface, #1e293b);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  color: var(--text-secondary, #94a3b8);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 4px;
  border-radius: 4px;
  box-sizing: border-box;
  outline: none;
  width: 100%;
  cursor: pointer;
  text-align: center;
}

.maker-item-select:focus {
  border-color: var(--accent-emerald, #10b981);
  color: var(--text-primary, #ffffff);
}

.maker-item-input.num-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  text-align: right;
}

.maker-item-input:focus {
  border-color: var(--accent-emerald, #10b981);
}

.maker-item-total {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-emerald, #10b981);
  text-align: right;
  padding-right: 4px;
}

.btn-remove-row {
  background: transparent;
  border: none;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast, 0.15s ease);
}

.btn-remove-row:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Labor & Overhead Inputs */
.maker-labor-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--bg-input, #0f172a);
  padding: 10px 12px;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.06));
}

@media (max-width: 480px) {
  .maker-labor-box {
    grid-template-columns: 1fr;
  }
}

/* Action Controls Hierarchy (Row 1: Add Material, Row 2: Library, Row 3: Utility) */
.maker-actions-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding-top: 4px;
}

.maker-actions-row {
  display: flex;
  gap: 8px;
  width: 100%;
  align-items: center;
}

.maker-actions-row > button {
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
  justify-content: center;
}

.btn-maker-add {
  width: 100%;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald, #10b981);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast, 0.15s ease);
  box-sizing: border-box;
}

.btn-maker-add:hover {
  background: var(--accent-emerald, #10b981);
  color: #022c22;
}

.btn-maker-save-lib {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all var(--transition-fast, 0.15s ease);
}

.btn-maker-save-lib:hover {
  background: #38bdf8;
  color: #082f49;
}

.btn-maker-toggle-lib {
  background: var(--bg-surface, #1e293b);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  color: var(--text-primary, #ffffff);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all var(--transition-fast, 0.15s ease);
}

.btn-maker-toggle-lib:hover {
  border-color: var(--accent-emerald, #10b981);
  color: var(--accent-emerald, #10b981);
}

.btn-maker-master-lib {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all var(--transition-fast, 0.15s ease);
}

.btn-maker-master-lib:hover {
  background: #fbbf24;
  color: #451a03;
}

.btn-maker-json {
  background: var(--bg-surface, #1e293b);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  color: var(--text-secondary, #94a3b8);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all var(--transition-fast, 0.15s ease);
}

.btn-maker-json:hover {
  border-color: var(--text-primary, #ffffff);
  color: var(--text-primary, #ffffff);
}

/* Wholesale vs. Retail Pricing Tier Selector */
.maker-pricing-tier-card {
  background: var(--bg-input, #0f172a);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-sm, 6px);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.maker-tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.maker-tier-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.maker-tier-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
}

.maker-tier-desc {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
}

.maker-tier-pills {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px;
  border-radius: 20px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
}

.btn-maker-tier {
  background: transparent;
  border: none;
  color: var(--text-secondary, #94a3b8);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all var(--transition-fast, 0.15s ease);
  white-space: nowrap;
}

.btn-maker-tier:hover {
  color: var(--text-primary, #ffffff);
}

.btn-maker-tier.active {
  background: var(--accent-emerald, #10b981);
  color: #022c22;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Wholesale Multiplier Row */
.maker-multiplier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px dashed var(--border, rgba(255, 255, 255, 0.1));
  flex-wrap: wrap;
}

.maker-multiplier-label-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.maker-multiplier-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-emerald, #10b981);
}

.maker-multiplier-hint {
  font-size: 0.7rem;
  color: var(--text-muted, #94a3b8);
}

.maker-multiplier-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface, #1e293b);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  border-radius: var(--radius-sm, 6px);
  padding: 3px 8px;
}

.maker-multiplier-input {
  width: 50px;
  background: transparent;
  border: none;
  color: var(--text-primary, #ffffff);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 800;
  text-align: right;
  outline: none;
}

.maker-multiplier-suffix {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary, #94a3b8);
}

/* Maker Summary Metric Pill */
.maker-summary-strip {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(14, 165, 233, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm, 6px);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.maker-summary-item {
  display: flex;
  flex-direction: column;
}

.maker-summary-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.maker-summary-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-emerald, #10b981);
}

/* Saved Recipe Library Drawer */
.maker-library-drawer {
  background: var(--bg-surface, #1e293b);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  border-radius: var(--radius-sm, 6px);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeIn 0.2s ease;
}

.maker-library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  padding-bottom: 8px;
}

.maker-library-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.maker-library-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
}

.maker-library-sub {
  font-size: 0.7rem;
  color: var(--text-muted, #94a3b8);
}

.maker-library-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary, #94a3b8);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.maker-library-close-btn:hover {
  color: var(--text-primary, #ffffff);
  background: rgba(255, 255, 255, 0.1);
}

/* Quick Inline Save Box */
.maker-save-inline-box {
  background: var(--bg-input, #0f172a);
  border: 1px solid var(--accent-emerald, #10b981);
  border-radius: var(--radius-sm, 6px);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.maker-save-inline-row {
  display: flex;
  gap: 6px;
}

.maker-save-input {
  flex: 1;
  background: var(--bg-surface, #1e293b);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  border-radius: 4px;
  color: var(--text-primary, #ffffff);
  font-family: inherit;
  font-size: 0.82rem;
  padding: 6px 10px;
  outline: none;
}

.btn-maker-save-confirm {
  background: var(--accent-emerald, #10b981);
  color: #022c22;
  border: none;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-maker-save-cancel {
  background: transparent;
  color: var(--text-secondary, #94a3b8);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 6px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.maker-save-inline-hint {
  font-size: 0.68rem;
  color: var(--text-muted, #94a3b8);
}

/* Recipe Library List & Cards */
.maker-library-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 2px;
}

.maker-recipe-card {
  background: var(--bg-input, #0f172a);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-sm, 6px);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: border-color var(--transition-fast, 0.15s ease);
}

.maker-recipe-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
}

.maker-recipe-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.maker-recipe-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.maker-recipe-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.maker-recipe-date {
  font-size: 0.68rem;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
}

.maker-recipe-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.maker-recipe-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.maker-recipe-badge.template {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.maker-recipe-badge.wholesale {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.maker-recipe-badge.retail {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.maker-recipe-chip {
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary, #94a3b8);
}

.maker-recipe-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-maker-load {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald, #10b981);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast, 0.15s ease);
}

.btn-maker-load:hover {
  background: var(--accent-emerald, #10b981);
  color: #022c22;
}

.btn-maker-delete {
  background: transparent;
  border: none;
  color: var(--text-muted, #94a3b8);
  font-size: 0.75rem;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 4px;
  transition: color var(--transition-fast, 0.15s ease);
}

.btn-maker-delete:hover {
  color: var(--accent-rose, #f43f5e);
  background: rgba(244, 63, 94, 0.1);
}

.maker-library-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  gap: 6px;
  color: var(--text-muted, #94a3b8);
  text-align: center;
}

.maker-library-empty-icon {
  font-size: 1.5rem;
}

.maker-library-empty-text {
  font-size: 0.75rem;
}

.btn-maker-empty-save {
  margin-top: 4px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald, #10b981);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

/* Master Ingredient Catalog Drawer */
.maker-master-drawer {
  background: var(--bg-surface, #1e293b);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-sm, 6px);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeIn 0.2s ease;
}

.maker-master-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-maker-add-staple {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-maker-add-staple:hover {
  background: #fbbf24;
  color: #451a03;
}

.btn-maker-sync-staples {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald, #10b981);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-maker-sync-staples:hover {
  background: var(--accent-emerald, #10b981);
  color: #022c22;
}

.maker-master-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 2px;
}

.maker-master-item-row {
  background: var(--bg-input, #0f172a);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 4px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.maker-master-name-col {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.maker-master-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.maker-master-unit {
  font-size: 0.68rem;
  color: var(--text-muted, #94a3b8);
}

.maker-master-cost-col {
  display: flex;
  align-items: center;
  gap: 6px;
}

.maker-master-cost-input {
  width: 75px;
  background: var(--bg-surface, #1e293b);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  border-radius: 4px;
  color: var(--accent-emerald, #10b981);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 6px;
  text-align: right;
  outline: none;
}

/* Disclaimer & Compliance Clause */
.maker-compliance-notice {
  font-size: 0.72rem;
  color: var(--text-muted, #64748b);
  line-height: 1.4;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  border-left: 2px solid rgba(245, 158, 11, 0.4);
}

/* Light Theme Overrides */
[data-theme="light"] .maker-section {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .maker-template-select,
[data-theme="light"] .maker-batch-params,
[data-theme="light"] .maker-labor-box,
[data-theme="light"] .maker-pricing-tier-card,
[data-theme="light"] .maker-library-drawer,
[data-theme="light"] .maker-master-drawer,
[data-theme="light"] .maker-recipe-card,
[data-theme="light"] .maker-master-item-row,
[data-theme="light"] .maker-item-row {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .maker-tier-pills {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .maker-save-inline-box {
  background: #f1f5f9 !important;
  border-color: #10b981 !important;
}

[data-theme="light"] .maker-save-input,
[data-theme="light"] .btn-maker-toggle-lib,
[data-theme="light"] .btn-maker-master-lib,
[data-theme="light"] .btn-maker-json {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .maker-param-input,
[data-theme="light"] .maker-master-cost-input,
[data-theme="light"] .maker-item-input {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .maker-recipe-name,
[data-theme="light"] .maker-master-name,
[data-theme="light"] .maker-library-title {
  color: #0f172a !important;
}

[data-theme="light"] .fragrance-helper-card {
  background: rgba(14, 165, 233, 0.06) !important;
  border-color: rgba(14, 165, 233, 0.3) !important;
}

[data-theme="light"] .maker-compliance-notice {
  background: #f1f5f9 !important;
  color: #64748b !important;
}
