@font-face{font-family:Noto;src:url(/fonts/NotoSans-Regular.ttf) format("truetype");font-weight:400;font-display:swap}@font-face{font-family:Noto;src:url(/fonts/NotoSans-Bold.ttf) format("truetype");font-weight:700;font-display:swap}:root{font-family:Noto,system-ui,sans-serif;color:#192e46;background:#f5f7fa;font-synthesis:none;font-size:14px;--blue:#0e3d78;--muted:#66788c;--line:#dfe6ed}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #609de0;outline-offset:3px}button{border:0}h1,h2,h3,p{margin-top:0}h1{font-size:32px;line-height:1.2;letter-spacing:-1px;margin-bottom:12px;overflow-wrap:anywhere}h2{font-size:18px;letter-spacing:-.35px;margin-bottom:16px}h3{font-size:16px}p{line-height:1.6}svg{flex-shrink:0}.app-shell{max-width:1120px;margin:auto}.app-header{height:90px;display:flex;align-items:center;justify-content:space-between;padding:0 38px}.brand-button{background:none;display:flex;align-items:center;gap:10px;text-align:left;color:var(--blue);padding:0}.brand-button img{width:43px;height:43px;border-radius:12px}.brand-button span{font-size:13px;font-weight:700;letter-spacing:1.5px}.brand-button small{display:block;font-size:10px;letter-spacing:2.8px;font-weight:400;margin-top:3px}.icon-button{width:38px;min-width:38px;height:38px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:transparent;color:#677a91}.icon-button:hover{background:#e7eef6}.connection-line{padding:0 38px 19px;display:flex;gap:7px;align-items:center;font-size:11px;color:var(--muted)}.ready-dot,.pending-dot{width:6px;height:6px;border-radius:50%;background:#328367}.pending-dot{background:#b38b40}main{padding:0 38px 32px}.hero{display:flex;justify-content:space-between;overflow:hidden;position:relative;background:linear-gradient(115deg,#102f5a,#104985);border-radius:22px;padding:36px 38px;color:#fff;margin-bottom:35px;min-height:300px}.eyebrow{display:block;font-size:10px;letter-spacing:2px;font-weight:700;margin-bottom:14px;color:#839fbf}.hero .eyebrow{color:#a9c5e5}.hero h1{font-size:40px;letter-spacing:-1.3px}.hero p{color:#d3e0ed;line-height:1.65;margin-bottom:24px}.primary,.secondary,.destructive{min-height:46px;padding:11px 17px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:13px}.primary{background:var(--blue);color:#fff}.primary:hover{background:#175591}.hero .primary{background:#fff;color:var(--blue)}.secondary{background:#fff;color:var(--blue);border:1px solid var(--line)}.secondary:hover{background:#f3f7fc}.destructive{background:#b53d42;color:#fff}.hero-art{display:flex;align-items:center;padding-right:30px;transform:rotate(9deg)}.paper-art{background:#fff;color:var(--blue);width:184px;height:220px;border-radius:9px;box-shadow:12px 16px #ffffff13;padding:22px 20px}.paper-art span{font-size:7px;letter-spacing:1px}.paper-art b{display:block;font-size:24px;padding:10px 0 18px}.paper-art i{display:block;height:18px;margin-bottom:8px;background:#e9eff5;border-left:42px solid #d3deeb}.paper-art strong{display:block;font-size:12px;text-align:right;padding-top:6px}.history-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.history-heading h2{margin-bottom:6px}.history-heading p,.samples>p{font-size:12px;color:var(--muted);margin:0}.count{font-size:11px;padding:3px 7px;border-radius:6px;background:#e5ecf5;color:var(--blue);margin-left:5px;vertical-align:middle}.search{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:2px 13px;margin-bottom:15px;color:#91a0af}.search input{border:0;background:none;width:100%;height:42px;outline-offset:0}.quote-list{display:grid;grid-template-columns:1fr 1fr;gap:14px}.quote-card{border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden;min-width:0}.quote-open{display:flex;align-items:center;gap:13px;padding:20px 17px;width:100%;text-align:left;background:transparent;color:inherit}.document-icon{width:43px;height:50px;background:#edf3fa;display:flex;align-items:center;justify-content:center;color:var(--blue);border-radius:10px;flex-shrink:0}.quote-info{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}.quote-info strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quote-info>span{font-size:11px;color:var(--muted)}.quote-info .quote-mode{font-size:9px;text-transform:uppercase;letter-spacing:.5px}.quote-bottom{display:flex;align-items:center;border-top:1px solid #edf1f5;padding:3px 9px 3px 18px;background:#fcfdff;gap:2px}.quote-bottom>span{font-size:10px;font-weight:700;flex:1;overflow-wrap:anywhere}.empty-state{text-align:center;padding:38px 20px;color:var(--muted)}.empty-state svg{color:#a6b8cc;margin-bottom:14px}.empty-state h3{color:#324c6c;margin-bottom:7px}.empty-state p{font-size:12px}.samples{margin-top:30px;padding-top:27px;border-top:1px solid var(--line)}.samples h2{margin-bottom:5px}.samples>div{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.samples button{display:flex;align-items:center;text-align:left;background:#edf2f8;border:1px solid #e2e9f2;color:#325374;padding:15px 12px;border-radius:11px;gap:9px;font-size:11px}.samples button>span:nth-child(2){flex:1}.sample-letter{background:#fff;color:var(--blue);width:25px;height:25px;border-radius:7px;display:grid;place-items:center;font-weight:700}.local-note{display:flex;align-items:center;gap:12px;padding:22px 0 0;color:#79899b}.local-note p{font-size:11px;margin:0}.local-note b{color:#536a82}.app-footer{text-align:center;color:#8b9bab;font-size:10px;padding:24px 20px 32px;border-top:1px solid #e4eaf0}.app-footer span{margin:0 8px}.hidden{display:none}.text-button{display:inline-flex;align-items:center;gap:7px;background:none;color:var(--blue);padding:10px 0;font-size:12px;font-weight:700;min-height:40px}.danger{color:#af454d}.editor-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:22px}.save-status{font-size:10px;color:#57816d;display:flex;align-items:center;gap:5px}.save-status.failed{color:#ad3b40}.editor-heading h1{font-size:28px}.page-heading p{color:var(--muted);font-size:12px}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px;align-items:start;margin-top:27px}.panel,.item-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:22px;margin-bottom:18px;min-width:0}.panel h2{font-size:15px}.mode-control{display:flex;padding:4px;background:#f0f3f7;border-radius:10px;gap:4px}.mode-control button{flex:1;background:none;padding:10px 5px;border-radius:7px;color:#687c92;font-size:12px;font-weight:700}.mode-control button.active{background:#fff;box-shadow:0 1px 4px #20385614;color:var(--blue)}.hint{font-size:11px;color:var(--muted);line-height:1.6}.mode-control+.hint{margin:9px 0 20px}.field{display:flex;flex-direction:column;gap:7px;min-width:0;margin:0 0 16px}.field>span{font-size:11px;font-weight:700;color:#50657b}.field input,.field textarea,.field select{width:100%;min-width:0;min-height:43px;border:1px solid #dce3ec;border-radius:8px;padding:10px 11px;background:#fff;color:#203a55;font-size:14px}.field textarea{resize:vertical}.field input::placeholder,.field textarea::placeholder{color:#9aa8b7}.field small{font-size:10px;color:#8291a0;font-weight:400;line-height:1.5}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:26px 0 15px}.section-heading h2{margin:0}.section-heading>span{font-size:11px;color:var(--muted)}.item-card{padding:0;overflow:hidden}.item-head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:#f9fbfd;border-bottom:1px solid #e8edf3;gap:4px}.item-head>div{display:flex;align-items:center;gap:8px}.item-head b{font-size:12px}.type-icon{background:#e9f0f8;color:var(--blue);border-radius:8px;display:grid;place-items:center;width:32px;height:32px}.item-head .row-actions{gap:0}.row-actions .icon-button{width:32px;min-width:32px}.item-fields{padding:18px 20px 0}.item-total{border-top:1px solid var(--line);padding:16px 0;display:flex;align-items:center;justify-content:space-between;gap:8px}.item-total>span{font-size:10px;color:#8595a8}.item-total strong{font-size:15px;overflow-wrap:anywhere}.formula{font-size:11px;background:#f0f5fb;color:#4a6e93;padding:11px;border-radius:7px;margin:0 0 8px}.field-errors{list-style:none;margin:0 0 13px;padding:0;font-size:11px;color:#a45d26;line-height:1.7}.add-buttons{display:flex;gap:8px;margin:18px 0 26px;flex-wrap:wrap}.add-buttons .secondary{flex:1;padding:10px;font-size:11px}.add-empty{border:1px dashed #cbd7e4;border-radius:13px;text-align:center;padding:25px 15px;color:#8295ab}.add-empty p{font-size:12px;margin:10px 0 0}.editor-summary{position:sticky;top:20px;background:#fff;border:1px solid var(--line);border-radius:15px;padding:22px}.editor-summary h2{font-size:15px}.total-box{padding:16px;border-radius:10px;background:#edf3fa;margin-bottom:20px;color:var(--blue)}.total-line{display:flex;flex-direction:column;gap:6px;margin-bottom:15px}.total-line span{font-size:10px;text-transform:uppercase;letter-spacing:.6px}.total-line strong{font-size:18px;overflow-wrap:anywhere}.total-box small{font-size:10px;line-height:1.6;display:block;color:#6f8399}.total-box p{font-size:11px;margin:6px 0 0}.full{width:100%;margin-bottom:10px}.summary-actions{border-top:1px solid var(--line);display:flex;justify-content:space-between;margin-top:18px;padding-top:7px}summary{font-size:11px;color:var(--blue);padding:9px 0 15px;cursor:pointer}details .field:last-child{margin-bottom:0}.preview-actions{display:flex;gap:10px;margin:20px 0}.pdf-pages{max-width:680px;margin:0 auto}.pdf-page{margin:24px 0;min-height:450px;text-align:center}.pdf-page canvas{width:100%;height:auto;min-height:350px;background:#fff;box-shadow:0 3px 22px #1a35561c;aspect-ratio:595/842;display:block}.pdf-page span{display:block;font-size:10px;color:var(--muted);padding:13px}.error-banner,.update-banner{margin:0 38px 20px;padding:13px 16px;border-radius:10px;font-size:12px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.error-banner{background:#fff0ed;color:#9c3d2f;border:1px solid #f4d0c7}.error-banner>div{flex:1;white-space:pre-line;min-width:200px}.error-banner>button:not(.icon-button),.update-banner button{background:#fff;padding:9px 12px;border-radius:7px;color:inherit;font-weight:700}.update-banner{background:#e6effb;color:var(--blue);justify-content:space-between}.toast{position:fixed;z-index:100;bottom:calc(18px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%);width:max-content;max-width:90vw;background:#163b50;color:#fff;padding:13px 18px;border-radius:12px;box-shadow:0 4px 20px #0002;font-size:12px;display:flex;align-items:center;gap:9px}dialog{border:1px solid var(--line);border-radius:19px;width:calc(100% - 30px);max-width:510px;padding:24px;color:#213952;max-height:88dvh;overflow:auto;box-shadow:0 20px 70px #152d4955}dialog::backdrop{background:#132d4d77;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.modal-head h2{margin:0}.modal-body p,dialog>p{font-size:12px;color:var(--muted)}.modal-body h3{font-size:14px;margin-bottom:10px}.modal-body hr{border:0;border-top:1px solid var(--line);margin:24px 0}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}@media(max-width:720px){.app-header{height:78px;padding:0 20px}.connection-line{padding:0 21px 18px}main{padding:0 18px 26px}.hero{padding:27px 24px;margin-bottom:28px;min-height:290px;border-radius:18px}.hero h1{font-size:34px}.hero .eyebrow{font-size:8px;letter-spacing:1.6px}.hero p{font-size:12px}.hero-art{padding:0;position:absolute;right:-42px;top:57px;opacity:.17;pointer-events:none}.hero>div:first-child{z-index:1}.history-heading{align-items:flex-start;gap:10px}.history-heading h2{font-size:17px}.history-heading p{font-size:10px;max-width:160px}.history-heading .secondary{padding:9px 11px;font-size:11px;min-height:41px;white-space:nowrap}.quote-list{grid-template-columns:1fr}.quote-open{padding:18px 15px}.quote-info strong{font-size:14px}.quote-bottom>span{font-size:10px}.samples>div{grid-template-columns:1fr;gap:8px}.samples button{font-size:12px;padding:12px}.local-note{align-items:flex-start}.editor-layout{grid-template-columns:1fr;gap:0;margin-top:22px}.editor-summary{position:static;padding:20px}.editor-top{align-items:flex-start;gap:5px;margin-bottom:16px}.editor-top .text-button{font-size:10px;min-height:30px;padding:0}.save-status{font-size:9px;max-width:140px;text-align:right;line-height:1.5;justify-content:flex-end}.editor-heading h1{font-size:25px}.eyebrow{font-size:9px}.panel{padding:18px}.field input,.field textarea,.field select{font-size:16px}.field-grid{gap:10px}.field>span{font-size:10px;line-height:1.4}.item-fields{padding:17px 16px 0}.item-head{padding:10px}.item-head b{font-size:11px}.item-head>div{gap:6px}.row-actions .icon-button{min-width:33px;width:33px}.total-line{flex-direction:row;align-items:center;justify-content:space-between;gap:12px}.total-line strong{font-size:19px}.error-banner,.update-banner{margin:0 18px 15px}.preview-actions{position:sticky;top:0;z-index:2;padding:12px 0;background:#f5f7faf0;margin:10px 0}.preview-actions .primary,.preview-actions .secondary{flex:1;font-size:11px;padding:10px}.pdf-page{min-height:350px}.app-footer{padding-bottom:calc(25px + env(safe-area-inset-bottom))}.brand-button span{font-size:11px;letter-spacing:1px}.brand-button small{font-size:9px}.brand-button img{width:39px;height:39px}dialog{padding:21px}.toast{font-size:11px}.quote-mode{line-height:1.5}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s ease}.quote-card:hover{border-color:#b9cde3}}.modal-error{white-space:pre-line;background:#fff0ed;color:#9c3d2f;border:1px solid #f4d0c7;border-radius:9px;padding:12px;font-size:12px}
