/* =========================================================
   rate.base.css — UNIVERSAL (GREY UI) — OLD LAYOUT RETURN (BETTER LOOK)
   - mobile: rounded panels (like screenshot #1/#2), not full-bleed
   - desktop: “stary układ” z panelem na boku (sidebar z segTabs)
   - zapisz/anuluj: jak na screenach (duże, 2 przyciski obok)
   - szare UI (kolory per-app w rate.*.css)
========================================================= */

:root{
  --bg:#0b0d10;
  --panel:#12161c;
  --panel2:#0f1318;
  --card:#151a21;

  --text:#ffffff;
  --muted:#9aa3b2;

  --app:#9aa3b2; /* kolor akcentu zostaje szary w base; app override w rate.wolt.css */

  --line: rgba(255,255,255,.10);
  --line2: rgba(255,255,255,.14);

  --shadow: 0 18px 70px rgba(0,0,0,.55);
  --shadow2: 0 12px 40px rgba(0,0,0,.22);

  --r1: 16px;
  --r2: 22px;
  --r3: 26px;

  --ok:#22c55e;
  --warn:#fbbf24;
  --bad:#ef4444;

  --appbarH: 60px;
  --pad: 16px;

  --safeBottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  --safeLeft: env(safe-area-inset-left, 0px);
  --safeRight: env(safe-area-inset-right, 0px);

  /* mobile bottom nav (FIX skakania + brak przezroczystości) */
  --srNavH: 64px;

  /* desktop sidebar */
  --srSideW: 240px;
  --srSideGap: 18px;
}

/* reset */
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 650px at 50% -250px, rgba(255,255,255,.06), transparent 60%), var(--bg);
  min-height:100svh;
  overflow-x:hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{ color: rgba(255,255,255,.92); text-underline-offset:3px; }
a:hover{ opacity:.92; }
img{ max-width:100%; height:auto; }
.hidden{ display:none !important; }

