:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#17362d;background:#e8eeeb;font-size:15px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:#087f61;color:white;border-radius:12px;min-height:46px;padding:12px 17px;font-weight:600}button:disabled{opacity:.55;cursor:wait}button.secondary{background:#edf5f1;color:#087257;border:1px solid #d6e8df}button.text{background:none;color:#53776a;padding:3px;min-height:30px;font-size:13px;font-weight:500}button.remove{background:none;color:#986b60;padding:2px;min-height:25px;font-size:12px}.phone{max-width:480px;min-height:100dvh;margin:auto;background:#f6f8f6;box-shadow:0 12px 80px #17362d16}.app-header{height:82px;padding:18px 22px;display:flex;align-items:center;gap:10px;background:#fff;border-bottom:1px solid #edf1ed}.app-mark{width:37px;height:40px;border-radius:10px;background:#087f61;color:#fff;display:grid;place-items:center;font-size:22px;font-weight:600}.app-header strong{display:block;font-size:17px;letter-spacing:.4px}.app-header small{display:block;color:#8b9a92;font-size:11px;margin-top:4px}main{padding:22px 20px 130px}h1{font-size:27px;line-height:1.4;font-weight:700;letter-spacing:-.7px;margin:5px 0 12px}h2{font-size:16px;margin:0 0 16px}p{line-height:1.7}.muted{color:#819086;font-size:13px}.welcome{padding:24px 5px 15px}.eyebrow{letter-spacing:2px;color:#659080;font-size:10px;font-weight:700}.welcome p{color:#6f8377;font-size:14px}.gift{background:#edf7f0;border:1px solid #cfe8d9;padding:15px 16px;border-radius:14px;color:#087257;display:flex;align-items:center;gap:12px;margin:16px 0 23px}.gift strong{font-size:29px;font-weight:700}.gift span{font-size:13px;line-height:1.6}.card{background:#fff;border:1px solid #e4ece6;border-radius:18px;padding:20px;margin-bottom:16px}.card label,.field{display:block;font-size:13px;font-weight:500;color:#566f61;margin:0 0 15px}.card label:last-child{margin-bottom:0}input,textarea,select{width:100%;background:#fcfdfb;border:1px solid #dce6de;color:#203f30;border-radius:10px;min-height:46px;outline:none;padding:11px 12px;margin-top:7px}input:focus,textarea:focus,select:focus{border-color:#22a47c;box-shadow:0 0 0 3px #087f6110}textarea{min-height:77px;resize:vertical;line-height:1.5}input::placeholder,textarea::placeholder{color:#a0aba3;font-weight:400}.row{display:flex;gap:10px;align-items:center}.row>*{min-width:0;flex:1}.row button{flex:0 0 auto}.consent{display:flex;gap:8px;align-items:flex-start;color:#8a968e;font-size:12px;line-height:1.8;margin:20px 0}.consent input{width:17px;min-height:17px;margin:3px 0;accent-color:#087f61;flex-shrink:0}.consent a{color:#477260;text-decoration:none}.full{width:100%}.mode{border-radius:10px;background:#fff4dd;color:#9a733b;font-size:11px;line-height:1.5;padding:8px 11px;margin-bottom:14px}.balance{display:flex;align-items:center;justify-content:space-between;margin:3px 0 20px}.balance .muted{font-size:12px}.balance strong{font-size:18px;color:#087257}.switch{display:flex;background:#e9eeea;border-radius:13px;padding:4px;gap:4px;margin-bottom:20px}.switch button{background:none;color:#6f8377;width:50%;font-size:15px;min-height:43px}.switch button.active{background:#fff;color:#087257;box-shadow:0 2px 8px #17362d0b}.section-label{display:flex;align-items:center;justify-content:space-between}.section-label h2{margin-bottom:16px}.section-label span{color:#97a69c;font-size:11px}.product{border-top:1px solid #edf1ed;padding-top:17px;margin-top:14px}.product:first-of-type{border-top:0;padding-top:0;margin-top:0}.smallrow>label{flex:1;margin-bottom:0}.smallrow>label:nth-child(2){flex:1.4}.unit{font-size:12px;color:#809489}.advanced{display:flex;width:100%;justify-content:space-between;color:#688471!important;background:#fff!important;border:1px solid #e4ece6!important;margin-bottom:16px;font-weight:500!important}.estimate{display:flex;align-items:center;justify-content:space-between;margin:22px 2px 13px;font-size:13px;color:#728a7a}.estimate strong{font-size:23px;color:#17362d}.actions{display:flex;gap:10px}.actions button{flex:1}.hint{text-align:center;font-size:11px;line-height:1.7;color:#94a195;margin:11px 0}.tabs{position:fixed;bottom:0;width:100%;max-width:480px;margin-left:-20px;display:flex;padding:12px 12px calc(12px + env(safe-area-inset-bottom));background:#ffffffed;border-top:1px solid #e0e9e2;z-index:10;backdrop-filter:blur(16px)}.tabs button{background:transparent;border-radius:0;color:#94a198;min-height:48px;width:33.33%;font-size:11px;padding:2px 0;font-weight:500}.tabs b{display:block;font-size:19px;margin-bottom:5px;line-height:1.2;font-weight:400}.tabs .active{color:#087f61;font-weight:700}.alert{background:#fff0ea;border:1px solid #f1d7cc;border-radius:12px;padding:12px;color:#a74b31;font-size:13px;margin-bottom:16px;line-height:1.6}.notice{background:#eaf6ef;color:#357557;padding:12px;border-radius:12px;margin-bottom:14px;font-size:13px;line-height:1.6}.file{background:#fff;border:1px solid #e4ece6;border-radius:15px;padding:17px;text-align:left;width:100%;color:#214332;margin-bottom:12px;font-weight:400;display:block}.file strong{font-size:14px}.file p{margin:8px 0;font-size:13px;color:#788d7e}.file small{font-size:11px;color:#a0aca3}.file .money{float:right;color:#087f61;font-size:14px;font-weight:600}.tag{display:inline-block;background:#edf5ee;border-radius:5px;font-size:10px;color:#609774;padding:3px 7px;margin-right:5px}.empty{text-align:center;padding:45px 0;color:#8b9b8e;font-size:14px}.empty b{display:block;font-size:32px;margin-bottom:18px;color:#b5c9b9}.credits-card{background:#087f61;color:#fff;border-radius:18px;padding:25px;text-align:center;margin-bottom:21px}.credits-card span{font-size:12px;color:#b0d6c5}.credits-card strong{display:block;font-size:48px;font-weight:650;margin:13px 0 5px}.credits-card p{font-size:12px;color:#d0e6da;margin:3px 0}.packages{display:flex;gap:9px;margin:10px 0 20px}.package{flex:1;background:#fff;border:1px solid #deeadf;border-radius:14px;padding:19px 8px;text-align:center;color:#1c4934}.package strong{font-size:19px;display:block}.package p{font-size:12px;color:#718b78;margin:10px 0}.package span{font-size:14px;color:#087f61}.history-row{display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid #edf1ed;font-size:13px}.history-row small{display:block;font-size:11px;color:#98a59a;margin-top:5px}.result-title{text-align:center;padding:23px 0}.result-icon{width:66px;height:74px;margin:0 auto 20px;display:grid;place-items:center;border:1px solid #cde4d5;border-radius:15px;background:#edf7f0;color:#087f61;font-size:31px}.result-title h1{font-size:24px}.result-title p{font-size:13px;color:#84988a}.doc-summary{padding:10px 0 18px;border-bottom:1px solid #edf1ed;margin-bottom:18px}.doc-summary strong{display:block;font-size:15px;margin:12px 0}.doc-summary .amount{font-size:24px;color:#087f61}.result-buttons button{display:block;width:100%;margin-bottom:12px}.back{display:inline-block;padding:4px 0 16px!important}a{color:#087f61}@media(max-width:360px){main{padding-left:15px;padding-right:15px}.tabs{margin-left:-15px}.app-header{padding:15px}.card{padding:16px}h1{font-size:24px}}@media(min-width:700px){body{padding:25px 0}.phone{min-height:calc(100dvh - 50px);border-radius:26px;overflow:hidden}.tabs{bottom:25px;border-radius:0 0 26px 26px}main{min-height:calc(100dvh - 132px)}}

