/* Overlay: tokeny i widgety 1:1 z WinUI (Themes/Redesign + AppShell + DashboardGameSingle).
   Picker DEMO / Strona WP zostaje poza shellem. */

/* Okno: CornerRadius 9, nie 16 z mocka x.html */
.shell { border-radius: 9px; }
.navv {
  border-right: 1px solid var(--line);
  background: var(--panel);
}
.main {
  padding: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

/* Titlebar: AppTitleBarRegion Padding 20,6,10,6 */
.titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  flex-shrink: 0;
  padding: 6px 10px 6px 20px;
  min-height: 52px;
  height: 52px;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: visible;
  background: var(--bg);
}
.titlebar h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  flex: 0 0 auto;
  max-width: none;
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
  letter-spacing: 0;
}
.titlebar .search {
  flex: 1 1 0;
  min-width: 36px;
  max-width: 290px;
  width: auto;
  min-height: 37px;
  border-radius: var(--r-s);
  border: 1px solid var(--line);
  background: var(--card);
}
.winbtn {
  width: 32px; height: 32px; min-width: 32px; padding: 0;
  border: 0; background: transparent; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  position: relative;
  z-index: 50;
}
.titlebar .spacer { flex: 1 1 0; min-width: 0; }
.titlebar .cta-wrap,
.titlebar .cta,
.titlebar .user,
.titlebar .winbtn { flex-shrink: 0; }
.titlebar .cta { position: relative; overflow: visible; }
.titlebar .cta::after { display: none; }
.cta-halo {
  position: absolute;
  inset: -3px -1px;
  border-radius: var(--r-s);
  background: radial-gradient(circle at 50% 50%, var(--acc-soft), transparent 70%);
  opacity: .28;
  pointer-events: none;
}
.cta-wrap { position: relative; }
.winbtn img { width: 15px; height: 15px; opacity: .75; }
.winbtn:hover { background: var(--card-hi); }
.winbtn.exit:hover { background: #c42b1c; }
.winbtn.exit:hover img { filter: brightness(8); }

.tabwrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 24px 14px;
}
.trialbar { margin: 0 24px 10px; }

/* User chip = HeaderUserChip SwRadiusS, nie 999 */
.user {
  border-radius: var(--r-s);
  padding: 6px 13px 6px 7px;
}
.user b {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  background: none;
}

/* Nav selected: SelBar 3x20 + glow, bez box-shadow na całej wysokości */
.ni.on::before {
  top: 50%;
  bottom: auto;
  height: 20px;
  transform: translateY(-50%);
  box-shadow: none;
  border-radius: 0 2px 2px 0;
}
.ni.on::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 28px; height: 24px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--acc-soft), transparent);
  pointer-events: none;
}
.ni .mini {
  border-radius: 4px;
  padding: 1px 5px;
}

/* Chip / bubble / status: SwRadiusS (H~34 → ~10/12), nigdy 999 */
.tile.bubbles {
  padding: 8px 10px;
  margin-bottom: 14px;
  overflow: hidden;
}
.bubbles-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: max-content;
  transform-origin: 0 50%;
}
.bubble {
  border-radius: 10px;
  padding: 8px 13px;
  flex: 0 0 auto;
  white-space: nowrap;
}
body.glass .bubble { border-radius: 13px; }
.statuschip { border-radius: var(--r-s); }
.sw {
  border-radius: 10px;
  width: 44px;
  height: 24px;
}
.sw::after {
  width: 18px;
  height: 18px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
}
.pills { border-radius: var(--r-s); }
.pills span { border-radius: 8px; }

.sysic { fill: var(--fg); opacity: .92; }

.foot {
  height: 31px;
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  justify-content: unset;
  background: var(--panel);
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--dim);
  flex-shrink: 0;
}
.foot > :first-child { justify-self: start; }
.foot > :last-child { justify-self: end; }

