@font-face{font-family:GrandCabin;src:url('fonts/noto-arabic-regular.woff') format('woff');font-weight:400;font-display:swap}@font-face{font-family:GrandCabin;src:url('fonts/noto-arabic-bold.woff') format('woff');font-weight:700;font-display:swap}
:root{--red:#e20e18;--ink:#28292c;--muted:#6d7782;--line:#dfe3e7;--bg:#f6f6f3;--pale:#fff0f1;--charcoal:#24262b;--amber:#986400;--green:#207448;--header-height:74px;--nav-height:76px;--safe-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.9 GrandCabin,Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit;text-decoration:none}img{max-width:100%}h1,h2,h3,h4,p{margin:0 0 12px}h1{font-size:26px;line-height:1.7}h2{font-size:20px}h3{font-size:17px}h4{font-size:15px}small,.small{font-size:11px}.muted{color:var(--muted)}.danger-text{color:#bc1420}.success-text{color:var(--green)}.ltr{direction:ltr;unicode-bidi:isolate}.code{font:700 13px/1.8 Arial,sans-serif;direction:ltr;unicode-bidi:isolate}.full{width:100%}.hidden{display:none!important}.space{height:18px}.wrap{flex-wrap:wrap}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.stack{display:grid;gap:15px}.icon{width:23px;height:23px;flex:none;vertical-align:middle}.icon .accent,.icon .dot{stroke:var(--red)}.icon .dot{fill:var(--red)}.icon-btn{width:44px;height:44px;display:inline-grid;place-items:center;border:1px solid var(--line);border-radius:12px;background:white;position:relative}.icon-btn:focus-visible,.btn:focus-visible,a:focus-visible{outline:3px solid #ff9298;outline-offset:3px}.text-btn{color:var(--red);background:none;border:0;padding:8px 0;display:inline-flex;align-items:center;gap:6px}.btn{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:46px;padding:10px 18px;border:1px solid var(--red);border-radius:12px;background:var(--red);color:white;font-weight:700;text-align:center}.btn .icon .accent{stroke:currentColor}.btn.secondary{border-color:var(--line);background:white;color:var(--ink)}.btn.ghost{border-color:transparent;background:none;color:var(--red)}.btn.small{padding:7px 12px;font-size:12px;min-height:40px}.btn.danger{background:#a61924;border-color:#a61924}.btn-row{display:flex;gap:12px;flex-wrap:wrap}.chip{display:inline-flex;align-items:center;gap:5px;border-radius:7px;padding:3px 9px;background:#eff1f3;color:var(--muted);font-size:11px;line-height:1.9}.chip.red{background:var(--pale);color:var(--red)}.chip.amber{background:#fff3d5;color:var(--amber)}.chip.green{background:#e9f6ee;color:var(--green)}.notice{border:1px solid var(--line);border-radius:12px;padding:13px 16px;background:#f8f9fa;margin:12px 0;line-height:2}.notice.amber{background:#fff9eb;border-color:#f1d79a;color:#805905}.notice.success{background:#effaf3;border-color:#b9d9c6;color:var(--green)}.notice.danger{background:#fff0f1;border-color:#f2a6ac;color:#a3121d}.error{font-size:11px;color:#b71220;display:block;margin-top:4px}.empty{padding:44px 22px;text-align:center;border:1px dashed #ccd2d7;border-radius:16px;background:white}.empty>.icon{width:43px;height:43px;color:var(--muted);margin-bottom:12px}.empty p{color:var(--muted)}.panel{background:white;border:1px solid var(--line);border-radius:17px;padding:24px;margin-bottom:20px}.section-title{display:flex;align-items:center;gap:10px;font-size:18px;padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:22px}.section-title .icon{color:var(--muted)}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:22px 0 14px}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:24px}.page-head p{color:var(--muted);max-width:700px}.grid{display:grid;gap:20px}.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.field{display:flex;flex-direction:column;gap:8px;margin:0 0 19px;min-width:0;font-weight:700}.field small,.field .hint{font-size:11px;font-weight:400;color:var(--muted)}input:not([type=radio]):not([type=checkbox]):not([type=range]),select,textarea{width:100%;min-height:46px;border:1px solid #ced5da;border-radius:11px;background:white;padding:10px 13px;color:var(--ink);font-weight:400;font-size:16px;min-width:0}input:read-only{background:#f4f5f6!important;color:var(--muted)!important}textarea{resize:vertical;min-height:110px}input:focus,select:focus,textarea:focus{outline:2px solid #ee8790;outline-offset:1px}input[aria-invalid=true],select[aria-invalid=true]{border-color:var(--red)!important}input[type=radio],input[type=checkbox]{accent-color:var(--red);width:18px;height:18px;flex:none}.choice-grid{display:grid;grid-template-columns:repeat(var(--count,2),minmax(0,1fr));gap:9px}.choice{display:flex;align-items:center;justify-content:center;gap:9px;padding:10px 7px;min-height:48px;background:white;border:1px solid var(--line);border-radius:11px;font-weight:400;text-align:center;line-height:1.7;cursor:pointer;font-size:14px;overflow-wrap:anywhere}.choice:has(input:checked){color:var(--red);background:var(--pale);border-color:var(--red)}.choice input{margin:0;width:16px;height:16px}.choice.numeric{gap:6px}.field-label{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;font-weight:700}.unit{font-weight:400;font-size:10px;color:var(--muted);white-space:nowrap}.unit-input{position:relative}.unit-input input{padding-left:83px!important}.unit-input .unit{position:absolute;left:12px;bottom:15px;pointer-events:none}.letter{display:inline-grid;place-items:center;width:25px;height:25px;margin-left:7px;background:var(--pale);color:var(--red);border-radius:6px;font:700 14px Arial,sans-serif;vertical-align:middle}.required{color:var(--red);margin-right:4px}.checkbox-line{display:flex;align-items:flex-start;gap:10px;margin:16px 0;cursor:pointer}.checkbox-line input{margin-top:5px}
.app-header{position:sticky;top:0;z-index:50;background:white;border-top:4px solid var(--red);border-bottom:1px solid var(--line)}.topbar{height:70px;max-width:1280px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 25px}.brand img{display:block;width:190px;max-height:43px;object-fit:contain}.top-actions{display:flex;gap:10px;align-items:center}.badge-dot{position:absolute;background:var(--red);color:white;border:2px solid white;min-width:20px;height:20px;line-height:17px;font-size:10px;border-radius:15px;right:-5px;top:-5px;padding:0 4px}.roadmap{max-width:780px;display:grid;grid-template-columns:repeat(4,1fr);margin:auto;padding:10px 20px 15px;gap:14px}.road-step{text-align:center;position:relative;color:var(--muted);font-size:12px}.road-step:after{content:'';position:absolute;top:17px;height:2px;background:var(--line);width:calc(100% - 30px);left:calc(-50% + 8px);z-index:0}.road-step:last-child:after{display:none}.road-dot{width:34px;height:34px;border:1px solid #d7dce0;background:#f4f5f6;border-radius:50%;display:grid;place-items:center;margin:0 auto 5px;position:relative;z-index:1;font-weight:700}.road-step b{display:block}.road-step small{display:block;font-size:9px;margin-top:2px}.road-step.current{color:var(--amber)}.road-step.current .road-dot{background:#ffe59e;border-color:#dfaa2f;box-shadow:0 0 0 4px #fff6de}.road-step.done{color:var(--green)}.road-step.done .road-dot{background:#e7f5ec;border-color:#73af8d}.road-step.done:after{background:#acd6bd}.app-layout{display:grid;grid-template-columns:215px minmax(0,1fr);max-width:1280px;margin:auto;gap:24px;padding:24px 24px 60px}.sidebar{position:sticky;top:calc(var(--header-height) + 24px);align-self:start;display:grid;gap:7px;background:white;padding:14px;border:1px solid var(--line);border-radius:15px}.sidebar a{display:flex;align-items:center;gap:10px;padding:12px;border-radius:10px;font-size:13px}.sidebar a.active{background:var(--pale);color:var(--red);font-weight:700}.sidebar .nav-foot{border-top:1px solid var(--line);padding:18px 9px 6px;margin-top:12px;font-size:11px;color:var(--muted)}main.main{min-width:0}.bottom-nav{display:none}.hero{display:grid;grid-template-columns:1.1fr 1fr;background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden;margin-bottom:25px}.hero-copy{padding:35px}.hero-copy h1{font-size:30px}.hero-copy p{color:var(--muted);margin-bottom:22px}.hero-image{height:340px;width:100%;object-fit:cover}.order-card{display:flex;align-items:center;gap:15px;background:white;border:1px solid var(--line);border-radius:15px;padding:18px;min-width:0}.order-card:hover{border-color:#ef939a}.order-card .thumb{width:70px;height:85px;object-fit:contain;flex:none}.order-info{flex:1;min-width:0}.order-info h3{font-size:16px;margin:5px 0}.order-card .icon{width:18px;color:var(--muted)}.order-meta{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.tabs{display:flex;gap:8px;overflow-x:auto;padding:3px 0 12px;white-space:nowrap}.tab{border:1px solid var(--line);border-radius:10px;padding:10px 15px;min-height:44px;background:white;display:flex;align-items:center;gap:8px}.tab.active{color:var(--red);background:var(--pale);border-color:var(--red)}.search-box{position:relative;max-width:420px;margin-bottom:18px}.search-box .icon{position:absolute;top:13px;right:12px}.search-box input{padding-right:45px!important}.product-card{background:white;border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column}.product-card>a{display:block}.product-card .product-image{height:230px;width:100%;object-fit:contain;background:#f1f2f2;padding:14px}.product-body{padding:18px;flex:1}.product-body h3{margin:9px 0;font-size:17px}.product-body p{font-size:12px;color:var(--muted)}.product-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:15px}.product-reference{display:flex;gap:20px;align-items:center;margin-bottom:22px}.product-reference img{width:100px;height:125px;object-fit:contain}.product-reference h2{margin:0 0 6px}.selection-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:23px;align-items:start}.selection-aside{position:sticky;top:calc(var(--header-height) + 20px)}.selection-aside img{width:100%;height:230px;object-fit:contain}.selection-code{display:inline-block;background:var(--bg);padding:10px 15px;border-radius:9px;letter-spacing:.6px;font:700 18px Arial,sans-serif;direction:ltr;margin:12px 0}.color-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.color-option{min-height:96px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);background:white;border-radius:11px;font-size:12px;padding:10px 5px}.color-option.selected{border-color:var(--red);background:var(--pale);color:var(--red)}.material-dot{width:30px;height:30px;border-radius:50%;border:1px solid #ccc;background:var(--material)}.floor-select{display:flex;align-items:center;gap:12px;min-height:72px;padding:12px;border:1px solid #ced5da;border-radius:11px;background:white;text-align:right;color:var(--muted)}.floor-select img{width:52px;height:46px;object-fit:cover;border-radius:5px}.floor-select .icon:last-child{margin-right:auto}.floor-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.floor-tile{background:white;border:1px solid var(--line);border-radius:12px;padding:8px;cursor:pointer;text-align:right}.floor-tile img{width:100%;height:150px;object-fit:cover;border-radius:7px}.floor-tile p{padding:6px;margin:0;font-size:12px}.floor-tile.selected{border:2px solid var(--red)}.registration-actions{border-top:1px solid var(--line);margin-top:24px;padding-top:22px;display:grid;grid-template-columns:1.6fr 1fr;gap:10px}.registration-actions .btn{font-size:13px;padding:12px 8px}.estimate-box{border:1px solid #ead8ab;background:#fffaf0;border-radius:12px;padding:15px;margin:20px 0}.estimate-box strong{font-size:18px}.estimate-box small{display:block;color:#7a643b;margin-top:6px}.image-list{display:flex;gap:10px;flex-wrap:wrap}.image-thumb{position:relative;width:95px}.image-thumb img{width:95px;height:95px;object-fit:cover;border-radius:9px;border:1px solid var(--line)}.image-thumb .icon-btn{position:absolute;left:0;top:0;width:27px;height:27px;border-radius:7px}.upload-button input{position:absolute;width:1px;height:1px;opacity:0}.upload-button{position:relative;display:flex;justify-content:center;align-items:center;gap:10px;border:1px solid #ced5da;border-radius:11px;min-height:55px;padding:12px;color:var(--red);font-weight:700;cursor:pointer}.upload-button small{font-weight:400;color:var(--muted)}.file-link{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}.file-link .icon{color:var(--muted)}
.measure-layout{max-width:900px;height:calc(100dvh - var(--header-height) - 25px);display:grid;grid-template-rows:clamp(190px,32dvh,290px) minmax(0,1fr);gap:0;overflow:hidden;margin:auto}.is-measuring{overflow:hidden}.is-measuring .app-layout{padding-top:0;padding-bottom:0}.is-measuring .sidebar{margin-top:20px}.is-measuring .main{overflow:hidden}.measure-pin{background:var(--charcoal);color:white;border-radius:0 0 17px 17px;padding:12px 18px 9px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;z-index:20;box-shadow:0 5px 10px #0000000c}.measure-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px}.measure-title h1{font-size:16px;margin:0}.measure-title .text-btn{color:#ff8a92;font-size:11px;padding:2px}.measure-diagram{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;align-items:center;min-height:0}.position-options{display:grid;gap:8px}.position-options small{color:#ccd2d9;font-size:10px}.position-button{padding:6px 8px;border:1px solid #59616c;background:#2b2e35;color:#d6dbe2;border-radius:9px;min-height:40px;font-size:12px}.position-button.selected{background:var(--red);border-color:var(--red);color:white;font-weight:700}.schematic-image{width:100%;height:100%;max-height:210px;object-fit:contain;min-height:0}.diagram-caption{font-size:10px;color:#c6cdd5;border-top:1px solid #41464f;padding-top:4px;line-height:1.8;min-height:20px}.diagram-caption .letter{background:#4a2930;color:#ff5661;width:20px;height:20px;font-size:12px}.measurement-scroll{overflow-y:auto;overscroll-behavior:contain;padding:20px 3px 35px;scroll-padding-top:20px;scrollbar-gutter:stable}.measurement-scroll .panel{padding:22px 19px}.measurement-scroll .section-title{font-size:17px;margin-bottom:22px}.measurement-scroll .field{margin-bottom:22px;font-weight:700}.measurement-scroll .field-label{font-size:14px}.measurement-scroll .form-grid{gap:14px}.measurement-scroll .form-grid .field-label{font-size:13px}.measurement-scroll .choices-long .choice{font-size:12px;min-height:56px}.measure-profile{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.measure-profile .contact-field{grid-column:1/-1}.save-indicator{font-size:10px;color:var(--muted);text-align:center;min-height:20px;margin:5px}.summary-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 22px;margin:0}.summary-list>div{padding:9px 0;border-bottom:1px solid #eff0f2}.summary-list dt{font-size:11px;color:var(--muted)}.summary-list dd{margin:3px 0 0;overflow-wrap:anywhere}.docs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.document-card{border:1px solid var(--line);background:white;border-radius:13px;overflow:hidden}.document-card h3{padding:14px 17px;border-bottom:1px solid var(--line);margin:0;font-size:16px}.doc-preview{height:300px;width:100%;border:0;background:#edf0f2;object-fit:contain;display:block}.doc-buttons{display:flex;gap:10px;flex-wrap:wrap;padding:14px}.review-confirm{background:#fff9eb;border:1px solid #f0d295;padding:22px;border-radius:14px;margin-top:20px}.delivery-box{text-align:center;padding:35px 20px;background:#fff8e9;border:1px solid #ead199;border-radius:15px}.delivery-box.complete{background:#edf8f1;border-color:#acd0ba}.delivery-box>.icon{width:48px;height:48px;margin-bottom:15px}.message-list{display:grid;gap:12px;max-height:520px;overflow:auto;margin-bottom:20px}.message{padding:13px 16px;border:1px solid var(--line);background:white;border-radius:12px;max-width:92%}.message.company{background:#f6f7f8;margin-right:auto}.message.internal{background:#fff7e8;border-color:#eddbb4}.message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0}.message small{color:var(--muted)}.history{padding:0;list-style:none}.history li{border-right:2px solid var(--line);padding:0 18px 22px;position:relative}.history li:before{content:'';position:absolute;right:-5px;top:7px;width:8px;height:8px;border-radius:50%;background:#c0c7cd}.history p{font-size:13px;margin-bottom:2px}.history small{color:var(--muted)}.table-scroll{overflow:auto;border:1px solid var(--line);border-radius:12px;background:white}table{width:100%;border-collapse:collapse;text-align:right}th,td{padding:13px;border-bottom:1px solid var(--line);vertical-align:top;font-size:12px}th{background:#f4f5f6;font-weight:700;white-space:nowrap}td input{min-width:90px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px}.stat{background:white;border:1px solid var(--line);border-radius:13px;padding:18px}.stat strong{font-size:27px;display:block}.stat small{color:var(--muted)}.customer-card{display:flex;gap:15px;align-items:flex-start;background:white;border:1px solid var(--line);border-radius:14px;padding:18px}.customer-card>.icon{color:var(--muted);margin-top:4px}.customer-card h3{font-size:16px;margin:0 0 5px}.invoice-row{background:white;border:1px solid var(--line);border-radius:14px;padding:18px;margin:14px 0;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.notification{display:block;border:1px solid var(--line);border-radius:13px;background:white;padding:17px;margin-bottom:12px}.notification.unread{border-right:4px solid var(--red);background:#fffafb}.notification h3{font-size:16px;margin:0 0 5px}.notification p{font-size:13px;white-space:pre-wrap;margin:0 0 6px}.notification small{color:var(--muted)}.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}.toolbar select{width:auto;min-width:155px}.toolbar .search-box{margin:0;flex:1;min-width:180px}.settings-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.details-panel{border:1px solid var(--line);background:white;border-radius:13px;margin-bottom:15px}.details-panel summary{padding:17px;cursor:pointer;font-weight:700}.details-panel>div{padding:0 17px 17px}.price-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px}.price-grid .field{margin-bottom:6px}.rule-row{display:grid;grid-template-columns:1fr 1fr 1fr 44px;gap:8px;margin:9px 0}.invoice-items input{font-size:14px!important;min-width:100px}.invoice-items .description-input{min-width:220px}.money-total{padding:20px;background:#f3f5f6;border-radius:12px;text-align:left;margin:15px 0;font-size:20px;font-weight:700}.auth-page{max-width:1050px;margin:35px auto;display:grid;grid-template-columns:1fr 1fr;background:white;border:1px solid var(--line);border-radius:20px;overflow:hidden}.auth-form{padding:35px}.auth-form h1{font-size:27px}.auth-image{width:100%;height:100%;min-height:550px;object-fit:cover}.auth-logo{display:block;width:210px;margin-bottom:30px}.auth-tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:24px}.auth-tabs button{border:0;border-bottom:2px solid transparent;background:none;padding:12px 3px;font-weight:700;color:var(--muted)}.auth-tabs .active{border-bottom-color:var(--red);color:var(--red)}.boot{display:grid;place-content:center;text-align:center;gap:20px;min-height:70vh;padding:25px}.boot img{width:220px;margin:auto}.install-body{padding:30px 16px}.install-card{max-width:650px;margin:auto;padding:30px;background:white;border:1px solid var(--line);border-radius:18px}.install-logo{width:220px;display:block;margin:0 auto 30px}.checks{list-style:none;padding:12px 18px;background:var(--bg);border-radius:12px;font-size:12px}.checks li{padding:5px 0}.busy{pointer-events:none;opacity:.7}.loading-bar{position:fixed;top:0;right:0;height:3px;background:var(--red);z-index:150;animation:progress 1s infinite;width:35%}@keyframes progress{to{transform:translateX(-300%)}}.modal-backdrop{position:fixed;inset:0;z-index:100;background:#1118;display:flex;align-items:center;justify-content:center;padding:20px}.modal{background:white;border-radius:17px;width:100%;max-width:650px;max-height:92dvh;display:flex;flex-direction:column;box-shadow:0 20px 70px #0003}.modal.wide{max-width:1000px}.modal-head{padding:15px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px}.modal-head h2{margin:0;font-size:18px}.modal-body{padding:22px;overflow:auto}.zoom-viewport{overflow:auto;max-height:70dvh;background:#e8ebed;direction:ltr}.zoom-viewport img{display:block;max-width:none;height:auto;width:100%}.zoom-viewport iframe{width:100%;height:65dvh;border:0}.zoom-toolbar{display:flex;align-items:center;gap:15px;margin-bottom:15px}.zoom-toolbar input{flex:1}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);z-index:200;max-width:calc(100% - 30px);width:max-content;border-radius:12px;background:#28292c;color:white;padding:13px 20px;box-shadow:0 5px 30px #0002;white-space:pre-wrap}.toast.error{background:#a61924;font-size:13px}.support-phone{font:700 19px Arial,sans-serif;direction:ltr;display:inline-block;margin:14px 0}.invoice-page{background:#e9ecef;padding:20px}.print-toolbar{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;max-width:850px;margin:0 auto 20px}.invoice-sheet{width:794px;max-width:100%;min-height:1050px;margin:auto;background:white;padding:38px 42px;border-top:8px solid var(--red);box-shadow:0 4px 25px #0001;font-size:13px}.invoice-brand{display:flex;align-items:flex-start;justify-content:space-between;border-bottom:2px solid var(--red);padding-bottom:20px;margin-bottom:20px}.invoice-brand img{width:210px;max-height:55px;object-fit:contain}.invoice-brand h1{font-size:24px;margin-bottom:8px}.invoice-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;background:#f5f6f7;padding:16px;border-radius:8px;margin-bottom:20px}.invoice-sheet th,.invoice-sheet td{padding:10px 8px;font-size:12px;border:1px solid #d9dde2}.invoice-sheet th{background:#f0f2f4}.invoice-totals{width:330px;max-width:100%;margin:20px 0 20px auto}.invoice-totals>div{display:flex;justify-content:space-between;padding:7px 10px;border-bottom:1px solid var(--line)}.invoice-totals .grand-total{background:#fff0f1;color:var(--red);font-weight:700;border:1px solid #f1b5bb;border-radius:6px}.invoice-terms{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:2.2}.invoice-contact{border-top:1px solid var(--line);margin-top:30px;padding-top:15px;color:var(--muted);font-size:11px}.pre-line{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:1100px){.selection-layout{grid-template-columns:1fr}.selection-aside{position:static;order:-1;display:flex;align-items:center;gap:20px}.selection-aside img{width:90px;height:110px}.hero-copy{padding:28px}.cols-3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.sidebar{display:none}.app-layout{grid-template-columns:1fr;gap:0;padding:22px 20px calc(100px + var(--safe-bottom))}.topbar{padding:0 20px}.bottom-nav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;bottom:0;left:0;right:0;z-index:60;border-top:1px solid var(--line);padding:7px 12px calc(7px + var(--safe-bottom));background:white;min-height:76px}.bottom-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;font-size:11px;color:var(--muted);border-radius:12px;min-height:58px;margin:0 4px}.bottom-nav a.active{color:var(--red);background:var(--pale);font-weight:700}.bottom-nav .icon{width:26px;height:26px}.bottom-nav a.active .icon{stroke:var(--red)}.hero{grid-template-columns:1.2fr 1fr}.hero-image{height:300px}.hero-copy h1{font-size:26px}.selection-aside{margin-bottom:0}.docs-grid{gap:15px}.stat-grid{grid-template-columns:repeat(2,1fr)}.toast{bottom:calc(90px + var(--safe-bottom))}.is-measuring .app-layout{padding:0 15px}.measure-layout{height:calc(100dvh - var(--header-height) - var(--nav-height) - var(--safe-bottom))}.measurement-scroll{padding-bottom:35px}.auth-page{margin:20px;max-width:650px;display:block}.auth-image{display:none}.auth-form{padding:30px}.invoice-page{padding:14px}.invoice-sheet{max-width:none}.invoice-page .print-scroll{overflow:auto}.invoice-page .print-scroll .invoice-sheet{transform-origin:top right}}
@media(max-width:550px){body{font-size:14px}h1{font-size:23px}h2{font-size:19px}.topbar{height:65px;padding:0 16px;gap:10px}.brand img{width:158px}.top-actions{gap:7px}.top-actions .icon-btn{width:39px;height:39px}.top-actions .btn{font-size:10px;padding:6px 9px;min-height:38px}.roadmap{gap:8px;padding:8px 12px 12px}.road-step{font-size:11px}.road-dot{width:32px;height:32px;font-size:13px}.road-step small{font-size:8px}.road-step:after{top:16px;width:calc(100% - 21px);left:calc(-50% + 5px)}.app-layout{padding:20px 15px calc(100px + var(--safe-bottom))}.page-head{margin-bottom:20px;flex-wrap:wrap}.page-head p{font-size:12px;line-height:2}.page-head h1{margin-bottom:6px}.panel{padding:20px 18px;margin-bottom:18px;border-radius:15px}.hero{display:flex;flex-direction:column}.hero-copy{padding:25px 22px}.hero-copy h1{font-size:26px}.hero-copy p{font-size:12px}.hero-image{height:220px;object-position:center 60%;order:2}.hero-copy .btn-row .btn{flex:1;font-size:12px}.cols-2,.cols-3{grid-template-columns:1fr}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-card .product-image{height:190px;padding:8px}.product-body{padding:12px}.product-body h3{font-size:14px}.product-body p{font-size:10px;line-height:1.9}.product-foot{align-items:flex-start;flex-direction:column;gap:6px}.product-foot .btn{width:100%;font-size:12px}.product-body .code{font-size:11px}.tab{font-size:11px;padding:9px 11px;gap:6px}.tab .icon{width:18px;height:18px}.form-grid{gap:14px}.selection-main .form-grid{grid-template-columns:1fr}.selection-aside img{width:80px;height:108px}.selection-aside h2{font-size:17px}.selection-code{font-size:15px}.color-grid{gap:7px}.color-option{font-size:10px;min-height:92px}.material-dot{width:28px;height:28px}.choice-grid{gap:7px}.choice{gap:6px;padding:10px 5px;font-size:13px}.choice input{width:15px;height:15px}.choice.numeric{font-size:14px}.registration-actions{gap:8px}.registration-actions .btn{font-size:11.5px;padding:12px 5px;line-height:1.9;min-height:52px}.registration-actions .icon{width:16px;height:16px}.estimate-box{padding:13px}.estimate-box strong{font-size:17px}.estimate-box small{font-size:10px}.product-reference img{width:70px;height:90px}.product-reference{gap:15px}.section-title{font-size:17px}.summary-list{gap:8px 15px}.summary-list dd{font-size:13px}.summary-list dt{font-size:10px}.docs-grid{grid-template-columns:1fr}.doc-preview{height:320px}.review-confirm{padding:20px 16px}.review-confirm .btn{width:100%}.order-card{padding:15px}.order-card .thumb{width:55px;height:74px}.order-info h3{font-size:15px}.toolbar{gap:10px}.toolbar select{flex:1;width:100%;font-size:14px}.stat{padding:15px}.stat strong{font-size:25px}.stat small{font-size:10px}.stat-grid{gap:11px}.price-grid{grid-template-columns:1fr}.rule-row{grid-template-columns:1fr 1fr}.rule-row button{grid-column:2}.invoice-row{padding:16px}.invoice-row .btn-row{width:100%}.invoice-row .btn{flex:1;font-size:11px}.auth-page{margin:15px}.auth-form{padding:25px 22px}.auth-form h1{font-size:24px}.auth-logo{width:190px}.modal-backdrop{padding:12px}.modal-body{padding:20px 16px}.modal-head{padding:12px 16px}.modal-head h2{font-size:16px}.modal{max-height:94dvh}.floor-tile img{height:125px}.measurement-scroll .panel{padding:21px 17px}.measurement-scroll .section-title{font-size:16px}.measure-pin{padding:10px 14px 7px}.measure-title h1{font-size:14px}.measure-title .text-btn{font-size:10px}.measure-diagram{grid-template-columns:100px minmax(0,1fr);gap:5px}.position-button{font-size:11px;min-height:39px;padding:5px}.position-options{gap:6px}.position-options small{font-size:9px}.diagram-caption{font-size:9px}.measurement-scroll .field-label{font-size:13px}.measurement-scroll .form-grid .field-label{font-size:12px}.unit{font-size:9px}.measure-profile{gap:0 12px}.measure-profile .field{font-size:13px}.unit-input input{padding-left:72px!important}.unit-input .unit{left:10px;bottom:16px}.measurement-scroll .choice{min-height:47px;font-size:12px}.measurement-scroll .choice.numeric{font-size:13px}.measurement-scroll .choices-long .choice{font-size:11px;min-height:54px}.field .hint{font-size:10px}.install-card{padding:24px 18px}.install-card .form-grid{grid-template-columns:1fr}.install-body{padding:15px}.install-card h1{font-size:24px}.rule-row input,.rule-row select{font-size:13px}.invoice-items th,.invoice-items td{padding:8px}.notice{font-size:12px}}
@media(max-height:650px) and (max-width:850px){.roadmap small{display:none}.roadmap{padding-bottom:7px}.road-dot{width:26px;height:26px}.road-step:after{top:13px}.measure-layout{grid-template-rows:minmax(145px,29dvh) minmax(0,1fr)}.measure-pin{padding-top:6px}.measure-title h1{font-size:12px}.position-button{min-height:32px}.diagram-caption{display:none}.topbar{height:56px}}
@media print{body{background:white}.app-header,.sidebar,.bottom-nav,.print-toolbar{display:none!important}.invoice-page{padding:0}.invoice-page .print-scroll{overflow:visible}.invoice-sheet{width:100%;max-width:100%;padding:12mm 8mm;border-top:2mm solid var(--red);box-shadow:none;min-height:0}.invoice-sheet tr{break-inside:avoid}.invoice-brand,.invoice-meta,.invoice-totals,.invoice-terms{break-inside:avoid}.invoice-contact{break-inside:avoid}.invoice-sheet thead{display:table-header-group}@page{size:A4;margin:8mm}}