/* container */
.container{
  width:100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
@media (max-width: 860px){
  .container{
    max-width: 100%;
    padding: 0 12px; /* WRACA padding na mobile (round look) */
  }
}

/* =========================================================
   TOPBAR
========================================================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 80;
  height: calc(var(--appbarH) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(10,12,16,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .container{
  height: var(--appbarH);
  display:flex;
  align-items:center;
  gap: 10px;
  padding-left: calc(var(--safeLeft) + 12px);
  padding-right: calc(var(--safeRight) + 12px);
}
@media (max-width: 860px){
  .topbar .container{
    padding-left: calc(var(--safeLeft) + 6px);
    padding-right: calc(var(--safeRight) + 6px);
  }
}

.appMark{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 0;
}
.logo{ width: 26px; height: 26px; display:block; }
.appTitleStack{ display:flex; flex-direction:column; gap: 2px; min-width: 0; }
.appTitle{
  font-weight: 800;
  letter-spacing: -.01em;
  font-size: 14px;
  line-height: 1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.appSubtitle{
  font-weight: 700;
  font-size: 11px;
  color: rgba(154,163,178,.95);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.topActions{ margin-left:auto; display:flex; align-items:center; gap:8px; }

/* ikonowe */
.iconBtn{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  color: rgba(255,255,255,.92);
  display:grid;
  place-items:center;
  cursor:pointer;
  font-weight: 800;
}
.iconBtn:hover{ border-color: rgba(255,255,255,.16); }
.iconBtn:focus{
  outline:none;
  box-shadow: 0 0 0 3px rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}

/* buttony */
.btn{
  border-radius: 14px;
  padding: 10px 12px;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  color: rgba(255,255,255,.92);
  font-weight: 800;
  font-size: 12px;
  cursor:pointer;
  white-space: nowrap;
}
.btn:hover{ border-color: rgba(255,255,255,.16); }
.btn:focus{
  outline:none;
  box-shadow: 0 0 0 3px rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}
.btn.primary{
  border: 0;
  color:#070a10;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
}
.btn.ghost{ background: rgba(255,255,255,.06); }

.srMobileOnly{ display:none !important; }
.srDesktopOnly{ display:inline-flex !important; }
@media (max-width: 860px){
  .srDesktopOnly{ display:none !important; }
  .srMobileOnly{ display:grid !important; }
}

/* =========================================================
   NAWIGACJA (segTabs)
   - mobile: FIXED BOTTOM (NIEPRZEZROCZYSTE + bez “skakania”)
   - desktop: panel na boku (stary układ)
========================================================= */
.segTabsWrap{
  position: sticky;
  top: calc(var(--appbarH) + env(safe-area-inset-top, 0px));
  z-index: 70;
  background: rgba(10,12,16,.86);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.segTabs{
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px var(--pad);
  display:flex;
  gap: 8px;
  overflow:auto;
  scrollbar-width: none;
  align-items: stretch;
}
.segTabs::-webkit-scrollbar{ display:none; }

.segBtn{
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(238,242,255,.92);

  /* FIX: stała wysokość -> zero skakania */
  height: 44px;
  padding: 0 12px;
  line-height: 1;

  cursor:pointer;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex: 0 0 auto;
}
.segBtn:hover{ border-color: rgba(255,255,255,.16); }
.segBtn.active{
  border-color: rgba(255,255,255,.22);
  background: rgba(34,197,94,.10); /* delikatnie “aktywny” bez kolorów app */
  color: rgba(238,242,255,.95);
  box-shadow: inset 0 0 0 1px rgba(34,197,94,.10);
}
.segBtn:focus{
  outline:none;
  box-shadow: 0 0 0 3px rgba(255,255,255,.10);
}

/* ===== MOBILE: NA DOLE, nieprzezroczyste, stała wysokość ===== */
@media (max-width: 860px){
  .segTabsWrap{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;

    /* NIEPRZEZROCZYSTE */
    background: #0c1016;                 /* pełny kolor */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-top: 1px solid rgba(255,255,255,.10);
    border-bottom: 0;

    z-index: 120;
  }

  .segTabs{
    max-width: 1120px;
    margin: 0 auto;

    /* stały “blok” wysokości + safe area */
    padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 10px);

    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  /* ważne: niech content NIE wchodzi pod dolny panel */
  .appMain{
    padding-bottom: calc(18px + var(--srNavH) + env(safe-area-inset-bottom, 0px));
  }
}

/* ===== DESKTOP SIDEBAR (stary układ jak screen #7) ===== */
@media (min-width: 861px){
  .segTabsWrap{
    position: fixed;
    left: max(12px, calc(50% - 560px));
    top: calc(var(--appbarH) + env(safe-area-inset-top, 0px) + 18px);
    width: var(--srSideW);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--r3);
    background: rgba(12,16,22,.92);
    box-shadow: var(--shadow2);
    padding: 12px;
    z-index: 60;
  }
  .segTabs{
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    display:flex;
    flex-direction: column;
    gap: 10px;
  }
  .segBtn{
    width: 100%;
    justify-content: flex-start;
    border-radius: 18px;
    padding: 0 12px;
    height: 46px; /* desktop stabilniej */
    background: rgba(255,255,255,.03);
  }
  .segBtn.active{
    background: rgba(34,197,94,.12);
    border-color: rgba(34,197,94,.22);
  }

  /* content odsunięty od sidebar */
  .appMain{
    padding-left: calc(var(--srSideW) + var(--srSideGap));
  }
}

/* =========================================================
   MAIN
========================================================= */
.appMain{
  padding-top: 12px;
  padding-bottom: 18px;
}

/* =========================================================
   HERO (KPI) — round + clean like screenshot
========================================================= */
.hero{
  margin-top: 12px;
  border-radius: var(--r3);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow2);
  padding: 16px;
}
.heroTitle{
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.02em;
  line-height: 1.15;
  overflow:hidden;
  text-overflow:ellipsis;
}
.heroCity{
  margin-top: 6px;
  color: rgba(154,163,178,.95);
  font-weight: 700;
  font-size: 12px;
}

