:root{--bg:#f6f9f7;--paper:#fff;--border:#e2eae6;--txt:#17272e;--muted:#72828a;--green:#138b62;--green-deep:#08694d;--soft:#e8f7ed;--blue:#2188d7;--blue-soft:#eaf4ff;--orange:#f49b34;--orange-soft:#fff4e9;--shadow:0 14px 36px rgba(27,65,54,.09);font-family:Inter,"Segoe UI",-apple-system,BlinkMacSystemFont,Arial,sans-serif;color:var(--txt)}*{box-sizing:border-box}body{margin:0;background:linear-gradient(118deg,#edf7f2 0%,#f8fafb 53%,#e9f3f3 100%);min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit}.hidden{display:none!important}.stage{display:flex;justify-content:center;align-items:flex-start;gap:80px;padding:55px 20px 70px}.desk-intro{width:410px;padding-top:70px}.brand-lockup{display:flex;align-items:center;gap:13px}.brand-emblem{background:linear-gradient(135deg,#15b77d,#07734b);color:white;display:grid;place-items:center;border-radius:19px;font-size:30px;width:62px;height:62px;box-shadow:0 10px 30px rgba(9,135,94,.2)}.brand-name{font-size:21px;letter-spacing:-.6px;font-weight:850}.brand-name span{color:var(--green)}.brand-lockup p{margin:5px 0;color:var(--muted);font-size:13px}.desk-intro h1{font-size:46px;line-height:1.15;margin:51px 0 22px;letter-spacing:-1.8px}.desk-intro h1 span{color:var(--green)}.desk-copy{line-height:1.8;font-size:16px;color:#607775}.desk-pill{margin-top:35px;display:inline-block;padding:12px 17px;background:white;border:1px solid #dcebe3;border-radius:100px;color:var(--green-deep);font-size:13px;font-weight:700}.app-shell{width:430px;min-width:350px;min-height:min(870px,calc(100vh - 110px));height:min(890px,calc(100vh - 110px));background:#f7faf8;border:9px solid #e2e9e6;box-shadow:0 30px 85px rgba(15,67,52,.20),0 0 0 1px #bdccc5;border-radius:40px;position:relative;overflow:hidden;display:flex;flex-direction:column}.app-header{background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:11px;padding:19px 19px 15px;min-height:75px;flex:0 0 auto}.app-logo{background:linear-gradient(145deg,#e8f6ef,#eff6ff);border-radius:50%;border:2px solid white;width:44px;height:44px;display:grid;place-items:center;font-size:23px;box-shadow:0 2px 10px #d5e4dd}.app-heading{display:flex;flex-direction:column;gap:3px;flex:1}.app-heading strong{font-size:15px;letter-spacing:.2px}.app-heading strong span{color:var(--green)}.app-heading small{color:var(--muted);font-size:11px}.header-actions{display:flex;align-items:center;gap:9px}.avatar,.small-circle{border:0;display:grid;place-items:center;border-radius:50%;background:#e1f2e9;color:#077554;width:34px;height:34px;font-size:15px;font-weight:800}.small-circle{background:#eff5f3}.screen{padding:19px 18px 24px;overflow-y:auto;overscroll-behavior:contain;flex:1;scrollbar-width:thin;scrollbar-color:#d0ddd6 transparent}.bottom-nav{display:grid;grid-template-columns:repeat(4,1fr);padding:8px 8px max(12px,env(safe-area-inset-bottom));background:white;border-top:1px solid var(--border);gap:1px;flex:none}.bottom-nav button{border:none;background:none;display:grid;place-items:center;gap:2px;padding:5px 0;color:#78868a}.bottom-nav .active{color:var(--green)}.nav-icon{font-size:24px;line-height:25px;font-weight:750}.bottom-nav small{font-size:10.5px;font-weight:650}.notice{background:#fff6e7;color:#7b521d;padding:9px 14px;font-size:12px;border-bottom:1px solid #f3e2c5}.eyebrow{font-size:11px;letter-spacing:1px;font-weight:800;color:var(--green);text-transform:uppercase}.welcome h2,.page-title{font-size:23px;letter-spacing:-.65px;margin:7px 0 8px;line-height:1.23}.subtext{font-size:13px;line-height:1.55;color:var(--muted);margin:0 0 17px}.hero{height:173px;background:#e9f2ed url('./assets/car-hero.webp') 63% center/cover no-repeat;border-radius:18px;position:relative;overflow:hidden;border:1px solid #dcebe4;margin-bottom:13px}.hero-overlay{background:linear-gradient(90deg,rgba(255,255,255,.97),rgba(255,255,255,.85) 42%,rgba(255,255,255,.09) 82%);height:100%;padding:20px 17px;width:100%}.hero h2{font-size:25px;letter-spacing:-1px;margin:0 0 9px;line-height:1.05}.hero h2 span{color:var(--green)}.hero p{font-size:12px;max-width:165px;line-height:1.5;color:#354b4b;margin:0}.btn{border:none;border-radius:12px;padding:13px 14px;font-size:14px;font-weight:750;display:flex;align-items:center;justify-content:center;gap:9px;text-align:center;width:100%;transition:transform .1s}.btn:active{transform:scale(.99)}.btn-primary{background:linear-gradient(110deg,#29b66b,#077b55);color:white;box-shadow:0 4px 12px rgba(26,147,89,.17)}.btn-dark{background:#2e4350;color:white}.btn-light{background:#eaf5ed;color:#0f704f;border:1px solid #cde8d6}.btn-outline{border:1px solid var(--border);background:white;color:#375258}.btn-danger{background:#fff0ed;color:#a54c41}.icon-label{font-size:19px}.tile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:13px}.tile{border:1px solid var(--border);border-radius:14px;background:white;padding:14px 6px;display:grid;place-items:center;text-align:center;gap:5px;min-height:84px;color:#4b5966}.tile span{font-size:23px}.tile small{font-size:11px;font-weight:650}.section-head{display:flex;align-items:center;justify-content:space-between;margin:22px 0 11px}.section-head h3{font-size:15px;margin:0}.text-link{color:var(--green);background:none;border:0;font-size:12px;font-weight:700;padding:5px}.card{background:white;border-radius:15px;border:1px solid var(--border);padding:15px;margin-bottom:12px}.estimate-item{display:flex;align-items:center;gap:11px;padding:11px;background:white;border-radius:13px;border:1px solid var(--border);margin-bottom:8px;cursor:pointer}.estimate-icon{width:55px;height:54px;border-radius:11px;background:linear-gradient(135deg,#e8f4eb,#d7e5e3);display:grid;place-items:center;font-size:26px;flex:none}.estimate-description{min-width:0;flex:1}.estimate-description strong{font-size:13px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.estimate-description small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.tag{font-size:10px;font-weight:800;border-radius:20px;padding:5px 8px;white-space:nowrap}.tag-draft{background:#edf1f3;color:#617883}.tag-finished{background:#e5f7eb;color:#17834c}.tag-process{background:#e8f2ff;color:#2376b6}.steps{display:flex;align-items:flex-start;justify-content:space-between;gap:0;background:white;padding:18px 13px;border:1px solid var(--border);border-radius:14px;margin:14px 0}.step{display:grid;justify-items:center;gap:6px;flex:1;color:#9ca9ad;font-size:10px;font-weight:650}.step .bubble{display:grid;place-items:center;background:#edf1f4;color:#687b82;border-radius:50%;width:28px;height:28px;font-size:12px;font-weight:800}.step.current{color:var(--green-deep)}.step.current .bubble{background:var(--green);color:white;box-shadow:0 0 0 5px #e1f4e7}.step-line{height:2px;background:#e3ebe7;flex:.4;margin-top:13px}.upload-area{background:#fff;border:1.5px dashed #a9cfc1;border-radius:15px;padding:20px 12px;text-align:center;display:grid;gap:6px;place-items:center}.upload-area .upload-icon{font-size:32px;color:var(--green)}.upload-area strong{font-size:13px}.upload-area p{font-size:11px;margin:0 0 7px;color:var(--muted);line-height:1.6}.upload-area .btn{max-width:260px;padding:11px}.thumb-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.thumb{aspect-ratio:1/1.05;position:relative;border:1px solid #dbe7e3;border-radius:12px;overflow:hidden;background:#eaf1ef;display:grid;place-items:center}.thumb img{width:100%;height:100%;object-fit:cover}.thumb .file-symbol{font-size:31px}.thumb .file-name{font-size:10px;color:#3b5f58;display:block;text-align:center;padding:4px;overflow-wrap:anywhere}.thumb span.label{position:absolute;bottom:0;left:0;right:0;background:rgba(24,55,45,.75);color:white;font-size:10px;padding:4px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.tip{background:#f0f8f1;border-radius:13px;padding:13px 14px;font-size:12px;line-height:1.65;color:#47705b;margin:12px 0}.tip strong{color:#176b4c}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:13px}.field label{font-size:12px;font-weight:750}.field input,.field select,.field textarea{background:#fff;border:1px solid #dae5df;color:var(--txt);border-radius:10px;padding:12px;width:100%;min-width:0;outline:none}.field textarea{resize:vertical;min-height:88px;line-height:1.5}.field input:focus,.field select:focus,.field textarea:focus{border-color:#3bb287;box-shadow:0 0 0 3px #e0f5e9}.hint{font-size:11px;color:var(--muted);line-height:1.5}.tiny-label{font-size:11px;color:#6c8082;font-weight:700}.comment{background:#fff;border:1px solid #e0eae4;border-radius:12px;padding:12px;margin:7px 0}.comment p{font-size:12px;line-height:1.55;margin:5px 0}.comment small{color:var(--muted);font-size:10px}.back-link{border:none;background:none;color:var(--green);font-size:13px;font-weight:750;padding:0;margin-bottom:14px}.muted-box{border:1px dashed #c9d9d1;border-radius:14px;padding:25px 16px;text-align:center;background:#fff;font-size:12px;color:#728681;line-height:1.75}.muted-box strong{display:block;color:var(--txt);font-size:15px;margin-bottom:5px}.data-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.metric{background:#fff;padding:14px;border-radius:13px;border:1px solid var(--border)}.metric.green{background:#e8f6eb}.metric.blue{background:#eff6ff}.metric.orange{background:#fff3e8}.metric .number{display:block;font-weight:850;font-size:27px;letter-spacing:-1px}.metric .desc{font-size:11px;color:#617778}.processing-lines{background:white;border:1px solid var(--border);border-radius:14px;padding:14px;margin:12px 0}.processing-lines div{padding:10px 0;border-bottom:1px solid #edf2ee;font-size:12px;display:flex;align-items:center;gap:9px}.processing-lines div:last-child{border:0}.state-good{color:#099568}.state-muted{color:#a8b5b8}.profile-head{background:#e7f7ec;padding:17px;border:1px solid #cce8d7;border-radius:14px;margin-bottom:16px}.profile-head strong{font-size:15px}.profile-head small{display:block;font-size:11px;color:#54766c;margin-top:5px}.toolbar{display:flex;align-items:center;gap:8px;margin-bottom:14px}.toolbar>*{flex:1}.admin-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.admin-top .page-title{margin:0}.admin-table{margin-top:10px}.admin-card{padding:13px;border:1px solid #e3eae5;background:white;border-radius:13px;margin-bottom:8px;display:flex;gap:9px;align-items:flex-start}.admin-card .desc{min-width:0;flex:1}.admin-card strong{font-size:12px}.admin-card small{display:block;color:var(--muted);font-size:10.5px;margin-top:5px}.divider{height:1px;background:#e3ebe6;margin:16px 0}.pill{display:inline-flex;align-items:center;padding:5px 9px;background:#ecf6ee;border-radius:25px;font-size:10px;color:#27714e;font-weight:800}.modal-overlay{position:absolute;inset:0;background:#122d2788;display:grid;place-items:center;padding:20px;z-index:20}.modal{background:white;padding:22px;border-radius:20px;max-width:360px;width:100%;box-shadow:0 14px 35px #0002}.modal h3{margin:0 0 9px}.modal p{font-size:13px;line-height:1.6;color:var(--muted)}.demo-bar{background:#edf9ea;padding:11px 14px;font-size:11px;color:#236342;border-bottom:1px solid #cae6cc}.demo-bar button{color:#145935;font-weight:800;text-decoration:underline;border:0;background:none}.loading-spinner{height:35px;width:35px;border-radius:50%;border:3px solid #daeae1;border-top-color:var(--green);animation:spin .8s linear infinite;margin:30px auto}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1000px){.desk-intro{display:none}.stage{padding:0;min-height:100vh}.app-shell{width:min(100vw,500px);height:100dvh;min-height:100dvh;border:0;border-radius:0;box-shadow:none}}@media(max-width:360px){.app-shell{min-width:0}.screen{padding:14px}.tile{padding:10px 4px}.tile small{font-size:10px}}

/* Independent PWA sign in, inspired by light-green Concept #5 */
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px}
.auth-tabs button{border:1px solid #d7e7dd;background:#f3f7f5;color:#466355;border-radius:10px;padding:12px;font-weight:700;cursor:pointer}
.auth-tabs button.selected{background:#e0f5e8;border-color:#45b77d;color:#106e43}
.auth-error{background:#fff2ee;border:1px solid #edc7be;border-radius:10px;color:#8c3228;padding:12px;margin-bottom:12px}
#auth-form input{width:100%}

/* Delete button for draft attachments (v0.3.1) */
.thumb .delete-file{position:absolute;top:5px;right:5px;z-index:5;display:grid;place-items:center;min-width:34px;min-height:34px;padding:0;border:1px solid #ffd0cc;border-radius:50%;background:#fff;color:#b6322c;font-size:25px;line-height:1;box-shadow:0 2px 7px #12291c33;cursor:pointer}
.thumb .delete-file:hover,.thumb .delete-file:focus-visible{background:#fff0ed;outline:2px solid #c74339;outline-offset:1px}

/* AUTO EXPERT / Sage Journal v064 */

:root{--bg:#faf8f1;--paper:#fffef9;--border:#dedfd3;--txt:#142b23;--muted:#69736a;--green:#28583f;--green-deep:#123d2b;--soft:#e7ecdd;--blue:#28583f;--blue-soft:#e7ecdd;--orange:#a06b20;--orange-soft:#fff0d2;--shadow:0 8px 26px #273c2910;font-family:"Segoe UI",-apple-system,BlinkMacSystemFont,Arial,sans-serif}
body{background:radial-gradient(ellipse at top left,#f4f1e6,transparent 58%),#e9eee5;color:var(--txt)}
.stage{gap:72px;padding:40px 24px;align-items:center;min-height:100dvh}
.desk-intro{width:370px;padding-top:0}.brand-name{font-size:19px;font-weight:750}.brand-name span{color:var(--green)}
.brand-emblem{background:var(--soft);color:var(--green-deep);font:25px ReferenceDisplay,Georgia,serif;border-radius:16px;box-shadow:none;width:58px;height:58px}
.desk-intro h1{font:44px/1.15 ReferenceDisplay,Georgia,serif;letter-spacing:-2px;margin:40px 0 24px}.desk-intro h1 span{color:var(--green)}.desk-copy{font-size:16px;line-height:1.7;color:var(--muted)}.desk-pill{border-radius:9px;background:#faf8f1;border-color:var(--border);font-size:12px;color:var(--green-deep);padding:12px 15px}
.app-shell{width:440px;min-width:0;height:min(910px,calc(100dvh - 80px));min-height:640px;border:1px solid #d6dacd;background:var(--bg);border-radius:28px;box-shadow:0 20px 70px #243b2822}
.app-header{background:var(--bg);padding:18px 20px 12px;border-bottom:0;gap:11px;min-height:78px}.app-logo{width:41px;height:41px;padding:8px;border:0;border-radius:12px;background:#dce5cd;color:var(--green-deep);box-shadow:none}.app-logo svg{width:25px;height:25px}.app-heading strong{font-size:14px;letter-spacing:.15px}.app-heading small{font-size:11px;color:var(--muted)}
.avatar{width:37px;height:37px;background:#e5eadb;border:1px solid #819882;font-weight:500;font-size:21px}.small-circle{background:var(--soft);color:var(--green-deep)}
.screen{padding:12px 20px 24px;scrollbar-color:#c5cebc transparent}.screen>.page-title:first-child{margin-top:3px}
.page-title,.welcome h2{font-family:ReferenceDisplay,Georgia,serif;font-size:34px;line-height:1.16;letter-spacing:-1.6px;font-weight:400;margin:9px 0 9px;color:#142b23;overflow-wrap:break-word}
.subtext{font-size:14px;line-height:1.5;color:var(--muted);margin-bottom:20px}.eyebrow{font-size:9px;letter-spacing:1.2px;color:var(--green);line-height:1.4;font-weight:650}
.home-hero{position:relative;isolation:isolate;min-height:304px;border-radius:14px;overflow:hidden;background:#e8e9da;margin-bottom:12px}
.hero-photo{display:block;width:100%;height:304px;object-fit:cover;object-position:61% center}
.home-hero .welcome{position:absolute;inset:0;padding:15px 16px;z-index:1;pointer-events:none;background:linear-gradient(180deg,#faf8f1f2 0%,#faf8f1d8 25%,#faf8f145 47%,transparent 62%)}
.home-hero h2{font-size:33px;line-height:1.08;margin:8px 0 10px;max-width:100%;letter-spacing:-1.4px}.home-hero p{font-size:13px;line-height:1.45;margin:0;color:var(--txt)}
.ui-icon{width:23px;height:23px;flex:none;vertical-align:middle}
.btn{border-radius:9px;min-height:46px;padding:12px 15px;font-size:14px;font-weight:600;line-height:1.3;gap:10px}.btn-primary,.btn-dark{background:linear-gradient(180deg,#376348,#103c2a);box-shadow:0 3px 7px #233a2417;color:#fff;border:1px solid #244d37}.btn-light{background:var(--soft);border:1px solid #e0e5d6;color:var(--green-deep)}.btn-outline{background:var(--paper);border-color:var(--border)}.btn-feature{font-family:ReferenceDisplay,Georgia,serif;font-size:19px;justify-content:flex-start;min-height:51px}.btn-feature>.ui-icon:last-child{margin-left:auto}.btn-compact{font-size:12px;min-height:37px;padding:8px 10px;max-width:165px;margin-top:12px}.btn-danger{border:1px solid #e6c3b9;background:#fff6ef;color:#a13b2d}
button:focus-visible,a:focus-visible,summary:focus-visible,[role=button]:focus-visible{outline:3px solid #8eae79;outline-offset:3px}
.card{border-radius:12px;border:1px solid var(--border);background:var(--paper);padding:15px;margin-bottom:13px;box-shadow:0 2px 5px #263c2510}.card h3{font-size:17px;margin:2px 0 12px}.card p{font-size:13px;line-height:1.55}.card summary{font-size:14px}
.section-head{margin:20px 0 10px}.section-head h3{font-size:14px;font-weight:650}.text-link{color:var(--green-deep);font-size:12px}.back-link{font-size:13px;color:var(--txt);font-weight:500;margin-bottom:6px;padding:5px 0}
.estimate-item{border-radius:12px;padding:12px;gap:11px;background:var(--paper);border-color:var(--border);box-shadow:0 2px 4px #263c2508;align-items:center}.estimate-icon{width:65px;height:64px;position:relative;overflow:hidden;border-radius:8px;background:#e4e9da;color:var(--green);border:1px solid #e0e4d4}.estimate-icon>.ui-icon{position:absolute}.estimate-icon img{position:relative;width:100%;height:100%;object-fit:cover}.estimate-description strong{font-size:14px;white-space:normal;line-height:1.3;overflow-wrap:anywhere}.estimate-description small{font-size:11px;line-height:1.4;color:var(--muted)}.estimate-end{display:flex;flex-direction:column;align-items:flex-end;gap:10px}.estimate-end>span:last-child:not(.tag){font-size:24px;line-height:1;color:var(--green-deep)}.tag{font-size:10px;font-weight:600;padding:5px 9px;white-space:normal;text-align:center;line-height:1.3;max-width:94px}.tag-finished{background:#d6f4dc;color:#195639}.tag-process{background:#ffe4b3;color:#764b1c}.tag-draft{background:#ecece5;color:#64695d}
.tile-grid{grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.tile{display:flex;align-items:center;text-align:left;border-radius:10px;padding:12px 10px;background:#fdfcf5;gap:8px;min-height:70px;color:var(--txt)}.tile>.ui-icon{background:var(--soft);padding:5px;box-sizing:content-box;border-radius:7px;width:23px;height:23px}.tile>span{font-size:12px;flex:1;min-width:0}.tile strong{font-size:12px;font-weight:650;display:block}.tile small{font-size:10px;font-weight:400;display:block;margin-top:4px;color:var(--muted)}.tile b{font-size:18px;font-weight:400}
.bottom-nav{background:#fcfbf5;border-top:1px solid #dfdfd3;box-shadow:0 -3px 14px #283a2705;padding:9px 6px max(12px,env(safe-area-inset-bottom));gap:0}.bottom-nav button{gap:5px;min-height:48px;color:#455247;border-radius:8px}.bottom-nav button.active{color:#143d2a;background:#eaf0e2}.bottom-nav small{font-size:10px;font-weight:500}.bottom-nav .active small{font-weight:700}
.steps{border:0;background:transparent;padding:10px 20px 16px;border-radius:0;margin:5px 0 8px}.step{font-size:11px;font-weight:400;gap:6px;color:#6e7768}.step .bubble{width:24px;height:24px;background:transparent;border:1px solid #aeb8a4;color:#596451;font-size:11px;font-weight:500}.step.current .bubble{background:var(--green-deep);box-shadow:0 0 0 3px #e2e7d6;border-color:var(--green-deep);color:white}.step.complete .bubble{background:var(--green);border-color:var(--green);color:white}.step.current,.step.complete{color:var(--green-deep);font-weight:600}.step-line{margin-top:12px;background:#bec8b4}
.field{gap:6px;margin-bottom:15px}.field label{font-size:12px;font-weight:600}.optional{font-weight:400;color:var(--muted);margin-left:5px}.field input,.field select,.field textarea{background:#fffefa;border:1px solid #cfd5c5;border-radius:8px;padding:11px 12px;min-height:43px;font-size:14px}.field textarea{min-height:76px;font-size:13px}.field input:focus,.field select:focus,.field textarea:focus{border-color:#6d8960;box-shadow:0 0 0 3px #e5ebd9}.hint{font-size:11px;color:var(--muted);line-height:1.55}.tip{border:1px solid #e2e7d6;border-radius:10px;background:#eaf0e0;color:#4b614b;font-size:12px;line-height:1.55;padding:12px;margin:14px 0}.tip strong{color:var(--green-deep)}.upload-area{background:#f1f3e9;border:1px dashed #8fa17d;padding:20px 14px;border-radius:11px}.upload-area .upload-icon{color:var(--green-deep)}.upload-area .btn{max-width:100%;background:var(--paper);color:var(--green-deep);border:1px solid #cdd7c1;box-shadow:none}.upload-area p{font-size:12px}.thumb-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.thumb{border-radius:9px;aspect-ratio:1.3;border-color:var(--border)}.thumb .label{background:#173b2bcc;font-size:10px}.thumb .delete-file{min-width:28px;min-height:28px;font-size:21px}.comment{background:var(--paper);border-color:var(--border);border-radius:10px}
.data-grid{gap:9px}.metric{background:var(--paper);border-color:var(--border);border-radius:10px;padding:14px}.metric.green,.metric.blue{background:#e6ecda}.metric.orange{background:#fff0d1}.metric .number{font-size:28px;color:var(--green-deep);font-weight:650}.metric .desc{font-size:11px;color:#58664f;line-height:1.4;display:block;margin-top:3px}
.profile-head{background:var(--paper);border:1px solid var(--border);border-radius:12px;padding:18px;display:flex;align-items:center;gap:15px}.profile-avatar{background:#dbe4cf;color:var(--green-deep);width:62px;height:62px;border-radius:50%;display:grid;place-items:center;font-size:35px;font-weight:400}.profile-head strong{font-size:17px;font-weight:600}.profile-head small{font-size:12px;color:var(--muted)}.profile-row{display:flex;width:100%;align-items:center;gap:12px;border:1px solid var(--border);border-radius:11px;background:var(--paper);padding:18px 15px;margin:10px 0;color:var(--txt);text-align:left;font-size:15px}.profile-row span{flex:1}.profile-row b{font-size:22px;font-weight:400}.profile-note{margin-top:20px}.profile-note .subtext{margin:10px 0 0;font-size:13px}
.search-field{display:flex;align-items:center;gap:10px;border:1px solid #cfd5c5;background:#fdfcf6;border-radius:9px;padding:0 12px;margin:16px 0;color:#62705c}.search-field input{font-size:13px;color:var(--txt);border:0;outline:0;background:none;min-width:0;width:100%;height:43px}.search-field:focus-within{outline:3px solid #e2e9d6;border-color:#6d8960}.search-field .ui-icon{width:19px;height:19px}.filter-tabs{display:flex;gap:7px;margin:13px 0 18px;flex-wrap:wrap}.filter-tabs button{border:1px solid transparent;border-radius:8px;padding:9px 12px;background:#e9edde;color:var(--txt);font-size:11px;min-height:36px}.filter-tabs .selected{background:var(--green-deep);color:white}.report-item{align-items:flex-start}.report-item .estimate-icon{height:94px}.report-item .estimate-end>span:last-child:not(.tag){display:none}
.notice{background:#fff0d1;color:#735223;font-size:12px}.muted-box{background:#fdfcf7;border-color:#d4ddc7;color:var(--muted);border-radius:11px;padding:23px 16px;font-size:13px}.muted-box strong{color:var(--green-deep);font-size:15px}.pill{background:#e5ebda;color:var(--green-deep);font-size:10px}.admin-card{background:var(--paper);border-color:var(--border);border-radius:11px}.auth-tabs button.selected{background:var(--soft);color:var(--green-deep);border-color:#7f9871}.loading-spinner{border-color:#dfe6d4;border-top-color:var(--green)}dialog{background:var(--bg);color:var(--txt)}dialog::backdrop{background:#112c2466}dialog h3{font:24px/1.2 ReferenceDisplay,Georgia,serif}dialog p{font-size:14px;line-height:1.6}progress{accent-color:var(--green)!important}
@media(max-width:1000px){.stage{padding:0;min-height:100dvh}.app-shell{border:0;border-radius:0;box-shadow:none;width:min(100vw,540px);height:100dvh;min-height:100dvh}.desk-intro{display:none}}
@media(min-width:1001px) and (max-height:760px){.app-shell{min-height:560px}.stage{padding:20px}.home-hero,.hero-photo{height:250px;min-height:250px}}
@media(max-width:370px){.screen{padding:10px 14px 22px}.app-header{padding:15px 14px 10px}.page-title{font-size:30px}.tile-grid{gap:7px}.tile{padding:10px 7px;gap:5px}.tile>.ui-icon{width:19px;height:19px}.tile strong{font-size:11px}.estimate-icon{width:52px;height:58px}.home-hero h2{font-size:30px}.home-hero,.hero-photo{height:285px;min-height:285px}.filter-tabs{gap:4px}.filter-tabs button{padding:8px 10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition:none!important}}
/* Final legibility and compact entry form. */
.tag{display:inline-block;vertical-align:middle}.home-hero .welcome{background:linear-gradient(180deg,#faf8f1fc 0%,#faf8f1e6 30%,#faf8f1a0 46%,#faf8f140 57%,transparent 68%)}
.vehicle-text-options{margin:4px 0 17px;font-size:12px;color:var(--green-deep)}.vehicle-text-options summary{cursor:pointer;padding:6px 0}.vehicle-text-options .field{margin-top:12px}.upload-icon .ui-icon{width:33px;height:33px}

/* Shared PDF/application body fonts; no external font downloads. */


:root{font-family:ReferenceBody,"Segoe UI",Arial,sans-serif}

/* v066 — reference typography and all twelve screens. */
@font-face{font-family:ReferenceDisplay;src:url('./fonts/Prata-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:ReferenceBody;src:url('./fonts/Roboto-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:ReferenceBody;src:url('./fonts/Roboto-Bold.ttf') format('truetype');font-weight:600 900;font-display:swap}
:root{font-family:ReferenceBody,Arial,sans-serif;--txt:#14271e;--muted:#777970;--border:#deded2}
body{background:radial-gradient(ellipse at top right,#e9eee5,transparent 60%),#f4f2e9}
.desk-intro h1,.brand-emblem,.page-title,.welcome h2,dialog h3{font-family:ReferenceDisplay,Georgia,serif;font-weight:400;font-synthesis:none}
.app-shell{width:414px;border-radius:28px}.app-header{padding:17px 19px 10px;min-height:72px}.app-heading strong{font-size:14px;letter-spacing:0}.app-heading small{font-size:11px}.app-logo{width:39px;height:39px;padding:8px;background:#dbe4cf}.app-logo svg{width:23px;height:23px}.avatar{font-family:ReferenceBody,Arial,sans-serif;font-weight:400;font-size:22px}
.screen{padding:10px 19px 22px}.page-title{font-size:34px;line-height:1.2;letter-spacing:-1.3px;margin:8px 0 7px}.subtext{font-size:14px;color:#17231d;line-height:1.35;margin-bottom:15px}.hint{font-size:11px;line-height:1.4;color:#777970}
.home-hero{height:278px;min-height:278px;border:0;border-radius:14px 14px 0 0;margin-bottom:8px}.hero-photo{height:278px;min-height:278px;object-position:62% center}
.home-hero .welcome{width:57%;height:64%;inset:0 auto auto 0;padding:0 0 10px;background:linear-gradient(90deg,#faf8f1 86%,#faf8f1d0 95%,#faf8f100)}
.home-hero h2{font-family:ReferenceDisplay,Georgia,serif;font-size:37px;font-weight:400;line-height:1.05;letter-spacing:-1.4px;margin:4px 0 12px;max-width:100%}.home-hero p{font-size:14px;line-height:1.25;color:#121e17;max-width:175px}
.btn{min-height:42px;border-radius:8px;padding:10px 13px;font-size:14px;font-weight:400}.btn-feature{font-family:ReferenceDisplay,Georgia,serif;font-size:19px;line-height:1.1;min-height:48px;gap:11px}.btn-primary{background:linear-gradient(#3c6448,#0c3826);border:1px solid #355640;box-shadow:0 3px 5px #193e2722}.btn-light{background:#e6ebda;border:1px solid transparent;color:#102e1f}.btn-feature .ui-icon{width:28px;height:28px}.btn-feature .ui-icon:last-child{width:22px;height:22px}
.section-head{margin:14px 0 8px}.section-head h3{font-size:14px;font-weight:600}.tile-grid{gap:8px}.tile{min-height:58px;padding:9px 8px;border-radius:10px}.tile strong{font-size:12px;font-weight:600}.tile small{font-size:10px}.tile>.ui-icon{background:#e5ead9}.estimate-item{padding:9px;gap:10px;border-radius:10px;margin-bottom:8px;box-shadow:0 2px 4px #4c553510}.estimate-icon{width:65px;height:58px;border-radius:7px}.estimate-description strong{font-size:14px;line-height:1.2;font-weight:600}.estimate-description small{font-size:11px;margin-top:4px}.tag{font-weight:400;font-size:11px;padding:4px 10px;line-height:1.15;max-width:98px}.tag-replace{background:#fce0d9;color:#9b322b}.tag-finished{background:#d9f5df;color:#163c25}.tag-process{background:#ffe7b7;color:#6f481c}.tag-draft{background:#ecece7;color:#50574d}
.bottom-nav{background:#fcfbf5;padding:8px 5px max(10px,env(safe-area-inset-bottom));border-radius:15px 15px 0 0}.bottom-nav button{background:transparent!important;border-radius:0;gap:4px;min-height:44px;color:#17221c}.bottom-nav button.active{color:#103e29}.bottom-nav .ui-icon{width:22px;height:22px}.bottom-nav small{font-size:10px;font-weight:400}.bottom-nav .active small{font-weight:600}
.steps{padding:6px 22px 12px;margin:3px 0 4px}.step{font-size:11px;gap:6px}.step .bubble{width:22px;height:22px}.step-line{margin-top:11px}.back-link{font-size:12px;margin-bottom:4px;min-height:24px}
#vehicle-form{background:transparent;border:0;box-shadow:none;padding:0;margin-top:11px}.field{margin-bottom:12px;gap:5px}.field label{font-size:12px;font-weight:600}.field input,.field select,.field textarea{min-height:37px;padding:8px 11px;border-radius:7px;font-size:14px;border-color:#cfd3c4;background:#fffefa}.field textarea{min-height:62px}.field input::placeholder,.field textarea::placeholder{color:#92968e}.optional{color:#777970;font-size:11px}.vehicle-text-options{font-size:12px;margin:0 0 12px}.vehicle-advice{display:flex;gap:10px;align-items:center;border:1px solid #f1dfb5;border-radius:9px;background:#fff0d1;color:#674a1c;padding:10px;margin:11px 0 13px}.vehicle-advice>span{width:22px;height:22px;flex:none;border-radius:50%;background:#d18a13;color:white;display:grid;place-items:center;font-size:15px;font-weight:600}.vehicle-advice p{font-size:12px;line-height:1.35;margin:0}.vehicle-advice strong{font-weight:600}.vehicle-advice.small{padding:9px;font-size:11px}.skip-vehicle{margin-top:9px;min-height:36px;font-size:13px}
.upload-area{display:grid;grid-template-columns:40px 1fr;gap:3px 10px;padding:13px;text-align:left;place-items:start;background:#f0f3e7;border:1px dashed #9bad8a}.upload-area .upload-icon{grid-row:1/4;background:#dce6d1;padding:6px;border-radius:7px}.upload-area .upload-icon .ui-icon{width:26px;height:26px}.upload-area strong{font-size:14px}.upload-area p{font-size:11px;line-height:1.3;margin:0}.upload-area .btn{grid-column:1/-1;margin-top:7px;width:100%;min-height:35px;padding:7px}.upload-area.has-files p{display:none}.upload-area.has-files .btn{grid-column:2;margin:0;min-height:28px;padding:4px 0;background:transparent;border:0;justify-content:flex-start;font-size:12px}.upload-area.has-files .upload-icon{grid-row:1/3}.thumb-grid{gap:8px;margin:8px 0 12px}.thumb{aspect-ratio:1.5;border-radius:8px}.thumb .label{display:none}.thumb .delete-file{width:24px;height:24px;min-width:24px;min-height:24px;font-size:19px;top:4px;right:4px}.comment-entry{padding:0;background:transparent;border:0;box-shadow:none;margin:8px 0}.comment-target-options{font-size:11px;color:#64735e;margin:0 0 9px}.comment-target-options summary{cursor:pointer}.comment-target-options .field{margin-top:9px}.save-comment{display:block;margin-left:auto;padding:0 2px 5px;font-size:11px}.photo-help{font-size:11px;color:#66765e;margin:5px 0 12px}.photo-help summary{cursor:pointer}.photo-help p{line-height:1.4}.full-width{width:100%;text-align:center;margin-top:10px}.comment{padding:10px}
.vehicle-summary{display:flex;align-items:center;gap:9px;border:1px solid var(--border);background:#fffef8;border-radius:9px;padding:9px;margin:10px 0 16px}.vehicle-summary .estimate-icon{width:59px;height:49px;flex:none}.vehicle-summary>div:not(.estimate-icon){flex:1;min-width:0}.vehicle-summary strong{font-size:14px;line-height:1.15;display:block}.vehicle-summary small{font-size:10px;color:#73786d;display:block;margin-top:5px;overflow-wrap:anywhere}.vehicle-summary>.tag{font-size:10px;max-width:75px;padding:4px 7px}
.analysis-timeline{padding:0 3px;margin:16px 0}.analysis-timeline>div{display:flex;align-items:flex-start;gap:11px;margin-bottom:17px}.analysis-timeline>div>span{display:grid;place-items:center;width:19px;height:19px;border-radius:50%;flex:none;border:1.4px solid #73816c;font-size:12px}.analysis-timeline .done>span{background:#24583b;border-color:#24583b;color:white}.analysis-timeline .current>span{border:4px solid #20543a;background:#fffefa}.analysis-timeline p{margin:1px 0 0;font-size:13px;line-height:1.3}.analysis-timeline small{display:block;font-size:11px;color:#747b6d;margin-top:4px}.analysis-timeline .waiting{color:#7a8174}.analysis-time{display:flex;gap:12px;align-items:flex-start;background:#e7ecdb;border:1px solid #dce3cf;padding:12px;border-radius:9px}.analysis-time .time-icon .ui-icon{width:29px;height:29px}.analysis-time strong{font-size:14px;font-weight:600}.analysis-time p{font-size:12px;margin:5px 0}.analysis-time small{font-size:10px;color:#67735c}.timing-details{font-size:11px;margin:12px 0;color:#637158}.timing-details summary{cursor:pointer}
.result-total{margin:12px 0 10px}.result-total>span{font-size:12px;display:block}.result-total>strong{display:block;font-size:28px;font-weight:600;line-height:1.2;margin-top:4px}.result-total>small{display:block;color:#6f766a;font-size:10px;margin-top:4px}.result-breakdown{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #dedfd0;border-radius:8px;padding:9px 0;background:#fffef7}.result-breakdown>div{text-align:center;border-right:1px solid #e6e7d9}.result-breakdown>div:last-child{border:0}.result-breakdown span{display:block;font-size:11px;color:#6d7566}.result-breakdown strong{display:block;font-size:13px;font-weight:600;margin-top:4px}.damage-row{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid #e5e6db}.damage-symbol{background:#e6ebdb;color:#3d6246;width:42px;height:34px;display:grid;place-items:center;border-radius:5px;flex:none}.damage-row>div:not(.damage-symbol){flex:1;min-width:0}.damage-row strong{font-size:12px;display:block;line-height:1.2}.damage-row small{display:block;font-size:10px;color:#7a8072;margin-top:3px}.damage-row .tag{font-size:10px;max-width:70px;padding:4px 7px}.damage-more{font-size:11px;margin-top:9px;color:#68765c}.damage-more p{font-size:12px}.result-actions{display:flex;gap:8px}.result-actions .btn{font-size:12px;padding:9px;flex:1}.result-actions .ui-icon{width:19px;height:19px}
.search-field{margin:14px 0 12px;padding:0 11px;border-radius:8px}.search-field input{height:38px;font-size:13px}.filter-tabs{margin:10px 0 14px;gap:7px}.filter-tabs button{font-size:11px;min-height:33px;padding:8px 12px}.report-item .estimate-icon{width:76px;height:101px;border-radius:6px;border:3px solid #f1f1e5;box-shadow:0 1px 3px #0001}.report-item .estimate-description strong{font-size:15px}.report-item .btn-compact{margin-top:11px;max-width:160px;font-size:12px;min-height:36px}.report-item{padding:10px}.report-item .estimate-end{margin-top:3px}
.profile-head{padding:16px 13px;border-radius:10px;margin-top:24px;background:#fffef8;gap:15px}.profile-button{width:100%;text-align:left;color:var(--txt)}.profile-head>div:nth-child(2){flex:1}.profile-head b{font-size:22px;font-weight:400}.profile-avatar{width:59px;height:59px;font-size:35px;background:#d6e1cc}.profile-head strong{font-size:17px;font-weight:600}.profile-head small{font-size:13px;color:#797b73}.profile-row{margin:10px 0;padding:16px 13px;border-radius:9px;font-size:15px;min-height:58px;background:#fffef8}.profile-row .ui-icon{width:25px;height:25px}.help-icon{display:grid;place-items:center;width:25px;height:25px;border:1.5px solid #193d2a;border-radius:50%;font-size:19px;flex:none}.logout-row{color:#bc3027;margin-top:18px}.local-account-hint{margin:20px 3px 0;line-height:1.5}
.auth-page .page-title{font-size:33px;letter-spacing:-1.35px;margin-top:10px}.auth-page .subtext{margin-bottom:16px}.auth-hero{display:block;width:100%;height:155px;border-radius:9px;object-fit:cover;object-position:60% 53%;margin:0 0 16px}.auth-page .field{margin:0 0 15px}.auth-page .field input{height:43px}.auth-page .btn{margin-top:8px}.auth-page:has(#auth-name) .field{margin-bottom:21px}.auth-page:has(#auth-name) #auth-form{margin-top:24px}.password-field{position:relative}.password-field input{padding-right:42px}.password-field button{position:absolute;right:4px;top:4px;border:0;background:none;color:#6e7569;width:34px;height:34px;font-size:20px}.auth-switch{text-align:center;font-size:12px;margin:17px 0}.auth-switch .text-link{font-size:13px;text-decoration:underline;color:#173d29;padding:0 3px}.admin-top .page-title{font-size:37px}.admin-top .eyebrow{font-size:10px}.metric{padding:12px;border-radius:9px}.metric .number{font-size:28px;font-weight:600;letter-spacing:-.5px}.metric .desc{font-size:12px}.admin-card[hidden]{display:none!important}.admin-card{padding:11px;border-radius:9px}.admin-card strong{font-size:13px}.admin-card .estimate-icon{background:#e5ebda}
@media(max-width:370px){.screen{padding:8px 14px 20px}.page-title{font-size:30px}.home-hero,.hero-photo{height:262px;min-height:262px}.home-hero h2{font-size:32px}.home-hero p{font-size:12px}.app-header{padding:15px 14px 9px}.field{margin-bottom:10px}.vehicle-advice{padding:8px}.vehicle-advice p{font-size:11px}.filter-tabs{gap:5px}.filter-tabs button{padding:8px 10px}.auth-page .page-title{font-size:29px}.vehicle-summary>.tag{max-width:65px}}
@media(max-width:1000px){.app-shell{width:min(100vw,500px);border:0;border-radius:0}}
/* Reference hero: greeting beside the mountains, vehicle below it. */
.home-hero{background:#faf8f1 url('./assets/sage-hero-v066.webp') right top/auto 430px no-repeat}
.hero-photo{position:absolute;bottom:0;left:0;width:100%;height:auto;min-height:0;object-fit:contain;mask-image:linear-gradient(transparent,black 22%);-webkit-mask-image:linear-gradient(transparent,black 22%)}
.home-hero .welcome{height:60%;width:54%;z-index:2;background:linear-gradient(90deg,#faf8f1 88%,#faf8f1cc 96%,transparent)}
.profile-row .help-icon{flex:0 0 25px;width:25px;height:25px}
.result-total{margin:8px 0}.result-total>strong{font-size:26px}.vehicle-summary{margin:5px 0 11px;padding:8px}.damage-row{padding:6px 0}.result-actions{margin-bottom:8px}
.screen:has(.result-total) .subtext{margin-bottom:7px}.screen:has(.result-total) .steps{padding-top:3px;padding-bottom:7px;margin-bottom:1px}.screen:has(.result-total) .page-title{margin-top:4px}.screen:has(.result-total) .vehicle-advice{margin:10px 0}
@media(max-width:370px){.home-hero,.hero-photo{min-height:0}.home-hero{height:265px}.hero-photo{height:auto}}

/* Separate reports v067 */
.report-downloads{display:grid;gap:9px;margin:12px 0}.report-downloads .btn{width:100%}.report-item .btn-compact{font-size:11px;max-width:200px;margin-top:8px}.report-item .estimate-icon{height:112px}

/* Persistent upload feedback also fits narrow Telegram windows. */
.upload-status{overflow-wrap:anywhere}.upload-status ul{margin:10px 0 0;padding-left:22px}.upload-status li+li{margin-top:8px}

/* v096.1: case editor uses existing theme tokens at phone widths. */
.repair-case-item{min-inline-size:0;max-width:100%;margin-inline:0}.repair-case-item legend{max-width:100%;white-space:normal;overflow-wrap:anywhere}.repair-case-item p,.repair-case-item label{overflow-wrap:anywhere}.repair-case-item input[type=checkbox],#repair-case-editor input[type=checkbox]{width:auto;min-height:0;vertical-align:middle}.repair-case-hours{margin-top:12px}
