:root{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#1d1d1f;background:#f5f5f7;font-synthesis:none;--blue:#0071e3;--line:#e8e8ed;--muted:#86868b}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;height:100svh}body{display:grid;grid-template-rows:72px minmax(0,1fr) 42px;overflow:hidden}button,input{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.38;cursor:not-allowed}button:focus-visible,a:focus-visible,[tabindex]:focus-visible,summary:focus-visible{outline:3px solid #76baff;outline-offset:4px}input{outline-color:var(--blue)}[hidden]{display:none!important}[data-icon]{display:inline-flex;align-items:center;justify-content:center}svg{width:20px;height:20px;stroke-width:1.7;flex-shrink:0;vertical-align:middle}.header{width:min(1120px,100%);margin:auto;display:flex;align-items:center;justify-content:space-between;padding:0 40px;height:100%}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#1d1d1f;font-size:21px;letter-spacing:1px}.brand strong{font-weight:600}.brand-symbol{background:var(--blue);color:#fff;border-radius:11px;width:34px;height:34px;box-shadow:0 3px 9px #0071e318}.brand-symbol svg{width:24px;height:24px}.settings-button{display:flex;align-items:center;gap:8px;background:#fff9;border:1px solid #e3e3e880;border-radius:30px;padding:9px 13px;font-size:12px;color:#6e6e73;transition:background .2s}.settings-button:hover{background:#fff}.settings-button svg{width:14px;height:14px;margin-left:3px}.settings-button i{width:5px;height:5px;border-radius:50%;background:#bfc0c6}.settings-button i.ready{background:var(--blue)}.workspace{width:min(960px,100%);padding:8px 32px 12px;margin:auto;display:flex;flex-direction:column;justify-content:center;min-height:0;max-height:100%}.page-heading{text-align:center;margin-bottom:30px}.page-heading h1{font-size:clamp(34px,3.6vw,50px);line-height:1.2;letter-spacing:-1.5px;font-weight:650;margin:0}.page-heading h1 span{color:var(--blue)}.main-card{display:grid;grid-template-columns:1.1fr 1fr;gap:32px;background:#fff;border:1px solid #e9e9ee;border-radius:28px;padding:24px;box-shadow:0 12px 45px #1d327308,0 2px 6px #1d327303;min-height:364px}.dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(150deg,#f5faff,#eef5ff);border:1px dashed #c9ddf5;border-radius:19px;text-align:center;padding:28px 18px;cursor:pointer;transition:background .2s,border-color .2s,box-shadow .2s}.dropzone:hover,.dropzone.dragging{background:#eaf3ff;border-color:#0071e3;box-shadow:inset 0 0 0 1px #0071e30d}.upload-icon{height:59px;width:59px;color:var(--blue);border-radius:18px;background:#fff;box-shadow:0 5px 16px #0071e30c;margin-bottom:16px}.upload-icon svg{width:29px;height:29px;stroke-width:1.5}.dropzone h2{font-size:23px;font-weight:600;letter-spacing:-.5px;margin:0 0 9px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;height:42px;padding:0 21px;border-radius:30px;font-size:13px;font-weight:500;transition:background .2s,box-shadow .2s}.button svg{width:17px;height:17px}.upload-button{background:#0071e30e;color:var(--blue)}.upload-button:hover:enabled{background:#0071e31c}.result-panel{display:flex;flex-direction:column;padding:10px 8px 3px 0;min-width:0}.result-heading{display:flex;align-items:center;justify-content:space-between;min-height:21px}.result-heading h2{font-size:13px;font-weight:500;color:#6e6e73;margin:0}.text-button{border:0;background:transparent;padding:3px 0;color:var(--blue);font-size:11px;white-space:nowrap}.result-heading .text-button{color:#86868b}.summary{display:flex;flex-direction:column;gap:19px;padding:22px 0 16px}.count-block{display:flex;align-items:center;justify-content:space-between}.summary-label{font-size:12px;color:#86868b}.summary-value{display:flex;align-items:baseline;gap:6px;font-variant-numeric:tabular-nums}.summary-value strong{font-weight:550;letter-spacing:-.8px;font-size:24px;line-height:1.1}.summary-value>span{font-size:12px;color:#86868b}.amount{margin-top:9px}.amount strong{font-size:clamp(30px,3vw,40px);letter-spacing:-1.6px;white-space:nowrap}.amount-block{min-width:0}.amount-block:has(#other-currencies:not(:empty)) .amount strong{font-size:32px}#other-currencies{display:block;color:#6e6e73;font-size:10px;line-height:1.4;max-height:29px;overflow:auto;overflow-wrap:anywhere;margin-top:5px}#other-currencies:empty{display:none}.status-area{flex:1;min-height:62px;margin:0 0 12px}.progress-caption{display:flex;align-items:center;gap:7px;font-size:11px;color:#86868b;line-height:1.5;min-height:21px}.progress-caption>span{flex:1;min-width:0}.progress-caption .text-button{font-size:10px}.progress-track{height:3px;background:#edf2fa;border-radius:5px;margin-top:6px;overflow:hidden}.progress-track>div{height:100%;background:var(--blue);min-width:2%;border-radius:5px;transition:width .25s}.notice{font-size:10px;line-height:1.6;color:#ad7425;margin-top:5px;overflow-wrap:anywhere}.notice.error{color:#b04f3d}.notice-action{margin-left:5px;font-size:10px}.primary{color:white;background:var(--blue)}.primary:hover:enabled{background:#0077ed;box-shadow:0 3px 12px #0071e326}.download-button{height:45px;width:100%;flex-shrink:0;gap:9px;font-size:13px}.download-button:disabled{background:#c7dffa;color:#547aa8;opacity:.7}.icon-button{width:30px;height:30px;border:0;border-radius:50%;background:#f5f5f7;color:#86868b;display:inline-flex;align-items:center;justify-content:center;padding:0}.icon-button:hover{background:#e8e8ed;color:#1d1d1f}.icon-button svg{width:16px;height:16px}dialog{border:1px solid #e8e8ed;border-radius:24px;padding:28px;background:white;color:#1d1d1f;max-width:calc(100vw - 32px);max-height:90svh;overflow:auto;box-shadow:0 24px 100px #14274126}dialog::backdrop{background:#172b454d;backdrop-filter:blur(8px)}.settings-dialog{width:440px}.confirm-dialog{width:420px}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:12px}.dialog-heading h2{font-size:21px;letter-spacing:-.5px;font-weight:600;margin:0}.dialog-footer{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid var(--line);padding-top:20px;margin-top:24px}.dialog-footer .button{font-size:12px;height:40px}.secondary{background:#f5f5f7;color:#6e6e73}.secondary:hover{background:#e8e8ed}label{display:flex;flex-direction:column;gap:9px;font-size:12px;color:#6e6e73;margin-bottom:12px}input:not([type=file]){width:100%;min-width:0;background:#fff;border:1px solid #d2d2d7;border-radius:10px;padding:12px;font-size:13px;color:#1d1d1f}input::placeholder{color:#a1a1a6}.advanced-settings{margin-top:23px}.advanced-settings>summary{color:var(--blue);font-size:12px;cursor:pointer;margin-bottom:15px}.confirm-dialog>p{font-size:13px}.toast-region{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;z-index:50;pointer-events:none;max-width:calc(100vw - 32px);width:max-content}.toast{background:#25364feb;color:#fff;border-radius:14px;padding:12px 20px;font-size:12px;line-height:1.7;max-width:540px;text-align:center;box-shadow:0 5px 25px #1a366b1a;animation:appear .2s}.toast.error{background:#9c5346ed}@keyframes appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(min-height:900px) and (min-width:701px){.page-heading{margin-bottom:40px}.page-heading h1{font-size:56px}.main-card{min-height:400px;padding:28px;gap:36px}.dropzone{padding-top:32px;padding-bottom:32px}.summary{gap:25px;padding-top:26px;padding-bottom:23px}}
@media(max-height:740px) and (min-width:701px){body{grid-template-rows:58px minmax(0,1fr) 32px}.page-heading{margin-bottom:22px}.page-heading h1{font-size:40px}.main-card{min-height:336px;padding:20px;gap:28px}.dropzone{padding:20px 15px}.upload-icon{width:51px;height:51px;margin-bottom:13px}.summary{gap:15px;padding:17px 0 12px}.status-area{min-height:57px;margin-bottom:8px}}
@media(max-width:700px){body{grid-template-rows:60px minmax(0,1fr) 30px}.header{padding:0 22px}.brand{font-size:19px;gap:8px}.brand-symbol{width:30px;height:30px;border-radius:10px}.brand-symbol svg{width:21px;height:21px}.settings-button{font-size:10px;padding:8px 10px;gap:6px}.settings-button svg{width:12px;height:12px;margin-left:0}.workspace{width:min(460px,100%);padding:0 20px 5px}.page-heading{margin-bottom:20px}.page-heading h1{font-size:32px;letter-spacing:-1px}.main-card{grid-template-columns:1fr;gap:17px;min-height:0;padding:16px;border-radius:24px}.dropzone{position:relative;padding:20px 12px 16px;border-radius:16px}.upload-icon{width:43px;height:43px;border-radius:13px;margin-bottom:10px}.upload-icon svg{width:24px;height:24px}.dropzone h2{font-size:19px;margin-bottom:7px}.dropzone .button{height:36px;font-size:12px}.result-panel{padding:0 4px 2px}.result-heading{min-height:19px}.result-heading h2{font-size:11px}.result-heading .text-button{font-size:10px}.summary{flex-direction:row;justify-content:space-between;gap:14px;padding:14px 0 13px}.count-block{display:block;flex:0 0 76px}.summary-label{font-size:10px}.summary-value{margin-top:8px}.summary-value strong{font-size:29px;line-height:1.15}.summary-value>span{font-size:10px}.amount-block{flex:1;text-align:right}.amount{justify-content:flex-end}.amount strong{font-size:29px;letter-spacing:-1px}.amount-block:has(#other-currencies:not(:empty)) .amount strong{font-size:25px}#other-currencies{font-size:9px;max-height:24px;margin-top:2px}.status-area{min-height:39px;flex:none;margin:0 0 10px}.progress-caption{font-size:10px;min-height:18px}.progress-caption .text-button{font-size:9px}.notice{font-size:9px;line-height:1.5;margin-top:3px}.notice-action{font-size:9px}.download-button{height:42px;font-size:12px}dialog{padding:23px;border-radius:20px}.dialog-heading h2{font-size:19px}.toast{font-size:11px}}
@media(max-height:720px) and (max-width:700px){body{grid-template-rows:52px minmax(0,1fr) 26px}.workspace{padding-bottom:1px}.page-heading{margin-bottom:14px}.page-heading h1{font-size:28px}.main-card{padding:13px;gap:13px;border-radius:21px}.dropzone{padding:15px 10px 13px}.upload-icon{width:34px;height:34px;border-radius:10px;margin-bottom:8px}.upload-icon svg{width:21px;height:21px}.dropzone h2{font-size:17px;margin-bottom:5px}.dropzone .button{height:33px;font-size:11px}.summary{padding:11px 0;gap:10px}.summary-value{margin-top:6px}.summary-value strong,.amount strong{font-size:26px}.status-area{min-height:36px;margin-bottom:8px}.download-button{height:39px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.notice{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(max-height:620px) and (max-width:700px){body{grid-template-rows:46px minmax(0,1fr) 23px}.upload-icon{display:none}.page-heading{margin-bottom:12px}.page-heading h1{font-size:26px}.header{padding:0 18px}.workspace{padding-left:14px;padding-right:14px}}

/* Main page: the brand, slogan and essential actions only. */
.page-heading{margin-bottom:40px}.page-heading h1{font-size:clamp(32px,3.4vw,48px);letter-spacing:-1.5px;line-height:1.4}.page-heading h1 span{white-space:nowrap}
.dropzone h2{margin-bottom:22px}.result-heading{justify-content:flex-end}.summary-label,.summary-value>span,#other-currencies{color:#1d1d1f}.summary-label{font-size:14px}.settings-button{color:#0071e3}.result-heading .text-button{color:#0071e3}.progress-caption{color:#0071e3;font-size:12px}.status-area{min-height:42px}.download-button{margin-top:auto}label{color:#1d1d1f}.confirm-dialog>p{color:#1d1d1f}
@media(min-height:900px) and (min-width:701px){.page-heading h1{font-size:48px}}
@media(max-width:700px){.page-heading{margin-bottom:28px}.page-heading h1{font-size:30px;line-height:1.5;letter-spacing:-1px}.page-heading h1 span{display:block}.dropzone h2{margin-bottom:16px}.summary-label{font-size:12px}.summary-value>span{font-size:12px}.settings-button{font-size:11px}.result-heading .text-button{font-size:12px}.progress-caption{font-size:11px}.status-area{min-height:30px}}
@media(max-height:620px) and (max-width:700px){.page-heading{margin-bottom:18px}.page-heading h1{font-size:26px}.dropzone h2{margin-bottom:12px}}

.category-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 22px;margin:0 0 17px;padding:0;font-size:12px;line-height:1.6;color:#6e6e73;font-variant-numeric:tabular-nums}
.category-total{display:flex;justify-content:space-between;gap:8px;align-items:baseline;min-width:0}.category-total dt{flex-shrink:0}.category-total dd{margin:0;color:#404046;text-align:right;overflow-wrap:anywhere}
.result-panel:has(.category-totals:not([hidden])) .summary{padding-bottom:15px}
.progress-caption:has(#progress-text:empty):has(#continue-button[hidden]):has(#stop-button[hidden]){display:none}
@media(max-width:700px){.category-totals{font-size:11px;gap:5px 18px;margin-bottom:14px}.result-panel:has(.category-totals:not([hidden])) .summary{padding-bottom:12px}.category-total{gap:5px}}
@media(max-width:700px) and (max-height:620px){.category-totals{font-size:10px;gap:3px 14px;margin-bottom:10px}.result-panel:has(.category-totals:not([hidden])) .summary{padding-bottom:9px}}

.brand-symbol{display:grid;place-items:center;background:transparent;box-shadow:none}.brand-symbol img{display:block;width:100%;height:100%;object-fit:contain}
.dropzone h2{margin-bottom:8px}.dropzone .upload-hint{font-size:12px;color:#6e6e73;line-height:1.6;margin:0 0 20px}
@media(max-width:700px){.dropzone h2{margin-bottom:6px}.dropzone .upload-hint{font-size:11px;margin-bottom:14px}}
@media(max-width:700px) and (max-height:620px){.dropzone h2{margin-bottom:5px}.dropzone .upload-hint{font-size:10px;margin-bottom:10px}}

/* Sweep one blue highlight across the slogan without moving its text. */
.page-heading h1{display:inline-block;color:#1d1d1f}
.page-heading h1 span{color:inherit}
@supports (background-clip:text) or (-webkit-background-clip:text){
  .page-heading h1{
    background-image:linear-gradient(130deg,transparent 40%,#0066d4 47%,#439aee 51%,#0a5cc7 54%,transparent 58%),linear-gradient(#1d1d1f,#1d1d1f);
    background-size:235% 100%,100% 100%;
    background-position:100% 50%,0 0;
    background-repeat:no-repeat;
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    -webkit-text-fill-color:transparent;
    animation:slogan-shimmer 3.4s ease-in-out infinite;
  }
}
@keyframes slogan-shimmer{
  0%,15%{background-position:100% 50%,0 0}
  90%,100%{background-position:0 50%,0 0}
}
@media(prefers-reduced-motion:reduce),(forced-colors:active){
  .page-heading h1{animation:none;background-image:none;color:#1d1d1f;-webkit-text-fill-color:currentColor}
  .page-heading h1 span{color:inherit;-webkit-text-fill-color:currentColor}
}
@media(forced-colors:active){
  .page-heading h1,.page-heading h1 span{color:CanvasText}
}

.access-card{width:min(420px,100%);align-self:center;background:#fff;border:1px solid #e9e9ee;border-radius:26px;padding:28px;box-shadow:0 12px 45px #1d327308}
.access-card h2{font-size:23px;font-weight:600;margin:0 0 20px}.access-card label{margin:0}.access-card .button{width:100%;margin-top:10px}.access-hint{font-size:12px;color:#6e6e73;line-height:1.7;margin:10px 0 16px}.access-card #access-notice{font-size:12px;line-height:1.7;color:#a84535;margin:12px 0 0;overflow-wrap:anywhere}.access-card #access-notice:empty{display:none}
#access-wait-message{font-size:13px;line-height:1.8;color:#6e6e73;margin:0 0 20px}#access-reapply{display:block;margin:12px auto 0}
#access-check.approved{background:#16804a;color:#fff}#access-check.approved:hover:enabled{background:#116a3d;box-shadow:0 3px 12px #16804a26}
@media(max-width:700px){.access-card{padding:22px;border-radius:22px}.access-card h2{font-size:21px;margin-bottom:17px}.access-hint{font-size:11px;margin-bottom:12px}}
@media(max-width:700px) and (max-height:620px){.access-card{padding:18px}.access-card h2{margin-bottom:14px}.access-card input{padding:10px}.access-card .button{height:37px}.access-card .access-hint{margin-top:8px;margin-bottom:10px}}

/* Place the invoice mark above the center of the slogan. */
.header{justify-content:flex-end}
.slogan-icon{display:block;width:68px;height:64px;object-fit:contain;margin:0 auto 18px}
@media(max-height:740px) and (min-width:701px){.slogan-icon{width:60px;height:56px;margin-bottom:14px}}
@media(max-width:700px){.slogan-icon{width:55px;height:52px;margin-bottom:12px}}
@media(max-height:720px) and (max-width:700px){body{grid-template-rows:36px minmax(0,1fr) 12px}.page-heading{margin-bottom:20px}.slogan-icon{width:43px;height:40px;margin-bottom:10px}.main-card{gap:10px}.dropzone{padding:12px 10px 10px}.summary{padding:8px 0}.status-area{min-height:24px;margin-bottom:6px}.category-totals{font-size:10px;gap:3px 14px;margin-bottom:10px}.result-panel:has(.category-totals:not([hidden])) .summary{padding-bottom:9px}}
@media(max-height:620px) and (max-width:700px){body{grid-template-rows:30px minmax(0,1fr) 8px}.page-heading{margin-bottom:14px}.page-heading h1{font-size:24px;line-height:1.4}.slogan-icon{width:36px;height:34px;margin-bottom:6px}}
