*{box-sizing:border-box}body{margin:0;background:#090a14;color:#f1efff;font:15px/1.6 system-ui,Arial,sans-serif}a{color:inherit;text-decoration:none}.top{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:19px max(20px,calc((100vw - 1140px)/2));border-bottom:1px solid #29233e;background:#101020}.brand{font-weight:900;letter-spacing:1px;font-size:23px}.brand span{color:#a97cff}.brand small{font-size:12px;letter-spacing:0;color:#a6a0bd;font-weight:500}.top nav{display:flex;gap:20px;align-items:center;font-size:13px;flex-wrap:wrap}.top nav a:hover,.link{color:#b797ff}.wrap{max-width:1140px;margin:auto;padding:36px 20px 80px}.intro{background:linear-gradient(120deg,#21123c,#111529);padding:36px;border:1px solid #392a5d;border-radius:20px}.intro h1{font-size:clamp(26px,4vw,43px);line-height:1.2;margin:8px 0}.intro p,.muted{color:#a9a3bc}.eyebrow{font-size:12px;letter-spacing:2px;color:#b79aff;font-weight:800}section{margin:36px 0}h2{font-size:23px;margin:0 0 18px}h3{font-size:18px;margin:10px 0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr));gap:16px}.card,details,.auth{background:#141525;border:1px solid #302a43;border-radius:16px;padding:22px}.card p{overflow-wrap:anywhere}.pill{background:#33234f;color:#d7bcff;border-radius:30px;padding:5px 11px;font-size:12px;font-weight:700}.meter{height:8px;border-radius:8px;background:#2b2940;overflow:hidden}.meter span{display:block;background:linear-gradient(90deg,#8553ed,#c59aff);height:100%}.dates{display:flex;gap:12px;flex-wrap:wrap;font-size:13px;color:#b3adc6}.dates span{background:#202037;border-radius:8px;padding:9px}.dates b{color:white}details{margin-top:16px}summary{cursor:pointer;font-weight:700;color:#c5a9ff}.form{display:grid;gap:13px;margin-top:15px}.form label{display:grid;gap:5px;font-size:13px;color:#c9c4d9}.form input,.form textarea,.form select{width:100%;background:#0b0c18;color:white;border:1px solid #403657;border-radius:9px;padding:11px;font:inherit}.form button{background:#8554ee;border:0;color:white;border-radius:10px;padding:12px 20px;font-weight:750;cursor:pointer;justify-self:start}.form button:hover{background:#9c72f3}.auth{max-width:460px;margin:55px auto}.ticket{margin:14px 0}.tickethead{display:flex;justify-content:space-between;gap:15px;align-items:center}.message{padding:12px;background:#1e1e31;border-radius:10px;margin:10px 0}.message small{color:#afa6c4}.message p{margin:4px 0;white-space:pre-wrap}.notice{padding:12px;background:#35214c;border-radius:9px}footer{text-align:center;color:#827a96;border-top:1px solid #29233e;padding:22px}@media(max-width:650px){.top{align-items:flex-start;flex-direction:column}.intro{padding:22px}}
.dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0}.stat{background:#16172b;border:1px solid #36304f;border-radius:14px;padding:19px}.stat span{display:block;color:#a9a3bc;font-size:12px}.stat strong{font-size:clamp(20px,2.5vw,28px);display:block;margin-top:5px}.payment-alert{border:1px solid #b47d43;background:#35251c;color:#ffdda8;border-radius:12px;padding:14px 18px}.payment-alert a{color:#fff;text-decoration:underline}.quicklinks{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.quicklinks a{border:1px solid #403357;background:#211a35;border-radius:10px;padding:10px 14px}.quicklinks a:hover{background:#342452}.payment-card{border-left:4px solid #7f61e5}.payment-card.overdue{border-left-color:#f0757c}.payment-card.paid{border-left-color:#54c59a}.payment-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center}.payment-amount{font-size:28px;font-weight:800;margin:12px 0}.payment-actions{display:flex;gap:10px;flex-wrap:wrap}.payment-actions form{display:inline}.payment-actions button{border:1px solid #524369;background:#261b3a;color:#fff;border-radius:8px;padding:9px 12px;cursor:pointer}.hint{color:#a9a3bc;font-size:13px}.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}@media(max-width:760px){.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.form-row{grid-template-columns:1fr}}

/* DevCore V3: czytelny pulpit, niezależny od stylów portfolio */
body .dashboard-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;margin:26px 0 28px!important;padding:0!important;background:transparent!important}
body .dashboard-stats .stat{display:flex!important;flex-direction:column!important;justify-content:center!important;min-height:120px!important;min-width:0!important;padding:22px!important;border-radius:18px!important;border:1px solid #3d315a!important;background:linear-gradient(145deg,#201936,#141525)!important;box-shadow:0 10px 28px #0002!important}
body .dashboard-stats .stat span{display:block!important;font-size:13px!important;font-weight:650!important;color:#bdb0d7!important;line-height:1.5!important}
body .dashboard-stats .stat strong{display:block!important;margin-top:10px!important;font-size:clamp(21px,2.5vw,31px)!important;line-height:1.2!important;font-weight:850!important;letter-spacing:-.5px!important;color:#fff!important;overflow-wrap:anywhere!important}
body .dashboard-stats .stat:first-child{background:linear-gradient(130deg,#3b2266,#201633)!important;border-color:#7654ad!important}
body .quicklinks{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:0 0 35px!important}
body .quicklinks a{display:flex!important;align-items:center!important;justify-content:center!important;min-height:62px!important;padding:12px!important;border:1px solid #45345e!important;border-radius:14px!important;background:#1b1830!important;color:#e9ddff!important;text-align:center!important;font-size:14px!important;font-weight:750!important;transition:background .2s,transform .2s!important}
body .quicklinks a:hover{background:#312449!important;transform:translateY(-2px)!important}
body .delete-ticket-form{margin-top:15px!important;padding-top:14px!important;border-top:1px solid #39304d!important}
body .danger-btn{background:#361c2a!important;color:#ffb6c0!important;border:1px solid #88445b!important;padding:10px 15px!important;border-radius:10px!important;font-weight:750!important;cursor:pointer!important}
body .danger-btn:hover{background:#60263c!important;color:#fff!important}
body .ticket{overflow:hidden!important}
@media(max-width:850px){body .dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}body .quicklinks{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:480px){body .dashboard-stats{gap:10px!important}body .dashboard-stats .stat{min-height:104px!important;padding:14px!important}body .dashboard-stats .stat strong{font-size:22px!important}body .quicklinks{gap:9px!important}body .quicklinks a{font-size:12px!important;padding:10px 7px!important}}
/* V4 — czytelniejsza strefa klienta */
body .wrap{max-width:1160px}body .intro{background:radial-gradient(circle at top right,#3b245d 0%,#19152c 52%,#111323 100%);border-color:#483465}body .quicklinks a{font-size:14px!important;min-height:70px!important}body .card{box-shadow:0 10px 24px #0002}body .money{display:block;font-size:26px;color:#e5d4ff;margin:12px 0}body .card form{margin-top:14px}body .card .danger-btn{margin-top:10px}body .form button:focus-visible,body a:focus-visible{outline:3px solid #b38aff;outline-offset:3px}

/* Rozwijana sekcja projektów */
body #projekty .projects-collapse{padding:0;overflow:hidden;border:1px solid #3d315a;background:#111222;border-radius:18px}
body #projekty .projects-collapse>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:21px 24px;color:#fff;font-size:21px;font-weight:800;list-style:none;cursor:pointer;background:#19172c}
body #projekty .projects-collapse>summary::-webkit-details-marker{display:none}
body #projekty .projects-collapse>summary::after{content:'⌄';font-size:26px;color:#bd9cff;line-height:1;transition:transform .2s}
body #projekty .projects-collapse[open]>summary::after{transform:rotate(180deg)}
body #projekty .projects-collapse>summary:hover{background:#251e3c}
body #projekty .projects-collapse .collapse-hint{margin-left:auto;font-size:12px;color:#a9a3bc;font-weight:500}
body #projekty .projects-collapse>.grid{padding:20px}
body #projekty .projects-collapse>details{margin:0 20px 20px}
@media(max-width:620px){body #projekty .projects-collapse>summary{padding:16px;font-size:17px}body #projekty .projects-collapse .collapse-hint{display:none}body #projekty .projects-collapse>.grid{padding:12px}}

/* DevCore: indywidualnie rozwijane projekty */
body #projekty .projects-section-head h2{margin-bottom:3px}
body #projekty .projects-section-head p{margin:0 0 18px;font-size:14px}
body #projekty .project-list{display:grid;gap:12px}
body #projekty details.project-item{padding:0;margin:0;border:1px solid #403354;border-radius:15px;background:#151525;overflow:hidden;box-shadow:0 6px 22px #0002}
body #projekty details.project-item>summary.project-item-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;list-style:none;padding:19px 22px;cursor:pointer;color:#fff;background:#1c1a2e}
body #projekty details.project-item>summary::-webkit-details-marker{display:none}
body #projekty details.project-item>summary:hover{background:#28203d}
body #projekty .project-item-main{display:flex;flex-direction:column;gap:4px;min-width:0}
body #projekty .project-item-name{font-size:17px;font-weight:800;overflow-wrap:anywhere}
body #projekty .project-item-client{font-size:12px;color:#b3abc8;overflow-wrap:anywhere}
body #projekty .project-item-right{display:flex;align-items:center;gap:16px;flex-shrink:0}
body #projekty .project-item-chevron{font-size:26px;color:#c7aaff;line-height:1;transition:transform .2s}
body #projekty details.project-item[open] .project-item-chevron{transform:rotate(180deg)}
body #projekty .project-item-content{padding:20px 22px 24px;border-top:1px solid #39304f}
body #projekty .project-description{white-space:normal;overflow-wrap:anywhere;line-height:1.75;color:#e6e0f2;margin:0 0 22px}
body #projekty .project-edit{margin-top:20px;padding:16px;border-color:#4c3b6b;background:#1d1931}
body #projekty .project-edit>summary{font-size:14px}
body #projekty .project-edit textarea{min-height:140px;resize:vertical}
body #projekty .add-project{margin-top:20px}
@media(max-width:580px){body #projekty details.project-item>summary.project-item-summary{padding:15px;gap:9px}body #projekty .project-item-name{font-size:15px}body #projekty .project-item-right{gap:8px}body #projekty .project-item-content{padding:16px}}

.dc-delete-form{margin-top:14px;display:flex;justify-content:flex-end}.dc-delete-form .danger-btn{background:rgba(239,68,68,.09);color:#ff9b9b;border:1px solid rgba(239,68,68,.3);border-radius:10px;padding:9px 14px;cursor:pointer;font-weight:700}.dc-delete-form .danger-btn:hover{background:rgba(239,68,68,.2)}

/* V5: formularze i akcje bez nakładania się */
*,*::before,*::after{box-sizing:border-box}
body .wrap,body .card,body .project-item,body .project-item-content,body .project-edit{min-width:0;max-width:100%}
body #projekty .project-item-content{display:block;overflow:hidden}
body #projekty .project-edit{display:block;width:100%;margin:18px 0 0;padding:18px;border-radius:12px;overflow:hidden}
body #projekty .project-edit>summary{display:list-item;list-style:revert;padding:6px 2px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
body #projekty .project-edit .form{width:100%;min-width:0}
body .form input,body .form textarea,body .form select{min-width:0;max-width:100%}
body .dc-delete-form{margin:14px 0 0;justify-content:flex-start;max-width:100%;width:100%}
body .dc-delete-form button,body .resend-form button{position:static;max-width:100%;white-space:normal}
body .project-item-summary{min-width:0;flex-wrap:wrap}
body .project-item-main{flex:1 1 180px}
body .project-item-right{margin-left:auto;max-width:100%}
body .invite-notice{background:#201a38;border:1px solid #634c91;padding:18px;border-radius:14px;margin:16px 0;overflow-wrap:anywhere}
body .invite-notice input{width:100%;padding:12px;background:#0e0d19;color:white;border:1px solid #62517f;border-radius:8px;margin-top:10px}
body .resend-form{margin-top:12px}.soft-btn{padding:10px 12px;border:1px solid #66508b;border-radius:9px;background:#29203d;color:#e7d5ff;cursor:pointer}
body .auth-help{margin-top:18px}body .auth-help a{color:#c8a8ff;text-decoration:underline}
@media(max-width:600px){body #projekty .project-item-content{padding:14px}body #projekty .project-edit{padding:12px}body #projekty .project-item-right{flex-wrap:wrap}}

/* DevCore — pulpit klienta, kompaktowy układ */
body .wrap{width:min(100% - 36px,1100px)!important;max-width:1100px!important;margin:0 auto!important;padding:32px 0 72px!important}
body .wrap>.intro{margin:0 0 18px!important;padding:30px 34px!important;min-height:0!important;border:1px solid #463361!important;border-radius:20px!important;background:radial-gradient(circle at 95% 5%,rgba(147,86,244,.20),transparent 44%),linear-gradient(120deg,#1b1730,#151425)!important;box-shadow:0 14px 38px #0003!important}
body .wrap>.intro h1{font-family:system-ui,Arial,sans-serif!important;font-size:clamp(25px,3.4vw,37px)!important;line-height:1.17!important;letter-spacing:-.9px!important;margin:10px 0 8px!important}
body .wrap>.intro p{font-size:14px!important;line-height:1.65!important;margin:0!important;color:#bdb4d2!important}
body .wrap>.intro .eyebrow{font-size:11px!important;letter-spacing:1.9px!important}
body .wrap>.quicklinks{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:0 0 35px!important}
body .wrap>.quicklinks a{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:8px!important;min-width:0!important;min-height:90px!important;padding:17px 18px!important;border:1px solid #403454!important;border-radius:16px!important;background:#191727!important;color:#f5f0ff!important;font:700 14px/1.35 system-ui,Arial,sans-serif!important;text-align:left!important;box-shadow:0 6px 18px #0002!important;transition:background .2s,border-color .2s,transform .2s!important}
body .wrap>.quicklinks a::before{display:grid!important;place-items:center!important;width:32px!important;height:32px!important;border-radius:10px!important;background:#332349!important;color:#d3b2ff!important;font-size:18px!important;font-weight:500!important}
body .wrap>.quicklinks a:nth-child(1)::before{content:'₿'!important}
body .wrap>.quicklinks a:nth-child(2)::before{content:'▣'!important}
body .wrap>.quicklinks a:nth-child(3)::before{content:'✉'!important}
body .wrap>.quicklinks a:nth-child(4)::before{content:'✓'!important}
body .wrap>.quicklinks a:hover{background:#282038!important;border-color:#8655d6!important;transform:translateY(-2px)!important}
body .wrap>#projekty{margin-top:30px!important}
body .wrap>#projekty h2{font-family:system-ui,Arial,sans-serif!important;font-size:22px!important;letter-spacing:-.4px!important;margin:0 0 8px!important}
body .wrap>#projekty .projects-section-head{margin-bottom:18px!important}
body .wrap>#projekty .projects-section-head p{margin:0!important;color:#a9a1ba!important;font-size:13px!important}
@media(max-width:760px){body .wrap>.quicklinks{grid-template-columns:repeat(2,minmax(0,1fr))!important}body .wrap>.intro{padding:25px!important}}
@media(max-width:460px){body .wrap{width:calc(100% - 26px)!important;padding-top:20px!important}body .wrap>.quicklinks{gap:9px!important}body .wrap>.quicklinks a{min-height:85px!important;padding:13px!important;font-size:12px!important}body .wrap>.intro h1{font-size:27px!important}}
