/* AUTODIL V196 · ekran startowy tylko w aplikacji; 2 sekundy, Speed Motion w tle. */
:root{color-scheme:dark}
*,*::before,*::after{box-sizing:border-box}
body.autodil-app-launch{margin:0;min-height:100vh;min-height:100dvh;overflow:hidden;background:#05070c;color:#fff;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.app-splash.speed-motion-v196{position:relative;isolation:isolate;display:grid;place-items:center;min-height:100vh;min-height:100dvh;overflow:hidden;padding:env(safe-area-inset-top,0px) 20px env(safe-area-inset-bottom,0px);background:radial-gradient(ellipse 55% 23% at 50% 49%,rgba(95,19,33,.10),transparent 78%),radial-gradient(ellipse 70% 36% at 85% 91%,rgba(36,44,65,.10),transparent 85%),linear-gradient(160deg,#0c1119 0%,#05070c 53%,#080c12 100%);text-align:center}
.app-splash.speed-motion-v196::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 49%,transparent 0%,transparent 37%,rgba(2,3,8,.21) 100%);z-index:-1}
.motion-lane{position:absolute;left:0;right:0;z-index:0;pointer-events:none;overflow:hidden;isolation:isolate}
.motion-lane-top{top:7%;height:24%;transform:skewY(-7deg)}
.motion-lane-bottom{bottom:7%;height:23%;transform:skewY(-7deg)}
.motion-lane i{position:absolute;display:block;left:-130%;width:155%;height:2px;transform:skewX(-19deg);opacity:0;will-change:transform,opacity;background:linear-gradient(90deg,transparent 0%,rgba(204,23,51,.05) 17%,rgba(235,34,60,.25) 44%,rgba(255,48,73,.9) 69%,#fff 77%,rgba(255,45,75,.8) 84%,transparent 100%);box-shadow:0 0 9px rgba(255,40,70,.55),0 0 20px rgba(220,30,55,.18);animation:autodil196fly 1.4s cubic-bezier(.21,.67,.33,1) both}
.motion-lane i:nth-child(1){top:18%;animation-delay:.06s}
.motion-lane i:nth-child(2){top:39%;height:1px;animation-delay:.21s;animation-duration:1.28s}
.motion-lane i:nth-child(3){top:63%;animation-delay:.12s;animation-duration:1.65s}
.motion-lane i:nth-child(4){top:82%;height:1px;animation-delay:.35s;animation-duration:1.42s}
.motion-lane-bottom i:nth-child(1){animation-delay:.22s}
.motion-lane-bottom i:nth-child(2){animation-delay:.36s}
.motion-lane-bottom i:nth-child(3){animation-delay:.15s}
.motion-lane-bottom i:nth-child(4){animation-delay:.44s}
.splash-v196-center{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;width:100%;max-width:440px;transform:translateY(-4%)}
.splash-v196-logo{position:relative;display:grid;place-items:center;width:min(82vw,320px);min-height:83px;padding:6px 0;max-width:100%;-webkit-touch-callout:none!important;-webkit-user-select:none!important;user-select:none!important;touch-action:pan-y;cursor:default;animation:autodil196logo .55s ease-out both}
.splash-v196-logo img{display:block;width:100%;height:auto;max-height:100px;object-fit:contain;pointer-events:none!important;-webkit-touch-callout:none!important;-webkit-user-drag:none!important;-webkit-user-select:none!important;user-select:none!important;user-drag:none!important}
.splash-v196-logo strong{color:#fff;font-size:clamp(35px,10.8vw,49px);font-weight:950;font-style:italic;white-space:nowrap;letter-spacing:-1.7px;line-height:1}
.splash-v196-logo strong span{color:#f73549}
.splash-v196-label{margin:15px 0 19px;color:#b3bdca;font-size:13px;line-height:1.5;font-weight:650;letter-spacing:.4px;animation:autodil196show .6s .16s both}
.splash-v196-loader{position:relative;overflow:hidden;width:min(70vw,270px);height:4px;border-radius:100px;background:rgba(158,172,191,.23);box-shadow:0 0 0 1px rgba(255,255,255,.025);animation:autodil196show .5s .22s both}
.splash-v196-progress{display:block;height:100%;width:0%;border-radius:inherit;background:linear-gradient(90deg,#9d1b31,#ef334a 70%,#ff8793);box-shadow:0 0 11px rgba(246,48,70,.5);animation:autodil196loading 1.92s linear both}
@keyframes autodil196fly{0%{opacity:0;transform:translateX(0) skewX(-19deg)}17%{opacity:.83}62%{opacity:.95}100%{opacity:0;transform:translateX(165vw) skewX(-19deg)}}
@keyframes autodil196logo{0%{opacity:0;transform:scale(.955);filter:blur(3px)}100%{opacity:1;transform:scale(1);filter:blur(0)}}
@keyframes autodil196show{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@keyframes autodil196loading{0%{width:0%}100%{width:100%}}
@media(max-width:360px){.splash-v196-logo{width:min(82vw,285px)}.splash-v196-label{font-size:12.5px}}
@media(max-height:510px){.motion-lane-top{height:18%}.motion-lane-bottom{height:17%}.splash-v196-logo{min-height:63px}.splash-v196-label{margin:8px 0 12px}}
@media(prefers-reduced-motion:reduce){.motion-lane i{display:none!important;animation:none!important}.splash-v196-logo,.splash-v196-label,.splash-v196-loader{animation:none!important;opacity:1!important;transform:none!important}.splash-v196-progress{animation:none!important;width:80%!important}}

@media(max-width:900px){
body.app-auth{min-height:100dvh!important;background:#05070b!important;padding:calc(22px + env(safe-area-inset-top)) 18px calc(22px + env(safe-area-inset-bottom))!important;display:flex!important;align-items:center!important;justify-content:center!important}
body.app-auth:before{content:"";position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 50% 18%,rgba(239,32,41,.13),transparent 30%),linear-gradient(180deg,#080b11,#04060a);z-index:-1}
body.app-auth .auth{width:100%!important;min-height:0!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important}
body.app-auth .auth .box{width:min(100%,360px)!important;max-width:360px!important;padding:22px 19px 20px!important;border-radius:24px!important;background:rgba(10,14,21,.96)!important;border:1px solid rgba(255,255,255,.075)!important;box-shadow:0 26px 80px rgba(0,0,0,.48)!important}
body.app-auth .logo{margin-bottom:19px!important}body.app-auth .logo .main-brand-logo{height:auto!important;max-height:46px!important;max-width:205px!important}body.app-auth .logo small{font-size:9px!important;letter-spacing:1.7px!important;margin-top:7px!important}
body.app-auth .eyebrow{font-size:9.5px!important;letter-spacing:1.35px!important}body.app-auth h1{font-size:24px!important;margin:6px 0 6px!important}body.app-auth p{font-size:12.5px!important;line-height:1.45!important;margin:0 0 15px!important;color:#8e98a7!important}
body.app-auth label{font-size:11.5px!important;margin-bottom:5px!important}body.app-auth input{min-height:45px!important;border-radius:13px!important;font-size:16px!important}body.app-auth .btn{min-height:46px!important;border-radius:13px!important;margin-top:10px!important}body.app-auth .links{margin-top:14px!important;font-size:12px!important}body.app-auth .links a[href="/"]{display:none!important}
}

/* V136 — właściwy interfejs zainstalowanej aplikacji. */
.pwa-app-bell,.pwa-app-user,.pwa-bottom-nav,.pwa-push-prompt,.pwa-app-mini-toast{display:none}
@media(max-width:900px){
  body.pwa-standalone{background:#05070b!important;padding:0 0 calc(78px + env(safe-area-inset-bottom))!important;overscroll-behavior-y:none}
  body.pwa-standalone:before{opacity:.35!important}
  body.pwa-standalone .app{display:block!important;min-height:100dvh!important}
  body.pwa-standalone .mobile-panel-bar{position:fixed!important;z-index:96!important;inset:0 0 auto!important;height:calc(58px + env(safe-area-inset-top))!important;padding:env(safe-area-inset-top) 13px 0!important;display:grid!important;grid-template-columns:minmax(95px,1fr) auto 42px!important;gap:8px!important;background:rgba(6,9,14,.975)!important;border-bottom:1px solid rgba(255,255,255,.055)!important;box-shadow:0 8px 24px rgba(0,0,0,.34)!important;backdrop-filter:blur(22px)!important}
  body.pwa-standalone .mobile-menu-toggle{display:none!important}
  body.pwa-standalone .mobile-panel-brand{grid-column:1!important;min-width:0!important;justify-self:start!important}
  body.pwa-standalone .mobile-panel-brand img{height:25px!important;max-width:122px!important;object-position:left center!important}
  body.pwa-standalone .mobile-panel-title{grid-column:2!important;max-width:150px!important;color:#c2c8d1!important;font-size:10px!important;letter-spacing:.65px!important;text-align:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.pwa-standalone .pwa-app-bell{grid-column:3!important;display:grid!important;place-items:center!important;position:relative!important;width:38px!important;height:38px!important;border-radius:12px!important;background:rgba(255,255,255,.035)!important;border:1px solid rgba(255,255,255,.07)!important;color:#d7dce4!important}
  body.pwa-standalone .pwa-app-bell svg{width:19px;height:19px}
  body.pwa-standalone .pwa-app-bell [data-notification-count]{position:absolute;right:-2px;top:-3px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;display:grid;place-items:center;background:#ef2029;color:#fff;font-size:9px;font-weight:900;border:2px solid #080b10}
  body.pwa-standalone .main{width:100%!important;padding:calc(70px + env(safe-area-inset-top)) 12px 18px!important;min-height:100dvh!important}
  body.pwa-standalone .top{display:none!important}
  body.pwa-standalone .grid{gap:10px!important}
  body.pwa-standalone .card,body.pwa-standalone .card.wide,body.pwa-standalone .card.full,body.pwa-standalone .dash-panel,body.pwa-standalone .fleet-v47-card{border-radius:16px!important;border-color:rgba(255,255,255,.065)!important;background:linear-gradient(155deg,rgba(14,19,27,.96),rgba(8,11,16,.98))!important;box-shadow:none!important}
  body.pwa-standalone .card:hover,body.pwa-standalone .quick-card:hover,body.pwa-standalone .metric-card:hover{transform:none!important;box-shadow:none!important}
  body.pwa-standalone .quick-card,body.pwa-standalone .metric-card,body.pwa-standalone .dash-kpi{border-radius:14px!important;box-shadow:none!important}
  body.pwa-standalone .side{width:min(84vw,318px)!important;background:#080c12!important}
  body.pwa-standalone .side .brand{padding-top:12px!important}
  body.pwa-standalone .side .nav a[href="/"],body.pwa-standalone .side .nav a[href="/index.php"]{display:none!important}
  body.pwa-standalone .pwa-bottom-nav{position:fixed!important;z-index:95!important;left:8px!important;right:8px!important;bottom:calc(7px + env(safe-area-inset-bottom))!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:2px!important;padding:5px!important;border-radius:20px!important;background:rgba(10,14,20,.97)!important;border:1px solid rgba(255,255,255,.075)!important;box-shadow:0 18px 55px rgba(0,0,0,.55)!important;backdrop-filter:blur(22px)!important}
  body.pwa-standalone .pwa-bottom-nav a,body.pwa-standalone .pwa-bottom-nav button{appearance:none!important;border:0!important;background:transparent!important;color:#747f8f!important;min-height:54px!important;border-radius:15px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;padding:5px 2px!important;font:inherit!important;cursor:pointer!important}
  body.pwa-standalone .pwa-bottom-nav a.active{background:rgba(239,32,41,.11)!important;color:#ff656e!important}
  body.pwa-standalone .pwa-bottom-nav svg{width:20px!important;height:20px!important}
  body.pwa-standalone .pwa-bottom-nav small{font-size:8.5px!important;line-height:1!important;font-weight:850!important;letter-spacing:.1px!important}
  body.pwa-standalone .panel-notification-toast{top:calc(66px + env(safe-area-inset-top))!important}
  body.pwa-standalone .client-announcements{margin-top:0!important}
  body.pwa-standalone .client-dashboard-v68 .dash-hero{margin-top:0!important}
  body.pwa-standalone .admin-page-hero{margin-top:0!important}
  body.pwa-standalone .pwa-push-prompt{display:grid!important;grid-template-columns:38px minmax(0,1fr) auto 28px!important;align-items:center!important;gap:9px!important;margin:0 0 10px!important;padding:11px!important;border-radius:16px!important;background:linear-gradient(135deg,rgba(239,32,41,.11),rgba(13,18,26,.97))!important;border:1px solid rgba(239,32,41,.22)!important}
  .pwa-push-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:rgba(239,32,41,.12);color:#ff626a;font-size:20px}.pwa-push-copy{display:flex;flex-direction:column;min-width:0;gap:2px}.pwa-push-copy strong{font-size:12.5px}.pwa-push-copy span{font-size:10.5px;line-height:1.35;color:#8993a1}.pwa-push-enable{border:0;border-radius:11px;background:#ef2029;color:#fff;min-height:36px;padding:0 10px;font-size:11px;font-weight:900}.pwa-push-close{border:0;background:transparent;color:#77818f;font-size:21px;width:28px;height:34px}.pwa-app-mini-toast{position:fixed;display:block!important;z-index:200;left:50%;bottom:calc(82px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(330px,calc(100vw - 32px));padding:10px 12px;border-radius:12px;background:#111823;border:1px solid rgba(255,255,255,.1);box-shadow:0 18px 45px rgba(0,0,0,.5);font-size:11.5px;text-align:center;color:#e7eaf0}
}
@media(max-width:390px){body.pwa-standalone .main{padding-left:9px!important;padding-right:9px!important}body.pwa-standalone .pwa-bottom-nav{left:5px!important;right:5px!important}.pwa-push-copy span{font-size:10px}.pwa-push-enable{padding:0 8px}}
@media(max-width:900px){body:not(.pwa-standalone) .pwa-push-settings{display:none!important}body.pwa-standalone .pwa-push-settings{display:block!important}.pwa-push-settings h2{font-size:16px!important}.pwa-push-settings p{font-size:11px!important}.pwa-push-settings .btn{min-height:38px!important;font-size:11px!important;padding:8px 10px!important}}

/* AUTODIL V137 — pełny wygląd aplikacji dla zainstalowanego PWA. Zwykły mobile/web bez zmian. */
@media(max-width:900px){
  html.pwa-standalone-html{height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:auto!important;background:#05070b!important}
  body.pwa-standalone{height:auto!important;min-height:100dvh!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-y:auto!important;touch-action:pan-y!important;background:linear-gradient(180deg,#070a0f 0,#05070b 42%,#04060a 100%)!important}
  body.pwa-standalone.mobile-nav-open{overflow:hidden!important;touch-action:none!important}
  body.pwa-standalone:not(.mobile-nav-open){overflow-y:auto!important;touch-action:pan-y!important}
  body.pwa-standalone .app{height:auto!important;min-height:100dvh!important;max-height:none!important;overflow:visible!important}
  body.pwa-standalone .main{height:auto!important;min-height:100dvh!important;max-height:none!important;overflow:visible!important;padding:calc(70px + env(safe-area-inset-top)) 12px calc(100px + env(safe-area-inset-bottom))!important}

  /* Pasek aplikacji */
  body.pwa-standalone .mobile-panel-bar{height:calc(58px + env(safe-area-inset-top))!important;background:rgba(7,10,15,.96)!important;border-bottom:1px solid rgba(255,255,255,.065)!important;box-shadow:0 10px 32px rgba(0,0,0,.32)!important}
  body.pwa-standalone .mobile-panel-brand img{height:24px!important;max-width:116px!important}
  body.pwa-standalone .mobile-panel-title{font-size:10.5px!important;font-weight:900!important;letter-spacing:.55px!important;color:#eef1f5!important}
  body.pwa-standalone .pwa-app-bell{background:#10151d!important;border-color:rgba(255,255,255,.08)!important;border-radius:13px!important}
  body.pwa-standalone .pwa-app-bell:active{transform:scale(.94)}

  /* Wszystkie sekcje treści wyglądają jak ekrany aplikacji, nie desktopowe karty. */
  body.pwa-standalone .grid{gap:10px!important}
  body.pwa-standalone .card,
  body.pwa-standalone .card.wide,
  body.pwa-standalone .card.full,
  body.pwa-standalone .dash-panel,
  body.pwa-standalone .settings-section-card,
  body.pwa-standalone .admin-section-card,
  body.pwa-standalone .docs-history-card,
  body.pwa-standalone .document-editor,
  body.pwa-standalone .vehicle-card,
  body.pwa-standalone .client-car,
  body.pwa-standalone .client-doc-card,
  body.pwa-standalone .security-list-card{
    border-radius:18px!important;
    border:1px solid rgba(255,255,255,.065)!important;
    background:linear-gradient(155deg,rgba(15,20,28,.97),rgba(8,11,16,.99))!important;
    box-shadow:0 8px 25px rgba(0,0,0,.16)!important;
  }
  body.pwa-standalone .card,body.pwa-standalone .card.wide,body.pwa-standalone .card.full{padding:14px!important}
  body.pwa-standalone .eyebrow{font-size:9.5px!important;letter-spacing:1.25px!important;color:#ff6972!important}
  body.pwa-standalone h2{letter-spacing:-.25px}
  body.pwa-standalone .muted{color:#8c96a5!important}
  body.pwa-standalone .btn{min-height:40px!important;padding:8px 12px!important;border-radius:12px!important;font-size:12px!important;box-shadow:none!important;transform:none!important}
  body.pwa-standalone .btn.secondary{background:#10161f!important;border-color:rgba(255,255,255,.085)!important}
  body.pwa-standalone input,body.pwa-standalone select,body.pwa-standalone textarea,body.pwa-standalone .input{min-height:44px!important;border-radius:13px!important;background:#090d13!important;border-color:rgba(255,255,255,.085)!important;box-shadow:none!important}
  body.pwa-standalone textarea{min-height:82px!important}
  body.pwa-standalone .field label{font-size:11.5px!important;color:#a9b1bd!important;margin-bottom:5px!important}

  /* Start klienta/admina — bardziej zwarty ekran startowy aplikacji. */
  body.pwa-standalone.pwa-screen-start .dash-hero{padding:14px!important;border-radius:20px!important;background:radial-gradient(circle at 90% 0,rgba(239,32,41,.15),transparent 34%),linear-gradient(155deg,#111721,#090d13)!important;border:1px solid rgba(255,255,255,.07)!important}
  body.pwa-standalone.pwa-screen-start .dash-hero h2{font-size:20px!important;line-height:1.12!important;margin:3px 0 5px!important}
  body.pwa-standalone.pwa-screen-start .dash-hero p{font-size:12px!important;line-height:1.42!important}
  body.pwa-standalone.pwa-screen-start .dash-hero-actions{gap:7px!important;margin-top:10px!important}
  body.pwa-standalone.pwa-screen-start .dash-kpi-grid,body.pwa-standalone.pwa-screen-start .client-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.pwa-standalone.pwa-screen-start .dash-kpi{min-height:78px!important;padding:10px!important;border-radius:15px!important;background:#0d121a!important;border:1px solid rgba(255,255,255,.055)!important}
  body.pwa-standalone.pwa-screen-start .dash-kpi-icon{width:31px!important;height:31px!important;flex-basis:31px!important;border-radius:10px!important}
  body.pwa-standalone.pwa-screen-start .dash-kpi strong{font-size:19px!important}
  body.pwa-standalone.pwa-screen-start .dash-panel{padding:12px!important}
  body.pwa-standalone.pwa-screen-start .dash-panel-head h2{font-size:14px!important}
  body.pwa-standalone.pwa-screen-start .client-order-row,body.pwa-standalone.pwa-screen-start .dash-timeline-row{border-radius:12px!important;background:#0b1017!important;border:1px solid rgba(255,255,255,.045)!important;margin:5px 0!important;padding:9px!important}

  /* Moje samochody / pojazdy — kompaktowe karty aplikacyjne. */
  body.pwa-standalone.pwa-screen-vehicles .client-fleet-hero,
  body.pwa-standalone.pwa-screen-vehicles .vehicle-hero{padding:14px!important;border-radius:20px!important;background:linear-gradient(145deg,#121923,#090d13)!important;border:1px solid rgba(255,255,255,.065)!important}
  body.pwa-standalone.pwa-screen-vehicles .client-car-grid,body.pwa-standalone.pwa-screen-vehicles .fleet-grid{gap:9px!important}
  body.pwa-standalone.pwa-screen-vehicles .client-car,body.pwa-standalone.pwa-screen-vehicles .vehicle-card{padding:12px!important;border-radius:17px!important}
  body.pwa-standalone.pwa-screen-vehicles .client-car-name,body.pwa-standalone.pwa-screen-vehicles .vehicle-name{font-size:15px!important}
  body.pwa-standalone.pwa-screen-vehicles .client-car-meta,body.pwa-standalone.pwa-screen-vehicles .vehicle-meta{font-size:11px!important}
  body.pwa-standalone.pwa-screen-vehicles .client-deadlines,body.pwa-standalone.pwa-screen-vehicles .vehicle-deadlines{gap:6px!important}
  body.pwa-standalone.pwa-screen-vehicles .client-deadline,body.pwa-standalone.pwa-screen-vehicles .deadline{padding:7px!important;border-radius:10px!important;font-size:10.5px!important}
  body.pwa-standalone .vehicle-history-box{width:calc(100vw - 16px)!important;max-height:calc(100dvh - 20px)!important;border-radius:20px!important;padding:12px!important}
  body.pwa-standalone .vehicle-history-item{border-radius:13px!important;background:#0b1017!important;padding:10px!important}

  /* Dokumenty — lista jak w aplikacji bankowej/serwisowej, edytor pozostaje funkcjonalny. */
  body.pwa-standalone.pwa-screen-documents .client-doc-hero{padding:14px!important;border-radius:20px!important}
  body.pwa-standalone.pwa-screen-documents .client-doc-grid{gap:8px!important}
  body.pwa-standalone.pwa-screen-documents .client-doc-card{padding:11px!important;border-radius:16px!important}
  body.pwa-standalone.pwa-screen-documents .client-doc-icon{width:36px!important;height:36px!important;border-radius:11px!important}
  body.pwa-standalone.pwa-screen-documents .client-doc-number{font-size:13px!important}
  body.pwa-standalone.pwa-screen-documents .client-doc-info{font-size:10.5px!important}
  body.pwa-standalone.pwa-screen-documents .client-doc-total{font-size:15px!important}
  body.pwa-standalone.pwa-screen-documents .document-editor{padding:12px!important}
  body.pwa-standalone.pwa-screen-documents .items-panel{padding:10px!important;border-radius:15px!important;background:#0b1017!important;border:1px solid rgba(255,255,255,.055)!important}
  body.pwa-standalone.pwa-screen-documents .item-row{border-radius:13px!important;background:#090d13!important}
  body.pwa-standalone.pwa-screen-documents .editor-summary{border-radius:15px!important;background:#0c1119!important;padding:11px!important}
  body.pwa-standalone.pwa-screen-documents .document-preview-wrap{border-radius:16px!important;overflow:auto!important}

  /* Powiadomienia — mniejsze, czytelne karty z wyraźnym stanem NOWE. */
  body.pwa-standalone.pwa-screen-notifications .notification-history-head{padding:2px 1px!important;align-items:flex-start!important}
  body.pwa-standalone.pwa-screen-notifications .notification-history-head h2{font-size:18px!important;margin:4px 0!important}
  body.pwa-standalone.pwa-screen-notifications .notification-history-head p{font-size:11px!important;margin:0!important}
  body.pwa-standalone.pwa-screen-notifications .notification-history-list{padding:8px!important;background:transparent!important;border:0!important;box-shadow:none!important;gap:7px!important}
  body.pwa-standalone.pwa-screen-notifications .notification-history-item{grid-template-columns:32px minmax(0,1fr)!important;padding:10px!important;gap:9px!important;border-radius:15px!important;background:#0d121a!important;border:1px solid rgba(255,255,255,.055)!important}
  body.pwa-standalone.pwa-screen-notifications .notification-history-item.unread{background:linear-gradient(145deg,rgba(239,32,41,.10),#0d121a 44%)!important;border-color:rgba(239,32,41,.20)!important}
  body.pwa-standalone.pwa-screen-notifications .notification-history-icon{width:31px!important;height:31px!important;border-radius:10px!important}
  body.pwa-standalone.pwa-screen-notifications .notification-history-copy strong{font-size:12.5px!important}
  body.pwa-standalone.pwa-screen-notifications .notification-history-copy p{font-size:11.5px!important;line-height:1.38!important}
  body.pwa-standalone.pwa-screen-notifications .notification-history-actions{grid-column:2!important;justify-content:flex-end!important}

  /* Sesje — urządzenia jako lista ustawień aplikacji. */
  body.pwa-standalone.pwa-screen-sessions .session-list{display:flex!important;flex-direction:column!important;gap:7px!important}
  body.pwa-standalone.pwa-screen-sessions .session-item{display:grid!important;grid-template-columns:36px minmax(0,1fr)!important;gap:9px!important;padding:11px!important;border-radius:15px!important;background:#0d121a!important;border:1px solid rgba(255,255,255,.055)!important}
  body.pwa-standalone.pwa-screen-sessions .session-item.current{border-color:rgba(49,214,148,.22)!important;background:linear-gradient(145deg,rgba(49,214,148,.07),#0d121a 46%)!important}
  body.pwa-standalone.pwa-screen-sessions .session-device-icon{width:34px!important;height:34px!important;border-radius:10px!important}
  body.pwa-standalone.pwa-screen-sessions .session-copy strong{font-size:12.5px!important}
  body.pwa-standalone.pwa-screen-sessions .session-copy p{font-size:10.8px!important;line-height:1.4!important}
  body.pwa-standalone.pwa-screen-sessions .session-item form{grid-column:2!important}

  /* Konto / ustawienia / security / role / użytkownicy — sekcje jak ustawienia natywnej aplikacji. */
  body.pwa-standalone.pwa-screen-settings .form-grid,
  body.pwa-standalone.pwa-screen-security .security-center-grid,
  body.pwa-standalone.pwa-screen-users .form-grid{gap:9px!important}
  body.pwa-standalone.pwa-screen-settings .card,
  body.pwa-standalone.pwa-screen-security .card,
  body.pwa-standalone.pwa-screen-users .admin-section-card,
  body.pwa-standalone.pwa-screen-roles .card,
  body.pwa-standalone.pwa-screen-api .card,
  body.pwa-standalone.pwa-screen-content .card,
  body.pwa-standalone.pwa-screen-audit .card{padding:13px!important;border-radius:18px!important}
  body.pwa-standalone .pwa-push-settings{border-radius:16px!important;background:linear-gradient(145deg,rgba(239,32,41,.09),#0d121a)!important;border:1px solid rgba(239,32,41,.17)!important;padding:12px!important}
  body.pwa-standalone .security-status,body.pwa-standalone .setting-toggle{border-radius:13px!important;background:#0b1017!important}
  body.pwa-standalone .chips{gap:6px!important}.pwa-standalone .chip{font-size:10.5px!important;padding:5px 7px!important}

  /* Admin: listy i formularze zachowują funkcje, ale są wizualnie aplikacyjne. */
  body.pwa-standalone.admin-area .admin-page-hero{padding:13px!important;border-radius:19px!important;background:linear-gradient(145deg,#121923,#090d13)!important;border:1px solid rgba(255,255,255,.06)!important}
  body.pwa-standalone.admin-area .admin-page-hero h2{font-size:18px!important}
  body.pwa-standalone.admin-area .mini-metrics-grid{gap:7px!important}
  body.pwa-standalone.admin-area .mini-metric{padding:9px!important;border-radius:13px!important;background:#0d121a!important}
  body.pwa-standalone.admin-area .table-wrap,body.pwa-standalone.admin-area .mobile-table-scroll{border-radius:15px!important;background:#090d13!important;border:1px solid rgba(255,255,255,.045)!important}
  body.pwa-standalone.admin-area .table td{background:#0b1017!important}

  /* Kalendarz zachowuje specjalny układ mobilny V129+, tylko otoczenie dopasowane do aplikacji. */
  body.pwa-standalone.pwa-screen-calendar .calendar-workspace{border-radius:18px!important;background:#090d13!important}
  body.pwa-standalone.pwa-screen-calendar .calendar-head{padding:11px!important;border-radius:16px!important;background:#0d121a!important}
  body.pwa-standalone.pwa-screen-calendar .calendar-help-strip{border-radius:12px!important;font-size:10.5px!important}

  /* Dolny pasek jest jedyną stałą nawigacją. Sam ekran „Więcej”/drawer pozostaje bez przebudowy. */
  body.pwa-standalone .pwa-bottom-nav{left:9px!important;right:9px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;border-radius:22px!important;padding:5px!important;background:rgba(10,14,20,.965)!important;border-color:rgba(255,255,255,.075)!important;box-shadow:0 18px 55px rgba(0,0,0,.52)!important}
  body.pwa-standalone .pwa-bottom-nav a,body.pwa-standalone .pwa-bottom-nav button{min-height:52px!important;border-radius:16px!important}
  body.pwa-standalone .pwa-bottom-nav a.active{background:linear-gradient(180deg,rgba(239,32,41,.16),rgba(239,32,41,.075))!important;color:#ff6972!important}
  body.pwa-standalone .pwa-bottom-nav small{font-size:8.5px!important}

  /* Modale i toasty nigdy nie blokują całego ekranu. */
  body.pwa-standalone .panel-notification-toast{top:calc(66px + env(safe-area-inset-top))!important;width:calc(100vw - 30px)!important;max-width:340px!important;border-radius:15px!important;padding:9px 10px!important}
  body.pwa-standalone .modal,body.pwa-standalone .dialog,body.pwa-standalone [role="dialog"]{border-radius:20px!important}
}

@media(max-width:390px){
  body.pwa-standalone .main{padding-left:9px!important;padding-right:9px!important}
  body.pwa-standalone.pwa-screen-start .dash-kpi{padding:8px!important}
  body.pwa-standalone .card,body.pwa-standalone .card.wide,body.pwa-standalone .card.full{padding:12px!important}
}


/* AUTODIL V138 — avatar/nazwa konta w pasku PWA. */
@media(max-width:900px){
  body.pwa-standalone .mobile-panel-bar{grid-template-columns:minmax(72px,1fr) minmax(52px,.65fr) 38px minmax(74px,auto)!important;gap:6px!important;padding-left:10px!important;padding-right:9px!important}
  body.pwa-standalone .mobile-panel-brand img{max-width:105px!important;height:23px!important}
  body.pwa-standalone .mobile-panel-title{grid-column:2!important;max-width:96px!important;font-size:9.5px!important;letter-spacing:.35px!important}
  body.pwa-standalone .pwa-app-bell{grid-column:3!important;width:36px!important;height:36px!important}
  body.pwa-standalone .pwa-app-user{grid-column:4!important;display:flex!important;align-items:center!important;justify-self:end!important;min-width:0!important;max-width:112px!important;gap:6px!important;color:#e9edf3!important;text-decoration:none!important;padding:3px 5px 3px 3px!important;border-radius:13px!important;background:#0e141c!important;border:1px solid rgba(255,255,255,.075)!important}
  body.pwa-standalone .pwa-app-user-avatar{display:grid!important;place-items:center!important;flex:0 0 30px!important;width:30px!important;height:30px!important;border-radius:10px!important;overflow:hidden!important;background:#171d27!important;color:#fff!important;font-size:11px!important;font-weight:900!important;text-decoration:none!important}
  body.pwa-standalone .pwa-app-user-avatar img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}
  body.pwa-standalone .pwa-app-user-name{display:block!important;min-width:0!important;max-width:68px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:9.5px!important;font-weight:850!important;line-height:1.15!important}
}
@media(max-width:365px){body.pwa-standalone .mobile-panel-title{display:none!important}body.pwa-standalone .mobile-panel-bar{grid-template-columns:minmax(80px,1fr) 38px minmax(78px,auto)!important}body.pwa-standalone .mobile-panel-brand{grid-column:1!important}body.pwa-standalone .pwa-app-bell{grid-column:2!important}body.pwa-standalone .pwa-app-user{grid-column:3!important}}

/* AUTODIL V146 — status warsztatu na mobilnym ekranie Start PWA. WWW i desktop bez zmian. */
.pwa-workshop-status{display:none}
@media(max-width:900px){
  body.pwa-standalone.pwa-screen-start .pwa-workshop-status{
    display:flex;align-items:center;gap:12px;min-height:65px;width:100%;min-width:0;
    padding:11px 15px;border-radius:16px;border:1px solid rgba(255,255,255,.075);
    background:linear-gradient(145deg,rgba(18,23,31,.96),rgba(7,10,15,.97));
    box-shadow:0 10px 28px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.04);
  }
  body.pwa-standalone.pwa-screen-start .pwa-workshop-status-dot{
    display:block;width:10px;height:10px;flex:0 0 10px;border-radius:50%;
    background:#ef3943;box-shadow:0 0 0 4px rgba(239,57,67,.08),0 0 14px rgba(239,57,67,.55);
  }
  body.pwa-standalone.pwa-screen-start .pwa-workshop-status.open .pwa-workshop-status-dot{
    background:#41e49a;box-shadow:0 0 0 4px rgba(65,228,154,.08),0 0 14px rgba(65,228,154,.6);
    animation:pwaWorkshopPulse 1.9s ease-in-out infinite;
  }
  body.pwa-standalone.pwa-screen-start .pwa-workshop-status-copy{display:grid;gap:4px;min-width:0;line-height:1.15}
  body.pwa-standalone.pwa-screen-start .pwa-workshop-status-copy strong{font-size:13px;font-weight:850;color:#f5f7f9;letter-spacing:.12px}
  body.pwa-standalone.pwa-screen-start .pwa-workshop-status-copy small{font-size:11px;font-weight:750;color:#94a0ae}
}
@keyframes pwaWorkshopPulse{0%,100%{opacity:1}50%{opacity:.65}}
@media(prefers-reduced-motion:reduce){.pwa-workshop-status.open .pwa-workshop-status-dot{animation:none!important}}

/* V149 — trzecia linia informuje o jutrzejszych godzinach. */
@media(max-width:900px){
 body.pwa-standalone.pwa-screen-start .pwa-workshop-status{min-height:82px}
 body.pwa-standalone.pwa-screen-start .pwa-workshop-status-copy .pwa-workshop-tomorrow{color:#cbd5e1;font-size:11px}
}

/* V155: historia dokumentów admina bez poziomego przewijania w aplikacji. */
@media(max-width:700px){
 body.pwa-standalone .docs-history-card{padding:12px!important;overflow:visible!important}
 body.pwa-standalone .docs-history-card>div[style*="overflow"]{overflow:visible!important}
 body.pwa-standalone .docs-history-table{min-width:0!important;width:100%!important;display:block!important}
 body.pwa-standalone .docs-history-table tbody{display:block!important}
 body.pwa-standalone .docs-history-table tr:first-child{display:none!important}
 body.pwa-standalone .docs-history-table tr:not(:first-child){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px;background:#101720;border:1px solid #2a3543;border-radius:13px;padding:9px;margin:0 0 9px!important}
 body.pwa-standalone .docs-history-table td{min-width:0!important;padding:3px!important;background:none!important;border:0!important;border-radius:0!important;overflow-wrap:anywhere;font-size:12px}
 body.pwa-standalone .docs-history-table td:before{content:attr(data-label);display:block;text-transform:uppercase;font-size:9px;color:#8492a4;letter-spacing:.3px;margin-bottom:3px}
 body.pwa-standalone .docs-history-table td:nth-child(2),body.pwa-standalone .docs-history-table td:last-child{grid-column:1/-1}
 body.pwa-standalone .docs-history-table td .btn{padding:7px 9px;font-size:11px;min-height:32px}
 body.pwa-standalone.pwa-screen-documents .client-doc-card{padding:10px!important}
 body.pwa-standalone.pwa-screen-documents .client-doc-stats{gap:5px}
 body.pwa-standalone.pwa-screen-documents .client-doc-stat{padding:7px!important;min-width:0!important}
 body.pwa-standalone.pwa-screen-documents .client-doc-info{padding:7px!important}
 body.pwa-standalone.pwa-screen-documents .client-doc-actions .btn{font-size:12px!important;padding:7px 8px!important}
}

/* V193 — ekran powodzenia logowania PWA bez jakiegokolwiek tła kafelka. */
@media(max-width:900px){
  body.app-auth.auth-success-state{margin:0!important;min-height:100vh!important;min-height:100dvh!important;padding:env(safe-area-inset-top,0px) 20px env(safe-area-inset-bottom,0px)!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden;background:#05070b!important}
  body.app-auth.auth-success-state:before{background:radial-gradient(circle at 50% 42%,rgba(25,57,49,.13),transparent 58%),#05070b!important;z-index:-1!important}
  body.app-auth.auth-success-state .auth{position:relative;width:100%!important;max-width:100%!important;min-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;margin:0!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;background:transparent!important}
  body.app-auth.auth-success-state .auth .auth-login-box.success-box{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;width:100%!important;max-width:360px!important;min-height:0!important;padding:0!important;margin:0 auto!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;outline:0!important}
  body.app-auth.auth-success-state .auth .success-box .logo{display:none!important}
  body.app-auth.auth-success-state .auth .success-modal-content{width:100%;max-width:340px;margin:0 auto!important;padding:0 4px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:center!important;animation:autodilSuccessReveal .46s ease-out both}
  body.app-auth.auth-success-state .auth .success-check{width:82px!important;height:82px!important;display:grid!important;place-items:center!important;margin:0 auto 25px!important;border-radius:50%!important;border:1px solid rgba(80,220,160,.3)!important;background:transparent!important;box-shadow:0 0 0 9px rgba(42,193,131,.045),0 0 35px rgba(48,215,147,.09)!important;animation:autodilSuccessPop .56s cubic-bezier(.2,.9,.2,1) both!important}
  body.app-auth.auth-success-state .auth .success-check span{color:#50e3a6!important;font-size:38px!important;line-height:1!important}
  body.app-auth.auth-success-state .auth .success-eyebrow{color:#5ce1aa!important;font-size:10px!important;font-weight:800!important;letter-spacing:2px!important;text-transform:uppercase}
  body.app-auth.auth-success-state .auth .success-modal-content h1{color:#f6f9fb!important;font-size:clamp(24px,7vw,29px)!important;font-weight:850!important;letter-spacing:-.6px!important;line-height:1.18!important;margin:12px auto 12px!important;text-align:center!important}
  body.app-auth.auth-success-state .auth .success-modal-content p{max-width:295px!important;margin:0 auto!important;color:#98a7b4!important;font-size:12.5px!important;line-height:1.7!important;text-align:center!important}
  body.app-auth.auth-success-state .auth .login-loader{position:relative!important;display:block!important;width:148px!important;max-width:60vw!important;height:3px!important;margin:31px auto 0!important;border:0!important;border-radius:10px!important;background:#293a3d!important;box-shadow:none!important;animation:none!important;overflow:hidden!important}
  body.app-auth.auth-success-state .auth .login-loader:after{content:"";position:absolute;inset:0 auto 0 0;width:38%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#238a67,#69ebbb);animation:autodilSuccessProgress 1.35s ease-in-out infinite}
}
@keyframes autodilSuccessReveal{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes autodilSuccessPop{from{opacity:0;transform:scale(.76)}to{opacity:1;transform:scale(1)}}
@keyframes autodilSuccessProgress{from{transform:translateX(-105%)}to{transform:translateX(375%)}}
@media(prefers-reduced-motion:reduce){body.app-auth.auth-success-state .auth .success-modal-content,body.app-auth.auth-success-state .auth .success-check,body.app-auth.auth-success-state .auth .login-loader:after{animation:none!important}}

/* V194: sukces logowania PWA bez kontenera; pozostaje ten sam komunikat i animacja V193. */
@media(max-width:900px){
 body.app-auth.auth-success-state .auth{height:100dvh!important;min-height:100dvh!important;display:flex!important;align-items:center!important;justify-content:center!important;background:transparent!important;padding:0!important}
 body.app-auth.auth-success-state .auth .auth-login-box.success-box{align-self:center!important;justify-self:center!important;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important}
 body.app-auth.auth-success-state .auth .success-modal-content{background:transparent!important;border:0!important;box-shadow:none!important;margin-inline:auto!important;text-align:center!important}
}
