/* SellerCalc — active styles; cascade order preserved. 19.10.2026 */
:root {
   
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #e0e7ff;

  --secondary: #6b7280;
  --secondary-light: #9ca3af;

  --success: #10b981;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;

  --bg: #fafafa;
  --bg-card: #ffffff;
  --bg-hover: #f8fafc;

  --text: #374151;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;

  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --border-dark: #d1d5db;

--wb: #8b5cf6;
--wb-medium: #a78bfa;     
--wb-light: #ede9fe;

--ozon: #3b82f6;
--ozon-medium: #60a5fa;    
--ozon-light: #dbeafe;

--ym: #fc0;
--ym-medium: #fde047;      
--ym-light: #fef3c7;

--basic: #059669;
--basic-medium: #10b981;   
--basic-light: #d1fae5;

--help: #3b82f6;
--help-medium: #60a5fa;
--help-light: #dbeafe;

--reset: #ef4444;
--reset-medium: #f87171;
--reset-light: #fecaca;

--success: #059669;
--success-medium: #10b981;
--success-light: #d1fae5;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --space-3xl: 32px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-width: 720px;
  scroll-behavior: smooth;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-lg);
}

.main-layout {
  display: grid;
  grid-template-columns: minmax(280px, 35%) 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.left-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.header {
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 50%, #fafafa 100%);
  margin-bottom: var(--space-xl);
  padding: var(--space-2xl) var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent 0%, var(--bg) 100%);
  z-index: 1;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.header-text {
  flex: 1;
}

.header h1 {
  font-size: 2.1rem;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--text) 0%, var(--text-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.header p {
  color: var(--text-light);
  font-size: 1.05rem;
  font-weight: 500;
  opacity: 0.8;
}

.chart-container {
  width: 200px;
  height: 100px;
  position: relative;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  height: 100%;
  padding: 0 10px;
}

.chart-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 44px;
  height: 100%;
  position: relative;
  transition: all 0.3s ease;
}

.bar-fill {
  width: 28px;
  background: currentColor;
  border-radius: 4px 4px 0 0;
  min-height: 8px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  opacity: 0.9;
}

.chart-bar.active .bar-fill {
  opacity: 1;
  transform: scaleY(1.05);
}

.bar-price {
  margin-top: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text);
  padding: 3px 6px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  min-width: 40px;
  text-align: center;
}

.bar-label {
  margin-top: 4px;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.wb-bar { color: var(--wb); }
.ozon-bar { color: var(--ozon); }
.ym-bar { color: var(--ym); }

.chart-bar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateZ(-6px);
  border-radius: var(--radius-sm);
  opacity: 0.2;
}

.chart-container:hover .chart-bars {
  transform: rotateX(15deg) rotateY(-8deg) scale(1.02);
}

.chart-bar:hover {
  transform: translateY(-3px) translateZ(8px);
}

.chart-bar:hover .bar-fill {
  filter: brightness(1.1);
}

.chart-bar:hover .bar-price {
  background: rgba(255,255,255,1);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  background: var(--bg-card);
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  align-items: center;
  backdrop-filter: blur(10px);

  position: sticky;
  top: 0;
  z-index: 10;
  
  white-space: nowrap;
}

.tab {
  flex: 1;
  padding: 12px 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  overflow: hidden;
}

.tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s;
}

.tab:hover::before {
  left: 100%;
}

.tab:hover {
  background: var(--bg-hover);
  color: var(--text);
  transform: translateY(-1px);
}

.tab.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
  transform: translateY(0);
  border-color: transparent;
}

