body[data-workspace="yamal"] { background: #f6f8f9; }
body[data-workspace="yamal"]:has(.yamal-workspace) .topbar { display: none; }
.app-shell.yamal-direct-shell { grid-template-rows: auto 1fr; }
.yamal-direct-shell .minimal-workspace-sidebar { background: #fff; border-bottom: 1px solid #e1e8e9; }
.yamal-direct-shell .language-controls .lang-toggle.active { color: #125f59; background: #e4f1ec; border-color: #b1d3c9; }
.yamal-direct-shell .main { padding: 22px 28px 56px; }
.yamal-workspace { --yamal-line: #dce5e7; --yamal-muted: #617378; --yamal-green: #116e65; max-width: 1040px; margin-inline: auto; color: #24393d; }
.yamal-workspace, .yamal-workspace * { box-sizing: border-box; letter-spacing: 0; }
.yamal-workspace [hidden] { display: none !important; }
.yamal-workspace h2, .yamal-workspace h3, .yamal-workspace h4, .yamal-workspace p { margin: 0; }
.yamal-workspace button, .yamal-workspace input, .yamal-workspace select { font: inherit; }
.yamal-workspace :is(button, input, select, summary, a):focus-visible { outline: 2px solid #167b70; outline-offset: 3px; }
.yamal-workspace .btn { min-height: 48px; border-radius: 6px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; font-size: 15px; }
.yamal-workspace .btn.primary { background: #116e65; color: #fff; }
.yamal-workspace .btn.primary .yamal-icon { filter: brightness(0) invert(1); }
.yamal-workspace .btn.secondary { background: #edf1f3; color: #4c6167; }
.yamal-workspace button:disabled { opacity: .45; cursor: not-allowed; }
.yamal-workspace .icon-button { width: 44px; height: 44px; border: 1px solid var(--yamal-line); border-radius: 6px; display: inline-grid; place-items: center; background: #fff; flex-shrink: 0; }
.yamal-icon { width: 20px; height: 20px; flex-shrink: 0; opacity: .8; }
.yamal-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 24px; }
.yamal-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.yamal-identity > img { border-radius: 8px; flex-shrink: 0; }
.yamal-identity span { color: var(--yamal-muted); font-size: 12px; }
.yamal-identity h2 { font-size: 24px; line-height: 1.4; overflow-wrap: anywhere; }
.yamal-header-actions { display: flex; gap: 18px; align-items: center; flex-shrink: 0; }
.yamal-header-actions a { display: flex; gap: 7px; align-items: center; min-height: 44px; color: #47666d; text-decoration: none; font-size: 13px; }
.yamal-header-actions .refreshing .yamal-icon { animation: driver-refresh 1s linear infinite; }
.yamal-stock-heading { color: var(--yamal-muted); font-size: 12px; margin-bottom: 10px; }
.yamal-balances { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--yamal-line); background: #fff; margin-bottom: 22px; }
.yamal-balance { min-width: 0; padding: 16px 24px; border-inline-start: 3px solid #177d72; }
.yamal-balance.fillet { border-inline-start-color: #487db4; }
.yamal-balance-top, .yamal-processing { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.yamal-balance-top > span:first-child { font-size: 16px; font-weight: 700; }
.yamal-balance-top > span:last-child { display: flex; gap: 8px; align-items: baseline; }
.yamal-balance-top strong { font-size: 32px; line-height: 1.2; font-variant-numeric: tabular-nums; color: #116e65; }
.yamal-balance.fillet .yamal-balance-top strong { color: #35689f; }
.yamal-balance-top small { font-size: 12px; color: var(--yamal-muted); }
.yamal-processing { margin-top: 12px; color: var(--yamal-muted); font-size: 12px; }
.yamal-processing strong { font-size: 16px; font-variant-numeric: tabular-nums; font-weight: 600; }
.yamal-processing .is-negative { color: #b43d34; }
.yamal-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; background: #e8edef; gap: 4px; border-radius: 8px; margin-bottom: 26px; }
.yamal-tabs button { position: relative; border: 0; border-radius: 5px; min-height: 48px; background: transparent; color: #53676d; display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; font-size: 15px; }
.yamal-tabs button[aria-selected="true"] { color: #116e65; background: #fff; font-weight: 700; box-shadow: 0 1px 3px #20393a12; }
.yamal-tab-badge { font-size: 11px; line-height: 20px; min-width: 20px; border-radius: 12px; background: #f7e6c6; color: #87571b; padding-inline: 4px; }
.yamal-audit-dot { width: 7px; height: 7px; border-radius: 50%; background: #bf8226; }
.yamal-task-panel { display: grid; gap: 22px; min-width: 0; }
.yamal-section-head, .yamal-workspace .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
.yamal-section-head h3, .yamal-workspace .section-heading h3 { font-size: 19px; }
.yamal-section-head > span { color: var(--yamal-muted); font-size: 12px; }
.yamal-segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px; gap: 4px; border: 1px solid var(--yamal-line); border-radius: 7px; background: #edf2f4; max-width: 460px; }
.yamal-segmented button { display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 4px; min-height: 44px; color: #586d72; background: transparent; cursor: pointer; font-size: 14px; }
.yamal-segmented button[aria-pressed="true"] { color: #116e65; font-weight: 700; background: #fff; box-shadow: 0 1px 3px #20393a12; }
.yamal-scanner { display: grid; gap: 18px; }
.yamal-scan-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.yamal-scan-ready { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #267d64; }
.yamal-scan-ready i { width: 7px; height: 7px; border-radius: 50%; background: #26a076; }
.yamal-scan-field { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid #85b0a8; border-radius: 7px; padding-inline: 16px; }
.yamal-scan-field:focus-within { outline: 2px solid #187b70; outline-offset: 2px; box-shadow: 0 0 0 5px #e0ede8; }
.yamal-workspace #barcodeScanInput { min-width: 0; width: 100%; border: 0; background: transparent; outline: 0; box-shadow: none; min-height: 60px; padding: 10px 0; font-size: 17px; font-family: inherit; border-radius: 0; }
.yamal-workspace #barcodeScanInput::placeholder { color: #8b9a9f; font-size: 14px; text-align: start; }
.yamal-feedback { border-radius: 6px; padding: 12px 14px; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; background: #edf2f4; }
.yamal-feedback.ok { background: #e8f5ee; color: #216746; }
.yamal-feedback.danger { background: #fcefeb; color: #a04436; }
.yamal-feedback.warn { background: #fff5e6; color: #95621d; }
.yamal-scan-totals { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--yamal-line); padding-block: 14px; }
.yamal-scan-totals > span { display: flex; gap: 12px; align-items: baseline; justify-content: center; font-size: 14px; color: var(--yamal-muted); }
.yamal-scan-totals > span + span { border-inline-start: 1px solid var(--yamal-line); }
.yamal-scan-totals strong { font-size: 25px; font-variant-numeric: tabular-nums; color: #24393d; }
.yamal-scan-totals small { font-size: 12px; }
.yamal-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 16px; color: #71868b; font-size: 14px; }
.yamal-empty .yamal-icon { width: 32px; height: 32px; opacity: .35; }
.yamal-empty.compact { padding: 20px 10px; }
.yamal-draft-lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--yamal-line); }
.yamal-draft-lines > div > span { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.yamal-draft-lines > div > strong { font-size: 20px; flex-shrink: 0; }
.yamal-draft-lines small { font-size: 12px; color: var(--yamal-muted); font-weight: 400; }
.yamal-recent > summary { display: flex; justify-content: space-between; font-size: 13px; color: #506a71; padding: 12px 0; cursor: pointer; }
.yamal-scan-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--yamal-line); align-items: center; }
.yamal-scan-row > div { min-width: 0; }
.yamal-scan-row strong { display: block; font-size: 14px; }
.yamal-scan-row code { display: block; direction: ltr; font-size: 11px; margin-top: 5px; color: var(--yamal-muted); overflow-wrap: anywhere; }
.yamal-scan-row .icon-button { color: #a13f34; font-size: 22px; }
.yamal-action-dock { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--yamal-line); }
.yamal-draft-summary { display: flex; gap: 10px; justify-content: space-between; align-items: center; font-size: 12px; color: var(--yamal-muted); }
.yamal-draft-summary > strong { font-size: 18px; color: #24393d; }
.yamal-action-buttons { display: flex; gap: 10px; }
.yamal-action-buttons .primary { flex: 1; }
.yamal-action-buttons .primary b { padding-inline-start: 8px; border-inline-start: 1px solid #ffffff50; }
.yamal-action-dock:not(.has-items) .yamal-draft-summary { display: none; }
.yamal-product-tabs { display: flex; border-bottom: 1px solid var(--yamal-line); gap: 24px; margin-bottom: 12px; }
.yamal-product-tabs button { border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--yamal-muted); padding: 12px 10px; display: flex; gap: 16px; align-items: center; cursor: pointer; font-size: 15px; }
.yamal-product-tabs button[aria-pressed="true"] { border-bottom-color: #177d72; color: #116e65; font-weight: 700; }
.yamal-product-tabs button[data-yamal-product="fillet"][aria-pressed="true"] { border-bottom-color: #487db4; color: #35689f; }
.yamal-product-tabs b { font-size: 13px; font-weight: 500; }
.yamal-workspace .production-tables { display: block; }
.yamal-workspace .production-table-block { background: transparent; border: 0; border-radius: 0; }
.yamal-workspace .production-table-title { display: none; }
.yamal-workspace .production-range-table { width: 100%; min-width: 0; table-layout: fixed; }
.yamal-workspace .production-range-table th { background: #edf2f4; color: #65797e; font-size: 12px; font-weight: 500; padding: 12px; }
.yamal-workspace .production-range-table td { padding: 12px; border-bottom: 1px solid #e2e9eb; }
.yamal-workspace .production-range-table th:first-child { width: 28%; }
.yamal-workspace .production-range-table th:nth-child(2) { width: 26%; }
.yamal-workspace .production-range-table td:first-child { font-size: 15px; font-variant-numeric: tabular-nums; }
.yamal-workspace .production-range-table td:first-child small { display: block; font-size: 11px; color: #819196; }
.yamal-workspace .production-range-table td:nth-child(2) { font-size: 13px; color: #65797e; }
.yamal-workspace .production-range-table tr:has(.has-value) { background: #edf7f2; }
.yamal-workspace .production-count-input { min-height: 44px; width: 100%; max-width: 110px; border: 1px solid #c8d8d9; border-radius: 6px; background: #fff; text-align: center; font-size: 18px; }
.yamal-workspace .production-slider-value { font-size: 16px; color: #116e65; min-width: 0; padding: 0; background: transparent; border: 0; }
.yamal-workspace .production-mobile-slider { gap: 8px; }
.yamal-workspace .production-range-input { min-height: 32px; padding: 0; }
.yamal-workspace .production-range-scale { display: none; }
.yamal-manual-projection { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 12px; padding: 14px 0; color: #60777d; }
.yamal-workspace #productionLimitMessage { background: #fff4e4; border-color: #edd3ac; color: #875719; margin-top: 12px; font-size: 13px; }
.yamal-workspace .panel { background: transparent; box-shadow: none; border: 0; border-radius: 0; padding: 0; margin: 0; }
.yamal-workspace .stock-audit { display: grid; gap: 20px; }
.yamal-workspace .stock-audit .audit-limits { display: flex; gap: 12px; font-size: 13px; }
.yamal-workspace .stock-audit .audit-limits > span { background: #edf2f4; padding: 8px 14px; border-radius: 4px; }
.yamal-workspace .stock-audit .audit-last { font-size: 13px; color: var(--yamal-muted); line-height: 1.9; padding-top: 12px; border-top: 1px solid var(--yamal-line); }
.yamal-workspace #stockAuditScanForm label { display: grid; gap: 10px; font-size: 14px; }
.yamal-workspace #stockAuditBarcode { min-height: 56px; border: 1px solid #85b0a8; border-radius: 6px; background: #fff; font-size: 17px; width: 100%; }
.yamal-workspace .audit-counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--yamal-line); padding: 14px 0; gap: 10px; }
.yamal-workspace .audit-counters span { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--yamal-muted); background: transparent; padding: 0; border: 0; }
.yamal-workspace .audit-counters b { font-size: 25px; color: #24393d; font-variant-numeric: tabular-nums; }
.yamal-workspace .audit-counters span:nth-child(2) b { color: #b14739; }
.yamal-workspace .audit-counters span:nth-child(4) b { color: #996525; }
.yamal-audit-lock { display: grid; justify-items: center; text-align: center; padding: 32px 12px; gap: 18px; }
.yamal-audit-lock h3 { font-size: 18px; }
.yamal-audit-lock p { font-size: 14px; color: var(--yamal-muted); max-width: 380px; }
.yamal-stock-list { display: grid; gap: 20px; }
.yamal-stock-group-title { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 14px 16px; background: #e9f3ee; border-inline-start: 3px solid #177d72; font-size: 12px; color: #346357; }
.yamal-stock-group-title h4 { font-size: 16px; }
.yamal-stock-group-title strong { font-size: 20px; }
.yamal-stock-group.fillet .yamal-stock-group-title { background: #eaf0f7; border-color: #487db4; color: #3d618c; }
.yamal-stock-line, .yamal-stock-columns { display: grid; grid-template-columns: 1fr 70px 70px; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--yamal-line); }
.yamal-stock-columns { font-size: 11px; color: var(--yamal-muted); padding-block: 10px; }
.yamal-stock-line { font-size: 15px; }
.yamal-stock-line small { font-size: 11px; color: var(--yamal-muted); }
.yamal-stock-line strong { font-size: 21px; font-variant-numeric: tabular-nums; }
.yamal-stock-line > :not(:first-child), .yamal-stock-columns > :not(:first-child) { text-align: center; }
.yamal-stock-line > span { color: #8a9b9f; font-size: 14px; }
.yamal-stock-line > .has-reservation { color: #986523; font-weight: 700; }
.yamal-workspace #yamal-panel-stock > details { border-top: 1px solid var(--yamal-line); padding-top: 4px; }
.yamal-workspace summary { min-height: 48px; cursor: pointer; font-size: 14px; }
.yamal-workspace .operation-history > summary { padding: 16px 0; }
.yamal-workspace .operation-history > summary small, .yamal-workspace .stock-disposal-description { display: none; }
.yamal-workspace .operation-history > summary > span { font-size: 15px; }
.yamal-workspace .operation-history > summary::after { background: transparent; border: 0; width: 28px; height: 28px; }
.yamal-workspace .operation-history-body { padding: 4px 0 16px; border: 0; }
.yamal-workspace .stock-disposal-panel > summary { color: #a14438; }
.yamal-workspace .stock-disposal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.yamal-workspace .stock-disposal-form .field { min-width: 0; }
.yamal-workspace .stock-disposal-form :is(input, select) { min-height: 48px; font-size: 16px; border-radius: 6px; background: #fff; max-width: 100%; }
.yamal-workspace .stock-disposal-history { margin-top: 20px; }
.yamal-workspace .notice { font-size: 14px; overflow-wrap: anywhere; }
.yamal-workspace .table-wrap { max-width: 100%; }
.yamal-workspace .empty { background: transparent; font-size: 14px; }
body[data-workspace="yamal"]:has(.yamal-workspace) .app-toast { inset-inline: 16px; top: 70px; bottom: auto; margin-inline: auto; transform: none; }
@media (max-width: 660px) {
  .yamal-direct-shell .main { padding: 16px 16px calc(92px + env(safe-area-inset-bottom)); }
  .yamal-workspace { --yamal-nav-height: 68px; padding-bottom: 12px; }
  .yamal-workspace:has(.yamal-task-panel:not([hidden]) > :not([hidden]) .yamal-action-dock.has-items) { padding-bottom: 136px; }
  .yamal-header { padding-bottom: 18px; }
  .yamal-identity { gap: 10px; }
  .yamal-identity > img { width: 38px; height: 38px; }
  .yamal-identity h2 { font-size: 21px; }
  .yamal-identity span { font-size: 11px; }
  .yamal-header-actions { gap: 12px; }
  .yamal-header-actions a { flex-direction: column; gap: 3px; font-size: 10px; }
  .yamal-stock-heading { font-size: 11px; }
  .yamal-balances { margin-bottom: 24px; }
  .yamal-balance { padding: 14px 12px; }
  .yamal-balance-top { flex-wrap: wrap; gap: 8px; }
  .yamal-balance-top > span:first-child { font-size: 14px; }
  .yamal-balance-top > span:last-child { gap: 5px; }
  .yamal-balance-top strong { font-size: 27px; }
  .yamal-balance-top small { font-size: 11px; }
  .yamal-processing { padding-top: 9px; border-top: 1px solid #e7edef; margin-top: 12px; gap: 5px; font-size: 11px; }
  .yamal-processing strong { font-size: 15px; }
  .yamal-tabs { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; height: calc(var(--yamal-nav-height) + env(safe-area-inset-bottom)); margin: 0; padding: 4px 12px calc(4px + env(safe-area-inset-bottom)); border-radius: 0; background: #fff; border-top: 1px solid var(--yamal-line); }
  .yamal-tabs button { flex-direction: column; gap: 4px; min-height: 56px; font-size: 12px; }
  .yamal-tabs button[aria-selected="true"] { background: #eaf4ef; box-shadow: none; }
  .yamal-tab-badge, .yamal-audit-dot { position: absolute; top: 4px; inset-inline-end: calc(50% - 27px); }
  .yamal-section-head h3, .yamal-workspace .section-heading h3 { font-size: 18px; }
  .yamal-task-panel { gap: 18px; }
  .yamal-segmented { max-width: none; }
  .yamal-segmented button { font-size: 13px; gap: 7px; }
  .yamal-scanner { gap: 16px; }
  .yamal-workspace #barcodeScanInput { min-height: 56px; font-size: 16px; }
  .yamal-scan-totals > span { gap: 8px; font-size: 13px; }
  .yamal-scan-totals strong { font-size: 23px; }
  .yamal-empty { padding: 24px 12px; }
  .yamal-task-panel:not([hidden]) > :not([hidden]) .yamal-action-dock.has-items { position: fixed; inset-inline: 0; bottom: calc(var(--yamal-nav-height) + env(safe-area-inset-bottom)); background: #fff; padding: 10px 16px 12px; z-index: 29; box-shadow: 0 -4px 16px #20393a08; }
  .yamal-workspace :is(input, select, button, summary, textarea) { scroll-margin-block: 20px 210px; }
  .yamal-workspace .production-range-table th, .yamal-workspace .production-range-table td { padding: 10px 8px; }
  .yamal-workspace .production-range-table { display: table; }
  .yamal-workspace .production-range-table thead { display: table-header-group; }
  .yamal-workspace .production-range-table tbody { display: table-row-group; }
  .yamal-workspace .production-range-table tr { display: table-row; padding: 0; }
  .yamal-workspace .production-range-table td { display: table-cell; width: auto; }
  .yamal-workspace .production-range-table th { font-size: 10px; }
  .yamal-workspace .production-range-table th:first-child { width: 31%; }
  .yamal-workspace .production-range-table th:nth-child(2) { width: 24%; }
  .yamal-workspace .production-range-table td:first-child { font-size: 13px; }
  .yamal-workspace .production-range-table td:nth-child(2) { font-size: 11px; }
  .yamal-workspace .production-mobile-slider { display: flex; flex-direction: column; gap: 2px; }
  .yamal-workspace .production-slider-value { width: auto; min-height: 24px; line-height: 1.5; display: block; }
  .yamal-workspace .production-slider-track { width: 100%; }
  .yamal-workspace .production-range-input { width: 100%; margin: 0; min-width: 0; }
  .yamal-manual-projection { gap: 10px; flex-direction: column; }
  .yamal-stock-line, .yamal-stock-columns { grid-template-columns: 1fr 54px 54px; padding-inline: 10px; gap: 8px; }
  .yamal-stock-line { font-size: 14px; }
  .yamal-stock-line strong { font-size: 20px; }
  .yamal-workspace .stock-disposal-form { grid-template-columns: minmax(0, 1fr); }
  .yamal-workspace .stock-disposal-form .disposal-source-field { grid-column: auto; }
  .yamal-workspace .stock-audit .audit-limits { gap: 8px; }
  .yamal-workspace .stock-audit .audit-limits > span { padding: 8px 10px; font-size: 12px; }
  .yamal-workspace .audit-counters { gap: 6px; }
  .yamal-workspace .audit-counters span { font-size: 11px; }
  .yamal-workspace .audit-counters b { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .yamal-header-actions .refreshing .yamal-icon { animation: none; } }
