:root{--bg:#f4f7fb;--card:#fff;--text:#13223a;--muted:#69788e;--line:#dfe6ef;--brand:#1558b0;--brand2:#0b438c;--soft:#edf4fc;--ok:#16865a;--danger:#b63b3b;--shadow:0 10px 30px rgba(17,39,69,.06)}
*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);-webkit-text-size-adjust:100%}body{margin:0;min-height:100%;background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}a{color:inherit}.app{max-width:760px;margin:0 auto;padding:16px 16px 56px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px}.brand{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:.01em}.brandmark{width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,var(--brand),var(--brand2));display:grid;place-items:center;color:white;font-size:13px;flex:0 0 auto}.muted{color:var(--muted)}.tiny{font-size:12px}.small{font-size:14px}.normal{font-weight:400}.center{text-align:center}.card,.project-hero,.progress-card,.share-card,.update{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:18px}.stack{display:grid;gap:12px}.compact-stack{gap:8px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.btn{min-height:48px;border:0;border-radius:14px;padding:12px 16px;font-weight:750;background:#e9eef5;color:var(--text);display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.btn.primary{background:linear-gradient(135deg,#1762c7,var(--brand));color:#fff}.btn.secondary{background:var(--soft);color:var(--brand)}.btn.danger{background:#fdeeee;color:var(--danger)}.btn.full{width:100%}.btn.mini{min-height:40px;padding:8px 12px;font-size:13px}.icon-btn{width:44px;height:44px;border:0;border-radius:14px;background:#eaf0f7;color:var(--text);font-weight:800}.field{display:grid;gap:7px}.label{font-weight:750;font-size:14px}.input,.select,.textarea{width:100%;min-height:50px;border:1px solid var(--line);border-radius:14px;background:#fff;padding:12px 14px;color:var(--text);font-size:16px;outline:none}.input:focus,.select:focus,.textarea:focus{border-color:#8bb4ea;box-shadow:0 0 0 3px #e6f0fc}.textarea{min-height:96px;resize:vertical}.textarea.compact{min-height:132px}.search{position:relative;min-width:0;flex:1}.search input{padding-left:42px}.search:before{content:"⌕";position:absolute;left:15px;top:10px;color:var(--muted);font-size:24px}.home-actions{display:flex;gap:10px;align-items:center}.home-actions>.btn{white-space:nowrap}.project-card{display:block;text-decoration:none;color:inherit;background:#fff;border:1px solid var(--line);border-radius:20px;padding:17px;transition:border-color .15s,transform .15s}.project-card h3{margin:3px 0 6px;font-size:19px;line-height:1.18}.project-meta{display:flex;gap:5px;flex-wrap:wrap}.project-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px}.eyebrow{font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);font-weight:800}.eyebrow.light{color:#bcd2ef}.stage{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:800;color:var(--brand);background:var(--soft);padding:8px 11px;border-radius:999px}.dot{width:8px;height:8px;border-radius:50%;background:currentColor}.section-title{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:800;margin:24px 2px 10px}.section-row{display:flex;justify-content:space-between;align-items:end}.hero-title{font-size:29px;line-height:1.08;margin:4px 0 9px;letter-spacing:-.02em}.statusline{display:flex;gap:8px;align-items:center;color:var(--ok);font-weight:800}.statusline .dot{width:9px;height:9px}.project-hero{padding:20px}.project-hero .project-meta{font-size:16px}.stage-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:800;margin:22px 0 8px}.add-update{margin-top:20px;min-height:54px;font-size:16px}.back-link{font-weight:800;text-decoration:none;padding:11px 12px;border-radius:13px;background:#eaf0f7}.progress-card{padding:14px 0;overflow:hidden}.timeline{display:flex;overflow-x:auto;padding:8px 16px 8px;scroll-snap-type:x proximity;scrollbar-width:none}.timeline::-webkit-scrollbar{display:none}.step{min-width:106px;position:relative;padding-top:30px;font-size:12px;color:var(--muted);text-align:center;scroll-snap-align:center;line-height:1.2}.step:before{content:"";position:absolute;top:10px;left:50%;right:-50%;height:2px;background:var(--line)}.step:last-child:before{right:50%}.step:after{content:"";position:absolute;top:3px;left:calc(50% - 8px);width:16px;height:16px;border-radius:50%;background:#fff;border:2px solid var(--line)}.step.done{color:var(--ok);font-weight:800}.step.done:after{background:var(--ok);border-color:var(--ok)}.step.current{color:var(--brand);font-weight:800}.step.current:after{background:var(--brand);border-color:var(--brand);box-shadow:0 0 0 5px #deebfb}.share-card{display:grid;gap:15px}.share-status,.share-actions,.update-head,.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.share-actions{display:grid;grid-template-columns:1fr 1fr}.privacy-badge{display:inline-flex;align-items:center;background:#f0f4f8;color:#536479;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:750;white-space:nowrap}.privacy-badge.dark{background:rgba(255,255,255,.1);color:#d8e7f7}.manage-share summary{font-size:13px;color:var(--muted);cursor:pointer}.manage-share[open] summary{margin-bottom:10px}.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.photo-grid.one{grid-template-columns:minmax(0,220px)}.photo-button{display:block;padding:0;border:0;background:none;border-radius:13px;overflow:hidden}.photo-grid img,.preview img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:12px;border:1px solid var(--line)}.preview{position:relative}.preview button{position:absolute;right:5px;top:5px;width:30px;height:30px;border:0;border-radius:50%;background:rgba(15,28,45,.8);color:#fff;font-size:18px}.update{padding:16px}.update p{margin:10px 0 13px;line-height:1.5;white-space:pre-wrap}.notice{border-radius:14px;padding:12px 14px;background:var(--soft);color:var(--brand);font-size:14px}.error{background:#fdeeee;color:var(--danger)}.empty{background:#fff;border:1px dashed #ccd7e5;border-radius:20px;padding:30px 18px;display:grid;place-items:center;text-align:center;gap:6px}.empty-icon{width:44px;height:44px;border-radius:50%;background:var(--soft);color:var(--brand);display:grid;place-items:center;font-size:24px}.login-wrap{max-width:420px;margin:48px auto;padding:16px}.login-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:23px;box-shadow:var(--shadow)}.login-card h1{margin:16px 0 6px;font-size:28px}.sheet[hidden]{display:none}.sheet{position:fixed;inset:0;z-index:20;background:rgba(8,18,31,.54);display:flex;align-items:flex-end;justify-content:center;padding:0}.sheet-card{width:100%;max-width:720px;max-height:92%;overflow:auto;background:#fff;border-radius:24px 24px 0 0;padding:10px 18px calc(24px + env(safe-area-inset-bottom));box-shadow:0 -12px 40px rgba(0,0,0,.12)}.sheet-handle{width:42px;height:5px;border-radius:5px;background:#d8e0e9;margin:0 auto 14px}.sheet-head{margin-bottom:17px}.sheet-head h2{margin:2px 0 0}.capture-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.capture-btn{min-height:80px;border:1px solid #cfe0f4;background:#f4f8fd;border-radius:17px;padding:13px;display:flex;align-items:center;gap:10px;color:var(--brand);cursor:pointer}.capture-btn span:last-of-type{display:grid;gap:2px}.capture-btn small{font-size:11px;color:var(--muted);font-weight:500}.capture-icon{font-size:23px}.upload-progress{display:flex;gap:12px;align-items:center;background:#f4f8fd;border-radius:14px;padding:12px}.spinner{width:22px;height:22px;border:3px solid #d6e3f2;border-top-color:var(--brand);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.user-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:15px;padding:12px}.toast{position:fixed;z-index:40;left:50%;bottom:28px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#12233a;color:white;border-radius:999px;padding:11px 16px;font-size:13px;font-weight:750;transition:.2s}.toast.show{transform:translate(-50%,0);opacity:1}.toast.error{background:#8f3030}.lightbox{position:fixed;inset:0;background:rgba(5,12,22,.94);z-index:50;display:none;align-items:center;justify-content:center;padding:18px}.lightbox.open{display:flex}.lightbox img{max-width:100%;max-height:90%;object-fit:contain;border-radius:8px}.lightbox button{position:absolute;right:16px;top:16px;background:#fff}.customer-shell{max-width:920px;margin:0 auto;padding:18px 16px 60px}.customer-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 2px 14px}.customer-mark{background:#fff;color:var(--brand);border:1px solid var(--line)}.customer-hero{background:linear-gradient(145deg,#0d294d,#1557a8);border-radius:25px;padding:25px;color:#fff;box-shadow:0 16px 40px rgba(13,41,77,.15)}.customer-hero h1{font-size:34px;line-height:1.05;letter-spacing:-.025em;margin:7px 0 10px}.customer-meta{color:#c6d8ee;display:flex;gap:6px;flex-wrap:wrap}.customer-current{display:flex;align-items:center;gap:12px;margin-top:25px;border-top:1px solid rgba(255,255,255,.14);padding-top:18px}.customer-current small{display:block;color:#bcd2ef;text-transform:uppercase;font-size:10px;letter-spacing:.09em;font-weight:800}.customer-current strong{display:block;font-size:19px;margin-top:2px}.pulse{width:12px;height:12px;border-radius:50%;background:#55d49d;box-shadow:0 0 0 5px rgba(85,212,157,.15)}.customer-updated{color:#a9c4e4;margin-top:10px}.customer-stats{display:grid;grid-template-columns:repeat(3,1fr);background:white;border:1px solid var(--line);border-radius:18px;margin-top:12px}.customer-stats div{padding:14px;text-align:center}.customer-stats div+div{border-left:1px solid var(--line)}.customer-stats strong{display:block;font-size:20px}.customer-stats span{font-size:11px;color:var(--muted)}.latest-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:17px}.status-chip{display:inline-flex;background:var(--soft);color:var(--brand);font-size:12px;font-weight:800;border-radius:999px;padding:7px 10px}.latest-time{margin-top:7px}.latest-note{font-size:17px;line-height:1.55;margin:14px 0;white-space:pre-wrap}.customer-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.customer-gallery .lead{grid-column:1/-1}.customer-gallery.single{grid-template-columns:1fr}.customer-photo{border:0;padding:0;background:none;border-radius:15px;overflow:hidden}.customer-photo img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}.customer-photo.lead img{aspect-ratio:16/10;max-height:520px}.customer-update{box-shadow:none}.customer-footer{text-align:center;padding:34px 8px 5px;color:var(--muted);font-size:13px}.center-brand{justify-content:center;color:var(--text)}.unavailable{max-width:520px;margin:70px auto;background:white;border:1px solid var(--line);border-radius:24px;padding:30px;text-align:center}.unavailable .brandmark{margin:0 auto}.customer-progress{background:white}
@media(hover:hover) and (pointer:fine){.project-card:hover{border-color:#b9cbe0;transform:translateY(-1px)}}
@media(max-width:600px){.app{padding:14px 12px 44px}.grid2{grid-template-columns:1fr}.home-actions{display:grid;grid-template-columns:1fr}.home-actions>.btn{order:2}.hero-title{font-size:27px}.project-hero{padding:18px}.share-actions{grid-template-columns:1fr 1fr}.step{min-width:100px}.customer-shell{padding:12px 12px 45px}.customer-top{align-items:flex-start}.customer-top .privacy-badge{font-size:10px;padding:6px 8px}.customer-hero{padding:21px}.customer-hero h1{font-size:29px}.customer-stats div{padding:12px 7px}.customer-gallery{grid-template-columns:repeat(2,1fr)}.photo-grid{grid-template-columns:repeat(3,1fr)}.capture-grid{grid-template-columns:1fr 1fr}.sheet-card{padding-left:14px;padding-right:14px}.update-head{align-items:flex-start}.toast{bottom:calc(22px + env(safe-area-inset-bottom));white-space:nowrap;max-width:90%;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:360px){.share-actions,.capture-grid{grid-template-columns:1fr}.customer-top{display:grid}.photo-grid{grid-template-columns:repeat(2,1fr)}}

/* v0.3 mobile-first TEMPE shell */
:root{--brand:#201443;--brand2:#322060;--accent:#f71048;--soft:#f1eef7;--bg:#f6f7fb;--ok:#16865a}
body{padding-bottom:env(safe-area-inset-bottom)}
.tempe-logo{display:block;width:132px;height:auto;max-height:32px;object-fit:contain;object-position:left center}.compact-logo{width:106px;max-height:26px}.footer-logo{width:108px}.unavailable-logo{width:150px;margin:0 auto 20px}.login-brand,.brand-lockup,.account-summary,.customer-brand{display:flex;align-items:center;gap:10px}.login-brand span,.brand-lockup strong{font-weight:850}.login-brand .tempe-logo{width:150px}.login-card{border-radius:28px;padding:26px}.login-card h1{font-size:30px;letter-spacing:-.025em}.mobile-appbar{min-height:54px;margin-bottom:14px}.avatar-btn{width:44px;height:44px;border:0;border-radius:50%;background:var(--brand);color:white;font-weight:850;font-size:16px}.welcome-strip{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:8px 0 14px}.welcome-strip h1{font-size:30px;line-height:1;margin:4px 0 0;letter-spacing:-.035em}.new-project-btn{min-height:46px;border-radius:16px;padding:10px 17px}.mobile-search{margin-bottom:11px}.mobile-search .input{border-radius:18px;min-height:54px;background:#fff;box-shadow:0 4px 18px rgba(32,20,67,.035)}.compact-section{margin:6px 2px 10px}.project-list{display:grid;gap:10px}.mobile-project-card{padding:17px;border-radius:22px;box-shadow:0 5px 18px rgba(32,20,67,.035)}.project-card-top{display:flex;gap:10px;align-items:center}.project-card-top .project-main{min-width:0;flex:1}.chevron{font-size:32px;line-height:1;color:#9aa5b5;font-weight:300}.mobile-project-card h3{font-size:20px}.stage{background:#f3f0f8;color:var(--brand)}.btn.primary{background:var(--brand)}.btn.secondary{background:#f3f0f8;color:var(--brand)}.capture-btn{background:#faf8fc;border-color:#ddd6e9;color:var(--brand)}.sheet-card{border-radius:28px 28px 0 0}.simple-details{border:1px solid var(--line);border-radius:15px;padding:12px 14px}.simple-details summary{font-weight:750;cursor:pointer}.detail-body{margin-top:12px}.account-summary{padding:14px;border:1px solid var(--line);border-radius:18px;background:#faf9fc;margin-bottom:12px}.account-summary .tempe-logo{width:118px}.user-row{display:grid;grid-template-columns:42px 1fr auto}.user-avatar{width:42px;height:42px;border-radius:50%;background:#f3f0f8;color:var(--brand);display:grid;place-items:center;font-weight:850}.user-copy{min-width:0}.user-copy .tiny{overflow-wrap:anywhere}.user-actions{display:flex;align-items:center}.customer-brand{display:grid;gap:2px}.customer-brand .tempe-logo{width:145px}.customer-hero{background:linear-gradient(145deg,#201443,#352164)}
.mobile-nav,.project-mobile-actions{display:none}
@media(max-width:600px){
 body{background:#f7f8fb}.app{padding:12px 14px calc(92px + env(safe-area-inset-bottom))}.app-home{padding-top:10px}.topbar{position:relative}.login-wrap{margin:28px auto;padding:14px}.login-card{padding:24px 20px}.home-actions{display:block}.welcome-strip h1{font-size:28px}.mobile-project-card{padding:16px}.project-bottom{margin-top:13px}.project-meta{font-size:13px}.project-hero{border-radius:24px;padding:18px}.hero-title{font-size:28px}.add-update{display:none}.progress-card,.share-card,.update{border-radius:19px}.section-title{margin-top:20px}.capture-btn{min-height:88px;justify-content:flex-start}.sheet-card{max-height:94%;padding:8px 14px calc(22px + env(safe-area-inset-bottom))}.mobile-nav{position:fixed;z-index:14;left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));height:68px;border:1px solid #e2e5ec;background:rgba(255,255,255,.96);backdrop-filter:blur(16px);border-radius:22px;display:grid;grid-template-columns:repeat(3,1fr);box-shadow:0 12px 38px rgba(20,25,38,.15);padding:5px}.nav-item{border:0;background:transparent;border-radius:16px;color:#758195;display:grid;place-items:center;align-content:center;gap:1px;min-height:56px}.nav-item span{font-size:20px;line-height:1}.nav-item small{font-size:10px;font-weight:750}.nav-item.active{background:#f3f0f8;color:var(--brand)}.project-mobile-actions{position:fixed;z-index:14;left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1.35fr .65fr;gap:8px;padding:7px;border:1px solid #e2e5ec;border-radius:22px;background:rgba(255,255,255,.96);backdrop-filter:blur(16px);box-shadow:0 12px 38px rgba(20,25,38,.15)}.project-mobile-actions .btn{min-height:53px;border-radius:16px}.photo-grid{gap:6px}.photo-grid img,.preview img{border-radius:14px}.customer-shell{padding:12px 12px 45px}.customer-top{align-items:center}.customer-brand .tempe-logo{width:126px}.customer-hero{border-radius:24px}.customer-hero h1{font-size:28px}.customer-stats{border-radius:18px}.customer-stats strong{font-size:18px}
}