/* Gry: DashboardGameSingle 220x124, SwRadiusS, logo w rogu, tekst 15 wrap, hover Pokaż */
.covers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  width: 100%;
}
.covers.big {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.cover {
  position: relative;
  width: auto;
  flex: none;
  height: 124px;
  aspect-ratio: auto;
  border-radius: var(--r-s);
  overflow: hidden;
  cursor: pointer;
  outline: none;
  border: 1px solid rgba(255,255,255,.08);
  background: var(--card);
  transform: none;
}
.cover:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--acc);
}
.cover.lockcover:hover { border-color: #d8c89a; }
.cover > img.ban {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.cover .cgrad {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom right,
    rgba(8,10,12,.76) 0%,
    rgba(8,10,12,.39) 34%,
    transparent 62%);
}
.cover .clogo {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 3;
  height: 30px;
  width: auto;
  max-width: 96px;
  max-height: 30px;
  object-fit: contain;
  object-position: left top;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.85));
  pointer-events: none;
}
.cover .bgrad {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 38%, rgba(8,10,8,.55) 62%, rgba(8,10,8,.92) 100%);
}
.cover .bgrad::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 58%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  mask-image: linear-gradient(to bottom, transparent, #000 58%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 58%);
}
.cover .nm {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  padding: 12px 12px 9px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
  background: none;
  text-shadow: 0 1px 10px rgba(0,0,0,.9);
}
.cover .st { z-index: 4; right: 8px; top: 8px; }
.cover .act {
  z-index: 5;
  background: rgba(8,10,8,.55);
}
.cover .act span {
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 18px;
}

.ghero::after {
  background: linear-gradient(180deg, rgba(8,10,12,.10) 0%, rgba(8,10,12,.60) 45%, rgba(10,12,15,.92) 82%, rgba(8,10,8,.95) 100%);
}
.ghero .gtico {
  width: 62px;
  height: 62px;
  object-fit: contain;
  background: var(--card-hi);
  padding: 8px;
  border-radius: 14px;
}
.applogo {
  background: var(--card-hi) !important;
  overflow: hidden;
}
.applogo img { width: 18px; height: 18px; object-fit: contain; display: block; }
.osmark { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }
.store { display: inline-flex; align-items: center; }
.pc-ring {
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(var(--acc) 110deg, var(--line) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.2px), #000 calc(100% - 2.2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.2px), #000 calc(100% - 2.2px));
}
.payprev .body { grid-template-columns: 1fr; }

