:root{color-scheme:light;--bg: #f4f6f8;--surface: #ffffff;--surface-soft: #f9fafb;--surface-warm: #fff7ef;--text: #26313d;--text-strong: #111827;--muted: #667085;--line: #d9e0e8;--brand: #ef7d22;--brand-strong: #c95e0d;--green: #2f8f5b;--red: #b42318;--amber: #a45f00;--shadow: 0 10px 28px rgba(27, 39, 53, .08);font-family:Segoe UI,Roboto,Arial,sans-serif}*{box-sizing:border-box}html{min-width:320px}body{margin:0;min-width:320px;min-height:100vh;color:var(--text);background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.72}.icon{display:block;fill:currentColor;flex:0 0 auto}.page{width:min(100% - 28px,1480px);margin:0 auto}.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,420px);gap:22px;align-items:center;width:min(100% - 40px,1060px);margin:0 auto;padding:32px 0}.login-copy,.login-panel,.auth-form,.auth-form label{display:grid;gap:16px}.login-copy h1{margin:0;color:var(--text-strong);font-size:3.6rem;line-height:1;letter-spacing:0}.login-copy p{max-width:620px;margin:0;color:var(--muted);font-size:1.02rem;line-height:1.6}.brand-mark{width:fit-content;display:inline-flex;align-items:center;gap:10px;min-height:40px;color:var(--text-strong);font-weight:800}.brand-mark img{width:108px;max-height:34px;object-fit:contain}.brand-mark span{border-left:1px solid var(--line);padding-left:10px;line-height:1.2}.login-panel,.loading-card,.panel,.summary-strip,.offer-document{border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}.login-panel,.loading-card{padding:28px}.login-panel img{width:170px;max-width:100%}.login-panel h2,.tool-header h1,.section-title h2,.document-quote h3{margin:0;color:var(--text-strong)}.auth-form label span,.field span,.summary-strip span,.detail-list span,.document-header span,.technical-grid span,.document-notes span,.compare-card small{color:var(--muted);font-size:.78rem;font-weight:700}.auth-form input,.field input,.field select,.field textarea,.editable-table input,.editable-table select,.search-field input{width:100%;min-height:38px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--text);padding:0 10px;outline:none}.field textarea{min-height:80px;padding:9px 10px;resize:vertical}.auth-form input:focus,.field input:focus,.field select:focus,.field textarea:focus,.editable-table input:focus,.editable-table select:focus,.search-field input:focus{border-color:var(--brand);box-shadow:0 0 0 3px #ef7d2221}.form-error{margin:0;color:var(--red);font-weight:700}.primary-button,.secondary-button,.icon-button,.tab-button{min-height:38px;border:1px solid transparent;border-radius:6px;font-weight:700;letter-spacing:0}.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 12px;white-space:nowrap}.primary-button{color:#fff;background:var(--brand);border-color:var(--brand)}.primary-button:hover{background:var(--brand-strong)}.secondary-button{color:var(--brand-strong);background:var(--surface-warm);border-color:#ef7d2259}.icon-button{width:38px;display:grid;place-items:center;color:var(--text);background:#fff;border-color:var(--line)}.icon-button.danger{color:var(--red)}.site-header{position:sticky;top:0;z-index:20;border-bottom:1px solid var(--line);background:#fffffff5;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.header-inner{min-height:70px;display:grid;grid-template-columns:auto minmax(420px,1fr) auto;gap:18px;align-items:center}.top-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tab-button{min-width:0;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 12px;background:var(--surface-soft);border-color:var(--line);color:var(--text)}.tab-button.active{color:#fff;background:var(--text-strong);border-color:var(--text-strong)}.header-user{display:grid;grid-template-columns:minmax(120px,1fr) auto;gap:10px;align-items:center}.header-user strong,.header-user small{display:block}.header-user small{color:var(--muted);font-size:.76rem;font-weight:700}.workbench-page{padding:18px 0 42px}.workbench{display:grid;gap:14px}.tool-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.tool-header h1{font-size:1.65rem;line-height:1.2}.tool-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.save-status{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 10px;color:var(--green);border:1px solid rgba(47,143,91,.24);border-radius:6px;background:#2f8f5b14;font-weight:700}.summary-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.summary-strip div{display:grid;gap:4px;padding:14px 16px;border-right:1px solid var(--line)}.summary-strip div:last-child{border-right:0}.summary-strip strong{color:var(--text-strong);font-size:1.18rem}.workspace-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:14px;align-items:start}.panel{min-width:0;padding:16px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.section-title h2{font-size:1rem;line-height:1.25}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.field{display:grid;gap:6px;min-width:0}.field.wide,.field:has(textarea){grid-column:1 / -1}.input-wrap{position:relative}.input-wrap small{position:absolute;top:50%;right:10px;transform:translateY(-50%);color:var(--muted);font-size:.76rem;font-weight:700;pointer-events:none}.input-wrap input{padding-right:48px}.table-panel{overflow:auto}.editable-table{display:grid;min-width:760px;border-top:1px solid var(--line);border-left:1px solid var(--line)}.editable-row{display:grid;grid-template-columns:minmax(260px,1.6fr) minmax(90px,.45fr) minmax(120px,.6fr) minmax(130px,.65fr) 52px}.editable-row>*{min-width:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.editable-row.head span{padding:9px 10px;color:var(--text-strong);background:#edf2f7;font-size:.78rem;font-weight:800}.editable-row input,.editable-row select{border:0;border-radius:0;min-height:42px}.editable-row strong{display:flex;align-items:center;justify-content:flex-end;padding:0 10px;color:var(--text-strong);font-size:.9rem}.editable-row .icon-button{width:auto;min-height:42px;border:0;border-radius:0}.product-table{min-width:1120px}.product-row{grid-template-columns:62px 130px 140px minmax(280px,1.5fr) 80px 120px 130px 52px}.check-cell{display:grid;place-items:center}.check-cell input,.history-row input,.toggle input{width:17px;height:17px;accent-color:var(--brand)}.offer-document{display:grid;gap:14px;padding:18px;color:#151515;font-family:Arial,Helvetica,sans-serif;box-shadow:0 12px 30px #1b27350f}.document-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding-bottom:10px;border-bottom:3px solid #d61920}.document-header div{display:grid;gap:4px}.document-header div:last-child{text-align:right}.document-header strong{color:#ef7d22;font-size:1rem}.document-title{justify-self:center;width:min(100%,860px);padding:9px 10px;border-top:1px solid #3f73bd;border-bottom:1px solid #3f73bd;color:#3f73bd;font-style:italic;text-align:center}.technical-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid #8a8f98;border-left:1px solid #8a8f98}.technical-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.technical-grid div{min-width:0;display:grid;gap:4px;padding:9px;border-right:1px solid #8a8f98;border-bottom:1px solid #8a8f98}.technical-grid span{color:#1e4e86}.technical-grid strong{font-size:.9rem;line-height:1.25}.document-quote{display:grid;gap:0}.document-quote h3{margin:4px 0 8px;color:#3f73bd;font-size:1.05rem}.document-quote-head,.document-quote-row,.document-quote-total{display:grid;grid-template-columns:1fr minmax(220px,2.2fr) .55fr .9fr;border-left:1px solid #8a8f98}.document-quote-head span,.document-quote-row span,.document-quote-row strong,.document-quote-total span,.document-quote-total strong{min-width:0;padding:7px 9px;border-right:1px solid #8a8f98;border-bottom:1px solid #8a8f98;line-height:1.25}.document-quote-head span{background:#c6d8f0;color:#111;font-weight:700}.document-quote-row strong,.document-quote-total strong{text-align:right}.document-quote-total span,.document-quote-total strong{background:#e1e4e8;font-weight:700}.document-quote-total span{grid-column:1 / 4}.discount-row,.document-total{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}.discount-row{padding:10px 12px;background:#f4f6f8;border:1px solid #d5dbe3}.discount-row strong{color:var(--red)}.document-total{padding:12px 14px;color:#000;background:#a9d18e;font-size:1.12rem;font-weight:800}.document-total strong{font-size:1.25rem}.document-notes{display:grid;gap:5px}.media-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:14px;align-items:center}.media-row>img{width:100%;max-height:270px;object-fit:contain;border:2px solid #ef7d22}.visual-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.visual-row img{width:100%;height:120px;object-fit:contain;border:1px solid #8a8f98}.filters{display:grid;grid-template-columns:minmax(300px,1fr) minmax(180px,240px) auto;gap:10px;align-items:end}.search-field{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;min-height:40px;padding:0 10px;border:1px solid var(--line);border-radius:6px;background:#fff}.search-field input{min-height:38px;border:0;padding:0}.toggle{min-height:40px;display:inline-flex;align-items:center;gap:8px;padding:0 10px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--text);font-weight:700;white-space:nowrap}.history-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.34fr);gap:14px;align-items:start}.history-table{display:grid;min-width:1120px;border-top:1px solid var(--line);border-left:1px solid var(--line)}.history-row{display:grid;grid-template-columns:74px 100px 150px minmax(170px,1fr) 82px 76px 120px 130px 92px 120px;align-items:stretch;width:100%;background:#fff;color:var(--text);text-align:left}.history-row>*{min-width:0;display:flex;align-items:center;padding:9px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);font-size:.86rem;line-height:1.25}.history-row>:first-child{justify-content:center}.history-head{background:#edf2f7}.history-head span{color:var(--text-strong);font-size:.78rem;font-weight:800}.history-row:not(.history-head){cursor:pointer}.history-row.selected{background:var(--surface-warm)}.history-row b{color:var(--brand-strong)}.quality{display:inline-flex;justify-content:center;gap:5px;font-weight:800}.quality.ok{color:var(--green)}.quality.warn{color:var(--amber)}.detail-panel{position:sticky;top:88px}.detail-list{display:grid;gap:8px}.detail-list div{display:grid;gap:4px;padding-bottom:8px;border-bottom:1px solid var(--line)}.detail-list strong{color:var(--text-strong);line-height:1.3}.warning-box,.note-box{margin-top:12px;padding:12px;border-radius:6px;line-height:1.45}.warning-box{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;color:#7a3e00;background:#fff4db;border:1px solid #ffd58a;font-weight:700}.note-box{color:var(--text);background:var(--surface-soft);border:1px solid var(--line)}.compare-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.compare-card{display:grid;gap:5px;padding:12px;border:1px solid var(--line);border-radius:6px;background:var(--surface-soft)}.compare-card strong{color:var(--text-strong)}.compare-card b{color:var(--brand-strong)}@media (max-width: 1180px){.header-inner,.workspace-grid,.history-layout,.media-row{grid-template-columns:1fr}.detail-panel{position:static}}@media (max-width: 760px){.page{width:min(100% - 18px,1480px)}.login-page{width:min(100% - 18px,1060px);grid-template-columns:1fr}.login-copy h1{font-size:2.45rem}.brand-mark{align-items:flex-start;flex-direction:column}.brand-mark span{border-left:0;padding-left:0}.top-tabs,.summary-strip,.form-grid,.filters,.technical-grid,.technical-grid.compact,.visual-row,.compare-grid,.document-header{grid-template-columns:1fr}.summary-strip div{border-right:0;border-bottom:1px solid var(--line)}.summary-strip div:last-child{border-bottom:0}.tool-header{align-items:stretch;flex-direction:column}.tool-actions{justify-content:stretch}.tool-actions .primary-button,.tool-actions .secondary-button,.save-status{width:100%}.field.wide,.field:has(textarea){grid-column:auto}.document-header div:last-child{text-align:left}.document-quote-head,.document-quote-row,.document-quote-total{grid-template-columns:1fr}.document-quote-total span{grid-column:auto}.offer-document{padding:12px}}
