:root{--navy:#0c102f;--mint:#00e1aa;--gold:#ffd25c;--text:#f8fbff;--muted:#b9cce6}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#070b1e}body{color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}.hidden{display:none!important}
.app-shell{min-height:100dvh;display:grid;place-items:center;background:radial-gradient(circle at 15% 0%,rgba(0,169,162,.18),transparent 32rem),radial-gradient(circle at 90% 100%,rgba(78,70,183,.18),transparent 30rem),#070b1e}
.phone-app{width:min(100%,520px);height:100dvh;min-height:650px;position:relative;overflow:hidden;display:flex;flex-direction:column;background:var(--navy);box-shadow:0 0 70px #0007}
.topbar{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px 10px 22px;background:linear-gradient(100deg,#0c143a,#00456e);border-bottom:1px solid #59bcc159}.topbar h1{margin:0;color:var(--mint);font-size:27px;line-height:1}.topbar p{margin:7px 0 0;color:#c8d6eb;font-size:12px}.top-actions{display:flex}.top-actions button{width:48px;height:48px;border:0;border-radius:50%;background:#225d9db8;color:#fff;font-size:21px}.top-actions button:last-child{background:transparent}
.content{flex:1;overflow-y:auto;padding:14px 16px 30px;scrollbar-width:none}.content::-webkit-scrollbar{display:none}.module-screen{display:grid;gap:13px;padding-bottom:18px}
.hero-card{width:100%;min-height:94px;border:1px solid #4caaad;border-radius:21px;padding:14px 14px 14px 20px;color:#fff;display:flex;align-items:center;justify-content:space-between;text-align:left;background:linear-gradient(100deg,#193f77,#007777);box-shadow:0 10px 26px #0004}.hero-card strong{display:block;font-size:21px}.hero-card small{display:block;margin-top:5px;color:#cde7f1}.hero-card b{min-width:92px;padding:13px 18px;border-radius:24px;text-align:center;color:#1f304b;background:linear-gradient(135deg,#ffd25c,#ffe497)}
.status-row{display:flex;gap:8px;padding:11px 0 1px}.status-row span{flex:1;padding:10px 8px;border:1px solid #ffffff1f;border-radius:13px;background:#122c4ec7;color:var(--muted);font-size:12px;font-weight:750;text-align:center}.ready{color:#67e8c8!important}.off,.no{color:#ff9e9e!important}.section-title{margin:23px 4px 12px;color:var(--muted);font-size:14px;letter-spacing:.13em;text-transform:uppercase}
.tool-strip{display:grid;grid-auto-flow:column;grid-auto-columns:43%;gap:11px;overflow-x:auto;padding:1px 1px 5px;scrollbar-width:none}.square-card,.wide-card,.schedule-card{border:1px solid #ffffff45;color:#fff;box-shadow:0 8px 20px #0003}.square-card{min-height:132px;border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.square-card>span{font-size:27px}.square-card strong{font-size:16px}.square-card small{color:#ffffffc4}.violet{background:linear-gradient(135deg,#3c4cb4,#7043b4)}.green{background:linear-gradient(135deg,#006f5c,#009e76)}.cyan{background:linear-gradient(135deg,#006891,#008b95)}.blue{background:linear-gradient(135deg,#184b85,#2d439c)}
.wide-list{display:grid;gap:10px}.wide-card,.schedule-card{width:100%;min-height:84px;padding:12px 16px;border-radius:19px;display:grid;grid-template-columns:42px 1fr 20px;align-items:center;text-align:left}.wide-card strong,.schedule-card strong{display:block;font-size:16px}.wide-card small,.schedule-card small{display:block;margin-top:5px;color:#d3e1f4;font-size:12px}.wide-card>b,.schedule-card>b{font-size:28px;font-weight:400;text-align:right}.wide-icon,.schedule-card>span:first-child{font-size:25px}.schedule-card{margin-top:11px;background:linear-gradient(100deg,#005245,#00815d)}
.module-header{display:grid;grid-template-columns:52px 1fr;align-items:center;gap:8px;padding:15px 16px;border:1px solid #5fbdc16b;border-radius:20px;background:linear-gradient(100deg,#123465,#007471)}.module-header>span:first-child{width:43px;height:43px;display:grid;place-items:center;border-radius:14px;color:#1c3551;background:linear-gradient(135deg,#ffd25c,#ffe7a2);font-size:23px}.module-header h2{margin:0;font-size:20px}.module-header p{margin:5px 0 0;color:#cce5ed;font-size:12px}
.field{display:grid;gap:6px}.field>span{color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase}.field input,.field textarea,.search-row input,.field select{width:100%;border:1px solid #315778;border-radius:13px;outline:0;padding:12px 13px;color:#f7fbff;background:#0d2342}.field textarea{resize:vertical;line-height:1.5}.field input:focus,.field textarea:focus{border-color:#20d1b1;box-shadow:0 0 0 3px #20d1b11f}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.span-2{grid-column:span 2}.form-card,.quote-add{padding:14px;border:1px solid #6baeca38;border-radius:18px;background:#0e2444c7}.form-card h3{margin:0 0 12px;font-size:14px;color:#d5e6f6}
.primary,.secondary,.danger{min-height:45px;border:0;border-radius:13px;padding:11px 14px;font-weight:850}.primary{color:#062f27;background:linear-gradient(135deg,#1ed7ae,#74ebc8)}.secondary{color:#20334f;background:linear-gradient(135deg,#ffd25c,#ffe39a)}.danger{color:#ffdada;background:#6b2332;border:1px solid #a94b5c}.full{width:100%}.action-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.voice-action{min-height:48px;border:1px solid #4592be;border-radius:14px;color:#fff;background:linear-gradient(100deg,#155d91,#176e95);font-weight:850}.listening{animation:pulse 1s infinite alternate}@keyframes pulse{to{filter:brightness(1.28);box-shadow:0 0 0 5px #28e0ba21}}
.quote-lines,.price-list,.customer-list{display:grid;gap:8px}.quote-lines article,.price-list article,.customer-list article{display:grid;grid-template-columns:1fr auto 28px;align-items:center;gap:8px;padding:12px;border:1px solid #294d70;border-radius:14px;background:#0c2240}.quote-lines article span strong,.quote-lines article span small,.price-list article span{display:block}.quote-lines article small,.price-list article small,.customer-list article small{margin-top:5px;color:#aebfd5;font-size:11px}.quote-lines article>b,.price-list article>strong{color:#6ee7c7;font-size:13px}.delete{width:28px;height:28px;border:0;border-radius:50%;color:#ffc4c4;background:#572536}.total-card{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px;border:1px solid #c09434;border-radius:17px;background:linear-gradient(120deg,#17335b,#634d1d)}.total-card span{display:grid;gap:5px}.total-card span:last-child{text-align:right}.total-card small{color:#d2def0}.total-card strong{color:#ffdf7e;font-size:17px}
.search-row{display:grid;grid-template-columns:1fr 48px;gap:8px}.search-row button{border:1px solid #439eae;border-radius:13px;color:#fff;background:#087b78;font-size:20px}.list-heading{display:flex;align-items:center;justify-content:space-between;padding:4px 2px}.list-heading button,.customer-list .wa{border:1px solid #4d94a1;border-radius:10px;padding:8px 12px;color:#75e5c8;background:#0c3048;font-weight:800}.price-list article span b{color:#72e6c9;font-size:11px;text-transform:uppercase}.empty{padding:35px 12px;text-align:center;color:#91a5be;border:1px dashed #355570;border-radius:15px}
.segmented{display:grid;grid-template-columns:1fr 1fr;padding:4px;border-radius:14px;background:#081a35}.segmented button{border:0;border-radius:11px;padding:11px 6px;color:#9fb3ca;background:transparent;font-weight:800}.segmented button.selected{color:#082f29;background:#62e0c1}.big-mic{min-height:210px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border:1px solid #4aa7a9;border-radius:28px;color:#fff;background:radial-gradient(circle at 50% 30%,#167b8d,#12325d 68%)}.big-mic>span{width:78px;height:78px;display:grid;place-items:center;border:3px solid #ffffff73;border-radius:50%;background:linear-gradient(135deg,#1fd4ab,#16768e);font-size:36px}.big-mic strong{font-size:21px}.big-mic small{color:#c8d8e9}.voice-result,.examples,.settings-group{padding:14px;border:1px solid #294d70;border-radius:17px;background:#0c213d}.voice-result{display:grid;gap:6px}.voice-result small,.settings-group h3{color:#75e5c8;text-transform:uppercase;letter-spacing:.08em}.examples h3{margin:0 0 10px;font-size:14px;color:#bcd0e7}.examples button{width:100%;margin-top:7px;padding:10px;border:0;border-radius:10px;color:#dfeaff;background:#17395f;text-align:left}
.web-note,.safe-note{margin:0;padding:11px 12px;border-left:3px solid #ffcb59;border-radius:8px;color:#cfdbeb;background:#77571238;font-size:12px;line-height:1.55}.install-card{width:100%;display:grid;grid-template-columns:42px 1fr 20px;gap:8px;align-items:center;padding:15px;border:1px solid #d0a54b;border-radius:18px;color:#fff;background:linear-gradient(100deg,#294879,#7a5d17);text-align:left}.install-card>span:first-child{font-size:25px}.install-card strong,.install-card small{display:block}.install-card small{margin-top:5px;color:#f7e7ba}.settings-group h3{margin:0 0 8px;font-size:13px}.settings-group div{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid #ffffff14}.settings-group div:last-child{border:0}.settings-group b{font-size:12px;text-align:right}
.overlay{position:absolute;inset:0;z-index:30;display:flex;align-items:flex-end;background:#030716c2;backdrop-filter:blur(5px)}.sheet{width:100%;max-height:91%;overflow:hidden;border:1px solid #3a688a;border-radius:25px 25px 0 0;background:#0b1734;box-shadow:0 -20px 60px #0006}.sheet>header{min-height:72px;display:flex;align-items:center;justify-content:space-between;padding:12px 16px 12px 20px;background:linear-gradient(100deg,#133d71,#007573)}.sheet>header span{display:grid;gap:4px}.sheet>header small{color:#8ff0d5;font-size:9px;letter-spacing:.13em}.sheet>header strong{font-size:20px}.sheet>header button{width:40px;height:40px;border:0;border-radius:50%;color:#fff;background:#071f3ba6;font-size:26px}.sheet-scroll{overflow-y:auto;max-height:calc(91dvh - 72px)}.panel-body{display:grid;gap:13px;padding:16px 16px 28px}.template-list{display:grid;gap:7px}.template-list button{padding:11px;border:1px solid #355d7d;border-radius:11px;color:#d9e8f7;background:#102b4d;text-align:left}.file-picker{min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:1px dashed #58a3a5;border-radius:18px;color:#dbeaf4;background:#0d2947;text-align:center}.file-picker>span{font-size:38px;color:#62e0c1}.file-picker input{position:absolute;opacity:0;pointer-events:none}.file-list{display:grid;gap:7px}.file-list div{padding:10px;border-radius:11px;background:#102844;font-size:12px}.toast{position:absolute;left:50%;bottom:102px;translate:-50% 0;z-index:40;width:max-content;max-width:calc(100% - 34px);padding:12px 16px;border:1px solid #ffffff3d;border-radius:14px;color:#fff;background:#070e23f2;box-shadow:0 12px 34px #0006;font-size:13px;text-align:center}
.bottom-nav{min-height:84px;display:grid;grid-template-columns:repeat(5,1fr);gap:4px;padding:6px 7px max(12px,env(safe-area-inset-bottom));border-top:1px solid #245279;background:linear-gradient(#09203e,#07162d)}.bottom-nav button{border:0;border-radius:14px;background:transparent;color:#b7c7de;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-weight:750}.bottom-nav button span{font-size:20px}.bottom-nav button small{font-size:10px}.bottom-nav button.active{color:var(--gold);border:1px solid #ffbe4673;background:linear-gradient(135deg,#1f4674,#ffbe461c)}
@media print{.topbar,.bottom-nav,.voice-action,.quote-add,.action-row{display:none!important}.app-shell,.phone-app,.content{height:auto;min-height:0;overflow:visible;background:#fff;color:#111;box-shadow:none}.module-header,.quote-lines article,.total-card{color:#111;background:#fff;border-color:#bbb}}
@media(min-width:680px){.phone-app{height:min(920px,calc(100dvh - 32px));border:1px solid #24466c;border-radius:30px}}@media(max-width:390px){.topbar h1{font-size:24px}.top-actions button{width:42px;height:42px}.tool-strip{grid-auto-columns:49%}.bottom-nav button small{font-size:9px}}
