
  :root{
    --bg:#080A0D;
    --panel:#0F1217;
    --panel-2:#141922;
    --panel-3:#10141A;
    --line:#242A33;
    --line-soft:#1A1F27;
    --text:#F5F4F0;
    --muted:#8D939E;
    --blue:#315CFF;
    --blue-2:#1747FF;
    --lime:#D9FF43;
    --danger:#FF5F57;
    --warning:#FFC857;
    --success:#D9FF43;
    --white:#F5F4F0;
    --shadow:0 20px 60px rgba(0,0,0,.28);
    --radius:18px;
    --radius-sm:12px;
  }
  *{box-sizing:border-box}
  html,body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
  body{min-height:100vh;overflow-x:hidden}
  button,input,select{font:inherit}
  button{cursor:pointer}
  .app{display:grid;grid-template-columns:248px 1fr;min-height:100vh}
  .sidebar{
    position:sticky;top:0;height:100vh;
    padding:24px 18px 18px;
    background:linear-gradient(180deg,#0B0E13 0%,#090B0F 100%);
    border-right:1px solid var(--line-soft);
    display:flex;flex-direction:column;z-index:20;
  }
  .brand{display:flex;align-items:center;gap:12px;padding:4px 8px 28px}
  .brand svg{width:46px;height:46px;flex:none}
  .brand-title{font-size:20px;font-weight:800;letter-spacing:.06em;line-height:1}
  .brand-sub{font-size:9px;letter-spacing:.42em;margin-top:7px;color:#C9CDD4}
  .nav{display:flex;flex-direction:column;gap:6px}
  .nav-btn{
    width:100%;border:1px solid transparent;background:transparent;color:#AAB0BA;
    display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;
    transition:.2s ease;text-align:left;font-size:14px
  }
  .nav-btn svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8}
  .nav-btn:hover{background:#11161D;color:#fff}
  .nav-btn.active{background:linear-gradient(135deg,var(--blue),var(--blue-2));color:#fff;box-shadow:0 10px 30px rgba(49,92,255,.25)}
  .sidebar-bottom{margin-top:auto;padding-top:20px}
  .common-space{
    height:82px;margin:0 6px 18px;border-radius:14px;position:relative;overflow:hidden;
    border:1px solid #1d2530;background:#0D1117
  }
  .common-space:before,.common-space:after{
    content:"";position:absolute;width:94px;height:132px;top:-24px;border-radius:22px 28px 18px 28px;
    transform:skewY(-12deg);opacity:.95
  }
  .common-space:before{right:54px;background:linear-gradient(160deg,#1945ff,#315cff)}
  .common-space:after{right:-18px;background:linear-gradient(160deg,#fff,#d9dde8);mix-blend-mode:screen;opacity:.15}
  .common-space span{position:absolute;left:14px;bottom:12px;font-size:10px;letter-spacing:.24em;color:#98A1AD}
  .user{
    display:flex;align-items:center;gap:10px;padding:10px 8px;border-top:1px solid var(--line-soft)
  }
  .avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#E8E9ED;color:#111;font-weight:800;font-size:12px}
  .user small{display:block;color:#78808C;margin-top:3px}
  .main{min-width:0}
  .topbar{
    position:sticky;top:0;z-index:15;height:76px;padding:14px 28px;
    display:flex;align-items:center;justify-content:space-between;
    background:rgba(8,10,13,.82);backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,.04)
  }
  .top-title small{color:#6F7784;display:block;font-size:11px;letter-spacing:.12em;text-transform:uppercase;margin-bottom:4px}
  .top-title strong{font-size:22px}
  .top-actions{display:flex;gap:10px;align-items:center}
  .search{
    width:250px;height:40px;border:1px solid var(--line);border-radius:11px;background:#0B0F14;color:#fff;padding:0 14px
  }
  .date-chip{height:40px;padding:0 14px;border:1px solid var(--line);background:#0B0F14;color:#B5BBC4;border-radius:11px}
  .content{padding:28px;max-width:1540px;margin:0 auto}
  .page{display:none;animation:fade .24s ease}
  .page.active{display:block}
  @keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
  .hero{
    position:relative;overflow:hidden;margin-bottom:22px;padding:8px 2px 18px;
  }
  .hero:after{
    content:"";position:absolute;right:-80px;top:-88px;width:300px;height:230px;
    border-radius:42px;background:linear-gradient(135deg,var(--blue),rgba(49,92,255,.02));transform:rotate(-9deg);opacity:.55;filter:blur(.2px);pointer-events:none
  }
  .eyebrow{font-size:11px;letter-spacing:.18em;color:#777F8B;text-transform:uppercase}
  h1{font-size:42px;line-height:1.05;margin:6px 0 10px;letter-spacing:-.04em}
  .hero p{color:#8E96A2;margin:0;font-size:15px}
  .cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}
  .card{
    background:linear-gradient(180deg,#11161D,#0F1319);
    border:1px solid var(--line);border-radius:var(--radius);
    padding:18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.02)
  }
  .metric{position:relative;overflow:hidden}
  .metric:after{content:"";position:absolute;width:88px;height:88px;border-radius:24px;right:-28px;top:-24px;background:radial-gradient(circle at 35% 35%,rgba(49,92,255,.28),rgba(49,92,255,0) 70%)}
  .metric-label{color:#8E95A0;font-size:12px}
  .metric-value{font-size:26px;font-weight:800;margin:8px 0 7px;letter-spacing:-.03em}
  .metric-delta{font-size:12px;color:var(--lime);font-weight:700}
  .metric-delta.neutral{color:#A1A7B2}
  .grid-2{display:grid;grid-template-columns:1.35fr .85fr;gap:14px;margin-bottom:14px}
  .grid-2.equal{grid-template-columns:1fr 1fr}
  .section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
  .section-title h3{font-size:16px;margin:0}
  .link-btn{border:0;background:transparent;color:#5275FF;font-size:12px}
  .chart-wrap{height:245px;position:relative}
  .chart-grid{position:absolute;inset:10px 0 26px 0;display:grid;grid-template-rows:repeat(4,1fr)}
  .chart-grid div{border-top:1px solid #1F252E}
  .bars{position:absolute;left:34px;right:10px;bottom:26px;top:10px;display:flex;align-items:end;gap:18px}
  .bar-group{flex:1;display:flex;gap:4px;align-items:end;height:100%;position:relative}
  .bar{border-radius:4px 4px 1px 1px;min-width:8px}
  .bar.income{width:62%;background:linear-gradient(180deg,#416DFF,#315CFF)}
  .bar.cost{width:34%;background:linear-gradient(180deg,#F5F4F0,#AEB3BC)}
  .bar-label{position:absolute;bottom:-24px;left:50%;transform:translateX(-50%);font-size:10px;color:#727A86}
  .legend{display:flex;gap:12px;font-size:11px;color:#8D949F}
  .legend span{display:flex;gap:6px;align-items:center}
  .dot{width:8px;height:8px;border-radius:2px;display:inline-block;background:var(--blue)}
  .dot.white{background:#D8D9DE}
  .list{display:flex;flex-direction:column}
  .row{
    display:grid;grid-template-columns:1.4fr .7fr .55fr;align-items:center;gap:12px;
    padding:13px 0;border-top:1px solid #1C222A;font-size:13px
  }
  .row:first-child{border-top:0}
  .row .muted{color:#7F8793;font-size:11px;margin-top:3px}
  .money.plus{color:var(--lime);font-weight:800;text-align:right}
  .money.minus{color:#FF625D;font-weight:800;text-align:right}
  .date{text-align:right;color:#808894;font-size:11px}
  .project-row{
    display:grid;grid-template-columns:1.2fr 1fr .35fr .55fr;gap:12px;align-items:center;
    padding:12px 0;border-top:1px solid #1C222A;font-size:12px
  }
  .project-row:first-child{border-top:0}
  .progress{height:6px;background:#202631;border-radius:99px;overflow:hidden}
  .progress i{height:100%;display:block;background:linear-gradient(90deg,var(--blue),#4A76FF);border-radius:99px}
  .tabs{display:flex;gap:7px;flex-wrap:wrap}
  .tab{
    border:1px solid #202732;background:#121720;color:#9AA1AC;padding:8px 12px;border-radius:10px;font-size:11px
  }
  .tab.active{background:#183DDA;color:#fff;border-color:#315CFF}
  .status{display:inline-flex;align-items:center;justify-content:center;padding:6px 9px;border-radius:8px;font-size:10px;font-weight:800}
  .status.paid{background:var(--lime);color:#111}
  .status.unpaid{background:var(--blue);color:white}
  .status.draft{background:#252B34;color:#CBD0D8}
  .table{width:100%;border-collapse:collapse}
  .table th{text-align:left;color:#69717E;font-weight:600;font-size:10px;padding:10px;border-bottom:1px solid #20262F}
  .table td{padding:12px 10px;border-bottom:1px solid #1B2129;font-size:12px;color:#D9DDE3}
  .toolbar{display:flex;gap:10px;align-items:center;margin-bottom:14px;flex-wrap:wrap}
  .btn{
    border:1px solid #26303C;border-radius:11px;padding:10px 14px;background:#121720;color:#D8DCE3;
    transition:.18s ease
  }
  .btn:hover{transform:translateY(-1px);border-color:#3A4656}
  .btn.primary{background:linear-gradient(135deg,var(--blue),#1747FF);border-color:#315CFF;color:#fff;font-weight:700}
  .btn.lime{background:var(--lime);border-color:var(--lime);color:#111;font-weight:800}
  .btn.ghost{background:transparent}
  .btn.danger{border-color:#5A2929;color:#FF8B87}
  .filter-input{height:40px;border-radius:10px;background:#0E1319;border:1px solid #252C36;color:#fff;padding:0 12px}
  .page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
  .page-header h2{font-size:28px;margin:0 0 6px}
  .page-header p{color:#7C8490;margin:0;font-size:13px}
  .empty-note{color:#717986;text-align:center;padding:34px}
  .settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
  .settings-item{padding:14px;border:1px solid #222936;background:#10151C;border-radius:14px}
  .settings-item label{display:block;font-size:12px;color:#8A929D;margin-bottom:7px}
  .settings-item input{width:100%;height:42px;border-radius:10px;border:1px solid #29313C;background:#0B0F14;color:white;padding:0 12px}
  .switch{display:flex;justify-content:space-between;align-items:center}
  .toggle{width:42px;height:24px;border-radius:20px;background:#242A33;position:relative;border:1px solid #313946}
  .toggle:after{content:"";position:absolute;width:18px;height:18px;border-radius:50%;background:#AAB0BA;left:2px;top:2px;transition:.2s}
  .toggle.on{background:#234CFF}
  .toggle.on:after{left:20px;background:#fff}
  .modal{
    position:fixed;inset:0;background:rgba(0,0,0,.68);backdrop-filter:blur(10px);display:none;align-items:center;justify-content:center;z-index:100;padding:20px
  }
  .modal.show{display:flex}
  .modal-box{width:min(520px,100%);background:#0F141B;border:1px solid #2A323D;border-radius:20px;box-shadow:var(--shadow);padding:20px}
  .modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
  .modal-head h3{margin:0;font-size:20px}
  .close{border:0;background:#181E26;color:#B6BDC6;width:34px;height:34px;border-radius:10px}
  .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .form-group{display:flex;flex-direction:column;gap:6px}
  .form-group.full{grid-column:1/-1}
  .form-group label{font-size:11px;color:#818A96}
  .form-group input,.form-group select{
    height:42px;border:1px solid #29313C;background:#0A0F14;color:#fff;border-radius:10px;padding:0 12px
  }
  .modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
  .toast{
    position:fixed;right:22px;bottom:22px;background:#141A21;border:1px solid #2A333E;color:#fff;padding:14px 16px;border-radius:12px;
    transform:translateY(120px);opacity:0;transition:.25s;z-index:120;box-shadow:var(--shadow);font-size:13px
  }
  .toast.show{transform:none;opacity:1}
  .report-line{height:240px;position:relative;margin-top:6px}
  .report-line svg{width:100%;height:100%}
  .report-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
  .report-kpi{padding:14px;background:#10151C;border:1px solid #222936;border-radius:14px}
  .report-kpi small{color:#7D8590}.report-kpi strong{display:block;margin-top:6px;font-size:20px}
  .client-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
  .client-card{padding:18px;border:1px solid #222A34;background:#10151C;border-radius:16px}
  .client-card h4{margin:0 0 5px}.client-card p{margin:0;color:#7E8793;font-size:12px}.client-card strong{display:block;margin-top:16px;color:#DDE1E7}
  @media (max-width:1100px){
    .app{grid-template-columns:86px 1fr}.brand-copy,.nav-btn span,.sidebar-bottom .user div,.common-space span{display:none}
    .brand{justify-content:center}.nav-btn{justify-content:center;padding:12px}.common-space{margin:0 0 18px;height:54px}
    .cards{grid-template-columns:repeat(2,1fr)}.grid-2,.grid-2.equal{grid-template-columns:1fr}.client-grid{grid-template-columns:1fr 1fr}
  }
  @media (max-width:720px){
    .app{display:block}.sidebar{position:fixed;bottom:0;top:auto;width:100%;height:72px;display:flex;flex-direction:row;padding:8px;z-index:50;border-right:0;border-top:1px solid var(--line-soft)}
    .brand,.sidebar-bottom{display:none}.nav{width:100%;flex-direction:row;overflow-x:auto}.nav-btn{min-width:58px;padding:10px}.main{padding-bottom:74px}
    .topbar{padding:12px 16px;height:auto;align-items:flex-start}.top-actions{width:48%;flex-direction:column}.search{width:100%}.date-chip{width:100%;font-size:11px}
    .content{padding:18px 14px}.cards{grid-template-columns:1fr 1fr}.client-grid,.settings-grid{grid-template-columns:1fr}
    h1{font-size:34px}.page-header{flex-direction:column}.table{min-width:720px}.table-wrap{overflow:auto}.report-kpis{grid-template-columns:1fr}
  }
/* COLAB Studio Manager — rozwinięcie stylistyki dostarczonego demo */
html{background:#080a0d}body{background:transparent;font-size:14px}body:before{content:"";position:fixed;inset:-35%;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 65% 20%,#13233f88,transparent 42%),radial-gradient(ellipse at 20% 80%,#1f242d80,transparent 48%),#080a0d;animation:ambient 22s ease-in-out infinite alternate}body.still:before{animation:none}@keyframes ambient{to{transform:translate(8%,6%) rotate(8deg);filter:hue-rotate(9deg)}}h1,h2,h3,h4,.brand-title,.metric-value,.top-title strong{font-family:'Space Grotesk',sans-serif;font-weight:600}button,input,select,textarea{font:inherit}h1{font-size:40px}h3{margin:0 0 16px}p{line-height:1.6}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #91a6ff;outline-offset:3px}button:disabled{opacity:.5;cursor:wait}.brand img{width:44px;height:44px;border-radius:12px;object-fit:cover}.brand-title{letter-spacing:-.04em;font-size:24px}.brand-sub{letter-spacing:.45em}.sidebar{background:#0a0d12eb}.nav-btn.active{background:#183aaf;border-color:#315cff66;box-shadow:none}.nav-icon{font-size:20px;width:20px;text-align:center}.sidebar-bottom .btn{width:100%;margin-top:12px}.common-space{height:66px}.card{background:linear-gradient(135deg,#11161de8,#0d1219eb);border-color:#262c3566}.hero:after{display:none}.hero{padding:8px 0 4px}.hero-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.hero-head p{color:#929ba8;margin:0}.page-header p,.metric-label,.muted{color:#9aa3b0}.muted{font-size:12px}.eyebrow{color:#9ba5b8}.metric-value{font-weight:500;font-size:30px}.metric-delta{font-weight:400}.topbar{background:#090d13b8}.top-title strong{font-size:17px}.top-actions input{max-width:220px}.btn{font-size:12px;white-space:nowrap}.btn.primary{background:#315cff;box-shadow:0 3px 18px #315cff14;font-weight:500}.status{background:#202731;color:#b7c2d6;font-weight:500;white-space:nowrap;font-size:11px}.status.paid{background:#d9ff4313;color:#d9ff43}.status.unpaid{background:#315cff21;color:#8da6ff}.status.late{background:#ff5f5715;color:#ffa09b}.status.review{background:#ffc85712;color:#e5c581}.metric-link{display:flex;justify-content:space-between;margin-top:20px;padding-top:12px;border-top:1px solid #ffffff0b;color:#8e98a9;font-size:11px}.pill{border:1px solid #303847;background:#151b25;border-radius:8px;font-size:10px;padding:4px 7px;color:#acb8ce}.section-title .link-btn{color:#a1b3ff}.toolbar{margin:18px 0}.toolbar input,.toolbar select,.filter-input{max-width:100%;font-size:12px;color:#c4cbd5}.table th{color:#9aa3b0;font-size:11px;font-weight:400}.table td{font-size:12px;padding:16px 10px}.table .btn{padding:7px 9px}.table td strong{font-weight:500}.table tr:last-child td{border-bottom:0}.row{grid-template-columns:1fr auto}.row strong{font-weight:500}.empty-note{color:#99a3b1;font-size:13px;line-height:1.6}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.project-card{padding:20px;display:flex;flex-direction:column;gap:16px;min-width:0;transition:border-color .2s}.project-card:hover{border-color:#4a6085}.project-card h3{font-size:17px;margin:0 0 6px}.project-card .footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #ffffff0b;padding-top:14px;margin-top:auto}.project-card p{margin:0;font-size:12px;color:#9ba4b1;white-space:pre-wrap;overflow-wrap:anywhere}.project-card .owner{font-size:12px}.avatar-small{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#283552;color:#b8caff;font-size:10px;margin-right:6px}.avatar-small.karol{background:#303139;color:#e3dede}.project-top{display:flex;justify-content:space-between;gap:6px}.progress i{background:#547aff}.client-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.client-card{background:#11161c9c;overflow-wrap:anywhere}.client-card h4{font-size:18px;font-weight:500}.client-card .btn{margin-top:16px}.client-card p{margin:6px 0}.client-card strong{font-size:13px;font-weight:400}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:#242c37;border:1px solid #242c37;border-radius:14px;overflow:hidden}.weekday{padding:13px;background:#11161d;color:#96a0ae;text-align:center;font-size:11px}.day{background:#0e141d;min-height:120px;padding:9px;min-width:0}.day.off{background:#0b1017;color:#586270}.day.today{background:#17233c}.day-num{border:0;background:transparent;color:inherit;padding:2px 4px;font-size:11px;cursor:pointer}.day.today .day-num{background:#315cff;border-radius:5px;color:white}.cal-event{display:block;width:100%;border:0;border-left:2px solid #6384ff;background:#315cff18;color:#c5d2ff;text-align:left;border-radius:4px;padding:6px;margin-top:6px;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cal-event.karol{border-color:#c1bfcb;background:#c1bfcb12;color:#d6d3de}.cal-event.conflict{border-color:#ffb46b}.calendar-wrap{overflow:auto}.chart-wrap{margin-top:20px}.bars{left:8px;gap:12px}.bar{min-width:4px}.legend{flex-wrap:wrap}.bar-label{color:#a0aabc}.chart-scale{font-size:11px;color:#8e99ac}.money.plus{color:#d9ff43}.money.minus{color:#c3cad7}.inline-actions{display:flex;gap:8px;flex-wrap:wrap}.notice{border:1px solid #315cff38;background:#315cff0b;color:#aebbd6;padding:12px 16px;border-radius:12px;font-size:12px;margin-bottom:18px;line-height:1.6}.error{color:#ffaaa4;font-size:13px;white-space:pre-wrap}.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:24px}.auth{width:min(440px,100%);padding:32px}.auth .brand{padding:0 0 32px}.auth h1{font-size:28px}.auth form{display:grid;gap:16px}.auth label,.field label{font-size:12px;color:#aab2bf;display:block;margin-bottom:7px}.auth input,.auth select,.field input,.field select,.field textarea{width:100%;border:1px solid #303946;background:#0a1018;color:#edf0f7;border-radius:10px;padding:11px;min-height:42px}.field textarea{height:100px;resize:vertical}.field.full{grid-column:1/-1}.field small{display:block;color:#99a3b0;line-height:1.5;margin-top:5px}input[type=checkbox]{width:18px;height:18px;min-height:0}dialog{width:min(650px,calc(100% - 24px));max-height:90vh;border:1px solid #303b4d;border-radius:20px;background:#0f151f;color:#f5f4f0;padding:24px;box-shadow:0 30px 100px #0008}dialog::backdrop{background:#02050bb3;backdrop-filter:blur(8px)}dialog .modal-actions{position:sticky;bottom:-24px;background:#0f151f;padding:16px 0;margin-bottom:0}#deleteRecord{margin-right:auto}.settings-grid .card{padding:24px}.settings-grid form{display:grid;gap:16px}.audit{max-height:260px;overflow:auto;margin-top:18px}.report-table{margin-top:20px}.demo-bar{padding:10px 18px;text-align:center;background:#192846;color:#becdf2;font-size:12px}.topbar .sync{font-size:11px;color:#98a88b}.note-preview{max-height:55px;overflow:hidden}.date-range{display:flex;gap:6px;align-items:center}.date-range label{font-size:10px;color:#9ba4b4}.date-range input{width:138px}.link{color:#aabaff}a{color:#aabaff}.tag-count{color:#8996ad;margin-left:6px}.row button.link-btn{text-align:left;font-size:13px}.no-motion *{animation:none!important}.hero-head .inline-actions{justify-content:flex-end}.badge-num{font-size:10px;margin-left:auto;background:#ffffff12;border-radius:6px;padding:3px 6px;color:#b5c4e9}
@media(min-width:1600px){.content{padding:36px 40px}}@media(max-width:1200px){.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.date-range{display:none}}@media(max-width:1100px){.brand img{width:40px;height:40px}.badge-num{display:none}.sidebar .user{padding:6px}.nav-icon{display:block!important}.sidebar-bottom .btn{font-size:0}.sidebar-bottom .btn:after{content:'↪';font-size:18px}.client-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.nav-btn{flex-direction:column;gap:4px;min-width:70px;padding:6px 8px}.nav-btn span{display:block;font-size:9px}.nav-icon{font-size:17px!important}.hero-head{align-items:flex-start;flex-direction:column}.top-actions{width:auto;flex-direction:row}.topbar .search{width:140px}.topbar .sync{display:none}.topbar{align-items:center;padding:12px 14px}.top-title strong{font-size:14px}.top-title small{font-size:9px}.project-grid,.client-grid,.settings-grid{grid-template-columns:1fr}.metric-value{font-size:24px}.card{padding:16px}.table{min-width:650px}.cards{gap:10px}.calendar{min-width:650px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.day{min-height:100px}.hero-head h1{font-size:32px}.toast{bottom:88px;right:12px;left:12px}.date-range{display:flex;flex-wrap:wrap}.settings-grid .card{padding:20px}}@media(prefers-reduced-motion:reduce){*,*:before{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:720px){.nav{overflow-y:hidden;scrollbar-width:none}.nav::-webkit-scrollbar{display:none}.nav-btn{flex-shrink:0;min-width:82px}.nav-btn span{white-space:nowrap}.hero{margin-bottom:0}.hero-head{gap:14px}.metric-value{font-size:21px;overflow-wrap:anywhere}}
/* Motyw jest lokalną preferencją użytkownika, niezależną od finansów. */
:root{color-scheme:dark}.theme-toggle{width:40px;height:40px;display:inline-grid;place-items:center;padding:9px;flex-shrink:0}.theme-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.auth-theme{position:fixed;right:24px;top:24px;z-index:25}
html[data-theme=light]{color-scheme:light;--bg:#f4f6fa;--panel:#fff;--panel-2:#edf1f7;--panel-3:#f7f9fc;--line:#d9e0ea;--line-soft:#e1e6ee;--text:#182233;--muted:#5c687b;--shadow:0 20px 60px #243e6418;background:#f4f6fa}
html[data-theme=light] body:before{background:radial-gradient(ellipse at 65% 20%,#bed0f45c,transparent 42%),radial-gradient(ellipse at 20% 80%,#dce3ed70,transparent 48%),#f4f6fa}
html[data-theme=light] .sidebar{background:#f8faffed;border-color:#dde4ed}
html[data-theme=light] .brand-sub{color:#59667a}
html[data-theme=light] .nav-btn{color:#59677a}
html[data-theme=light] .nav-btn:hover{background:#e8edf6;color:#192b48}
html[data-theme=light] .nav-btn.active{background:#315cff;color:white;box-shadow:0 6px 20px #315cff18}
html[data-theme=light] .topbar{background:#f7f9fbd9;border-color:#dfe5ee}
html[data-theme=light] .top-title small,html[data-theme=light] .eyebrow,html[data-theme=light] .muted,html[data-theme=light] .metric-label,html[data-theme=light] .metric-delta.neutral,html[data-theme=light] .page-header p,html[data-theme=light] .hero-head p,html[data-theme=light] .date,html[data-theme=light] .date-range label{color:#5c687b}
html[data-theme=light] .card{background:linear-gradient(135deg,#ffffffed,#f9fbffeb);border-color:#dce3ed;box-shadow:0 4px 20px #243e6405}
html[data-theme=light] .metric:after{background:radial-gradient(circle at 35% 35%,#315cff15,transparent 70%)}
html[data-theme=light] .search,html[data-theme=light] .date-chip,html[data-theme=light] .filter-input,html[data-theme=light] .field input,html[data-theme=light] .field select,html[data-theme=light] .field textarea,html[data-theme=light] .auth input,html[data-theme=light] .auth select{background:#fff;color:#1d2b40;border-color:#cfd8e6}
html[data-theme=light] .search::placeholder{color:#6d788a}
html[data-theme=light] .btn,html[data-theme=light] .tab,html[data-theme=light] .close{background:#f4f7fc;color:#33445f;border-color:#cfd8e6}
html[data-theme=light] .btn:hover,html[data-theme=light] .tab:hover{border-color:#90a9d8;background:#e9effb}
html[data-theme=light] .btn.primary,html[data-theme=light] .tab.active{background:#315cff;color:#fff;border-color:#315cff}
html[data-theme=light] .btn.danger{background:#fff4f2;color:#a62e30;border-color:#ecc3bf}
html[data-theme=light] .link-btn,html[data-theme=light] .section-title .link-btn,html[data-theme=light] a,html[data-theme=light] .link{color:#254bbb}
html[data-theme=light] .row,html[data-theme=light] .table th,html[data-theme=light] .table td,html[data-theme=light] .metric-link,html[data-theme=light] .project-card .footer,html[data-theme=light] .user{border-color:#e2e7ef}
html[data-theme=light] .table th,html[data-theme=light] .legend,html[data-theme=light] .chart-scale,html[data-theme=light] .bar-label,html[data-theme=light] .metric-link,html[data-theme=light] .row .muted,html[data-theme=light] .project-card p,html[data-theme=light] .client-card p,html[data-theme=light] .user small,html[data-theme=light] .field small{color:#5d6a7f}
html[data-theme=light] .table td,html[data-theme=light] .client-card strong{color:#24344c}
html[data-theme=light] .money.plus,html[data-theme=light] .table .money.plus{color:#38702c}
html[data-theme=light] .money.minus,html[data-theme=light] .table .money.minus{color:#9b4140}
html[data-theme=light] .status{background:#e8edf4;color:#44516a}
html[data-theme=light] .status.paid{background:#e7f2dc;color:#39672b}
html[data-theme=light] .status.unpaid{background:#e7edff;color:#3153ad}
html[data-theme=light] .status.late{background:#fbe5e1;color:#a13632}
html[data-theme=light] .status.review{background:#fcf0d4;color:#805e14}
html[data-theme=light] .pill{background:#edf1f7;border-color:#dbe2ed;color:#53647e}
html[data-theme=light] .avatar{background:#dfe8f8;color:#284164}
html[data-theme=light] .avatar-small{background:#e2eaff;color:#3156a3}
html[data-theme=light] .avatar-small.karol{background:#ebe8f1;color:#645770}
html[data-theme=light] .badge-num{background:#e4eaf6;color:#40567d}
html[data-theme=light] .nav-btn.active .badge-num{background:#ffffff29;color:#fff}
html[data-theme=light] .project-card:hover{border-color:#9bb1db}
html[data-theme=light] .progress{background:#e0e7f2}
html[data-theme=light] .client-card,html[data-theme=light] .settings-item,html[data-theme=light] .report-kpi{background:#ffffffd9;border-color:#dce3ed}
html[data-theme=light] .chart-grid div{border-color:#dfe6f0}
html[data-theme=light] .bar.cost{background:linear-gradient(180deg,#93a0b6,#b9c3d2)}
html[data-theme=light] .dot.white{background:#93a0b6}
html[data-theme=light] .notice{background:#eaf0fc;color:#425c88;border-color:#d1ddf4}
html[data-theme=light] .empty-note{color:#617087}
html[data-theme=light] .error{color:#ac3036}
html[data-theme=light] .topbar .sync{color:#507243}
html[data-theme=light] .common-space{background:#e9eff9;border-color:#dae2f0}
html[data-theme=light] .common-space span{color:#465c80}
html[data-theme=light] .demo-bar{background:#e0e9fb;color:#405b88}
html[data-theme=light] dialog,html[data-theme=light] dialog .modal-actions{background:#fafcff;color:#1c2b43;border-color:#d0dbea}
html[data-theme=light] dialog::backdrop{background:#31446055}
html[data-theme=light] .auth label,html[data-theme=light] .field label{color:#495c78}
html[data-theme=light] .toast{background:#fff;border-color:#ccd8eb;color:#243b60}
html[data-theme=light] .calendar{background:#dce3ed;border-color:#dce3ed}
html[data-theme=light] .weekday{background:#edf2f9;color:#536580}
html[data-theme=light] .day{background:#fff;color:#30415b}
html[data-theme=light] .day.off{background:#f0f3f8;color:#8a95a6}
html[data-theme=light] .day.today{background:#e9f0ff}
html[data-theme=light] .cal-event{background:#e7edff;color:#3151a0;border-color:#5479ef}
html[data-theme=light] .cal-event.karol{background:#efebf4;color:#66537e;border-color:#9280ab}
html[data-theme=light] .cal-event.conflict{border-color:#c97429}
@media(max-width:720px){.topbar .search{width:105px}.top-actions{gap:6px}.topbar .btn{padding:8px}.topbar .theme-toggle{width:36px;height:36px}.auth-theme{right:16px;top:16px}}
html[data-theme=light] .common-space:before{opacity:.12}html[data-theme=light] .common-space:after{opacity:.1}

.project-price{font-family:'Space Grotesk',sans-serif;font-size:22px;font-weight:600;color:var(--text);overflow-wrap:anywhere}.project-finance{margin-bottom:24px}.project-finance .cards{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:12px}.project-finance .metric-value{font-size:clamp(20px,2.2vw,32px)}.project-finance .section-title{flex-wrap:wrap;gap:16px}.project-finance input{max-width:100%}@media(max-width:800px){.project-finance .cards{grid-template-columns:1fr}}