.kpiRow{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.kpiMini{
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 12px;
  min-width:0;
}
.kpiMini .k{
  font-size: 11px;
  font-weight: 750;
  color: rgba(154,163,178,.95);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.kpiMini .v{
  margin-top: 6px;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -.02em;
  color: rgba(238,242,255,.98);
}

/* =========================================================
   Szczegóły
========================================================= */
.detailsBlock{
  margin-top: 12px;
  border-radius: var(--r3);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow2);
  padding: 16px;
}
.detailsKicker{
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(226,232,240,.92);
}
.detailsLine{
  margin-top: 8px;
  color: rgba(226,232,240,.92);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.statusRow{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width: 540px){
  .statusRow{ grid-template-columns: 1fr; }
}
.statusPill{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  padding: 12px 12px;
  font-weight: 800;
  font-size: 12px;
  color: rgba(238,242,255,.92);
}
.statusCount{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 42px;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  font-weight: 850;
  font-size: 12px;
}

/* =========================================================
   PROMO APP — wraca look (chip + badge) jak screenshot #2
========================================================= */
.srAppCta{
  margin-top: 12px;
  border-radius: var(--r3);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow2);
  padding: 16px;
}
.srAppCtaKicker{
  font-weight: 800;
  font-size: 12px;
  color: rgba(226,232,240,.92);
  opacity: .92;
}
.srAppCtaTitle{
  margin-top: 6px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.01em;
}
.srAppCtaDesc{
  color: rgba(154,163,178,.95);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

/* =========================================================
   ARTYKUŁY — “Poradniki dla kurierów” (ładniejsza, prosta typografia)
========================================================= */
.artSug{
  margin-top: 12px;
  border-radius: var(--r3);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow2);
  padding: 16px;
}
.artSugHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.artSugTitle{
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -.01em;
}
.artSugSub{
  color: rgba(154,163,178,.95);
  font-size: 12px;
  font-weight: 700;
}

/* =========================================================
   SCREENS
========================================================= */
.screen{ display:none; }
.screen.active{ display:block; }

/* =========================================================
   PANELS (Ocena / Oceny / Opinie)
========================================================= */
.panel{
  margin-top: 12px;
  border-radius: var(--r3);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow2);
  padding: 16px;
}

.panelHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.panelTitle{
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.panelSub{
  margin-top: 6px;
  color: rgba(154,163,178,.95);
  font-size: 12px;
  font-weight: 700;
}
.form{ margin-top: 14px; }

/* score card */
.scoreCard{
  border-radius: 24px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  padding: 16px;
}
.scoreTop{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.scoreTitle{ font-weight: 900; font-size: 14px; }
.scoreHint{
  margin-top: 8px;
  color: rgba(154,163,178,.95);
  font-size: 12px;
  line-height: 1.5;
  font-weight:700;
}

.scoreRight{ display:flex; align-items:center; gap:10px; }
.scoreFace{
  width: 46px;
  height: 46px;
  border-radius: 18px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  font-size: 18px;
}
.scoreBubble{
  border-radius: 999px;
  padding: 10px 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  font-weight: 900;
  font-size: 12px;
  color: rgba(238,242,255,.95);
}

/* slider (thumb style zostaje) */
.scoreSliderWrap{ margin-top: 14px; }
input[type="range"]{
  width:100%;
  appearance:none;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  outline:none;
  border:1px solid rgba(255,255,255,.10);
}
input[type="range"]::-webkit-slider-thumb{
  appearance:none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 2px solid rgba(0,0,0,.55);
  box-shadow: 0 14px 34px rgba(0,0,0,.45);
  cursor:pointer;
}
input[type="range"]::-moz-range-thumb{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 2px solid rgba(0,0,0,.55);
  box-shadow: 0 14px 34px rgba(0,0,0,.45);
  cursor:pointer;
}

/* miniGrid */
.miniGrid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width: 860px){
  .miniGrid{ grid-template-columns: 1fr; }
}
.miniCard{
  border-radius: 24px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  padding: 16px;
}
.miniTitle{ font-weight: 900; font-size: 14px; }
.miniHint{ margin-top: 6px; color: rgba(154,163,178,.95); font-size: 12px; line-height: 1.5; font-weight:700; }

.row{ display:flex; align-items:center; gap:10px; }
.end{ justify-content:flex-end; }

/* switch */
.switch{ position:relative; width: 58px; height: 36px; display:inline-block; }
.switch input{ position:absolute; opacity:0; width:0; height:0; }
.switchKnob{
  position:absolute; inset:0;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  transition: background .15s ease, border-color .15s ease;
}
.switchKnob::after{
  content:"";
  position:absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 14px 30px rgba(0,0,0,.45);
  transition: transform .15s ease, background .15s ease;
}
.switch input:checked + .switchKnob{
  border-color: rgba(34,197,94,.28);
  background: rgba(34,197,94,.16);
}
.switch input:checked + .switchKnob::after{
  transform: translateX(22px);
  background: #eafff3;
}

/* wait */
.waitNicePill{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  font-weight: 900;
  font-size: 12px;
}
.waitInput{
  margin-top: 12px;
  width: 100%;
  border-radius: 18px;
  padding: 12px 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(238,242,255,.95);
  font-weight: 900;
  outline:none;
}
.waitInput:focus{
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 0 0 3px rgba(255,255,255,.10);
}

.waitNice{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 62px minmax(0,1fr) 62px;
  gap:10px;
  align-items:center;
}
.waitNiceBtn{
  width: 62px;
  height: 56px;
  border-radius: 20px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
  font-weight: 900;
  font-size: 22px;
  cursor:pointer;
}
.waitNiceBtn:hover{ border-color: rgba(255,255,255,.18); }

.waitNiceMid{
  border-radius: 24px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  padding: 12px;
  text-align:center;
  cursor:pointer;
}
.waitNiceMid b{ display:block; font-size: 18px; font-weight: 900; }
.waitNiceMid span{ display:block; margin-top: 6px; color: rgba(154,163,178,.95); font-size: 12px; font-weight: 700; }

/* status report */
.reportRow{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width: 540px){ .reportRow{ grid-template-columns: 1fr; } }
.btn.report{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 14px 14px;
  border-radius: 24px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  font-size: 13px;
  font-weight: 900;
}
.reportCount{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 42px;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  font-weight: 900;
  font-size: 12px;
}

/* actions — ZAPISZ/ANULUJ jak na screenach (2 obok siebie, duże) */
.actions{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.actions .btn{
  width: 100%;
  min-height: 54px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 900;
}
@media (max-width: 420px){
  .actions{
    grid-template-columns: 1fr 1fr; /* nadal obok */
    gap: 10px;
  }
  .actions .btn{ min-height: 52px; }
}

/* ===== WYŁĄCZENIE “sticky actions” (wracamy do starego układu) ===== */
@media (max-width:860px){
  .screenMy .form{ padding-bottom: 0; }
}

/* lists */
.list{ margin-top: 12px; display:flex; flex-direction:column; gap:10px; }
.empty{
  border-radius: 24px;
  border:1px dashed rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  padding: 12px;
  color: rgba(154,163,178,.95);
  font-weight: 700;
  font-size: 12px;
}
.list > *{
  border-radius: 24px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  padding: 12px;
}

/* opinions */
.textareaLabel{
  display:block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(226,232,240,.92);
}
.textarea{
  margin-top: 8px;
  width:100%;
  min-height: 110px;
  border-radius: 18px;
  padding: 12px 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(238,242,255,.95);
  font-weight: 800;
  outline:none;
  resize: vertical;
}
.textarea:focus{
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 0 0 3px rgba(255,255,255,.10);
}
.counterRow{
  margin-top: 8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color: rgba(154,163,178,.95);
  font-size: 12px;
  font-weight: 700;
}

/* modal */
.modal{
  position: fixed;
  inset:0;
  z-index: 999999;
  display:grid;
  place-items:center;
  padding: 18px;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal.hidden{ display:none; }
.modalBox{
  width: min(420px, calc(100vw - 24px));
  border-radius: 24px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(12,16,22,.96);
  box-shadow: 0 30px 90px rgba(0,0,0,.75);
  padding: 16px;
}
.modalTitle{ font-weight: 900; }
.modalText{
  margin-top: 8px;
  color: rgba(154,163,178,.95);
  font-size: 12px;
  line-height: 1.5;
  font-weight:700;
}

/* toast */
.saveToast{
  position: fixed;
  left: 50%;
  bottom: calc(var(--safeBottom) + 12px);
  transform: translateX(-50%);
  z-index: 999998;
  max-width: min(520px, calc(100vw - 24px));
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(12,16,22,.96);
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
  padding: 12px 14px;
  color: rgba(238,242,255,.95);
  font-weight: 900;
  font-size: 12px;
  display:none;
}
.saveToast.show{ display:block; }

/* =========================================================
   Mobile spacing for rounded panels (keep like screenshot)
========================================================= */
@media (max-width: 860px){
  .hero, .detailsBlock, .srAppCta, .artSug, .panel{
    border-radius: var(--r3);
  }
  .kpiRow{ gap: 10px; }
  .kpiMini{ padding: 12px; }
}

/* =========================================================
   Reduce motion
========================================================= */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; }
}

/* =========================================================
   PATCH v1 — drobne poprawki UI z Twoich screenów
   (wklej na koniec rate.base.css)
========================================================= */

/* 1) Google Play badge — stały rozmiar, bez dziwnego skalowania */
.srGpWrap{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.srGpBadge{
  display:block;
  width: min(520px, 100%);
  max-width: 520px;
}
.srGpBadge img{
  display:block;
  width: 100% !important;
  height: auto !important;
  max-height: 120px;          /* limit żeby nie puchło */
  object-fit: contain;
  transform: translateZ(0);   /* mniej glitchy w webview */
}
@media (max-width: 420px){
  .srGpBadge{ max-width: 100%; }
  .srGpBadge img{ max-height: 96px; }
}

/* 2) Topbar: przesuń “SkeyoRank / Ocena…” w prawo (żeby nie zasłaniało cookie)
   Robię to bez dotykania HTML: dodajemy lewy margines na tytule. */
@media (max-width: 860px){
  .appTitleStack{
    padding-left: 10px; /* bazowe przesunięcie */
  }
}
/* Jeśli cookie ikonka nadal nachodzi, zwiększ do 18–24px */
@media (max-width: 520px){
  .appTitleStack{
    padding-left: 18px;
  }
}

/* 3) “Poradniki dla kurierów” — przycisk “Otwórz artykuły” prosto, nie krzywo */
.artLinkRow{
  display:flex;
  align-items:center;        /* <-- było “space-between” + zawijanie i robiło krzywo */
  justify-content:space-between;
  gap: 12px;
}
.artLinkRow .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  white-space:nowrap;
  margin-left:auto;
}
@media (max-width: 520px){
  .artLinkRow{
    flex-direction:column;
    align-items:flex-start;
  }
  .artLinkRow .btn{
    margin-left:0;
    width: 100%;
  }
}

/* 4) HERO: dodaj emotkę mapy przed “Miasto:” (CSS-only) */
.heroCity::before{
  content:"📍 ";
  opacity:.95;
}

/* 5) Szczegóły: wyśrodkuj “Oceń / Sprawdź oceny” na telefonie
   (to jest ten div style="margin-top:12px; display:flex; ...") */
.detailsBlock > div[style*="display:flex"]{
  flex-wrap:wrap;
}
@media (max-width: 860px){
  .detailsBlock > div[style*="display:flex"]{
    justify-content:center !important;
  }
  .detailsBlock > div[style*="display:flex"] .btn{
    min-width: 42%;
  }
}
@media (max-width: 420px){
  .detailsBlock > div[style*="display:flex"] .btn{
    width: 100%;
  }
}

/* 6) Promo apki: chipy (Kalkulator/Ranking/Więcej) — niech układają się ładnie,
   nie “brzydko pionowo”. Robimy siatkę 2 kolumny na mobile, 3 na większych. */
.offerChips{
  display:grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.offerChip{
  justify-content:flex-start;
  width: 100%;
}
@media (max-width: 860px){
  .offerChips{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 420px){
  .offerChips{
    grid-template-columns: 1fr; /* na ultra wąskim jednak 1 kol */
  }
}

/* 7) Drobne: logo i tytuły niech nie “ściskają się” przy małych szerokościach */
.appMark{ min-width: 0; }
.appTitle, .appSubtitle{
  max-width: 100%;
}

/* =========================================================
   FIX — srPills: 1 linia + brak ucinania + ładny scroll poziomy
   (jedyny pewny sposób bez skracania tekstów w JS)
========================================================= */

.srPills{
  margin-top: 10px;

  display: flex !important;
  flex-wrap: nowrap !important;     /* zawsze 1 rząd */
  gap: 8px !important;

  overflow-x: auto !important;      /* jeśli za wąsko -> scroll */
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;

  padding-bottom: 2px;              /* żeby nie “obcinało” dołu */
  scrollbar-width: none;            /* Firefox */
}
.srPills::-webkit-scrollbar{ display:none; } /* Chrome/Opera */

/* chip ma brać szerokość z treści (ZERO ucinania) */
.srPill{
  flex: 0 0 auto !important;
  white-space: nowrap !important;

  overflow: visible !important;     /* klucz: nie ucinaj */
  text-overflow: unset !important;

  /* realne zmniejszanie na małych ekranach */
  font-size: 12px !important;
  padding: 8px 10px !important;
}

/* mniejsze telefony -> mniejszy tekst i padding, mniej scrolla */
@media (max-width: 430px){
  .srPill{
    font-size: 10px !important;
    padding: 6px 8px !important;
    letter-spacing: -0.2px;
  }
}
@media (max-width: 360px){
  .srPill{
    font-size: 9px !important;
    padding: 5px 7px !important;
    letter-spacing: -0.3px;
  }
}

/* =========================================================
   PATCH — Ostatnie oceny: Opłacalność / Czas / Przed-Po pionowo
   (wkleić na koniec rate.base.css)
========================================================= */

/* pionowy stack tylko we wpisach listy w panelach */
.panel .list .srPills{
  display:flex !important;
  flex-direction: column !important;  /* <-- PIONOWO */
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 8px !important;

  overflow: visible !important;       /* bez poziomego scrolla */
  padding-bottom: 0 !important;
}

/* pill ma się “dopasować” do treści i nie rozjeżdżać */
.panel .list .srPills .srPill{
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  width: fit-content;
  max-width: 100%;
}

/* =========================================================
   FIX — na mobile: "<-" zostaje po LEWEJ, tytuł obok niego,
   a "⧉" po PRAWEJ (bez ruszania HTML)
========================================================= */
@media (max-width: 860px){

  .topbar .container{
    position: relative !important;
    height: var(--appbarH) !important;
  }

  /* topActions niech nie zabiera miejsca w layoucie */
  .topActions{
    position: static !important;
    margin-left: 0 !important;
  }

  /* 1) Back "<-" na lewo */
  .topActions .iconBtn.srMobileOnly[aria-label="Panel"]{
    position: absolute !important;
    left: calc(var(--safeLeft) + 12px) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 3 !important;
  }

  /* 2) Kopiuj "⧉" na prawo */
  .topActions .iconBtn.srMobileOnly#copyLinkBtnIcon{
    position: absolute !important;
    right: calc(var(--safeRight) + 12px) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 3 !important;
  }

  /* 3) Tytuł ma się ustawić między nimi, zaraz obok "<-" */
  .appMark{
    position: absolute !important;
    left: calc(var(--safeLeft) + 12px + 42px + 10px) !important; /* padding + back btn + gap */
    right: calc(var(--safeRight) + 12px + 42px + 10px) !important;/* padding + copy btn + gap */
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    z-index: 2 !important;
    min-width: 0 !important;
  }

  .appTitleStack{ min-width: 0 !important; }
  .appTitle, .appSubtitle{
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }
}

/* =========================================================
   PATCH — Promo apki: mały Google Play + równe chipy
   (wklej na koniec)
========================================================= */

/* ===== 1) Google Play: mały, jak na 2 zdjęciu ===== */
.srAppCta .srGpWrap{
  display:flex !important;
  align-items:center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.srAppCta .srGpBadge{
  width: 240px !important;     /* mały badge */
  max-width: 240px !important;
  flex: 0 0 auto !important;
}

.srAppCta .srGpBadge img{
  width: 240px !important;
  max-width: 240px !important;
  height: auto !important;
  max-height: 78px !important; /* trzyma “mały” look */
  object-fit: contain !important;
  display:block !important;
}

@media (max-width: 420px){
  .srAppCta .srGpBadge,
  .srAppCta .srGpBadge img{
    width: 210px !important;
    max-width: 210px !important;
  }
  .srAppCta .srGpBadge img{ max-height: 70px !important; }
}

/* “Kliknij tutaj” w jednej linii z badge */
.srAppCta .srClickHint{
  white-space: nowrap !important;
  font-weight: 900 !important;
  opacity: .95 !important;
}

/* ===== 2) Chipy: równe, estetyczne ===== */
.srAppCta .offerChips{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
}

@media (max-width: 860px){
  .srAppCta .offerChips{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 420px){
  .srAppCta .offerChips{
    grid-template-columns: 1fr !important;
  }
}

.srAppCta .offerChip{
  width: 100% !important;
  justify-content: center !important;
  text-align: center !important;

  min-height: 44px !important;          /* równa wysokość */
  padding: 10px 12px !important;
  border-radius: 18px !important;

  border: 1px solid rgba(255,255,255,.10) !important;
  background: rgba(255,255,255,.04) !important;

  font-weight: 950 !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
}

.srAppCta .offerDot{
  width: 8px !important;
  height: 8px !important;
  flex: 0 0 8px !important;
}

/* =========================================================
   PATCH — OPINIE: user obok "Opinia", a tekst w dolnej ramce
   (wklej na koniec rate.base.css)
========================================================= */

/* 1) Górny pasek w opinii: "💬 Opinia" po lewej, "👤 user" obok, czas po prawej */
.srListItem .srListTop{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap: 12px !important;
}

/* lewa strona topbara: etykieta + user w jednej linii */
.srListItem .srListTop .srListId{
  display:flex !important;
  align-items:center !important;
  gap: 10px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

/* SR: Twoje .srOpName było pod spodem — przenosimy je wizualnie do topbara */
.srListItem .srOpName{
  /* NIE chowamy – przenosimy do góry w layout */
  margin-top: 0 !important;
  display:inline-flex !important;
  align-items:center !important;
  gap: 6px !important;

  font-weight: 950 !important;
  font-size: 12px !important;
  color: rgba(226,232,240,.92) !important;
  opacity: .92 !important;

  /* żeby się mieściło w 1 linii */
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
  max-width: 56vw !important; /* niech nie wypycha czasu */
}

/* czas po prawej niech się nie łamie */
.srListItem .srListTop .srListTime{
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  opacity: .9 !important;
}

/* 2) Treść opinii jako dolny “box” z obramówką */
.srListItem .srOpBody{
  margin-top: 10px !important;

  border: 1px solid rgba(255,255,255,.12) !important;
  background: rgba(0,0,0,.18) !important;
  border-radius: 16px !important;

  padding: 12px 12px !important;

  color: rgba(238,242,255,.95) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1.45 !important;

  white-space: pre-wrap !important;
  word-break: break-word !important;
}

/* 3) (opcjonalnie) jeśli masz też .itemTop/.itemUser (z wcześniejszego layoutu) */
.item .itemTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.item .itemUser{
  font-weight: 950;
  font-size: 12px;
  opacity:.92;
}

/* 4) Mobile: trochę bardziej agresywne skracanie nazwy usera */
@media (max-width: 420px){
  .srListItem .srOpName{ max-width: 46vw !important; }
}

/* =========================
   REAL FIX — mały Google Play
========================= */

/* kontener nie może się rozciągać */
.srAppCta .srGpWrap{
  display:inline-flex !important;
  align-items:center !important;
  gap:12px !important;
  width:auto !important;
  max-width:none !important;
}

/* badge NIE może być block + 100% */
.srAppCta a.srGpBadge{
  display:inline-block !important;
  width:auto !important;
  max-width:none !important;
  flex:none !important;
}

/* obraz ma mieć fizyczny rozmiar — bez skalowania rodzicem */
.srAppCta a.srGpBadge img{
  width:230px !important;
  height:auto !important;
  max-width:230px !important;
  min-width:230px !important;
  max-height:none !important;
}

/* mobile trochę mniejszy */
@media (max-width:480px){
  .srAppCta a.srGpBadge img{
    width:200px !important;
    min-width:200px !important;
    max-width:200px !important;
  }
}

/* napis obok w jednej linii */
.srAppCta .srClickHint{
  display:inline-block !important;
  white-space:nowrap !important;
  position:relative;
  top:1px;
}
/* =========================================================
   FIX: mobile "<-" widoczny — obok ikonki Silktide (top-left)
   wklej NA SAM KONIEC rate.base.css
========================================================= */
@media (max-width: 860px){

  /* ustaw sobie rozmiar ikonki cookies (dopasuj jak trzeba) */
  :root{ --srCookieW: 44px; --srCookieGap: 10px; }

  .topbar .container{ position: relative !important; }

  /* cookie icon siedzi w lewym rogu — zostaje */
  #silktide-cookie-icon,
  #silktide-cookie-icon-container,
  .silktide-cookie-icon,
  .silktideCookieIcon,
  [data-silktide-cookie-icon]{
    z-index: 1000 !important;
  }

  /* PRZESUŃ "<-" w prawo obok cookie icon */
  .topActions .iconBtn.srMobileOnly[aria-label="Panel"]{
    position: absolute !important;
    left: calc(var(--safeLeft) + 12px + var(--srCookieW) + var(--srCookieGap)) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1001 !important;
    display: grid !important;          /* wymuś widoczność */
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* copy zostaje po prawej */
  .topActions .iconBtn.srMobileOnly#copyLinkBtnIcon{
    position: absolute !important;
    right: calc(var(--safeRight) + 12px) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1001 !important;
  }

  /* tytuł między nimi (uwzględnia przesunięcie "<-") */
  .appMark{
    left: calc(var(--safeLeft) + 12px + var(--srCookieW) + var(--srCookieGap) + 42px + 10px) !important;
    right: calc(var(--safeRight) + 12px + 42px + 10px) !important;
  }
}