.tab.help {
  flex: 0 0 auto;
  background: var(--help);
  color: white;
  font-weight: 600;
  min-width: 44px;
  width: auto;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.tab.help:hover {
  background: var(--help);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.tab.wb {
  background: var(--wb-light);
  color: var(--wb);
  border: 1px solid var(--wb-medium);
}

.tab.wb:hover {
  background: var(--wb-light);
  border-color: var(--wb);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

.tab.wb.active { 
  background: var(--wb); 
  color: white;
}

.tab.ozon {
  background: var(--ozon-light);
  color: var(--ozon);
  border: 1px solid var(--ozon-medium);
}

.tab.ozon:hover {
  background: var(--ozon-light);
  border-color: var(--ozon);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.tab.ozon.active { 
  background: var(--ozon); 
  color: white;
}

.tab.ym {
  background: var(--ym-light);
  color: var(--text);
  border: 1px solid var(--ym-medium);
}

.tab.ym:hover {
  background: var(--ym-light);
  border-color: var(--ym);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.tab.ym.active { 
  background: var(--ym); 
  color: #000;
}

.tab.reset {
  flex: 0 0 auto;
  background: var(--reset);
  color: white;
  font-weight: 600;
  min-width: 44px;
  width: auto;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.tab.reset:hover {
  background: var(--reset);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.tab.basic {
  background: var(--basic-light);
  color: var(--basic);
  border: 1px solid var(--basic-medium);
}

.tab.basic:hover {
  background: var(--basic-light);
  border-color: var(--basic);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
}

.tab.basic.active { 
  background: var(--basic); 
  color: white;
}

.utils-tabs {
  display: flex;
  gap: var(--space-sm);
  background: var(--bg-card);
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  align-items: center;
  margin-bottom: var(--space-xl);
  flex-wrap: nowrap;
  overflow-x: auto;
}

.utils-tabs .tab.help-pc {
  flex: 0 0 16%;
  background: var(--help);
  color: white;
  min-width: 0;
}

.utils-tabs .tab.reset-pc {
  flex: 0 0 16%;
  background: var(--reset);
  color: white;
  min-width: 0;
}

.utils-tabs .tab.save-template-btn {
  flex: 0 0 16%;
  background: var(--basic);  
  color: white;  
  border: 1px solid var(--basic);
  min-width: 0;
}

.utils-tabs .tab.save-template-btn:hover {
  background: var(--basic);
  border-color: var(--basic);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
}

.template-input-container,
.template-dropdown-container {
  flex: 1;  
  display: flex;  
  align-items: center;
  gap: var(--space-xs);
  min-width: 0;
  max-width: none;
}

.utils-tabs .template-input-container[style*="display: none"],
.utils-tabs .template-dropdown-container[style*="display: none"] {
  display: none !important;
}

.template-name-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text);
  font-size: 0.9rem;
  min-width: 0;
  transition: all 0.3s ease;
}

.template-name-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.template-name-input::placeholder {
  color: var(--text-light);
}

.utils-tabs .tab.confirm-save-btn {
  background: var(--success);
  color: white;
  min-width: 44px;
  width: 44px;
  padding: 12px;
  flex: 0 0 auto;
}

.template-dropdown {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text);
  font-size: 0.9rem;
  min-width: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.template-dropdown:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.utils-tabs .tab.delete-template-btn {
  background: var(--reset);
  color: white;
  min-width: 44px;
  width: 44px;
  padding: 12px;
  flex: 0 0 auto;
}

.utils-tabs .tab.help-pc:hover {
  background: var(--help);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.utils-tabs .tab.reset-pc:hover {
  background: var(--reset);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.utils-tabs .tab.confirm-save-btn:hover {
  background: var(--success);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.utils-tabs .tab.delete-template-btn:hover {
  background: var(--reset);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .utils-tabs .tab.save-template-btn {
  flex: 0 0 auto;
  min-width: 44px;
  width: auto;
  }

}

.template-name-input,
.template-dropdown {
  background: #f7fdf9;
  border-color: #8fd3a6;
}

.template-name-input:focus,
.template-dropdown:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
  background: #f7fdf9;
}

.template-name-input,
.template-dropdown {
  background: var(--bg-input-success, #f7fdf9);
  border-color: var(--border-success, #8fd3a6);
}

.template-name-input:focus,
.template-dropdown:focus {
  border-color: var(--success, #22c55e);
  box-shadow: 0 0 0 3px var(--shadow-success, rgba(74, 222, 128, 0.1));
  background: var(--bg-input-success, #f7fdf9);
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card h2 {
  margin-bottom: var(--space-xl);
  color: var(--text);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}

.wb-badge { background: var(--wb); color: white; }
.ozon-badge { background: var(--ozon); color: white; }
.ym-badge { background: var(--ym); color: #000; }
.basic-badge { background: var(--basic); color: white; }

.form-group {
  margin-bottom: var(--space-lg);
  animation: fieldSlideIn 0.2s ease-out;
}

.form-group label {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--text);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.form-group:focus-within label {
  color: var(--primary);
}

.form-group input, 
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-card);
  font-weight: 500;
  color: var(--text);
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.form-group input:hover, 
.form-group select:hover {
  border-color: var(--border-dark);
  background: var(--bg-hover);
}

.form-group input:focus:not([type="range"]), 
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 
    0 0 0 3px var(--primary-light),
    inset 0 1px 2px rgba(0, 0, 0, 0.03);
  transform: translateY(-1px);
}

.form-group input::placeholder {
  color: var(--text-lighter);
  transition: all 0.2s ease;
  font-weight: 400;
}

.form-group input:focus::placeholder {
  color: var(--secondary-light);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.form-group input[type="number"] {
  font-variant-numeric: tabular-nums;
  text-align: center;
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-group input[type="number"]:is([id="length"], [id="width"], [id="height"], [id="weight"], [id="volume"]) {
background: #fef7f7;
border-color: #ff8a8a;
}

.form-group input[type="number"]:is([id="length"], [id="width"], [id="height"], [id="weight"], [id="volume"]):focus {
border-color: #ff6b6b;
box-shadow: 0 0 0 3px rgba(255, 158, 158, 0.1);
}

.form-group input[type="number"]:is([id="costPrice"], [id="expenses"], [id="margin"], [id="minMarginPercent"], 
[id="taxIncomeRate"], [id="taxProfitRate"], [id="discount"]),
.form-group select:is([id="taxType"], [id="marginType"], [id="minMarginType"]) {
  background: #f7fdf9;
  border-color: #8fd3a6;
}

.form-group input[type="number"]:is([id="costPrice"], [id="expenses"], [id="margin"], [id="minMarginPercent"], 
[id="taxIncomeRate"], [id="taxProfitRate"], [id="discount"]):focus,
.form-group select:is([id="taxType"], [id="marginType"], [id="minMarginType"]):focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
  background: #f7fdf9;
}

.form-group input[type="number"]:is([id="wbCommission"], [id="wbAcquiring"], [id="wbLogisticCoefficient"], [id="wbBuyoutPercent"], [id="wbAdsPercent"], [id="wbDeliveryTime"], [id="wbPaidAcceptance"],
[id="wbFbwCommission"], [id="wbFbwAcquiring"], [id="wbFbwLogisticCoefficient"], [id="wbFbwBuyoutPercent"], [id="wbFbwAdsPercent"], [id="wbFbwPaidAcceptance"]) {
background: #faf7ff;
border-color: #b197fc;
}

.form-group input[type="number"]:is([id="wbCommission"], [id="wbAcquiring"], [id="wbLogisticCoefficient"], [id="wbBuyoutPercent"], [id="wbAdsPercent"], [id="wbDeliveryTime"], [id="wbPaidAcceptance"],
[id="wbFbwCommission"], [id="wbFbwAcquiring"], [id="wbFbwLogisticCoefficient"], [id="wbFbwBuyoutPercent"], [id="wbFbwAdsPercent"], [id="wbFbwPaidAcceptance"]):focus {
border-color: #8b5cf6;
box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.form-group select:is([id="wbSaleType"], [id="wbLocalizationIndex"]) {
background: #faf7ff;
border-color: #b197fc;
color: var(--text);
}

.form-group select:is([id="wbSaleType"], [id="wbLocalizationIndex"]):focus {
border-color: #8b5cf6;
box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
background: #faf7ff;
}

.form-group input[type="number"]:is([id="ozonBaseCommission"], [id="ozonAcquiring"], [id="ozonBuyoutPercent"], [id="ozonAdsPercent"], [id="ozonProcessing"], [id="ozonDelivery"], [id="ozonLateShipment"],
[id="ozonFboBaseCommission"], [id="ozonFboAcquiring"], [id="ozonFboDelivery"], [id="ozonFboLateShipment"],
[id="ozonAcquiringFixed"], [id="ozonFboAcquiringFixed"]),
.form-group select:is([id="ozonCommissionType"], [id="ozonSaleType"], [id="ozonFboCommissionType"], [id="ozonDeliveryTime"]) {
background: #f7fbff;
border-color: #7eb6ff;
}

.form-group input[type="number"]:is([id="ozonBaseCommission"], [id="ozonAcquiring"], [id="ozonBuyoutPercent"], [id="ozonAdsPercent"], [id="ozonProcessing"], [id="ozonDelivery"], [id="ozonLateShipment"],
[id="ozonFboBaseCommission"], [id="ozonFboAcquiring"], [id="ozonFboDelivery"], [id="ozonFboLateShipment"],
[id="ozonAcquiringFixed"], [id="ozonFboAcquiringFixed"]):focus,
.form-group select:is([id="ozonCommissionType"], [id="ozonSaleType"], [id="ozonFboCommissionType"], [id="ozonDeliveryTime"]):focus {
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.form-group input[type="number"]:is([id="ymCommission"], [id="ymBuyoutPercent"], [id="ymAdsPercent"], [id="ymCustomerDelivery"]),
.form-group select:is([id="ymAcquiring"], [id="ymSaleType"]) {  
background: #fff7f0;
border-color: #fdba74;
}

.form-group input[type="number"]:is([id="ymCommission"], [id="ymBuyoutPercent"], [id="ymAdsPercent"], [id="ymCustomerDelivery"]):focus,
.form-group select:is([id="ymAcquiring"], [id="ymSaleType"]):focus {  
border-color: #f97316;
box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.1);
}

@keyframes fieldSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.formula-hint {
  font-size: 0.75rem;
  color: var(--text-lighter);
  margin-top: var(--space-xs);
  font-style: italic;
  line-height: 1.4;
}

.info-button {
  background: var(--basic);
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: white;
  margin-left: 5px;
  padding: 6px 16px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
}

.info-button:hover {
  background: var(--basic);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.calculator-content {
  display: none;
}

.calculator-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.platform-params {
  display: none;
}

.platform-params.active {
  display: block;
}

.basic-params {
  display: block !important;
}

.results {
  margin-top: var(--space-xl);
}

.result-section {
  margin-bottom: var(--space-2xl);
}

.result-section h3 {
  margin-bottom: var(--space-lg);
  color: var(--text);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
  border-radius: var(--radius-sm);
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}

.result-item:hover {
  background: var(--bg-hover);
}

.result-label {
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--text);
}

.result-value {
  font-weight: 600;
  color: var(--text);
}

.result-hint {
  font-size: 0.7rem;
  color: var(--text-lighter);
  margin-top: 2px;
  font-weight: 400;
  opacity: 0.8;
  line-height: 1.2;
}

.expense-item .result-value { color: var(--danger); }

.tax-item .result-value { color: var(--warning); }

.profit-item .result-value { color: var(--success); }

.summary-table {
  background: var(--bg-card);
  border-radius: var(--radius-lg);

}

.summary-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background: var(--bg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
}

.summary-header .summary-platform {
  text-align: center;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.summary-header .wb { background: var(--wb); color: white; }
.summary-header .ozon { background: var(--ozon); color: white; }
.summary-header .ym { background: var(--ym); color: #000; }

.summary-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  align-items: center;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.2s ease;
}

.summary-row:hover {
  background: var(--bg-hover);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  font-weight: 500;
  color: var(--text);
}

.summary-value {
  text-align: center;
  font-weight: 600;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  min-width: 50px;
}

.summary-row.expense-item .summary-value {
  color: var(--danger);
  font-weight: 700;
}

.summary-row.tax-item .summary-value {
  color: var(--warning);
  font-weight: 700;
}

.summary-row.profit-item .summary-value {
  color: var(--success);
  font-weight: 700;
}

.summary-sale .wb { 
  background: var(--wb-light);
  color: var(--text); 
}

.summary-sale .ozon { 
  background: var(--ozon-light);
  color: var(--text); 
}

.summary-sale .ym { 
  background: var(--ym-light);
  color: var(--text); 
}

.parameters-summary {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  font-size: 0.7rem;
  line-height: 1.4;
}

.parameters-summary .formula-hint {
  font-size: 0.7rem;
  color: var(--text);
  margin: 0;
  font-style: italic;
  line-height: 1.4;
}

.parameters-summary .formula-hint strong {
  color: var(--text);
  font-weight: 600;
}

.param-value {
  font-weight: 600;
  color: var(--text);
  font-size: 0.65rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

.card-header h2 {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.copy-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.copy-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.copy-btn.copied {
  background: var(--success);
}

.copy-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
}

.copy-btn:active::after {
  width: 100px;
  height: 100px;
}

.hint-button {
  display: none;
  width: 16px;
  height: 16px;
  background: var(--text-lighter);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 0.5rem;
  font-weight: bold;
  cursor: help;
  margin-right: 6px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
}

.hint-button:hover {
  background: var(--primary);
  transform: scale(1.1);
}

.hint-tooltip {
  position: absolute;
  bottom: 100%;
  left: 0;
  transform: translateY(-8px);
  background: var(--text);
  color: white;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  line-height: 1.4;
  width: 200px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  text-align: left;
  box-shadow: var(--shadow-lg);
  max-width: min(200px, 90vw);
  word-wrap: break-word;
}

.hint-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 10px;
  border: 5px solid transparent;
  border-top-color: var(--text);
}

.hint-button:hover .hint-tooltip {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 8px);
}

.hint-button.right-aligned .hint-tooltip {
  left: auto;
  right: 0;
}

.hint-button.right-aligned .hint-tooltip::after {
  left: auto;
  right: 10px;
}

.form-group label {
  display: flex;
  align-items: center;
}

.form-group .label-text {
  flex: 1;
  white-space: nowrap;
}

.disclaimer-section {
  padding: 10px 0px 50px 0px;
}

.disclaimer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
}

.disclaimer-card h3 {
  color: var(--text);
  margin-bottom: var(--space-lg);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
}

.disclaimer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.disclaimer-item {
  padding: var(--space-lg);
  background: var(--bg);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  line-height: 1.5;
  border-left: 4px solid var(--border-dark);
}

.disclaimer-item.warning {
  background: var(--warning-light);
  border-left: 4px solid var(--warning);
  font-weight: 500;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: var(--space-lg);
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-container {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 95%;
  max-height: 95%;
  width: 900px;
  height: 700px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-2xl);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.modal-content {
  flex: 1;
  overflow: hidden;
}

.modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
}

@media (max-width: 768px) {
   
  body {
    min-width: unset;
    font-size: 14px;
    overflow-x: hidden;
  }
  
  .container {
    padding: var(--space-md);
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
  }

  .header {
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    width: 100%;
    box-sizing: border-box;
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-lg);
    width: 100%;
  }
  
  .header h1 {
    font-size: 1.5rem;
    color: var(--text);
  }
  
  .header p {
    font-size: 0.8rem;
  }
  
  .chart-container {
    display: none;
  }

  .tabs {

  }
  
  .tab {
    padding: 10px 8px;
    font-size: 0.8rem;
    min-height: 40px;
  }
  
  .tab.help {
    min-width: 40px;
    padding: 10px;
  }

  .tab.basic .tab-text,
  .tab.wb .tab-text,
  .tab.ozon .tab-text,
  .tab.ym .tab-text {
    display: none;
  }

  .tab.basic::after { content: "Общие"; }
  .tab.wb::after { content: "WB"; }
  .tab.ozon::after { content: "Ozon"; }
  .tab.ym::after { content: "Yandex"; }

  .main-layout {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg);
    width: 100%;
    box-sizing: border-box;
  }
  
  .left-sidebar.platform-mode {
    order: 1;
  }
  
  .main-content {
    order: 2;
  }
  
  .left-sidebar,
  .main-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  .card {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: var(--space-xl);
  }
  
  .card {
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
  }
  
  .card h2 {
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: 5px;
  }

  .form-row {
    gap: var(--space-md);
  }
  
  .form-group {
    margin-bottom: var(--space-lg);
  }
  
  .form-group input, 
  .form-group select {
    padding: 14px 16px !important;
    font-size: 16px !important;
    min-height: 48px;
    border-radius: var(--radius-lg);
  }
  
  .form-group select {
    background-position: right 16px center;
    padding-right: 50px;
  }

  .result-item {
    padding: 10px 0;
    font-size: 0.85rem;
    flex-wrap: wrap;
  }
  
  .result-label {
    flex: 1 1 60%;
    min-width: 60%;
  }
  
  .result-value {
    flex: 1 1 40%;
    min-width: 40%;
    text-align: right;
  }

  .summary-table {
     
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
  }
  
  .summary-header {
    font-size: 0.75rem;
    padding: var(--space-sm);
    min-width: 300px;
  }
  
  .summary-row {
    font-size: 0.75rem;
    padding: var(--space-sm);
    min-width: 300px;
  }

  .parameters-summary {
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    margin: var(--space-lg) 0;
    padding: var(--space-lg);
  }

  .modal-container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius-lg);
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
  
  .copy-btn {
    align-self: stretch;
    text-align: center;
    font-size: 0.85rem;
    padding: 10px 16px;
  }

.result-section h3 {
  font-size: 1.2rem;
}

.result-item {
  font-size: 0.9rem;
}

.result-label {
  font-size: 1.2rem;
}

.result-value {
  font-size: 1.2rem;
}

.result-hint {
  font-size: 0.8rem;
}

}

@media (hover: none) and (pointer: coarse) {
  .tab, .info-button, .modal-close {
    min-height: 44px;
    cursor: pointer;
  }

  .chart-container:hover .chart-bars,
  .chart-bar:hover,
  .chart-bar:hover .bar-fill,
  .chart-bar:hover .bar-price {
    transform: none !important;
    filter: none !important;
  }
}

@media (max-width: 1200px) {
  .hint-tooltip {
    left: 0;
    transform: none;
  }
  
  .hint-tooltip::after {
    left: 10px;
    transform: none;
  }
  
  .hint-button.right-aligned .hint-tooltip {
    left: auto;
    right: 0;
  }
  
  .hint-button.right-aligned .hint-tooltip::after {
    left: auto;
    right: 10px;
  }
}

@media (min-width: 768px) {
  .hint-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hint-button {
    display: none !important;
  }
  
  .form-group label {
    justify-content: flex-start;
  }
}

.action-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: var(--space-xs);
}

.action-buttons .info-button {
    flex: 1;
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
}

.tabs {
    top: 0 !important;
    position: -webkit-sticky !important;
    position: sticky !important;
}

@media (max-width: 768px) {
    .container {
        overflow-x: visible;
    }
    .tabs {
        z-index: 1000;
    }
}

@media (max-width: 768px) {
   
  .platform-params,
  .basic-params {
    display: none !important;
  }

  .platform-params.active,
  .basic-params.active {
    display: block !important;
  }

  .left-sidebar {
    width: 100%;
    order: 1;
  }
  
  .main-content {
    order: 2;
  }

  .left-sidebar.platform-mode {
    order: 1;
  }
}

.feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0088cc, #24a2e0);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95em;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 136, 204, 0.3);
    border: none;
    cursor: pointer;
    margin: 10px 0 5px 0;
    line-height: 1.4;
}

.feedback-btn:hover {
    background: linear-gradient(135deg, #0077b5, #1e90d1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
    color: white;
    text-decoration: none;
}

.feedback-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 136, 204, 0.3);
}

.btn-icon {
    font-size: 1.2em;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.feedback-btn strong {
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: var(--space-lg);
    backdrop-filter: blur(2px);
}

.confirm-modal.active {
    display: flex;
}

.confirm-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 320px;
    width: 90%;
    padding: var(--space-2xl);
    text-align: center;
    border: 1px solid var(--border-light);
    animation: fadeIn 0.2s ease;
}

.confirm-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
    display: block;
}

.confirm-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-md);
}

.confirm-message {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: var(--space-xl);
}

.confirm-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.confirm-btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.confirm-btn.cancel {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.confirm-btn.cancel:hover {
    background: var(--bg-hover);
    border-color: var(--border-dark);
}

.confirm-btn.reset {
    background: var(--reset);
    color: white;
}

.confirm-btn.reset:hover {
    background: var(--reset);
    filter: brightness(1.1);
}

.confirm-btn.ok {
    background: var(--basic);
    color: white;
}

.confirm-btn.ok:hover {
    background: var(--basic);
    filter: brightness(1.1);
}

.value-box {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 5px;
}

.hide-on-mobile {
  display: flex !important;
}

.show-on-mobile {
  display: none !important;
}

@media (max-width: 768px) {
   
  .hide-on-mobile {
    display: none !important;
  }

  .show-on-mobile {
    display: flex !important;
  }
}  

.input-slider {
    width: 100%;
}

.basic-params:not(.active) {
    display: none !important;
}

#platform-params-info:not(.active) {
    display: none !important;
}

.params-info-desktop.active {
    display: block !important;
}

.params-info-desktop {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.params-info-desktop:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.compact-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.compact-header h2 {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    font-size: 1.1rem !important;
    color: var(--text) !important;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.info-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.info-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
    font-size: 0.85rem;
    line-height: 1.3;
    border-bottom: 1px solid var(--border-light);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-light);
    font-weight: 500;
    flex-shrink: 0;
    margin-right: var(--space-sm);
}

.info-value {
    color: var(--text);
    font-weight: 600;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

.edit-params-btn {
    width: 100%;
    padding: 12px 16px;
    background: var(--basic);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    position: relative;
    overflow: hidden;
}

.edit-params-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.edit-params-btn:active {
    transform: translateY(0);
}

.edit-params-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.edit-params-btn:active::after {
    width: 100px;
    height: 100px;
}

.input-slider input[type="range"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f0f0f0;
}

.input-slider input[type="range"]:disabled::-webkit-slider-thumb {
    background: #ccc;
    cursor: not-allowed;
}

.input-slider input[type="range"]:disabled::-moz-range-thumb {
    background: #ccc;
    cursor: not-allowed;
}

input:disabled {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
    border-color: #ddd;
}

.price-warning {
    margin: 10px 0;
    padding: 12px;
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
    border: 1px solid #fc8181;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 4px rgba(252, 129, 129, 0.1);
    animation: slideDown 0.3s ease;
}

.warning-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.warning-icon {
    font-size: 1.2em;
    flex-shrink: 0;
    margin-top: 1px;
}

.warning-text {
    color: #c53030;
    font-size: 0.9em;
    line-height: 1.4;
    font-weight: 500;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .price-warning {
        margin: 8px 0;
        padding: 10px;
    }
    
    .warning-text {
        font-size: 0.85em;
    }
}

.result-item.price-row {
    border-left: 3px solid;
    padding-left: var(--space-md);
    margin: var(--space-sm) 0;
    border-radius: var(--radius-md);
}

.result-item.price-row .result-label {
    font-weight: 600;
    color: var(--text);
}

.result-item.price-row .result-value {
    font-weight: 700;
}

.result-item.price-row.wb-price {
    border-left-color: var(--wb);
    background: linear-gradient(90deg, var(--wb-light) 0%, white 100%);
}

.result-item.price-row.wb-price .result-value {
    color: var(--wb);
}

.result-item.price-row.ozon-price {
    border-left-color: var(--ozon);
    background: linear-gradient(90deg, var(--ozon-light) 0%, white 100%);
}

.result-item.price-row.ozon-price .result-value {
    color: var(--ozon);
}

.result-item.price-row.ym-price {
    border-left-color: var(--ym);
    background: linear-gradient(90deg, var(--ym-light) 0%, white 100%);
}

.result-item.price-row.ym-price .result-value {
    color: var(--text);
}

.header {
    background: var(--bg-card);
    margin-bottom: var(--space-xl);
    padding: var(--space-2xl) var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.bokeh-dot {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: bokehExpand linear forwards;
    border: 1px solid;
    transform-origin: center;
}

@keyframes bokehExpand {
    0% {
        transform: scale(0);
        opacity: 0.1;
    }
    15% {
        transform: scale(1);
        opacity: 0.2;
    }
    100% {
        transform: scale(var(--endScale));
        opacity: 0;
    }
}

.bokeh-dot {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: bokehExpand linear forwards;
    border: 1px solid;
    transform-origin: center;
}

input[type="number"]:disabled {
    background-color: #f8f9fa !important;
    color: #666 !important;
    cursor: not-allowed;
    border-color: #ddd !important;
    opacity: 0.8;
}

#ozonFbsCommissionFixed input[type="number"]:disabled,
#ozonFboCommissionFixed input[type="number"]:disabled {
    background: #f7fbff !important;
    border-color: #7eb6ff !important;
    color: #3b82f6 !important;
}

.input-slider input[type="range"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f0f0f0;
}

.input-slider input[type="range"]:disabled::-webkit-slider-thumb {
    background: #ccc;
    cursor: not-allowed;
}

.input-slider input[type="range"]:disabled::-moz-range-thumb {
    background: #ccc;
    cursor: not-allowed;
}

.resources-section {
     
}

.resources-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    max-width: 1200px;
    margin: 0 auto;
}

.resources-card h3 {
    margin-bottom: var(--space-xl);
    color: var(--text);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.resources-grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(3, 1fr);
}

.resource-card {
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    padding: 0;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-3px);
    text-decoration: none;
    color: var(--text);
}

.resource-image-container {
    width: 100%;
    aspect-ratio: 16/9;  
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-sm);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.resource-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.resource-card:hover .resource-image {
    transform: scale(1.05);
}

.resource-content {
    padding: 0 var(--space-xs);
}

.resource-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
    line-height: 1.2;
    color: var(--text);
    text-align: center;
}

.resource-description {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.3;
    text-align: center;
}

.resource-label {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 500;
    z-index: 2;
    line-height: 1.2;
    max-width: 80px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.resource-label[data-label="Бесплатно"] {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-medium) 100%);
}