.language-card{padding:16px 20px}.language-card h2{margin-bottom:10px}.language-switch{margin-bottom:8px}.language-switch button{font-size:14px;min-height:38px}.language-note{font-size:11px;color:#819086;margin:0;line-height:1.6}
.staff-card{padding:23px}.staff-card .staff-badge{display:inline-block;border:1px solid #79b59c;border-radius:999px;padding:4px 9px;color:#d8eee4;font-size:11px}.staff-card .staff-title{font-size:30px;margin:12px 0 8px}.staff-panel .full{margin-top:5px}.staff-list-title{margin-top:25px}.employee-row{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid #edf1ed}.employee-info{flex:1;min-width:0}.employee-info strong{display:block;font-size:13px;line-height:1.5;color:#254837;overflow-wrap:anywhere}.employee-info small{display:block;font-size:11px;color:#98a59a;margin-top:5px}.employee-row .revoke{flex:0 0 auto;color:#986b60}.staff-panel .hint{margin-bottom:0}

.document-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.document-switch button{width:100%;font-size:14px}.currency-select{width:92px;min-height:34px;padding:5px;margin:0 0 14px}.add-product{margin-top:17px}.packing-note{font-size:11px;line-height:1.6;color:#6c8577;background:#f0f6f2;border-radius:8px;padding:9px 11px;margin:17px 0 12px}.packing-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}.packing-fields label,.packing-fields label:last-child{margin:0}.packing-fields label{font-size:12px}.packing-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 18px;padding:18px;border:1px solid #dce8df;border-radius:14px;background:#edf5f0;margin:18px 0}.packing-summary span{display:block;font-size:11px;color:#6f897b;margin-bottom:6px}.packing-summary strong,.doc-summary .packing-summary strong{display:block;font-size:19px;color:#214c38;font-weight:650;margin:0;overflow-wrap:anywhere}.packing-summary small{font-size:10px;color:#708d7c;font-weight:500}.file .money{float:none;display:block;text-align:right;margin-top:8px}.doc-summary .packing-summary{margin-bottom:0}

/* Keep paired fields aligned independently of the card's label spacing. */
.field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:12px 10px;margin-bottom:15px}.field-row>label,.field-row>label:last-child{margin:0}.field-row>label:only-child{grid-column:1/-1}.date-row input[type="date"]{display:block;min-width:0;max-width:100%;-webkit-appearance:none;appearance:none;padding:11px 8px;text-align:left}.date-row input[type="date"]::-webkit-date-and-time-value{min-width:0;text-align:left}@media(max-width:360px){.date-row{grid-template-columns:minmax(0,1fr)}}

/* Mobile form controls remain readable without disabling browser zoom. */
input:not([type="checkbox"]),textarea,select{font-size:16px;min-height:48px;min-width:0;max-width:100%;scroll-margin-bottom:110px}
html{scroll-padding-bottom:calc(110px + env(safe-area-inset-bottom))}
main{padding-bottom:calc(130px + env(safe-area-inset-bottom))}
.login-code-row{align-items:flex-end}
.login-code-row>label{margin-bottom:0}
.login-code-row>button{min-height:48px}
.card label.consent{display:flex;align-items:flex-start;gap:8px;margin:18px 0;font-size:12px;font-weight:400;min-height:44px}
.card label.consent input{width:18px;height:18px;min-height:18px;margin:2px 0 0;flex:0 0 18px}
.card label.consent span{min-width:0;overflow-wrap:anywhere}
/* Names, references and valid large totals must not widen a mobile viewport. */
.file,.doc-summary,.history-row,.alert,.notice{overflow-wrap:anywhere}
.estimate{align-items:flex-start;gap:12px;flex-wrap:wrap}
.estimate>span{flex:0 0 auto;line-height:1.8}
.estimate>strong{min-width:0;max-width:100%;margin-left:auto;text-align:right;overflow-wrap:anywhere}
.section-label{gap:8px}
.section-label>span{min-width:0;text-align:right}
.balance{gap:8px;flex-wrap:wrap}
.balance>button{margin-left:auto}
.smallrow{align-items:flex-end}
@media(pointer:coarse),(max-width:699px){
 button.text,button.remove{min-height:44px}
 button.remove{min-width:44px}
 .currency-select{min-height:44px}
}
@media(max-width:360px){
 .smallrow>label{flex:1.1}
 .smallrow>label:nth-child(2){flex:1.5}
 .smallrow>label:last-child{flex:.9}
 .smallrow input{padding-left:8px;padding-right:8px}
}
@media(max-height:500px) and (orientation:landscape){
 body{padding-top:0;padding-bottom:0}
 .phone{min-height:100dvh;border-radius:0}
 .tabs{bottom:0;border-radius:0;padding-top:6px;padding-bottom:calc(6px + env(safe-area-inset-bottom))}
 main{min-height:calc(100dvh - 82px)}
}

/* Password and SMS share one compact, accessible login card. */
.auth-switch{margin-bottom:22px}.auth-switch button{min-width:0;font-size:14px}.password-tools{display:flex;justify-content:flex-end;margin:-7px 0 12px}.password-tools button{min-height:44px;padding:6px 10px}.auth-link{margin-top:12px}.login-card input[autocomplete="username"]{text-transform:none}.connection-error{margin-top:20px}.credits-card p{overflow-wrap:anywhere}

button.logout-button{width:100%;min-height:56px;padding:16px 20px;font-size:17px;font-weight:600;margin-top:16px}

/* Professional document details keep the phone form compact and readable. */
.item-details{margin-top:16px}.package-row{margin-top:12px}.field-help{color:#718578;font-size:12px;line-height:1.7;margin:-6px 0 16px}.readiness{border:1px solid #eadfc8;background:#fffaf0;border-radius:14px;padding:15px 17px;margin-bottom:16px;overflow-wrap:anywhere}.readiness strong{font-size:14px;color:#7c6334}.readiness p{font-size:12px;line-height:1.8;color:#7c725e;margin:7px 0}.readiness small{font-size:11px;color:#918774;line-height:1.7;display:block}.complete-details{border-color:#d2e8dc;background:#edf7f1}.complete-details strong,.complete-details p{color:#397657}.product>label{margin-top:14px}.field-row.package-row{align-items:end}.readiness:empty{display:none}

/* Professional workspace: separate list/edit pages and clear mobile actions. */
.tabs button{width:25%}.pro-entry{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;padding:16px;background:#19364d;border-radius:15px;margin-bottom:19px}.pro-entry b,.pro-entry small{display:block}.pro-entry b{font-size:14px}.pro-entry small{font-size:11px;font-weight:400;line-height:1.7;color:#d1dce3;margin-top:5px}.pro-hero{background:#19364d;color:#fff;padding:24px;border-radius:18px;margin-bottom:20px}.pro-hero .eyebrow{color:#b6d4df}.pro-hero h1{font-size:25px}.pro-hero p{color:#d6e1e5;font-size:13px}.pro-hero small{display:block;margin-bottom:14px}.pro-hero-action{background:#f1e4c8;color:#473d27;display:block;width:100%;margin-top:18px}.pro-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}.pro-grid button{min-width:0;overflow-wrap:anywhere;padding:14px 10px}.pro-library-grid button{background:#fff;border:1px solid #dce6e0;text-align:left;min-height:100px}.pro-library-grid strong,.pro-library-grid small{display:block}.pro-library-grid small{font-size:11px;color:#789082;font-weight:400;margin-top:8px;line-height:1.6}.pro-inline{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:8px 0 14px}.pro-inline button{min-height:44px}.pro-spaced{margin-top:16px}.pro-search{display:flex;align-items:center;gap:10px;margin-bottom:18px}.pro-search input{margin:0;min-width:0}.pro-search button{flex-shrink:0}.pro-record strong{font-size:17px;overflow-wrap:anywhere}.pro-record p{font-size:13px;color:#70847a;overflow-wrap:anywhere;white-space:pre-wrap}.pro-record .pro-inline{margin-bottom:0}.pro-danger{color:#a45c48!important}fieldset{border:0;margin:0;padding:0;min-width:0}fieldset:disabled{opacity:.75}fieldset:disabled input,fieldset:disabled textarea{color:#496358}.card label.pro-check{display:flex;align-items:center;gap:10px;min-height:44px;line-height:1.6;margin:8px 0 16px}.pro-check input{width:20px;min-height:20px;height:20px;margin:0;flex-shrink:0;accent-color:#087f61}.pro-bank{background:#f5f8f5;border:1px solid #dfe8e1;padding:16px;border-radius:12px;margin-bottom:16px}.brand-swatch{border:1px solid #dde5df;border-top:12px solid var(--brand);padding:24px 18px;margin-bottom:20px;background:white;color:var(--brand);overflow-wrap:anywhere}.brand-swatch b,.brand-swatch span,.brand-swatch small{display:block}.brand-swatch span{font-size:12px;margin-top:10px}.brand-swatch div{margin:30px 0;height:2px;background:var(--brand)}.brand-swatch small{font-size:10px;color:#87948c}.pro-image{text-align:center;padding:14px;background:#f3f6f3;border-radius:12px;margin:16px 0}.pro-image img{display:block;margin:auto auto 10px;max-width:100%;max-height:140px;object-fit:contain}.card .image-upload{background:#e4eee7;border:1px solid #ccded3;color:#326148;border-radius:10px;padding:12px;margin:0;cursor:pointer}.image-upload input{display:block;border:none;background:none;font-size:12px!important;padding:8px 0;min-height:36px!important}.pro-plans{display:grid;gap:12px;margin:20px 0}.pro-plan{background:#f4f7f3;border:1px solid #c9decf;color:#1a4735;text-align:left;padding:20px}.pro-plan span,.pro-plan strong,.pro-plan small{display:block}.pro-plan strong{font-size:30px;margin:10px 0}.pro-plan strong small{display:inline;font-size:13px}.pro-plan>small{font-weight:400;font-size:12px}.pro-plan p{font-size:13px}.pro-limits{display:flex;gap:8px;flex-wrap:wrap}.pro-limits span{padding:7px 10px;border-radius:8px;background:#f0f5f1;font-size:12px}.preview-button{margin:15px 0 12px}.draft-product-image{max-width:100%;max-height:110px;object-fit:contain;display:block;margin:8px 0}.pdf-preview{width:min(100%,1000px);height:90dvh;padding:12px;border:1px solid #cedbd2;border-radius:14px;background:#f8faf8}.pdf-preview::backdrop{background:#13291ed9}.pdf-preview>button{float:right;margin-bottom:10px}.pdf-preview>a{display:inline-block;padding:13px}.pdf-preview iframe{border:0;width:100%;height:calc(100% - 65px);background:#fff}.pro-picks .field-help{margin:4px 0 12px}.pro-picks .pro-inline:last-child{margin-bottom:0}

/* Quick quote controls keep optional logistics independent from contact details. */
.create-page .required-mark{color:#ba3636;font-weight:700}.field-legend{font-size:12px;line-height:1.6;color:#65766c;margin:0 0 16px}.card label.currency-field{display:flex;align-items:center;gap:6px;margin:0 0 14px;white-space:nowrap}.currency-field .currency-select{margin:0}.currency-field>span{font-size:12px}.document-date{position:relative;display:block;min-width:0;margin-top:7px}.document-date input{margin-top:0}.optional-date-placeholder{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#8a948e;pointer-events:none}.empty-optional-date input:not(:focus){color:transparent}.empty-optional-date input:not(:focus)::-webkit-datetime-edit{color:transparent}.document-date:focus-within .optional-date-placeholder{display:none}
.product-extras-toggle{width:100%;text-align:left;grid-column:1/-1;margin:8px 0}
.inline-customer-card .company-column,.inline-customer-card .customer-column{min-width:0}
.inline-customer-card .customer-column{margin-top:22px;padding-top:22px;border-top:1px solid #e3ebe4}
.customer-actions{display:flex;gap:8px;margin-bottom:16px}.customer-actions button{flex:1;min-width:0}
.create-intro>.pro-entry{padding:12px 16px;margin-bottom:16px}.create-intro>.pro-entry small{display:none}
.readiness .completion-toggle{padding:0;min-height:40px;text-align:left}.readiness small{display:block}
@media(min-width:1024px){.company-card.inline-customer-card{align-items:start}.inline-customer-card .customer-column{margin-top:0;padding-top:0;border-top:0}.inline-customer-card>.section-label{grid-column:1/-1}.product-extras-toggle{grid-column:1/-1}}

/* Matched company/customer rows separate identity, telephone and email. */
.inline-customer-card .party-actions{display:flex;gap:8px;align-items:stretch;margin:0}
.inline-customer-card .party-actions button{flex:1;min-width:0;min-height:48px}
.inline-customer-card .party-selection-status{margin:12px 0 18px;font-size:12px;line-height:1.65;color:#718578;overflow-wrap:anywhere}
.inline-customer-card .customer-save-hint{margin:18px 0 0;padding-top:14px;border-top:1px solid #edf1ed}
.document-term-group{margin:0;padding:20px 0;border-top:1px solid #e3ebe4;min-width:0}
.document-term-group:first-of-type{border-top:0;padding-top:4px}
.document-term-group:last-child{padding-bottom:0}
.document-term-group h3{margin:0 0 14px;font-size:14px;color:#264c39}
.term-intro.field-help{margin:0 0 18px}
.term-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.term-fields>label,.term-fields>label:last-child{min-width:0;margin:0}
.term-preview{margin-top:14px;background:#f0f6f3;border:1px solid #e0ebe4;border-radius:10px;padding:12px 14px;overflow-wrap:anywhere}
.term-preview>span{font-size:11px;color:#718578}
.term-preview>p{margin:6px 0 0;color:#244c3a;font-size:13px;line-height:1.65;white-space:pre-wrap}
.term-preview>button{margin:8px 0 0;padding:4px 0;min-height:36px;font-size:12px;text-align:left}
.term-rule.field-help{margin:12px 0 0}
.term-preview>p.term-length-error{color:#a74b31;background:#fff0ea;border-radius:6px;padding:8px 10px;font-size:12px}
.term-fields select{-webkit-appearance:none;appearance:none;min-height:48px;line-height:1.4;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23566f61' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:12px 8px}