.apps-search {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.apps-search .search {
  flex: 1;
  min-width: 0;
  width: auto;
}
.phone-sub { flex-wrap: wrap; max-width: 100%; }
.tile.master .mico {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--acc-soft);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tile.master .mico img { width: 26px; height: 26px; }
.pindigits span { width: 28px; height: 32px; border-radius: 8px; font-size: 14px; }
.qrwell {
  width: 136px; height: 136px; border-radius: 12px;
  background: #F1F3F1; padding: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.qrwell .qrbox { width: 100%; height: 100%; }
.connect2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.storestack { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.storestack button { background: none; border: 0; padding: 0; cursor: pointer; line-height: 0; }
.storestack img { height: 36px; width: auto; display: block; }
.featgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feattile {
  padding: 12px 14px; border: 1px solid var(--tile-border);
  background: var(--card); border-radius: var(--r);
}
.featrow { display: flex; align-items: flex-start; gap: 10px; }
.featrow > .ico {
  width: 37px; height: 37px; border-radius: 10px; background: var(--card-hi);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.featrow > .ico img { width: 18px; height: 18px; }
.featrow .tx { flex: 1; min-width: 0; }
.featrow .tx b { font-size: 13px; font-weight: 650; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.featrow .tx > span { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 15px; }
.osmarks { display: inline-flex; gap: 4px; align-items: center; margin-top: 0; }
.osmarks img { width: 13px; height: 13px; }
.logrow { display: grid; grid-template-columns: 64px 1fr; gap: 8px; margin-bottom: 8px; }
.logrow .t { font-size: 11px; color: var(--dim); padding-top: 2px; }
.logrow b { font-size: 13px; }
.lograil {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  border-left: 3px solid var(--acc);
}
.lograil.warn { border-left-color: var(--warn); }
.lograil .tx { flex: 1; }
.lograil .tx b { font-size: 14px; font-weight: 700; display: block; }
.lograil .tx span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.about-mascot { width: 136px; height: 136px; object-fit: contain; flex-shrink: 0; padding: 0; background: none; border-radius: 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-val { font-size: 14px; font-weight: 650; margin-top: 2px; }
.about-licenses {
  margin: 8px 0 4px; max-height: 220px; overflow: auto;
  font-size: 11.5px; line-height: 17px; color: var(--muted);
  font-family: inherit; white-space: pre-wrap;
}
details summary { cursor: pointer; font-size: 13px; font-weight: 650; padding: 6px 0; }
.fwchip .l2 { text-transform: none; letter-spacing: .8px; }
.search input {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}
.search input::-webkit-search-decoration,
.search input::-webkit-search-cancel-button { display: none; }
.search input::placeholder { color: var(--dim); }

body.embed .shell { border-radius: 0; width: 1140px; height: 890px; }
body.embed .navv { border-radius: 0; }
body.embed .foot { border-radius: 0; }

.demo-stamp {
  top: auto;
  bottom: 38px;
  right: 22px;
  z-index: 15;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .16em;
  padding: 8px 16px;
  border-radius: 8px;
}
.titlebar { flex-wrap: nowrap; min-width: 0; overflow-x: hidden; overflow-y: visible; }

/* Embed / poster: kafelki od razu widoczne (tilein + both trzyma opacity 0). */
html.embed .tab.on > *,
html.embed .panel.on {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
html.embed .tab.on .chartline {
  animation: draw 1.4s ease-out .2s forwards !important;
}
html.embed .tab.on .sr-arc.is-run {
  animation: ringdraw 1.4s cubic-bezier(.2,.8,.2,1) forwards !important;
}

.pc-exp { margin-bottom: 12px; }
.pc-exp > summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; font-size: 13px; font-weight: 650; padding: 2px 0; }
.pc-exp > summary::-webkit-details-marker, .pc-exp > summary::marker { display: none; content: none; }
.pc-exp > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); margin: 0 6px 3px 0; transition: transform .15s; }
.pc-exp[open] > summary::after { transform: rotate(-135deg); margin-bottom: 0; }
.pc-exp .pc-exp-body { margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 18px; }
.pc-exp .pc-exp-body b { display: block; color: var(--fg); font-weight: 650; margin: 10px 0 2px; }
.pc-k { font-size: 10px; font-weight: 700; letter-spacing: .8px; color: var(--dim); }
.pc-metrics { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin: 2px 0 14px; }
.pc-card { padding: 16px 18px; }
.pc-det { margin-top: 6px; }
.pc-det > summary { font-size: 11px; font-weight: 650; color: var(--muted); padding: 6px 0; list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.pc-det > summary::-webkit-details-marker, .pc-det > summary::marker { display: none; content: none; }
.pc-det > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); margin: 0 4px 2px 0; }
.pc-det[open] > summary::after { transform: rotate(-135deg); }
.pc-ml { font-size: 11px; color: var(--muted); font-weight: 650; margin: 8px 0 3px; }
.meter { height: 5px; border-radius: 2px; background: var(--card-hi); overflow: hidden; min-width: 150px; }
.meter i { display: block; height: 100%; border-radius: 2px; background: var(--acc); }
.meter i.w { background: var(--warn); }
.ramslots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.ramslot { width: 72px; height: 56px; border-radius: 4px; border: 1px solid var(--line); background: var(--card-hi); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; line-height: 1.2; color: #d8d8d8; }
.ramslot.off { opacity: .35; }
.spec-k { font-size: 11px; font-weight: 650; color: var(--acc-hi); margin: 0 0 2px; }
.spec-v { font-size: 12px; }
.spec-m { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.spec2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.hwinfo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.hwibox { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--row); }
.hwibox .k { font-size: 10px; font-weight: 700; letter-spacing: .4px; color: var(--acc-hi); }
.hwibox .t { font-size: 13px; font-weight: 800; margin: 2px 0 8px; }
.hwibox .r { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; font-size: 11px; }
.hwibox .r span:first-child { color: var(--muted); }
.pc-q { width: 100%; height: 32px; box-sizing: border-box; border-radius: 8px; border: 1px solid var(--line); background: var(--card-hi); color: var(--fg); padding: 0 12px; font: inherit; font-size: 12px; margin: 0 0 8px; }
.pc-q::placeholder { color: var(--dim); }
.shead { display: grid; grid-template-columns: 8px 1fr 78px 78px 78px; gap: 6px; padding: 0 8px 4px; font-size: 10px; font-weight: 650; color: var(--muted); }
.sgrp { margin-bottom: 4px; }
.sgrp > summary { font-size: 12.5px; font-weight: 650; padding: 7px 8px; cursor: pointer; }
.srow { display: grid; grid-template-columns: 8px 1fr 78px 78px 78px; gap: 6px; align-items: center; min-height: 30px; padding: 0 8px; font-size: 12px; }
.srow .sn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow span:not(.sn) { font-variant-numeric: tabular-nums; color: var(--muted); }
.stype { width: 4px; height: 16px; border-radius: 2px; background: var(--acc); }
.stype.temp { background: #e07050; }
.stype.load { background: var(--acc); }
.stype.clock { background: #5aa8ff; }
.stype.power { background: #d8c89a; }
.stype.data { background: #9aa0a6; }
.pc-searchmode { display: flex; align-items: center; gap: 8px; font-size: 11px; margin: 0 0 8px; }
.pc-searchmode .dim { opacity: .45; }
