@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');
:root{font-family:"DM Sans",system-ui,sans-serif;color:#1d2a33;background:#f3f5f6}*{box-sizing:border-box}body{margin:0}a{text-decoration:none;color:inherit}button,input,select{font:inherit}.sidebar{position:fixed;inset:0 auto 0 0;width:235px;background:#17232d;color:#fff;padding:24px 16px;display:flex;flex-direction:column;z-index:2}.brand{display:flex;align-items:center;gap:12px;padding:0 8px 32px}.brand b{display:block;font-size:17px}.brand small{display:block;color:#9eabb3;font-size:11px;margin-top:3px}.logo{width:38px;height:38px;display:grid;place-items:center;background:#c9a879;color:#17232d;border-radius:11px;font-weight:900;font-size:20px}.logo.big{width:50px;height:50px;font-size:26px;margin-bottom:20px}nav{display:grid;gap:7px}nav a{padding:13px 12px;border-radius:10px;color:#b8c2c8;display:flex;align-items:center;gap:12px;font-weight:600}nav a.active,nav a:hover{background:#304451;color:white}nav em{font-style:normal;margin-left:auto;background:#c9a879;color:#17232d;border-radius:20px;padding:2px 8px;font-size:11px}.side-bottom{margin-top:auto;padding:12px 8px;color:#aeb9bf;font-size:11px;overflow-wrap:anywhere}.logout{margin-top:13px;background:none;color:#e1e7ea;padding:0;border:0;cursor:pointer}.main{padding:30px clamp(18px,4vw,55px);max-width:1500px}.with-sidebar{margin-left:235px}.auth-main{min-height:100vh;display:grid;place-items:center}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.topbar h1{font-size:28px;margin:0}.eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:800;color:#89959c;margin:0 0 7px}.online{font-size:11px;color:#687780}.online i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#48a47b;margin-right:5px}.hero{background:#253b49;color:white;border-radius:18px;padding:28px 32px;display:flex;justify-content:space-between;align-items:center}.hero h2{font-size:27px;line-height:1.2;margin:0 0 9px}.hero p:last-child{font-size:13px;color:#c7d1d6;margin:0}.eyebrow.light{color:#c9a879}.hero-icon{font-size:65px;opacity:.35;margin-right:24px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0 34px}.stats article,.card,.list,.login-card{background:white;border:1px solid #e5eaec;border-radius:15px}.stats article{padding:17px}.stats article span{font-size:19px}.stats small{display:block;color:#75828a;font-size:12px;margin:10px 0 4px}.stats b{font-size:27px}.section-title{display:flex;justify-content:space-between;align-items:center;margin:28px 0 16px;gap:12px}.section-title h2{font-size:21px;margin:0 0 5px}.muted{color:#7d8990}.section-title p:last-child{font-size:13px}.btn{border:0;border-radius:10px;padding:11px 15px;font-weight:700;cursor:pointer;display:inline-block;font-size:13px}.primary{background:#1d3442;color:white}.primary:hover{background:#304c5c}.secondary{background:#e9eef0;color:#344751}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:14px}.card{padding:18px}.card h3{font-size:16px;margin:0}.card-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.progress{height:7px;background:#edf0f1;border-radius:10px;overflow:hidden;margin:16px 0 7px}.progress i{height:100%;display:block;background:#4c9b79;border-radius:10px}.card small{font-size:11px}.checklist{border-top:1px solid #edf0f1;margin-top:14px;padding-top:7px}.check-form{display:flex;align-items:center;gap:10px;padding:8px 0;font-size:13px}.check-button{width:19px;height:19px;border:1px solid #cbd4d8;border-radius:5px;background:white;color:white;cursor:pointer;padding:0}.check-button.checked{background:#4b9b79;border-color:#4b9b79}.done{text-decoration:line-through;color:#929da3}.add-tool,.add-form{display:flex;gap:9px;margin:17px 0 20px}.add-form input,.add-tool select,.add-form select{flex:1;min-width:0;border:1px solid #dce3e6;border-radius:10px;padding:12px;background:white;outline:none}.add-tool select{font-size:12px;padding:9px}.list{padding:4px 17px}.list-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #edf0f1;font-size:14px}.list-row:last-child{border:0}.bought{background:#e5f2eb;color:#28744f}.remove{border:0;background:#f3eeee;color:#a34b39;border-radius:8px;width:30px;height:30px;font-size:20px;cursor:pointer}.tiny-btn{font-size:11px;padding:8px 10px}.empty{text-align:center;padding:27px;color:#859198;background:#fff;border:1px solid #e5eaec;border-radius:14px;font-size:13px}.history{margin-top:22px;background:white;border:1px solid #e5eaec;border-radius:13px;padding:15px}.history summary{font-weight:700;font-size:13px;cursor:pointer}.history .list{border:0;padding:0;margin-top:10px}.role{font-size:11px;color:#6f7e86;background:#edf1f2;padding:5px 8px;border-radius:7px}.login-card{width:min(100%,410px);padding:32px;box-shadow:0 20px 70px #0001}.login-card h1{font-size:32px;margin:0 0 7px}.login-card .muted{font-size:13px;line-height:1.5}.form-stack{display:grid;gap:14px;margin-top:22px}.form-stack label{display:grid;gap:7px;font-size:12px;font-weight:700}.form-stack input{border:1px solid #dce3e6;border-radius:10px;padding:12px}.hint{font-size:11px;color:#879198;margin-top:18px}.flashes{margin-bottom:16px}.flash{padding:11px 14px;border-radius:9px;background:#edf1f2;font-size:13px;margin-bottom:7px}.flash.success{background:#e5f2eb;color:#28744f}.flash.error{background:#fae9e6;color:#9d4536}.flash.warning{background:#fff3d9;color:#87611f}footer{text-align:center;color:#9aa4aa;font-size:11px;padding:42px 0 12px}
@media(max-width:760px){.sidebar{inset:auto 0 0;width:auto;height:67px;padding:6px 7px;flex-direction:row;align-items:center}.brand,.side-bottom{display:none}nav{display:flex;width:100%;justify-content:space-around;gap:2px}nav a{flex:1;flex-direction:column;justify-content:center;gap:2px;padding:5px 2px;font-size:16px}nav a span{font-size:10px}nav em{position:absolute;transform:translate(22px,-12px);font-size:9px;padding:1px 5px}.with-sidebar{margin:0}.main{padding:20px 14px 90px}.topbar h1{font-size:24px}.hero{padding:22px}.hero h2{font-size:23px}.hero-icon{font-size:45px;margin:0}.stats{gap:7px}.stats article{padding:12px}.stats small{font-size:10px;min-height:26px}.stats b{font-size:23px}.section-title{align-items:flex-start}.section-title .btn{font-size:11px;padding:9px}.add-form{flex-wrap:wrap}.add-form input{flex-basis:100%}.add-form button{flex:1}.cards{grid-template-columns:1fr}.user-form input{flex-basis:100%}}

/* Mformat: prosta lista klientów i ich checklisty */
.client-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:15px;align-items:start}
.client-card{background:#fff;border:1px solid #e5eaec;border-radius:15px;padding:18px;min-width:0}
.client-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.client-head h3{font-size:17px;margin:0;overflow-wrap:anywhere}
.client-progress{display:flex;justify-content:space-between;color:#77858d;font-size:11px;margin-top:17px}
.client-item{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #edf0f1;padding:7px 0}
.client-item:last-child{border-bottom:0}
.client-check-form{display:flex;align-items:center;gap:10px;min-width:0;flex:1;text-align:left}
.client-check-form span{font-size:13px;overflow-wrap:anywhere}
.item-remove{border:0;background:transparent;color:#a0a9ae;font-size:19px;cursor:pointer;padding:2px 7px}
.item-remove:hover{color:#a34b39}
.add-client-item{display:flex;gap:8px;margin-top:13px}
.add-client-item input{flex:1;min-width:0;border:1px solid #dce3e6;border-radius:10px;padding:10px;background:#fff}
.small-note{font-size:12px;padding:8px 0}
@media(max-width:760px){.client-grid{grid-template-columns:1fr}.add-client-item input{font-size:14px}.client-card{padding:15px}}
