@font-face{font-family:Manrope;src:url("assets/manrope-latin-ext.woff2") format("woff2");font-style:normal;font-weight:200 800;font-display:swap;unicode-range:U+0100-02FF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Manrope;src:url("assets/manrope-latin.woff2") format("woff2");font-style:normal;font-weight:200 800;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{color-scheme:light;--ink:#152824;--muted:#586863;--soft:#71807b;--line:#e3eae7;--surface:#fff;--bg:#f4f7f6;--brand:#0b6e5c;--deep:#123f38;--mint:#e5f3ed;--gold:#8c5510;--amber:#fff4e3;--red:#a33941;--rose:#fcecef;--radius:16px;font: 16px/1.55 Manrope,"Segoe UI",sans-serif}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink)}
[hidden]{display:none!important}
button,input,textarea,select{font:inherit}
button,select,summary{cursor:pointer}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
a{color:inherit;text-decoration:none}
button{color:inherit}
button:disabled{cursor:default;opacity:.5}
img{display:block;max-inline-size:100%}
:focus-visible{outline:3px solid #1b947d;outline-offset:3px}
h1,h2,h3,p{margin:0}
h1,h2,h3{line-height:1.18;letter-spacing:-.035em}
h1{font-size:clamp(1.8rem,3.2vw,2.65rem);font-weight:800}
h2{font-size:1.25rem;font-weight:800}
h3{font-size:1rem;font-weight:800}
small,.small{font-size:.8125rem}
.muted{color:var(--muted)}
.meta{color:var(--muted);font-size:.875rem}
.ph{font-size:1.2rem;flex:none}
.skip{position:fixed;top:8px;left:8px;z-index:20;background:#fff;padding:10px;transform:translateY(-150%)}
.skip:focus{transform:none}
.stack{display:grid;gap:16px}
.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.row.between{justify-content:space-between}
.cluster{display:flex;align-items:center;gap:10px;min-width:0}
.text-link{color:var(--brand);font-weight:800;font-size:.875rem}
.text-link:hover{text-decoration:underline;text-underline-offset:3px}
.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:8px 14px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-size:.875rem;font-weight:800;line-height:1.3;text-align:center}
.btn:hover{border-color:#a9c8bd;background:#f7fbf9}
.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}
.btn.primary:hover{background:#075949}
.btn.light{background:#e8fbef;border-color:#e8fbef;color:#15483c}
.btn.light:hover{background:#cbf1e0}
.btn.danger{color:var(--red)}
.btn .ph{font-size:1.125rem}
.icon-btn{display:grid;place-items:center;width:42px;height:42px;flex:none;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--muted)}
.icon-btn:hover,.icon-btn.is-saved{background:var(--mint);color:var(--brand);border-color:#c7dfd6}
.icon-btn.is-saved .ph::before{font-weight:800;text-shadow:0 0 .65px currentColor}
.tag{display:inline-flex;align-items:center;gap:5px;width:max-content;max-width:100%;padding:4px 8px;border-radius:6px;background:#ecf0ef;color:#435651;font-size:.8125rem;font-weight:800;line-height:1.35}
.tag.green{background:var(--mint);color:#17664f}
.tag.gold{background:var(--amber);color:var(--gold)}
.tag.red{background:var(--rose);color:var(--red)}
.tag.blue{background:#e9f0fa;color:#365985}
.tag .ph{font-size:.925rem}

.shell{min-height:100vh;min-width:0}
.sidebar{display:none}
.brand{display:inline-flex;align-items:center;gap:10px;width:max-content;color:#153b33}
.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#0e705d;color:#fff;box-shadow:0 3px 8px #0a5b4930}
.brand-mark .ph{font-size:1.45rem}
.brand-name{font-size:1.22rem;letter-spacing:-.065em;font-weight:800;line-height:1.1}
.brand-name>span{color:var(--brand)}
.brand-caption{display:block;margin-top:2px;font-size:.69rem;letter-spacing:.015em;color:var(--muted);font-weight:700}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding:10px 16px;background:#fff;border-bottom:1px solid var(--line)}
.topbar .crumb,.topbar .global-search,.topbar .user-text{display:none}
.top-actions{display:flex;align-items:center;gap:9px;min-width:0}
.top-actions .icon-btn{width:38px;height:38px;border-color:transparent}
.avatar{display:grid;place-items:center;width:36px;height:36px;border:none;border-radius:50%;background:#d8efdf;color:#20583e;font-size:.78rem;font-weight:800}
.avatar.operator{background:#e6ebf9;color:#384e85}
.user-menu{display:flex;align-items:center;gap:8px;padding:0;border:0;background:transparent;text-align:left}
.user-text strong,.user-text small{display:block;white-space:nowrap}
.user-text strong{font-size:.84rem}
.user-text small{font-size:.72rem;color:var(--muted)}
.mobile-nav{position:sticky;bottom:0;z-index:4;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:5px 3px calc(5px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);box-shadow:0 -4px 16px #163e3310}
.mobile-nav a{display:grid;justify-items:center;align-content:center;gap:3px;min-height:48px;padding:3px 1px;border-radius:8px;font-size:clamp(.625rem,2.8vw,.75rem);font-weight:800;color:var(--muted);text-align:center}
.mobile-nav a[aria-current]{background:var(--mint);color:var(--brand)}
.mobile-nav .ph{font-size:1.18rem}

.main{width:100%;max-width:1440px;margin-inline:auto;padding:22px 16px 34px;min-width:0}
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:19px}
.page-head p{margin-top:5px;color:var(--muted)}
.page-head .row{align-self:center}
.hero{position:relative;isolation:isolate;overflow:hidden;display:grid;align-items:center;min-height:222px;padding:23px 21px;border-radius:var(--radius);background:#0b3735;color:#fff}
.hero::before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,#0b3735 2%,#0b3735f0 37%,#0b373570 76%,#0b373515),url("assets/hospital.webp") right 47%/auto 148% no-repeat}
.hero-copy{max-width:34rem}
.hero h2{margin:7px 0 9px;font-size:clamp(1.5rem,3vw,2.1rem)}
.hero p{max-width:31rem;color:#d7ede7;font-size:.94rem}
.hero .btn{margin-top:15px}
.hero-kicker{display:inline-flex;align-items:center;gap:8px;font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#b6e4cf}
.dot{width:7px;height:7px;flex:none;border-radius:50%;background:#66d39a}
.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-block:16px 22px}
.stat{display:flex;align-items:flex-start;gap:8px;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:13px;padding:12px}
.stat .stat-icon,.feature-icon{display:grid;place-items:center;flex:none;width:37px;height:37px;border-radius:10px;background:var(--mint);color:var(--brand)}
.stat .stat-icon.blue{background:#e9f0fa;color:#3d6291}
.stat .stat-icon.gold{background:#fff3e2;color:#a36318}
.stat .stat-icon.violet{background:#f0ecfb;color:#7154a2}
.stat strong{display:block;font-size:1.45rem;letter-spacing:-.055em;line-height:1.12}
.stat a:hover{text-decoration:underline}
.stat .meta{display:block;margin-top:3px;font-weight:700;line-height:1.35}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.section-head p{margin-top:3px}
.dashboard-grid,.detail-grid,.two-col,.three-col{display:grid;gap:16px;align-items:start;min-width:0}
.panel,.notice{border:1px solid var(--line);border-radius:var(--radius);background:#fff;min-width:0}
.panel{padding:16px}
.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:15px}
.panel-head p{margin-top:3px}
.feed{display:grid;gap:9px;min-width:0}
.tabs{display:flex;align-items:center;gap:4px;overflow:auto;scrollbar-width:thin;max-width:100%;padding:3px;border-radius:10px;background:#eaf0ed;width:max-content}
.tabs button{border:0;background:transparent;border-radius:7px;min-height:39px;padding:6px 11px;color:var(--muted);font-weight:800;font-size:.875rem;white-space:nowrap}
.tabs button[aria-pressed=true]{background:#fff;color:var(--deep);box-shadow:0 1px 4px #163c3114}
.notice{padding:13px}
.notice-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:9px}
.notice h3{font-size:1rem;margin:6px 0 5px;letter-spacing:-.023em;line-height:1.3}
.notice h3 a:hover{color:var(--brand);text-decoration:underline;text-underline-offset:3px}
.notice p{font-size:.835rem;color:var(--muted)}
.notice .icon-btn{width:37px;height:37px}
.notice-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:9px;font-size:.8125rem;font-weight:700;color:var(--muted)}
.notice-foot span{display:inline-flex;align-items:center;gap:5px}
.notice-foot .ph{font-size:1rem}
.notice-foot .due{color:#825111}
.truncate{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.date-tile{display:grid;align-content:center;justify-items:center;flex:none;min-height:47px;min-width:42px;padding:4px;border-radius:8px;background:#edf4f0;color:var(--deep);line-height:1.07}
.date-tile strong{font-size:1.07rem}
.date-tile small{margin-top:3px;text-transform:uppercase;font-size:.625rem;font-weight:800}
.date-tile.urgent{background:var(--amber);color:var(--gold)}
.timeline{display:grid;gap:11px}
.timeline .event{display:flex;align-items:center;gap:9px;padding-top:11px;border-top:1px solid #eff2f0}
.timeline .event:first-child{padding-top:0;border-top:0}
.event-title{display:block;font-size:.85rem;font-weight:800;line-height:1.35}
.event-title:hover{color:var(--brand)}
.event .meta{font-size:.76rem}
.date-caption{font-size:.8125rem;color:#844e0f;font-weight:800}
.status-card{background:#eaf5ee;border:1px solid #dcece1}
.status-card p{margin-top:7px;font-size:.875rem;color:#3d5b50}
.status-card .text-link{display:inline-block;margin-top:10px}
.empty{display:grid;justify-items:center;gap:8px;padding:28px 14px;border:1px dashed #c7d7d0;border-radius:12px;background:#fbfdfc;text-align:center}
.empty .ph{font-size:1.7rem;color:var(--brand)}
.empty p{max-width:35ch}
.filters{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-bottom:14px}
.field{display:grid;gap:6px;font-size:.875rem;font-weight:800;min-width:0}
.field input:not([type=checkbox],[type=radio]),.field select,.field textarea,.input{width:100%;min-width:0;min-height:42px;border:1px solid #d7e3de;border-radius:8px;background:#fff;color:var(--ink);padding:8px 10px;font-size:.9375rem;font-weight:600}
.field textarea{min-height:100px;resize:vertical}
.field small{color:var(--muted);font-weight:500}
select{appearance:none;padding-right:30px!important;background-image:url("assets/chevron.png")!important;background-repeat:no-repeat!important;background-position:right 10px center!important}
.check{display:flex;align-items:center;gap:9px;line-height:1.4;font-weight:650;font-size:.93rem}
.check input{width:17px;height:17px;accent-color:var(--brand);flex:none;margin:0}
.searchbox{display:flex;align-items:center;gap:8px;border-radius:9px;border:1px solid #dbe5e0;background:#fff;padding:0 11px;min-height:42px;color:var(--muted);min-width:0}
.searchbox input{border:0;outline:none;background:transparent;color:var(--ink);min-width:0;width:100%;padding:8px 0;font-size:.875rem}
.searchbox:focus-within{outline:2px solid var(--brand);outline-offset:1px}
.searchbox:focus-within input:focus{outline:0}
.filter-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.detail-title{padding:19px}
.detail-title h1{margin:9px 0;font-size:clamp(1.65rem,3.2vw,2.5rem)}
.definition{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:8px 0 0}
.definition dt{color:var(--muted);font-size:.81rem}
.definition dd{margin:0;font-weight:800;font-size:.95rem;overflow-wrap:anywhere}
.detail-copy{display:grid;gap:12px}
.detail-copy p,.detail-copy li{color:#364d45}
mark{background:#d9f2e7;color:#175b48;padding:0 2px;border-radius:3px}
.card-title{display:flex;align-items:center;gap:9px;font-size:1rem}
.card-title .ph{color:var(--brand)}
.line-list{display:grid;gap:0;margin:0;padding:0;list-style:none}
.line-list>li{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:11px 0;border-bottom:1px solid var(--line)}
.line-list>li:last-child{border-bottom:0;padding-bottom:0}
.form-layout{display:grid;gap:14px}
.fields{display:grid;gap:12px}
fieldset{padding:0;margin:0;border:0;min-width:0}
legend{padding:0;margin-bottom:8px;font-weight:800}
.selection{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;margin-bottom:13px}
.toolbar .searchbox{flex:1 1 180px;max-width:410px}
.record{display:grid;gap:9px;padding:13px 0;border-top:1px solid var(--line)}
.record h3{overflow-wrap:anywhere}
.record .row .btn{min-height:36px}
.bar-track{height:7px;background:#e6eeea;border-radius:5px;overflow:hidden}
.bar-fill{height:100%;background:#29876d;border-radius:5px}
.progress-label{display:flex;justify-content:space-between;gap:12px;font-size:.875rem;font-weight:800}
.chart{display:grid;grid-template-columns:repeat(7,1fr);align-items:end;gap:8px;padding-top:8px}
.chart div{display:grid;justify-items:center;align-items:end;gap:5px}
.chart .bar{width:100%;max-width:43px;height:var(--height);background:#cfe9df;border-radius:7px 7px 2px 2px}
.chart div:last-child .bar{background:#27836b}
.chart small{font-size:.75rem;color:var(--muted)}
.account-head{display:grid;gap:10px}
.account-head .tag{align-self:start}

dialog{border:1px solid var(--line);border-radius:18px;padding:0;color:var(--ink);background:#fff;box-shadow:0 22px 90px #0f3e3450;width:min(540px,calc(100% - 22px));max-height:calc(100% - 32px)}
dialog::backdrop{background:#102d26a0;backdrop-filter:blur(2px)}
.dialog-inner{padding:18px}
.dialog-inner .section-head{margin-bottom:15px}
.dialog-inner .section-head h2{max-width:calc(100% - 52px)}
.toast{position:fixed;bottom:78px;right:13px;z-index:9;max-width:calc(100% - 26px);padding:11px 15px;border-radius:11px;background:#134c3e;color:#fff;box-shadow:0 5px 22px #163b3340;font-size:.9rem;font-weight:800}
.toast:empty{display:none}
.wrap-anywhere{overflow-wrap:anywhere}

.public{background:#f8faf9;min-height:100vh}
.public-inner{max-width:1200px;margin-inline:auto;padding-inline:16px}
.public-header{border-bottom:1px solid var(--line);background:#fff}
.public-header>.public-inner{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.public-nav{display:none}
.public-hero{margin-top:19px;padding:27px 19px;min-height:420px}
.public-hero h1{margin:7px 0 12px;color:#fff;font-weight:800;font-size:clamp(2.35rem,6vw,4.65rem);max-width:12ch;line-height:1.02;letter-spacing:-.065em}
.public-hero p{font-size:1.05rem;max-width:31ch}
.public-hero .row{margin-top:13px}
.public-hero .btn{margin-top:0}
.public-hero .btn.ghost{border-color:#b6e4cf80;color:#fff;background:#0b373590}
.public-block{padding-block:28px}
.public-block h2{font-size:clamp(1.5rem,3vw,2.2rem);margin-bottom:14px}
.feature-icon{margin-bottom:9px}
.feature p{margin-top:6px;color:var(--muted)}
.public-footer{padding-block:20px;border-top:1px solid var(--line)}
.public-footer .row{gap:12px 18px}
.print-report{display:none}

@media (min-width:560px){
  .panel,.notice{padding:16px}
  .fields,.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}
  .record{grid-template-columns:minmax(0,1fr) auto;align-items:center}
  .filters .fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stat{flex-direction:row;align-items:center;gap:11px;padding:13px}
  .definition{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (min-width:760px){
  .main{padding:24px 24px 36px}
  .stats{grid-template-columns:repeat(4,minmax(0,1fr))}
  .three-col{grid-template-columns:repeat(3,minmax(0,1fr))}
  .public-inner{padding-inline:27px}
  .public-nav{display:flex;gap:18px;color:var(--muted);font-size:.9rem;font-weight:800}
  .public-hero{margin-top:26px;padding:46px}
  .public-hero::before{background-size:auto,auto 149%}
}
@media (min-width:990px){
  .shell{display:grid;grid-template-columns:228px minmax(0,1fr);grid-template-rows:66px minmax(0,1fr)}
  .sidebar{grid-row:1 / -1;display:flex;position:sticky;top:0;align-self:start;flex-direction:column;height:100vh;min-height:0;overflow:auto;background:#fff;border-right:1px solid var(--line);padding:19px 14px 15px}
  .sidebar .brand{margin:0 7px 29px}
  .sidebar nav{display:grid;gap:3px}
  .nav-heading{padding:0 10px;margin:18px 0 5px;color:#697a73;font-weight:800;font-size:.67rem;letter-spacing:.09em;text-transform:uppercase}
  .nav-heading:first-child{margin-top:0}
  .nav-link{display:flex;align-items:center;gap:10px;padding:8px 10px;min-height:40px;border-radius:8px;color:#465d54;font-size:.875rem;font-weight:750}
  .nav-link:hover,.nav-link[aria-current]{background:#e7f2ec;color:#155e4c}
  .nav-link[aria-current]{font-weight:800}
  .nav-number{margin-left:auto;font-size:.75rem}
  .sidebar-bottom{display:grid;gap:5px;margin-top:auto;padding-top:22px}
  .workspace-note{display:flex;align-items:center;gap:8px;padding:11px 8px 0;margin-top:7px;border-top:1px solid var(--line);color:var(--muted);font-size:.75rem;font-weight:700}
  .workspace-note .dot{height:6px;width:6px;background:#36946d}
  .mobile-nav,.topbar .brand{display:none}
  .topbar{grid-column:2;padding-inline:25px}
  .topbar .crumb{display:flex;align-items:center;gap:7px;font-weight:800;font-size:.875rem}
  .crumb .ph{font-size:1rem;color:var(--muted)}
  .topbar .global-search{display:flex;align-items:center;gap:10px;justify-content:flex-start;width:clamp(175px,22vw,265px);min-height:38px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:#f9fbfa;color:var(--muted);font-size:.83rem;text-align:left}
  kbd{margin-left:auto;padding:0 4px;border:1px solid var(--line);border-radius:4px;background:white;font:700 .6875rem/1.5 Manrope,sans-serif;color:#61736d}
  .topbar .user-text{display:block}
  .top-actions{gap:11px}
  .main{grid-column:2;padding-inline:25px}
  .hero{min-height:206px;padding:23px 27px}
  .hero::before{background:linear-gradient(90deg,#0b3735 2%,#0b3735 37%,#0b373580 63%,#0b37351c),url("assets/hospital.webp") right 46%/auto 181% no-repeat}
  .dashboard-grid{grid-template-columns:minmax(0,2.13fr) minmax(244px,1fr)}
  .detail-grid{grid-template-columns:minmax(0,1.7fr) minmax(250px,1fr)}
  .toast{bottom:18px;right:21px}
  .public-hero{min-height:485px;padding:52px}
  .public-hero::before{background-size:auto,auto 139%}
}
@media (min-width:1250px){
  .shell{grid-template-columns:240px minmax(0,1fr)}
  .sidebar{padding-inline:18px}
  .topbar,.main{padding-inline:32px}
  .hero{min-height:209px;padding-inline:32px}
  .stats{gap:12px}
  .stat{padding:15px}
  .dashboard-grid,.detail-grid{gap:18px}
  .panel{padding:17px}
  .notice{padding:13px 15px}
  .filters .fields{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media print{
  .shell,.public,dialog,.toast,.skip{display:none!important}
  .print-report{display:block}
  .print-report article{break-inside:avoid;border-bottom:1px solid #bbb;padding:13px 0}
}
@media (prefers-reduced-motion:no-preference){
  .btn,.icon-btn,.nav-link{transition:background-color .15s,border-color .15s,color .15s}
}


.form-message{margin-top:10px;color:var(--red);font-size:.9rem;font-weight:800}.form-message:empty{display:none}.main:focus,.public-inner:focus{outline:none}.feature+.feature{margin-top:10px}@media (min-width:760px){.feature+.feature{margin-top:0}}

.public-block { scroll-margin-top: 88px; }

/* Strony wejścia: panel z hasłem przewodnim + karta z formularzem */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin: 32px 0 48px; align-items: stretch; }
.auth-side { display: flex; align-items: flex-end; min-height: 420px; }
.auth-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.auth-points li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.auth-card { background: var(--surface, #fff); border: 1px solid var(--line, #dbe3e1); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; align-self: center; }
.auth-card h1 { font-size: 28px; margin: 0; }
.auth-desc { margin: -6px 0 4px; }
.auth-block { display: grid; gap: 12px; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted, #51605e); margin: 2px 0; font-size: 14px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--line, #dbe3e1); }
.auth-details summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.auth-details[open] summary { margin-bottom: 8px; }
.auth-foot { margin-top: 6px; }
@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; margin-top: 16px; }
  .auth-side { display: none; }
  .auth-card { padding: 20px; }
}

/* Liczby na żywo na stronie tytułowej */
.live-stats { margin: 28px 0 8px; }
.live-caption { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8125rem; font-weight: 800; margin: 0 0 12px; }
.live-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.live-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.live-stat strong { font-size: clamp(1.625rem, 3.2vw, 2.375rem); line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--deep); letter-spacing: -.02em; }
.live-stat span { color: var(--muted); font-size: .8125rem; font-weight: 700; line-height: 1.35; }
@media (max-width: 860px) { .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .live-stat:last-child { grid-column: 1 / -1; } }

/* Pole hasła z „okiem” */
.pw { position: relative; display: block; }
.pw input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; }
.pw-toggle:hover { color: var(--ink); background: var(--mint); }

/* Liczby na stronie tytułowej: pulsują, zanim dotrą dane */
.live-stats.loading .live-stat strong { animation: live-pulse 1s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { opacity: .25; } 50% { opacity: .7; } }

/* Przycisk w trakcie pracy (zapis profilu, propozycja z linku): kółko zamiast zawieszonego ekranu */
.spinner{display:inline-block;width:1em;height:1em;margin-right:.55em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-.15em;animation:spin .75s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.btn[aria-busy=true]{cursor:progress}
/* kółko ładowania obraca się zawsze (to sygnał, że aplikacja pracuje); przy ograniczeniu ruchu tylko wolniej */
@media (prefers-reduced-motion:reduce){.spinner{animation-duration:1.6s}}

/* Podpowiedź w profilu: co naprawdę działa (własne frazy zastępują dziedziny) */
.preset-warn{margin:6px 0 0;padding:10px 12px;border-radius:10px;background:#fff6e0;border:1px solid #f0d9a0;color:#6b4a00;font-size:.875rem;line-height:1.45}
.preset-warn[hidden]{display:none}
@media (prefers-color-scheme:dark){.preset-warn{background:#3a2f12;border-color:#5c4a1a;color:#f3deaa}}

/* Pasek oceny dopasowania AI */
.fit-bar{height:8px;border-radius:999px;background:#e3ebe7;overflow:hidden;margin-top:8px}
.fit-bar span{display:block;height:100%;border-radius:999px;background:var(--brand,#0f6b57)}
@media (prefers-color-scheme:dark){.fit-bar{background:#26382f}}

.more-filters > summary { cursor: pointer; font-weight: 600; padding: 10px 0; list-style: none; }
.more-filters > summary::-webkit-details-marker { display: none; }
.more-filters > summary::after { content: " ▾"; }
.more-filters[open] > summary::after { content: " ▴"; }
@media (min-width: 720px) { .more-filters > summary { display: none; } }
