*{box-sizing:border-box}body{margin:0;background:#f5f8f7;color:#143c36;font-family:'Malgun Gothic',sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;font:inherit;color:inherit}header{height:76px;max-width:1000px;margin:auto;padding:24px;display:flex;align-items:center;justify-content:space-between}a{color:inherit;text-decoration:none}header a:first-child{font-weight:900;font-size:23px;letter-spacing:-1px}header span{font-weight:400;font-size:17px}header a:last-child{font-size:13px}main{max-width:700px;margin:auto;padding:25px 24px 100px}.tag{font-size:12px;color:#147568;background:#e0eee8;padding:7px 11px;border-radius:20px}h1{font-size:38px;line-height:1.35;letter-spacing:-1.5px;margin:24px 0 14px}.lead{color:#71827d;line-height:1.7;margin-bottom:30px}.upload{display:flex;align-items:center;flex-direction:column;width:100%;border:0;border-radius:24px;background:#167568;color:white;padding:30px;gap:13px;box-shadow:0 12px 30px #14756820}.upload strong{font-size:21px}.upload>span:last-child{font-size:13px;color:#d4eee8}.paper{display:grid;place-items:center;background:#ffffff20;border:1px solid #ffffff70;width:64px;height:75px;border-radius:9px;font-size:40px}.journey{display:flex;align-items:center;justify-content:space-between;margin:26px 0}.journey span{display:grid;gap:7px;font-size:13px}.journey b{color:#148071;font-size:12px}.journey i{color:#abbdb5}.note{background:#e9f0ed;border-radius:16px;padding:20px;margin:26px 0}.note p{font-size:13px;line-height:1.8;color:#62756e;margin:8px 0 0}h2{font-size:17px}.entry{display:flex;justify-content:space-between;align-items:center;width:100%;padding:20px;background:white;border:1px solid #e0e8e3;border-radius:14px;margin:10px 0;text-align:left}.fine{font-size:12px;color:#7a8d85;line-height:1.8;margin:22px 0}nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;background:#ffffffed;border-top:1px solid #dce7e1;padding:10px 0 max(10px,env(safe-area-inset-bottom));z-index:20}nav button{width:min(220px,33%);border:0;background:none;font-size:21px;color:#8a9e94;display:grid;gap:5px}nav span{font-size:11px}nav [aria-current=page]{color:#147568;font-weight:bold}#workspace{padding-bottom:75px}.workbar{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;background:white}.workbar button{border:0;background:none;padding:8px}.workhint{font-size:12px;line-height:1.7;padding:0 22px;color:#65796e}iframe{width:100%;height:calc(100dvh - 260px);min-height:450px;border:0;background:white}[hidden]{display:none!important}#historyList small{display:block;color:#84938c;margin-top:6px}@media(min-width:900px){#workspace{max-width:1280px;margin:auto}iframe{border:1px solid #dce7e1;border-radius:18px}}
 h1{word-break:keep-all;font-size:34px}nav{background:#fff}
label{display:block;font-size:14px;margin:16px 0}input:not([type=checkbox]),select{display:block;width:100%;padding:15px;border:1px solid #dce5df;border-radius:12px;background:#fff;color:#173e35;font:inherit;font-size:16px;margin-top:8px}input[type=checkbox]{width:22px;height:22px;flex-shrink:0}.consent{display:flex;align-items:center;gap:10px;font-size:13px;line-height:1.7}.primary{width:100%;padding:18px;border:0;border-radius:16px;background:#147568;color:#fff;font-weight:bold;font-size:17px;margin-top:14px}.primary:disabled{opacity:.5}.back{display:block;background:none;border:0;padding:0;margin:0 0 25px;color:#6e867a}.filepick{width:100%;padding:30px;border:1px dashed #72a797;border-radius:16px;background:#eaf3ee}.fileitem{display:flex;justify-content:space-between;gap:10px;padding:14px 0;font-size:13px;border-bottom:1px solid #dce5df;overflow-wrap:anywhere}.fileitem small{white-space:nowrap}.total{padding:24px;background:#147568;color:white;border-radius:22px;display:grid;gap:12px}.total strong{font-size:35px}.total span,.total p{font-size:12px;margin:0}.total small{color:#cfe7df}details{padding:16px;background:#eaf1ed;border-radius:14px;margin:16px 0}summary{cursor:pointer;font-size:14px}#warningText{white-space:pre-line;font-size:12px;line-height:1.8}.filters{display:flex;gap:8px;margin:20px 0}.filters input{flex:1;min-width:0}.filters select{max-width:125px}.partcard{display:flex;justify-content:space-between;align-items:center;width:100%;gap:14px;padding:20px 16px;background:white;border:1px solid #e0e8e3;border-radius:16px;margin:10px 0;text-align:left}.partcard span{display:grid;gap:8px;min-width:0}.partcard small{font-size:11px;color:#6e867a;overflow-wrap:anywhere}.partcard strong{font-size:16px}.partcard span:last-child{flex-shrink:0;text-align:right;font-size:13px}.entry small{display:block;font-size:11px;color:#7c9286;margin-top:8px}dialog{border:0;border-radius:24px 24px 0 0;width:100%;max-width:640px;max-height:90dvh;margin:auto auto 0;padding:22px;overflow:auto;color:#173e35}dialog::backdrop{background:#173e3580}.sheethead{display:flex;justify-content:space-between;align-items:center}.sheethead button{background:none;border:0;font-size:24px;padding:10px}.sheethead strong{max-width:80%;overflow-wrap:anywhere}dialog h2{font-size:17px}#calculation,#uploadMessage,#resultMessage{font-size:13px;line-height:1.8;white-space:pre-line}nav button{width:45%;max-width:240px}main{min-height:calc(100dvh - 76px)}
:root{--ink:#25243c;--accent:#5553ee;--muted:#8b8b9d}
:root body{max-width:480px;margin:0 auto;background:#fff;color:var(--ink);min-height:100dvh;box-shadow:0 0 70px #27234e12;font-family:'Malgun Gothic',system-ui,sans-serif}
html:root{background:#f0f1f6}
:root header{height:74px;padding:22px 24px;max-width:480px;border-bottom:1px solid #f1f1f6}
:root header a:first-child{font-size:21px;letter-spacing:-.8px;color:#29273d}
:root header a>span{font-size:13px;color:#9292a5;margin-left:6px}
:root header .brand-dot{font-size:9px;color:var(--accent);vertical-align:top}
:root header #connection{font-size:10px;padding:6px 8px;color:#77758c;background:#f5f5fa}
:root main{padding:24px 24px 120px;max-width:480px;min-height:calc(100dvh - 74px)}
:root h1{font-size:30px;line-height:1.45;letter-spacing:-1.3px;margin:22px 0 12px;color:var(--ink)}
:root h1 em{font-style:normal;color:var(--accent)}
:root .lead{font-size:14px;line-height:1.8;color:#828196;margin:0 0 26px}
:root .home-eyebrow{font-size:12px;color:#77758c;letter-spacing:.2px;margin-top:10px}
:root #home h1{font-size:33px;margin-top:14px}
:root .hero-art{height:190px;position:relative;background:linear-gradient(155deg,#f7f6ff,#eeedff);border-radius:28px;margin:24px 0 20px;overflow:hidden}
:root .drawing-paper{width:148px;background:white;padding:16px;position:absolute;left:48px;top:22px;border-radius:9px;box-shadow:0 10px 25px #5553ee14;transform:rotate(-9deg);color:#8b88d7}
:root .drawing-paper span{font-size:8px;font-weight:bold;letter-spacing:2px}
:root .drawing-paper svg{display:block;width:100%;height:78px;margin:4px 0}
:root .drawing-paper i{display:block;width:65%;height:3px;background:#e9e8f6;margin:5px 0}
:root .art-chip{position:absolute;right:20px;bottom:28px;padding:15px 17px;background:var(--accent);color:white;border-radius:13px;font-size:12px;font-weight:bold;box-shadow:0 10px 20px #5553ee30;transform:rotate(3deg)}
:root .home-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}
:root .home-actions button{border:1px solid #e9e8f4;background:white;padding:20px 14px;border-radius:20px;display:grid;gap:10px;text-align:left}
:root .home-actions button:first-child{background:#5553ee;color:white;border-color:#5553ee}
:root .home-actions small{font-size:10px;opacity:.7}
:root .home-actions strong{font-size:14px;letter-spacing:-.3px}
:root .tile-icon{font-size:25px;line-height:1;margin-bottom:4px}
:root .home-footer{display:flex;justify-content:space-between;font-size:10px;letter-spacing:1px;color:#aaa9ba;margin-top:28px}
:root .home-footer span{letter-spacing:0}
:root .primary{background:var(--accent);border-radius:15px;padding:18px;font-size:15px;min-height:54px;box-shadow:0 6px 15px #5553ee15}
:root .primary:disabled{opacity:.45;cursor:not-allowed}
:root .entry{border-color:#eeeef5;padding:18px;border-radius:16px;font-size:13px}
:root .entry small{color:#9493a6;font-size:11px}
:root .back{color:#77758c;font-size:12px;margin:18px 0;padding:8px 0}
:root .tag{color:#6964ce;background:#f1f0fd;font-size:11px}
:root .total{background:linear-gradient(125deg,#5e5bf2,#4b49da);border-radius:22px;padding:24px;gap:12px}
:root .total strong{font-size:31px;letter-spacing:-1px}
:root .total small{color:#e3e1ff}
:root .total span,:root .total p{line-height:1.7;color:#eeedff;font-size:11px}
:root details{background:#f7f7fb;border:1px solid #eeeef5;border-radius:15px}
:root summary{font-size:12px;color:#66647f;min-height:20px}
:root input:not([type=checkbox]),:root select{border-color:#e4e3ed;color:#302d49;background:white;min-height:48px;border-radius:12px;padding:13px;font-size:16px;outline-color:#7772ef}
:root label{font-size:12px;color:#77758c}
:root input[type=checkbox]{accent-color:var(--accent)}
:root .fine{color:#9190a2;font-size:11px;line-height:1.8;margin:15px 0}
:root .filters select{max-width:105px;font-size:12px}
:root .partcard{border:1px solid #e9e8f2;border-radius:18px;padding:20px 16px;gap:10px}
:root .partcard strong{font-size:14px;word-break:break-word}
:root .partcard small{color:#9390a7;font-size:10px;line-height:1.6}
:root .partcard b{color:var(--accent);font-size:13px}
:root .partcard span:last-child{max-width:36%;white-space:normal}
:root .app-progress{display:flex;gap:8px;justify-content:space-between;border-bottom:1px solid #efeff5;padding:0 0 20px;margin-bottom:20px}
:root .app-progress span{font-size:10px;color:#b5b3c5;display:grid;gap:9px;justify-items:center}
:root .app-progress i{font-style:normal;background:#f3f2f8;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;font-size:10px}
:root .app-progress .done{color:var(--accent)}
:root .app-progress .done i{background:var(--accent);color:white}
:root body>nav{width:100%;max-width:480px;left:50%;right:auto;transform:translateX(-50%);border-top:1px solid #eeeef5;padding:12px 0 max(14px,env(safe-area-inset-bottom));background:#fffffffa;backdrop-filter:blur(12px)}
:root nav button{color:#b0aebf;font-size:23px}
:root nav [aria-current=page]{color:var(--accent)}
:root nav span{font-size:10px}
:root dialog{max-width:480px;color:var(--ink);padding:24px;border-radius:25px 25px 0 0;box-shadow:0 -10px 60px #22213a22}
:root dialog::backdrop{background:#24213975;backdrop-filter:blur(3px)}
:root .sheethead strong{font-size:17px}
:root .filepick{border-color:#aaa6ed;background:#f6f5ff;color:#6861ce;font-size:14px;padding:32px}
:root .step-actions{padding:14px 0 0;margin-top:14px}
:root .surface{border:1px solid #ebeaf2;border-radius:20px;padding:20px;margin:16px 0;background:white}
:root .surface>label:first-child{margin-top:0}
:root .surface>label:last-child{margin-bottom:0}
:root .process-part>small{font-size:10px;color:#9a97ac}
:root .process-part h2{font-size:17px;margin:10px 0 18px;overflow-wrap:anywhere}
:root .add-operation,:root .add-part{width:100%;background:#f3f2ff;color:#625bd5;border:0;border-radius:12px;padding:14px;font-size:12px}
:root .add-part{margin-bottom:18px}
:root .operation-line{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #f1f0f7;padding:14px 0}
:root .operation-line b{font-size:13px}
:root .operation-line small{display:block;color:#928da9;font-size:11px;margin-top:6px}
:root .operation-line button{border:0;background:#f7f6fa;padding:12px;border-radius:10px;color:#aaa6bd}
:root .process-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}
:root .process-options button{padding:16px 6px;font-size:13px;border:1px solid #e7e5ef;background:white;border-radius:14px}
:root .process-options button.selected{border-color:var(--accent);background:#f2f1ff;color:var(--accent)}
:root .breakdown>div,:root .document-line{display:flex;justify-content:space-between;gap:10px;padding:10px 0;font-size:12px}
:root .breakdown span{color:#89849d}
:root .breakdown hr{border:0;border-top:1px solid #eeecf4;margin:12px 0}
:root .notice{font-size:12px;line-height:1.8;padding:15px;border-radius:12px;background:#fff6e4;color:#92703b}
:root .quote-paper{background:white;border:1px solid #e9e7f2;border-radius:18px;padding:24px}
:root .quote-paper h2{text-align:center;font-size:23px;margin:35px 0}
:root .quote-brand{font-size:15px;font-weight:bold;color:var(--accent)}
:root .quote-brand small{font-size:8px;letter-spacing:2px;float:right;color:#aaa5bf}
:root .quote-paper>p{font-size:12px}
:root .quote-paper>small{font-size:10px;color:#aaa5bf}
:root .document-product{padding:24px 0;border-bottom:1px solid #e9e7f2;margin-bottom:16px;overflow-wrap:anywhere}
:root .document-product strong{font-size:15px}
:root .document-product p{font-size:12px;color:#888099}
:root .document-line.grand{font-size:17px;border-top:1px solid #e9e7f2;margin-top:15px;padding-top:20px;color:var(--accent)}
:root .quiet-save{border:0;background:none;color:#89829c;display:block;margin:18px auto;padding:14px;font-size:12px}
:root .editor-actions button{width:100%;border:0;background:none;color:#bb6776;padding:20px;margin-top:12px;font-size:12px}
:root #quoteError,:root #processError{color:#b75564;font-size:12px;line-height:1.8}
/* Readability and a visible, one-tap route back to the active quotation. */
:root #home h1{font-size:46px;line-height:1.3;letter-spacing:-1.8px}
:root #home .home-eyebrow{font-size:17px;line-height:1.6}
:root #home .lead{font-size:20px;line-height:1.7}
:root #home .home-actions strong{font-size:22px;line-height:1.5;word-break:keep-all}
:root #home .home-actions small{font-size:15px;line-height:1.6;word-break:keep-all}
:root #home .home-actions button{padding:22px 16px;gap:10px}
:root #home .tile-icon{font-size:30px}
:root #home .entry{font-size:18px;padding:20px}
:root #home .entry small{font-size:14px;line-height:1.7}
:root #home .art-chip{font-size:15px}
:root #home .home-footer{font-size:12px;gap:8px;flex-wrap:wrap}
:root .back{display:inline-flex;align-items:center;min-height:44px;padding:8px 4px;border:0;border-radius:8px;background:transparent;color:#595270;font-size:14px;font-weight:700;line-height:1.5;margin:6px 0 14px}
:root nav span{font-size:14px;font-weight:700}
:root .app-progress span{font-size:12px}
:root #draftDock{position:fixed;z-index:19;bottom:calc(80px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);width:calc(100% - 36px);max-width:420px;min-height:60px;display:flex;align-items:center;gap:0;padding:0;border:1px solid #dad6ff;border-radius:14px;background:#f3f1ff;box-shadow:0 4px 16px #34305a18;color:#403b75;text-align:left}
:root #draftDock .draft-main{display:flex;align-items:center;gap:10px;flex:1;min-width:0;min-height:60px;padding:10px 8px 10px 14px;background:none;border:0;text-align:left;color:inherit;border-radius:14px}
:root #draftDock .draft-close{align-self:flex-start;display:grid;place-items:center;flex-shrink:0;width:40px;height:44px;border:0;background:none;color:#79728f;font-size:23px;border-radius:10px}
:root #draftDock .draft-copy{min-width:0;flex:1;display:grid;gap:6px}
:root #draftDock small{font-size:11px;color:#726b9c;line-height:1.4}
:root #draftDock strong{font-size:14px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root #draftDock .draft-symbol{display:grid;place-items:center;width:36px;height:40px;border-radius:10px;background:#e5e0ff;font-size:23px;flex-shrink:0}
:root #draftDock .draft-resume{font-size:12px;font-weight:800;white-space:nowrap}
:root body.has-draft main{padding-bottom:190px}
:root #draftNotice{position:fixed;bottom:calc(84px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);width:calc(100% - 36px);max-width:420px;z-index:21;border-radius:14px;background:#343048;color:#fff;padding:12px 14px;display:flex;align-items:center;gap:10px;font-size:12px;line-height:1.6;box-shadow:0 4px 18px #24203325}
:root #draftNotice span{flex:1}
:root #draftNotice button{border:0;background:none;color:#d5cbff;font-size:12px;font-weight:700;min-height:44px;white-space:nowrap}
:root button:focus-visible{outline:3px solid #8076e8;outline-offset:3px}
@media(max-width:360px){:root #home .home-actions{grid-template-columns:1fr}:root #home .home-actions button{grid-template-columns:32px 1fr;align-items:center}:root #home .home-actions small{grid-column:2}:root #home h1{font-size:43px}:root #draftDock .draft-main{gap:6px;padding-left:10px}}
