:root{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:#152734;background:#f2f6f8}*{box-sizing:border-box}body{margin:0}header{background:#152734;color:white;padding:16px 0}.wrap{max-width:1060px;margin:0 auto;padding:0 18px}.head{display:flex;align-items:center;gap:14px}.mark{background:#fff;color:#152734;font-weight:900;border:3px solid #93cad1;border-radius:17px;padding:14px}.head small{letter-spacing:2px;color:#9dcbd3;font-weight:700}.head h1{margin:0;font-size:24px}.status{margin-left:auto;font-size:12px;color:#b5d8dd}main{padding-top:18px!important;padding-bottom:50px!important}nav,.tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:6px}nav button,.tabs button{white-space:nowrap;background:#e2edf2;color:#223e50}button,.button{border:0;border-radius:11px;background:#1d536b;color:white;padding:12px 17px;font-weight:700;font-size:14px;cursor:pointer;text-decoration:none;display:inline-block}button.active{background:#152734;color:white}button.minor{background:#e2edf2;color:#214053}button.danger{background:#ffe5e3;color:#962f2b}.hidden{display:none!important}h2{font-size:23px;margin-bottom:5px}h3{margin:12px 0;font-size:18px}.heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0}.heading p{color:#546d7c}.card,.stats article{background:white;border:1px solid #dbe8ed;border-radius:17px;padding:20px;margin:14px 0;box-shadow:0 2px 5px #0b213008}.stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stats small{display:block;color:#59717c}.stats b{font-size:26px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}label{display:block;font-size:13px;font-weight:650;color:#385360;margin:10px 0}input,select,textarea{display:block;width:100%;font-family:inherit;font-size:16px;padding:11px;border:1px solid #b9ccd6;border-radius:10px;margin-top:6px;color:#152734;background:white}textarea{resize:vertical}.photo{display:flex;gap:16px;align-items:center}.photo img{width:130px;height:130px;object-fit:cover;background:#eaf0f3;border:1px dashed #a2b9c6;border-radius:14px}.photo>div{flex:1}.hint,p{line-height:1.55;color:#526c7d}.hint{font-size:13px}.cardline{border-top:1px solid #e4edf1;padding:13px 0;display:flex;justify-content:space-between;gap:10px}.cardline img{width:70px;height:70px;border-radius:9px;object-fit:cover}.actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.actions button{font-size:12px;padding:8px 11px}.matrow{background:#f0f6f8;border:1px solid #d6e5ec;border-radius:12px;padding:12px;margin:10px 0}.matrow .fields{grid-template-columns:repeat(3,minmax(0,1fr))}.results{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.result{background:#edf5f8;padding:15px;border-radius:11px}.result small{display:block;color:#476575}.result strong{display:block;font-size:23px;margin-top:5px}.result.hero{background:#d7f1e8}.result.hero strong{color:#126c49}.savebar{position:sticky;bottom:0;background:#f2f6f8e8;backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:space-between;padding:10px;border-top:1px solid #d4e0e7;gap:12px}.savebar span{color:#a23838;font-size:12px}.listbox{background:white;padding:14px 18px;border:1px solid #d7e6ed;border-radius:15px;margin:12px 0}.listbox .actions{align-items:center}.listbox .actions input{flex:1;min-width:170px;width:auto;margin:0}.chip{display:flex;align-items:center;gap:9px;justify-content:space-between;background:#eef6f8;border-radius:9px;padding:7px 11px;margin:7px 0}.chip button{padding:5px 9px}.warning{background:#fff4db;padding:12px;border-radius:10px;color:#76541c}.upload{margin-top:18px}.upload input{max-width:430px}footer{text-align:center;color:#8396a0;font-size:12px;padding-bottom:30px}@media(max-width:580px){.wrap{padding:0 12px}.fields,.stats,.results{grid-template-columns:1fr}.matrow .fields{grid-template-columns:1fr 1fr}.heading{align-items:start}.head h1{font-size:20px}.photo{align-items:start}.photo img{width:90px;height:90px}.result strong{font-size:21px}}

.install-box{display:flex;gap:16px;align-items:center;justify-content:space-between;border:2px solid #91cbd0;background:#f9ffff;border-radius:17px;padding:18px;margin:0 0 18px}.install-box h2{font-size:19px;margin:0}.install-box p{margin:7px 0}.install-box button{flex-shrink:0}.install-small{font-size:13px}.install-box[hidden],.install-box [hidden]{display:none!important}@media(max-width:650px){.install-box{flex-direction:column;align-items:stretch}.install-box button{width:100%}}

/* V4.1: měkčí handmade vizuál, základní layout a ukládání se nemění */
:root{background:#faf7f2;color:#35323b}body{background:#faf7f2}header{background:#51424c}.mark{border-color:#d8b9a5;color:#51424c}.head small{color:#f1d8c9}nav button,.tabs button{background:#f1e9e3;color:#5a4552}button,.button{background:#946e7f}button.active{background:#614c5b}.card,.stats article{border-color:#eadfd9;box-shadow:0 4px 20px #785f6210}.stats article{background:#f7eee9}input:focus,select:focus,textarea:focus{outline:2px solid #c793a2}button.minor{background:#f2e6e5;color:#654a59}.install-box{border-color:#d9b8a6;background:#fff9f5}.workshop-card{background:#fffaf6}.compact{min-width:130px;flex:1}.chip{gap:12px;flex-wrap:wrap}.listbox .actions{align-items:flex-end;flex-wrap:wrap}.matrow .unit-info{margin:6px 0 0;color:#85566c;font-weight:600}

/* Produktové listy a technické podklady */
.technical-upload{background:#fbf5f1;border:1px dashed #ceb7c2;border-radius:12px;padding:14px;margin:12px 0 18px}.technical-upload .row{margin-top:8px;justify-content:flex-start}.technical-upload button{font-size:12px;padding:8px}.print-dialog{width:min(640px,95vw);max-height:85vh;border:1px solid #dcc9d3;border-radius:18px;box-shadow:0 18px 70px #4334;padding:22px;background:#fffaf7;color:#3d3440}.print-dialog::backdrop{background:#28202baa}.print-dialog .print-picks{max-height:58vh;overflow:auto;display:grid;gap:8px;margin:10px 0 20px}.print-dialog label{display:flex;align-items:center;gap:10px;font-size:13px;padding:5px}.print-dialog input[type=checkbox]{width:17px;height:17px;flex-shrink:0;accent-color:#976b83}.print-dialog fieldset{border:1px solid #eadfe5;border-radius:10px;padding:10px}.print-dialog legend{font-weight:700}.print-dialog .row{display:flex;justify-content:space-between;align-items:center}
