:root{color:#17343d;background:#f4f7f8;font-family:Inter,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;line-height:1.5;font-weight:400;--accent: #00c4cc;--accent2: #00a0a8;--accent-soft: #e8fbfc;--accent-ink: #007980}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(180deg,#f8fbfc,#eef4f6)}button,input,select{font:inherit}#root{min-height:100vh}.app-shell{min-height:100vh;display:flex;flex-direction:column}.app-header{display:flex;justify-content:space-between;align-items:center;padding:18px 28px;background:#ffffffeb;border-bottom:1px solid #dbe7ea;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.brand{display:flex;gap:14px;align-items:center}.brand-mark{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid #dbe7ea;overflow:hidden}.brand-mark img{width:28px;height:28px;object-fit:contain;display:block}.brand h1,.form-panel-header h2,.modal-header h2{margin:0;font-size:1.15rem}.brand p,.form-panel-header p,.modal-header p{margin:2px 0 0;color:#6d8790;font-size:.9rem}.header-actions{display:flex;gap:10px;align-items:center}.ghost-button,.lang-button,.header-link{border:1px solid #d7e4e8;background:#fff;color:#35515a;border-radius:999px;padding:8px 14px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center}.brand-logo-mark{width:42px;height:42px;object-fit:contain}.brand-title-quote{margin:0;font-size:1.35rem;font-weight:800;letter-spacing:.05em;color:var(--accent)}.app-header-quote .brand p{color:#6d8790}.view-switcher{display:none}.workspace{flex:1;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(320px,420px);gap:18px;padding:18px}.workspace-left{display:flex;flex-direction:column;min-height:calc(100vh - 96px)}.chat-panel,.form-panel,.modal-card{background:#fff;border:1px solid #dbe7ea;border-radius:22px;box-shadow:0 10px 30px #17343d0d}.chat-panel{flex:1;display:flex;flex-direction:column;overflow:hidden}.chat-messages{flex:1;overflow:auto;padding:24px;display:flex;flex-direction:column;gap:16px}.message-row{display:flex}.message-row.is-user{justify-content:flex-end}.message-bubble{max-width:min(720px,85%);padding:14px 16px;border-radius:18px;background:#f3f8f9;border:1px solid #e1ecef}.message-row.is-user .message-bubble{background:var(--accent-soft);border-color:#bfe9e5}.message-bubble p{margin:0}.message-bubble p+p{margin-top:8px}.mode-switcher{display:flex;gap:12px;padding:0 24px 20px}.mode-switcher button{flex:1;border:1px solid #d7e4e8;background:#f7fbfc;color:#5d7b84;border-radius:14px;padding:14px 10px;font-weight:600;letter-spacing:.04em;cursor:pointer}.mode-switcher button.active{background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;border-color:transparent}.message-input{margin-top:14px;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:14px;background:#fff;border:1px solid #dbe7ea;border-radius:18px}.input-tools{display:flex;gap:8px}.message-input input{width:100%;border:none;outline:none;background:transparent}.send-button,.submit-button{border:none;border-radius:12px;padding:12px 18px;background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;cursor:pointer;font-weight:600}.send-button{border-radius:999px}.submit-button:disabled{opacity:.45;cursor:not-allowed}.form-panel{padding:22px;display:flex;flex-direction:column;max-height:calc(100vh - 96px)}.form-panel-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:18px}.status-badge{border-radius:999px;padding:6px 12px;font-size:.82rem;font-weight:600}.status-pending{background:#fff4df;color:#9a6400}.status-ready{background:#e5f8ef;color:#0f7a4d}.form-fields{overflow:auto;display:flex;flex-direction:column;gap:14px;padding-right:4px}.form-field{display:flex;flex-direction:column;gap:8px}.field-label{font-size:.92rem;color:#47636c}.field-label em{color:inherit;font-style:normal;margin-right:4px}.required-star{color:var(--accent);font-weight:700;margin-right:4px}.field-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.field-help{color:#7a939b;font-size:.86rem;line-height:1.35;text-align:right}.form-field input,.form-field select{width:100%;border:1px solid #d7e4e8;border-radius:12px;padding:12px 14px;background:#fbfdfe}.validation-box{margin-top:16px;padding:12px 14px;border-radius:12px;background:#fff7ea;color:#8a5a00;font-size:.92rem}.submit-button{margin-top:18px}.form-footnote{margin:12px 0 0;color:#7a939b;font-size:.84rem}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#1123296b;display:grid;place-items:center;padding:20px;z-index:20}.modal-card{width:min(920px,100%);max-height:85vh;overflow:auto;padding:24px}.modal-header,.history-item-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}.help-grid section{padding:16px;border-radius:16px;background:#f7fbfc;border:1px solid #e3edf0}.help-grid h3{margin:0 0 10px}.help-grid p,.help-grid li,.empty-state{margin:0;color:#5f7b84}.help-grid ul{margin:0;padding-left:18px}.history-list{display:flex;flex-direction:column;gap:12px;margin-top:18px}.history-item{border:1px solid #e3edf0;border-radius:16px;padding:14px;background:#f9fcfd}.history-item pre{margin:10px 0 0;white-space:pre-wrap;word-break:break-word;font-size:.82rem;color:#47636c}.region-switcher{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.region-switcher button{border:1px solid #d7e4e8;background:#f7fbfc;color:#5d7b84;border-radius:999px;padding:8px 14px;font-weight:600;cursor:pointer}.region-switcher button.active{background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;border-color:transparent}.product-filters{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:10px;margin:14px 0}.product-filters input,.product-filters select,.inline-select{width:100%;border:1px solid #d7e4e8;border-radius:12px;padding:10px 12px;background:#fbfdfe}.inline-select{width:auto;min-width:140px}.add-product-modal{width:min(860px,100%)}.product-picker-list{max-height:52vh;overflow:auto}.quote-table-evelab thead th{background:var(--accent);color:#fff;border-bottom:none}.quote-table-evelab tbody tr:nth-child(2n){background:var(--accent-soft)}.quote-line-header{margin-top:22px;padding-top:18px;border-top:1px solid #e9ecef}.view-switcher{display:flex;gap:8px;padding:4px;border:1px solid #d7e4e8;border-radius:999px;background:#f7fbfc}.view-switcher button{border:none;background:transparent;color:#5d7b84;border-radius:999px;padding:8px 16px;font-weight:600;cursor:pointer}.view-switcher button.active{background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff}.quote-main{flex:1;padding:18px;width:100%;box-sizing:border-box}.quote-workspace{display:flex;flex-direction:column;gap:16px;max-width:1120px;margin:0 auto;width:100%}.quote-workspace.quote-workspace-evelab{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);gap:18px;max-width:min(1440px,100%);align-items:start}.quote-workspace-evelab .quote-editor-card,.quote-workspace-evelab .quote-pdf-history{grid-column:1;min-width:0}.quote-workspace-evelab .quote-preview-pane{grid-column:2;grid-row:1 / span 2;position:sticky;top:18px;min-width:0;align-self:start;z-index:1}.quote-preview-caption{margin:0 0 10px;color:#6c757d;font-size:.86rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.quote-sheet{background:#fff;border:1px solid #dee2e6;border-radius:18px;box-shadow:0 18px 40px #21252914;padding:26px 24px 22px;color:#212529;font-family:Segoe UI,Helvetica Neue,Arial,sans-serif;overflow:hidden;width:100%}.quote-sheet-brand{display:flex;align-items:center;gap:12px;margin-bottom:22px}.quote-sheet-mark{width:44px;height:44px;object-fit:contain;flex-shrink:0}.quote-sheet-brand-text{font-size:clamp(1.35rem,2.4vw,2rem);font-weight:800;letter-spacing:.05em;line-height:1.05;color:var(--accent);text-transform:uppercase}.quote-sheet-title{margin:0 0 18px;font-size:1.35rem;font-weight:700;letter-spacing:.04em;color:#212529}.quote-sheet-block{display:flex;flex-direction:column;gap:12px;margin-bottom:18px;max-width:100%}.quote-sheet-field span{display:block;font-size:.8rem;font-weight:700;color:#212529;margin-bottom:3px}.quote-sheet-field strong{display:block;font-size:.92rem;font-weight:400;color:#212529;white-space:pre-line;word-break:break-word}.quote-sheet-table-wrap{overflow-x:auto;margin-top:8px;border-radius:0}.quote-sheet-table{width:100%;border-collapse:collapse;table-layout:fixed}.quote-sheet-table th{background:var(--accent);color:#fff;text-align:left;font-size:.78rem;font-weight:600;padding:10px}.quote-sheet-table th:nth-child(1),.quote-sheet-table td:nth-child(1){width:38%}.quote-sheet-table th:nth-child(2),.quote-sheet-table th:nth-child(3),.quote-sheet-table th:nth-child(4),.quote-sheet-table td:nth-child(2),.quote-sheet-table td:nth-child(3),.quote-sheet-table td:nth-child(4){text-align:right;width:20.666%}.quote-sheet-table td{padding:10px;font-size:.82rem;border:none;word-break:break-word}.quote-sheet-table tbody tr:nth-child(2n){background:var(--accent-soft)}.quote-sheet-footer{margin-top:18px;text-align:right}.quote-sheet-discount{color:#6c757d;font-size:.88rem;margin-bottom:8px}.quote-sheet-grand{font-size:.95rem;font-weight:600;color:#212529}.quote-pdf-history{margin-top:0}@media(max-width:1100px){.quote-workspace.quote-workspace-evelab{grid-template-columns:1fr}.quote-workspace-evelab .quote-editor-card,.quote-workspace-evelab .quote-pdf-history,.quote-workspace-evelab .quote-preview-pane{grid-column:1;grid-row:auto;position:static}}.quote-card{background:#fff;border:1px solid #dbe7ea;border-radius:22px;box-shadow:0 10px 30px #17343d0d;padding:22px}.quote-card-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}.quote-card-header h2{margin:0;font-size:1.1rem}.quote-card-header p{margin:4px 0 0;color:#6d8790;font-size:.9rem}.quote-header-actions{display:flex;gap:8px;flex-wrap:wrap}.ghost-button.is-active{background:var(--accent-soft);border-color:#bfe9e5;color:var(--accent2)}.quote-meta-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.quote-meta-span{grid-column:span 2}.quote-meta-grid textarea{width:100%;border:1px solid #d7e4e8;border-radius:12px;padding:12px 14px;background:#fbfdfe;resize:vertical;font:inherit}.quote-notice{margin:14px 0 0;padding:10px 12px;border-radius:12px;background:#e7f8f7;color:#0f8f89;font-size:.92rem}.quote-table-wrap{overflow:auto}.quote-table{width:100%;border-collapse:collapse;min-width:720px}.quote-table th,.quote-table td{text-align:left;padding:12px 10px;border-bottom:1px solid #e6eef1;vertical-align:middle;font-size:.92rem}.quote-table th{color:#6d8790;font-weight:600;background:#f8fbfc}.product-link,.link-button{color:#0b7ea4;background:none;border:none;padding:0;cursor:pointer;font:inherit;text-decoration:underline;text-underline-offset:2px}.inline-number{width:110px;border:1px solid #d7e4e8;border-radius:10px;padding:8px 10px;background:#fbfdfe}.quote-totals{margin-top:16px;display:flex;flex-direction:column;gap:8px;align-items:flex-end}.quote-totals>div{display:flex;gap:24px;min-width:320px;justify-content:space-between;color:#47636c}.quote-totals .is-grand{margin-top:4px;padding-top:10px;border-top:1px solid #dbe7ea;color:#17343d;font-size:1.05rem}.pdf-row-actions{display:flex;gap:8px}.product-picker-list{display:flex;flex-direction:column;gap:10px;margin-top:16px}.product-picker-item{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid #e3edf0;border-radius:14px;background:#f9fcfd;cursor:pointer}.product-picker-item.is-selected{border-color:#bfe9e5;background:var(--accent-soft)}.product-picker-item strong,.product-picker-item span,.product-picker-item em{display:block}.product-picker-item span{color:#5f7b84;margin-top:2px}.product-picker-item em{margin-top:6px;font-style:normal;color:#17343d;font-weight:600}.modal-footer-actions{margin-top:18px;display:flex;justify-content:flex-end}.add-product-modal{width:min(640px,100%)}@media(max-width:980px){.workspace{grid-template-columns:1fr}.form-panel{max-height:none}.help-grid{grid-template-columns:1fr}.app-header{flex-wrap:wrap;gap:12px}.quote-meta-grid{grid-template-columns:1fr}.quote-meta-span{grid-column:span 1}.quote-card-header{flex-direction:column}.product-filters{grid-template-columns:1fr}}.auth-gate{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(180deg,#f8fbfc,#eef4f6)}.auth-card{width:min(420px,100%);background:#fff;border:1px solid #dbe7ea;border-radius:22px;box-shadow:0 18px 40px #17343d14;padding:36px 28px;text-align:center}.auth-logo{width:56px;height:56px;object-fit:contain;margin-bottom:12px}.auth-card h1{margin:0;color:var(--accent);letter-spacing:.06em;font-size:1.45rem}.auth-subtitle{margin:6px 0 16px;color:#5d7b84;font-weight:600}.auth-card p{color:#5d7b84;line-height:1.55}.auth-error{color:#b42318!important;background:#fef3f2;border-radius:12px;padding:8px 10px}.auth-hint{margin-top:16px;font-size:.82rem;color:#8aa0a8!important}.header-user{font-size:.88rem;color:#5d7b84;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
