/* Shared app presentation: desktop workspace, phone navigation, and native safe areas. */
:root{--app-yellow:#ffd100;--app-ink:#17191c;--app-muted:#5e646c;--app-line:#e0e3e6;--app-surface:#fff}body{padding-top:env(safe-area-inset-top)}button,a{-webkit-tap-highlight-color:transparent}button,input,select,textarea{font-size:16px}.app-toolbar{margin-bottom:18px;gap:14px}.app-toolbar-actions{display:flex;align-items:center;gap:10px}.app-toolbar .save-project-button{background:#17191c;color:white;border:1px solid #17191c}.app-navigation{display:flex;gap:8px;padding:6px;margin:0 0 22px;background:white;border:1px solid var(--app-line);border-radius:14px;width:max-content;max-width:100%}.app-navigation button{display:flex;align-items:center;justify-content:center;gap:9px;background:transparent;color:var(--app-muted);border-radius:10px;padding:11px 19px;font-size:14px;font-weight:700;min-height:44px}.app-navigation svg{width:20px;height:20px}.app-navigation button[aria-current=page]{background:var(--app-yellow);color:var(--app-ink)}.app-secondary-page main>:not(.app-toolbar):not(.app-navigation):not(.app-page){display:none!important}.app-page{margin-top:14px}.app-page[hidden]{display:none!important}.app-page h1{font-size:clamp(32px,4vw,46px);line-height:1.1;margin:9px 0 12px}.app-page .eyebrow{color:#666;font-size:11px;letter-spacing:.15em}.app-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.app-page-heading p{margin:0}.device-note{font-size:13px;color:var(--app-muted);line-height:1.55}.project-search-label{display:block;font-size:13px;font-weight:700;margin:25px 0 4px}#projectsearch{max-width:620px;background:white}#projecterror,#saveprojecterror{color:#a72d29;font-size:14px}.project-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:12px 0 20px}.project-card{background:#fff;border:1px solid var(--app-line);border-radius:18px;padding:24px;box-shadow:0 4px 18px #00000005}.project-card-top{display:flex;justify-content:space-between;align-items:center;gap:14px}.project-mark{display:grid;place-items:center;width:39px;height:39px;background:#fff5c3;border-radius:12px}.project-mark svg{width:21px;height:21px}.project-state{font-size:11px;font-weight:700;letter-spacing:.04em;color:#60656b;text-transform:uppercase}.project-card h2{font-size:21px;line-height:1.25;margin:16px 0 10px;overflow-wrap:anywhere}.project-summary{font-size:13px;color:#50565d;font-weight:700}.project-request{font-size:14px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.project-notes{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;color:#5e646c}.project-reference{font-size:12px;font-weight:700}.project-updated{font-size:12px;color:#6c7279;margin:18px 0 16px}.project-card-actions{display:flex;gap:8px;flex-wrap:wrap}.project-card-actions button{font-size:13px;min-height:44px;padding:11px 14px}.text-button{background:transparent;color:#555d65;padding:10px 5px;font-weight:600;text-decoration:underline;text-underline-offset:4px}.project-empty{grid-column:1/-1;display:grid;justify-items:center;text-align:center;padding:60px 25px;border:1px dashed #cbd0d4;border-radius:20px;background:#ffffffb0}.empty-icon{width:72px;height:72px;border-radius:22px;background:#fff0a6;display:grid;place-items:center;margin-bottom:14px}.empty-icon svg{width:34px;height:34px}.project-empty h2{font-size:25px;margin:10px 0}.project-empty p{max-width:420px;color:var(--app-muted);font-size:15px}.deleted-project{display:flex;align-items:center;justify-content:space-between;gap:16px;background:white;padding:14px 18px;border:1px solid var(--app-line);border-radius:12px;margin:10px 0;font-size:14px}.deleted-project button{font-size:13px}.help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:28px 0}.help-card{display:flex;flex-direction:column;gap:9px;align-items:flex-start;text-align:left;justify-content:center;border:1px solid var(--app-line);border-radius:15px;padding:24px;text-decoration:none;background:white;color:var(--app-ink);min-height:110px}.help-card strong{font-size:18px}.help-card span{font-size:14px;color:var(--app-muted);font-weight:400}.help-note{padding:24px 28px;border-radius:16px;background:#eceff1;margin:24px 0}.help-note h2{font-size:18px;margin:0 0 8px}.help-note h2:not(:first-child){margin-top:22px}.help-note p{font-size:14px;margin:0;color:#535b64;line-height:1.65}.app-toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#17191c;color:white;font-size:14px;padding:15px 22px;max-width:calc(100vw - 32px);width:max-content;border:1px solid #42464b;border-radius:12px;z-index:1000;box-shadow:0 8px 25px #0003;margin:0}.app-toast[hidden]{display:none}#save-project-dialog{max-width:540px;width:calc(100% - 32px);border:0;border-radius:22px;padding:30px;background:#fff;color:#17191c;max-height:calc(100dvh - 40px);overflow:auto;box-shadow:0 25px 90px #0004}#save-project-dialog::backdrop{background:#15171a99;backdrop-filter:blur(3px)}#save-project-dialog h2{font-size:28px;margin:10px 0 24px}#save-project-dialog .eyebrow{font-size:11px;letter-spacing:.15em;color:#666}#save-project-dialog label{display:block;font-weight:700;font-size:14px}#save-project-dialog .actions button{flex:1;min-height:46px}#projectnotes{min-height:100px}.app-navigation button:focus-visible,.project-card button:focus-visible,.help-card:focus-visible{outline:3px solid #17191c;outline-offset:3px}
@media(max-width:800px){body{padding-bottom:calc(78px + env(safe-area-inset-bottom))}main{padding:14px 14px 26px}.app-toolbar{margin:0 0 18px;align-items:center}.app-brand{gap:9px;font-size:15px}.app-brand img{width:44px;height:auto}.app-brand strong{font-size:12px}.app-toolbar-actions{gap:6px}.app-toolbar #installapp{display:none}.app-toolbar .save-project-button{font-size:12px;min-height:42px;padding:10px 13px;white-space:nowrap}.app-navigation{position:fixed;bottom:0;left:0;right:0;z-index:200;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;width:100%;max-width:none;margin:0;border:0;border-top:1px solid #dadfe3;border-radius:0;background:#fffffff5;backdrop-filter:blur(14px);padding:6px 8px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -6px 24px #00000006}.app-navigation button{flex-direction:column;gap:4px;padding:8px 3px 7px;font-size:11px;border-radius:10px;min-height:58px}.app-navigation svg{width:22px;height:22px}.hero{padding:25px 22px 75px;min-height:315px;border-radius:20px 20px 0 0;background-position:62% center}.hero h1{font-size:clamp(29px,7.3vw,42px);line-height:1.08;letter-spacing:-.04em;margin:16px 0}.hero .eyebrow{font-size:9px;letter-spacing:.1em}.hero .eyebrow:before{width:22px;margin-right:8px}.hero p{font-size:13px;line-height:1.55;max-width:340px}.prompt-panel{margin:-55px 9px 0;padding:20px 17px;border-radius:18px}.prompt-panel label{font-size:16px}.prompt-panel textarea{font-size:16px;line-height:1.5;min-height:124px}.prompt-panel .actions{justify-content:stretch;gap:8px}.prompt-panel .actions #build{flex:1}.prompt-panel button{min-height:45px;font-size:13px}.grid{gap:10px;margin:18px 0 0}.tile{padding:17px 14px;min-height:145px}.tile strong{font-size:14px}.tile small{font-size:12px;line-height:1.4}.steps{margin-top:15px}.discovery{margin:22px 0 18px;padding:19px 16px;border-radius:17px}.discovery h2{font-size:24px;line-height:1.2}.discovery .fields label{font-size:14px;line-height:1.45}.discovery input,.discovery select,.discovery textarea{font-size:16px;min-height:46px}.equipment-item{gap:11px;padding:16px 0}.equipment-item b{font-size:15px}.equipment-item span,.equipment-item .hint{font-size:13px}.estimate-card{padding:22px}.bundle-price{font-size:36px}.actions button{min-height:45px}.app-page{margin-top:24px}.app-page-heading{align-items:flex-start;gap:12px}.app-page-heading button{font-size:12px;padding:12px 14px;white-space:nowrap}.app-page-heading h1{font-size:34px}.app-page-heading p{font-size:14px}.project-list{grid-template-columns:1fr;gap:14px}.project-card{padding:21px}.project-card h2{font-size:21px}.project-empty{padding:42px 20px}.help-grid{grid-template-columns:1fr;gap:12px;margin:22px 0}.help-card{padding:21px;min-height:100px}.help-note{padding:22px}.app-toast{bottom:calc(88px + env(safe-area-inset-bottom));font-size:13px;padding:13px 17px}#save-project-dialog{padding:26px 21px}.app-page #projectsearch{font-size:16px}#projectname{font-size:16px}}
@media print{.app-navigation,.app-toolbar-actions,.app-page,#save-project-dialog,.app-toast{display:none!important}body{padding:0}}
