/* 0.2.253: panel kierowcy i panel firmy w nowym wyglądzie (jak strona: granat #0B1F2A, mięta #00D1A0).
 * Tylko wygląd: te same elementy, odnośniki i funkcje. Od 0.2.255 także panel SUPER ADMINA. */
html[data-ddd-theme]{--pv-side-active:#123847;--pv-shadow:0 1px 2px #0b1f2a0a,0 8px 24px -16px #0b1f2a26;--pv-r:18px}
html[data-ddd-theme=dark]{--pv-shadow:0 1px 2px #0000002e,0 10px 28px -18px #00000080}

/* Pasek boczny */
html[data-ddd-theme] .shell .side{background:radial-gradient(ellipse at 0 85%,#10364866,transparent 55%),linear-gradient(170deg,#0B2431,#061A24)}
html[data-ddd-theme] .shell .side nav a{border-radius:9px;color:#C9DCE4;font-weight:500;transition:background .15s,color .15s}
html[data-ddd-theme] .shell .side nav a svg{opacity:.85}
html[data-ddd-theme] .shell .side nav a:hover{background:#0F3040;color:#fff}
html[data-ddd-theme] .shell .side nav a[aria-current=page]{background:var(--pv-side-active);border-color:transparent;color:#fff;box-shadow:inset 2px 0 0 #00D1A0;font-weight:600}
html[data-ddd-theme] .shell .side nav a[aria-current=page] svg{opacity:1;color:#00D1A0}
html[data-ddd-theme] .shell .side nav .grp{color:#7F9FAD;letter-spacing:.14em;text-transform:uppercase}
html[data-ddd-theme] .shell .side .side-upload{border-radius:999px;box-shadow:0 10px 24px -12px #00D1A0aa}
html[data-ddd-theme] .shell .side .orgsw{border-radius:14px}

/* Górny pasek */
html[data-ddd-theme] .shell .topbar{background:color-mix(in srgb,var(--bg) 90%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}

/* Nagłówki stron */
html[data-ddd-theme] .shell .content .ph h1{font-size:clamp(1.6rem,2.3vw,2rem);letter-spacing:-.035em;line-height:1.12}
html[data-ddd-theme] .shell .content .ph .sub{color:var(--muted)}
html[data-ddd-theme] .shell .content .eyebrow{letter-spacing:.14em}

/* Karty i kafelki */
html[data-ddd-theme] .shell .content :is(.panel,.admin-metric-tile,.admin-shortcut-tile,.admin-attention-panel,.dd-step,.sd-history,.calendar-card){border-radius:var(--pv-r);box-shadow:var(--pv-shadow)}
html[data-ddd-theme] .shell .content .empty-state{border-radius:var(--pv-r)}
html[data-ddd-theme] .shell .content :is(.admin-metric-tile,.admin-shortcut-tile){transition:transform .2s,box-shadow .2s,border-color .2s}
html[data-ddd-theme] .shell .content :is(.admin-metric-tile,.admin-shortcut-tile):hover{transform:translateY(-2px);border-color:color-mix(in srgb,#00D1A0 55%,var(--line));box-shadow:0 14px 30px -18px #0b1f2a40}
html[data-ddd-theme] .shell .content .admin-metric-tile strong{font-family:var(--f-mono);font-weight:500;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
html[data-ddd-theme] .shell.fp-shell .content .admin-metric-tile:has(.tone-red){border-color:color-mix(in srgb,var(--violation) 45%,var(--line))}
html[data-ddd-theme] .shell .content .admin-metric-icon{border-radius:12px}

/* Przyciski: pigułki jak na stronie */
html[data-ddd-theme] .shell .content .btn{border-radius:999px}
html[data-ddd-theme] .shell .content .btn.primary{box-shadow:0 10px 22px -14px #00D1A0}

/* Zakładki sekcji */
html[data-ddd-theme] .shell .content .section-tabs a[aria-current=page],html[data-ddd-theme] .shell .content .section-tabs a.active{border-bottom-color:#00D1A0;color:var(--ink)}

/* Wgrywanie pliku */
html[data-ddd-theme] .shell .content .dropzone{border-radius:var(--pv-r)}

@media (prefers-reduced-motion:reduce){html[data-ddd-theme] .shell .content :is(.admin-metric-tile,.admin-shortcut-tile):hover{transform:none}}

/* 0.2.255: dopracowanie paneli */
html[data-ddd-theme] .shell .content :where(.eyebrow){font-family:var(--f-body);font-weight:650;font-size:.72rem;letter-spacing:.14em;gap:10px;color:#096E59}
html[data-ddd-theme=dark] .shell .content :where(.eyebrow){color:#70E9CC}
html[data-ddd-theme] .shell .content .eyebrow::before{width:18px;height:2px;border-radius:2px;background:#00D1A0;box-shadow:none}
html[data-ddd-theme] .shell .content .admin-metric-tile.is-text strong{font-family:var(--f-display);font-weight:700;letter-spacing:-.03em;font-size:clamp(1.2rem,1.7vw,1.55rem);line-height:1.25}
html[data-ddd-theme] .shell .content .admin-metric-tile.tone-red{border-color:color-mix(in srgb,var(--violation) 45%,var(--line))}
html[data-ddd-theme] .shell .content .admin-metric-tile.tone-red strong{color:var(--bad)}
html[data-ddd-theme] .shell .content .admin-metric-tile.tone-amber strong{color:var(--warn)}
html[data-ddd-theme] .shell .content .dd-head{align-items:end}
html[data-ddd-theme] .shell .content .dd-head .dd-actions{flex:none}
html[data-ddd-theme] .shell .content .dd-head .btn svg,html[data-ddd-theme] .shell .content .dd-last-result .btn svg{width:17px;height:17px}
html[data-ddd-theme] .shell .content .dd-last-result{background:linear-gradient(135deg,color-mix(in srgb,#00D1A0 9%,var(--panel)),var(--panel) 60%);border-color:color-mix(in srgb,#00D1A0 30%,var(--line))}
html[data-ddd-theme] .shell .content .dd-last-result h2{font-size:clamp(1.3rem,2vw,1.7rem);letter-spacing:-.03em}
@media (max-width:700px){
 html[data-ddd-theme] .shell .content .dd-head .dd-actions{width:100%}
 html[data-ddd-theme] .shell .content .dd-head .dd-actions .btn{flex:1 1 0;justify-content:center}
 html[data-ddd-theme] .shell .content .sd-summary .admin-metric-tile.is-text{grid-column:1/-1}
}

/* 0.2.256: strona wyniku analizy – porządek bloków */
html[data-ddd-theme] .shell .content .analysis-trust-note{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:baseline;padding:14px 18px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--muted);font-size:.9rem}
html[data-ddd-theme] .shell .content .analysis-trust-note b{color:var(--ink)}
html[data-ddd-theme] .shell .content .dec-top{background:var(--panel);border:1px solid var(--line);border-radius:var(--pv-r);padding:18px 20px;box-shadow:var(--pv-shadow);gap:12px;margin-top:16px}
html[data-ddd-theme] .shell .content .dec-top .bar{border-bottom:0;padding-block:4px 0}
html[data-ddd-theme] .shell .content .dec-top .bar .settings{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px 18px}
html[data-ddd-theme] .shell .content .dec-top .bar .settings label{grid-template-columns:minmax(0,1fr);gap:6px;font-size:.8rem;font-weight:600;color:var(--muted)}
html[data-ddd-theme] .shell .content .dec-top .bar .settings label select{max-width:none;font-weight:500;color:var(--ink)}
html[data-ddd-theme] .shell .content .dec-top .bar .settings .note{grid-column:1/-1;font-size:.82rem}
html[data-ddd-theme] .shell .content .dec-top .period{border-top:1px solid var(--line);padding-top:12px}
html[data-ddd-theme] .shell .content #main details>summary,html[data-ddd-theme] .shell .content #driver-results details>summary{cursor:pointer;font-weight:600;padding-block:3px}
html[data-ddd-theme] .shell .content #main details>summary::marker,html[data-ddd-theme] .shell .content #driver-results details>summary::marker{color:#00D1A0}
html[data-ddd-theme] .shell .content nav.tabs#tabs{scrollbar-width:thin}

/* 0.2.257: gotowość do sprzedaży – telefon i formularze */
/* Pasek działań na zaznaczonych plikach: na telefonie zwarty i przyklejony do dołu tylko, gdy coś jest zaznaczone */
@media (max-width:650px){
 html[data-ddd-theme] .shell .content .sel-toolbar{position:static;box-shadow:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px}
 html[data-ddd-theme] .shell .content .sel-toolbar>:is(.sel-all,.sel-count){grid-column:auto;margin:0;align-self:center}
 html[data-ddd-theme] .shell .content .sel-toolbar .sel-count{justify-self:end}
 html[data-ddd-theme] .shell .content .sel-toolbar .sel-all{white-space:nowrap}
 html[data-ddd-theme] .shell .content .sel-toolbar .btn{width:100%;justify-content:center;min-height:42px;padding-inline:10px;font-size:.8rem}
 html[data-ddd-theme] .shell .content .sel-toolbar .btn:last-child:nth-child(odd){grid-column:1/-1}
 html[data-ddd-theme] .shell .content .has-selection .sel-toolbar{position:sticky;bottom:calc(8px + env(safe-area-inset-bottom,0px));z-index:5;box-shadow:0 10px 28px -10px #0b1f2a59}
 html[data-ddd-theme] .shell .content .sel-toolbar .btn:disabled{opacity:.5}
}
/* Filtry naruszeń: wybór danych w pierwszym wierszu, okres w drugim */
html[data-ddd-theme] .shell .content #flt .flt-break{flex-basis:100%;height:0}
html[data-ddd-theme] .shell .content #flt .seg-toggle .segl[aria-pressed=true]{background:var(--pv-side-active);color:#fff}
html[data-ddd-theme=dark] .shell .content #flt .seg-toggle .segl[aria-pressed=true]{background:#00D1A0;color:#06202A}
@media (max-width:650px){html[data-ddd-theme] .shell .content #flt>select,html[data-ddd-theme] .shell .content #flt>.lbl-inline{flex:1 1 100%}html[data-ddd-theme] .shell .content #flt>.lbl-inline input{flex:1}}
/* Informacja o fakturze przy zakupie: wyraźna ramka nad polem „Chcę fakturę” */
html[data-ddd-theme] .shell .content [data-invoice-switch]{margin:16px 0 8px;padding:10px 14px;border-left:3px solid #00D1A0;border-radius:10px;background:color-mix(in srgb,#00D1A0 7%,var(--panel));font-size:.86rem;line-height:1.5}
