:root{font-family:-apple-system,BlinkMacSystemFont,"Noto Sans TC",sans-serif;color:#253b32;background:#f7f6f0;font-size:16px;line-height:1.65}*{box-sizing:border-box}body{margin:0}.shell{max-width:1220px;margin:auto;padding:30px 42px}header{display:flex;justify-content:space-between;align-items:center;padding-bottom:28px;border-bottom:1px solid #dddcd2}.brand{text-decoration:none;color:inherit;font-size:29px;font-weight:750;letter-spacing:-1px}.brand span{color:#739269}.brand small{font-size:13px;letter-spacing:1px;font-weight:400;margin-left:18px}.preview,.version{font-size:12px;border:1px solid #d8ddcd;border-radius:99px;padding:4px 12px;color:#536745}main{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:64px;padding:42px 0}.eyebrow{font-size:12px;letter-spacing:2px;color:#718069}h1{font-weight:600;font-size:45px;line-height:1.3;letter-spacing:-1px;margin:15px 0}h2{font-size:23px;line-height:1.45;margin:22px 0 10px;overflow-wrap:anywhere}.intro p{color:#6c766e;font-size:16px;margin:18px 0 26px}nav{display:flex;gap:7px;flex-wrap:wrap}button{font:inherit;color:inherit;background:#fff;border:1px solid #d8ddd0;border-radius:10px;padding:8px 15px;cursor:pointer;font-size:14px}button:hover{background:#eef1e6}button:disabled{opacity:.55;cursor:wait}button.active{background:#e1e9d4;border-color:#a5b592;font-weight:600}.context,.muted{color:#748077;font-size:13px}.context{min-height:42px;margin:14px 0}.primary{background:#365b45;color:white;border-color:#365b45;white-space:nowrap}.primary:hover{background:#274b35}.picker{padding:15px;background:#eef0e6;border-radius:12px;margin-bottom:18px}.picker button{display:block;width:100%;text-align:left;margin:6px 0;overflow-wrap:anywhere}.messages{max-height:380px;overflow:auto;scroll-behavior:smooth}.bubble{padding:14px 17px;border-radius:13px;margin:0 0 12px;white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;border:1px solid #e6e5dc;font-size:15px}.bubble.user{background:#e9eedf;margin-left:38px;border-color:#dce3ce}.bubble .choices{margin-top:12px;display:flex;flex-wrap:wrap;gap:7px}form{margin-top:12px}label{display:block;font-size:13px;margin:12px 0 7px;color:#58675c}textarea{font:inherit;width:100%;resize:vertical;min-height:120px;border:1px solid #bac5b4;border-radius:13px;padding:16px;background:#fff;color:inherit;font-size:15px;line-height:1.7}textarea:focus{outline:2px solid #a1b68d;outline-offset:2px}.compose-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}#status{font-size:12px;color:#70806d;white-space:pre-wrap}.scope{font-size:12px;color:#7c857b;margin-top:20px}aside{background:#fffdf8;border:1px solid #e0e0d3;border-radius:20px;padding:28px;height:fit-content;position:sticky;top:28px}.case-heading{display:flex;justify-content:space-between;align-items:center}.version:empty{display:none}.empty{color:#899082;font-size:15px;padding:24px 0 40px}.field{padding:14px 0;border-bottom:1px solid #eaeade}.field-head{display:flex;justify-content:space-between;font-size:12px;color:#7d877a}.field-value{margin-top:5px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px}.field-value.missing{font-size:14px;color:#999e91}.tag{font-size:11px;color:#8c7345}.case-note{font-size:12px;color:#7b8476;margin-top:26px;line-height:1.9}details{margin-top:24px;font-size:13px}summary{cursor:pointer;color:#5e7859}.history-item{margin:16px 0;background:#f2f3eb;padding:12px;border-radius:8px;overflow-wrap:anywhere}.history-item pre{font:inherit;white-space:pre-wrap;font-size:12px;color:#606c5d}footer{font-size:12px;color:#879180;padding:22px 0;border-top:1px solid #dddcd2}@media(max-width:800px){.shell{padding:20px}main{grid-template-columns:1fr;gap:28px;padding:28px 0}h1{font-size:38px}aside{position:static;padding:22px}.brand small{display:none}.compose-bottom{align-items:flex-end}header{padding-bottom:18px}.messages{max-height:400px}}@media(prefers-reduced-motion:reduce){.messages{scroll-behavior:auto}}
.compose-label{display:flex;align-items:center;justify-content:space-between;gap:12px}select,input{font:inherit;color:inherit;border:1px solid #ced5c6;border-radius:8px;padding:8px 10px;background:#fff;min-width:0}select{font-size:12px}.upload-row{display:flex;align-items:center;gap:12px;margin:8px 0}.upload-row span{font-size:11px;color:#829078}.upload-row button{font-size:12px;padding:5px 9px}.attachments{display:flex;flex-wrap:wrap;gap:6px}.attachment{font-size:12px;background:#edf1e5;padding:6px 9px;border-radius:8px;max-width:100%;overflow-wrap:anywhere}.attachment button{font-size:10px;padding:2px 5px;margin-left:5px}.attachment small{display:block;color:#8a6730}.try{font-size:12px}.try p{color:#8a7b57}.try a{display:inline-block;margin:6px 10px;font-size:12px;color:#4b714e}.case-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.quote-card{background:#eef1e7;border-radius:12px;padding:16px;margin-top:18px}.quote-card strong{display:block;margin:9px 0;font-size:20px}.quote-card button{width:100%}#case-assets{display:flex;gap:10px;flex-wrap:wrap}#case-assets a{display:block;max-width:130px;overflow-wrap:anywhere;font-size:12px}#case-assets img{width:120px;max-height:150px;object-fit:contain;display:block}.messages{max-height:360px}footer{display:flex;justify-content:space-between;gap:20px}footer a{color:#6e805f}dialog{width:min(920px,calc(100vw - 32px));max-height:90vh;border:1px solid #d8dfcd;border-radius:20px;padding:28px 32px;color:inherit;background:#fffdf8;overflow:auto}dialog::backdrop{background:#253c3299;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{margin:7px 0}.dialog-head h2 span{font-size:14px;color:#7d8e70}.notice{font-size:13px;color:#846e43;background:#f5efdf;padding:12px;border-radius:9px}#quote-form>input{width:100%}.quote-item{padding:17px;margin:16px 0;border:1px solid #dce3d3;border-radius:12px;background:#fff}.item-name{width:100%;font-size:17px}.item-grid{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:12px;margin:10px 0}.item-grid label{font-size:12px;margin:0}.item-grid input{display:block;width:100%;margin-top:4px}.item-controls{display:flex;flex-wrap:wrap;gap:14px;align-items:center}.item-controls label{font-size:12px;margin:0;display:flex;gap:6px;align-items:center}.item-controls button{font-size:11px;padding:4px 7px;margin-left:auto}.quote-total{font-size:23px;font-weight:600;padding:20px 0}.quote-bottom{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:20px}.quote-bottom span{font-size:12px;flex:1;color:#857044}.button{display:inline-block;padding:9px 15px;border:1px solid #bacaae;border-radius:10px;text-decoration:none;color:inherit;font-size:14px}.button[aria-disabled=true]{opacity:.45;pointer-events:none}#quote-history{display:flex;gap:15px;flex-wrap:wrap;padding:15px 0}#quote-history a{color:#507143;font-size:13px}[hidden]{display:none!important}@media(max-width:800px){main{gap:22px}.intro h1{font-size:34px}dialog{padding:20px 16px}.item-grid{gap:6px}.item-controls{gap:8px}.quote-bottom span{flex-basis:100%}.compose-label label{font-size:12px}.upload-row{flex-wrap:wrap}footer{display:block}.preview{font-size:10px;padding:4px 8px}.quote-total{font-size:19px}}

.quote-scope{white-space:pre-wrap;padding:14px;background:#f0f4e8;border-radius:12px;line-height:1.7}

.entry-guide{border-left:3px solid #97ad7e;background:#eef2e7;padding:12px 14px;margin:10px 0;border-radius:0 10px 10px 0}.entry-guide p{margin:0 0 9px;font-size:14px;color:#425b3c}.entry-guide button{font-size:12px;padding:5px 11px;background:#fffdf8}#text::placeholder{color:#687662;opacity:1}

#account-panel{display:flex;align-items:center;gap:10px;font-size:13px}#account-panel span{max-width:130px;overflow-wrap:anywhere}#account-panel button{font-size:12px;padding:5px 10px}header{flex-wrap:wrap;gap:12px}

/* First visit offers a conversation; case tools appear after a real case exists. */
.first-visit main,.waiting-for-cases main{grid-template-columns:minmax(0,640px);justify-content:center;padding:50px 0 60px}
.first-visit aside,.waiting-for-cases aside,.first-visit nav,.waiting-for-cases nav,
.first-visit #context,.waiting-for-cases #context,.first-visit .compose-label,.waiting-for-cases .compose-label,
.first-visit .try,.waiting-for-cases .try,.first-visit .upload-row span,.waiting-for-cases .upload-row span,
.first-visit footer,.waiting-for-cases footer,.first-visit .scope,.waiting-for-cases .scope,
.first-visit .preview,.waiting-for-cases .preview{display:none}
.first-visit .intro,.waiting-for-cases .intro{text-align:center}
.first-visit .intro h1,.waiting-for-cases .intro h1{font-size:42px;margin:18px 0}
.first-visit .intro p,.waiting-for-cases .intro p{max-width:430px;margin:0 auto 30px;line-height:1.9}
.first-visit .entry-guide,.waiting-for-cases .entry-guide{background:transparent;border:0;padding:8px 0;margin:0 0 10px}
.first-visit .entry-guide p{font-size:16px;color:#365b45}
.first-visit #guide-starter{border:0;padding:0;background:transparent;text-decoration:underline;text-underline-offset:4px;color:#78876d}
.first-visit textarea{min-height:150px;padding:20px;border-radius:18px}
.first-visit .upload-row button{padding:8px 0;border:0;background:transparent;font-size:13px}
.first-visit .compose-bottom{margin-top:16px}
.first-visit .primary{padding:12px 22px}
@media(max-width:800px){.first-visit main,.waiting-for-cases main{padding:28px 0}.first-visit .intro h1,.waiting-for-cases .intro h1{font-size:32px}.first-visit .intro p{font-size:15px}.first-visit .compose-bottom{flex-wrap:wrap}.first-visit #status{flex:1;min-width:120px}}