.resource-label[data-label="Услуга"] {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.resource-label[data-label="Новинка"] {
    background: linear-gradient(135deg, var(--warning) 0%, #f97316 100%);
}

.resource-label[data-label="Рекомендуем"] {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
}

@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .resource-image-container {
        aspect-ratio: 3/4;  
    }
    
    .resource-title {
        font-size: 0.85rem;
    }
    
    .resource-description {
        font-size: 0.75rem;
    }
    
    .resource-label {
        font-size: 0.6rem;
        padding: 2px 6px;
        max-width: 70px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resource-card {
    animation: fadeInUp 0.4s ease forwards;
}

.resource-card:nth-child(1) { animation-delay: 0.1s; }
.resource-card:nth-child(2) { animation-delay: 0.15s; }
.resource-card:nth-child(3) { animation-delay: 0.2s; }
 
[hidden] { display: none !important; }
.main-layout { align-items: start; grid-template-columns: minmax(320px, 35%) minmax(0, 1fr); }
.left-sidebar, .main-content, .card { min-width: 0; }
.platform-params.active { display: block; }
.card h2 { line-height: 1.4; overflow-wrap: anywhere; }
.card-header { align-items: center; gap: 12px; }
.card-header h2 { min-width: 0; margin-bottom: 0; }
.card-header .copy-btn { flex-shrink: 0; }

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; align-items: start; }
.form-row .form-group { min-width: 0; margin: 0; }
.form-row .full { grid-column: 1 / -1; }
.form-group label { min-height: 38px; margin-bottom: 7px; line-height: 1.35; align-items: end; }
.form-group.full label { min-height: 0; }
.form-group .label-text { white-space: normal; min-width: 0; overflow-wrap: anywhere; line-height: 1.4; }
.form-group label { max-width: 100%; }
.input-section { margin: 0; padding: 22px 0; border-top: 1px solid var(--border-light); }
.input-section:first-of-type { border-top: 0; padding-top: 8px; }
.input-section:last-child { padding-bottom: 0; }
.form-row > .input-section { grid-column: 1 / -1; }
.commission-section { padding: 16px; margin-bottom: 4px; border: 1px solid var(--border-light); border-radius: 12px; background: #f8fafc; }
.product-brief { margin: 8px 0 20px; padding: 14px; border-radius: 10px; background: #f8fafc; color: var(--text-light); font-size: 13px; line-height: 1.7; }
.product-brief .edit-params-btn { margin-top: 10px; width: 100%; }
.text-button { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: #0070c0; cursor: pointer; }
.bokeh-dots { pointer-events: none; }
@media (min-width: 901px) { .main-layout.platform-mode { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .bokeh-dot { animation: none !important; display: none; } }
.card .input-section h3 { margin: 0 0 16px; font-size: 15px; line-height: 1.4; font-weight: 700; color: var(--text); }
.input-section.single-column > .form-row { grid-template-columns: minmax(0, 1fr); }
.input-section.single-column .form-group label { min-height: 0; }
.input-section .dimensions-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dimensions-row .form-group label { min-height: 0; }
.dimensions-section > .form-row > .form-group { grid-column: 1 / -1; }
.weight-section .form-group label { min-height: 0; }
.advanced > .input-section { padding-top: 18px; }
.form-group input:not([type="range"]), .form-group select { width: 100%; min-width: 0; height: 44px; padding: 10px 12px; }
.form-group select { padding-right: 36px; text-overflow: ellipsis; }
.form-group input[list] { text-align: left; }
.input-slider { margin-top: 10px; }
.form-group input.modern-slider { appearance: none; -webkit-appearance: none; padding: 0 !important; height: 5px; min-height: 0; border: 0; border-radius: 6px; background: #e6eaf0; box-shadow: none; }
.modern-slider::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--primary); cursor: pointer; border: 2px solid white; box-shadow: 0 1px 4px #0003; }
.modern-slider::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid white; }
.wb-slider::-webkit-slider-thumb { background: var(--wb); }
.ozon-slider::-webkit-slider-thumb { background: var(--ozon); }
.ym-slider::-webkit-slider-thumb { background: var(--ym); }
.basic-slider::-webkit-slider-thumb { background: var(--basic); }
.formula-hint { margin-top: 7px; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.advanced { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--border-light); }
.advanced summary { padding: 6px 0; font-size: 14px; font-weight: 600; line-height: 1.5; cursor: pointer; }
.advanced > .form-row { margin-top: 16px; grid-template-columns: 1fr; }
.advanced .form-group label { min-height: 0; }
.advanced .form-row .full { grid-column: auto; }

#basic-params input:not([type="range"]), #basic-params select { background: #f7fdf9; border-color: #8fd3a6; }
#basic-params input:is(#length, #width, #height, #weight), #basic-params select:is(#dimensionUnit, #weightUnit) { background: #fef7f7; border-color: #ff8a8a; }
#wb-params input:not([type="range"]), #wb-params select { background: #fbf8ff; border-color: #d8c5ee; }
#ozon-params input:not([type="range"]), #ozon-params select { background: #f5f9ff; border-color: #bdd4f3; }
#ym-params input:not([type="range"]), #ym-params select { background: #fffcf1; border-color: #e8d991; }
input[id$="_manualPrice"]:not(:placeholder-shown), input[id$="_manualMin"]:not(:placeholder-shown) { font-weight: 700; }

.utils-tabs { display: grid; grid-template-columns: auto auto minmax(130px, 1fr) auto minmax(220px, 1.4fr); gap: 8px; overflow: visible; align-items: center; }
.utils-tabs .tab.help-pc, .utils-tabs .tab.reset-pc, .utils-tabs .tab.save-template-btn { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 0; width: auto; height: 44px; padding: 10px 16px; white-space: nowrap; }
.utils-tabs .template-name-input { display: block; width: 100%; min-width: 0; height: 44px; }
.utils-tabs .template-dropdown-container { display: flex; align-items: center; min-width: 0; width: 100%; gap: 6px; }
.utils-tabs .template-dropdown { width: 100%; min-width: 0; height: 44px; text-overflow: ellipsis; }
.utils-tabs .delete-template-btn { flex: 0 0 40px; width: 40px; height: 44px; padding: 0; font-size: 18px; }

.summary-table { width: 100%; min-width: 0; }
.summary-header, .summary-row { display: grid; grid-template-columns: minmax(120px, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 10px; align-items: center; }
.summary-row { padding: 12px 10px; }
.summary-label, .summary-platform, .summary-value { min-width: 0; overflow-wrap: anywhere; }
.summary-value { font-variant-numeric: tabular-nums; text-align: center; white-space: normal; }
.summary-label { line-height: 1.4; }
.summary-sale .summary-value { font-weight: 700; }
#input-summary { margin: 16px 0 20px; font-size: 13px; line-height: 1.7; color: var(--text-light); }
.result-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, 40%); gap: 18px; align-items: start; padding: 10px 8px; }
.result-label { min-width: 0; line-height: 1.5; overflow-wrap: anywhere; }
.result-value { min-width: 0; max-width: none; text-align: right; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.result-item.price-item .result-value { font-size: 22px; font-weight: 700; }
.break-even-item { background: #fff4eb; }
.negative .result-value, .summary-value.negative { color: var(--danger); }
.results > .result-section { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border-light); }
.results .result-section h3 { display: block; margin: 0 0 14px; font-size: 16px; line-height: 1.5; }
.tax-breakdown { margin: 12px 0; padding: 10px 12px; border: 1px solid #f0dfbd; border-radius: 10px; background: #fffbf3; }
.final-profit { margin-top: 12px; padding: 14px 10px; background: #edf9f0; font-weight: 700; }
.payout-item { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border-light); font-weight: 700; }
.calculation-error, 
.calculation-notes { margin-top: 20px; padding-left: 20px; color: #64748b; font-size: 13px; line-height: 1.6; }
.calculation-notes li + li { margin-top: 8px; }
.modern-footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 25px 0; font-size: 13px; color: #64748b; }
.modern-footer a { color: #0070c0; font-weight: 700; text-decoration: none; }
#notification { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); padding: 14px 22px; border-radius: 10px; background: #263445; color: white; z-index: 10000; width: max-content; max-width: 90vw; box-shadow: 0 5px 20px #0003; }
dialog { position: fixed; inset: 0; margin: auto; width: min(640px, 92vw); max-height: calc(100vh - 32px); border: 0; border-radius: 14px; padding: 24px; }
dialog::backdrop { background: #0007; }
dialog textarea { width: 100%; height: 45vh; margin: 20px 0; }
#help-dialog { width: min(900px, 96vw); max-width: none; height: 90vh; padding: 16px; }
#help-frame { width: 100%; height: calc(100% - 60px); border: 0; margin-top: 12px; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #0070c0; outline-offset: 3px; }
.chart-container .bar-fill { transition: height .2s; }

@media (min-width: 769px) and (max-width: 900px) {
 .main-layout { grid-template-columns: minmax(300px, 40%) minmax(0, 1fr); gap: 18px; }
 .summary-header, .summary-row { grid-template-columns: minmax(100px, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 6px; padding-left: 6px; padding-right: 6px; }
 .summary-label, .summary-value { font-size: 12px; }
 .utils-tabs { grid-template-columns: auto auto minmax(100px, 1fr) auto; }
 .utils-tabs .template-dropdown-container { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
 .main-layout { grid-template-columns: minmax(0, 1fr) !important; }
 .utils-tabs { grid-template-columns: 1fr 1fr; }
 .utils-tabs .tab.help-pc, .utils-tabs .tab.reset-pc, .utils-tabs .tab.save-template-btn { display: inline-flex !important; height: 42px; font-size: 12px; padding: 8px; }
 .utils-tabs .template-name-input { grid-column: 1; grid-row: 2; height: 44px; }
 .utils-tabs .save-template-btn { grid-column: 2; grid-row: 2; }
 .utils-tabs .help-pc { grid-column: 1; grid-row: 1; }
 .utils-tabs .reset-pc { grid-column: 2; grid-row: 1; }
 .utils-tabs .template-dropdown-container { grid-column: 1 / -1; grid-row: 3; }
 .tabs { display: flex; flex-wrap: nowrap; overflow: visible; }
 .tabs .tab { flex: 1 1 0; min-width: 0; padding-left: 6px; padding-right: 6px; }
 .card-header { flex-wrap: wrap; }
 .form-row { gap: 14px 12px; }
 .form-group input:not([type="range"]), .form-group select { min-height: 46px; height: 46px; padding: 10px 12px !important; font-size: 16px; }
 .form-group select { padding-right: 34px !important; }
 .form-group input.modern-slider { min-height: 0 !important; height: 5px !important; padding: 0 !important; }
 .result-label { font-size: 13px; }
 .result-value { font-size: 14px; }
 .summary-header, .summary-row { grid-template-columns: minmax(86px, 1.25fr) repeat(3, minmax(0, 1fr)); gap: 4px; padding: 10px 4px; }
 .summary-label { font-size: 11px; }
 .summary-value { font-size: 12px; }
 .summary-platform { font-size: 12px; padding: 6px 2px; }
 .summary-header .summary-platform { padding: 6px 2px; }
 .summary-row .summary-value { padding: 4px 2px; }
 .modern-footer { padding: 0 8px; }
}
@media (max-width: 340px) {
 .result-item { grid-template-columns: minmax(0, 1fr); gap: 3px; }
 .result-label { width: 100%; }
 .result-value { justify-self: end; width: 100%; }
 .form-row { grid-template-columns: minmax(0, 1fr); }
 .form-row .full { grid-column: auto; }
 .form-group label { min-height: 0; }
 .summary-header, .summary-row { min-width: 0; }
 .summary-table { overflow-x: auto; }
}
@media (max-width: 360px) {
 .form-row { grid-template-columns: minmax(0, 1fr); }
 .form-row .full { grid-column: auto; }
 .form-group label { min-height: 0; }
 .summary-header, .summary-row { grid-template-columns: minmax(72px, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 3px; }
 .summary-value { font-size: 11px; }
}

.card { padding: 22px; }
.card h2 { margin-bottom: 16px; }
.form-row { gap: 10px 14px; }
.form-group label { min-height: 28px; margin-bottom: 5px; font-size: 13px; }
.form-group input:not([type="range"]), .form-group select { height: 34px; min-height: 34px; padding: 6px 10px; }
.form-group select { padding-right: 30px; }
.input-slider { margin-top: 7px; }
.input-section { padding: 15px 0; }
.card .input-section h3 { margin-bottom: 10px; font-size: 14px; }
.commission-section { padding: 12px; }
.formula-hint { margin-top: 5px; font-size: 11px; }
.advanced { margin-top: 16px; padding-top: 10px; }
.advanced summary { padding: 4px 0; }
.advanced > .form-row { margin-top: 11px; }
.advanced > .input-section { padding-top: 13px; }
.product-brief { padding: 10px 12px; margin-bottom: 14px; }
.result-item { padding-top: 7px; padding-bottom: 7px; }
.results > .result-section { margin-top: 17px; padding-top: 13px; }
.results .result-section h3 { margin-bottom: 10px; }
.tax-breakdown { padding: 7px 9px; margin: 9px 0; }
.summary-row { padding-top: 8px; padding-bottom: 8px; }
.tax-section > .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tax-section > .form-row > .form-group:nth-child(3) { grid-column: 1 / -1; width: calc(50% - 7px); }
.tax-section > .form-row > .form-group:last-child { grid-column: 1 / -1; }

#help-dialog { padding: 0; width: 900px; max-width: calc(100vw - 32px); height: 700px; max-height: calc(100dvh - 32px); border: 1px solid var(--border-light); border-radius: var(--radius-xl); overflow: hidden; background: white; box-shadow: var(--shadow-xl); }
#help-dialog::backdrop { background: rgba(0,0,0,.5); backdrop-filter: blur(4px); }
#help-dialog .modal-container { width: 100%; height: 100%; max-width: none; max-height: none; border: 0; border-radius: inherit; box-shadow: none; }
#help-dialog .modal-header { padding: 10px 22px; flex: 0 0 auto; gap: 12px; }
#help-dialog .modal-title { font-size: 18px; line-height: 1.4; min-width: 0; }
#help-dialog .modal-close { flex: 0 0 32px; }
#help-dialog .modal-content { min-height: 0; }
#help-frame { display: block; width: 100%; height: 100%; margin: 0; border: 0; }
@media (max-width: 768px) {
 .card { padding: 18px; }
 .form-group input:not([type="range"]), .form-group select { height: 36px; min-height: 36px; padding: 6px 10px !important; font-size: 16px !important; }
 .form-group select { padding-right: 30px !important; }
 .form-row { gap: 10px 12px; }
 #help-dialog { max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
 #help-dialog .modal-header { padding: 8px 14px; }
}

* { -webkit-tap-highlight-color: transparent; }
body { -webkit-touch-callout: none; }
input, textarea, [contenteditable="true"] { user-select: text; -webkit-user-select: text; -webkit-touch-callout: default; }

.disclaimer-section { margin-top: 28px; padding-bottom: 10px; }
.disclaimer-card .disclaimer-item p { margin: 0 0 6px; }
.disclaimer-card .disclaimer-item p:last-child { margin-bottom: 0; }
.disclaimer-card a, .disclaimer-card a:visited, .disclaimer-card a:hover { color: #0070c0; font-weight: 700; text-decoration: none; }
.community-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.disclaimer-card .feedback-btn, .disclaimer-card .feedback-btn:visited, .disclaimer-card .feedback-btn:hover { color: white; margin: 0; padding: 11px 16px; min-width: 0; max-width: 100%; font-weight: 700; }
.disclaimer-card .vk-btn { background: linear-gradient(135deg, #0077ff, #268dff); box-shadow: 0 3px 8px #0077ff33; }
.disclaimer-card .vk-btn:hover { background: linear-gradient(135deg, #0066dd, #087cff); }
.vk-symbol { font-size: 14px; letter-spacing: -.06em; }
.seller-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.seller-tools a { display: flex; flex-direction: column; gap: 5px; padding: 14px; border-radius: 10px; border: 1px solid var(--border); background: white; min-width: 0; }
.seller-tools a:hover { border-color: #a8cdee; background: #f6faff; }
.seller-tools span { color: var(--text-light); font-size: 13px; font-weight: 400; line-height: 1.5; }
.home-link { padding-top: 4px; }
.result-label .result-hint { display: block; margin-top: 3px; font-size: 11px; font-weight: 400; font-style: normal; color: var(--text-light); opacity: 1; line-height: 1.45; }
.ozon-range { padding: 11px 13px; border-radius: 10px; background: #edf5ff; border: 1px solid #d7e6fa; font-size: 12px; line-height: 1.55; }
.ozon-range > strong { display: block; margin-bottom: 7px; font-size: 13px; }
.ozon-range > div { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; }
.ozon-range > div strong { font-weight: 500; }
.ozon-range small { display: block; margin-top: 8px; font-size: 11px; color: var(--text-light); }
@media (max-width: 600px) {
 .disclaimer-card { padding: 18px; }
 .disclaimer-item { padding: 12px; }
 .seller-tools { grid-template-columns: minmax(0, 1fr); }
 .community-links { flex-direction: column; align-items: stretch; }
 .community-links .feedback-btn { justify-content: center; }
}

.input-section.compact-pair > .form-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
.input-section.compact-pair > .form-row > .form-group { grid-column:auto; }
.tax-section > .form-row > .form-group:nth-child(3), .tax-section > .form-row > .form-group:last-child { grid-column:auto; width:auto; }
.input-section.compact-pair label { min-height:0; }
.platform-params .input-section { margin-top:16px; }
@media(max-width:360px){ .input-section.compact-pair > .form-row, .tax-section > .form-row {grid-template-columns:1fr;} }

.form-row { align-items:stretch; }
.form-row > .form-group:not(.full) label { display:flex; align-items:flex-end; min-height:2.8em; line-height:1.35; }
.form-row > .form-group:not(.full) .label-text { line-height:1.35; overflow-wrap:normal; }
.tax-section > .form-row > .form-group:last-child {grid-column:1 / -1;width:auto;}
.ozon-range .ozon-actual {color:#155b91;}
.ozon-range .ozon-actual span {font-weight:700;}
@media(max-width:360px){.form-row > .form-group:not(.full) label{min-height:0;}}

.input-notices { margin-top:16px; padding:12px 14px; border:1px solid #f5dda4; border-left:4px solid #e8ad35; border-radius:10px; background:#fff9eb; color:#795421; font-size:13px; line-height:1.5; }
.input-notices ul { margin:8px 0; padding-left:20px; }
.input-notices li + li { margin-top:6px; }
.input-notices p { margin:8px 0 0; }
.app-review { margin:16px 0 24px; padding:20px; border:1px solid var(--border); border-radius:16px; background:var(--bg-card); text-align:center; box-shadow:0 2px 5px #00000008; }
.app-review-stars { color:#e5a015; font-size:26px; letter-spacing:5px; line-height:1.2; margin-bottom:8px; }
.app-review h3 { margin:0 0 8px; color:var(--text); font-size:18px; }
.app-review p { margin:0 auto 14px; max-width:520px; color:var(--text-light); font-size:14px; line-height:1.5; }
.app-review .app-review-button, .app-review .app-review-button:visited { display:inline-flex; justify-content:center; align-items:center; max-width:100%; padding:11px 20px; border-radius:10px; background:var(--primary); color:white; font-weight:700; text-decoration:none; }
.app-review .app-review-button:hover { background:var(--primary-dark); }
.app-review .app-review-button:focus-visible { outline:3px solid #b8baff; outline-offset:3px; }
@media(max-width:480px){ .app-review {padding:18px 14px;} .app-review .app-review-button {width:100%;} }

.input-notices.notice-note {background:#FFF2CC;border-color:#ead79b;border-left-color:#c9a654;color:#665221;}
.input-notices.notice-warning {background:#FCE4D6;border-color:#edc5b0;border-left-color:#c88b70;color:#754535;}
.input-notices {margin:0 0 14px;font-size:13px;line-height:1.5;}
.input-notices ul {margin:7px 0 0;}
.product-brief-line + .product-brief-line {margin-top:4px;}
.product-brief-line {line-height:1.45;overflow-wrap:anywhere;}
.tax-section > .form-row > .form-group:nth-child(3) {grid-column:1 / -1;}

#input-summary {margin:22px 0 0;padding:16px 0 0;border-top:1px solid var(--border-color,#e5e7eb);}
#input-summary h3 {font-size:15px;margin:0 0 10px;}
.summary-volumes {margin-top:12px;}
.summary-volumes > strong {display:block;margin-bottom:5px;}

.product-brief {background:linear-gradient(135deg,#f8fafc,#f0f7f4);border:1px solid #e0e9e4;border-radius:12px;padding:12px 14px;}
.product-brief .brief-heading {font-size:13px;font-weight:700;color:var(--text);margin-bottom:6px;}
.product-brief .brief-detail {display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #e3eae6;line-height:1.45;margin-top:0;}
.product-brief .brief-detail:last-child {border-bottom:0;}
.product-brief .brief-label {color:var(--text-light);flex:0 1 auto;min-width:0;}
.product-brief .brief-value {color:var(--text);font-weight:600;text-align:right;flex:0 1 auto;min-width:0;overflow-wrap:anywhere;}
.product-brief .brief-tax {color:var(--text);font-weight:500;}
.product-brief .brief-volume {color:#366550;background:#e7f2eb;border-radius:6px;padding:7px 8px;}
.product-brief .edit-params-btn {border-radius:8px;padding:9px 12px;font-size:13px;min-height:36px;}
 
@keyframes sellerTabWelcome {
 0%,100% {transform:scale(1);box-shadow:0 0 0 0 transparent;}
 50% {transform:scale(1.04);box-shadow:0 0 0 3px var(--welcome-ring);}
}
.tabs > .tab[data-tab] {position:relative;animation:sellerTabWelcome .7s ease-in-out .45s 1;}
.tabs > .tab.basic {--welcome-ring:rgba(5,150,105,.2);}
.tabs > .tab.wb {--welcome-ring:rgba(139,92,246,.2);animation-delay:1.15s;}
.tabs > .tab.ozon {--welcome-ring:rgba(59,130,246,.2);animation-delay:1.85s;}
.tabs > .tab.ym {--welcome-ring:rgba(234,179,8,.25);animation-delay:2.55s;}
.tabs > .tab[data-tab]:hover,.tabs > .tab[data-tab]:focus-visible {animation:none;}
@media(prefers-reduced-motion:reduce){.tabs > .tab[data-tab]{animation:none;}}

.utils-tabs .transfer-products-btn {flex:0 0 36px;width:36px;height:44px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:22px;line-height:1;border:1px solid #dbe4f1;background:#eef4fc;color:#41658e;border-radius:8px;}
.utils-tabs .transfer-products-btn:hover {background:#e1ebf8;color:#255a94;}
@media(min-width:901px){.utils-tabs{grid-template-columns:auto auto minmax(130px,1fr) auto minmax(290px,1.4fr);}}

.save-controls{display:flex;align-items:center;gap:9px;min-width:0;}
.auto-save-control{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:#64748b;cursor:pointer;white-space:nowrap;}
.auto-save-control{min-height:40px;}
.auto-save-control input{position:absolute;opacity:0;width:1px;height:1px;}
.auto-save-track{width:30px;height:18px;border-radius:12px;background:#c5ceda;padding:3px;transition:background .18s;}
.auto-save-track::after{content:'';display:block;width:12px;height:12px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #0002;transition:transform .18s;}
.auto-save-control input:checked+.auto-save-track{background:#059669;}
.auto-save-control input:checked+.auto-save-track::after{transform:translateX(12px);}
.auto-save-control input:focus-visible+.auto-save-track{outline:3px solid #88b7f3;outline-offset:3px;}
.utils-tabs .manage-products-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:44px;padding:0;border:1px solid #d5e1f0;border-radius:8px;background:#edf3fc;color:#476b99;font-size:25px;line-height:1;}
.utils-tabs .manage-products-btn:hover{background:#e0eafb;}
@media(min-width:901px){.utils-tabs{grid-template-columns:auto auto minmax(120px,1fr) auto minmax(250px,1.25fr);}}
@media(max-width:768px){.utils-tabs .save-controls{grid-column:2;grid-row:2;justify-content:flex-end;gap:7px;}.utils-tabs .save-controls .save-template-btn{font-size:12px;padding:8px 10px;height:44px;}.auto-save-control{font-size:11px;gap:4px;}.auto-save-track{flex:0 0 30px;}.utils-tabs .template-name-input{min-width:0;}}
#products-dialog{width:min(900px,calc(100vw - 24px));max-width:none;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:0;border:1px solid #dfe6ef;border-radius:16px;background:#fff;color:#334155;box-shadow:0 20px 70px #1d2b4240;}
#products-dialog[open]{display:flex;flex-direction:column;}
#products-dialog::backdrop{background:#1e2d4280;backdrop-filter:blur(3px);}
.pm-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 20px;border-bottom:1px solid #e7edf4;background:#f8fafc;flex:0 0 auto;}
.pm-header h2{margin:0;font-size:20px;line-height:1.35;color:#334155;}
.pm-header p{margin:4px 0 0;font-size:12px;color:#7b8797;}
.pm-body{padding:17px 20px;overflow:auto;overscroll-behavior:contain;min-height:0;}
.pm-storage{padding:12px 14px;border:1px solid #dde7f2;border-radius:10px;background:#f1f6fc;font-size:12px;line-height:1.6;color:#687c96;}
.pm-storage>strong:first-child{display:block;margin-bottom:3px;color:#3e587a;}
.pm-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0;}
.pm-button,.pm-text-button,.pm-icon{font-family:inherit;cursor:pointer;}
.pm-button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:9px 12px;font-size:12px;font-weight:650;border-radius:8px;border:1px solid #dce5f0;background:#f6f9fd;color:#38628d;line-height:1.4;}
.pm-button:hover:not(:disabled){background:#eaf1fa;}
.pm-button:disabled,.pm-text-button:disabled{opacity:.45;cursor:default;}
.pm-search-label{display:block;font-size:12px;font-weight:650;margin:0 0 6px;color:#52657e;}
.pm-search{width:100%;min-height:42px;padding:10px 12px;border:1px solid #d9e2ed;border-radius:9px;background:#fff;color:#334155;font-size:16px;}
.pm-filters,.pm-selection{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:10px 18px;margin:12px 0;font-size:12px;}
.pm-filters label,.pm-selection label{display:inline-flex;align-items:center;gap:7px;cursor:pointer;color:#64748b;}
.pm-filters input,.pm-selection input,.pm-check{accent-color:#059669;width:17px;height:17px;flex:0 0 17px;margin:0;}
.pm-selection{justify-content:space-between;padding-top:12px;border-top:1px solid #e7edf4;}
.pm-text-button{border:0;background:none;color:#1678c5;font-size:12px;font-weight:650;padding:6px 0;}
.pm-help{margin:10px 0;font-size:11px;color:#8995a6;line-height:1.5;}
.pm-row{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #edf1f6;}
.pm-item{flex:1;min-width:0;}
.pm-name{width:100%;min-width:0;border:1px solid transparent;border-radius:6px;color:#334155;background:transparent;padding:5px 6px;font-family:inherit;font-size:14px;line-height:1.4;}
.pm-name:hover{border-color:#e1e7ef;}.pm-name:focus{border-color:#78a4d8;outline:0;background:#f9fbff;}
.pm-meta{font-size:10px;line-height:1.4;color:#93a0b0;padding-left:7px;}
.pm-row-actions{display:flex;gap:5px;}
.pm-icon{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:36px;border:1px solid #e1e8f0;background:#f7f9fc;color:#6581a5;border-radius:7px;font-size:17px;}
.pm-icon:hover{background:#eaf0f8;}.pm-close{font-size:24px;border:0;background:transparent;}
.pm-empty{padding:20px 10px;font-size:13px;text-align:center;color:#8a96a7;line-height:1.6;}
.pm-more{width:100%;margin-top:12px;}
.pm-delete-confirm{background:#fce4d6;border:1px solid #efcbb8;border-radius:10px;padding:12px;margin-top:14px;}
.pm-delete-confirm p{margin:0 0 10px;font-size:12px;color:#86523e;line-height:1.5;}.pm-delete-confirm>div{display:flex;gap:8px;}
.pm-danger{background:#fff0ed;border-color:#f0c9bf;color:#ad5440;}.pm-danger:hover:not(:disabled){background:#fbe1da;}
.pm-status{font-size:12px;line-height:1.5;color:#57718f;margin:12px 0 0;}.pm-status:empty{display:none;}
.pm-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:13px 20px;border-top:1px solid #e7edf4;background:#fafbfd;flex:0 0 auto;}
#products-dialog [hidden]{display:none!important;}
@media(max-width:480px){#products-dialog{width:calc(100vw - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);border-radius:12px;}.pm-header{padding:13px 14px;}.pm-header h2{font-size:18px;}.pm-body{padding:13px 14px;}.pm-toolbar{display:grid;grid-template-columns:1fr 1fr;}.pm-toolbar>:first-child{grid-column:1 / -1;}.pm-storage{font-size:11px;padding:10px 11px;}.pm-name{font-size:16px;}.pm-row{gap:7px;}.pm-row-actions{gap:4px;}.pm-icon{min-width:30px;width:30px;}.pm-filters{font-size:11px;gap:10px;}.pm-footer{padding:12px 14px;}.pm-selection{gap:5px;}}
@media(prefers-reduced-motion:reduce){.auto-save-track,.auto-save-track::after{transition:none;}}
@media(max-width:400px){.utils-tabs .save-controls{gap:4px;}.utils-tabs .save-controls .save-template-btn{padding:8px;}.auto-save-control{font-size:10px;gap:3px;}.auto-save-track{width:26px;flex-basis:26px;}.auto-save-control input:checked+.auto-save-track::after{transform:translateX(8px);}}

.auto-save-control{position:relative;flex:0 0 44px;width:44px;min-height:44px;justify-content:center;}
.auto-save-track{box-sizing:border-box;width:40px;height:24px;flex:0 0 40px;padding:3px;border-radius:20px;}
.auto-save-track::after{width:18px;height:18px;}
.auto-save-control input:checked+.auto-save-track::after{transform:translateX(16px);}
.auto-save-hint{position:absolute;z-index:100;top:calc(100% + 10px);right:0;width:260px;max-width:calc(100vw - 40px);padding:12px 14px;border:1px solid #dce7e3;border-radius:12px;background:#fff;color:#40534c;font-size:12px;font-weight:400;line-height:1.5;white-space:normal;box-shadow:0 8px 28px #183c2926;opacity:0;visibility:hidden;transform:translateY(-3px);transition:opacity .15s,transform .15s,visibility .15s;pointer-events:none;}
.auto-save-control:hover .auto-save-hint,.auto-save-control input:focus-visible~.auto-save-hint{opacity:1;visibility:visible;transform:translateY(0);}
@media(max-width:768px){.utils-tabs .save-controls{width:100%;gap:6px;justify-content:stretch;}.utils-tabs .save-controls .save-template-btn{flex:1 1 0;width:0;min-width:0;height:44px;padding:8px 4px;font-size:12px;}.auto-save-control{flex:0 0 44px;}.auto-save-track{width:40px;flex-basis:40px;}}
@media(prefers-reduced-motion:reduce){.auto-save-hint{transition:none;}}

.utils-tabs{position:relative;z-index:900;overflow:visible;}

.utils-tabs #templates{display:none!important;}
.product-picker-button{display:flex;align-items:center;gap:10px;min-width:0;flex:1;width:0;height:44px;padding:0 12px;border:1px solid #83d6a1;border-radius:8px;background:#f7fcf9;color:#374151;font:inherit;text-align:left;cursor:pointer;}
.product-picker-button span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.product-picker-button::after{content:'⌄';flex:none;color:#618475;font-size:19px;}
.product-picker-button:hover,.product-picker-button[aria-expanded="true"]{border-color:#059669;box-shadow:0 0 0 3px #05966912;}
.product-picker-popup{position:fixed;z-index:3000;box-sizing:border-box;padding:8px;border:1px solid #d7e7df;border-radius:13px;background:#fff;box-shadow:0 12px 36px #163a2929;display:flex;flex-direction:column;gap:7px;overflow:hidden;}
.product-picker-popup[hidden]{display:none!important;}
.product-picker-popup input{box-sizing:border-box;width:100%;min-width:0;height:38px;flex-shrink:0;padding:8px 10px;border:1px solid #dae5df;border-radius:8px;background:#f7faf8;font:inherit;font-size:13px;outline:none;}
.product-picker-popup input:focus{border-color:#059669;}
.product-picker-list{overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin;}
.product-picker-item{display:block;width:100%;box-sizing:border-box;padding:10px 11px;border:0;border-radius:7px;background:transparent;color:#374151;text-align:left;font:inherit;font-size:13px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;}
.product-picker-item:hover,.product-picker-item:focus-visible{background:#eff7f2;outline:none;}
.product-picker-item[aria-pressed="true"]{background:#e2f3e9;color:#087c5a;font-weight:600;}
.product-picker-empty{padding:12px;color:#738077;font-size:13px;}
.product-picker-more{color:#087c5a;font-weight:600;}

.utils-tabs .manage-products-btn{box-sizing:border-box;flex:0 0 44px;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;padding:0;aspect-ratio:1;border:1px solid #059669;background:#059669;color:#fff;font-size:25px;line-height:1;}
.utils-tabs .manage-products-btn:hover{background:#047857;border-color:#047857;color:#fff;}
.utils-tabs .manage-products-btn:focus-visible{outline:3px solid #86d9b8;outline-offset:2px;}

.input-notices{position:relative;padding-right:45px;}
.input-notices[hidden],.warning-toast[hidden]{display:none!important;}
.notice-dismiss{position:absolute;top:7px;right:7px;display:flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:0;border-radius:7px;background:transparent;color:inherit;opacity:.7;font:inherit;font-size:23px;cursor:pointer;}
.notice-dismiss:hover,.notice-dismiss:focus-visible{opacity:1;background:#ffffff80;}
.warnings-paused{display:block;margin:0 0 14px;padding:7px 0;border:0;background:transparent;color:#718078;font:inherit;font-size:12px;text-align:left;cursor:pointer;}
.warnings-paused:hover{text-decoration:underline;}
.warning-toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:10001;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:max-content;max-width:calc(100vw - 24px);padding:12px 15px;background:#263445;color:#fff;border-radius:12px;box-shadow:0 5px 20px #0003;font-size:13px;line-height:1.4;}
.warning-toast button{border:0;background:transparent;color:#b6ead9;font:inherit;font-weight:600;cursor:pointer;padding:5px;}
#warning-settings{box-sizing:border-box;width:420px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid #dbe7e0;border-radius:16px;background:#fff;color:#374151;box-shadow:0 20px 70px #0003;overflow:auto;}
#warning-settings::backdrop{background:#172b2566;}
.warning-settings-body{padding:22px;}
.warning-settings-body h2{margin:0 0 12px;font-size:21px;}
.warning-settings-body p{font-size:13px;line-height:1.55;margin:10px 0;}
.warning-settings-actions{display:grid;gap:8px;margin:18px 0;}
.warning-settings-actions button,.warning-settings-close{min-height:42px;padding:9px 12px;border:1px solid #cfe1d7;border-radius:9px;background:#f0f8f4;color:#087c5a;font:inherit;font-size:13px;font-weight:600;cursor:pointer;}
.warning-settings-actions button:hover{background:#e2f2e9;}
.warning-settings-note{color:#7b8580;}
.warning-settings-close{width:100%;background:#059669;color:white;border-color:#059669;}
@media(max-width:480px){.warning-toast{gap:6px;font-size:12px;padding:10px;}.warning-settings-body{padding:18px;}}

/* Temporary warning notification */
.warning-toast button[data-action="warning-settings"]{flex-shrink:0;padding:7px 12px;border:1px solid #a9e2d0;border-radius:7px;background:#dff5ec;color:#075c43;font-weight:700;white-space:nowrap;}
.warning-toast button[data-action="warning-settings"]:hover{background:#c7ecdD;}
.warning-toast button[data-action="warning-settings"]:focus-visible{outline:2px solid white;outline-offset:3px;}

/* Product library: order, identical calculations and import preview. */
.product-tool-dialog{width:min(760px,calc(100vw - 24px));max-width:none;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:0;border:1px solid #dfe6ef;border-radius:16px;background:#fff;color:#334155;box-shadow:0 20px 70px #1d2b4240;}
.product-tool-dialog[open]{display:flex;flex-direction:column;}
.product-tool-dialog::backdrop{background:#1e2d4280;backdrop-filter:blur(3px);}
.product-tool-dialog .pm-header,.product-tool-dialog .pm-footer{flex-shrink:0;}
.product-tool-dialog .pm-body{font-size:14px;line-height:1.5;}
.product-tool-dialog [hidden]{display:none!important;}
.pm-button.pm-primary{background:#059669;border-color:#059669;color:#fff;}.pm-button.pm-primary:hover:not(:disabled){background:#047857;}
.pm-sort-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0;}
.pm-sort-tools>label{display:inline-flex;align-items:center;gap:7px;font-size:12px;}.pm-sort-tools input{accent-color:#059669;}
.pm-button[aria-pressed="true"]{background:#e5f6ee;border-color:#059669;color:#047857;}
.pm-order{display:flex;flex-direction:column;gap:3px;}.pm-order .pm-icon{height:30px;min-height:30px;}.pm-icon:disabled{opacity:.35;cursor:default;}
.pm-row-identical{border-left:3px solid #b5ddcd;padding-left:7px;}
.ps-names{margin:18px 0;padding:12px 14px;border:1px solid #dbe8e2;border-radius:10px;background:#f4faf7;}.ps-names dt{font-size:12px;color:#64748b;}.ps-names dd{margin:3px 0 12px;overflow-wrap:anywhere;font-weight:650;}.ps-names dd:last-child{margin-bottom:0;}
.ps-actions{justify-content:flex-start;}.pi-options{min-width:0;margin:0 0 16px;padding:10px 14px;border:1px solid #dbe8e2;border-radius:10px;}.pi-options legend{font-weight:650;padding:0 5px;}.pi-count{font-size:13px;font-weight:650;color:#047857;line-height:1.6;}
.pi-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 0;border-bottom:1px solid #e7edf4;}.pi-product{display:flex;align-items:flex-start;gap:10px;flex:1;min-width:0;cursor:pointer;}.pi-product input{margin-top:3px;}.pi-product>span{min-width:0;}.pi-product strong{display:block;font-size:14px;font-weight:650;overflow-wrap:anywhere;}.pi-product small{display:block;font-size:11px;line-height:1.5;color:#64748b;overflow-wrap:anywhere;}
.pi-choice select,.pi-target select{max-width:100%;min-height:40px;padding:7px 10px;border:1px solid #d9e2ed;border-radius:8px;background:#fff;color:#334155;font:inherit;font-size:13px;}.pi-target{width:100%;font-size:12px;}.pi-target select{display:block;width:100%;margin-top:5px;}.pi-error{color:#b45337;font-size:13px;overflow-wrap:anywhere;}.pi-error:empty{display:none;}
.product-tool-dialog button:focus-visible,#products-dialog button:focus-visible{outline:3px solid #75bba3;outline-offset:2px;}
.pm-details summary{cursor:pointer;line-height:1.6;}.pm-details p{margin:8px 0 0;}.pm-details summary strong{display:inline;}.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;}
@media(max-width:480px){.product-tool-dialog{width:calc(100vw - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);border-radius:12px;}.product-tool-dialog .pm-header{padding:13px 14px;}.product-tool-dialog .pm-body{padding:13px 14px;}.product-tool-dialog .pm-footer{padding:12px 14px;}.product-tool-dialog .pm-header h2{font-size:18px;}.ps-actions{display:grid;grid-template-columns:1fr 1fr;}.ps-actions>:last-child{grid-column:1 / -1;}.pi-row{gap:8px;}.pi-choice{margin-left:27px;flex:1 1 calc(100% - 27px);}.pi-choice select{width:100%;font-size:16px;}.pi-options{padding:8px 10px;}.pm-sort-tools .pm-button{flex:1 1 auto;}.pm-order .pm-icon{width:28px;min-width:28px;}#import-confirm{flex:1;}.product-tool-dialog .pm-footer .pm-button{min-height:42px;}}

/* Parsed identity and merge membership. Names remain one editable field. */
.pm-identity{color:#64748b;margin-top:3px;overflow-wrap:anywhere;}.pm-members{font-size:11px;color:#64748b;padding:4px 7px;}.pm-members summary{cursor:pointer;}.pm-members p{margin:6px 0;line-height:1.6;overflow-wrap:anywhere;max-height:160px;overflow:auto;}
.pm-merge-group{padding:14px 0;border-bottom:1px solid #e7edf4;}.pm-merge-select{display:flex;align-items:center;gap:8px;margin-bottom:14px;font-weight:650;font-size:13px;}.pm-merge-members{padding:10px 12px;border:1px solid #dfeae4;border-radius:9px;background:#f6faf8;font-size:12px;margin-top:10px;}.pm-merge-members p{margin:6px 0 0;font-size:11px;line-height:1.7;overflow-wrap:anywhere;max-height:180px;overflow:auto;}.pm-merge-group .pm-search{font-size:16px;}
@media(max-width:480px){#merge-confirm{flex:1;}.pm-merge-select{font-size:12px;}}

/* Shared browser/app entry and compact summary notices. */
[data-app-only]{display:none;}html[data-app="true"] [data-app-only]{display:block;}html[data-app="true"] [data-browser-only]{display:none;}
.notices-compact li{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:3px 12px;margin:7px 0;}.notices-compact li>span{flex:1 1 200px;min-width:0;}

/* Commission rates are reference information, never editable price inputs. */
.commission-info{grid-column:1/-1;width:100%;min-width:0;border:1px solid #dce7e2;border-radius:11px;padding:12px;background:#f8fcfa;}
.commission-info-title{font-size:13px;font-weight:700;margin-bottom:10px;color:#36564b;}.commission-table-wrap{max-width:100%;overflow-x:auto;}.commission-info table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px;line-height:1.4;}.commission-info th,.commission-info td{padding:8px 4px;text-align:center;border-bottom:1px solid #e0eae5;overflow-wrap:anywhere;}.commission-info thead th{font-size:11px;color:#64748b;font-weight:650;}.commission-info tbody th{font-weight:700;}.commission-info tbody th span{display:block;font-size:9px;font-weight:500;}.commission-current{background:#e8f5ee;color:#176b4e;}.commission-info .commission-used{font-weight:800;background:#cfeada;}.commission-actual{margin:10px 0 0;font-size:13px;line-height:1.5;color:#176b4e;}.commission-explanation{margin:5px 0 0;font-size:11px;line-height:1.5;color:#64748b;}
.notice-jump{--nj-bg:rgba(0,0,0,.06);--nj-bg-hover:rgba(0,0,0,.1);--nj-border:rgba(0,0,0,.14);display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:28px;padding:3px 9px;border:1px solid var(--nj-border);border-radius:999px;background:var(--nj-bg);color:inherit;font:inherit;font-size:12px;font-weight:600;line-height:1.3;white-space:nowrap;text-decoration:none;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,transform .05s ease;}
.notice-jump:hover{background:var(--nj-bg-hover);border-color:currentColor;text-decoration:none;}.notice-jump:active{transform:translateY(1px);}.notice-jump:focus-visible{outline:2px solid currentColor;outline-offset:2px;}
.input-notices.notice-warning .notice-jump{--nj-bg:#f7d7c2;--nj-bg-hover:#f2c6ab;--nj-border:#e0ad8f;}.input-notices.notice-note .notice-jump{--nj-bg:#f5e6b8;--nj-bg-hover:#efdb9f;--nj-border:#dcc37a;}
.calculation-error .notice-jump{background:#fff;border-color:#d9a68f;color:#7c3900;padding:3px 10px;}.calculation-error .notice-jump:hover{background:#fbe9dd;border-color:#b97a5c;}
@media(hover:none) and (pointer:coarse){.notice-jump{min-height:34px;padding:5px 10px;}}
@media(prefers-reduced-motion:reduce){.notice-jump{transition:none;}}

/* Interface preferences are independent of product values. */
.platform-visibility{margin-bottom:16px;padding:13px 16px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;}
.platform-visibility summary{cursor:pointer;font-size:13px;font-weight:600;color:#475569;}
.platform-visibility summary span:last-child{float:right;color:#64748b;font-size:12px;font-weight:400;}
.platform-switches{display:grid;gap:10px;margin-top:16px;}
.platform-switch{display:flex;align-items:center;gap:12px;font-size:13px;cursor:pointer;position:relative;min-height:32px;}
.platform-switch>span:first-child{flex:1;}
.platform-switch input{position:absolute;right:0;width:42px;height:26px;opacity:0;cursor:pointer;}
.platform-switch-track{width:38px;height:22px;border-radius:99px;background:#cbd5e1;pointer-events:none;}
.platform-switch-track:after{content:'';display:block;width:16px;height:16px;margin:3px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;}
.platform-switch input:checked+.platform-switch-track{background:#059669;}
.platform-switch input:checked+.platform-switch-track:after{transform:translateX(16px);}
.platform-switch input:focus-visible+.platform-switch-track{outline:2px solid #047857;outline-offset:3px;}
.platform-visibility p{font-size:12px;color:#64748b;line-height:1.5;margin:12px 0 0;}
.tabs .tab:disabled{background:#f1f5f9!important;color:#94a3b8!important;border-color:#e2e8f0!important;cursor:default;box-shadow:none;transform:none;}
.summary-table[style="--platform-columns:1"] .summary-header,.summary-table[style="--platform-columns:1"] .summary-row,.summary-table[style="--platform-columns:2"] .summary-header,.summary-table[style="--platform-columns:2"] .summary-row{grid-template-columns:minmax(72px,1.3fr) repeat(var(--platform-columns),minmax(0,1fr));}
.platforms-empty{padding:20px 14px;background:#f8fafc;border-radius:12px;font-size:14px;line-height:1.6;color:#64748b;}
[data-platform-volume][hidden],[class$="-bar"][hidden]{display:none!important;}

/* Platform-specific accents for commission reference cards. */
#wb-commission-info{--ci-bg:#faf7ff;--ci-border:#e4d8fa;--ci-ink:#7041bd;--ci-row:#f0e7ff;--ci-used:#e1d0fb;}
#ozon-commission-info{--ci-bg:#f4f8ff;--ci-border:#cddffb;--ci-ink:#2863b1;--ci-row:#e7f0ff;--ci-used:#cfe2ff;}
#ym-commission-info{--ci-bg:#fffdf3;--ci-border:#f1dfa2;--ci-ink:#806000;--ci-row:#fff5cc;--ci-used:#ffe995;}
.commission-info{background:var(--ci-bg);border-color:var(--ci-border);}
.commission-info-title,.commission-actual{color:var(--ci-ink);}
.commission-current{color:var(--ci-ink);background:var(--ci-row);}
.commission-info .commission-used{background:var(--ci-used);}
.commission-info th,.commission-info td{border-bottom-color:var(--ci-border);}
.platform-visibility{margin-bottom:8px;}
.left-sidebar{gap:8px;}
.input-section.price-pair>.form-row{grid-template-columns:repeat(2,minmax(0,1fr));}
.input-section.price-pair>.form-row>.form-group{grid-column:auto;}
.tax-always-visible{margin-top:18px;}
.field-pair{grid-column:1/-1;min-width:0;}.field-pair>.form-row{grid-template-columns:repeat(2,minmax(0,1fr));}

/* Hidden tabs share the remaining width; header chart always has three bars. */
.tabs [data-tab][hidden]{display:none!important;}
.tabs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);}
.tabs>[data-tab]{width:100%;min-width:0;padding-left:6px;padding-right:6px;box-sizing:border-box;}
.header .chart-container{width:224px;height:120px;padding:12px 12px 10px;border:1px solid #ffffffcc;border-radius:20px;background:linear-gradient(145deg,#ffffffdf,#f3f6fbbf);box-shadow:0 5px 20px #33415508,inset 0 1px 0 #fff;flex-shrink:0;}
.header .chart-bars{height:100%;gap:12px;padding:0;transform:none;}
.header .chart-bar{width:54px;height:100%;justify-content:flex-end;gap:5px;transform:none;}
.header .chart-bar:before{content:none;}
.header .bar-fill{width:28px;max-height:55px;min-height:7px;flex-shrink:1;border-radius:8px 8px 4px 4px;background:linear-gradient(180deg,color-mix(in srgb,currentColor 72%,white),currentColor);box-shadow:inset 1px 0 0 #ffffff66,0 3px 9px color-mix(in srgb,currentColor 18%,transparent);opacity:1;transition:height .55s cubic-bezier(.2,.8,.2,1),filter .2s;}
.header .bar-label{order:3;margin:0;font-size:9px;line-height:1.2;font-weight:700;letter-spacing:.03em;color:#64748b;}
.header .bar-price{order:2;flex-shrink:0;min-width:48px;margin:0;padding:3px 5px;border:1px solid #e8edf4;border-radius:7px;background:#ffffffd9;font-size:11px;line-height:1.2;font-variant-numeric:tabular-nums;box-shadow:0 1px 3px #33415505;}
.header .chart-bar:hover .bar-fill{filter:brightness(1.07);}
.header .chart-bar.active .bar-fill{transform:none;}
@media(prefers-reduced-motion:reduce){.header .bar-fill,.header .bar-price{transition:none;}}

.pm-member-line{display:block;margin:4px 0;overflow-wrap:anywhere;}
.pm-composition-tools{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px;}
.pm-composition-tools .pm-button{font-size:12px;padding:5px 9px;min-height:30px;}
.composition-dialog{width:min(780px,calc(100vw - 24px));max-height:90dvh;padding:0;}
.composition-body{padding:16px 20px;overflow-y:auto;max-height:65dvh;}
.composition-body>p,.composition-transfer p{font-size:13px;line-height:1.5;color:#64748b;}
.composition-row{display:grid;grid-template-columns:22px minmax(0,1fr) 32px;gap:8px;align-items:center;margin:8px 0;}
.composition-row>input[type=checkbox]{width:18px;height:18px;accent-color:#059669;}
.composition-row .pm-name{width:100%;min-width:0;box-sizing:border-box;}
.composition-transfer{margin-top:18px;border-top:1px solid #e2e8f0;padding-top:12px;}
.composition-transfer summary{cursor:pointer;font-weight:600;}
.composition-transfer select{display:block;box-sizing:border-box;width:100%;padding:10px;margin:7px 0;border:1px solid #cbd5e1;border-radius:8px;}
#composition-error{color:#b42318;}
.composition-footer{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;padding:14px 20px;border-top:1px solid #e2e8f0;}
@media(max-width:600px){.composition-body{padding:12px;}.composition-row{gap:5px;}.composition-row .pm-name{font-size:16px;min-height:42px;}.composition-footer{padding:12px;}.composition-footer .pm-button{flex:1 1 100%;}.composition-dialog .pm-header h2{overflow-wrap:anywhere;}}

.pm-name-view{margin:10px 0 16px;padding:10px 12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;font-size:13px;}
.pm-name-view summary{cursor:pointer;font-weight:600;}
.pm-name-view fieldset{border:0;padding:10px 0 0;margin:0;display:flex;flex-wrap:wrap;gap:16px;}
.pm-name-view legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
.pm-name-view label{display:inline-flex;gap:7px;align-items:center;min-height:30px;cursor:pointer;}
.pm-name-view input{accent-color:#059669;width:17px;height:17px;}
.pm-name-view p{font-size:12px;line-height:1.5;color:#64748b;margin:8px 0 0;}
.product-picker-item .picker-product-name{display:block;overflow-wrap:anywhere;}
.product-picker-item .picker-match-caption{display:block;margin-top:5px;font-size:11px;font-weight:400;color:#64748b;}
.product-picker-item .picker-match-line{display:block;margin-top:3px;padding-left:9px;border-left:2px solid #b7decf;font-size:12px;line-height:1.45;font-weight:400;color:#475569;white-space:normal;overflow-wrap:anywhere;}
.product-picker-item .picker-match-more{display:block;font-size:11px;color:#64748b;margin-top:4px;}
