:root{color-scheme:light;--bg: #f1f6fc;--surface: #ffffff;--ink: #182b43;--muted: #52667e;--line: #dbe5f1;--accent: #286bc4;--accent-dark: #1b539a;--accent-soft: #e7f1ff;--primary: #2360a9;--primary-hover: #184d8a;--sidebar: #17365f;--sidebar-deep: #122a4c;--sidebar-line: #30517a;--sidebar-text: #cfdef3;--sidebar-highlight: #8ebfff;--subtle: #eef4fc;--focus: #4588df;--radius: 16px;--trend-profit: #217b79;--profit-text: #347254;--font: "DM Sans", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;font-family:var(--font);background:var(--bg);color:var(--ink);font-synthesis:none;-webkit-font-smoothing:antialiased}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button:not([disabled]){cursor:pointer}button:disabled{opacity:.58}a{color:inherit}[hidden]{display:none!important}:focus-visible{outline:2px solid var(--focus);outline-offset:3px}.svg-library{width:0;height:0;position:absolute;overflow:hidden}.icon{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.skip-link{position:fixed;top:12px;left:12px;z-index:10;transform:translateY(-160%);background:var(--surface);padding:10px 18px;border-radius:10px}.skip-link:focus{transform:none}.app-shell{min-height:100vh;display:grid;grid-template-columns:216px minmax(0,1fr)}.sidebar{align-self:start;position:sticky;top:0;height:100vh;height:100dvh;display:flex;flex-direction:column;padding:25px 15px 18px;background:linear-gradient(170deg,var(--sidebar),var(--sidebar-deep) 80%);color:#f6faff}.brand{display:flex;align-items:center;gap:11px;padding:0 7px;text-decoration:none}.brand-icon{display:inline-grid;place-items:center;width:41px;height:41px;flex:0 0 41px;border-radius:12px;background:var(--sidebar-highlight);color:var(--sidebar-deep)}.brand-icon .icon{width:24px;height:24px}.brand strong{display:block;font-size:18px;font-weight:700;letter-spacing:.08em;white-space:nowrap}.brand small{display:block;margin-top:3px;color:var(--sidebar-text);font-size:11px;white-space:nowrap;letter-spacing:.11em}.side-rule{border-top:1px solid var(--sidebar-line);margin:28px 7px 20px}.navigation{display:grid;gap:5px}.navigation a{position:relative;min-height:44px;display:flex;align-items:center;gap:11px;padding:10px 14px;color:var(--sidebar-text);border-radius:9px;text-decoration:none;font-size:14px;transition:background .15s ease}.navigation a:hover{background:#204470;color:#fff}.navigation a[aria-current=page]{background:#27558d;color:#fff;font-weight:700}.navigation a[aria-current=page] .icon{color:var(--sidebar-highlight)}.navigation a[aria-current=page]:after{content:"";width:5px;height:5px;position:absolute;inset-inline-end:14px;border-radius:50%;background:var(--sidebar-highlight)}.sidebar-bottom{margin-top:auto;display:flex;gap:10px;align-items:center;min-height:60px;padding:12px 6px 5px;border-top:1px solid var(--sidebar-line)}.side-avatar{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:10px;color:#e0edff;background:#254a76}.side-account{min-width:0;flex:1}.side-account strong,.side-account small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.side-account strong{font-size:13px}.side-account small{font-size:11px;color:var(--sidebar-text);margin-top:3px}.sidebar-bottom .icon-button{color:var(--sidebar-text)}.sidebar-bottom .icon-button:hover{background:#254a76;color:#fff}.topbar{min-height:71px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px clamp(20px,2.7vw,46px);border-bottom:1px solid var(--line);background:#fafdff}.breadcrumb,.top-actions,.heading-controls,.form-actions,.export-options{display:flex;align-items:center;gap:12px}.breadcrumb{color:var(--muted);font-size:13px;white-space:nowrap}.breadcrumb strong{color:var(--ink);font-weight:650}.crumb-slash{color:#70849b}.top-actions{gap:10px}.demo-badge{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;padding:5px 8px;border-radius:6px;background:var(--accent-soft);color:var(--accent-dark);font-size:11px;font-weight:700}.demo-badge>span{width:6px;height:6px;background:var(--accent);border-radius:50%}.button,.icon-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;text-decoration:none;transition:background .15s ease,border-color .15s ease;white-space:nowrap}.button{gap:7px;min-height:40px;padding:8px 13px;border-radius:9px;font-weight:650;font-size:13px}.button-primary{background:var(--primary);color:#fff}.button-primary:hover:not(:disabled){background:var(--primary-hover)}.button-light{background:var(--surface);border-color:var(--line);color:var(--ink)}.button-light:hover:not(:disabled){background:var(--subtle);border-color:#c4d7ee}.button-quiet{background:transparent;color:var(--muted);padding-inline:10px}.button-quiet:hover:not(:disabled){background:var(--accent-soft);color:var(--accent-dark)}.icon-button{width:34px;height:34px;flex:0 0 34px;border-radius:8px;padding:0;background:transparent;color:var(--muted)}.icon-button:hover:not(:disabled){color:var(--ink);background:var(--subtle)}main{width:100%;max-width:1690px;padding:29px clamp(20px,2.7vw,46px) 48px;margin-inline:auto}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:23px}h1,h2,p{margin:0}.page-heading h1{font-size:clamp(27px,2.35vw,36px);letter-spacing:.025em;line-height:1.3}.page-heading p,.panel-head p,.detail-body>p{color:var(--muted);font-size:13px;line-height:1.6;margin-top:5px}.period{display:inline-flex;gap:2px;border-radius:9px;background:#e3edf9;padding:4px;white-space:nowrap}.period button{min-height:30px;border:0;padding:4px 11px;border-radius:6px;background:transparent;color:var(--muted);font-size:12px}.period button:hover:not([aria-pressed=true]){background:#d6e6f9}.period button[aria-pressed=true]{background:var(--surface);color:var(--accent-dark);font-weight:700;box-shadow:0 1px 3px #193b651a}.date-picker-wrap{display:inline-flex;align-items:center;min-height:39px;border:1px solid var(--line);background:var(--surface);border-radius:9px;padding:2px}.date-picker-wrap .date-arrow{width:27px;height:30px;flex-basis:27px}.date-picker-wrap .date-arrow .icon{width:15px;height:15px}.date-control{display:inline-flex;align-items:center;color:var(--muted);gap:5px;padding:0 4px}.date-control .icon{width:15px;height:15px}.date-control input{color:var(--ink);max-width:124px;min-width:0;min-height:30px;border:0;background:transparent;padding:3px;font-size:12px}.date-control input[type=number]{width:67px}.date-control input::-webkit-inner-spin-button{appearance:none}.date-control input::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.64}.metric-grid,.analysis-grid,.settings-grid{display:grid;gap:16px}.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px}.metric-card,.panel{min-width:0;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:0 2px 4px #17365f08}.metric-card{min-height:130px;padding:15px 17px}.metric-card:first-child{background:#eaf3ff;border-color:#cbdff9}.metric-head{display:flex;align-items:center;justify-content:space-between}.metric-head h2{font-size:13px;font-weight:700;color:var(--muted)}.metric-icon{display:grid;place-items:center;width:33px;height:33px;flex:0 0 33px;border-radius:9px}.metric-icon .icon{width:17px;height:17px}.metric-blue{background:#d6e8ff;color:var(--accent-dark)}.metric-teal{background:#e1f2f2;color:#216f73}.metric-sky{background:#e8f3ff;color:#256494}.metric-indigo{background:#edf0fe;color:#4b5f9c}.metric-value{margin-top:5px;font-size:clamp(23px,2.15vw,35px);font-weight:740;line-height:1.22;overflow-wrap:anywhere;letter-spacing:-.065em}.metric-card p{margin-top:5px;font-size:11px;color:var(--muted);line-height:1.4}.metric-card .period-change{margin-right:5px;font-weight:750}.is-positive{color:var(--profit-text)!important}.is-negative{color:#9d443a!important}.analysis-grid{grid-template-columns:minmax(0,2.16fr) minmax(242px,1fr)}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;padding:18px 19px 0;gap:12px}.panel-head h2{font-size:17px;letter-spacing:.015em;line-height:1.4}.panel-head p{margin-top:3px;font-size:12px}.legend{display:flex;gap:13px;padding-top:5px;color:var(--muted);font-size:11px;white-space:nowrap}.legend span{display:inline-flex;align-items:center;gap:5px}.legend i,.cost-list i{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--cost-color, var(--accent))}.legend .legend-profit{background:var(--trend-profit)}.chart-wrap{position:relative;height:251px;margin:14px 15px 15px}#trend-chart{display:block;width:100%;height:100%;border-radius:6px}.chart-tooltip{position:absolute;z-index:1;width:min(153px,100%);padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:var(--surface);box-shadow:0 5px 15px #17365f21;color:var(--ink);font-size:11px;line-height:1.9;pointer-events:none}.chart-tooltip strong,.chart-tooltip span{display:block}.chart-tooltip span{display:flex;justify-content:space-between;gap:5px}.donut-wrap{display:grid;place-items:center;padding:14px 0 12px}.donut{width:125px;height:125px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--line) 0 100%)}.donut>div{border-radius:50%;width:98px;height:98px;display:grid;align-content:center;text-align:center;gap:2px;padding:6px;background:var(--surface)}.donut span{font-size:11px;color:var(--muted)}.donut strong{font-size:15px;letter-spacing:-.04em;overflow-wrap:anywhere;line-height:1.2}.cost-list{list-style:none;display:grid;gap:7px;margin:0;padding:1px 19px 17px}.cost-list li{display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:7px;font-size:12px;color:var(--muted)}.cost-list strong{color:var(--ink);font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}.orders-panel{margin-top:16px}.page#orders .orders-panel{margin-top:0}.action-link{display:inline-flex;align-items:center;gap:5px;color:var(--accent-dark);font-size:12px;text-decoration:none;white-space:nowrap;font-weight:700;padding:5px 0}.action-link:hover{text-decoration:underline}.action-link .icon{width:14px;height:14px}.table-wrap{overflow-x:auto;padding:13px 19px 10px}.data-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.data-table th,.data-table td{padding:11px}.data-table thead th{color:var(--muted);background:var(--subtle);font-size:12px;white-space:nowrap;font-weight:650}.data-table thead th:first-child{border-radius:7px 0 0 7px}.data-table thead th:last-child{border-radius:0 7px 7px 0}.data-table tbody tr+tr{border-top:1px solid var(--line)}.data-table td{color:#3a4f69}.data-table .table-amount{font-variant-numeric:tabular-nums;font-weight:700;color:var(--ink);white-space:nowrap}.data-table .table-nowrap{white-space:nowrap}.data-table .table-name{color:var(--ink);font-weight:700;white-space:nowrap}.data-table .table-product{min-width:110px;word-break:break-word}.data-table .table-action{text-align:right}.data-table button.action-link{padding:3px;background:none;border:0}.row-mark{color:var(--accent-dark)}.empty-state{text-align:center;min-height:146px;padding:18px 0 24px;display:grid;place-items:center;align-content:center;gap:6px}.empty-state span{color:var(--accent-dark);background:var(--accent-soft);padding:9px;border-radius:10px;height:36px}.empty-state strong{font-size:14px}.empty-state p{color:var(--muted);font-size:12px}.empty-state button{margin-top:5px}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-panel{padding:0 19px 19px}.settings-panel .panel-head{padding-inline:0}.settings-form{display:grid;gap:14px;margin-top:17px}.field{display:grid;gap:6px;font-size:13px;font-weight:650;color:var(--muted)}.field input,.field select{width:100%;min-width:0;min-height:40px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);padding:8px 10px;font-size:14px;font-weight:400}.field input::placeholder{color:#6b7f97}.form-actions,.export-options{flex-wrap:wrap}.export-panel{max-width:665px}.export-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px}.dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:17px;width:min(440px,calc(100% - 28px));padding:0;max-height:calc(100dvh - 32px);box-shadow:0 22px 55px #10284b40}.dialog::backdrop{background:#13274694}.dialog-body{position:relative;padding:23px}.dialog-close{position:absolute;top:14px;right:14px}.auth-brand{margin-bottom:11px}.auth-dialog h2,.detail-dialog h2{font-size:23px}.auth-dialog p,.detail-dialog p{color:var(--muted);font-size:13px;margin-top:5px;line-height:1.6}.auth-tabs{margin-top:14px;display:flex}.auth-tabs button{flex:1}.dialog .field-error{color:#9d443a;margin-top:-2px}.detail-dialog{width:min(790px,calc(100% - 28px))}.detail-body h2{padding-right:28px}.detail-body .table-wrap{padding-inline:0}.detail-dialog .form-actions{justify-content:flex-end;margin-top:14px}.detail-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:8px;margin-top:14px}.detail-stats>div{background:var(--subtle);border-radius:8px;padding:8px 10px}.detail-stats dt{color:var(--muted);font-size:11px}.detail-stats dd{margin:3px 0 0;font-size:14px;font-weight:700}.toast{position:fixed;right:19px;bottom:19px;z-index:5;max-width:min(390px,calc(100vw - 38px));padding:11px 15px;border-radius:9px;background:var(--sidebar);color:#f5f9ff;box-shadow:0 4px 18px #10284b40;font-size:13px}.page-error{padding:11px 14px;margin-bottom:14px;color:#9d443a;font-size:13px}@media(max-width:1120px){.app-shell{grid-template-columns:185px minmax(0,1fr)}.sidebar{padding-inline:12px}.topbar,main{padding-inline:22px}.metric-card{padding-inline:13px}}@media(max-width:960px){.app-shell{grid-template-columns:158px minmax(0,1fr)}.sidebar{padding-inline:10px}.sidebar .brand{gap:7px;padding-inline:4px}.sidebar .brand-icon{width:34px;height:34px;flex-basis:34px;border-radius:10px}.sidebar .brand-icon .icon{width:20px;height:20px}.brand strong{font-size:15px}.brand small{font-size:10px}.navigation a{gap:8px;padding-inline:11px;font-size:13px}.analysis-grid{grid-template-columns:minmax(0,1.65fr) minmax(175px,1fr)}.metric-grid,.analysis-grid,.settings-grid{gap:11px}.metric-grid{margin-bottom:11px}.metric-value{font-size:clamp(18px,2.5vw,24px)}.legend{gap:8px}}@media(max-width:740px){.app-shell{display:flex;flex-direction:column}.sidebar{position:static;height:auto;padding:12px 14px 9px;flex-direction:row;flex-wrap:wrap;gap:9px}.sidebar .brand{padding:0}.sidebar-bottom{padding:0;margin:0 0 0 auto;border:0;min-height:34px;order:1}.side-account{max-width:135px}.side-rule{display:none}.navigation{order:2;width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.navigation a{justify-content:center;gap:5px;min-height:38px;padding:5px 3px;white-space:nowrap;font-size:12px}.navigation a .icon{width:15px;height:15px}.navigation a[aria-current=page]:after{display:none}.topbar{padding:8px 14px;min-height:54px}.top-actions{gap:5px}.top-actions .button{padding:6px 8px;min-height:35px;font-size:12px}.top-actions .icon{width:15px;height:15px}.breadcrumb{display:none}.top-actions{margin-left:auto}main{padding:18px 14px 26px}.page-heading{flex-direction:column;align-items:flex-start;gap:11px;margin-bottom:15px}.heading-controls{flex-wrap:wrap;gap:7px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-card{min-height:105px}.metric-value{font-size:clamp(22px,4.75vw,34px)}}@media(max-width:530px){.analysis-grid,.settings-grid{grid-template-columns:minmax(0,1fr)}.panel-head{padding-inline:13px}.chart-wrap{margin-inline:8px;height:220px}.table-wrap{padding-inline:12px}.settings-panel{padding-inline:13px}.costs-panel{display:grid;grid-template-columns:minmax(107px,.75fr) minmax(0,1fr);column-gap:8px}.costs-panel .panel-head{grid-column:span 2}.donut-wrap{padding:12px 0 12px 9px}.donut{width:104px;height:104px}.donut>div{width:81px;height:81px}.cost-list{align-content:center;padding:8px 13px 10px 0}.cost-list li,.cost-list strong,.navigation a{font-size:11px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition-duration:.01ms!important}}.recognition-panel{display:grid;gap:12px;margin:2px 0 17px;padding:15px 16px;color:var(--ink, #182b43);background:var(--surface, #ffffff);border:1px solid var(--line, #dbe5f1);border-radius:12px}.recognition-head{display:flex;align-items:flex-start;gap:10px}.recognition-icon{display:grid;flex:0 0 34px;height:34px;place-items:center;color:var(--accent-dark, #184d8a);background:var(--accent-soft, #e7f1ff);border-radius:8px}.recognition-head h3{margin:0;color:var(--ink, #182b43);font-size:14px;line-height:1.5}.recognition-head p{margin:3px 0 0;color:var(--muted, #52667e);font-size:12px;line-height:1.6}.recognition-actions,.recognition-footer{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.recognition-footer{justify-content:space-between}.recognition-footer span,.recognition-status{color:var(--muted, #52667e);font-size:12px;line-height:1.5;overflow-wrap:anywhere}.recognition-status.recognition-error{color:#9b3327}.recognition-source,.recognition-apply{min-height:34px;padding:6px 12px;border-radius:8px;font:inherit;font-size:12px;font-weight:650;cursor:pointer}.recognition-source{color:var(--accent-dark, #184d8a);background:var(--surface, #ffffff);border:1px solid var(--line, #dbe5f1)}.recognition-source:hover:not(:disabled),.recognition-source[data-recording]{background:var(--accent-soft, #e7f1ff)}.recognition-apply{color:#fff;background:var(--primary, #2360a9);border:1px solid var(--primary, #2360a9)}.recognition-apply:hover:not(:disabled){background:var(--primary-hover, #184d8a)}.recognition-apply:disabled,.recognition-source:disabled{cursor:not-allowed;opacity:.6}.recognition-label{display:grid;gap:6px;font-size:12px;font-weight:650}.recognition-text{box-sizing:border-box;width:100%;min-height:70px;padding:9px 10px;resize:vertical;color:var(--ink, #182b43);background:var(--surface, #ffffff);border:1px solid var(--line, #dbe5f1);border-radius:8px;font:inherit;font-weight:400;line-height:1.55}.recognition-text:focus-visible,.recognition-source:focus-visible,.recognition-apply:focus-visible{outline:2px solid var(--accent-dark, #184d8a);outline-offset:2px}body:has(.order-editor-dialog[open]){overflow:hidden}.order-editor-dialog{width:min(960px,calc(100% - 36px));max-width:none;max-height:calc(100dvh - 36px);margin:auto;padding:0;overflow:hidden;color:var(--ink, #182b43);background:var(--surface, #ffffff);border:1px solid var(--line, #dbe5f1);border-radius:20px;box-shadow:0 26px 78px #162e4b3d}.order-editor-dialog::backdrop{background:#142c4785;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.order-editor-form{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:inherit}.order-editor-header,.order-editor-footer{padding:17px 24px;background:var(--surface, #ffffff)}.order-editor-header,.order-editor-footer-content{display:flex;align-items:center;justify-content:space-between;gap:18px}.order-editor-header{border-bottom:1px solid var(--line, #dbe5f1)}.order-editor-header h2{margin:0;font-size:22px;font-weight:700;letter-spacing:-.035em}.order-editor-header h2:focus{outline:none}.order-editor-close,.order-editor-remove{display:grid;place-items:center;flex:0 0 auto;height:34px;width:34px;padding:0;color:var(--muted, #52667e);background:transparent;border:1px solid transparent;border-radius:8px;font-size:23px;font-weight:400;line-height:1}.order-editor-close:hover,.order-editor-remove:hover:enabled{border-color:var(--line, #dbe5f1);background:var(--bg, #f1f6fc);color:var(--accent-dark, #184d8a)}.order-editor-body{min-width:0;overflow:auto;overscroll-behavior:contain;padding:20px 24px 22px;background:var(--bg, #f1f6fc);scrollbar-gutter:stable}.order-editor-fields{min-width:0;margin:0;padding:0;border:0}.order-editor-modes{display:inline-flex;max-width:100%;align-items:center;gap:3px;padding:4px;background:var(--accent-soft, #e7f1ff);border:1px solid var(--line, #dbe5f1);border-radius:11px}.order-editor-modes button{min-height:37px;padding:0 16px;color:var(--muted, #52667e);background:transparent;border:0;border-radius:8px;font-size:13px;font-weight:650;white-space:nowrap}.order-editor-modes button:hover,.order-editor-modes button[aria-pressed=true]{color:var(--accent-dark, #184d8a)}.order-editor-modes button[aria-pressed=true]{background:var(--surface, #ffffff);box-shadow:0 1px 3px #182b431f}.order-editor-recognition,.order-editor-announcement:not(:empty){margin-top:14px}.order-editor-announcement:not(:empty),.order-editor-error{padding:9px 12px;border-radius:8px;font-size:13px}.order-editor-announcement:not(:empty){color:#2f5d48;background:#e5eee5}.order-editor-announcement.order-editor-announcement-warning{color:#922e25;background:#f9e8e4}.order-editor-section{margin-top:14px;padding:15px 16px 16px;background:var(--surface, #ffffff);border:1px solid var(--line, #dbe5f1);border-radius:13px}.order-editor-section h3{margin:0 0 13px;font-size:15px;font-weight:700;letter-spacing:-.02em}.order-editor-section-header{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:12px}.order-editor-section-header p{margin:0 0 13px;color:var(--muted, #52667e);font-size:12px}.order-editor-info{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.order-editor-label,.order-editor-cell{display:flex;flex-direction:column;gap:5px;min-width:0;margin:0;color:var(--muted, #52667e);font-size:12px;font-weight:600}.order-editor-dialog input:not([type=file]){box-sizing:border-box;display:block;min-width:0;width:100%;height:39px;padding:0 9px;border:1px solid var(--line, #dbe5f1);border-radius:8px;color:var(--ink, #182b43);background:var(--surface, #ffffff);font:inherit;font-size:14px;font-weight:400;font-variant-numeric:tabular-nums}.order-editor-dialog input::placeholder{color:#63758b}.order-editor-dialog input[type=number]{appearance:textfield;-moz-appearance:textfield}.order-editor-dialog input::-webkit-outer-spin-button,.order-editor-dialog input::-webkit-inner-spin-button{appearance:none;margin:0}.order-editor-dialog button{cursor:pointer;font-family:inherit}.order-editor-dialog button:disabled{cursor:default;opacity:.5}.order-editor-dialog :is(button,input):focus-visible{outline:2px solid var(--accent-dark, #184d8a);outline-offset:2px}.order-editor-item-heading,.order-editor-row{display:grid;grid-template-columns:minmax(105px,1.7fr) minmax(58px,1fr) 59px repeat(3,minmax(66px,1fr)) 34px;gap:8px}.order-editor-item-heading{margin-bottom:6px;color:var(--muted, #52667e);font-size:12px;font-weight:600}.order-editor-lines{display:grid;gap:8px}.order-editor-row{align-items:start}.order-editor-row-title{display:none}.order-editor-row .order-editor-cell>span{position:absolute;clip-path:inset(50%);overflow:hidden;height:1px;width:1px;white-space:nowrap}.order-editor-total-cell{min-width:0}.order-editor-dialog .order-editor-total-cell input{background:#f7faff}.order-editor-reset{margin-top:4px;padding:2px 1px;border:0;color:var(--accent-dark, #184d8a);background:none;font-size:11px;font-weight:650;text-decoration:underline;text-underline-offset:3px}.order-editor-remove{margin-top:2px}.order-editor-add{display:inline-flex;align-items:center;gap:5px;min-height:35px;margin-top:10px;padding:0 10px;color:var(--accent-dark, #184d8a);background:var(--accent-soft, #e7f1ff);border:1px solid transparent;border-radius:8px;font-size:12px;font-weight:650}.order-editor-add span{font-size:17px;font-weight:500;line-height:1}.order-editor-add:hover{border-color:var(--accent, #2360a9)}.order-editor-footer{border-top:1px solid var(--line, #dbe5f1)}.order-editor-error{margin-bottom:10px;color:#922e25;background:#f9e8e4}.order-editor-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(10px,3.5vw,34px);margin:0}.order-editor-summary div{min-width:0}.order-editor-summary dt{color:var(--muted, #52667e);font-size:12px;white-space:nowrap}.order-editor-summary dd{margin:3px 0 0;overflow-wrap:anywhere;color:var(--ink, #182b43);font-size:clamp(13px,2vw,17px);font-weight:700;font-variant-numeric:tabular-nums}.order-editor-summary .order-editor-profit{color:var(--profit-text, #36644e)}.order-editor-summary .order-editor-loss{color:#922e25}.order-editor-actions{display:flex;flex-shrink:0;gap:8px}.order-editor-primary,.order-editor-secondary{min-height:42px;padding:0 15px;border:1px solid var(--line, #dbe5f1);border-radius:9px;font-size:13px;font-weight:650;white-space:nowrap}.order-editor-primary{color:#fff;background:var(--primary, #2360a9);border-color:var(--primary, #2360a9)}.order-editor-primary:hover:enabled{background:var(--primary-hover, #184d8a)}.order-editor-secondary{color:var(--ink, #182b43);background:var(--surface, #ffffff)}.order-editor-secondary:hover:enabled{background:var(--bg, #f1f6fc)}@media(max-width:650px){.order-editor-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:14px}.order-editor-header,.order-editor-footer{padding:12px 13px}.order-editor-header h2{font-size:19px}.order-editor-body{padding:13px;scrollbar-gutter:auto}.order-editor-section{margin-top:10px;padding:12px}.order-editor-info{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.order-editor-info:not(.order-editor-fees) .order-editor-label:first-child{grid-column:1 / -1}.order-editor-dialog input:not([type=file]){font-size:16px}.order-editor-item-heading{display:none}.order-editor-row{grid-template-columns:repeat(2,minmax(0,1fr));position:relative;gap:8px;padding:10px;background:var(--bg, #f1f6fc);border:1px solid var(--line, #dbe5f1);border-radius:10px}.order-editor-row-title{display:block;grid-column:1 / -1;min-height:23px;padding-right:30px;color:var(--ink, #182b43);font-size:12px;font-weight:650}.order-editor-row .order-editor-cell>span{position:static;clip-path:none;overflow:visible;width:auto;height:auto;white-space:normal}.order-editor-remove{position:absolute;top:5px;right:5px;width:30px;height:29px;margin:0}}@media(max-width:480px){.order-editor-footer-content{display:grid;gap:10px}.order-editor-actions{justify-content:flex-end}.order-editor-primary{flex:1 1 auto}}
