/* Pokaz klute.ai w przeglądarce – ekrany 1:1 jak w aplikacji na iPhone (jasny i ciemny). */
:root {
  --bg: #F2F2F7; --card: #FFFFFF; --text: #000000; --muted: #6C6C70; --soft: #8E8E93; --sep: rgba(60,60,67,.18);
  --fill: rgba(118,118,128,.12); --fill2: rgba(118,118,128,.2); --accent: #007AFF;
  --red: #FF3B30; --orange: #FF9500; --yellow: #FFCC00; --green: #34C759; --teal: #30B0C7; --blue: #007AFF;
  --purple: #AF52DE; --indigo: #5856D6; --pink: #FF2D55; --brown: #A2845E; --gray: #8E8E93;
  --bar: rgba(249,249,249,.86); --glass: rgba(255,255,255,.72); --glass-line: rgba(0,0,0,.07);
  --nexttime-bg: rgba(52,199,89,.16); --nexttime: #248A3D;
  --bezel: #16181C; --page: transparent; --top: 54px; --bottom: 34px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --card: #1C1C1E; --text: #FFFFFF; --muted: #98989F; --soft: #8D8D93; --sep: rgba(84,84,88,.6);
    --fill: rgba(118,118,128,.24); --fill2: rgba(118,118,128,.36); --accent: #0A84FF;
    --red: #FF453A; --orange: #FF9F0A; --yellow: #FFD60A; --green: #30D158; --teal: #40C8E0; --blue: #0A84FF;
    --purple: #BF5AF2; --indigo: #5E5CE6; --pink: #FF375F; --brown: #AC8E68; --gray: #8E8E93;
    --bar: rgba(30,30,30,.86); --glass: rgba(44,44,46,.72); --glass-line: rgba(255,255,255,.1);
    --nexttime-bg: rgba(48,209,88,.18); --nexttime: #30D158;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --card: #1C1C1E; --text: #FFFFFF; --muted: #98989F; --soft: #8D8D93; --sep: rgba(84,84,88,.6);
  --fill: rgba(118,118,128,.24); --fill2: rgba(118,118,128,.36); --accent: #0A84FF;
  --red: #FF453A; --orange: #FF9F0A; --yellow: #FFD60A; --green: #30D158; --teal: #40C8E0; --blue: #0A84FF;
  --purple: #BF5AF2; --indigo: #5E5CE6; --pink: #FF375F; --brown: #AC8E68; --gray: #8E8E93;
  --bar: rgba(30,30,30,.86); --glass: rgba(44,44,46,.72); --glass-line: rgba(255,255,255,.1);
  --nexttime-bg: rgba(48,209,88,.18); --nexttime: #30D158;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--page); }
body { font-family: -apple-system, "SF Pro Text", "Segoe UI", "Helvetica Neue", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  overflow: hidden; color: var(--text); letter-spacing: -.2px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
input { font: inherit; color: inherit; }
svg { display: block; flex: none; }

/* Urządzenie: ekran 393×852 skalowany do okienka. Bez ramki: ?ramka=0 */
.stage { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
.device { position: relative; width: 393px; height: 852px; border-radius: 55px; overflow: hidden; flex: none; transform-origin: center;
  box-shadow: 0 0 0 8px var(--bezel), 0 0 0 9px #3A3D44; background: var(--bg); }
.noframe { --top: 16px; --bottom: 14px; background: var(--bg); }
.noframe .device { border-radius: 0; box-shadow: none; }
.statusbar { position: absolute; top: 0; left: 0; right: 0; height: 50px; z-index: 90; display: flex; align-items: center; justify-content: space-between;
  padding: 4px 30px 0 46px; font-size: 16.5px; font-weight: 600; pointer-events: none; color: var(--text); }
.statusbar .icons { display: flex; gap: 6px; align-items: center; }
.island { position: absolute; top: 11px; left: 50%; width: 124px; height: 36px; margin-left: -62px; border-radius: 18px; background: #000; z-index: 91; pointer-events: none; }
.homebar { position: absolute; bottom: 8px; left: 50%; width: 136px; height: 5px; margin-left: -68px; border-radius: 3px; background: var(--text); z-index: 91; pointer-events: none; }
.noframe .statusbar, .noframe .island, .noframe .homebar { display: none; }
.dark-status .statusbar { color: var(--text); }

/* Strony i przejścia jak w iOS (push / pop) */
.page { position: absolute; inset: 0; background: var(--bg); overflow: hidden; will-change: transform; touch-action: pan-y; }
.scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain; }
.scroll::-webkit-scrollbar { display: none; }
.content { padding: calc(var(--top) + 54px) 16px 40px; display: flex; flex-direction: column; }
.page.in { animation: pushIn .42s cubic-bezier(.2,.8,.2,1) both; box-shadow: -10px 0 30px rgba(0,0,0,.12); }
.page.under { animation: pushUnder .42s cubic-bezier(.2,.8,.2,1) both; }
.page.out { animation: popOut .36s cubic-bezier(.2,.8,.2,1) both; box-shadow: -10px 0 30px rgba(0,0,0,.12); z-index: 5; }
.page.back { animation: popBack .36s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pushIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes pushUnder { from { transform: none; } to { transform: translateX(-28%); } }
@keyframes popOut { from { transform: none; } to { transform: translateX(100%); } }
@keyframes popBack { from { transform: translateX(-28%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .page.in, .page.under, .page.out, .page.back { animation-duration: .01s; } }

/* Pasek nawigacji: szklane przyciski */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 20; padding: calc(var(--top) + 2px) 16px 8px; display: flex; align-items: center; gap: 10px;
  pointer-events: none; }
.nav::before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--bg) 55%, transparent); opacity: 0; transition: opacity .2s; pointer-events: none; }
.page.scrolled .nav::before { opacity: 1; }
.nav > * { pointer-events: auto; position: relative; }
.nav .spacer { flex: 1; pointer-events: none; }
.nav .ntitle { position: absolute; left: 90px; right: 90px; text-align: center; font-size: 17px; font-weight: 600; pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .2s; }
.nav .ntitle.auto { opacity: 0; }
/* Six actions occupy the conversations toolbar. The compact title gets its
   own row when the large heading scrolls away. */
.nav:has([data-a="sortmenu"]) > .ntitle {
  top: calc(var(--top) + 50px);
  left: 16px; right: 16px;
  line-height: 22px;
}
.page.scrolled .nav:has([data-a="sortmenu"]) {
  padding-bottom: 34px;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--glass-line);
}

.page.scrolled .nav .ntitle.auto { opacity: 1; }
.glass { background: var(--glass); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: .5px solid var(--glass-line); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.gbtn { width: 44px; height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center; position: relative; }
.ggroup { height: 44px; border-radius: 22px; display: flex; align-items: center; padding: 0 4px; }
.ggroup .gi { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; position: relative; }
.gbtn svg, .ggroup svg { width: 22px; height: 22px; }
.badge { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 16px; padding: 0 4px; border-radius: 8px; background: #FF3B30; color: #fff;
  font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; letter-spacing: 0; }
.textbtn { height: 44px; border-radius: 22px; padding: 0 16px; font-size: 17px; display: flex; align-items: center; font-weight: 500; }

h1.large { margin: 2px 4px 10px; font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: .3px; }
h1.dtitle { margin: 4px 0 4px; font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.2px; }
.dmeta { display: flex; align-items: center; gap: 5px; font-size: 15px; color: var(--muted); }
.dmeta svg { width: 13px; height: 15px; }

/* Etykiety */
.chiprow { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 6px; padding: 2px 16px; }
.chiprow::-webkit-scrollbar { display: none; }
.lchip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 13px; font-size: 13px; font-weight: 600;
  white-space: nowrap; flex: none; }
.lchip svg { width: 13px; height: 13px; }
.lchip.tint { background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.lchip.solid { background: var(--c); color: #fff; }
.lchip.sel { background: var(--c); color: #fff; }
.lchip.compact { height: 19px; padding: 0 6px; font-size: 11px; gap: 3px; border-radius: 10px; }
.lchip.compact svg { width: 10px; height: 10px; }
.more { font-size: 11px; font-weight: 600; color: var(--muted); padding: 2px 6px; border-radius: 10px; background: var(--fill); }
.filterinfo { font-size: 12px; color: var(--accent); display: flex; align-items: center; gap: 4px; margin: 0 4px 6px; }

/* Lista rozmów */
.ghead { font-size: 15px; font-weight: 600; color: var(--muted); margin: 14px 18px 7px; }
.tile { background: var(--card); border-radius: 18px; padding: 11px 14px 12px 16px; display: flex; align-items: center; gap: 8px; width: 100%; margin-bottom: 10px; }
.tile:active { background: color-mix(in srgb, var(--card) 80%, var(--gray)); }
.tile .tb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tile .tt { font-size: 17px; font-weight: 600; line-height: 22px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .ts { font-size: 15px; line-height: 20px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .tm { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.tile .tm svg { width: 10px; height: 12px; }
.tile .tl { display: flex; gap: 4px; align-items: center; }
.chev { width: 8px; height: 14px; color: #C4C4C7; flex: none; }
.star { color: #FFCC00; display: inline-flex; gap: 2px; align-items: center; }
.star svg { width: 11px; height: 11px; }
.status { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 10px; margin-left: auto; display: inline-flex; gap: 4px; align-items: center;
  color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.listnote { font-size: 13px; line-height: 18px; color: var(--muted); text-align: center; padding: 6px 20px 0; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 60px 30px; color: var(--muted); font-size: 15px; line-height: 20px; }
.empty b { font-size: 20px; color: var(--text); }
.empty svg { width: 44px; height: 44px; color: var(--soft); }

/* Start: napis z falą */
.intro { position: absolute; left: 0; right: 0; top: 0; bottom: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 15; pointer-events: none; transition: opacity .35s; }
.intro.hide { opacity: 0; }
.intro .line { display: flex; color: #FF3B30; font-size: 22px; font-weight: 700; line-height: 28px; }
.intro .line span { display: inline-block; transform-origin: 50% 100%; white-space: pre; }
.listwrap { transition: opacity .35s; }
.listwrap.hidden { opacity: 0; }

/* Dolny panel z karuzelą */
.recpanel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 25; padding: 12px 0 calc(16px + var(--bottom)); border-radius: 30px 30px 0 0;
  background: var(--bar); backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 -4px 24px rgba(0,0,0,.06); transition: transform .35s cubic-bezier(.3,1.2,.4,1), opacity .25s; }
.recpanel.gone { transform: translateY(110%); opacity: 0; pointer-events: none; }
.carousel { position: relative; height: 164px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.carousel.dragging { cursor: grabbing; }
.citem { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,.12); }
.citem .bgc { position: absolute; inset: 0; border-radius: 50%; background: color-mix(in srgb, var(--card) 62%, transparent); border: 1px solid rgba(128,128,128,.12); }
.citem .redc { position: absolute; inset: 0; border-radius: 50%; background: #FF3B30; }
.citem svg { position: relative; width: 34px; height: 34px; }
.citem .dot { position: relative; width: 25px; height: 25px; border-radius: 50%; background: #FF3B30; }
.cring { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -14px 0 0 -48px; border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--text) 25%, transparent); pointer-events: none; z-index: 40; }
.ctype { text-align: center; font-size: 17px; font-weight: 600; margin-top: 6px; height: 22px; }
.corner { position: absolute; bottom: calc(4px + 16px + var(--bottom)); width: 46px; height: 46px; border-radius: 23px; display: flex; align-items: center;
  justify-content: center; z-index: 2; }
.corner svg { width: 19px; height: 19px; }
.corner.l { left: 16px; } .corner.r { right: 16px; }
.collapsed { position: absolute; left: 16px; right: 16px; bottom: calc(8px + var(--bottom)); z-index: 25; display: flex; align-items: flex-end; justify-content: space-between; pointer-events: none; }
.collapsed > * { pointer-events: auto; }
.collapsed .corner { position: relative; bottom: 0; }
.minirec { width: 72px; height: 72px; border-radius: 50%; position: relative; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--card) 35%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 3px solid color-mix(in srgb, var(--text) 22%, transparent); box-shadow: 0 3px 8px rgba(0,0,0,.15); }
.minirec i { position: absolute; inset: 6px; border-radius: 50%; background: rgba(255,59,48,.6); }
.expandbtn { position: absolute; left: -26px; top: -8px; width: 30px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; }
.expandbtn svg { width: 12px; height: 12px; }
.searchbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 26; padding: 8px 16px calc(8px + var(--bottom)); display: flex; gap: 10px; align-items: center; }
.sfield { flex: 1; height: 46px; border-radius: 23px; display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.sfield svg { width: 17px; height: 17px; color: var(--muted); }
.sfield input { flex: 1; border: 0; background: none; outline: none; font-size: 17px; min-width: 0; }
.cancel { color: var(--accent); font-size: 17px; }

/* Szczegóły rozmowy */
.pills { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 17px; background: var(--card);
  font-size: 15px; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.06); border: .5px solid var(--glass-line); }
.pill svg { width: 19px; height: 15px; }
.pill .cd { width: 9px; height: 9px; color: var(--text); }
.pill.warn { color: var(--orange); }
.pill.warn .q { width: 17px; height: 17px; border-radius: 9px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.labels { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.addlabel { width: 22px; height: 22px; border-radius: 11px; border: 1.5px dashed var(--soft); color: var(--soft); display: flex; align-items: center; justify-content: center; }
.addlabel svg { width: 11px; height: 11px; }
.seg { display: flex; background: var(--fill); border-radius: 18px; padding: 3px; margin: 14px 0 12px; position: relative; }
.seg button { flex: 1; height: 30px; border-radius: 15px; font-size: 14px; font-weight: 500; text-align: center; position: relative; z-index: 1; }
.seg button.on { background: var(--card); font-weight: 600; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.scard { background: var(--card); border-radius: 18px; padding: 14px 16px 16px; margin-bottom: 14px; }
.shead { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 17px; font-weight: 700; }
.shead svg.si { width: 20px; height: 18px; }
.shead .sp { flex: 1; }
.shead .sc { width: 13px; height: 13px; color: var(--soft); transition: transform .2s; }
.scard.closed .sc { transform: rotate(-90deg); }
.edit { color: var(--accent); font-size: 16px; font-weight: 500; margin-left: 8px; }
.sbody { margin-top: 10px; font-size: 17px; line-height: 23px; }
.task { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 8px 0 4px; }
.task .ring { width: 22px; height: 22px; border-radius: 11px; border: 1.6px solid var(--soft); flex: none; margin-top: 0; display: flex; align-items: center; justify-content: center; }
.task.done .ring { background: var(--green); border-color: var(--green); }
.task.done .ring::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px,-1px); }
.task .tx { font-size: 17px; line-height: 22px; }
.task.done .tx { text-decoration: line-through; color: var(--muted); }
.task .flag { display: inline-block; width: 14px; height: 15px; vertical-align: -2px; margin-right: 4px; }
.task .tsub { font-size: 12px; color: var(--muted); margin-top: 2px; display: block; }
.group { background: var(--card); border-radius: 18px; overflow: hidden; margin-bottom: 14px; }
.row { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 16px; width: 100%; position: relative; font-size: 17px; }
.group > * + * > .row::before, .group > .row + .row::before, .group > * + .row::before { content: ""; position: absolute; top: 0; left: 54px; right: 0; height: .5px; background: var(--sep); }
.row:active { background: var(--fill); }
.row svg.ri { width: 22px; height: 20px; }
.row .rt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row .rs { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .rn { font-size: 16px; color: var(--muted); }
.row .chev { transition: transform .2s; }
.xopen > .row .chev { transform: rotate(90deg); }
.xbody { padding: 2px 16px 14px 54px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 21px; }
.bul { display: flex; gap: 9px; } .bul::before { content: ""; width: 5px; height: 5px; border-radius: 3px; background: var(--muted); margin-top: 8px; flex: none; }
.time { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; background: color-mix(in srgb, var(--blue) 14%, transparent);
  color: var(--blue); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; flex: none; }
.time svg { width: 8px; height: 9px; }
.qa { display: flex; flex-direction: column; gap: 3px; } .qa b { font-size: 15.5px; } .qa span { font-size: 15px; color: var(--muted); line-height: 20px; }
.ask { display: flex; gap: 8px; align-items: center; height: 40px; border-radius: 20px; background: var(--fill); padding: 0 6px 0 14px; color: var(--soft); font-size: 15px; }
.ask i { margin-left: auto; width: 30px; height: 30px; border-radius: 15px; background: var(--fill2); display: flex; align-items: center; justify-content: center; }
.ask svg { width: 14px; height: 14px; }
.hint { font-size: 12.5px; color: var(--muted); line-height: 17px; }

/* Transkrypt */
.uncert { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 13px; font-weight: 600;
  color: var(--orange); background: color-mix(in srgb, var(--orange) 14%, transparent); }
.uncert .q { width: 15px; height: 15px; border-radius: 8px; background: var(--orange); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.tsearch { display: flex; gap: 10px; align-items: center; margin: 12px 0 10px; }
.tsearch .tf { flex: 1; display: flex; align-items: center; gap: 8px; height: 36px; color: var(--soft); font-size: 17px; }
.tsearch .tf svg { width: 18px; height: 18px; }
.tsearch .tf input { flex: 1; border: 0; background: none; outline: none; font-size: 17px; min-width: 0; }
.tsearch .tb { width: 44px; height: 34px; border-radius: 17px; background: var(--fill); display: flex; align-items: center; justify-content: center; color: var(--blue); }
.tsearch .tb svg { width: 20px; height: 18px; }
.utt { border-radius: 14px; padding: 9px 12px 11px; margin-bottom: 10px; background: color-mix(in srgb, var(--c) 14%, var(--card)); }
.utt.unc { border: 1.5px dashed color-mix(in srgb, var(--orange) 80%, transparent); }
.utt .who { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--c); }
.utt .who span { color: var(--soft); font-weight: 500; font-variant-numeric: tabular-nums; }
.utt .who em { font-style: normal; color: var(--orange); display: inline-flex; gap: 4px; align-items: center; font-weight: 600; }
.utt .who em .q { width: 13px; height: 13px; border-radius: 7px; border: 1.3px solid var(--orange); font-size: 8.5px; display: flex; align-items: center; justify-content: center; }
.utt .say { font-size: 17px; line-height: 23px; margin-top: 3px; }
.utt mark { background: color-mix(in srgb, var(--yellow) 45%, transparent); color: inherit; border-radius: 3px; }

/* Odtwarzacz */
.player { position: absolute; left: 14px; right: 14px; bottom: calc(10px + var(--bottom)); z-index: 22; border-radius: 28px; padding: 7px 8px 7px 7px;
  display: flex; align-items: center; gap: 10px; background: var(--glass); backdrop-filter: blur(22px) saturate(1.7); -webkit-backdrop-filter: blur(22px) saturate(1.7);
  border: .5px solid var(--glass-line); box-shadow: 0 4px 18px rgba(0,0,0,.12); }
.play { width: 40px; height: 40px; border-radius: 20px; background: color-mix(in srgb, var(--text) 75%, transparent); display: flex; align-items: center; justify-content: center; flex: none; }
.play svg { width: 15px; height: 15px; fill: var(--card); }
.ptime { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 34px; }
.prog { flex: 1; height: 16px; display: flex; align-items: center; cursor: pointer; position: relative; }
.prog::before { content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: 2px; background: var(--fill2); }
.prog i { position: absolute; left: 0; height: 3px; border-radius: 2px; background: var(--text); }
.pexp { width: 32px; height: 32px; border-radius: 16px; background: var(--fill); display: flex; align-items: center; justify-content: center; flex: none; }
.pexp svg { width: 13px; height: 13px; }
.player.full { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 18px 16px; border-radius: 26px; }
.pfrow { display: flex; align-items: center; justify-content: space-between; }
.pctl { display: flex; align-items: center; justify-content: center; gap: 34px; }
.pctl .skip { display: flex; flex-direction: column; align-items: center; font-size: 10px; font-weight: 700; gap: 1px; }
.pctl .skip svg { width: 26px; height: 26px; }
.pctl .play { width: 56px; height: 56px; border-radius: 28px; }
.pctl .play svg { width: 20px; height: 20px; }
.speed { height: 28px; min-width: 46px; padding: 0 10px; border-radius: 14px; background: var(--fill); font-size: 13px; font-weight: 700; text-align: center; }

/* Menu ⋯ i inne wyskakujące */
.veil { position: absolute; inset: 0; z-index: 60; }
.menu { position: absolute; z-index: 61; min-width: 230px; border-radius: 26px; padding: 6px; background: var(--glass);
  backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8); border: .5px solid var(--glass-line);
  box-shadow: 0 10px 40px rgba(0,0,0,.18); animation: pop .22s cubic-bezier(.2,1.3,.4,1) both; transform-origin: top right; }
.menu.bl { transform-origin: bottom center; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.mi { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 46px; padding: 6px 14px; border-radius: 18px; font-size: 17px; }
.mi:active { background: var(--fill); }
.mi svg { width: 20px; height: 20px; }
.mi .ms { display: block; font-size: 13px; color: var(--muted); }
.mi .mc { margin-left: auto; width: 8px; height: 13px; color: var(--muted); }
.mi.red { color: #FF3B30; }
.mi .chk { width: 16px; height: 16px; margin-left: auto; color: var(--accent); }
.msep { height: .5px; background: var(--sep); margin: 4px 14px; }
.toast { position: absolute; left: 24px; right: 24px; top: calc(var(--top) + 60px); z-index: 80; border-radius: 18px; padding: 12px 16px; font-size: 14.5px; line-height: 19px;
  text-align: center; background: var(--glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: .5px solid var(--glass-line);
  box-shadow: 0 8px 30px rgba(0,0,0,.16); animation: toast 2.6s ease both; pointer-events: none; }
@keyframes toast { 0% { opacity: 0; transform: translateY(-10px); } 8%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Arkusze (zgoda, rozmówcy) */
.dim { position: absolute; inset: 0; background: rgba(0,0,0,.32); z-index: 70; animation: fade .25s both; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 71; background: var(--bg); border-radius: 34px 34px 0 0; max-height: 92%;
  overflow-y: auto; padding: 8px 20px calc(18px + var(--bottom)); display: flex; flex-direction: column; gap: 14px; animation: up .38s cubic-bezier(.2,.9,.2,1) both; }
@keyframes up { from { transform: translateY(100%); } }
.grab { width: 36px; height: 5px; border-radius: 3px; background: var(--fill2); align-self: center; flex: none; }
.sheet h2 { margin: 6px 0 0; font-size: 22px; font-weight: 700; text-align: center; }
.sheet .sub { font-size: 14px; line-height: 19px; color: var(--muted); text-align: center; margin-top: -6px; }
.sheet .li { display: flex; gap: 12px; font-size: 15.5px; line-height: 21px; align-items: flex-start; }
.sheet .li svg { width: 22px; height: 22px; margin-top: 0; }
.scardlist { background: var(--card); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.check { display: flex; gap: 12px; align-items: center; font-size: 16px; }
.box { width: 24px; height: 24px; border-radius: 12px; border: 1.6px solid var(--soft); display: flex; align-items: center; justify-content: center; flex: none; }
.check.on .box { background: var(--accent); border-color: var(--accent); }
.check.on .box::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px,-1px); }
.primary { height: 52px; border-radius: 26px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 600; text-align: center; width: 100%; flex: none; }
.primary.red { background: #FF3B30; }
.primary:disabled { opacity: .35; cursor: default; }
.link { color: var(--accent); font-size: 16px; text-align: center; padding: 4px; }
.err { font-size: 14px; color: #FF3B30; line-height: 19px; }
.spk { background: var(--card); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.spk .sh { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.spk .sh i { width: 10px; height: 10px; border-radius: 5px; }
.spk input { height: 42px; border-radius: 12px; border: 0; background: var(--fill); padding: 0 12px; font-size: 17px; outline: none; }
.spk q { font-size: 14px; color: var(--muted); font-style: italic; quotes: "„" "”"; }

/* Nagrywanie (pełny ekran) */
.recscreen { position: absolute; inset: 0; z-index: 50; background: var(--card); display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--top) + 12px) 0 calc(36px + var(--bottom)); animation: up .4s cubic-bezier(.2,.9,.2,1) both; }
:root[data-theme="dark"] .recscreen { background: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .recscreen { background: #000; } }
.rechead { display: flex; align-items: center; gap: 7px; font-size: 17px; font-weight: 600; color: #FF3B30; }
.rechead svg { width: 22px; height: 22px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.typemenu { margin-top: 10px; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 16px; background: var(--fill); font-size: 15px; font-weight: 600; }
.typemenu svg { width: 17px; height: 15px; } .typemenu svg.dn { width: 10px; height: 10px; }
.rechint { font-size: 11px; line-height: 14px; color: var(--soft); text-align: center; padding: 0 40px; margin-top: 4px; }
.flex1 { flex: 1; }
.clock { font-size: 76px; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -1px; font-family: ui-rounded, -apple-system, "SF Pro Rounded", system-ui, sans-serif; }
.limit { font-size: 15px; color: var(--muted); margin-top: 2px; }
.limit.near { color: var(--orange); }
.wave { height: 110px; width: calc(100% - 32px); margin: 28px 16px; display: flex; align-items: center; gap: 3px; }
.wave span { flex: 1; border-radius: 4px; background: #FF3B30; min-height: 4px; height: 4px; transition: height .08s linear; }
.infoline { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--soft); padding: 0 24px; }
.infoline.on { font-size: 15px; color: var(--muted); }
.infoline svg { width: 15px; height: 15px; }
.controls { width: 100%; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 28px; }
.controls .c { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.stopbtn { width: 96px; height: 96px; border-radius: 50%; border: 3.8px solid color-mix(in srgb, var(--text) 25%, transparent); display: flex; align-items: center; justify-content: center; }
.stopbtn i { width: 36px; height: 36px; border-radius: 8px; background: #FF3B30; }
.starbtn { width: 76px; height: 76px; border-radius: 50%; background: rgba(255,204,0,.2); display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 10px; }
.starbtn svg { width: 31px; height: 31px; color: #FFCC00; }
.starbtn b { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; border-radius: 11px; background: #FFCC00; color: #000; font-size: 11px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.starbtn.bump { animation: bump .3s; }
@keyframes bump { 50% { transform: scale(1.12); } }

/* Mentor / Tutor */
.next { background: var(--nexttime-bg); border-radius: 18px; padding: 12px 16px 14px; margin-bottom: 14px; color: var(--nexttime); }
.next .nh { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; }
.next .nh svg { width: 17px; height: 17px; }
.next p { margin: 6px 0 0; font-size: 17px; line-height: 23px; font-weight: 700; }
.next.tips { background: color-mix(in srgb, var(--indigo) 14%, transparent); color: var(--indigo); }
.next.tips p { font-size: 16px; font-weight: 600; display: flex; gap: 6px; }
.gray { color: var(--muted); font-size: 15px; line-height: 20px; margin-top: 10px; }
.score { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 34px; font-size: 16px; }
.score .sn { display: inline-flex; align-items: center; gap: 5px; }
.score .sn svg { width: 6px; height: 10px; color: var(--soft); transition: transform .2s; }
.score.open .sn svg { transform: rotate(90deg); }
.dots { display: flex; gap: 3px; } .dots i { width: 8px; height: 8px; border-radius: 4px; background: #CB30E0; } .dots i.e { background: var(--fill2); }
.cmt { font-size: 14px; line-height: 19px; color: var(--muted); padding: 0 0 6px 10px; border-left: 2px solid var(--fill2); margin-bottom: 4px; }
.imp { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; width: 100%; }
.imp .il { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.imp .iq { font-style: italic; font-size: 17px; line-height: 22px; font-weight: 500; }
.imp .ib { color: var(--green); font-size: 17px; line-height: 23px; font-weight: 500; }
.imp .iw { font-size: 12.5px; color: var(--muted); line-height: 17px; display: flex; gap: 6px; align-items: baseline; }
.imp.mini .iq { font-style: normal; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--orange) 70%, transparent); color: var(--muted); font-size: 15px; }
.imp.mini .ib { font-size: 15.5px; }
.rule { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 9px; background: var(--fill); color: var(--muted); flex: none; }
.isep { height: .5px; background: var(--sep); margin-top: 12px; }
.stat { display: flex; justify-content: space-between; font-size: 16px; } .stat b { font-weight: 600; }

/* Zadania i ustawienia */
.thead { display: flex; align-items: center; gap: 8px; width: 100%; font-size: 15px; font-weight: 600; color: var(--muted); margin: 16px 6px 8px; padding-right: 12px; }
.thead svg { width: 17px; height: 17px; } .thead .sp { flex: 1; } .thead .tc { width: 12px; height: 12px; transition: transform .2s; }
.thead.closed .tc { transform: rotate(-90deg); }
.ttile { background: var(--card); border-radius: 16px; padding: 10px 14px; margin-bottom: 8px; }
.ttile .task { padding: 2px 0; }
.ttile .from { font-size: 12px; color: var(--muted); margin: 3px 0 0 34px; display: flex; gap: 4px; align-items: center; }
.footnote { font-size: 13px; line-height: 18px; color: var(--muted); margin: 0 16px 6px; }
.secth { font-size: 13px; color: var(--muted); text-transform: uppercase; margin: 18px 16px 7px; letter-spacing: 0; }
.sicon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.sicon svg { width: 18px; height: 18px; }
.srow { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 14px; width: 100%; font-size: 17px; position: relative; }
.srow + .srow::before { content: ""; position: absolute; top: 0; left: 56px; right: 0; height: .5px; background: var(--sep); }
.srow .sv { margin-left: auto; color: var(--muted); font-size: 17px; white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.srow .sv .chev { margin-left: 2px; }
.toggle { width: 51px; height: 31px; border-radius: 16px; background: var(--fill2); position: relative; flex: none; margin-left: auto; transition: background .2s; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 14px; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.toggle.on { background: #34C759; } .toggle.on::after { transform: translateX(20px); }
.profile { display: flex; align-items: center; gap: 14px; padding: 12px 14px; width: 100%; }
.avatar { width: 58px; height: 58px; border-radius: 29px; background: #FF3B30; color: #fff; font-size: 24px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.profile b { font-size: 20px; display: block; color: var(--text); } .profile span span { font-size: 14px; color: var(--muted); }
.info { font-size: 15px; line-height: 21px; }

/* ---- 18.11.2026: kredyty AI, karta „Opracuj”, szybkie zadanie, nowy ekran nagrywania ---- */
.cring2 { width: 22px; height: 22px; }
.status.todo { color: var(--orange); background: color-mix(in srgb, var(--orange) 14%, transparent); }
.tile .tm .dest { margin-left: auto; color: var(--soft); display: inline-flex; }
.tile .tm .dest svg { width: 15px; height: 12px; }
.srow .stt { display: flex; flex-direction: column; text-align: left; }
.srow .stt small { font-size: 12.5px; color: var(--muted); line-height: 16px; }

.offer { position: absolute; top: calc(var(--top) + 2px); left: 10px; right: 10px; z-index: 40; background: var(--card); border-radius: 26px; padding: 16px;
  box-shadow: 0 8px 36px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 12px; animation: down .38s cubic-bezier(.2,.9,.2,1) both; }
@keyframes down { from { transform: translateY(-30px); opacity: 0; } }
.offer .oh { display: flex; gap: 10px; align-items: center; }
.offer .oh > svg { width: 26px; height: 26px; }
.offer .oh b { display: block; font-size: 17px; font-weight: 600; }
.offer .oh span span { font-size: 12px; color: var(--muted); }
.opills { display: flex; gap: 8px; flex-wrap: wrap; }
.opill { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 16px; background: var(--fill); font-size: 13px; font-weight: 500; }
.opill svg { width: 14px; height: 14px; } .opill svg.cd { width: 8px; height: 8px; }
.prom { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 1; height: 40px; border-radius: 12px; background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 600; text-align: center; padding: 0 12px; }
.prom svg { width: 17px; height: 17px; }
.prom.big { height: 48px; border-radius: 14px; font-size: 17px; flex: none; width: 100%; }
.later { text-align: center; font-size: 15px; color: var(--muted); }
.bord { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 15px; font-weight: 600; }
.bord svg { width: 16px; height: 16px; }

.pp { display: flex; flex-direction: column; gap: 6px; }
.pph { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 6px; }
.pph:first-child { margin-top: 0; }
.ppchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 1px 0; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.ppchips::-webkit-scrollbar { display: none; }
.ppchip { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 16px; background: var(--fill); font-size: 13px; }
.ppchip svg { width: 14px; height: 14px; }
.ppchip.on { background: var(--accent); color: #fff; font-weight: 600; }
.ppcap { font-size: 12px; color: var(--muted); line-height: 16px; }
.segpick { display: flex; background: var(--fill); border-radius: 9px; padding: 2px; }
.segpick button { flex: 1; text-align: center; height: 30px; border-radius: 7px; font-size: 13px; font-weight: 500; }
.segpick button.on { background: var(--card); box-shadow: 0 2px 6px rgba(0,0,0,.12); font-weight: 600; }
.ppbtns { display: flex; gap: 10px; margin-top: 8px; }

.qtcard { background: var(--card); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.qtcard .qh { display: inline-flex; gap: 6px; align-items: center; color: var(--green); font-size: 15px; font-weight: 600; }
.qtcard .qh svg { width: 18px; height: 18px; }
.qtcard .qt { font-size: 17px; line-height: 22px; }
.qtcard .qd { display: inline-flex; gap: 5px; align-items: center; font-size: 13px; color: var(--muted); }
.qtcard .qd svg { width: 14px; height: 14px; }
.qtcard .qn { font-size: 12px; color: var(--muted); line-height: 16px; }

.reg { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.reg svg { width: 14px; height: 14px; }

.notefield { width: calc(100% - 32px); margin: 0 16px 18px; height: 40px; border-radius: 12px; background: var(--fill); display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--accent); }
.notefield svg { width: 18px; height: 18px; }
.notefield input { flex: 1; border: 0; background: none; outline: none; font-size: 16px; color: var(--text); min-width: 0; }
.notefield input::placeholder { color: var(--soft); }
.slidebtn { width: 76px; height: 76px; border-radius: 50%; background: rgba(0,122,255,.15); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; color: var(--blue); }
.slidebtn svg { width: 31px; height: 31px; }

.cbig { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 18px; padding: 14px 16px; }
.cbig .cring2 { width: 56px; height: 56px; }
.cbig b { display: block; font-size: 19px; }
.cbig span span { font-size: 14px; color: var(--muted); }
.plans .li { align-items: baseline; }
.plans .li b { width: 78px; flex: none; } .plans .li span { flex: 1; color: var(--muted); font-size: 14.5px; } .plans .li em { font-style: normal; font-weight: 600; }
.li.pm { align-items: center; } .li.pm .pe { font-size: 22px; } .li.pm span { flex: 1; font-size: 14.5px; line-height: 19px; color: var(--muted); }
.li.pm b { color: var(--text); font-size: 16px; } .li.pm .pc { width: 22px; height: 22px; color: var(--accent); }
.starbtn b[hidden] { display: none; }
